/* ============================================
   shoply — Comparison Shopping Service
   Mobile-first · Manrope · Navy & Sky Blue
   ============================================ */

/* --- Self-hosted Manrope (variable, woff2) --- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-greek.woff2") format("woff2");
  unicode-range:
    U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* --- Design Tokens --- */
:root {
  /* Brand — Shoply */
  --shoply-primary: #213054;
  --shoply-secondary: #00a7e1;
  --shoply-accent: #afca0b;
  --shoply-complement: #f7a600;
  --shoply-glow: rgba(0, 167, 225, 0.08);
  --shoply-glow-strong: rgba(0, 167, 225, 0.15);
  --charcoal: #213054;

  /* Aliases */
  --primary: var(--shoply-secondary);
  --primary-light: #33bbeb;
  --primary-dark: #0088bc;
  --cta: var(--shoply-secondary);
  --badge: var(--shoply-accent);

  /* Neutrals — refined warm-neutral palette */
  --white: #ffffff;
  --gray-50: #fafaf9;
  --gray-100: #f5f4f3;
  --gray-150: #eeedec;
  --gray-200: #e5e4e3;
  --gray-300: #d4d3d2;
  --gray-400: #a3a2a1;
  --gray-500: #737271;
  --gray-600: #525150;
  --gray-700: #403f3e;
  --gray-800: #262524;

  /* Semantic */
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;

  /* Surfaces */
  --body-bg: #f8f7f6;
  --card-bg: var(--white);
  --text: #52514f;
  --text-heading: var(--charcoal);

  /* Shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Elevation — refined with warm undertone */
  --shadow-xs: 0 1px 2px rgba(35, 31, 32, 0.04);
  --shadow-sm:
    0 1px 3px rgba(35, 31, 32, 0.05), 0 1px 2px rgba(35, 31, 32, 0.03);
  --shadow: 0 4px 12px rgba(35, 31, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(35, 31, 32, 0.07);
  --shadow-lg: 0 20px 48px rgba(35, 31, 32, 0.1);
  --shadow-card-hover:
    0 16px 40px rgba(0, 167, 225, 0.1), 0 6px 16px rgba(35, 31, 32, 0.06);
  --shadow-card:
    0 1px 3px rgba(35, 31, 32, 0.04), 0 0 0 1px rgba(35, 31, 32, 0.03);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 400ms;
  --dur-slower: 600ms;

  /* Spacing scale (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--body-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
a:hover {
  color: var(--primary-dark);
}
button {
  font-family: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font-family: inherit;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}
@media (min-width: 640px) {
  .container {
    padding: 0 var(--sp-6);
  }
}

.main-content,
.site-main {
  min-height: calc(100vh - 180px);
  padding: 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition:
    box-shadow var(--dur-slow) var(--ease),
    background var(--dur-slow) var(--ease);
}
.site-header.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  min-height: 60px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 32px;
  width: auto;
}
@media (min-width: 768px) {
  .logo img {
    height: 55px;
  }
}

/* Navigation */
.main-nav {
  display: none;
  align-items: center;
  gap: var(--sp-1);
}
.main-nav a {
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.875rem;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition:
    color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: var(--shoply-glow);
}
@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

/* Header actions */
/* Country Switcher */
.country-switcher {
  margin-left: var(--sp-2);
}
.country-select {
  appearance: none;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 6px 28px 6px 10px;
  font-size: 0.8rem;
  color: var(--gray-700);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737271' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.country-select:hover {
  border-color: var(--gray-300);
}
.country-select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
}

/* Header Search */
.header-search {
  position: relative;
  flex: 1;
  max-width: 400px;
  display: none;
}
.header-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  pointer-events: none;
}
.header-search .search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--gray-50);
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
  outline: none;
}
.header-search .search-input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--shoply-glow);
}
.header-search .search-input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}
@media (min-width: 640px) {
  .header-search {
    display: block;
  }
}

/* Legacy search-form — shares styles with header-search */
.search-form {
  position: relative;
  flex: 1;
  max-width: 360px;
  display: none;
}
.search-form input[type="search"] {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--gray-50);
  outline: none;
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.search-form input[type="search"]:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--shoply-glow);
}
.search-form input[type="search"]::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}
@media (min-width: 640px) {
  .search-form {
    display: block;
  }
}

/* Search autocomplete results */
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}
.search-results.active {
  display: block;
}

/* Hero autocomplete — horizontal cards above input */
.search-results--hero {
  top: auto;
  bottom: calc(100% + 8px);
  border-radius: var(--radius-lg);
  max-height: none;
  overflow: visible;
  padding: 6px;
  z-index: 100;
}
.hero-ac-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.hero-ac-scroll::-webkit-scrollbar {
  display: none;
}
.hero-ac-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 260px;
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-100);
  color: inherit;
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.hero-ac-card:hover {
  border-color: var(--primary-light, #00a7e1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.hero-ac-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--gray-50);
  flex-shrink: 0;
}
.hero-ac-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.hero-ac-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-ac-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--dur-fast) var(--ease);
  color: inherit;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover,
