/* ============================================================
   RK Keys — layout.css
   Header, Navigation, Footer, Bottom Nav, Page Layout
   ============================================================ */

/* ── Top Bar ─────────────────────────────────────────────── */
.topbar {
  background: var(--clr-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.4rem 0;
  display: none;
}

@media (min-width: 768px) {
  .topbar {
    display: block;
  }
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--ease);
}

.topbar a:hover {
  color: var(--clr-accent);
}

.topbar__links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* ── Main Header + Nav — sticky together ─────────────────── */
.site-header-sticky {
  position: sticky;
  top: 0;
  z-index: 900;
}

.site-header {
  background: var(--clr-primary);
  box-shadow: 0 2px 16px rgba(66, 151, 157, 0.3);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.75rem var(--space-md);
  min-height: 72px;
  justify-content: flex-start;
}

/* Mobile: logo left, hamburger right */
@media (max-width: 1023px) {
  .site-header__inner {
    padding: 0.6rem 0;
    min-height: 96px;
  }

  .site-header__inner .header-actions {
    display: none;
    /* hidden on mobile — shown in mobile-header-row2 below */
  }
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  text-decoration: none;
}

@media (min-width: 1024px) {
  .site-logo {
    margin-right: auto;
  }
}

/* ── Mobile Header Row 2 (user account + hamburger) ─────── */
.mobile-header-row2 {
  display: none;
  /* desktop: hidden */
}

@media (max-width: 1023px) {
  .mobile-header-row2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0.6rem 0;
    background: var(--clr-primary);
  }

  .mobile-header-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 0;
  }

  .mobile-header-user__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--clr-white);
    flex-shrink: 0;
  }

  .mobile-header-user__icon svg {
    width: 17px;
    height: 17px;
  }

  .mobile-header-user__name {
    color: var(--clr-white);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
  }

  .mobile-header-row2 .hamburger {
    margin-left: 0;
  }

  /* Offers pill — warm gradient so it stands out against the blue header */
  .mobile-offers-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: auto;   /* push to the right, next to the hamburger */
    margin-right: 0.5rem; /* small gap before the hamburger */
    overflow: hidden;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff9800, #f4511e);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(244, 81, 30, 0.45);
    animation: rk-offers-pulse 2.4s ease-in-out infinite;
  }

  .mobile-offers-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  /* Light sweep across the pill */
  .mobile-offers-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: rk-offers-shine 3.6s ease-in-out infinite;
  }

  @keyframes rk-offers-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(244, 81, 30, 0.45); }
    50%      { transform: scale(1.06); box-shadow: 0 2px 14px rgba(255, 152, 0, 0.8); }
  }

  @keyframes rk-offers-shine {
    0%, 55% { left: -60%; }
    100%    { left: 130%; }
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-offers-btn,
    .mobile-offers-btn::after { animation: none; }
  }

  /* Small phones: leave room for the name + hamburger */
  @media (max-width: 380px) {
    .mobile-offers-btn { padding: 0.4rem 0.65rem; }
    .mobile-header-user__name { max-width: 30vw; }
  }
}

.mobile-nav__offers-link span:first-child {
  color: #ff9800;
  font-weight: 800;
}

.site-logo__img,
.site-header .custom-logo-link img {
  width: auto;
  max-width: 100%;
  height: 40px;
  max-height: 40px;
  object-fit: contain;
  transition: height 0.2s ease;
}

@media (min-width: 1024px) {

  .site-logo__img,
  .site-header .custom-logo-link img {
    height: 58px;
    max-height: 58px;
  }
}

/* Mobile: logo doubled in size */
@media (max-width: 1023px) {

  .site-logo__img,
  .site-header .custom-logo-link img {
    height: 80px;
    max-height: 80px;
  }
}

.site-logo__text {
  display: none;
}

@media (min-width: 480px) {
  .site-logo__text {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--clr-white);
    letter-spacing: 0.04em;
    line-height: 1;
  }

  .site-logo__sub {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
}

/* ── Mobile Inline Search Bar ───────────────────────────────── */
.mobile-inline-search {
  display: none;
}

.mobile-header-right {
  display: none;
  /* desktop: hidden */
}

