/* =============================================================
   Header / Navigation — Oh My Heart
   ============================================================= */

#site-header {
  position: relative;
  z-index: 100;
  background: var(--secondary);
  color: var(--white);
}

.ohmh-header-top {
  background: var(--secondary);
}

.ohmh-header-top__inner {
  min-height: 134px;
  display: grid;
  grid-template-columns: 180px minmax(260px, 500px) 180px;
  align-items: center;
  justify-content: space-around;
  gap: 32px;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-branding .custom-logo-link,
.site-branding a {
  display: inline-flex;
  align-items: center;
}

.site-branding img,
.site-branding svg {
  width: auto;
  max-width: 110px;
  max-height: 100px;
}

.site-title-text {
  color: var(--white);
  font-size: 28px;
  font-weight: var(--fw-semibold);
  line-height: 1;
}

.ohmh-search {
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  position: relative;
}

.ohmh-search__icon {
  position: absolute;
  left: 14px;
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  transform: translateY(-1px);
  pointer-events: none;
}

.ohmh-search input[type='search'] {
  width: 100%;
  height: 30px;
  border: 3px solid var(--white);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--white);
  padding: 0 25px 0 54px;
  outline: 0;
  font-size: 17px;
  font-weight: var(--fw-medium);
}

.ohmh-search input[type='search']::placeholder {
  color: rgba(255, 255, 255, .9);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.header-icon {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  position: relative;
  color: var(--white);
  font-size: 31px;
  line-height: 1;
}

.header-icon:hover {
  opacity: .85;
}

.header-cart .cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 4px 4px 4px 5px;
  background: var(--rose-deep);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: var(--fw-semibold);
}

.ohmh-header-nav {
  background: var(--primary);
}

.ohmh-header-nav__inner {
  min-height: 91px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 55px;
}

.main-navigation a {
  color: var(--white);
  font-size: 23px;
  font-weight: var(--fw-medium);
  line-height: 1;
  position: relative;
  padding: 8px 0;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width var(--t-base);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item>a::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform var(--t-base), opacity var(--t-base);
}

.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}
/* =============================================================
   Live search — dropdown αποτελεσμάτων
   ============================================================= */
.ohmh-search__results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  color: var(--black);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 6px;
  max-height: 70vh;
  overflow-y: auto;
}

.ohmh-search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background var(--t-base);
}
.ohmh-search__item:hover,
.ohmh-search__item:focus-visible {
  background: var(--off-white);
}

.ohmh-search__thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--off-white);
}
.ohmh-search__thumb--empty {
  background: linear-gradient(135deg, var(--white), var(--primary));
}

.ohmh-search__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ohmh-search__name {
  font-size: 16px;
  font-weight: var(--fw-medium);
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ohmh-search__price {
  font-size: 14px;
  color: var(--rose-deep);
  font-weight: var(--fw-semibold);
}
.ohmh-search__price del { color: var(--gray); font-weight: var(--fw-regular); margin-right: 4px; }

.ohmh-search__all {
  display: block;
  text-align: center;
  padding: 11px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: var(--fw-semibold);
  color: var(--white);
  background: var(--rose-deep);
  border-radius: 10px;
}
.ohmh-search__all:hover { background: var(--rose); }

.ohmh-search__empty {
  padding: 16px;
  text-align: center;
  color: var(--gray);
  font-size: 15px;
}
/* =============================================================
   Mobile search trigger + overlay
   ============================================================= */

/* Το trigger κουμπί — κρυμμένο σε desktop */
.ohmh-search-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-base), color var(--t-base);
}

.ohmh-search-trigger:hover {
  background: rgba(255,255,255,.15);
}

/* Overlay backdrop */
.ohmh-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.ohmh-search-overlay[hidden] {
  display: none;
}

.ohmh-search-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Overlay inner card */
.ohmh-search-overlay__inner {
  position: relative;
  width: calc(100% - 32px);
  max-width: 520px;
  background: var(--white);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: ohmh-overlay-in 200ms ease both;
}

@keyframes ohmh-overlay-in {
  from { opacity: 0; transform: translateY(-12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* Form μέσα στο overlay */
.ohmh-search-overlay__form {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
	margin: 45px 0;
	flex-direction: column;
	justify-content: center;
}

.ohmh-search-overlay__form .ohmh-search__icon {
  position: absolute;
  left: 14px;
  color: var(--rose-deep);
  font-size: 28px;
  line-height: 1;
  transform: translateY(-1px);
  pointer-events: none;
}

.ohmh-search-overlay__form input[type='search'] {
  width: 100%;
  height: 52px;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--off-white);
  color: var(--text);
  padding: 0 52px 0 52px;
  outline: 0;
  font-size: 16px;
  font-family: var(--font-main);
  font-weight: var(--fw-medium);
  transition: border-color var(--t-base);
}

.ohmh-search-overlay__form input[type='search']:focus {
  border-color: var(--accent);
}

.ohmh-search-overlay__form input[type='search']::placeholder {
  color: var(--gray);
}

/* Close button */
.ohmh-search-overlay__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--gray);
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--t-base), color var(--t-base);
}

.ohmh-search-overlay__close:hover {
  background: var(--off-white);
  color: var(--text);
}

/* Results dropdown μέσα στο overlay */
.ohmh-search-overlay__inner .ohmh-search__results {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  box-shadow: none;
  border-radius: 0 0 14px 14px;
  margin: 0 -16px -16px;
  padding: 6px 6px 6px;
}

/* =============================================================
   Responsive — mobile
   ============================================================= */

@media (max-width: 768px) {
  /* Κρύβουμε desktop search bar */
  .ohmh-search--desktop {
    display: none !important;
  }

  /* Δείχνουμε το trigger */
  .ohmh-search-trigger {
    display: flex;
  }
}