.search-result-item.highlighted {
  background: var(--gray-50);
}
.search-result-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  flex-shrink: 0;
}
.search-result-item .title {
  font-weight: 600;
  color: var(--charcoal);
  font-size: 0.875rem;
}
.search-result-item .price {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
}

/* Cart button (cart-icon is legacy alias) */
.cart-btn,
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--charcoal);
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}
.cart-btn:hover,
.cart-icon:hover {
  background: var(--shoply-glow);
  color: var(--primary);
}
.cart-btn svg,
.cart-icon svg {
  width: 22px;
  height: 22px;
}
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition:
    transform var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
  backdrop-filter: blur(2px);
}
.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-logo {
  height: 28px;
  width: auto;
}
.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--gray-500);
  padding: var(--sp-1);
  line-height: 1;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}
.mobile-nav-close:hover {
  color: var(--charcoal);
}

.mobile-nav-search {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-nav-search input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  outline: none;
  color: var(--charcoal);
  transition: border-color var(--dur) var(--ease);
}
.mobile-nav-search input:focus {
  border-color: var(--primary);
}

.mobile-nav-links {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-3) 0;
}
.mobile-nav-links a {
  display: block;
  padding: var(--sp-3) var(--sp-5);
  color: var(--charcoal);
  font-weight: 600;
  font-size: 1rem;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}
.mobile-nav-links a:hover {
  background: var(--shoply-glow);
  color: var(--primary);
}

@media (min-width: 768px) {
  .mobile-nav,
  .mobile-nav-overlay {
    display: none !important;
  }
}

/* Legacy main-nav.active fallback */
.main-nav.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--white);
  padding: var(--sp-6) var(--sp-4);
  gap: var(--sp-2);
  z-index: 99;
  animation: fadeSlideDown var(--dur) var(--ease);
}
.main-nav.active a {
  font-size: 1.1rem;
  padding: var(--sp-3) var(--sp-4);
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  margin-top: 20px;
  background: var(
    --hero-gradient,
    linear-gradient(135deg, #213054 0%, #1a3a5c 40%, #0d4f7a 70%, #00a7e1 100%)
  );
  background-size: cover;
  background-position: center;
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--sp-10) var(--sp-6);
  overflow: visible;
  z-index: 2;
  margin-bottom: var(--sp-10);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 167, 225, 0.2) 0%,
    transparent 65%
  );
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(175, 202, 11, 0.1) 0%,
    transparent 65%
  );
  pointer-events: none;
  animation: heroPulse 10s ease-in-out infinite alternate-reverse;
}
@keyframes heroPulse {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.15) translate(20px, -10px);
  }
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}
.hero p {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  opacity: 0.75;
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: var(--sp-8);
  position: relative;
  z-index: 1;
  font-weight: 400;
}

/* Hero search bar */
.hero-search {
  display: flex;
  max-width: 540px;
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.hero-search .search-input,
.hero-search button {
  border-radius: 0;
}
.hero-search .search-input:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}
.hero-search button:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}
.hero-search .search-input {
  flex: 1;
  padding: 16px 22px;
  border: none;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  outline: none;
  background: var(--white);
}
.hero-search .search-input::placeholder {
  color: var(--gray-400);
}
.hero-search button {
  padding: 16px 28px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background var(--dur) var(--ease);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.hero-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.hero-search button:hover {
  background: var(--primary-dark);
}
.hero-search-icon {
  display: none;
}

@media (max-width: 767px) {
  .hero-search-text {
    display: none;
  }
  .hero-search-icon {
    display: block;
  }
  .hero-search button {
    padding: 14px 18px;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: var(--sp-16) var(--sp-12);
  }
  .hero-search {
    border-radius: var(--radius-lg);
  }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  margin-bottom: var(--sp-12);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-6);
  gap: var(--sp-4);
}
.section-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}
.section-header a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition:
    gap var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.section-header a:hover {
  gap: 8px;
  color: var(--primary-dark);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: var(--sp-4) 0 var(--sp-5);
  font-size: 0.78rem;
  font-weight: 500;
}
.breadcrumbs a {
  color: var(--gray-400);
  transition: color var(--dur-fast) var(--ease);
}
.breadcrumbs a:hover {
  color: var(--primary);
}
.breadcrumbs .separator {
  color: var(--gray-300);
  font-size: 0.65rem;
}
.breadcrumbs .current {
  color: var(--charcoal);
  font-weight: 600;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
  }
}
@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
  }
}
/* ============================================
   PRODUCT CARD — Premium ecommerce
   ============================================ */
