/* SHOP PAGE */
body.page-shop .page-grid {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 16px 24px; /* Fix: reduced bottom padding to stop footer gap stacking */
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    grid-template-columns 0.24s ease,
    column-gap 0.24s ease;
}

body.page-shop {
  background:
    radial-gradient(1200px 500px at 110% -10%, rgba(26, 124, 200, 0.09), transparent 58%),
    radial-gradient(900px 440px at -20% 12%, rgba(34, 161, 105, 0.1), transparent 56%),
    linear-gradient(180deg, #f3f7fb 0%, #eaf0f6 100%);
}

body.page-shop .header-inner {
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto auto;
  grid-template-areas: "left search nav right";
  align-items: center;
  gap: 0.92rem 1.1rem;
  min-height: 84px;
  padding: 0.66rem 1.2rem 0.66rem 0.88rem;
}

body.page-shop .header-left {
  grid-area: left;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  justify-self: start;
}

body.page-shop .header-search-slot {
  grid-area: search;
  min-width: 0;
  width: 100%;
  justify-self: stretch;
  padding-left: 0.08rem;
  padding-right: 0.18rem;
}

body.page-shop .header-nav-row {
  grid-area: nav;
  width: auto;
  min-width: 0;
  justify-self: start;
  justify-content: flex-start;
  gap: 0.5rem;
  min-height: auto;
  padding-top: 0;
  position: static;
}

body.page-shop .header-nav-row::before {
  display: none;
}

body.page-shop .header-nav {
  width: auto;
  justify-content: flex-start;
  gap: 0.2rem;
  padding-top: 0;
}

body.page-shop .header-nav .header-link {
  min-height: 38px;
  padding: 0 0.78rem;
  border-radius: 999px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  color: #516376;
  letter-spacing: 0.01em;
}

body.page-shop .header-nav .header-link-current {
  background: rgba(22, 163, 74, 0.09);
  color: #175c39;
  font-weight: 700;
  box-shadow: none;
}

body.page-shop .header-nav .header-link:hover,
body.page-shop .header-nav .header-link:focus-visible {
  background: rgba(15, 23, 42, 0.045);
  color: #10233b;
  box-shadow: none;
}

@media (min-width: 1181px) {
  body.page-shop .header-inner {
    max-width: 1600px;
    padding: 0.66rem 0.24rem 0.66rem 0.04rem;
  }
}

body.page-shop .header-right {
  grid-area: right;
  justify-self: end;
  align-self: center;
  gap: 0.52rem;
}

body.page-shop .brand-logo-wrapper {
  min-height: 42px;
  gap: 0.64rem;
  padding-right: 0.12rem;
}

body.page-shop .brand-logo {
  width: 33px;
  height: 33px;
  background: radial-gradient(circle at 30% 30%, #f97316, #facc15);
  box-shadow:
    0 0 0 2px rgba(249, 250, 251, 0.96),
    0 7px 18px rgba(15, 23, 42, 0.08);
}

body.page-shop .brand-name {
  font-size: 1.14rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #111827;
}

body.page-shop .homepage-left-column,
body.page-shop .homepage-right-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.page-shop .homepage-left-column {
  min-height: 0;
  gap: 14px;
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  align-self: start;
}

body.page-shop .homepage-right-column {
  gap: 12px;
}

body.page-shop .sidebar-left {
  position: static;
  top: auto;
  align-self: start;
}

body.page-shop .sidebar-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(213, 225, 236, 0.9);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
}

body.page-shop .sidebar-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

body.page-shop .categories-list {
  display: block;
}

body.page-shop .sidebar-section {
  border-top: 1px solid #edf2f6;
  padding-top: 12px;
  margin-top: 12px;
}

body.page-shop .sidebar-section:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

body.page-shop .sidebar-section-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #728299;
}

body.page-shop .category-link,
body.page-shop .chip {
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #3d5166;
  font-size: 13px;
  text-align: left;
  padding: 7px 12px;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}

body.page-shop .category-link {
  width: 100%;
  display: block;
  margin-bottom: 3px;
}

body.page-shop .category-link:hover,
body.page-shop .chip:hover {
  background: #f0f5fa;
  color: #1e3a5f;
}

body.page-shop .category-link.active,
body.page-shop .chip.active {
  background: #e2f4ea;
  border-color: #a8dabb;
  color: #1a5c3a;
  font-weight: 600;
}

body.page-shop .main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

body.page-shop .hero-section {
  position: relative;
  overflow: hidden;
  border: 1px solid #cfe0ee;
  border-radius: 24px;
  padding: 0;
  background:
    radial-gradient(680px 220px at 86% -20%, rgba(27, 157, 98, 0.18), transparent 62%),
    linear-gradient(135deg, #f5fbf8 0%, #ecf4fb 100%);
  box-shadow: 0 10px 28px -5px rgba(15, 23, 42, 0.07);
  display: flex;
  align-items: stretch;
  min-height: 260px;
}

body.page-shop .hero-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
  min-width: 0;
}

body.page-shop .hero-visual {
  display: none;
}

body.page-shop .hero-content {
  position: relative;
  z-index: 2;
  animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

body.page-shop .hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 13.5px;
  font-weight: 500;
  color: #4b5563;
  animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
  opacity: 0;
}

body.page-shop .trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.page-shop .trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: rgba(22, 163, 74, 0.13);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  color: #15803d;
  line-height: 1;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

body.page-shop .highlighted-section {
  margin-top: 0;
  margin-bottom: 0;
  opacity: 1;
  transform: translateY(0);
  background: linear-gradient(135deg, #f0faf4 0%, #e8f4fd 100%);
  border: 1px solid #d0e9de;
  border-radius: 18px;
  padding: 14px 16px 16px;
}

body.page-shop .highlighted-section.picks-reveal-pending {
  opacity: 0;
  transform: translateY(10px);
}

body.page-shop .highlighted-section.picks-reveal-active {
  animation: picksSectionReveal 0.46s cubic-bezier(0.22, 0.78, 0.22, 1) forwards;
}

body.page-shop .picks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

body.page-shop .picks-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #10233b;
  letter-spacing: -0.015em;
}

body.page-shop .picks-subtitle {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #60748b;
}

body.page-shop .picks-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

body.page-shop .picks-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #c0d8cc;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.3s,
    transform 0.3s;
}

body.page-shop .picks-dot.active {
  background: #1c7e4e;
  transform: scale(1.3);
}

body.page-shop .picks-dot:hover {
  background: #3da672;
}

body.page-shop .picks-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  transition:
    opacity 0.6s ease-in-out,
    transform 0.6s ease-in-out;
}

body.page-shop .picks-track.fading {
  opacity: 0;
  transform: translateY(6px);
}

body.page-shop .picks-track .pick-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 10px 10px 0;
  border: 1px solid rgba(215, 225, 236, 0.92);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  overflow: hidden;
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease;
  opacity: 1;
  transform: translateY(0);
}

body.page-shop .picks-track .pick-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
  border-color: #ccd7e3;
}

body.page-shop .highlighted-section.picks-reveal-pending .picks-track .pick-card {
  opacity: 0;
  transform: translateY(8px);
}

body.page-shop .highlighted-section.picks-reveal-active .picks-track .pick-card {
  animation: picksCardReveal 0.44s cubic-bezier(0.22, 0.78, 0.22, 1) both;
}

body.page-shop .pick-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border-radius: 12px;
  transition: transform 0.22s ease;
}

body.page-shop .pick-card-image--contain {
  object-fit: contain;
  background: #f1f5f9;
}

body.page-shop .picks-track .pick-card:hover .pick-card-image {
  transform: scale(1.015);
}

body.page-shop .picks-track .pick-card:hover .pick-card-image--contain {
  transform: none;
}

body.page-shop .pick-card-info {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 8px;
  row-gap: 0;
  align-items: end;
  padding: 12px 2px 14px;
}

body.page-shop .pick-card-name {
  grid-column: 1 / -1;
  margin: 0 0 3px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-shop .pick-card-seller {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #5d7388;
}

body.page-shop .pick-card-price {
  grid-column: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #157a3c;
  letter-spacing: -0.02em;
  align-self: center;
}

body.page-shop .pick-add-btn {
  grid-column: 2;
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: none;
  background: #eaf6f0;
  cursor: pointer;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.18s,
    transform 0.15s;
}

body.page-shop .pick-add-btn::before {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: #157a3c;
  line-height: 1;
}

body.page-shop .pick-add-btn:hover {
  background: #157a3c;
  transform: scale(1.09);
}

body.page-shop .pick-add-btn:hover::before {
  color: #ffffff;
}

body.page-shop .pick-add-btn:active {
  transform: scale(0.95);
}

body.page-shop .pick-add-btn.added {
  background: #059669;
}

body.page-shop .pick-add-btn.added::before {
  content: "✓";
  font-size: 14px;
  color: #ffffff;
}

body.page-shop .pick-card-sold-out {
  grid-column: 2;
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.02em;
  align-self: center;
  text-align: right;
}

body.page-shop .pick-card-badge {
  display: none;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #24563a;
  background: #f4faf6;
  border: 1px solid #dbe8df;
  border-radius: 999px;
  padding: 3px 7px;
  margin-top: 6px;
  justify-self: start;
}

@keyframes picksSectionReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

body.page-shop .highlighted-section.picks-reveal-active .pick-card:nth-child(1) {
  animation-delay: 0.04s;
}
body.page-shop .highlighted-section.picks-reveal-active .pick-card:nth-child(2) {
  animation-delay: 0.12s;
}
body.page-shop .highlighted-section.picks-reveal-active .pick-card:nth-child(3) {
  animation-delay: 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  body.page-shop .highlighted-section,
  body.page-shop .highlighted-section.picks-reveal-pending,
  body.page-shop .highlighted-section.picks-reveal-active,
  body.page-shop .highlighted-section.picks-reveal-pending .picks-track .pick-card,
  body.page-shop .highlighted-section.picks-reveal-active .picks-track .pick-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body.page-shop .picks-track .pick-card,
  body.page-shop .pick-card-image,
  body.page-shop .picks-track,
  body.page-shop .picks-dot {
    transition: none !important;
  }
}

body.page-shop .hero-pill {
  margin: 0;
  display: inline-flex;
  align-items: center;
  border: 1px solid #b8e4ca;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1c7e4e;
  background: #e8f7ef;
}

body.page-shop .hero-title {
  margin: 8px 0 0;
  font-size: clamp(29px, 2.75vw, 38px);
  line-height: 1.08;
  max-width: 29ch;
}

body.page-shop .hero-subtitle {
  max-width: 56ch;
  margin-top: 0.55rem;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.5;
}

body.page-shop .hero-subtitle-mobile {
  display: none;
}

body.page-shop .hero-highlights {
  padding: 1.5rem 1rem 0;
  max-width: 1100px;
  margin: 0 auto;
}

body.page-shop .hero-highlights-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

body.page-shop .hero-highlight-card {
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e5e7eb;
  font-size: 0.85rem;
}

body.page-shop .hero-highlight-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

body.page-shop .hero-highlight-card p {
  margin: 0;
  color: #6b7280;
}

body.page-shop .hero-why-mini {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  border-radius: 999px;
  background: #f3f4f6;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}

body.page-shop .hero-why-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

body.page-shop .hero-why-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-shop .hero-why-list li::before {
  content: "• ";
  color: #22c55e;
}

body.page-shop .hero-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px; /* Phase 2: slightly wider gap between buttons */
  flex-wrap: wrap;
}

/* Phase 2: Hero CTA Hierarchy */
body.page-shop .hero-actions .btn-primary {
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35); /* Stronger filled treatment */
  letter-spacing: 0.01em;
}

