/* ─── RESET / BASE ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  font-size: 14px;
  color: #111;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

/* ─── HEADER ────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5px 15px;
}

@media (max-width: 1199px) {
  .header-inner {
    padding: 15px 5px;
  }
}

.header-logo img {
  height: 60px;
  width: auto;
  padding: 5px 0;
}

/* Desktop nav — center */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Right icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: #111;
  transition: background 0.15s;
}

.icon-btn:hover {
  background: #f3f3f3;
}

@media (max-width: 991px) {
  .icon-btn[aria-label="Account"] {
    display: none;
  }
}

/* Hamburger — mobile only */
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: #111;
  flex-shrink: 0;
}

.hamburger:hover {
  background: #f3f3f3;
}

/* ─── DESKTOP NAV LIST ──────────────────────────────────────────────────────── */
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-item.has-mega-menu {
  position: static;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transition: 0.15s;
}

.nav-link:hover {
  opacity: .7;
}

.nav-link .chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-item.open>.nav-link .chevron {
  transform: rotate(180deg);
}

/* ─── DROPDOWN MENU ─────────────────────────────────────────────────────────── */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .10);
  border: 1px solid #DDD;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: 0.18s;
  z-index: 200;
}

.nav-item.open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu li+li {
  margin-top: 2px;
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  opacity: .7;
  transition: 0.15s;
}

.dropdown-menu a:hover {
  opacity: 1;
}

/* ─── NAV OVERLAY (mega menu backdrop) ──────────────────────────────────────── */
#nav-overlay {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

#nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ─── MEGA MENU ─────────────────────────────────────────────────────────────── */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: min(900px, 90vw);
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 200;
  width: 100%;
}

.nav-item.open .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu-inner {
  display: flex;
  gap: 20px;
  padding: 30px 15px;
  max-width: 1400px;
  margin: 0 auto;
  flex-flow: row wrap;
  align-items: flex-start;
}

.mega-columns {
  display: flex;
  flex-flow: row wrap;
  gap: 30px;
  flex: 1;
}

.mega-col {
  flex: 1;
  flex-basis: calc(25% - 22.5px);
}

@media (max-width: 1199px) {
  .mega-col {
    flex-basis: calc(50% - 15px);
  }
}

.mega-col-title {
  display: block;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
  color: #111;
}

.mega-col-title:hover {
  text-decoration: underline;
}

.mega-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-col ul a {
  font-size: 16px;
  font-weight: 500;
  color: #555;
  transition: color 0.12s;
}

.mega-col ul a:hover {
  color: #111;
}

/* Promo image */
.mega-promo {
  flex-shrink: 0;
  width: 200px;
}

.mega-promo-link {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.mega-promo-link img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  transition: transform 0.3s;
}

.mega-promo-link:hover img {
  transform: scale(1.04);
}

.mega-promo-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

/* ─── MOBILE DRAWER OVERLAY ─────────────────────────────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ─── MOBILE DRAWER ─────────────────────────────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(360px, 88vw);
  padding: 15px;
  z-index: 400;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-container {
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
}

.drawer-head {
  display: flex;
  align-items: center;
  padding: 30px 30px 0 30px;
  flex-shrink: 0;
}

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 100%;
  border: 1px solid rgba(0, 0, 0, .12);
  transition: background 0.15s;
}

@media (max-width: 767px) {
  .drawer-head {
    padding: 20px 20px 0 20px;
  }

  .drawer-close {
    width: 40px;
    height: 40px;
  }
}

.drawer-close:hover {
  background: #f3f3f3;
}

/* ─── DRAWER PANELS ─────────────────────────────────────────────────────────── */
.drawer-panels {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.drawer-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  /* off-screen right by default */
  overflow: hidden;
}

/* Active panel is visible — panel 0 starts with class="active" in HTML */
.drawer-panel.active {
  transform: translateX(0);
}

.panel-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 15px 30px;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .panel-scroll {
    padding: 15px 20px;
  }
}

.panel-footer {
  flex-shrink: 0;
  padding: 20px 15px;
  border-top: 1px solid #f0f0f0;
}

/* ─── PANEL ITEMS ────────────────────────────────────────────────────────────── */
.panel-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.panel-item {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.12s;
  text-align: left;
}

.panel-item:hover .circle-chevron {
  background: #333;
  color: #FFF;
}