@media (max-width: 1023px) {
  .site-header__inner {
    justify-content: space-between;
    gap: 0.5rem;
  }

  .site-logo-wrap {
    margin-right: 0 !important;
    flex-shrink: 0;
  }

  /* Row 1 right column: search bar stacked over WhatsApp buttons,
     sized to match the (doubled) logo height */
  .mobile-header-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
  }

  .mobile-inline-search {
    display: block;
    min-width: 0;
  }

  .mob-search-form {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    height: 34px;
    overflow: hidden;
  }

  .mob-search-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 0.8rem;
    color: var(--clr-white);
    font-size: 16px;
    /* Stop iOS zoom */
    min-width: 0;
  }

  .mob-search-form input:focus,
  .mob-search-form input:focus-visible {
    outline: none;
  }

  .mob-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.55);
  }

  .mob-search-form button {
    background: transparent;
    border: none;
    color: var(--clr-white);
    padding: 0 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* WhatsApp buttons row, under the search bar */
  .mobile-header-wa-buttons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .mobile-header-wa-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    height: 28px;
    padding: 0 0.5rem;
    border-radius: 50px;
    background: rgba(37, 211, 102, 0.16);
    border: 1px solid rgba(77, 219, 133, 0.3);
    color: #4ddb85;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
  }

  .mobile-header-wa-btn:hover,
  .mobile-header-wa-btn:active {
    background: rgba(37, 211, 102, 0.28);
  }

  .mobile-header-wa-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Option D: tinted dark card style */
.header-action-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--clr-white);
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}

.header-action-item:hover {
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.header-action-item__icon,
.header-action-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.95;
}

.header-action-item__text {
  display: none;
  flex-direction: column;
  line-height: 1.25;
}

@media (min-width: 1024px) {
  .header-action-item__text {
    display: flex;
  }
}

.header-action-item__top {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.header-action-item__bottom {
  font-size: 0.8rem;
  color: var(--clr-white);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* WhatsApp — green tint */
.header-action-item--wa {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.25);
}

.header-action-item--wa:hover {
  background: rgba(37, 211, 102, 0.28);
  border-color: rgba(37, 211, 102, 0.45);
}

.header-action-item--wa .header-action-item__icon {
  color: #25d366;
  opacity: 1;
}

/* Register — gold accent tint */
.header-action-item--register {
  background: rgba(232, 197, 71, 0.12);
  border-color: rgba(232, 197, 71, 0.25);
}

.header-action-item--register:hover {
  background: rgba(232, 197, 71, 0.25);
  border-color: rgba(232, 197, 71, 0.5);
}

.header-action-item--register .header-action-item__icon {
  color: var(--clr-accent);
  opacity: 1;
}

/* Logout — subtle red tint */
.header-action-item--logout {
  background: rgba(231, 76, 60, 0.1);
  border-color: rgba(231, 76, 60, 0.18);
}

.header-action-item--logout:hover {
  background: rgba(231, 76, 60, 0.22);
  border-color: rgba(231, 76, 60, 0.4);
}

.header-action-item--logout .header-action-item__icon {
  color: #e74c3c;
  opacity: 1;
}

/* Cart badge */
.header-action-item__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 17px;
  height: 17px;
  background: var(--clr-accent);
  color: var(--clr-dark);
  font-size: 0.58rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--clr-primary);
}

/* Keep old icon-btn for any remaining usage */
.header-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--clr-white);
  background: rgba(255, 255, 255, 0.12);
  transition: background var(--ease);
  text-decoration: none;
}

.header-icon-btn:hover,
.header-icon-btn:active {
  background: rgba(255, 255, 255, 0.25);
}

.header-icon-btn svg {
  width: 20px;
  height: 20px;
}

.header-icon-btn__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--clr-accent);
  color: var(--clr-dark);
  font-size: 0.55rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── Desktop Navigation Bar ──────────────────────────────── */
.site-nav {
  background: var(--clr-dark);
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    display: block;
  }
}

.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
}

.site-nav__item {
  position: relative;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--ease), background var(--ease);
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__item.active .site-nav__link {
  color: var(--clr-accent);
}

.site-nav__link svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

/* Dropdown */
.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--clr-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--ease);
  z-index: 800;
}

