/* ═══════════════════════════════════════════════════════════════
   Namaste Imports – Shop (theme matches Contact: crimson, navy, gold)
═══════════════════════════════════════════════════════════════ */

/* Dark body so no white/cream shows while scrolling (nav + hero area) */
.shop-page body {
  background: #0d1520;
  color: var(--dark);
}
.shop-page .shop-filter-chips,
.shop-page .shop-container {
  background: var(--cream);
}

/* Shop hero: same gradient + decorative pattern as Featured page */
.shop-page .page-hero {
  background: linear-gradient(135deg, var(--deep-crimson), var(--crimson) 50%, var(--navy));
  position: relative;
  overflow: hidden;
  padding: 44px 48px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-page .page-hero .page-hero-content {
  max-width: 640px;
}
.shop-page .page-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  margin-bottom: 2px;
}
.shop-page .page-hero p {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 10px;
}
/* Hero CTAs: primary gold + secondary outline to Featured */
.page-hero .page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
}

.page-hero .page-hero-actions .btn-shop-collection {
  margin-top: 0;
}

.page-hero .btn-shop-collection {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.page-hero .btn-shop-collection:hover {
  background: var(--gold-light);
  color: var(--dark);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.page-hero .btn-shop-featured {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  color: var(--white);
  background: transparent;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.page-hero .btn-shop-featured:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-1px);
}

/* ── Layout ── */
.shop-page .shop-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 56px);
}

.shop-page .shop-layout {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

/* ── Filter chips (active filters bar) ── */
.shop-page .shop-filter-chips {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px clamp(24px, 5vw, 56px) 0;
}

.shop-page .shop-filter-chips-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 63, 135, 0.12);
  border-radius: 4px;
}

.shop-page .shop-filter-chips-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 600;
}

.shop-page .shop-filter-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-page .shop-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(200, 16, 46, 0.08);
  color: var(--crimson);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 4px;
}

.shop-page .shop-filter-chips-clear {
  margin-left: auto;
  padding: 6px 14px;
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(0, 63, 135, 0.3);
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.shop-page .shop-filter-chips-clear:hover {
  background: rgba(0, 63, 135, 0.08);
  color: var(--deep-crimson);
}

/* ── Sidebar (Contact theme: crimson, navy, Cinzel) ── */
.shop-page .sidebar {
  width: 220px;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  position: sticky;
  top: 90px;
}

.shop-page .sidebar h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 0;
  border: none;
}

.shop-page .sidebar-categories-wrap {
  margin-bottom: 32px;
  padding: 20px 18px;
  border: 1px solid rgba(0, 63, 135, 0.15);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 252, 248, 0.85) 100%);
  box-shadow: 0 2px 12px rgba(0, 63, 135, 0.06);
}

.shop-page .sidebar-categories-heading {
  margin-bottom: 14px;
  font-size: 0.9rem;
}

/* Custom categories dropdown: always opens downward below trigger */
.shop-page .sidebar-categories-dropdown {
  position: relative;
  width: 100%;
}

.shop-page .sidebar-categories-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 40px 12px 16px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid rgba(0, 63, 135, 0.2);
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.shop-page .sidebar-categories-trigger:hover {
  border-color: rgba(200, 16, 46, 0.4);
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.08);
}

.shop-page .sidebar-categories-trigger:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.shop-page .sidebar-categories-dropdown[data-open="true"] .sidebar-categories-trigger {
  border-color: var(--crimson);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shop-page .sidebar-categories-trigger-text {
  flex: 1;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-break: break-word;
  letter-spacing: 0.02em;
}

.shop-page .sidebar-categories-trigger-caret {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23003f87' d='M7 9.5L2.5 5h9z'/%3E%3C/svg%3E") no-repeat center;
  transition: transform 0.25s ease;
  opacity: 0.85;
}

.shop-page .sidebar-categories-dropdown[data-open="true"] .sidebar-categories-trigger-caret {
  transform: rotate(180deg);
  opacity: 1;
}

/* Panel opens downward: positioned below trigger (never above) */
.shop-page .sidebar-categories-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0;
  max-height: 340px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--crimson);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 28px rgba(0, 63, 135, 0.12), 0 2px 8px rgba(200, 16, 46, 0.06);
  z-index: 100;
  padding: 0;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.shop-page .sidebar-categories-panel[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.shop-page .sidebar-categories-search-wrap {
  flex-shrink: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 63, 135, 0.1);
  background: rgba(0, 63, 135, 0.04);
}