.circle-chevron {
  width: 24px;
  height: 24px;
  border-radius: 100%;
  background: rgba(51, 51, 51, .1);
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  transition: all .2s ease-in-out;
}

/* Back button */
.panel-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  color: #666;
  padding: 10px 0;
  margin-bottom: 12px;
  border-radius: 6px;
  transition: background 0.12s;
}

/* Promo block inside panel */
.panel-promo {
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
}

.panel-promo a {
  display: block;
  position: relative;
}

.panel-promo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
}

.panel-promo span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

/* ─── SOCIAL LINKS ───────────────────────────────────────────────────────────── */
.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .main-nav {
    display: none;
  }
}

@media (min-width: 1200px) {

  .mobile-drawer,
  .drawer-overlay {
    display: none;
  }
}

/* ─── REMOVE DOT LOADER ─────────────────────────────────────────────────────── */
@keyframes dot-bounce {

  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: .4;
  }

  40% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.dot-loader {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.dot-loader span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #aaa;
  animation: dot-bounce 1s infinite ease-in-out;
}

.dot-loader span:nth-child(2) {
  animation-delay: .15s;
}

.dot-loader span:nth-child(3) {
  animation-delay: .3s;
}

/* ─── CART EMPTY STATE ───────────────────────────────────────────────────────── */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  gap: 16px;
  list-style: none;
}

.cart-empty-icon-wrap {
  position: relative;
  display: inline-flex;
  color: #111;
}

.cart-empty-zero {
  position: absolute;
  top: -2px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-empty-text {
  font-size: 18px;
  font-weight: 500;
  color: #111;
}

.btn-continue-shopping {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 36px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 8px;
}

.btn-continue-shopping:hover {
  background: #333;
}

/* ─── CART ICON BADGE ───────────────────────────────────────────────────────── */
.cart-icon-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
}

.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}

/* ─── CART OVERLAY ──────────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ─── CART DRAWER (right off-canvas) ───────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100vw);
  z-index: 600;
  padding: 15px;
  pointer-events: none;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.cart-drawer.open {
  pointer-events: auto;
  clip-path: inset(0 0 0 0%);
}

.cart-modal {
  background: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
}

/* ─── CART HEADER ───────────────────────────────────────────────────────────── */
.cart-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .cart-modal-head {
    padding: 20px 15px 10px;
  }
}

.cart-title {
  font-size: 24px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 99px;
}

.cart-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #666;
  transition: background 0.15s;
}

.cart-close:hover {
  background: #f3f3f3;
  color: #111;
}

#btn-clear-all {
  font-size: 13px;
  font-weight: 500;
  color: #aaa;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.15s;
}

#btn-clear-all:hover {
  color: #c0392b;
}

/* ─── CART CLEAR CONFIRM ─────────────────────────────────────────────────── */
.cart-modal {
  position: relative;
}

.cart-clear-confirm {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}

.cart-clear-confirm.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-clear-confirm-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 28px 24px;
  width: 280px;
  text-align: center;
  transform: scale(0.88);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.cart-clear-confirm.open .cart-clear-confirm-card {
  transform: scale(1);
}

.cart-clear-confirm-card p {
  font-size: 15px;
  line-height: 1.5;
  color: #111;
  margin-bottom: 20px;
}

.cart-clear-confirm-btns {
  display: flex;
  gap: 10px;
}

.btn-clear-cancel,
.btn-clear-do {
  flex: 1;
  padding: 11px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

.btn-clear-cancel {
  background: #f0f0f0;
  color: #333;
}

.btn-clear-cancel:hover {
  background: #e5e5e5;
}

.btn-clear-do {
  background: #c0392b;
  color: #fff;
}

.btn-clear-do:hover {
  opacity: 0.85;
}

/* ─── CART BODY ─────────────────────────────────────────────────────────────── */
.cart-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 28px 4px;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .cart-modal-body {
    padding: 0 15px 4px;
  }
}

/* ─── CART ITEM ─────────────────────────────────────────────────────────────── */
.cart-item-list {
  display: flex;
  flex-direction: column;
}

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
  line-height: 1.4;
}

.cart-item-price {
  font-size: 14px;
  color: #111;
  margin-bottom: 3px;
}

.cart-item-variant {
  font-size: 13px;
  color: #888;
}