.product-card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--dur) var(--ease-spring),
    box-shadow var(--dur-slow) var(--ease);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.product-card .product-link {
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.product-card .product-image {
  position: relative;
  aspect-ratio: 1;
  background: #fff;
  overflow: hidden;
}
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--dur-slower) var(--ease-out);
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Badges — pill-shaped, premium feel */
.discount-badge {
  position: absolute;
  top: var(--sp-5);
  left: var(--sp-5);
  background: var(--badge);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  box-shadow: none;
}
.discount-badge.large {
  font-size: 0.85rem;
  padding: 6px 14px;
  top: 40px;
  left: 40px;
}

.stock-badge {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stock-badge.out-of-stock {
  background: var(--gray-800);
  color: var(--white);
}

.compare-badge {
  position: absolute;
  bottom: var(--sp-2);
  left: var(--sp-2);
  background: rgba(35, 31, 32, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Card info */
.product-card .product-info {
  padding: var(--sp-3) var(--sp-3) 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card .product-brand {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.product-card .product-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--sp-2);
  flex: 1;
}
.product-card .product-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.product-card .product-title a:hover {
  color: var(--primary);
}
.product-card .product-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.product-card .price-current {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.product-card .price-original {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-400);
  text-decoration: line-through;
}
.product-card .price-from {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: lowercase;
}
.product-card .price-stores {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gray-400);
  white-space: nowrap;
}
.product-card .card-stores-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gray-500);
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  width: fit-content;
}

/* On larger screens, highlight sale prices */
.product-card .price-current.on-sale {
  color: var(--primary);
}

/* Card action buttons — dual CTA layout */
.product-card .product-card-actions {
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.product-card .card-buy-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cta);
  background: var(--white);
  border: 1.5px solid var(--cta);
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}
.product-card .card-buy-btn:hover {
  background: var(--cta);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: none;
}
.product-card .card-buy-btn svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Buy icon: always visible. Text: desktop only */
.btn-icon-mobile {
  display: inline-block;
}
@media (max-width: 767px) {
  .btn-text-desktop {
    display: none;
  }
  .product-card .card-buy-btn,
  .product-card .card-details-btn {
    padding: 4px 0;
    flex: 1;
    min-height: 40px;
    min-width: 50px;
  }
  .product-card .product-card-actions {
    justify-content: center;
  }
}
.product-card .card-details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}
.product-card .card-details-btn:hover {
  background: var(--gray-200);
  color: var(--charcoal);
}
.product-card .card-details-btn svg {
  flex-shrink: 0;
  opacity: 0.65;
  transition: transform var(--dur-fast) var(--ease);
}
.product-card .card-details-btn:hover svg {
  transform: translateX(2px);
}

/* Card add-to-cart floating button */
.product-card .card-add-btn {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--charcoal);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease-spring),
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
  z-index: 2;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.product-card:hover .card-add-btn {
  opacity: 1;
  transform: scale(1);
}
.product-card .card-add-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 4px 14px rgba(0, 167, 225, 0.3);
}
.product-card .card-add-btn svg {
  width: 15px;
  height: 15px;
}

@media (min-width: 640px) {
  .product-card .product-info {
    padding: var(--sp-3) var(--sp-4) 0;
  }
  .product-card .product-card-actions {
    padding: var(--sp-2) var(--sp-4) var(--sp-4);
  }
  .product-card .product-title {
    font-size: 0.85rem;
  }
  .product-card .price-current {
    font-size: 1.15rem;
  }
  .product-card .card-buy-btn,
  .product-card .card-details-btn {
    font-size: 0.75rem;
    padding: 9px 12px;
  }
}

/* ============================================
   CATEGORY GRID
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
  }
}
@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  transition:
    transform var(--dur) var(--ease-spring),
    box-shadow var(--dur-slow) var(--ease);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-card:hover::before {
  opacity: 1;
}

.category-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 4px;
  line-height: 1.3;
}
.category-count {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-400);
}

/* ============================================
   SIDEBAR & FILTERS
   ============================================ */
.page-with-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
@media (min-width: 768px) {
  .page-with-sidebar {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--sp-8);
  }
}

/* Filter toggle button — mobile only */
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  align-self: flex-start;
  transition: box-shadow var(--dur-fast) var(--ease);
}
.filter-toggle:active {
  box-shadow: var(--shadow-card);
}
@media (min-width: 768px) {
  .filter-toggle {
    display: none !important;
  }
  .filter-overlay {
    display: none !important;
  }
}

/* Overlay */
.filter-overlay {
  display: none;
}

/* Sidebar — drawer on mobile, static on desktop */
.sidebar {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
  align-self: start;
}

/* Drawer header — mobile only */
.filter-drawer-header {
  display: none;
}

/* Drawer actions wrapper */
.filter-drawer-actions {
  margin-top: var(--sp-4);
}