.shop-page .sidebar-categories-search-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 12px center;
  border: 1px solid rgba(0, 63, 135, 0.15);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-page .sidebar-categories-search-input::placeholder {
  color: var(--gray);
}

.shop-page .sidebar-categories-search-input:hover,
.shop-page .sidebar-categories-search-input:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.1);
}

.shop-page .sidebar-categories-options {
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0;
  max-height: 280px;
  /* Firefox: thumb + track (site palette from :root) */
  scrollbar-color: var(--crimson) color-mix(in srgb, var(--navy) 18%, var(--cream));
}

.shop-page .sidebar-categories-options::-webkit-scrollbar {
  width: 4px;
}

.shop-page .sidebar-categories-options::-webkit-scrollbar-track {
  background: rgba(0, 63, 135, 0.1);
  background: color-mix(in srgb, var(--navy) 18%, var(--cream));
  border-radius: 2px;
}

.shop-page .sidebar-categories-options::-webkit-scrollbar-thumb {
  background: var(--crimson);
  border-radius: 2px;
}

.shop-page .sidebar-categories-options::-webkit-scrollbar-thumb:hover {
  background: var(--deep-crimson);
}

/* Sidebar categories dropdown (desktop): thinner scrollbar than mobile topbar list */
@media (min-width: 641px) {
  .shop-page .sidebar-categories-panel .sidebar-categories-options {
    scrollbar-width: thin;
    scrollbar-color: var(--crimson) color-mix(in srgb, var(--navy) 18%, var(--cream));
  }

  .shop-page .sidebar-categories-panel .sidebar-categories-options::-webkit-scrollbar {
    width: 2px;
  }

  .shop-page .sidebar-categories-panel .sidebar-categories-options::-webkit-scrollbar-track {
    border-radius: 1px;
  }

  .shop-page .sidebar-categories-panel .sidebar-categories-options::-webkit-scrollbar-thumb {
    border-radius: 1px;
  }
}

.shop-page .sidebar-categories-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  margin: 0 6px;
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.shop-page .sidebar-categories-option:first-of-type {
  margin-top: 0;
}

.shop-page .sidebar-categories-option + .sidebar-categories-option {
  margin-top: 2px;
}

.shop-page .sidebar-categories-option:hover {
  background: rgba(200, 16, 46, 0.06);
  color: var(--crimson);
}

.shop-page .sidebar-categories-option:focus {
  outline: none;
}

.shop-page .sidebar-categories-option:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.shop-page .sidebar-categories-option[aria-selected="true"] {
  font-weight: 700;
  color: var(--crimson);
  background: linear-gradient(90deg, rgba(200, 16, 46, 0.12) 0%, rgba(200, 16, 46, 0.06) 100%);
  box-shadow: inset 3px 0 0 var(--crimson);
}

.shop-page .sidebar-categories-option-label {
  flex: 1;
  min-width: 0;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  word-break: break-word;
}

.shop-page .sidebar-categories-option-count {
  display: none; /* Hide product count; show full category name only */
}

.shop-page .sidebar-categories-option-hidden {
  display: none !important;
}

.shop-page .filter-list {
  list-style: none;
  margin-bottom: 32px;
}

.shop-page .filter-list li {
  margin-bottom: 0;
}

.shop-page .filter-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--gray);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
  border: none;
  border-radius: 0;
  background: none;
}

.shop-page .filter-list a:hover {
  color: var(--crimson);
}

.shop-page .filter-list a.active {
  color: var(--crimson);
  font-weight: 600;
  background: transparent;
  border: none;
}

.shop-page .filter-list .count {
  margin-left: auto;
  background: transparent;
  color: var(--gray);
  font-size: 0.8rem;
  font-weight: 400;
  padding: 0;
  border-radius: 0;
  opacity: 0.8;
}

.shop-page .price-range {
  margin-bottom: 28px;
}

.shop-page .price-range input[type="range"] {
  width: 100%;
  height: 4px;
  accent-color: var(--crimson);
  cursor: pointer;
}

.shop-page .price-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 8px;
  font-weight: 500;
}