body.page-shop .hero-actions .btn-outline {
  background-color: rgba(255, 255, 255, 0.45); /* Ghost/Glass styling */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--color-text-muted);
  font-weight: 600;
  box-shadow: none;
}

body.page-shop .hero-actions .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--color-text-main);
  border-color: rgba(15, 23, 42, 0.2);
}

body.page-shop .hero-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px; /* Phase 2: slightly taller base for premium feel */
}

body.page-shop .hero-category-pills {
  display: none;
}

body.page-shop .header-filter-btn {
  display: none;
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #27533c;
  font-size: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition:
    background 0.15s,
    box-shadow 0.15s;
}

body.page-shop .hero-cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #dce5ef;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #2d4460;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}

body.page-shop .hero-cat-pill:hover {
  border-color: #9dc9ab;
  background: #f0faf4;
  color: #1a5c3a;
}

body.page-shop .products-section {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

body.page-shop .prominent-search-bar {
  margin: 0;
}

body.page-shop .prominent-search-bar-header {
  position: relative;
}

body.page-shop .prominent-search-shell {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-height: 44px;
  padding: 0.08rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 2px rgba(15, 23, 42, 0.02);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

body.page-shop .prominent-search-shell:focus-within {
  background: #ffffff;
  border-color: #10b981;
  box-shadow:
    0 0 0 4px #ecfdf5,
    0 2px 4px rgba(15, 23, 42, 0.025);
}

body.page-shop .prominent-search-shell.is-discovery-open {
  background: #ffffff;
  border-color: #cfe0ee;
  box-shadow:
    0 0 0 4px rgba(236, 253, 245, 0.72),
    0 2px 4px rgba(15, 23, 42, 0.025);
}

body.page-shop .prominent-search-icon {
  flex-shrink: 0;
  color: #a2aec0;
  transition: color 0.15s ease;
}

body.page-shop .prominent-search-shell:focus-within .prominent-search-icon {
  color: #334155;
}

body.page-shop #prominent-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.4;
}

body.page-shop #prominent-search-input::placeholder {
  color: #64748b;
}

body.page-shop #prominent-search-input:focus {
  outline: none;
}

body.page-shop .prominent-search-button {
  flex: 0 0 auto;
  display: none;
}

body.page-shop .search-discovery-panel[hidden] {
  display: none;
}

body.page-shop .search-discovery-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 0;
  right: 0;
  z-index: 24;
  padding: 0.95rem;
  border: 1px solid rgba(207, 224, 238, 0.96);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.page-shop .search-discovery-section + .search-discovery-section {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(226, 232, 240, 0.96);
}

body.page-shop .search-discovery-heading {
  margin: 0 0 0.68rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7b8798;
}

body.page-shop .search-discovery-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

body.page-shop .search-discovery-chip,
body.page-shop .search-discovery-product {
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

body.page-shop .search-discovery-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 0.82rem;
  border-radius: 999px;
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #40566f;
  font-size: 0.84rem;
  font-weight: 600;
}

body.page-shop .search-discovery-chip:hover,
body.page-shop .search-discovery-chip:focus-visible {
  background: #ffffff;
  border-color: #bfd4e5;
  color: #203449;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  outline: none;
}

body.page-shop .search-discovery-product-list {
  display: grid;
  gap: 0.52rem;
}

body.page-shop .search-discovery-product {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  padding: 0.48rem;
  border-radius: 16px;
  border-color: rgba(226, 232, 240, 0.92);
  background: rgba(248, 250, 252, 0.78);
  text-align: left;
}

body.page-shop .search-discovery-product:hover,
body.page-shop .search-discovery-product:focus-visible {
  background: #ffffff;
  border-color: #bfd4e5;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  outline: none;
  transform: translateY(-1px);
}

body.page-shop .search-discovery-product-thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  background: #eef4f8;
}

body.page-shop .search-discovery-product-copy {
  min-width: 0;
}

body.page-shop .search-discovery-product-name {
  display: block;
  color: #1f3145;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

body.page-shop .search-discovery-product-meta {
  display: block;
  margin-top: 0.18rem;
  color: #6b7d90;
  font-size: 0.78rem;
  line-height: 1.35;
}

body.page-shop .search-discovery-product-price {
  color: #1d5b3c;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

body.page-shop .search-discovery-empty {
  color: #6b7d90;
  font-size: 0.84rem;
  line-height: 1.5;
}

@media (max-width: 1180px) and (min-width: 769px) {
  body.page-shop .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "left search right"
      "nav nav nav";
    gap: 0.56rem 1.02rem;
  }

  body.page-shop .header-search-slot {
    width: 100%;
    padding-left: 0.14rem;
    padding-right: 0;
  }

  body.page-shop .header-nav {
    gap: 0.35rem;
  }

  body.page-shop .header-nav-row {
    width: 100%;
    justify-self: stretch;
    padding-top: 0.16rem;
  }

  body.page-shop .header-nav .header-link {
    font-size: 0.88rem;
    padding: 0 0.66rem;
  }
}

@media (max-width: 980px) and (min-width: 769px) {
  body.page-shop .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "left search right"
      "nav nav nav";
  }

  body.page-shop .header-search-slot {
    width: 100%;
    justify-self: stretch;
  }

  body.page-shop .header-nav {
    justify-content: flex-start;
    gap: 1rem;
  }

  body.page-shop .header-nav-row {
    width: 100%;
    justify-self: stretch;
    padding-top: 0.22rem;
  }
}

body.page-shop .homepage-catalog-tools {
  min-width: 0;
}

body.page-shop .catalog-tools-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(213, 225, 236, 0.9);
  border-radius: 18px;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
  padding: 16px;
}

body.page-shop .section-heading {
  margin-bottom: 20px;
}

body.page-shop .section-heading-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body.page-shop .section-heading-copy {
  min-width: 0;
}

body.page-shop .desktop-filter-toggle,
body.page-shop .desktop-filter-panel-header,
body.page-shop .desktop-filter-backdrop {
  display: none;
}

body.page-shop .desktop-filter-toggle-icon {
  display: inline-grid;
  gap: 4px;
  width: 18px;
}

body.page-shop .desktop-filter-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

body.page-shop .section-heading h1,
body.page-shop .section-heading h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #10233b;
}

body.page-shop .section-subtitle {
  margin: 8px 0 0;
  color: #60748b;
  font-size: 0.88rem;
  line-height: 1.6;
}

body.page-shop .product-disclaimer,
body.page-shop .product-delivery-note {
  display: none;
}

body.page-shop .catalog-controls {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(180px, 220px) auto;
  align-items: end;
  gap: 0.85rem;
  max-width: 760px;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border: 1px solid #e9eff5;
  border-radius: 18px;
  background: #f8fbfd;
}

body.page-shop .catalog-search {
  min-width: 0;
}

body.page-shop .catalog-control-label {
  display: block;
  margin: 0 0 0.38rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6d8198;
}

body.page-shop .catalog-search-shell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0 0.95rem;
  border: 1px solid #dde7f0;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    background-color 0.12s ease;
}

body.page-shop .catalog-search:focus-within .catalog-search-shell {
  border-color: #9dc9ab;
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(22, 163, 74, 0.08),
    0 6px 16px rgba(15, 23, 42, 0.04);
}

body.page-shop .catalog-search-icon {
  flex-shrink: 0;
  font-size: 14px;
  color: #7b8794;
}

body.page-shop .catalog-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #13283e;
  font-size: 0.96rem;
  line-height: 1.4;
}

body.page-shop .catalog-search input::placeholder {
  color: #94a3b8;
}

body.page-shop .catalog-search input:focus {
  outline: none;
}

body.page-shop .catalog-sort {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.38rem;
  min-width: 0;
  font-size: 0.9rem;
}

body.page-shop .catalog-sort select {
  min-height: 48px;
  width: 100%;
  padding: 0 0.95rem;
  border-radius: 15px;
  border: 1px solid #dde7f0;
  background: #ffffff;
  color: #13283e;
  font-size: 0.92rem;
  box-shadow: none;
}

body.page-shop .catalog-sort select:focus {
  outline: none;
  border-color: #9dc9ab;
  box-shadow:
    0 0 0 4px rgba(22, 163, 74, 0.08),
    0 6px 16px rgba(15, 23, 42, 0.04);
}

body.page-shop .catalog-server-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0 0.85rem;
}

body.page-shop .catalog-price-filter {
  min-width: 0;
}