@media (max-width: 767px) {
  /* Hide sidebar by default on mobile */
  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    z-index: 1001;
    border-radius: 0;
    padding: 0;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }
  .sidebar .filters-form {
    flex: 1;
    padding: 0 var(--sp-5) var(--sp-5);
    display: flex;
    flex-direction: column;
  }
  .filter-drawer-actions {
    margin-top: auto;
    padding-top: var(--sp-4);
    position: sticky;
    bottom: 0;
    background: var(--card-bg);
    padding-bottom: var(--sp-5);
  }

  /* Drawer header */
  .filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-4) var(--sp-5);
    border-bottom: 1px solid var(--gray-100);
    position: sticky;
    top: 0;
    background: var(--card-bg);
    z-index: 1;
  }
  .filter-drawer-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--charcoal);
  }
  .filter-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    cursor: pointer;
    color: var(--gray-600);
    transition: background var(--dur-fast) var(--ease);
  }
  .filter-drawer-close:hover {
    background: var(--gray-200);
  }

  /* Overlay */
  .filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  /* Open state — toggled via body class */
  .filters-open .sidebar {
    transform: translateX(0);
  }
  .filters-open .filter-overlay {
    display: block;
  }
  .filters-open {
    overflow: hidden;
  }
}

@media (min-width: 768px) {
  .sidebar {
    position: sticky;
    top: 80px;
  }
  .filter-overlay {
    display: none !important;
  }
}

.filter-section {
  margin-bottom: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--gray-150);
}
.filter-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  color: var(--gray-600);
  cursor: pointer;
  padding: 2px 0;
  transition: color var(--dur-fast) var(--ease);
}
.filter-option:hover {
  color: var(--charcoal);
}
.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.filter-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
}

.price-range {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}
.price-input {
  flex: 1;
  min-width: 0;
  max-width: 100px;
  padding: var(--sp-2) var(--sp-3);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--dur) var(--ease);
  -moz-appearance: textfield;
}
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.price-input:focus {
  border-color: var(--primary);
}

.price-inputs {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
}
.price-separator {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.filter-options-scroll {
  max-height: 200px;
  overflow-y: auto;
  padding-right: var(--sp-2);
}
.filter-options-scroll::-webkit-scrollbar {
  width: 4px;
}
.filter-options-scroll::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 2px;
}
.filter-options-scroll::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 2px;
}

.filter-option .filter-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-submit {
  display: block;
  width: 100%;
  margin-top: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.filter-submit:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}
.filter-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-clear {
  display: block;
  text-align: center;
  margin-top: var(--sp-3);
  padding: var(--sp-2);
  font-size: 0.8rem;
  color: var(--gray-500);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease);
}
.filter-clear:hover {
  color: var(--primary);
  background: var(--gray-100);
}

.filter-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) 0;
  color: var(--gray-600);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
.filter-link:hover {
  color: var(--primary);
}
.filter-link .filter-label {
  flex: 1;
}

/* Store Header */
.store-header {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.store-logo {
  flex-shrink: 0;
}
.store-logo img {
  max-height: 48px;
  max-width: 140px;
  object-fit: contain;
}
.store-info {
  flex: 1;
  min-width: 150px;
}
.store-info h1 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0;
}
.store-description {
  color: var(--gray-500);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: var(--sp-1);
}
.store-stats {
  flex-shrink: 0;
}
.store-count-inline {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* Listing Content (grid second column) */
.listing-content {
  min-width: 0; /* Prevent grid blowout */
}

/* ============================================
   SORT BAR
   ============================================ */
.sort-bar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
  margin: 0;
  padding-right: var(--sp-3);
  border-right: 1px solid var(--gray-200);
  margin-right: var(--sp-2);
}
.sort-dropdown {
  appearance: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 5px 28px 5px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23737271' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  margin-left: auto;
}
.sort-dropdown:hover {
  border-color: var(--gray-300);
}
.sort-dropdown:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
  padding: var(--sp-3) var(--sp-4);
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}
.sort-bar a {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  transition:
    color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
}
.sort-bar a:hover {
  background: var(--gray-100);
}

/* ============================================
   PRODUCT DETAIL PAGE — Mobile-first, sticky image desktop
   ============================================ */

/* Breadcrumbs */
.pdp-breadcrumbs {
  font-size: 0.75rem;
  color: var(--gray-400);
  padding: var(--sp-3) 0;
}
.pdp-breadcrumbs a {
  color: var(--gray-500);
  text-decoration: none;
}
.pdp-breadcrumbs a:hover {
  color: var(--primary);
}
.pdp-breadcrumbs .separator {
  margin: 0 4px;
}
.pdp-breadcrumbs .current {
  color: var(--gray-600);
}
@media (max-width: 767px) {
  .pdp-breadcrumbs {
    display: none;
  }
}

/* Remove top spacing when PDP is the main content */
.site-main:has(.pdp) {
  padding-top: 0;
}

/* Screen-reader only (breadcrumbs kept for SEO) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* PDP wrapper */
.pdp {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .pdp {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1600px;
    margin: 0 auto;
    gap: var(--sp-6);
    padding: 0 var(--sp-6);
    margin-top: 0;
  }
}