.shop-page .sidebar-btn {
  width: 100%;
  padding: 12px 20px;
  background: var(--crimson);
  color: var(--white);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
}

.shop-page .sidebar-btn:hover {
  background: var(--deep-crimson);
  color: var(--white);
}

.shop-page .sidebar-trust {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.shop-page .sidebar-trust-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.shop-page .sidebar-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-page .sidebar-trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--dark);
}

.shop-page .sidebar-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold);
  border-radius: 50%;
  font-size: 0.75rem;
}

.shop-page .sidebar-explore {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.shop-page .sidebar-explore-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.shop-page .sidebar-explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.shop-page .sidebar-explore-item {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--light-gray);
  text-decoration: none;
  color: inherit;
}

.shop-page .sidebar-explore-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-page .sidebar-explore-item .placeholder-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gray);
}

.shop-page .sidebar-explore-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Main content ── */
.shop-page .shop-main {
  flex: 1;
  min-width: 0;
}

.shop-page .shop-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.shop-page .shop-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}

.shop-page .shop-search-wrap .shop-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  opacity: 0.6;
}

.shop-page .shop-search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1.5px solid #e0e0e0;
  border-radius: 2px;
  font-size: 0.95rem;
  font-family: 'Lato', sans-serif;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.shop-page .shop-search-input::placeholder {
  color: var(--gray);
  opacity: 0.9;
}