.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cart-qty-input {
  width: 52px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  background: #fff;
  -moz-appearance: textfield;
}

.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.cart-qty-input:focus {
  outline: none;
  border-color: #111;
}

.cart-remove-btn {
  font-size: 12px;
  color: #888;
  transition: color 0.12s;
}

.cart-remove-btn:hover {
  color: #111;
  text-decoration: underline;
}

/* ─── ORDER NOTE ────────────────────────────────────────────────────────────── */
.cart-note-form {
  padding: 20px 0;
  border-top: 1px solid #f0f0f0;
}

.cart-note-label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cart-note-field {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px 6px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}

.cart-note-field:focus-within {
  border-color: #111;
}

.cart-note-field-label {
  display: block;
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.cart-note-textarea {
  width: 100%;
  border: none;
  outline: none;
  resize: vertical;
  font-size: 14px;
  color: #111;
  background: transparent;
  font-family: inherit;
  min-height: 80px;
}

.btn-save-note {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 24px;
  background: #c0392b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 99px;
  transition: background 0.15s;
}

.btn-save-note:hover {
  background: #a93226;
}

/* ─── CART FOOTER ───────────────────────────────────────────────────────────── */
.cart-modal-foot {
  flex-shrink: 0;
  padding: 20px 28px 24px;
  border-top: 1px solid #e8e8e8;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cart-total-label {
  font-size: 16px;
  font-weight: 700;
}

.cart-total-value {
  font-size: 16px;
  font-weight: 700;
}

.cart-tax-note {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

.cart-tax-note a {
  text-decoration: underline;
  color: #888;
}

.cart-tax-note a:hover {
  color: #111;
}

.cart-note-toggle {
  font-size: 12px;
  color: #888;
  text-decoration: underline;
  margin-bottom: 16px;
  display: block;
  text-align: left;
  transition: color 0.12s;
}

.cart-note-toggle:hover {
  color: #111;
}

.cart-actions {
  display: flex;
  gap: 10px;
}

.btn-view-cart {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  background: #c0392b;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 99px;
  transition: background 0.15s;
}

.btn-view-cart:hover {
  background: #a93226;
}

.btn-checkout {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  background: #111;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 99px;
  transition: background 0.15s;
}

.btn-checkout:hover {
  background: #333;
}

/* ─── SEARCH OVERLAY ────────────────────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ─── SEARCH DRAWER (slide-down) ────────────────────────────────────────────── */
.search-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 600;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.search-drawer.open {
  pointer-events: auto;
}

.search-modal {
  background: #fff;
  border-radius: 15px;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
  overflow: hidden;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.86, 0, 0.07, 1);
}

.search-drawer.open .search-modal {
  transform: translateY(20px);
}

/* ─── SEARCH HEADER ─────────────────────────────────────────────────────────── */
.search-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 20px 16px;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  background: transparent;
  min-width: 0;
}

.search-input::placeholder {
  color: #aaa;
  font-weight: 400;
}

.search-clear {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  display: none;
}

.search-clear:hover {
  color: #111;
}

.search-clear.visible {
  display: block;
}

.search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #666;
  flex-shrink: 0;
  transition: background 0.15s;
}

.search-close:hover {
  background: #f3f3f3;
  color: #111;
}

.search-divider {
  height: 1px;
  background: #e8e8e8;
  flex-shrink: 0;
  margin: 0 20px;
}

/* ─── SEARCH BODY ───────────────────────────────────────────────────────────── */
.search-state {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Dev hint */
.search-hint {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 16px;
  font-style: italic;
}

.search-hint span {
  color: #888;
  font-weight: 600;
  font-style: normal;
}

/* Empty state */
.search-section-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px;
  letter-spacing: .04em;
}

.search-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-nav-links a {
  display: block;
  font-size: 16px;
  font-weight: 700;
  padding: 5px 0;
  color: #111;
  transition: color 0.12s;
}

.search-nav-links a:hover {
  color: #555;
}

/* No results */
.search-no-results-text {
  text-align: center;
  padding: 40px 0;
  color: #c8922a;
  font-size: 14px;
}

/* ─── SEARCH TABS ───────────────────────────────────────────────────────────── */
.search-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.search-tab {
  font-size: 15px;
  font-weight: 700;
  color: #bbb;
  padding: 0;
  transition: color 0.15s;
}