/* Left column: image (sticky on desktop) */
.pdp-left {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 768px) {
  .pdp-left {
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
  }
  .pdp-left.has-thumbs {
    display: flex;
    flex-direction: row;
  }
  .pdp-left.has-thumbs .pdp-thumbs {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    padding: var(--sp-3);
    overflow-y: auto;
    flex-shrink: 0;
  }
  .pdp-left.has-thumbs .pdp-image {
    flex: 1;
  }
}
.pdp-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  max-height: 70vh;
}
.pdp-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--sp-4);
}
@media (min-width: 768px) {
  .pdp-image {
    max-height: none;
  }
}

/* Mobile gallery — swipeable with arrows and dots */
.pdp-mobile-gallery {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--gray-50);
  max-height: 70vh;
}
.pdp-mobile-gallery .pdp-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pdp-mobile-gallery .pdp-gallery-track::-webkit-scrollbar {
  display: none;
}
.pdp-gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;
}
.pdp-gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: var(--sp-4);
}
.pdp-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--gray-600);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
}
.pdp-gallery-prev {
  left: 8px;
}
.pdp-gallery-next {
  right: 8px;
}
.pdp-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}
.pdp-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: background var(--dur-fast) var(--ease);
}
.pdp-gallery-dot.active {
  background: var(--primary);
}

/* Desktop: hide mobile gallery, show thumbs + main image */
@media (min-width: 768px) {
  .pdp-mobile-gallery {
    display: none;
  }
  .pdp-image {
    display: block;
  }
}
/* Mobile: hide desktop image, show mobile gallery */
@media (max-width: 767px) {
  .pdp-left.has-thumbs .pdp-image {
    display: none;
  }
}

/* Right column */
.pdp-right {
  padding: var(--sp-5) var(--sp-4);
}
@media (min-width: 768px) {
  .pdp-right {
    padding: var(--sp-4) 0;
  }
}

/* Thumbnails — hidden on mobile, vertical on desktop (via .has-thumbs) */
.pdp-thumbs {
  display: none;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  overflow-x: auto;
}
@media (min-width: 768px) {
  .pdp-thumbs {
    display: flex;
  }
}
.pdp-thumbs .thumb {
  width: 56px;
  height: 56px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--card-bg);
  transition: border-color var(--dur-fast) var(--ease);
  padding: 0;
}
.pdp-thumbs .thumb:hover,
.pdp-thumbs .thumb.active {
  border-color: var(--primary);
}
.pdp-thumbs .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

/* Comparison inline — inside the right column on desktop */
.pdp-comparison-inline {
  margin-top: var(--sp-5);
  border-top: 1px solid var(--gray-200);
  padding-top: var(--sp-4);
}

/* Brand */
.pdp-brand {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  margin-bottom: var(--sp-1);
  transition: opacity var(--dur-fast) var(--ease);
}
.pdp-brand:hover {
  opacity: 0.7;
}

/* Title */
.pdp-title {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-3);
}

/* Price */
.pdp-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.pdp-price-now {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pdp-price-was {
  font-size: 1rem;
  color: var(--gray-400);
  text-decoration: line-through;
}
.pdp-price-save {
  display: inline-block;
  padding: 3px 10px;
  background: var(--shoply-glow);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
}

/* Meta row: availability + shipping inline */
.pdp-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.pdp-avail {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.pdp-avail--in_stock {
  color: var(--success);
  background: var(--success-bg);
}
.pdp-avail--out_of_stock {
  color: var(--danger);
  background: var(--danger-bg);
}
.pdp-avail--preorder,
.pdp-avail--backorder {
  color: var(--warning);
  background: var(--warning-bg);
}
.pdp-shipping {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
}
.pdp-shipping--free {
  color: var(--success);
  font-weight: 600;
}

/* CTA row — store button + wishlist inline */
.pdp-cta-row {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.pdp-cta {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px var(--sp-6);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--cta);
  border: none;
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    background var(--dur) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.pdp-wishlist-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  color: var(--gray-400);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.pdp-wishlist-btn svg {
  width: 28px;
  height: 28px;
}
.pdp-wishlist-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pdp-wishlist-btn.wishlisted {
  color: var(--primary);
  border-color: var(--primary);
}
.pdp-cta:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}
.pdp-cta:active {
  transform: translateY(0);
}

/* Cart row */
.pdp-cart-row {
  margin-top: var(--sp-2);
}

/* Affiliate note */
.pdp-affiliate-note {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: var(--sp-3);
  line-height: 1.5;
}

/* Compare pill — floating on mobile */
.pdp-compare-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: var(--sp-6);
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}
.pdp-compare-pill:hover {
  background: var(--primary);
  color: var(--white);
}

/* Below-fold sections */
.pdp-section {
  margin-bottom: var(--sp-8);
}

/* Description */
.pdp-description h3,
.pdp-attributes h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: var(--sp-4);
}
.pdp-description .description-content {
  color: var(--text);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* Attributes */
.pdp-attributes dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2) var(--sp-4);
  font-size: 0.875rem;
}
.pdp-attributes dt {
  font-weight: 600;
  color: var(--gray-500);
}
.pdp-attributes dd {
  color: var(--charcoal);
}