body.page-shop .catalog-price-filter input,
body.page-shop .catalog-price-filter select {
  min-height: 46px;
  width: 100%;
  padding: 0 0.95rem;
  border-radius: 15px;
  border: 1px solid #dde7f0;
  background: #ffffff;
  color: #13283e;
  font-size: 0.92rem;
  box-shadow: none;
}

body.page-shop .catalog-price-filter input:focus,
body.page-shop .catalog-price-filter select:focus {
  outline: none;
  border-color: #9dc9ab;
  box-shadow:
    0 0 0 4px rgba(22, 163, 74, 0.08),
    0 6px 16px rgba(15, 23, 42, 0.04);
}

body.page-shop .catalog-stock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0 0.95rem;
  border: 1px solid #dde7f0;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  color: #214059;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: none;
  white-space: nowrap;
}

body.page-shop .catalog-stock-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2f855a;
}

body.page-shop .catalog-filter-actions {
  grid-column: 1 / -1;
  display: grid;
  order: -1;
  gap: 0.55rem;
  margin-bottom: 0.15rem;
  padding-top: 0.2rem;
}

body.page-shop .catalog-filter-apply-hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #5b6f82;
}

body.page-shop .catalog-server-filters[data-pending-filters="true"] .catalog-filter-apply-hint {
  color: #27533c;
  font-weight: 600;
}

body.page-shop .catalog-apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 0 1.1rem;
  border-radius: 15px;
  border-color: #bfd6c6;
  background: linear-gradient(180deg, #f4fbf7, #e6f3eb);
  color: #214c35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

body.page-shop .catalog-apply-button:hover,
body.page-shop .catalog-apply-button:focus-visible {
  border-color: #7eb08d;
  background: linear-gradient(180deg, #eef9f2, #dceddf);
  color: #173a29;
}

body.page-shop .catalog-apply-button.is-pending {
  border-color: #2f855a;
  background: linear-gradient(180deg, #2f855a, #276c49);
  color: #ffffff;
  box-shadow:
    0 10px 24px rgba(47, 133, 90, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.page-shop .catalog-apply-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

body.page-shop .catalog-active-filters {
  margin: 0 0 1rem;
  padding: 0 0.85rem;
}

body.page-shop .catalog-active-filters-title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  color: #566d83;
}

body.page-shop .catalog-active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

body.page-shop .catalog-active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border: 1px solid #dbe6df;
  border-radius: 999px;
  background: #f7faf8;
  color: #35556f;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

body.page-shop .catalog-active-filter-chip:hover,
body.page-shop .catalog-active-filter-chip:focus-visible {
  border-color: #9dc9ab;
  outline: none;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.08);
}

body.page-shop .catalog-active-filter-chip-remove {
  font-size: 1rem;
  line-height: 1;
}

body.page-shop .catalog-feedback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  padding: 0 0.85rem;
}

body.page-shop .catalog-results-count {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #17324d;
}

body.page-shop .catalog-loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #eef6fb;
  color: #31536d;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

body.page-shop .catalog-loading-indicator[hidden] {
  display: none;
}

body.page-shop .catalog-loading-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #5b88a8;
  box-shadow: 0 0 0 0 rgba(91, 136, 168, 0.35);
  animation: shopCatalogPulse 1.3s ease-out infinite;
}

@keyframes shopCatalogPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(91, 136, 168, 0.35);
  }

  100% {
    box-shadow: 0 0 0 9px rgba(91, 136, 168, 0);
  }
}

body.page-shop .catalog-reset-button {
  align-self: end;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 15px;
  border-color: #d7e4dc;
  background: linear-gradient(180deg, #f8fcf9, #eef7f1);
  color: #27533c;
  box-shadow: none;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-left: 0;
}

body.page-shop .catalog-reset-button:hover {
  background: linear-gradient(180deg, #f4faf6, #e8f3ec);
}

body.page-shop .mobile-category-bar {
  display: none;
  margin: 0 0 12px;
}

body.page-shop .mobile-category-toggle {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #d7dee7;
  background: #f8fafc;
  color: #27384f;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
}

body.page-shop .mobile-category-menu {
  margin-top: 0.5rem;
  display: none;
}

body.page-shop .mobile-category-menu.is-open {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.page-shop .mobile-category-option {
  margin: 0;
  width: auto;
}

body.page-shop .search-row {
  margin-top: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.page-shop .search-box {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-soft);
  background: var(--bg-surface);
  box-shadow: var(--shadow-soft);
  border-radius: 999px;
  padding: 8px 12px;
}

body.page-shop .search-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: var(--text-main);
}

body.page-shop .search-box input:focus {
  outline: none;
}

body.page-shop .filter-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

body.page-shop .chip {
  border-color: var(--line-soft);
  background: #ffffff;
}

body.page-shop .product-feedback {
  min-height: 22px;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #5f7389;
}

body.page-shop .product-feedback:empty,
body.page-shop #catalog-status:empty {
  display: none;
}

body.page-shop .product-feedback:not(:empty),
body.page-shop .page-status:not(:empty),
body.page-shop .product-review-status:not(:empty),
body.page-shop .product-modal-favorite-status:not(:empty),
body.page-shop .auth-status:not(:empty),
body.page-shop .orders-history-status:not(:empty),
body.page-shop .checkout-status-message:not(:empty) {
  display: block;
  padding: 10px 12px;
  border: 1px solid #dde7ef;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(252, 253, 253, 0.98), rgba(245, 248, 251, 0.98));
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
  line-height: 1.5;
}

body.page-shop .loading-state {
  border: 1px solid #dde7ef;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(251, 253, 254, 0.98), rgba(244, 248, 251, 0.98));
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
  color: #4f6984;
}

body.page-shop #productLoadingState {
  margin-bottom: 12px;
}

body.page-shop .product-feedback.warning {
  border-color: #eadfbe;
  background: linear-gradient(180deg, rgba(255, 251, 241, 0.98), rgba(250, 244, 230, 0.98));
  color: #8b6326;
}

body.page-shop .product-feedback.error {
  border-color: #ead6da;
  background: linear-gradient(180deg, rgba(253, 246, 247, 0.98), rgba(249, 239, 241, 0.98));
  color: #9a3f4d;
}

/* Catalog header above product list */
body.page-shop .catalog-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 16px;
}

body.page-shop .catalog-header h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
}

body.page-shop .catalog-header p {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
}

body.page-shop .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 20px;
  margin-top: 0;
}