.search-tab.active {
  color: #111;
}

.search-tab:hover {
  color: #555;
}

/* ─── PRODUCT RESULTS ───────────────────────────────────────────────────────── */
.search-product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  padding: 4px;
  transition: background 0.12s;
}

.search-product-item:hover {
  background: #f8f8f8;
}

.search-product-img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f3f3;
  flex-shrink: 0;
}

.search-product-info {
  flex: 1;
  min-width: 0;
}

.search-product-category {
  font-size: 11px;
  color: #999;
  margin-bottom: 3px;
}

.search-product-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 5px;
}

.search-product-prices {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-price-sale {
  font-size: 13px;
  font-weight: 700;
  color: #c0392b;
}

.search-price-original {
  font-size: 12px;
  color: #aaa;
  text-decoration: line-through;
}

/* ─── BLOG RESULTS ──────────────────────────────────────────────────────────── */
.search-blog-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-blog-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  padding: 4px;
  transition: background 0.12s;
}

.search-blog-item:hover {
  background: #f8f8f8;
}

.search-blog-img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f3f3;
  flex-shrink: 0;
}

.search-blog-info {
  flex: 1;
  min-width: 0;
}

.search-blog-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #e74c3c;
  border-radius: 20px;
  padding: 2px 8px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.search-blog-title {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── PAGE LAYOUT ────────────────────────────────────────────────────────────── */
.breadcrum {
  padding: 30px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breadcrum h1 {
  font-weight: 600;
}

.page-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

@media (max-width: 767px) {
  .page-inner {
    padding: 40px 10px 80px;
  }
}

/* ─── PRODUCT GRID ───────────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 20px;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card-img-wrap {
  position: relative;
  background: #f5f5f5;
  border-radius: 16px;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e53e30;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  z-index: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.btn-add-card {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  height: 36px;
  padding: 0 16px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s, transform 0.18s, background 0.12s;
  z-index: 2;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card:hover .btn-add-card {
  opacity: 1;
  transform: translateY(0);
}

.btn-add-card:hover {
  background: #333;
}

.btn-add-card:disabled {
  cursor: default;
}

.product-card-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px;
}

.product-cat {
  font-size: 12px;
  color: #c0392b;
  font-weight: 500;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.product-price .price-sale {
  font-size: 18px;
  color: #e53e30;
}

.product-price .price-original {
  font-size: 16px;
  color: #777;
  text-decoration: line-through;
}

.product-swatches {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.product-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  outline: 1px solid rgba(0, 0, 0, .12);
  display: inline-block;
  flex-shrink: 0;
}

.product-swatch--light {
  outline: 1px solid #ddd;
}

/* ─── SOLD OUT ───────────────────────────────────────────────────────────────── */
.product-badge.sold-out {
  background: #111;
}

.product-card.sold-out .product-swatch {
  background:
    linear-gradient(to bottom right, transparent calc(50% - 1px), #fff calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(to right, #656161, #656161) center / cover !important;
  outline: none;
}

.product-card.sold-out .product-img {
  opacity: 0.5;
}

.swatch-more {
  font-size: 11px;
  color: #888;
  font-weight: 600;
}

/* ─── PRODUCT POPUP OVERLAY ──────────────────────────────────────────────────── */
.product-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}

.product-popup-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ─── PRODUCT POPUP ──────────────────────────────────────────────────────────── */
.product-popup {
  position: fixed;
  bottom: 36px;
  right: 36px;
  width: 380px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .2);
  z-index: 710;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1), transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@media (max-width: 520px) {
  .product-popup {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 12px;
  }
}

.popup-product-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.popup-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 10px;
  flex-shrink: 0;
}

.popup-product-name {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popup-product-price .price-sale {
  font-size: 14px;
  font-weight: 700;
  color: #c0392b;
}

.popup-product-price .price-original {
  font-size: 12px;
  color: #aaa;
  text-decoration: line-through;
  margin-left: 6px;
}

.popup-options {
  padding: 16px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 260px;
  overflow-y: auto;
}

.popup-option-label {
  font-size: 13px;
  color: #555;
  margin-bottom: 15px;
}

.popup-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.popup-swatch {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 3px solid #fff;
  outline: 1.5px solid rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: outline-color 0.12s;
  flex-shrink: 0;
}

.popup-swatch:hover {
  outline-color: rgba(0, 0, 0, .4);
}

.popup-swatch.selected {
  outline: 2px solid #111;
  outline-offset: 1px;
}

.popup-swatch--light {
  outline: 1.5px solid #ccc;
}

.popup-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.popup-size-btn {
  height: 34px;
  padding: 0 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.12s, color 0.12s;
}

.popup-size-btn:hover {
  border-color: #999;
}

.popup-size-btn.selected {
  border-color: #111;
  border-width: 2px;
  color: #111;
  font-weight: 700;
}

.popup-atc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
}