.shop-page .shop-search-input:hover,
.shop-page .shop-search-input:focus {
  border-color: var(--crimson);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shop-page .shop-topbar .result-count {
  display: none; /* Product count hidden per design */
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 400;
  font-family: 'Lato', sans-serif;
}

.shop-page .sort-select {
  padding: 10px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 2px;
  background: var(--white);
  font-size: 0.88rem;
  color: var(--dark);
  cursor: pointer;
  outline: none;
  font-family: 'Lato', sans-serif;
  transition: border-color 0.2s;
}

.shop-page .sort-select:hover,
.shop-page .sort-select:focus {
  border-color: var(--crimson);
}

/* Topbar Categories button (shown only on mobile, same row as Sort) */
.shop-page .shop-topbar-categories-btn {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid rgba(0, 63, 135, 0.2);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Lato', sans-serif;
  color: var(--navy);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.shop-page .shop-topbar-categories-btn::after {
  content: '';
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23003f87' d='M7 9.5L2.5 5h9z'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform 0.25s ease;
}

.shop-page .shop-topbar-categories-btn[aria-expanded="true"] {
  border-color: var(--crimson);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.shop-page .shop-topbar-categories-btn[aria-expanded="true"]::after {
  transform: rotate(180deg);
  opacity: 1;
}

.shop-page .shop-topbar-categories-btn:hover,
.shop-page .shop-topbar-categories-btn:focus {
  border-color: rgba(200, 16, 46, 0.4);
  box-shadow: 0 2px 8px rgba(200, 16, 46, 0.08);
}

.shop-page .shop-topbar-categories-btn:focus {
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

/* Mobile-only categories dropdown wrap & panel (hidden on desktop) */
.shop-page .shop-topbar-categories-wrap {
  display: none;
  position: relative;
}

.shop-page .shop-topbar-categories-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0;
  max-height: 300px;
  overflow-y: auto;
  background: var(--white);
  border: 1.5px solid var(--crimson);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 28px rgba(0, 63, 135, 0.12), 0 2px 8px rgba(200, 16, 46, 0.06);
  z-index: 100;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.shop-page .shop-topbar-categories-panel[aria-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.shop-page .shop-no-results {
  padding: 24px 0;
  color: var(--gray);
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  margin: 0;
}

/* ── Pagination (end of product display) ── */
/* Override global nav { position: fixed } so pagination stays below products */
.shop-page .shop-pagination {
  position: static;
  width: auto;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  animation: none;
  overflow: visible;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.shop-page .shop-pagination .pagination-btn,
.shop-page .shop-pagination .pagination-num {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid #e0e0e0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.shop-page .shop-pagination .pagination-btn:hover {
  border-color: var(--crimson);
  color: var(--crimson);
  background: rgba(200, 16, 46, 0.04);
}

.shop-page .shop-pagination .pagination-current {
  background: var(--crimson);
  color: var(--white);
  border-color: var(--crimson);
  cursor: default;
  pointer-events: none;
}

.shop-page .shop-pagination .pagination-prev,
.shop-page .shop-pagination .pagination-next {
  padding: 0 16px;
}

/* ── Product grid: default 3 columns; shop main grid uses 4×4 / 3×3 via shop-only rules + JS per page ── */
.shop-page .products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}

/* ── Product cards: height from image + text (no oversized min-height) ── */
.shop-page .product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 63, 135, 0.08);
  box-shadow: 0 8px 24px rgba(0, 38, 82, 0.08);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.shop-page .product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(212, 160, 23, 0.9), rgba(200, 16, 46, 0.88), rgba(0, 63, 135, 0.85));
  z-index: 1;
}

/* ── Tighter shop / category grids ── */
.shop-page .shop-container .products-grid,
.shop-page .category-container .products-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.shop-page .shop-container .product-card,
.shop-page .category-container .product-card {
  min-height: 0;
}

.shop-page .shop-container .product-card .product-info,
.shop-page .category-container .product-card .product-info {
  padding: 10px 12px 12px;
}

.shop-page .shop-container .product-info h4,
.shop-page .category-container .product-info h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.shop-page .shop-container .product-cat,
.shop-page .category-container .product-cat {
  font-size: 0.65rem;
  margin-bottom: 4px;
}

.shop-page .shop-container .product-specs,
.shop-page .category-container .product-specs {
  margin-bottom: 6px;
}

.shop-page .shop-container .product-info .product-desc,
.shop-page .category-container .product-info .product-desc {
  font-size: 0.76rem;
  margin-bottom: 8px;
  -webkit-line-clamp: 1;
}

.shop-page .shop-container .product-footer,
.shop-page .category-container .product-footer {
  padding-top: 6px;
  gap: 8px;
}

.shop-page .shop-container .product-price,
.shop-page .category-container .product-price {
  font-size: 0.98rem;
}

.shop-page .shop-container .product-card .add-btn,
.shop-page .category-container .product-card .add-btn {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.shop-page .shop-container .product-rating,
.shop-page .category-container .product-rating {
  margin: 4px 0 6px;
}

.shop-page .shop-container .product-stars,
.shop-page .category-container .product-stars {
  font-size: 0.82rem;
}

.shop-page .product-card:hover {
  opacity: 1;
  transform: translateY(-6px);
}

/* Badges (crimson / gold theme) ── */
.shop-page .product-badge-handmade {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: transparent;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  padding: 0;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.shop-page .product-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: transparent;
  color: var(--navy);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  padding: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.shop-page .product-badge.new {
  color: var(--crimson);
}

/* Ribbon badges: Bestseller, New Arrival, On Sale, Exclusive (top-left, over image) */
.shop-page .product-img-wrap .product-badge.ribbon {
  left: 0;
  right: auto;
  top: 0;
  min-width: 56px;
  padding: 10px 20px 10px 16px;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--deep-crimson) 100%);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-page .product-badge.ribbon.sale {
  /* same as base ribbon */
}

.shop-page .product-badge.ribbon.bestseller,
.shop-page .product-badge.ribbon.new,
.shop-page .product-badge.ribbon.exclusive {
  /* same red ribbon as Bestseller in reference */
}

.shop-page .product-img-wrap { position: relative; }

.shop-page .product-badge-out {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: var(--navy);
  color: var(--white);
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  padding: 5px 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.shop-page .add-btn-disabled,
.shop-page .add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.shop-page .product-card .product-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #f9f4ec;
  margin-bottom: -1px;
}

.shop-page .product-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  pointer-events: auto;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #999;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.shop-page .product-wishlist-btn:hover {
  background: #fff;
  color: var(--crimson, #c8102e);
}

.shop-page .product-wishlist-btn.in-wishlist {
  color: var(--crimson, #c8102e);
  background: rgba(255, 255, 255, 0.95);
}

.shop-page .product-wishlist-btn .wishlist-heart {
  font-size: 1rem;
}

.shop-page .product-rating {
  margin: 6px 0 8px;
}

.shop-page .product-stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.shop-page .product-img-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}
.shop-page .product-name-link {
  text-decoration: none;
  color: inherit;
}
.shop-page .product-name-link:hover { color: var(--crimson); }

/* Square tile: full product visible (letterboxing on light bg if aspect differs) */
.shop-page .product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 252, 248, 0.92), rgba(255, 255, 255, 0.98));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.shop-page .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.35s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

/* Hover: second image (arko side) fades in over main image */
.shop-page .product-img-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.shop-page .product-img-hover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.shop-page .product-card.has-hover-img:hover .product-img-hover img {
  opacity: 1;
}

.shop-page .product-card.has-hover-img:hover .product-img img {
  transform: scale(1.03);
}

.shop-page .product-card:not(.has-hover-img):hover .product-img img {
  transform: scale(1.06);
}

.shop-page .product-img .placeholder-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gray);
  opacity: 0.4;
}