@media (min-width: 1081px) {
  body.page-shop .page-grid {
    display: grid;
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    column-gap: 0;
    row-gap: 16px;
    align-items: start;
    box-sizing: border-box;
    transition:
      padding-left 0.22s ease,
      grid-template-columns 0.24s ease,
      column-gap 0.24s ease;
  }

  body.page-shop .homepage-left-column {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 90px;
    left: auto;
    align-self: start;
    width: min(340px, 100%);
    max-width: 340px;
    gap: 16px;
    min-height: 0;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
    padding-right: 24px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    z-index: 1;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      max-width 0.24s ease,
      padding-right 0.24s ease,
      visibility 0s linear;
  }

  body.page-shop .homepage-right-column {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    gap: 16px;
    min-width: 0;
  }

  body.page-shop .homepage-catalog-tools,
  body.page-shop .products-section {
    align-self: start;
    margin-top: 0;
  }

  body.page-shop .sidebar-left {
    width: 100%;
    align-self: stretch;
  }

  body.page-shop .homepage-catalog-tools {
    width: 100%;
    align-self: stretch;
  }

  body.page-shop .sidebar-card {
    width: 100%;
    box-sizing: border-box;
  }

  body.page-shop .catalog-tools-panel {
    width: 100%;
    box-sizing: border-box;
  }

  body.page-shop .commerce-layer-section,
  body.page-shop .platform-cta-section {
    grid-column: 2;
    max-width: none;
    margin: 0; /* Fix: removed redundant bottom margin */
  }

  body.page-shop.desktop-filter-panel-ready .section-heading-bar {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 14px;
  }

  body.page-shop.desktop-filter-panel-ready .section-heading-copy {
    flex: 1 1 auto;
  }

  body.page-shop.desktop-filter-panel-ready .header-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.page-shop.desktop-filter-panel-ready .header-filter-btn:hover {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  }

  body.page-shop.desktop-filter-panel-ready.desktop-filter-panel-open .header-filter-btn {
    background: #dff0e8;
    border-color: #afd4bc;
    color: #1f6c45;
  }

  body.page-shop.desktop-filter-panel-ready .desktop-filter-toggle:hover,
  body.page-shop.desktop-filter-panel-ready .desktop-filter-toggle:focus-visible {
    background: #f7fbf8;
    border-color: #bfd6c5;
  }

  body.page-shop.desktop-filter-panel-ready.desktop-filter-panel-open .desktop-filter-toggle {
    background: #eef7f1;
    border-color: #bfd6c5;
    color: #1f6c45;
  }

  body.page-shop.desktop-filter-panel-ready .desktop-filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e4ecf4;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  }

  body.page-shop.desktop-filter-panel-ready .desktop-filter-panel-label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5f7286;
  }

  body.page-shop.desktop-filter-panel-ready .desktop-filter-backdrop {
    display: none !important;
  }

  body.page-shop.desktop-filter-panel-ready .page-grid {
    grid-template-columns: 0 minmax(0, 1fr);
  }

  body.page-shop.desktop-filter-panel-ready.desktop-filter-panel-open .page-grid {
    padding-left: clamp(0px, calc(338px - ((100vw - 1360px) / 2)), 298px);
  }

  body.page-shop.shop-desktop-dual-panel-open .page-grid {
    max-width: none;
    width: calc(100vw - min(320px, calc(100vw - 24px)) - var(--cart-drawer-width) - 52px);
    margin-left: calc(min(320px, calc(100vw - 24px)) + 18px);
    margin-right: calc(var(--cart-drawer-width) + 18px);
    padding-left: 16px;
  }

  body.page-shop.drawer-open:not(.desktop-filter-panel-ready) .page-grid {
    max-width: none;
    width: calc(100vw - min(340px, 100%) - var(--cart-drawer-width) - 52px);
    margin-left: calc(min(340px, 100%) + 18px);
    margin-right: calc(var(--cart-drawer-width) + 18px);
  }

  body.page-shop.desktop-filter-panel-ready .homepage-left-column {
    position: fixed;
    top: 73px;
    left: 0;
    bottom: 0;
    width: min(320px, calc(100vw - 24px));
    max-width: 320px;
    height: calc(100vh - 73px);
    height: calc(100dvh - 73px);
    max-height: calc(100vh - 73px);
    max-height: calc(100dvh - 73px);
    padding: 16px 16px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: rgba(243, 247, 251, 0.98);
    border-right: 1px solid rgba(216, 225, 234, 0.92);
    box-shadow: 12px 0 30px rgba(15, 23, 42, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(calc(-100% - 12px));
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0s linear 0.22s;
    z-index: 905;
  }

  body.page-shop.desktop-filter-panel-ready.desktop-filter-panel-open .homepage-left-column {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease;
  }

  /* Hero two-column layout on desktop */
  body.page-shop .hero-section {
    min-height: 300px;
  }

  body.page-shop .hero-body {
    flex: 0 0 54%;
    padding: 58px 40px 36px;
  }

  body.page-shop .hero-visual {
    display: flex;
    flex: 1;
    position: relative;
    background:
      radial-gradient(circle at 65% 35%, rgba(22, 163, 74, 0.12), transparent 55%),
      radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08), transparent 50%),
      linear-gradient(145deg, #edf7f2 0%, #e3edf8 100%);
    border-radius: 0 23px 23px 0;
    overflow: hidden;
    align-items: stretch;
    padding: 16px;
  }

  body.page-shop .hero-slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 82%, transparent 100%);
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 6%,
      black 82%,
      transparent 100%
    );
  }

  body.page-shop .hero-slider-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: heroSliderScroll 24s linear infinite;
  }

  body.page-shop .hero-slider-track:hover {
    animation-play-state: paused;
  }

  body.page-shop .hero-slide {
    position: relative;
    width: 224px;
    height: 295px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    flex-shrink: 0;
  }

  body.page-shop .hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
  }

  body.page-shop .hero-slide:hover .hero-slide-img {
    transform: scale(1.06);
  }

  body.page-shop .hero-visual-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #1e3a5f;
  }

  body.page-shop .homepage-catalog-tools .catalog-controls {
    grid-template-columns: 1fr;
    max-width: none;
    margin-bottom: 0;
  }

  body.page-shop .homepage-catalog-tools .catalog-server-filters {
    grid-template-columns: 1fr;
    padding: 0;
  }

  body.page-shop .homepage-catalog-tools .catalog-active-filters {
    padding: 0;
  }

  body.page-shop .homepage-catalog-tools .catalog-feedback-row {
    padding: 0;
  }

  body.page-shop .homepage-catalog-tools .search-row {
    margin-top: 12px;
    margin-bottom: 0;
  }

  body.page-shop .homepage-catalog-tools .filter-chips {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-shop .homepage-catalog-tools .chip {
    width: 100%;
  }

  body.page-shop .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== 4-UP GRID (≥1400px) =====
   Sidebar (~340px) + content (~1060px) comfortably fits 4 × ~245px cards.
   Paired with visual simplifications so cards don't feel crowded at this size.
   ===== */
@media (min-width: 1400px) {
  body.page-shop .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  /* Tighter image inset */
  body.page-shop .product-card-media {
    margin: 10px 10px 0;
    border-radius: 12px;
  }

  /* Tighter card body */
  body.page-shop .product-card-body {
    padding: 12px 14px 14px;
    gap: 0.45rem;
  }

  /* 1-line description — keeps card height consistent in 4-up */
  body.page-shop .product-description {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  /* Slightly smaller price in bottom row */
  body.page-shop .product-card-bottom .product-price {
    font-size: 1.06rem;
  }

  /* Bottom row tighter */
  body.page-shop .product-card-bottom {
    padding: 11px 0 0;
  }

  /* Smaller circular add button */
  body.page-shop .product-card-bottom .add-to-cart-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  body.page-shop .product-card-bottom .add-to-cart-button::before {
    font-size: 18px;
  }

  /* Slightly smaller title */
  body.page-shop .product-name {
    font-size: 0.97rem;
  }
}

@keyframes heroSliderScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Respect reduced-motion preference: pause slider */
@media (min-width: 1081px) and (prefers-reduced-motion: reduce) {
  body.page-shop .hero-slider-track {
    animation-play-state: paused;
  }
}

/* ===== PRODUCT CARD =====
   Single source of truth for homepage product grid cards.
   Card structure: .product-card > image-link | .product-card-top | .product-card-body | .product-card-bottom
   JS renderer: frontend/js/checkout/checkout-cart.js
   ===== */
body.page-shop .product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  border: 1px solid #dbe5ef;
  background: #ffffff;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  min-height: 100%;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  animation: card-rise 0.35s ease both;
}

body.page-shop .product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  border-color: #ccd7e3;
}

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

body.page-shop .product-card-primary-link {
  color: inherit;
  text-decoration: none;
}

body.page-shop .product-card-primary-link:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 3px;
  border-radius: 18px;
}

body.page-shop .product-card-media {
  position: relative;
  margin: 8px 8px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f6f8fb;
  isolation: isolate;
}

body.page-shop .product-card-image-link {
  display: block;
  margin: 0;
  border-radius: inherit;
  overflow: hidden;
  background: transparent;
  position: relative;
  border: none; /* Phase 3: removed redundant inner border */
}

body.page-shop .product-card-image-link::before {
  display: none;
}

body.page-shop .product-card-image-link::after {
  display: none;
}

body.page-shop .product-card:nth-child(2n) {
  animation-delay: 0.03s;
}

body.page-shop .product-card:nth-child(3n) {
  animation-delay: 0.06s;
}

body.page-shop .product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  border: none;
  background: #f2f4f7;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.page-shop .product-image--contain {
  object-fit: contain;
  background: #f1f5f9;
}

body.page-shop .product-card:hover .product-image--contain {
  transform: none;
}

body.page-shop .product-card-image-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.28);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

body.page-shop .product-card-image-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition:
    width 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

body.page-shop .product-card-image-dot:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.82);
}

body.page-shop .product-card-image-dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

body.page-shop .product-card-image-dot.is-active {
  width: 18px;
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-0.5px);
}

body.page-shop .product-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.5rem;
  row-gap: 0.35rem;
  min-height: 0;
  padding: 0 0 8px;
}

body.page-shop .product-card-top.product-card-top-single {
  grid-template-columns: minmax(0, 1fr);
}

body.page-shop .product-card-media-top {
  position: absolute;
  inset: 14px 14px auto;
  z-index: 2;
  padding: 0;
  align-items: start;
}

body.page-shop .product-card-media-top .product-card-badge-stack {
  max-width: min(100%, 12rem);
}

body.page-shop .product-card-badge-stack {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
  margin-left: auto;
  max-width: min(100%, 11.75rem);
  justify-self: end;
}

body.page-shop .product-category-pill,
body.page-shop .product-launch-badge,
body.page-shop .product-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 24px;
  max-width: min(100%, 15rem);
  margin: 0;
  font-size: 10px; /* Phase 3: slightly larger badge text */
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.06em; /* Phase 3: reduced tracking */
  text-transform: uppercase;
  text-align: left;
  overflow-wrap: anywhere;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
}