.popup-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.popup-qty-btn {
  width: 34px;
  height: 42px;
  font-size: 18px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s;
}

.popup-qty-btn:hover {
  background: #f5f5f5;
}

.popup-qty-input {
  width: 38px;
  height: 42px;
  border: none;
  border-left: 1.5px solid #e0e0e0;
  border-right: 1.5px solid #e0e0e0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  -moz-appearance: textfield;
  outline: none;
}

.popup-qty-input::-webkit-inner-spin-button,
.popup-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.btn-popup-atc {
  flex: 1;
  height: 42px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.12s;
}

.btn-popup-atc:hover {
  background: #333;
}

/* ─── CONFIRM POPUP ──────────────────────────────────────────────────────────── */
.popup-success-bar {
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.popup-confirm-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.popup-confirm-name {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  margin-bottom: 4px;
}

.popup-confirm-price {
  font-size: 14px;
  color: #111;
  font-weight: 600;
}

.popup-confirm-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
}

.popup-btn-view {
  flex: 1;
  height: 44px;
  background: #c0392b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: background 0.12s;
}

.popup-btn-view:hover {
  background: #a93226;
}

.popup-btn-checkout {
  flex: 1;
  height: 44px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: background 0.12s;
}

.popup-btn-checkout:hover {
  background: #333;
}

/* ─── LOCALE SELECTOR (desktop) ─────────────────────────────────────────────── */
.locale-selector {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .locale-selector {
    display: none;
  }
}

.locale-dd {
  position: relative;
}

.locale-dd-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transition: 0.15s;
}

#currency-flag {
  display: flex;
  align-items: center;
}

.locale-flag-img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-block;
}

.locale-dd-btn .chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
  opacity: 0.5;
}

.locale-dd.open .locale-dd-btn .chevron {
  transform: rotate(180deg);
}

.locale-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 200;
}

.locale-dd.open .locale-dd-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.locale-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  color: #666;
  white-space: nowrap;
  transition: 0.12s;
}

.locale-dd-item:hover {
  color: #000;
}

.locale-dd-item.active {
  font-weight: 500;
  color: #000;
}

/* ─── MOBILE PANEL LOCALE ROW ───────────────────────────────────────────────── */
.panel-locale-row {
  display: flex;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

@media (min-width: 992px) {
  .panel-locale-row {
    display: none;
  }
}

.panel-locale-left {
  display: flex;
  align-items: center;
  flex-grow: 1;
  gap: 15px;
}

.panel-locale-left {
  flex-shrink: 0;
}

.panel-locale-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  border-radius: 6px;
  transition: 0.12s;
  white-space: nowrap;
  text-decoration: none;
}

.panel-locale-btn .chevron {
  opacity: 0.4;
  flex-shrink: 0;
}

#mobile-currency-flag {
  display: flex;
  align-items: center;
}

/* ─── LOCALE BOTTOM SHEET (mobile) ──────────────────────────────────────────── */
.locale-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 410;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.locale-sheet-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.locale-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 420;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

.locale-sheet.open {
  transform: translateY(0);
}

.locale-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(51, 51, 51, .12);
}

.locale-sheet-title {
  font-size: 16px;
  color: #111;
}

.locale-sheet-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #666;
  transition: background 0.15s;
}

.locale-sheet-close:hover {
  background: #f3f3f3;
}

.locale-sheet-list {
  overflow-y: auto;
  flex: 1;
  list-style: none;
  padding: 10px 0;
}

.locale-sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  color: #666;
  transition: 0.12s;
}

.locale-sheet-item:hover {
  color: #000;
}

.locale-sheet-item.active {
  font-weight: 500;
  color: #000;
}

.locale-check {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0;
}

.locale-sheet-item.active .locale-check {
  opacity: 1;
}