/* Gallery hover: video on hover (e.g. singing bowl) */
.shop-page .product-img-wrap {
  position: relative;
}

.shop-page .product-hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.shop-page .product-card.has-hover-video:hover .product-hover-video {
  opacity: 1;
}


.shop-page .product-info {
  padding: 14px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--white);
}

.shop-page .product-cat {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  color: var(--crimson);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.shop-page .product-info h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-page .product-specs {
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  line-height: 1.4;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-page .product-info .product-desc {
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 10px;
  line-height: 1.45;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-page .product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  margin-top: auto;
  border-top: none;
}

.shop-page .product-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.shop-page .product-price {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: var(--dark);
  font-size: 1.05rem;
}

/* On sale: sale price prominent (like Featured page), original strikethrough */
.shop-page .product-price-wrap.on-sale .product-price {
  color: var(--deep-crimson);
  font-weight: 700;
  font-size: 1.15rem;
}

.shop-page .product-price-old {
  font-size: 0.85rem;
  color: #bbb;
  text-decoration: line-through;
  margin-left: 2px;
}

.shop-page .product-card .add-btn {
  background: var(--crimson);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: 'Lato', sans-serif;
  transition: background 0.2s, color 0.2s;
}

.shop-page .product-card .add-btn:hover {
  background: var(--deep-crimson);
  color: var(--white);
}

/* ── Shop + category + Featured #featGrid: compact marketplace cards, Nepali flag reds + gold ── */
.shop-page .shop-container,
.shop-page.featured-page #featGrid {
  --mp-accent: var(--crimson, #c8102e);
  --mp-accent-hover: var(--deep-crimson, #8b0000);
  --mp-price: var(--crimson, #c8102e);
  --mp-card-border: #ebebeb;
  --mp-card-bg: #ffffff;
  --mp-img-well: #f5f5f5;
  --mp-text: #212121;
  --mp-muted: #757575;
}

.shop-page .shop-container .products-grid,
.shop-page.featured-page #featGrid {
  gap: 12px 10px;
}

.shop-page .shop-container .product-card,
.shop-page.featured-page #featGrid .product-card {
  background: var(--mp-card-bg);
  border-radius: 4px;
  border: 1px solid var(--mp-card-border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.shop-page .shop-container .product-card::before,
.shop-page.featured-page #featGrid .product-card::before {
  display: none;
}

.shop-page .shop-container .product-card:hover,
.shop-page.featured-page #featGrid .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  border-color: #e0e0e0;
}

.shop-page .shop-container .product-card .product-img-wrap,
.shop-page.featured-page #featGrid .product-card .product-img-wrap {
  border-radius: 3px 3px 0 0;
  background: var(--mp-img-well);
  margin-bottom: 0;
}

.shop-page .shop-container .product-img,
.shop-page.featured-page #featGrid .product-img {
  aspect-ratio: 1 / 1;
  background: var(--mp-img-well);
}

.shop-page .shop-container .product-info,
.shop-page.featured-page #featGrid .product-info {
  padding: 10px 12px 12px;
  background: var(--mp-card-bg);
}

.shop-page .shop-container .product-cat,
.shop-page.featured-page #featGrid .product-cat {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mp-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.shop-page .shop-container .product-info h4,
.shop-page.featured-page #featGrid .product-info h4 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--mp-text);
  line-height: 1.4;
  -webkit-line-clamp: 2;
}

.shop-page .shop-container .product-specs,
.shop-page.featured-page #featGrid .product-specs {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--mp-muted);
  font-size: 0.7rem;
}