body.page-shop .product-category-pill {
  width: fit-content;
  max-width: 100%;
  color: #1e6b45;
  background: linear-gradient(180deg, #f4fbf6, #ebf7ef);
  border-color: #cfe3d7;
  box-shadow: 0 1px 4px rgba(31, 107, 69, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

body.page-shop .product-launch-badge {
  color: #64748b;
  background: #f8fafc;
  border-color: #dde7f0;
}

body.page-shop .product-badge {
  border-color: #dde7ef;
}

body.page-shop .product-badge-zagrin {
  color: #365746;
  background: rgba(246, 250, 248, 0.96);
  border-color: rgba(219, 230, 223, 0.96);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

body.page-shop .product-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.68rem;
  flex: 1 1 auto;
  padding: 15px 16px 16px;
}

body.page-shop .product-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

body.page-shop .product-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

body.page-shop .product-name {
  margin: 0;
  font-size: 1.08rem; /* Phase 3: readable hierarchy */
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #0f172a; /* Phase 3: deeper contrast */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

body.page-shop .product-card h3 {
  font-size: 1rem;
  margin-bottom: 0;
}

body.page-shop .product-card-title-link:hover,
body.page-shop .product-card-title-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.page-shop .product-seller {
  margin: 0;
  order: 1;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  color: #72849a;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
}

body.page-shop .product-seller span {
  font-weight: 600;
  color: #243446;
  margin-left: 4px;
}

body.page-shop .product-card-rating {
  margin: 0;
  order: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #e3e9d8;
  background: linear-gradient(180deg, #fcfdf9, #f5f8ef);
  box-shadow: 0 1px 4px rgba(101, 126, 83, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #5f7287;
  white-space: nowrap;
}

body.page-shop .product-card-rating .card-rating-stars {
  color: #c88d24;
  letter-spacing: 0.03em;
}

body.page-shop .product-card-rating-count {
  color: #71859b;
}

body.page-shop .product-stock {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
}

body.page-shop .product-stock-in-stock {
  color: #9ca3af;
  background: transparent;
}

body.page-shop .product-stock-low {
  color: #b7791f;
  background: transparent;
}

body.page-shop .product-stock-sold-out {
  color: #c53030;
  background: #fef2f2;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
}

body.page-shop .product-description {
  margin: 0.18rem 0 0;
  font-size: 0.8rem;
  color: #60748a;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

body.page-shop .product-card-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0 0; /* Phase 3: cleaner separation */
  border-top: 1px solid #f1f5f9; /* Phase 3: softer hairline */
  background: transparent;
}

body.page-shop .product-card-purchase {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  min-width: 0;
}

body.page-shop .product-card-price-label {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8195aa;
}

body.page-shop .product-card-price,
body.page-shop .product-price {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  font-weight: 700; /* Phase 3 polish: softer weight */
  font-size: 1.16rem;
  color: #122033;
  margin: 0;
  letter-spacing: 0; /* Phase 3 polish: relaxed tracking */
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

body.page-shop .product-card-actions {
  margin-top: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

body.page-shop .product-card-actions button {
  width: auto;
}

/* Price in bottom row — green, prominent */
body.page-shop .product-card-bottom .product-price {
  font-size: 1.25rem; /* Phase 3: dominant price read */
  font-weight: 700; /* Phase 3 polish: softer bold */
  color: #0f172a;
  letter-spacing: 0; /* Phase 3 polish: relaxed tracking */
  line-height: 1.1;
}

/* Clear add-to-cart action button */
body.page-shop .product-card-bottom .add-to-cart-button {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  padding: 5px 14px 6px; /* Phase 3: slightly more breathing room */
  border-radius: 999px;
  border: none; /* Phase 3: remove noisy border */
  background: #10b981; /* Phase 3: clean, flat premium green */
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: capitalize;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15); /* calmer, cleaner shadow */
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
  flex-shrink: 0;
}

body.page-shop .product-card-bottom .add-to-cart-button::before {
  display: none !important;
}

body.page-shop .product-card-bottom .add-to-cart-button:hover {
  background: #059669; /* Phase 3: flat subtle darkening on hover */
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.2);
}

body.page-shop .product-card-bottom .add-to-cart-button:hover::before {
  color: currentColor;
}

body.page-shop .product-card-bottom .add-to-cart-button:focus-visible {
  outline: 2px solid rgba(47, 154, 99, 0.24);
  outline-offset: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 2px 5px rgba(15, 23, 42, 0.08),
    0 0 0 4px rgba(47, 154, 99, 0.08);
}

body.page-shop .product-card-bottom .add-to-cart-button:disabled {
  background: linear-gradient(180deg, #f3f6f9 0%, #eef2f6 100%);
  color: #9ca3af;
  border-color: #d7e0ea;
  cursor: not-allowed;
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 1px 2px rgba(15, 23, 42, 0.04);
}

body.page-shop .product-card-bottom .add-to-cart-button:disabled::before {
  content: "";
  width: 12px;
  height: 10px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 12px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) 0 4px / 8px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) 0 8px / 10px 1.6px no-repeat;
}

body.page-shop .add-to-cart-button {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 11.5px;
  font-weight: 700;
  background: #172033;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition:
    background var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

body.page-shop .add-to-cart-button:hover {
  background: #0f1825;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}

body.page-shop .add-to-cart-button:disabled {
  background: #b8c4d0;
  box-shadow: none;
  cursor: not-allowed;
}

/* Title row with heart button */
body.page-shop .product-name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

body.page-shop .product-card-fav {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #9aa6b2;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-top: 1px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

body.page-shop .product-card-fav:hover {
  color: #e11d48;
  background: #fff1f3;
  border-color: #fecdd3;
}

body.page-shop .product-card-fav.is-saved {
  color: #f43f5e;
}

body.page-shop .product-card-fav.is-saved svg {
  fill: #f43f5e;
  stroke: #f43f5e;
}

/* Category + price row at top of card body */
body.page-shop .product-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

body.page-shop .product-card-meta-row .product-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a202c;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Zagrin Original badge pinned to image corner */
body.page-shop .product-card-badge-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.page-shop .product-card-skeleton {
  pointer-events: none;
}

body.page-shop .skeleton-block {
  border-radius: 10px;
  background: linear-gradient(90deg, #edf2f7 20%, #f8fbfd 50%, #edf2f7 80%);
  background-size: 220% 100%;
  animation: pulse-loading 1.2s linear infinite;
}

body.page-shop .skeleton-image {
  height: 185px;
}

body.page-shop .skeleton-line {
  height: 12px;
}

body.page-shop .skeleton-line.short {
  width: 65%;
}

body.page-shop .skeleton-button {
  height: 30px;
  width: 45%;
  margin-left: auto;
}

@keyframes pulse-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -20% 0;
  }
}

body.page-shop .product-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-7, 48px) var(--space-5, 24px);
  background: linear-gradient(180deg, rgba(252, 253, 253, 0.98), rgba(245, 248, 251, 0.98));
  border-radius: var(--radius-lg, 16px);
  border: 1px solid #dde7ef;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

body.page-shop .empty-state-illustration {
  margin-bottom: var(--space-4, 16px);
  animation: emptyBounce 2s ease-in-out infinite;
}

@keyframes emptyBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

body.page-shop .product-empty-state h3 {
  font-size: var(--text-xl, 1.3rem);
  margin-bottom: 0.5rem;
  color: var(--color-neutral-800, #1e293b);
}

body.page-shop .product-empty-state p {
  color: var(--color-neutral-500, #6b7280);
  margin-bottom: var(--space-5, 24px);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

body.page-shop .product-empty-actions {
  margin-bottom: var(--space-3, 12px);
}

body.page-shop .product-empty-featured-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

body.page-shop .empty-category-card {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: #eef2ff;
  font-size: 0.8rem;
  color: #4f46e5;
}

/* ── Commerce layer (Digital Trust section) ── */
body.page-shop .commerce-layer-section {
  margin: 0 0 28px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(251, 253, 254, 0.98), rgba(244, 248, 251, 0.98));
  border: 1px solid #dde6ee;
  box-shadow: 0 3px 16px rgba(15, 23, 42, 0.05);
}

body.page-shop .commerce-layer-inner {
  padding: 44px 48px;
  display: flex;
  gap: 3.5rem;
  align-items: flex-start;
}

body.page-shop .commerce-layer-left {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.page-shop .commerce-layer-heading {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0;
}

body.page-shop .commerce-layer-subheading {
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

body.page-shop .commerce-layer-features {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 2.5rem;
}

body.page-shop .commerce-layer-feature {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

body.page-shop .commerce-layer-icon {
  color: #e8651a;
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}

body.page-shop .commerce-layer-feature h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  letter-spacing: -0.01em;
}

body.page-shop .commerce-layer-feature p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

body.page-shop .commerce-layer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e8651a;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.5rem;
  transition:
    color 0.15s ease,
    gap 0.15s ease;
}

body.page-shop .commerce-layer-link:hover {
  color: #d45510;
  gap: 9px;
}

/* ── Platform CTA section (dark) ── */
body.page-shop .platform-cta-section {
  margin: 0; /* Fix: removed redundant bottom margin */
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1520 0%, #1a0c0c 100%);
}

body.page-shop .platform-cta-inner {
  padding: 40px 48px;
}

body.page-shop .platform-cta-heading {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 2rem;
  max-width: 620px;
}

body.page-shop .platform-cta-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

body.page-shop .platform-cta-feature {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.page-shop .platform-cta-icon {
  width: 44px;
  height: 44px;
  background: #e8651a;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

body.page-shop .platform-cta-feature h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

body.page-shop .platform-cta-feature p {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
}

body.page-shop .platform-cta-btn {
  display: block;
  width: fit-content;
  margin: 0 auto;
  background: #e8651a;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 999px;
  text-decoration: none;
  transition:
    background 0.18s ease,
    transform 0.15s ease;
}

body.page-shop .platform-cta-btn:hover {
  background: #d45510;
  transform: translateY(-1px);
}

body.page-shop .testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 1080px) {
  body.page-shop .homepage-top-row,
  body.page-shop .homepage-browse-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.page-shop .testimonial-card {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
  text-align: left;
}

body.page-shop .testimonial-card p {
  margin: 0;
  color: #111827;
}

body.page-shop .testimonial-card span {
  display: block;
  margin-top: 0.75rem;
  font-weight: 600;
  color: #374151;
}

@media (max-width: 900px) {
  body.page-shop .commerce-layer-section {
    margin: 0 0 2.25rem;
  }

  body.page-shop .commerce-layer-inner {
    padding: 2.5rem 1.5rem;
    flex-direction: column;
    gap: 2rem;
  }

  body.page-shop .commerce-layer-left {
    flex: none;
    width: 100%;
  }

  body.page-shop .commerce-layer-heading {
    font-size: 1.6rem;
  }

  body.page-shop .commerce-layer-features {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  body.page-shop .platform-cta-section {
    margin: 0; /* Fix: prevent footer gap stacking on small screens */
  }

  body.page-shop .platform-cta-inner {
    padding: 2.5rem 1.5rem;
  }

  body.page-shop .platform-cta-heading {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  body.page-shop .platform-cta-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

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

  body.page-shop .product-modal-related-grid {
    grid-template-columns: 1fr;
  }

  body.page-shop .catalog-feedback-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

body.page-shop .mobile-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.85rem;
  background: #111827;
  color: #f9fafb;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 50;
  font-size: 0.85rem;
}

body.page-shop .cart-sticky-bar-summary {
  font-size: 0.85rem;
}

body.page-shop .mobile-cart-bar button {
  white-space: nowrap;
}

body.page-shop .mobile-cart-bar.is-hidden {
  display: none !important;
}

body.page-shop .footer {
  display: block;
  margin-top: 14px;
  border-top: 1px solid #dde6ee;
  background: linear-gradient(180deg, #f6fafc 0%, #edf3f7 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  padding: 30px 20px 40px;
}

body.page-shop .footer-content {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 24px 56px;
  align-items: start;
}

body.page-shop .footer h2 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b637b;
}

body.page-shop .footer p {
  margin: 0;
  color: #60748b;
  font-size: 0.92rem;
  line-height: 1.7;
}

body.page-shop .footer .footer-meta {
  margin-top: 14px;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #6d8094;
}

body.page-shop .footer .footer-meta a,
body.page-shop .footer .footer-link-list a {
  color: #36506c;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

body.page-shop .footer .footer-meta a:hover,
body.page-shop .footer .footer-link-list a:hover {
  color: #17304a;
}

body.page-shop .footer .footer-link-list {
  display: grid;
  gap: 10px;
  color: #60748b;
}

body.page-shop .cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
}

body.page-shop .cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 30, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

body.page-shop .cart-drawer.open .cart-drawer-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.page-shop .cart-drawer-panel {
  position: absolute;
  top: var(--cart-drawer-top-offset);
  bottom: var(--cart-drawer-bottom-gap);
  right: 0;
  width: var(--cart-drawer-width);
  height: auto;
  transform: translate3d(calc(100% + 10px), 0, 0);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.18s ease;
  padding: 8px 10px;
}

body.page-shop .cart-drawer.open .cart-drawer-panel {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

body.page-shop .cart-card {
  height: 100%;
  background: var(--bg-surface);
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-strong);
  padding: 15px;
  display: flex;
  flex-direction: column;
}

body.page-shop .cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

body.page-shop .cart-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a; /* Phase 9: Slate heading */
  letter-spacing: -0.01em;
}

body.page-shop .cart-summary {
  margin: 4px 0 0;
  color: #94a3b8; /* Phase 9: Calm muted text */
  font-size: 12px;
}

body.page-shop .drawer-close {
  border: none;
  background: transparent;
  color: #68809e;
  font-size: 20px;
  line-height: 1;
  padding: 3px 6px;
}

body.page-shop .drawer-close:hover {
  color: var(--brand-dark);
}

body.page-shop .cart-items {
  flex: 1;
  margin-top: 12px;
  margin-bottom: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

body.page-shop .cart-empty {
  padding: 12px 14px;
  border: 1px solid #dde7ef;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(252, 253, 253, 0.98), rgba(245, 248, 251, 0.98));
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
  color: #60748b;
  font-size: 13px;
  line-height: 1.5;
}

body.page-shop .cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #edf2f8;
  padding: 8px 0;
}

body.page-shop .cart-item-main {
  min-width: 0;
}

body.page-shop .cart-item-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a; /* Phase 9: Crisp slate text */
}

body.page-shop .cart-item-meta {
  margin: 2px 0 0;
  font-size: 11px;
  color: #94a3b8; /* Phase 9: Unified muted text */
}

body.page-shop .cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.page-shop .cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 8px; /* Phase 9: Structured square stepper */
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155; /* Phase 9: Neutral slate */
  padding: 0;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

body.page-shop .cart-qty-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

body.page-shop .cart-qty {
  min-width: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

body.page-shop .cart-line {
  min-width: 76px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a; /* Phase 9: Crisp price */
}

body.page-shop .cart-remove-btn {
  border: none;
  background: transparent;
  color: #8b5f6a;
  font-size: 16px;
  line-height: 1;
  padding: 0 3px;
}

body.page-shop .cart-remove-btn:hover {
  color: #b62033;
}

body.page-shop .payment-options {
  background: var(--bg-soft);
  border: 1px solid #e5edf5;
  border-radius: 12px;
  padding: 10px;
}

body.page-shop .payment-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0f172a;
}

body.page-shop .payment-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  margin-bottom: 6px;
}

body.page-shop .payment-option:last-child {
  margin-bottom: 0;
}

/* Cart drawer primary CTA: scoped premium style */
body.page-shop .cart-actions #checkout-button {
  flex: 1;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

body.page-shop .cart-actions #checkout-button:hover {
  background: #1e293b;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

body.page-shop .cart-divider {
  border: 0;
  border-top: 1px solid #e2e8f0; /* Phase 9: Unified border */
  margin: 14px 0;
}

body.page-shop .cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Hide cart footer UI when cart is empty */
body.page-shop .cart-card:has(.cart-empty) .payment-options,
body.page-shop .cart-card:has(.cart-empty) .cart-divider,
body.page-shop .cart-card:has(.cart-empty) #clear-cart {
  display: none;
}

/* =========================
   Premium Cart Drawer
========================= */
.cart-drawer-panel,
body.page-shop .cart-drawer-panel {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.08);
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-details {
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-item-meta,
body.page-shop .cart-item-meta {
  font-size: 0.85rem;
  color: #6b7280;
}

.cart-item-total {
  font-weight: 600;
}

.cart-estimates {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 1rem 0;
}

.cart-footer {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  z-index: 2;
}

.cart-footer-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  color: #374151;
}

.cart-footer button {
  width: 100%;
  border-radius: 12px;
  padding: 0.9rem;
  font-weight: 600;
}

body.page-shop .modal-backdrop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 15, 26, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1200;
}

body.page-shop .modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

body.page-shop .modal-backdrop.open .modal-card {
  animation: modal-pop 0.2s ease both;
}

body.page-shop .modal-card {
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-strong);
}

body.page-shop .product-modal,
body.page-shop .product-detail-dialog {
  width: min(980px, 100%);
  padding: 20px;
  position: relative;
  max-height: min(90vh, calc(100vh - 4rem));
  margin: 2rem auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body.page-shop .product-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #6a7f99;
  font-size: 20px;
}

body.page-shop .product-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 22px;
}

body.page-shop .product-modal-image-wrapper {
  border-radius: 16px;
  border: 1px solid #e8eef5;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
  padding: 14px;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.page-shop .product-modal-image {
  width: 100%;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 14px;
}

body.page-shop .product-modal-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.page-shop .product-detail-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.page-shop .badge-eco-verified {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #16613f;
  background: #e9f8ef;
  border: 1px solid #b9e3ca;
}

body.page-shop .product-modal-category {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #2f8d5f;
}

body.page-shop .product-modal-name {
  margin: 2px 0 4px;
  font-size: 28px;
  line-height: 1.2;
}

body.page-shop .product-modal-description {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.45;
}

body.page-shop .product-modal-price {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 700;
}

body.page-shop .product-modal-stock {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
}

body.page-shop .product-modal-trust-line {
  margin: 4px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #406183;
  font-weight: 600;
}

body.page-shop .trust-lock-icon {
  font-size: 13px;
}

body.page-shop .seller-info-box {
  margin-top: 4px;
  border: 1px solid #dbe7f3;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7fc 100%);
  padding: 10px 12px;
}

body.page-shop .product-detail-seller-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

body.page-shop .seller-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f8d5f, #16613f);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(22, 97, 63, 0.25);
}

body.page-shop .seller-avatar.has-image {
  background: #eef2f7;
  color: transparent;
}

body.page-shop .seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

body.page-shop .seller-text {
  min-width: 0;
}

body.page-shop .seller-name {
  font-weight: 700;
  color: #15324d;
  font-size: 15px;
}

body.page-shop .seller-tagline {
  margin-top: 1px;
  font-size: 0.85rem;
  color: #6b7280;
}

body.page-shop .product-detail-rating-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

body.page-shop .rating-stars {
  color: #d39a22;
  letter-spacing: 0.05em;
  font-size: 13px;
  font-weight: 700;
}

body.page-shop .rating-text {
  font-size: 0.85rem;
  color: #4b5563;
}

body.page-shop .product-detail-trust-box {
  margin-top: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

body.page-shop .product-detail-trust-box h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #1f3652;
}

body.page-shop .product-detail-trust-box ul {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.9rem;
  color: #40566f;
  line-height: 1.45;
}

body.page-shop .seller-info-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

body.page-shop .seller-info-title {
  margin: 0;
  font-size: 14px;
  color: #1f3d59;
}

body.page-shop .seller-trust-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

body.page-shop .seller-trust-badge {
  border: 1px solid #b9dfc8;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #1f7b4e;
  background: #e8f7ef;
}

body.page-shop .seller-info-name {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #15324d;
}

body.page-shop .seller-info-description {
  margin: 5px 0 0;
  font-size: 13px;
  color: #526d8a;
  line-height: 1.4;
}

body.page-shop .seller-info-meta {
  margin: 5px 0 0;
  font-size: 12px;
  color: #637d98;
}

body.page-shop .product-rating-overview {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: #f7fafc;
}

body.page-shop .product-rating-average {
  margin: 0;
  font-weight: 700;
  color: #1f3952;
}

body.page-shop .product-rating-count {
  margin: 4px 0 0;
  color: #6a7f99;
  font-size: 12px;
}

body.page-shop .product-reviews-panel {
  margin-top: 10px;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  padding: 10px;
  background: #ffffff;
}

body.page-shop .product-reviews-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.page-shop .product-reviews-header h3 {
  margin: 0;
  font-size: 15px;
  color: #1e3954;
}

body.page-shop .product-review-sort-label {
  margin-left: auto;
  color: #5c738f;
  font-size: 12px;
}

body.page-shop .product-review-sort {
  border: 1px solid #d7e2ee;
  border-radius: 9px;
  padding: 5px 8px;
  font-size: 12px;
  color: #19324a;
  background: #ffffff;
}

body.page-shop .product-review-status {
  margin: 8px 0 6px;
  font-size: 12px;
  color: #5d748f;
  min-height: 16px;
}

body.page-shop .product-review-status.error {
  border-color: #ead6da;
  background: linear-gradient(180deg, rgba(253, 246, 247, 0.98), rgba(249, 239, 241, 0.98));
  color: #9a3f4d;
}

body.page-shop .product-review-status.warning {
  border-color: #eadfbe;
  background: linear-gradient(180deg, rgba(255, 251, 241, 0.98), rgba(250, 244, 230, 0.98));
  color: #8b6326;
}

body.page-shop .product-review-status.success {
  border-color: #d8e6db;
  background: linear-gradient(180deg, rgba(247, 251, 248, 0.98), rgba(239, 246, 241, 0.98));
  color: #2f6c50;
}

body.page-shop .product-reviews-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 180px;
  overflow-y: auto;
  display: grid;
  gap: 8px;
}

body.page-shop .product-review-item,
body.page-shop .product-review-empty {
  border: 1px solid #eaf0f6;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fbfdff;
}

body.page-shop .product-review-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

body.page-shop .product-review-top strong {
  font-size: 13px;
  color: #13314e;
}

body.page-shop .product-review-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.page-shop .product-review-owner-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe7f5;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #385a82;
  background: #eef5ff;
}

body.page-shop .product-review-rating {
  font-size: 12px;
  color: #5e748d;
  font-weight: 600;
}

body.page-shop .product-review-meta {
  margin: 4px 0 0;
  color: #708399;
  font-size: 11px;
}

body.page-shop .product-review-text {
  margin: 6px 0 0;
  color: #24425f;
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
}

body.page-shop .product-review-form {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #e8eef5;
  border-radius: 12px;
  background: #f9fcff;
}

body.page-shop .product-review-form label {
  font-size: 12px;
  color: #2f4963;
  font-weight: 600;
}

body.page-shop .product-review-form select,
body.page-shop .product-review-form textarea {
  border: 1px solid #d3deea;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 13px;
  color: #1d3750;
  background: #ffffff;
}

body.page-shop .product-review-form textarea {
  resize: vertical;
  min-height: 72px;
}

body.page-shop .product-review-auth-hint {
  margin: 0;
  font-size: 11px;
  color: #6e849a;
}

body.page-shop .modal-review-submit {
  border: none;
  border-radius: 999px;
  background: #264767;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 12px;
  justify-self: start;
}

body.page-shop .modal-review-submit:disabled {
  opacity: 0.65;
}

body.page-shop .product-modal-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-shop .modal-secondary-button,
body.page-shop .modal-add-to-cart {
  border: 1px solid transparent;
  border-radius: 12px; /* Phase 8: unified border radiuses */
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.page-shop .modal-secondary-button {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

body.page-shop .modal-secondary-button:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

body.page-shop .modal-add-to-cart {
  background: #0f172a;
  color: #ffffff;
}

body.page-shop .modal-add-to-cart:hover {
  background: #1e293b;
}

body.page-shop .modal-add-to-cart:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

/* Premium product modal layout */
body.page-shop .product-modal-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
}

body.page-shop .product-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
  color: #6b7280;
  line-height: 1;
}

body.page-shop .product-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: 1.5rem;
  align-items: flex-start;
}

body.page-shop .product-modal-left,
body.page-shop .product-modal-right {
  min-width: 0;
}

body.page-shop .product-modal-right {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.page-shop .product-modal-image {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 420px;
}

body.page-shop .product-modal-primary-link {
  color: inherit;
  text-decoration: none;
}

body.page-shop .product-modal-primary-link:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 3px;
  border-radius: 14px;
}

body.page-shop .product-modal-image-link {
  display: block;
}

body.page-shop .product-modal-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.page-shop .product-modal-title-link:hover,
body.page-shop .product-modal-title-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

body.page-shop .product-modal-category {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

body.page-shop .product-modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

body.page-shop .product-modal-price {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
}

body.page-shop .product-modal-description {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

body.page-shop .product-modal-seller-box {
  background: #f8fafc; /* Phase 8: Premium neutral */
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

body.page-shop .product-modal-seller-header {
  margin-bottom: 0.35rem;
}

body.page-shop .seller-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #334155; /* Phase 8: Mature slate replacing bright indigo */
}

body.page-shop .product-modal-seller-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

body.page-shop .product-modal-seller-meta {
  font-size: 0.85rem;
  color: #6b7280;
}

body.page-shop .product-modal-trust-box {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 0.85rem 1rem;
}

body.page-shop .product-modal-trust-box .trust-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

body.page-shop .product-modal-trust-box .trust-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9; /* Phase 8: Neutral trust badge */
  color: #334155;
  font-weight: 600;
}

body.page-shop .product-modal-trust-box .trust-list {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.85rem;
  color: #4b5563;
}

body.page-shop .product-modal-related-section {
  margin-top: 0.25rem;
}

body.page-shop .product-modal-related-header h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #10233f;
}

body.page-shop .product-modal-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

body.page-shop .product-modal-related-card {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0; /* Phase 8: Premium structured card */
  border-radius: 12px;
  background: #ffffff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

body.page-shop .product-modal-related-card:hover,
body.page-shop .product-modal-related-card:focus-visible {
  border-color: #cbd5e1;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

body.page-shop .product-modal-related-media {
  width: 68px;
  height: 68px;
  overflow: hidden;
  border-radius: 12px;
  background: #eef2f7;
}

body.page-shop .product-modal-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-shop .product-modal-related-copy {
  min-width: 0;
}

body.page-shop .product-modal-related-title {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #111827;
}

body.page-shop .product-modal-related-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

body.page-shop .product-modal-related-price {
  font-weight: 700;
  color: #10233f;
}

body.page-shop .product-modal-related-stock {
  color: #166534;
}

body.page-shop .product-modal-related-stock.is-unavailable {
  color: #b91c1c;
}

body.page-shop .product-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem; /* Phase 8: Un-cramp the primary CTAs */
}

body.page-shop .product-modal-actions .btn-primary,
body.page-shop .product-modal-actions .btn-outline {
  flex: 1;
  min-width: 180px;
}

body.page-shop .product-favorite-toggle-button.is-favorited {
  border-color: #b8e4ca;
  background: #e8f7ef;
  color: #17603a;
}

body.page-shop .product-modal-favorite-status {
  min-height: 18px;
  margin: -0.2rem 0 0;
  font-size: 0.82rem;
  color: #516a86;
}

body.page-shop .product-modal-favorite-status.success {
  border-color: #d8e6db;
  background: linear-gradient(180deg, rgba(247, 251, 248, 0.98), rgba(239, 246, 241, 0.98));
  color: #2f6c50;
}

body.page-shop .product-modal-favorite-status.warning {
  border-color: #eadfbe;
  background: linear-gradient(180deg, rgba(255, 251, 241, 0.98), rgba(250, 244, 230, 0.98));
  color: #8b6326;
}

body.page-shop .product-modal-favorite-status.error {
  border-color: #ead6da;
  background: linear-gradient(180deg, rgba(253, 246, 247, 0.98), rgba(249, 239, 241, 0.98));
  color: #9a3f4d;
}

body.page-shop .product-modal-actions-secondary {
  margin-top: 0;
  justify-content: flex-end;
}

body.page-shop .product-open-details-link {
  text-decoration: none;
}

body.page-shop .product-modal-actions-secondary .modal-secondary-button {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

body.page-shop .toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 10px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  background: #0f2036;
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 14px 28px rgba(8, 24, 43, 0.35);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

body.page-shop .toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.page-shop .toast.error {
  background: #9d2032;
}

/* CHECKOUT MODAL */
body.page-shop .checkout-modal {
  width: min(760px, 100%);
  padding: 20px;
  position: relative;
}

body.page-shop .checkout-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #6a7f99;
  font-size: 20px;
}

body.page-shop .checkout-modal-header h2 {
  margin: 0;
  font-size: 23px;
}

body.page-shop .checkout-modal-header p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

body.page-shop .checkout-account-note {
  margin-top: 8px;
  font-size: 12px;
  color: #516a86;
  background: #f7fbff;
  border: 1px solid #dbe8f5;
  border-radius: 10px;
  padding: 8px 10px;
}

body.page-shop .checkout-items {
  margin-top: 14px;
  max-height: 270px;
  overflow-y: auto;
  padding-right: 3px;
}

body.page-shop .checkout-shipping {
  margin-top: 14px;
  border: 1px solid #e1eaf4;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
}

body.page-shop .checkout-shipping h3 {
  margin: 0 0 9px;
  font-size: 14px;
}

body.page-shop .checkout-shipping-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.page-shop .checkout-shipping-grid .form-field {
  margin-bottom: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 0.95rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary, #16a34a);
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.3);
}

.field-error {
  min-height: 1em;
  font-size: 0.8rem;
  color: #b91c1c;
}

body.page-shop .checkout-form-help,
body.page-shop .auth-form-help {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #667b94;
}

.form-field--has-error input,
.form-field--has-error select,
.form-field--has-error textarea {
  border-color: #b91c1c;
  box-shadow: none;
}

body.page-shop #checkout-status {
  margin-top: 8px;
  margin-bottom: 8px;
}

body.page-shop .checkout-shipping-grid .form-field label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #4d6280;
  font-weight: 600;
}

body.page-shop .checkout-shipping-grid .form-field input {
  border: 1px solid #cddae8;
  border-radius: 10px;
  background: #ffffff;
  color: #17314f;
  padding: 8px 10px;
  font-size: 13px;
}

body.page-shop .checkout-error {
  margin: 8px 0 0;
  color: #b12a3b;
  font-size: 12px;
  min-height: 16px;
  visibility: hidden;
}

body.page-shop .checkout-error.visible {
  visibility: visible;
}

body.page-shop .checkout-item-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf2f8;
  padding: 8px 0;
}