/* Related products section */
.related-products {
  margin-top: var(--sp-10);
}
.related-products h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: var(--sp-5);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 167, 225, 0.2);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 167, 225, 0.3);
}

.btn-large {
  padding: var(--sp-4) var(--sp-8);
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gray-200);
  color: var(--charcoal);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Add to cart / wishlist button (PDP fallback) */
.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--charcoal);
  color: var(--white);
  border: none;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.add-to-cart-btn:hover {
  background: var(--primary);
  transform: translateY(-1px);
}
.add-to-cart-btn svg {
  width: 18px;
  height: 18px;
}

/* Wishlist heart button on product cards */
.wishlist-btn.add-to-cart-btn {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--gray-500);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.wishlist-btn.add-to-cart-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  transform: scale(1);
}
.product-card:hover .wishlist-btn.add-to-cart-btn {
  opacity: 1;
  transform: scale(1);
}
.wishlist-btn.add-to-cart-btn.wishlisted {
  opacity: 1;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1);
}
.wishlist-btn.add-to-cart-btn svg {
  width: 18px;
  height: 18px;
}

/* PDP wishlist button */
.pdp-wishlist-btn.add-to-cart-btn {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--gray-200);
  padding: var(--sp-3) var(--sp-5);
  font-weight: 600;
}
.pdp-wishlist-btn.add-to-cart-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--shoply-glow);
  transform: none;
}
.pdp-wishlist-btn.add-to-cart-btn.wishlisted {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--shoply-glow);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
/* ---- Comparison — Card-based layout ---- */
.cmp {
  margin: var(--sp-6) 0;
}
.cmp-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.cmp-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--charcoal);
}
.cmp-count {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* Each store row */
.cmp-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.cmp-row {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease);
}
.cmp-row:hover {
  box-shadow: var(--shadow-card-hover);
}

/* Best price highlight */
.cmp-row--best {
  border: 1.5px solid var(--success);
  position: relative;
}
.cmp-best-label {
  background: var(--success);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  text-align: center;
}

/* Row inner layout */
.cmp-row-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
}

/* Store block */
.cmp-store {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
}
.cmp-store-logo {
  max-height: 26px;
  max-width: 72px;
  object-fit: contain;
  flex-shrink: 0;
}
.cmp-store-name {
  font-weight: 700;
  color: var(--charcoal);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Price + meta */
.cmp-details {
  flex: 1;
  min-width: 0;
}
.cmp-price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}
.cmp-price-now {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.cmp-price--best {
  color: var(--success);
}
.cmp-price-was {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-decoration: line-through;
}
.cmp-variant {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Meta pills: availability, shipping, returns */
.cmp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}
.cmp-avail {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.cmp-avail--success {
  background: var(--success-bg);
  color: var(--success);
}
.cmp-avail--danger {
  background: var(--danger-bg);
  color: var(--danger);
}
.cmp-avail--warning {
  background: var(--warning-bg);
  color: var(--warning);
}
.cmp-avail--neutral {
  background: var(--gray-100);
  color: var(--gray-500);
}
.cmp-ship {
  font-size: 0.7rem;
  color: var(--gray-500);
  white-space: nowrap;
}
.cmp-ship--free {
  color: var(--success);
  font-weight: 600;
}

/* Size pills — bordered badges like Glami */
.cmp-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.cmp-size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  line-height: 1.3;
}

/* CTA button */
.cmp-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--white);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}
.cmp-cta:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}
.cmp-cta--best {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.cmp-cta--best:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Desktop: row layout */
@media (min-width: 768px) {
  .cmp-row-inner {
    flex-wrap: nowrap;
    padding: var(--sp-4) var(--sp-6);
  }
  .cmp-store {
    width: 180px;
    flex-shrink: 0;
  }
  .cmp-price-now {
    font-size: 1.3rem;
  }
}

/* Mobile: stack price below store, CTA full-width */
@media (max-width: 767px) {
  .cmp-row-inner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-2);
  }
  .cmp-store {
    padding-bottom: var(--sp-2);
    border-bottom: 1px solid var(--gray-100);
  }
  .cmp-cta {
    justify-content: center;
    width: 100%;
    padding: 12px;
  }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  margin-top: var(--sp-8);
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--sp-3);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--dur) var(--ease);
}
.pagination a {
  background: var(--card-bg);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xs);
}
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--shoply-glow);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 167, 225, 0.12);
}
.pagination .current {
  background: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0, 167, 225, 0.2);
}
.pagination .dots {
  color: var(--gray-400);
  border: none;
}

/* ============================================
   CART PAGE — Mobile-first
   ============================================ */
/* -- Wishlist page grid layout (single column) -- */
.wishlist-grid,
.cart-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* -- Single cart item card -- */
.cart-item {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: box-shadow var(--dur) var(--ease);
}
.cart-item:hover {
  box-shadow: var(--shadow-sm);
}