.shop-page .shop-container .product-info .product-desc,
.shop-page.featured-page #featGrid .product-info .product-desc {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #9e9e9e;
  font-size: 0.72rem;
}

.shop-page .shop-container .product-rating,
.shop-page.featured-page #featGrid .product-rating {
  margin: 2px 0 6px;
}

.shop-page .shop-container .product-stars,
.shop-page.featured-page #featGrid .product-stars {
  color: var(--gold, #d4a017);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.shop-page .shop-container .product-name-link:hover,
.shop-page.featured-page #featGrid .product-name-link:hover {
  color: var(--mp-accent);
}

.shop-page .shop-container .product-footer,
.shop-page.featured-page #featGrid .product-footer {
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  gap: 8px;
  flex-wrap: wrap;
}

.shop-page .shop-container .product-price,
.shop-page.featured-page #featGrid .product-price {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  color: var(--mp-price);
  font-size: 1rem;
}

.shop-page .shop-container .product-price-wrap.on-sale .product-price,
.shop-page.featured-page #featGrid .product-price-wrap.on-sale .product-price,
.shop-page.featured-page #featGrid .product-card.is-sale .product-price {
  color: var(--mp-price);
  font-weight: 700;
  font-size: 1.05rem;
}

.shop-page .shop-container .product-price-old,
.shop-page.featured-page #featGrid .product-price-old {
  color: #bdbdbd;
  font-size: 0.8rem;
}

.shop-page .shop-container .product-card .add-btn,
.shop-page.featured-page #featGrid .product-card .add-btn {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--mp-accent);
  color: #fff;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  font-size: 0.8rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.shop-page .shop-container .product-card .add-btn:hover,
.shop-page.featured-page #featGrid .product-card .add-btn:hover {
  background: var(--mp-accent-hover);
  color: #fff;
}

.shop-page .shop-container .product-wishlist-btn,
.shop-page.featured-page #featGrid .product-wishlist-btn {
  border: 1px solid #eee;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.shop-page .shop-container .product-wishlist-btn:hover,
.shop-page.featured-page #featGrid .product-wishlist-btn:hover {
  color: var(--mp-accent);
}

.shop-page .shop-container .product-wishlist-btn.in-wishlist,
.shop-page.featured-page #featGrid .product-wishlist-btn.in-wishlist {
  color: var(--mp-accent);
}

.shop-page .shop-container .product-badge-handmade,
.shop-page.featured-page #featGrid .product-badge-handmade {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--mp-muted);
  top: 10px;
  left: 10px;
}

.shop-page .shop-container .product-badge:not(.ribbon),
.shop-page.featured-page #featGrid .product-badge:not(.ribbon) {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--mp-muted);
}

.shop-page .shop-container .product-badge.new:not(.ribbon),
.shop-page.featured-page #featGrid .product-badge.new:not(.ribbon) {
  color: var(--mp-accent);
}

.shop-page .shop-container .product-img-wrap .product-badge.ribbon,
.shop-page.featured-page #featGrid .product-img-wrap .product-badge.ribbon {
  background: linear-gradient(135deg, var(--crimson, #c8102e) 0%, var(--deep-crimson, #8b0000) 100%);
  letter-spacing: 0.12em;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 2px 6px rgba(139, 0, 0, 0.35);
}

.shop-page .shop-container .product-badge-out,
.shop-page.featured-page #featGrid .product-badge-out {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #616161;
  letter-spacing: 0.06em;
  border-radius: 2px;
}

/* ── Who We Are (below product grid) ── */
.shop-who-we-are {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.5);
}

.shop-who-we-are-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.shop-who-heading {
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.shop-who-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--dark);
  margin-bottom: 20px;
}

.shop-who-owner {
  font-style: italic;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 20px;
  font-weight: 600;
}

.shop-who-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.shop-who-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

.shop-who-reviews {
  font-size: 0.9rem;
  color: var(--gray);
}

.shop-who-link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}

.shop-who-link:hover {
  background: var(--gold-light);
  color: var(--dark);
}

.shop-who-we-are-visual {
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
}

.shop-who-visual-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.08) 0%, rgba(0, 63, 135, 0.08) 100%);
  background-image: url('../Photo/OUR.webp');
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .shop-who-we-are-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .shop-who-we-are-visual {
    min-height: 220px;
  }
  .shop-who-visual-img {
    min-height: 220px;
  }
}