.site-nav__item:hover .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav__dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--clr-text);
  transition: background var(--ease), color var(--ease);
}

.site-nav__dropdown a:hover {
  background: var(--clr-primary-bg);
  color: var(--clr-primary);
}

/* Super deal / CTA nav item */
.site-nav__cta {
  margin-left: auto;
  background: var(--clr-accent);
  color: var(--clr-dark) !important;
  font-weight: 900 !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 50px;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  margin-right: 0.5rem;
  transition: background var(--ease), transform var(--ease) !important;
}

.site-nav__cta:hover {
  background: var(--clr-accent-dark) !important;
  color: var(--clr-dark) !important;
  transform: scale(1.03);
}

/* ── Nav Search (right-aligned in dark nav bar) ──────────── */
.site-nav__item--search {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.75rem 0.4rem 0;
  margin-left: auto;
}

.nav-search-box {
  display: flex;
  align-items: center;
  width: clamp(140px, 18vw, 220px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  overflow: hidden;
  transition: background var(--ease), border-color var(--ease), width 0.3s ease;
}

.nav-search-box:focus-within {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  width: clamp(180px, 22vw, 280px);
}

.nav-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.45rem 0.85rem;
  color: var(--clr-white);
  min-width: 0;
  font-size: 16px;
  /* prevent iOS zoom */
}

@media (min-width: 1024px) {
  .nav-search-box input {
    font-size: 0.75rem;
  }
}

.nav-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.nav-search-box button {
  background: transparent;
  border: none;
  padding: 0.45rem 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--ease);
  flex-shrink: 0;
}

.nav-search-box button:hover {
  color: var(--clr-white);
}

/* ── Brands Mega Dropdown — MK3 style ───────────────────── */
.site-nav {
  position: relative;
}

.site-nav__item--brands {
  position: static !important;
}

.site-nav__brands-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--clr-white);
  border-top: 3px solid var(--clr-primary);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 800;
}

.site-nav__item--brands:hover .site-nav__brands-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Grid of logo cards — just images, no names */
.brands-dropdown__inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0;
  padding: 0;
  max-height: 480px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--clr-gray-100);
}

/* Each card: white bg, light border, just the logo image */
.brands-dropdown__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-right: 1px solid var(--clr-gray-100);
  border-bottom: 1px solid var(--clr-gray-100);
  background: var(--clr-white);
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.brands-dropdown__item:hover {
  background: var(--clr-primary-bg);
  box-shadow: inset 0 0 0 2px var(--clr-primary);
  z-index: 1;
}

/* The logo image — large, contained, no circle */
.brands-dropdown__item img {
  width: 100%;
  height: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.brands-dropdown__item:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Initials fallback (when no image) */
.brands-dropdown__initials {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--clr-primary);
  letter-spacing: 0.05em;
}

/* Footer row with View All link */
.brands-dropdown__footer {
  padding: 0.75rem 1.5rem;
  background: var(--clr-gray-50);
  border-top: 1px solid var(--clr-gray-100);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.brands-dropdown__view-all {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color var(--ease);
}

.brands-dropdown__view-all:hover {
  color: var(--clr-primary-dark);
}

/* ── Categories Mega Dropdown (same base as Brands) ─────── */
.site-nav__item--categories {
  position: static !important;
}

.site-nav__cats-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--clr-white);
  border-top: 3px solid var(--clr-accent);
  /* gold top border — differentiates from Brands */
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 800;
}

.site-nav__item--categories:hover .site-nav__cats-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Grid of category cards — image + name label */
.cats-dropdown__inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0;
  max-height: 480px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--clr-gray-100);
}

/* Category card — image on top, name below */
.cats-dropdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 1rem 0.75rem 0.85rem;
  border-right: 1px solid var(--clr-gray-100);
  border-bottom: 1px solid var(--clr-gray-100);
  background: var(--clr-white);
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  position: relative;
}

.cats-dropdown__item:hover {
  background: #fffbeb;
  /* warm gold tint on hover */
  box-shadow: inset 0 0 0 2px var(--clr-accent);
  z-index: 1;
}

/* Image container — square, not circle like brands */
.cats-dropdown__img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--clr-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cats-dropdown__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* show the whole image (cover cropped and zoomed it) */
  padding: 6px;
  transition: transform 0.15s ease;
}