/* -- Main row: image + details + remove btn -- */
.cart-item-main {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-title {
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.45;
  transition: color var(--dur-fast) var(--ease);
}
.cart-item-title:hover {
  color: var(--primary);
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px var(--sp-2);
  font-size: 0.76rem;
  color: var(--gray-400);
  line-height: 1.4;
}
.cart-item-brand {
  font-weight: 500;
}
.cart-item-meta .cart-item-brand + .cart-item-store::before {
  content: "·";
  margin-right: var(--sp-2);
  color: var(--gray-300);
}
.cart-item-store {
  color: var(--gray-500);
}

.cart-item-price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin-top: 2px;
}
.cart-item-price .price-current {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
}
.cart-item-price .price-current.on-sale {
  color: var(--primary);
}
.cart-item-price .price-original {
  font-size: 0.78rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

/* -- Remove button (top-right X) -- */
.cart-item-remove {
  flex-shrink: 0;
  margin-left: auto;
}
.cart-remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--gray-400);
  transition:
    color var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease);
  padding: 0;
}
.cart-remove-btn:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

/* -- Actions row: checkout CTA -- */
.cart-item-actions {
  display: flex;
}
.cart-item-checkout {
  flex: 1;
  text-decoration: none;
  font-size: 0.84rem;
  padding: var(--sp-2) var(--sp-4);
  text-align: center;
  gap: var(--sp-2);
}
.cart-item-checkout svg {
  flex-shrink: 0;
}

/* -- Summary sidebar -- */
.cart-summary {
  background: #ffd3d3;
  border-radius: var(--radius);
  border: 1px solid #f5b8b8;
  padding: var(--sp-5);
  color: var(--charcoal);
}
.cart-summary-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--sp-4);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  color: var(--charcoal);
}
.cart-summary-value {
  font-weight: 600;
  color: var(--charcoal);
}
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--sp-3) 0;
  margin-bottom: var(--sp-4);
  font-weight: 700;
  color: var(--charcoal);
}
.cart-total-price {
  font-size: 1.25rem;
  color: var(--charcoal);
  font-weight: 800;
}
.cart-summary-note {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.5;
  margin-bottom: var(--sp-4);
}
.cart-continue-link {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.cart-continue-link:hover {
  background: var(--gray-700);
  color: var(--white);
}

/* -- Desktop wishlist/cart layout -- */
@media (min-width: 768px) {
  .cart-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--sp-6);
    align-items: start;
  }
  .cart-summary {
    position: sticky;
    top: 80px;
  }
  .cart-item {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-4);
  }
  .cart-item-main {
    flex: 1;
    min-width: 0;
  }
  .cart-item-image {
    width: 72px;
    height: 72px;
  }
  .cart-item-actions {
    flex-shrink: 0;
  }
  .cart-item-checkout {
    white-space: nowrap;
  }
}

/* Wishlist continue browsing link */
.wishlist-grid .cart-continue-link {
  align-self: flex-start;
  display: inline-block;
  width: auto;
}

/* ============================================
   STORE CARDS
   ============================================ */
.stores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}
@media (min-width: 640px) {
  .stores-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .stores-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.store-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform var(--dur) var(--ease-spring),
    box-shadow var(--dur-slow) var(--ease);
  display: flex;
  flex-direction: column;
}
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.store-card-logo {
  padding: var(--sp-5);
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-card-logo img {
  max-height: 56px;
  max-width: 180px;
  object-fit: contain;
}
.store-card-placeholder {
  width: 56px;
  height: 56px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
}

.store-card-body {
  padding: var(--sp-4) var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.store-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--sp-2);
}
.store-card-desc {
  color: var(--gray-500);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: var(--sp-4);
  flex: 1;
}
.store-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.store-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

/* Category card enhancements */
.category-sub {
  display: block;
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 2px;
}
.category-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-4);
}
.category-count-badge {
  background: var(--gray-100);
  color: var(--gray-600);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
}
.category-arrow {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
}

/* Brands Grid */
/* Alphabet index */
.brands-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: var(--sp-8);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 60px;
  background: var(--white);
  z-index: 5;
}
.brands-alpha-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-300);
  text-decoration: none;
  transition: all 0.15s ease;
}
.brands-alpha-link.active {
  color: var(--charcoal);
  cursor: pointer;
}
.brands-alpha-link.active:hover {
  background: var(--primary);
  color: var(--white);
}

/* Brand sections */
.brands-list {
  padding-bottom: var(--sp-12);
}
.brands-section {
  display: flex;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--gray-100);
  scroll-margin-top: 110px;
}
.brands-letter {
  flex-shrink: 0;
  width: 48px;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  padding-top: 2px;
}
.brands-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex: 1;
}
.brands-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 16px 6px 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.brands-item:hover .brands-item-name {
  color: var(--primary);
}
.brands-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
  transition: color 0.15s ease;
}
.brands-item-count {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
}