body.page-shop .checkout-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  background: #eef3f8;
}

body.page-shop .checkout-item-main {
  min-width: 0;
}

body.page-shop .checkout-item-name {
  font-size: 14px;
  font-weight: 600;
}

body.page-shop .checkout-item-meta {
  margin-top: 2px;
  color: #728299;
  font-size: 12px;
}

body.page-shop .checkout-item-price {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

body.page-shop .checkout-order-summary h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

body.page-shop .checkout-summary-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

body.page-shop .checkout-summary-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

body.page-shop .checkout-totals {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

body.page-shop .checkout-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  gap: 8px;
}

body.page-shop .checkout-row-total {
  margin-top: 0.5rem;
  font-weight: 700;
}

body.page-shop .checkout-legal {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

body.page-shop .checkout-summary-note {
  margin: 4px 0 0;
  color: #728299;
  font-size: 12px;
}

body.page-shop .checkout-summary-total {
  text-align: right;
}

body.page-shop .checkout-summary-total span {
  display: block;
}

body.page-shop .checkout-summary-total span:first-child {
  font-size: 12px;
  color: #728299;
}

body.page-shop .checkout-total-amount {
  margin-top: 2px;
  font-size: 20px;
  font-weight: 700;
}

body.page-shop .checkout-actions {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

body.page-shop .checkout-secondary-button,
body.page-shop .checkout-primary-button,
body.page-shop .checkout-stripe-button {
  border: none;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
}

body.page-shop .checkout-secondary-button {
  background: #eaf0f6;
  color: #2b4a66;
}

body.page-shop .checkout-primary-button {
  background: var(--brand-dark);
  color: #ffffff;
}

body.page-shop .checkout-stripe-button {
  background: #635bff;
  color: #ffffff;
}

body.page-shop .checkout-status-message {
  margin-top: 8px;
  min-height: 1.2em;
  font-size: 13px;
  color: #5f738e;
}

body.page-shop .checkout-status-message.error {
  border-color: #ead6da;
  background: linear-gradient(180deg, rgba(253, 246, 247, 0.98), rgba(249, 239, 241, 0.98));
  color: #9a3f4d;
}

body.page-shop .checkout-status-message.success {
  border-color: #d8e6db;
  background: linear-gradient(180deg, rgba(247, 251, 248, 0.98), rgba(239, 246, 241, 0.98));
  color: #2f6c50;
}

body.page-shop .checkout-confirm-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

body.page-shop .checkout-confirm-btn.loading::after {
  content: " ...";
}

body.page-shop .checkout-modal-close:focus-visible,
body.page-shop .checkout-secondary-button:focus-visible,
body.page-shop .checkout-stripe-button:focus-visible,
body.page-shop .auth-tab:focus-visible,
body.page-shop .auth-form button:focus-visible,
body.page-shop .auth-form input:focus-visible,
body.page-shop .checkout-shipping-grid input:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.16);
}

/* ORDER SUCCESS MODAL */
body.page-shop .order-success-modal {
  width: min(520px, 100%);
  padding: 20px;
  position: relative;
  text-align: center;
}

body.page-shop .order-success-close-button {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #6a7f99;
  font-size: 20px;
}

body.page-shop .order-success-icon {
  margin: 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--success-text);
  background: var(--success-bg);
  border: 1px solid #c5ebd3;
}