.cats-dropdown__item:hover .cats-dropdown__img img {
  transform: scale(1.06);
}

/* Initials fallback */
.cats-dropdown__initials {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--clr-accent);
  letter-spacing: 0.05em;
}

/* Category name — always visible */
.cats-dropdown__name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  word-break: break-word;
}

/* Product count badge */
.cats-dropdown__count {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--clr-white);
  background: var(--clr-primary);
  border-radius: 50px;
  padding: 0.1rem 0.45rem;
  line-height: 1.5;
}


/* ── Mobile Menu Overlay ─────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  pointer-events: none;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity var(--ease-slow);
}

.mobile-nav__panel {
  position: relative;
  width: 280px;
  max-width: 85vw;
  background: var(--clr-dark);
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-100%);
  transition: transform var(--ease-slow);
  display: flex;
  flex-direction: column;
}

.mobile-nav.open {
  pointer-events: all;
}

.mobile-nav.open .mobile-nav__backdrop {
  opacity: 1;
}

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

.mobile-nav__header {
  background: var(--clr-primary);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.mobile-nav__close {
  color: var(--clr-white);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.mobile-nav__links {
  flex: 1;
  padding: 0.75rem 0;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--ease), color var(--ease);
}

.mobile-nav__link:hover,
.mobile-nav__link:active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--clr-accent);
}

.mobile-nav__footer {
  padding: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Mobile Nav Accordion (Brands / Categories) ─────────── */
.mobile-nav__section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-nav__section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--ease), color var(--ease);
}

.mobile-nav__section-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--clr-accent);
}

.mobile-nav__section-toggle svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.mobile-nav__section.open .mobile-nav__section-toggle svg {
  transform: rotate(180deg);
}

/* Open/close by animating the grid row from 0fr to 1fr: the body grows to exactly its content height, however many
   brands / categories there are (a fixed max-height let a long Categories list spill over the Login/Register footer).
   No inner scroll: the panel scrolls the whole menu. */
.mobile-nav__section-body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav__section-body > * {
  min-height: 0;
  overflow: hidden;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* the list's own top/bottom padding would otherwise leave a thin strip showing when closed */
.mobile-nav__section:not(.open) .mobile-nav__section-body > * {
  padding-top: 0;
  padding-bottom: 0;
}

.mobile-nav__section.open .mobile-nav__section-body {
  grid-template-rows: 1fr;
}

/* Brands grid inside accordion */
.mobile-brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 0.5rem;
}

.mobile-brands-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: background 0.15s ease;
}

.mobile-brands-grid a:hover {
  background: rgba(255, 255, 255, 1);
}

.mobile-brands-grid img {
  max-width: 64px;
  max-height: 36px;
  object-fit: contain;
  transition: opacity 0.15s ease;
}

.mobile-brands-grid a:hover img {
  opacity: 1;
}

.mobile-brands-grid .brand-initials {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
}

/* Categories list inside accordion */
.mobile-cats-list {
  padding: 0.25rem 0;
}

.mobile-cats-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}

.mobile-cats-list a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--clr-accent);
}

.mobile-cats-list .cat-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;   /* whole image, never cropped / zoomed */
  padding: 4px;
  background: #fff;      /* light tile so dark logos stay visible on the dark menu */
  flex-shrink: 0;
}

.mobile-cats-list .cat-initials {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--clr-accent);
  flex-shrink: 0;
}

.mobile-nav__view-all {
  display: block;
  text-align: center;
  padding: 0.6rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clr-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 0.25rem;
}

/* Regular nav links (non-accordion) */
.mobile-nav__plain-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: background var(--ease), color var(--ease);
}

.mobile-nav__plain-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--clr-accent);
}

/* ── Bottom Navigation (App-style for Mobile) ────────────── */
.bottom-nav {
  display: none;
}

/* removed — shop pages use Sort/Filter bar */

/* ── Shop Sort+Filter Bottom Bar (mobile only) ──────────── */
.shop-bottom-bar {
  display: none;
  /* hidden on desktop */
}