/* Shop hero: keep full size on laptop/desktop and when window is minimized; compact only on phones */
@media (max-width: 480px) {
  .shop-page .page-hero {
    padding: 20px 20px 24px;
    min-height: 0;
  }
  .shop-page .page-hero .page-hero-content {
    max-width: 100%;
  }
  .shop-page .page-hero h1 {
    font-size: 1.35rem;
    margin-bottom: 0;
  }
  .shop-page .page-hero p {
    font-size: 0.9rem;
    margin-top: 6px;
    line-height: 1.5;
  }
  .shop-page .page-hero .page-hero-actions {
    margin-top: 10px;
    gap: 10px;
  }
  .shop-page .page-hero .btn-shop-collection,
  .shop-page .page-hero .btn-shop-featured {
    padding: 10px 22px;
    font-size: 0.88rem;
  }
}

/* Nav & footer use global style.css (navy + gold); no overrides needed */

/* ── TABLET (769px – 1024px): same 3-column grid as desktop ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .shop-page .shop-container {
    padding: 40px 28px 52px;
  }
  .shop-page .shop-filter-chips {
    padding: 10px 28px 0;
  }
  .shop-page .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }
  .shop-page .shop-container .products-grid,
  .shop-page .category-container .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
  }
  .shop-page .shop-container .product-info h4,
  .shop-page .category-container .product-info h4 {
    font-size: 0.96rem;
  }
  .shop-page .shop-container .product-info .product-desc,
  .shop-page .category-container .product-info .product-desc {
    font-size: 0.74rem;
  }
}

/* ── NARROW TABLET (641px – 768px): compact 2-column grid ── */
@media (min-width: 641px) and (max-width: 768px) {
  .shop-page .shop-container {
    padding: 34px 18px 48px;
  }
  .shop-page .shop-layout {
    gap: 16px;
  }
  .shop-page .sidebar {
    width: 180px;
    flex-shrink: 0;
  }
  .shop-page .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .shop-page .shop-container .products-grid,
  .shop-page .category-container .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
  .shop-page .shop-container .product-info,
  .shop-page .category-container .product-info {
    padding: 10px 10px 10px;
  }
  .shop-page .shop-container .product-card .add-btn,
  .shop-page .category-container .product-card .add-btn {
    padding: 7px 11px;
    font-size: 0.76rem;
  }
}

/* ── Responsive: mobile-first content order ── */
/* On small screens, products first; categories in topbar dropdown (no sidebar).
   Use 640px so half-screen desktop (e.g. 1366/2 ≈ 683px) still shows sidebar + sort. */
@media (max-width: 640px) {
  .shop-page .shop-layout {
    flex-direction: column;
    gap: 0;
  }

  .shop-page .shop-main {
    order: -1;
  }

  /* Hide sidebar only on small viewports; categories move to topbar dropdown */
  .shop-page .sidebar {
    display: none;
  }

  /* Two columns on phones: 2×2 grid of products */
  .shop-page .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
  .shop-page .shop-container .products-grid,
  .shop-page .category-container .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }
  .shop-page .shop-container .product-card,
  .shop-page .category-container .product-card {
    min-height: 0;
  }

  .shop-page .shop-container .product-img,
  .shop-page .category-container .product-img {
    aspect-ratio: 1 / 1;
    max-height: none;
  }

  /* Mobile topbar: Categories dropdown + Search in one row (no Sort) */
  .shop-page .shop-topbar-categories-wrap {
    display: block;
    flex: 0 0 auto;
    min-width: 0;
  }

  .shop-page .shop-topbar-categories-btn {
    display: inline-flex;
    width: 100%;
    min-width: 100px;
    white-space: normal;
    text-align: left;
    line-height: 1.35;
  }

  /* Show full category names in dropdown list (no ellipsis) */
  .shop-page .sidebar-categories-option-label {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
    word-break: break-word;
  }

  .shop-page .sidebar-categories-trigger-text {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
  }

  .shop-page .shop-topbar .result-count {
    display: none;
  }

  .shop-page .shop-topbar .sort-select {
    display: none;
  }

  .shop-page .shop-search-wrap {
    display: block;
    flex: 1;
    min-width: 0;
    max-width: none;
  }

  .shop-page .shop-topbar {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 12px;
  }
}