body.page-shop .order-success-title {
  margin: 10px 0 6px;
  font-size: 23px;
}

body.page-shop .order-success-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

body.page-shop .order-success-summary {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  text-align: left;
}

body.page-shop .order-success-summary > div {
  border: 1px solid #e8eef5;
  background: #f8fbfd;
  border-radius: 10px;
  padding: 8px;
}

body.page-shop .order-success-label {
  display: block;
  color: #6d7f98;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 10px;
  font-weight: 700;
}

body.page-shop .order-success-value {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
}

body.page-shop .order-success-close {
  margin-top: 14px;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  background: var(--brand-dark);
  color: #ffffff;
}

body.page-shop .order-confirmation-summary {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #d9e5f1;
  border-radius: 12px;
  background: #f8fbff;
  text-align: left;
}

body.page-shop .order-confirmation-summary h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

body.page-shop .order-confirmation-meta {
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 0.75rem;
}

body.page-shop .order-confirmation-meta > div + div {
  margin-top: 0.3rem;
}

body.page-shop .order-confirmation-extra {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

body.page-shop .checkout-confirmation {
  margin-top: 12px;
  border: 1px solid #d6e6f6;
  border-radius: 12px;
  background: #f6fbff;
  padding: 12px;
  text-align: left;
}

body.page-shop .checkout-confirmation-title {
  margin: 0;
  font-size: 14px;
  color: #1f3c5c;
}

body.page-shop .checkout-confirmation-grid {
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-shop .checkout-confirmation-grid dt {
  margin: 0;
  font-size: 11px;
  color: #607792;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.page-shop .checkout-confirmation-grid dd {
  margin: 4px 0 0;
  font-size: 13px;
  color: #183754;
  font-weight: 600;
}

body.page-shop .checkout-confirmation-shipping-row {
  grid-column: 1 / -1;
}

body.page-shop #checkout-view-orders {
  margin-top: 10px;
}

/* CUSTOMER ACCOUNT + ORDER HISTORY */
body.page-shop .customer-orders-btn {
  border-color: #cfdbe8;
  color: #2e4d6a;
}

body.page-shop .auth-modal {
  width: min(440px, 100%);
  padding: 20px;
  position: relative;
  max-height: calc(100vh - 4rem); /* constrain on short viewports */
  max-height: calc(100dvh - 4rem); /* dvh: excludes mobile browser chrome */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body.page-shop .auth-modal-close {
  display: block;
  position: sticky;
  top: 0;
  margin-left: auto;
  z-index: 2;
  border: none;
  background: transparent;
  color: #6a7f99;
  font-size: 20px;
}

body.page-shop .auth-modal-header h2 {
  margin: 0;
  font-size: 24px;
}

body.page-shop .auth-modal-header p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.login-hint {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #2563eb;
}

.login-hint.hidden {
  display: none;
}

body.page-shop .auth-tab-row {
  margin-top: 14px;
  display: inline-flex;
  gap: 6px;
  background: #eef3f8;
  border: 1px solid #d7e3ef;
  border-radius: 999px;
  padding: 4px;
}

body.page-shop .auth-tab {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #58708b;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
}

body.page-shop .auth-tab.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 0 10px 18px rgba(10, 31, 56, 0.12);
}

body.page-shop .account-benefits {
  margin-top: 12px;
  margin-bottom: 1rem;
  background: #f9fafb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

body.page-shop .account-benefits h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

body.page-shop .account-benefits ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: #4b5563;
  margin: 0;
}

body.page-shop .account-benefits li + li {
  margin-top: 0.25rem;
}

body.page-shop .auth-form {
  display: none;
  margin-top: 14px;
}

body.page-shop .auth-form.active {
  display: grid;
  gap: 8px;
}

body.page-shop .auth-form label {
  font-size: 12px;
  font-weight: 600;
  color: #415a74;
}

body.page-shop .auth-form input {
  width: 100%;
  border: 1px solid #cfdbe8;
  background: #ffffff;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  color: var(--text-main);
}

body.page-shop .auth-form input[aria-invalid="true"] {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

body.page-shop .auth-form button {
  margin-top: 6px;
  justify-self: start;
}

body.page-shop .auth-form button[aria-busy="true"],
body.page-shop .checkout-confirm-btn[aria-busy="true"] {
  cursor: progress;
}

body.page-shop .auth-status {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 13px;
}

body.page-shop .auth-pending-verification {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

body.page-shop .auth-pending-verification[hidden] {
  display: none;
}

body.page-shop .auth-pending-verification h3,
body.page-shop .auth-pending-verification p {
  margin: 0;
}

body.page-shop .auth-pending-verification-guidance {
  margin: 0;
  padding-left: 1.1rem;
  color: #4b5563;
  font-size: 0.92rem;
}

body.page-shop .auth-pending-verification-guidance li + li {
  margin-top: 0.2rem;
}

body.page-shop .auth-pending-verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.page-shop .auth-form.auth-form-inline {
  display: grid;
  margin-top: 0;
}

body.page-shop .auth-form.auth-form-inline[hidden] {
  display: none;
}

body.page-shop .orders-history-modal {
  width: min(760px, 100%);
  max-height: min(84vh, 760px);
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

body.page-shop .orders-history-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #6a7f99;
  font-size: 20px;
}

body.page-shop .orders-history-header h2 {
  margin: 0;
  font-size: 24px;
}

body.page-shop .orders-history-header p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

body.page-shop .orders-history-status {
  margin: 10px 0 0;
  min-height: 18px;
  font-size: 13px;
}

body.page-shop .orders-history-list {
  margin-top: 8px;
  overflow-y: auto;
  padding-right: 4px;
  display: grid;
  gap: 10px;
}

body.page-shop .orders-history-card {
  border: 1px solid #dce7f2;
  background: #f9fbfd;
  border-radius: 12px;
  padding: 10px;
}

body.page-shop .orders-history-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

body.page-shop .orders-history-meta {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6f829b;
}

body.page-shop .orders-history-sellers {
  margin: 8px 0 0;
  font-size: 12px;
  color: #2a435f;
}

body.page-shop .orders-history-sellers span {
  font-weight: 700;
  color: #445d78;
}

body.page-shop .orders-history-items {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

body.page-shop .orders-history-items li {
  border-top: 1px solid #e4edf6;
  padding: 7px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.page-shop .orders-history-items li:first-child {
  border-top: none;
}

body.page-shop .orders-history-item-main {
  font-size: 13px;
  color: #2f4a67;
}

body.page-shop .orders-history-seller-badge {
  border-radius: 999px;
  border: 1px solid #cad9e8;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 600;
  color: #4c6480;
  background: #eef4fa;
  white-space: nowrap;
}

body.page-shop .orders-history-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.page-shop .orders-history-open-product {
  border: 1px solid #8eb5d8;
  background: #ffffff;
  color: #1f4f7a;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

body.page-shop .orders-history-open-product:hover {
  background: #edf5fc;
}

body.page-shop .orders-history-open-product:disabled {
  opacity: 0.65;
  cursor: default;
}

/* Custom Desktop Header Hamburger Placement */
@media (min-width: 769px) {
  body.page-shop.desktop-filter-panel-ready .header-left {
    gap: 0.42rem;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.page-shop.desktop-filter-panel-ready .brand-logo-wrapper {
    min-height: 42px;
    padding: 0 0.26rem 0 0.06rem;
  }

  body.page-shop.desktop-filter-panel-ready .header-hamburger-btn {
    display: inline-flex !important;
    position: static;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    height: 38px;
    padding: 0 12px 0 11px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 251, 0.96));
    border: 1px solid rgba(214, 223, 231, 0.96);
    border-radius: 12px;
    cursor: pointer;
    margin-right: 0;
    color: #607286;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      0 4px 12px rgba(15, 23, 42, 0.045);
    transition:
      background 0.15s ease,
      border-color 0.15s ease,
      box-shadow 0.15s ease,
      color 0.15s ease;
    min-width: 38px;
    margin-top: 0;
  }

  body.page-shop.desktop-filter-panel-ready .header-hamburger-btn .desktop-filter-toggle-icon {
    width: 16px;
    gap: 3px;
  }

  body.page-shop.desktop-filter-panel-ready .header-hamburger-btn .desktop-filter-toggle-line {
    width: 16px;
    background: currentColor;
    opacity: 0.9;
  }

  body.page-shop.desktop-filter-panel-ready .desktop-filter-toggle-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    color: inherit;
  }

  body.page-shop.desktop-filter-panel-ready .header-hamburger-btn:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 0.98));
    border-color: rgba(190, 205, 218, 0.98);
    color: #516478;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.98),
      0 6px 14px rgba(15, 23, 42, 0.05);
  }

  body.page-shop.desktop-filter-panel-ready .header-hamburger-btn:focus-visible {
    outline: none;
    border-color: #b9cadc;
    box-shadow:
      0 0 0 4px rgba(185, 202, 220, 0.26),
      0 6px 14px rgba(15, 23, 42, 0.05);
  }
}