@media (max-width: 1023px) {
  .shop-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 800;
    background: var(--clr-white);
    border-top: 1.5px solid var(--clr-gray-200);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

.shop-bottom-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text);
  transition: color var(--ease), background var(--ease);
  position: relative;
}

.shop-bottom-bar__btn:hover,
.shop-bottom-bar__btn:active {
  color: var(--clr-primary);
  background: var(--clr-primary-bg);
}

.shop-bottom-bar__btn svg {
  flex-shrink: 0;
}

.shop-bottom-bar__divider {
  width: 1.5px;
  background: var(--clr-gray-200);
  margin: 0.85rem 0;
}

.shop-bottom-bar__active-dot {
  width: 7px;
  height: 7px;
  background: var(--clr-primary);
  border-radius: 50%;
  margin-left: 2px;
  flex-shrink: 0;
}

/* ── Main Content ────────────────────────────────────────── */
.site-main {
  min-height: 60vh;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
	background: var(--clr-dark);
	color: rgba(255, 255, 255, 0.7);
	margin-top: 0;
	padding-bottom: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0 var(--space-lg);
}

@media (min-width: 600px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--clr-white);
  letter-spacing: 0.05em;
}

.footer-brand__tagline {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
}

.footer-socials {
  display: flex;
  gap: 0.5rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: background var(--ease), color var(--ease);
}

.footer-socials a:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
}

.footer-col__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--clr-primary);
  display: inline-block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--ease), padding-left var(--ease);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--clr-accent);`
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
	width: 20px;
	height: 20px;
	color: var(--clr-primary-light);
	flex-shrink: 0;
	margin-top: 2px;
}

/* ── Footer Map Embed ────────────────────────────────────── */
.footer-map {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 8px;
  opacity: 0.82;
  transition: opacity 0.2s ease;
  display: block;
}

.footer-map iframe:hover {
  opacity: 1;
}

.footer-map__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--ease);
}

.footer-map__link:hover {
  color: var(--clr-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom a {
  color: var(--clr-primary-light);
}

.footer-bottom a:hover {
  color: var(--clr-accent);
}

.footer-credit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-credit__links {
  display: inline-flex;
  gap: 0.4rem;
}

.footer-credit__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--ease), color var(--ease);
}

.footer-credit__icon svg {
  width: 12px;
  height: 12px;
}

.footer-credit__icon--call:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.footer-credit__icon--whatsapp:hover {
  background: #25d366;
  color: var(--clr-white);
}

.footer-credit__icon--email:hover {
  background: var(--clr-accent);
  color: var(--clr-dark);
}

/* ── Hamburger button ────────────────────────────────────── */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--clr-white);
  flex-shrink: 0;
  transition: background var(--ease);
  margin-left: auto;
  /* pushes to right on mobile */
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hamburger svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

img.custom-logo {
  max-width: 100px;
  height: auto;
  background-color: white;
  border-radius: 100%;
}

/* Cart badge pulse on update */
@keyframes rk-cart-pulse {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.45);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
  }
}

.rk-cart-pulse {
  animation: rk-cart-pulse 0.4s ease;
}

/* Floating Cart Button (Option B) */
.floating-cart-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 64px;
  height: 64px;
  background: var(--clr-primary, #42979d);
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(66, 151, 157, 0.45);
  z-index: 850;
  transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.floating-cart-btn:hover {
  transform: translateY(-4px) scale(1.03);
  background: var(--clr-primary-dark, #337a7f);
  box-shadow: 0 12px 40px rgba(66, 151, 157, 0.6);
}

.floating-cart-badge {
  position: absolute;
  top: -15px;
  right: -7px;
  background: var(--clr-accent, #e8c547);
  color: var(--clr-dark, #1a2e30) !important;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1023px) {
  .floating-cart-btn {
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    right: 1rem;
    width: 40px;
    height: 40px;
    z-index: 950;
  }

  .hero-next,
  .hero-prev {
    width: 30px !important;
    height: 30px !important;
  }
}

.wp-block-woocommerce-empty-cart-block hr.wp-block-separator.has-alpha-channel-opacity.is-style-dots {
  margin-bottom: 100px;
}

/* Hide the "New in store" / related products block on empty cart page */
.wp-block-woocommerce-empty-cart-block hr.wp-block-separator~* {
  display: none !important;
}