@media (max-width: 639px) {
  .brands-section {
    flex-direction: column;
    gap: var(--sp-2);
  }
  .brands-letter {
    width: auto;
    font-size: 1.5rem;
  }
  .brands-alpha-link {
    width: 30px;
    height: 30px;
    font-size: 2rem;
  }
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content {
  color: var(--text);
  line-height: 1.85;
  font-size: 1rem;
}
.page-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--charcoal);
  margin: var(--sp-6) 0 var(--sp-3);
}
.page-content p {
  margin-bottom: var(--sp-4);
}
.page-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   SEARCH PAGE FORM
   ============================================ */
.search-page-form {
  margin-bottom: var(--sp-6);
}
.search-page-input-wrap {
  display: flex;
  gap: var(--sp-2);
  max-width: 600px;
}
.search-page-input {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--charcoal);
  outline: none;
  transition: border-color var(--dur) var(--ease);
}
.search-page-input:focus {
  border-color: var(--primary);
}

/* Sort bar enhancements */
.sort-options {
  display: flex;
  gap: var(--sp-1);
  font-size: 0.8rem;
}
.sort-option {
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
}
.sort-option:hover {
  background: var(--gray-100);
  color: var(--charcoal);
}
.sort-option.active {
  color: var(--primary);
  background: var(--shoply-glow);
}
.sort-count {
  color: var(--gray-400);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Page article */
.page-article {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--sp-6) var(--sp-8);
  margin-bottom: var(--sp-6);
}
.page-article-title {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: var(--sp-6);
  letter-spacing: -0.01em;
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
  text-align: center;
  padding: var(--sp-12) var(--sp-6);
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.empty-state svg {
  width: 56px;
  height: 56px;
  color: var(--gray-300);
  margin: 0 auto var(--sp-4);
}
.empty-state h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--sp-2);
}
.empty-state p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: var(--sp-5);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--sp-16);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0.5;
}

/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding: var(--sp-10) 0 var(--sp-6);
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.footer-logo {
  height: 32px;
  width: auto;
}
.footer-brand img {
  height: 30px;
  width: auto;
}
.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-heading {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer-links li {
  list-style: none;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}
.footer-links a:hover {
  color: var(--white);
}

/* Legacy footer aliases (footer-inner -> footer-grid, footer-section -> footer-col) */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  padding: var(--sp-10) 0 var(--sp-6);
}
@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.footer-section h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
}
.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer-section a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}
.footer-section a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--sp-5) 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  font-size: 0.8rem;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-disclaimer,
.footer-bottom .disclaimer {
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ============================================
   UTILITIES
   ============================================ */
/* .sr-only defined above in PDP section */

/* Page heading pattern */
.page-heading {
  margin-bottom: var(--sp-6);
}
.page-heading h1 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.page-heading p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-top: var(--sp-1);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Staggered entrance for product cards */
.product-grid .product-card {
  animation: fadeUp var(--dur-slow) var(--ease-out) both;
}
.product-grid .product-card:nth-child(1) {
  animation-delay: 0ms;
}
.product-grid .product-card:nth-child(2) {
  animation-delay: 40ms;
}
.product-grid .product-card:nth-child(3) {
  animation-delay: 80ms;
}
.product-grid .product-card:nth-child(4) {
  animation-delay: 120ms;
}
.product-grid .product-card:nth-child(5) {
  animation-delay: 160ms;
}
.product-grid .product-card:nth-child(6) {
  animation-delay: 200ms;
}
.product-grid .product-card:nth-child(7) {
  animation-delay: 240ms;
}
.product-grid .product-card:nth-child(8) {
  animation-delay: 280ms;
}
.product-grid .product-card:nth-child(9) {
  animation-delay: 320ms;
}
.product-grid .product-card:nth-child(10) {
  animation-delay: 360ms;
}

/* Category card entrance */
.categories-grid .category-card {
  animation: fadeUp var(--dur-slow) var(--ease-out) both;
}
.categories-grid .category-card:nth-child(1) {
  animation-delay: 0ms;
}
.categories-grid .category-card:nth-child(2) {
  animation-delay: 50ms;
}
.categories-grid .category-card:nth-child(3) {
  animation-delay: 100ms;
}
.categories-grid .category-card:nth-child(4) {
  animation-delay: 150ms;
}
.categories-grid .category-card:nth-child(5) {
  animation-delay: 200ms;
}
.categories-grid .category-card:nth-child(6) {
  animation-delay: 250ms;
}
.categories-grid .category-card:nth-child(7) {
  animation-delay: 300ms;
}
.categories-grid .category-card:nth-child(8) {
  animation-delay: 350ms;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-100) 25%,
    var(--gray-50) 50%,
    var(--gray-100) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Back-to-top (styled via JS, these override) */
.back-to-top {
  background: var(--primary) !important;
  border-radius: var(--radius) !important;
  font-weight: 800 !important;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