/* Small phones: keep 2-column product grid; tighten type & controls */
@media (max-width: 600px) {
  .shop-page .shop-container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .shop-page .sidebar {
    grid-template-columns: 1fr;
  }

  .shop-page .price-range {
    grid-column: 1;
    grid-row: auto;
  }

  .shop-page .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }
  .shop-page .shop-container .products-grid,
  .shop-page .category-container .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
  }

  .shop-page .product-card {
    min-height: 0;
  }

  .shop-page .shop-container .product-card,
  .shop-page .category-container .product-card {
    min-height: 0;
  }

  .shop-page .shop-container .product-info h4,
  .shop-page .category-container .product-info h4 {
    font-size: 0.88rem;
    -webkit-line-clamp: 2;
  }

  .shop-page .shop-container .product-info .product-desc,
  .shop-page .category-container .product-info .product-desc {
    font-size: 0.72rem;
    -webkit-line-clamp: 2;
    margin-bottom: 8px;
  }

  .shop-page .shop-container .product-price,
  .shop-page .category-container .product-price {
    font-size: 0.85rem;
  }

  .shop-page .shop-container .product-card .add-btn,
  .shop-page .category-container .product-card .add-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .shop-page .shop-container .product-wishlist-btn,
  .shop-page .category-container .product-wishlist-btn {
    width: 32px;
    height: 32px;
    top: 6px;
    right: 6px;
  }

  .shop-page .shop-pagination {
    margin-top: 32px;
    padding-top: 24px;
    gap: 6px;
  }

  .shop-page .shop-pagination .pagination-btn,
  .shop-page .shop-pagination .pagination-num {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
    padding: 0 10px;
  }

  .shop-page .shop-pagination .pagination-prev,
  .shop-page .shop-pagination .pagination-next {
    padding: 0 12px;
  }
}

/* Shop + category + Featured #featGrid: 4×4 desktop, 3×3 tablet + mobile */
@media (min-width: 1025px) {
  .shop-page .shop-container .products-grid,
  .shop-page.featured-page #featGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .shop-page .shop-container .product-card .product-info,
  .shop-page.featured-page #featGrid .product-card .product-info {
    padding: 8px 10px 10px;
  }

  .shop-page .shop-container .product-info h4,
  .shop-page.featured-page #featGrid .product-info h4 {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .shop-page .shop-container .product-price,
  .shop-page.featured-page #featGrid .product-price {
    font-size: 0.92rem;
  }

  .shop-page .shop-container .product-card .add-btn,
  .shop-page.featured-page #featGrid .product-card .add-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

  .shop-page .shop-container .product-footer,
  .shop-page.featured-page #featGrid .product-footer {
    padding-top: 6px;
    gap: 6px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .shop-page .shop-container .products-grid,
  .shop-page.featured-page #featGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .shop-page .shop-container .products-grid,
  .shop-page.featured-page #featGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }
}

@media (max-width: 640px) {
  .shop-page .shop-container .products-grid,
  .shop-page.featured-page #featGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 6px;
  }
}

@media (max-width: 600px) {
  .shop-page .shop-container .products-grid,
  .shop-page.featured-page #featGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 5px;
  }

  .shop-page .shop-container .product-info h4,
  .shop-page.featured-page #featGrid .product-info h4 {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .shop-page .shop-container .product-price,
  .shop-page.featured-page #featGrid .product-price {
    font-size: 0.82rem;
  }

  .shop-page .shop-container .product-card .add-btn,
  .shop-page.featured-page #featGrid .product-card .add-btn {
    padding: 5px 6px;
    font-size: 0.65rem;
  }

  .shop-page .shop-container .product-wishlist-btn,
  .shop-page.featured-page #featGrid .product-wishlist-btn {
    width: 28px;
    height: 28px;
    top: 4px;
    right: 4px;
  }
}

/* Shop + Featured product cards: hide category & description on tablet/mobile only (desktop ≥1025px unchanged) */
@media (max-width: 1024px) {
  #shop-collection #productsGrid .product-cat,
  #shop-collection #productsGrid .product-desc,
  #featGrid .product-cat,
  #featGrid .product-desc {
    display: none !important;
  }

  #shop-collection #productsGrid .product-info h4,
  #featGrid .product-info h4 {
    margin-bottom: 6px;
  }
}
