/* Virtue Pharmaceuticals — E-commerce Styles */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Noto+Sans:wght@400;500;600;700&display=swap');

:root {
  --orange: #e87820;
  --orange-dark: #c45e12;
  --orange-soft: #fff1e3;
  --gold: #f0b429;
  --cream: #fff8ed;
  --black: #111111;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --surface: #f5f5f4;
  --white: #ffffff;
  --success: #15803d;
  --danger: #b91c1c;
  --shadow: 0 1px 3px rgba(17, 17, 17, 0.08);
  --shadow-md: 0 8px 24px rgba(17, 17, 17, 0.1);
  --radius: 8px;
  --header-h: 64px;
  --max: 1280px;
  --font-display: 'Figtree', sans-serif;
  --font-body: 'Noto Sans', sans-serif;
  --transition: 200ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Top bar ——— */
.top-bar {
  background: var(--black);
  color: #d6d3d1;
  font-size: 0.8rem;
  padding: 0.45rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar a:hover { color: var(--gold); }

/* ——— Header ——— */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding: 0.65rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo img {
  height: 48px;
  width: auto;
  background: var(--black);
  border-radius: 6px;
  padding: 4px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
}

.logo-text span {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-form {
  display: flex;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.search-form:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 120, 32, 0.2);
}

.search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.7rem 0.9rem;
  background: transparent;
}

.search-form button {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 0 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.search-form button:hover { background: var(--orange-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background var(--transition), border-color var(--transition);
}

.icon-btn:hover {
  background: var(--orange-soft);
  border-color: #f5d0a9;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.cart-count {
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0 0.3rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 3px 0;
  transition: var(--transition);
}

/* ——— Category nav ——— */
.cat-nav {
  background: var(--black);
  color: var(--white);
}

.cat-nav .container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  padding: 0.35rem 1rem;
  scrollbar-width: thin;
}

.cat-nav a {
  white-space: nowrap;
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition);
}

.cat-nav a:hover,
.cat-nav a.active {
  background: rgba(255, 255, 255, 0.12);
}

.cat-nav a.active { color: var(--gold); }

/* ——— Hero ——— */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.88) 0%, rgba(196, 94, 18, 0.75) 55%, rgba(232, 120, 32, 0.65) 100%),
    radial-gradient(ellipse at 70% 30%, var(--gold) 0%, transparent 50%),
    var(--black);
  color: var(--white);
  overflow: hidden;
  min-height: clamp(320px, 48vw, 460px);
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 80%, rgba(240, 180, 41, 0.25), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(255, 248, 237, 0.12), transparent 35%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 3.5rem 0;
  max-width: 640px;
  animation: fadeUp 0.7s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  max-width: 28ch;
}

.hero p {
  color: #e7e5e4;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.btn-block { width: 100%; }

/* ——— Trust strip ——— */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.trust-item svg {
  width: 28px;
  height: 28px;
  color: var(--orange);
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

/* ——— Sections ——— */
.section {
  padding: 2.5rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.section-head a {
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
}

.section-head a:hover { text-decoration: underline; }

/* ——— Category cards (Amazon-style boxes) ——— */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #f5d0a9;
}

.cat-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.cat-card-visual {
  flex: none;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 6px;
  background: #1a1210;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.cat-card-visual span {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--orange);
  opacity: 0.85;
}

.cat-card-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.65rem;
}

.cat-card .shop-link {
  color: var(--orange);
  font-size: 0.875rem;
  font-weight: 600;
}

.cat-card .shop-link:hover { text-decoration: underline; }

/* ——— Product grid ——— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #1a1210;
  display: block;
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.85rem;
  display: block;
}

.product-media .pill {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--orange), var(--gold));
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.15);
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.2;
  padding: 0.5rem;
  margin: auto;
  position: absolute;
  inset: 0;
}

.badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge.sale { background: var(--danger); }
.badge.new { background: var(--success); }

.product-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}

.product-cat {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-body h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.stars {
  color: var(--orange);
  letter-spacing: 1px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.price-old {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
}

.product-actions {
  padding: 0 1rem 1rem;
}

/* ——— Banner strip ——— */
.promo-banner {
  background: linear-gradient(90deg, var(--black) 0%, #2a1a0e 50%, var(--orange-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1.5rem;
}

.promo-banner h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.promo-banner p {
  color: #d6d3d1;
  font-size: 0.95rem;
}

/* ——— About / brand ——— */
.brand-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
}

.brand-block img {
  max-width: 280px;
  margin-inline: auto;
  background: var(--black);
  border-radius: 12px;
  padding: 1rem;
}

.brand-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.brand-block p {
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ——— Products page layout ——— */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1.75rem 0;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumb a:hover { color: var(--orange); }

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0 3rem;
  align-items: start;
}

.filters {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  position: sticky;
  top: calc(var(--header-h) + 48px);
}

.filters h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.filter-group {
  margin-bottom: 1.15rem;
}

.filter-group h3 {
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  cursor: pointer;
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
  accent-color: var(--orange);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.shop-toolbar p {
  font-size: 0.9rem;
  color: var(--muted);
}

.shop-toolbar select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.65rem;
  background: var(--white);
  cursor: pointer;
}

.shop-toolbar select:focus {
  outline: 2px solid rgba(232, 120, 32, 0.35);
  border-color: var(--orange);
}

/* ——— Policy pages ——— */
.policy-page {
  padding: 2rem 0 3.5rem;
}

.policy-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 820px;
  margin-inline: auto;
  box-shadow: var(--shadow);
}

.policy-card h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.policy-meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.policy-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.65rem;
  color: var(--ink);
}

.policy-card p,
.policy-card li {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.policy-card ul,
.policy-card ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.policy-card ul { list-style: disc; }
.policy-card ol { list-style: decimal; }

.policy-card a {
  color: var(--orange);
  font-weight: 500;
}

.policy-card a:hover { text-decoration: underline; }

.notice {
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  padding: 0.9rem 1rem;
  border-radius: 0 6px 6px 0;
  margin: 1.25rem 0;
  font-size: 0.9rem;
  color: var(--ink);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--black);
  color: #a8a29e;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 0.85rem;
  border-radius: 6px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 32ch;
  line-height: 1.6;
}

.footer-col h3 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  padding: 0.3rem 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid #292524;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

/* ——— Toast ——— */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--black);
  color: var(--white);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 200;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  font-size: 0.9rem;
  max-width: 280px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ——— Mobile ——— */
@media (max-width: 1024px) {
  .category-grid,
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-strip .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .filters.collapsed .filter-body {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-main {
    grid-template-columns: auto 1fr auto;
  }

  .search-form {
    display: none;
    grid-column: 1 / -1;
  }

  .search-form.open {
    display: flex;
  }

  .logo-text { display: none; }

  .menu-toggle { display: grid; }

  .header-actions .hide-sm { display: none; }

  .cat-nav {
    display: none;
  }

  .cat-nav.open {
    display: block;
  }

  .cat-nav.open .container {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem 1rem;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-block {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-inner { padding: 2.5rem 0; }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .trust-strip .container {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .product-body h3 { font-size: 0.88rem; }
  .price { font-size: 1.05rem; }
}

/* ——— Cart & Checkout ——— */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  padding: 1.75rem 0 3rem;
  align-items: start;
}

.cart-empty {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.cart-empty h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0.75rem 0 0.5rem;
}

.cart-empty p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.cart-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  color: var(--orange);
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  box-shadow: var(--shadow);
}

.cart-item-media {
  width: 88px;
  height: 88px;
  min-width: 88px;
  border-radius: 6px;
  background: #1a1210;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.cart-item-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.35rem;
  border-radius: 6px;
}

.product-body h3 a:hover {
  color: var(--orange);
}

/* Product detail */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 0.5rem 0 2rem;
  align-items: start;
}

.pd-image-wrap {
  position: relative;
  background: #1a1210;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 520px;
  display: block;
  box-shadow: var(--shadow);
}

.pd-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 1.25rem;
}

.pd-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.25rem 0 0.35rem;
}

.pd-tagline {
  color: var(--muted);
  font-size: 1rem;
}

.pd-short {
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.pd-pack {
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
}

.pd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.pd-meta-box {
  background: var(--orange-soft);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.9rem;
}

.pd-meta-box p { margin-bottom: 0.45rem; }
.pd-meta-box p:last-child { margin-bottom: 0; }

.pd-disclaimer {
  color: var(--muted);
  font-size: 0.8rem !important;
  margin-top: 0.65rem !important;
}

.pd-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
}

.pd-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.pd-card h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.pd-card p,
.pd-card li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pd-card ul {
  list-style: disc;
  padding-left: 1.2rem;
}

.pd-card li { margin-bottom: 0.4rem; }

.range-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #1a1210;
  aspect-ratio: 21 / 9;
  max-height: 260px;
  position: relative;
}

.range-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 0.5rem;
}

.contact-block {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.contact-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.contact-intro {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #f5d0a9;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--orange);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
}

.contact-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-item a {
  color: var(--ink);
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--orange);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.cart-item-info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ink);
  transition: background var(--transition);
}

.qty-btn:hover { background: var(--orange-soft); }

.qty-controls input {
  width: 44px;
  height: 34px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}

.qty-controls input::-webkit-outer-spin-button,
.qty-controls input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-remove {
  display: inline-block;
  margin-top: 0.55rem;
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.cart-remove:hover { text-decoration: underline; }

.cart-item-total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}

.cart-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 48px);
}

.cart-summary h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.summary-row.total {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.ship-note {
  font-size: 0.8rem;
  color: var(--success);
  margin: 0.5rem 0 1rem;
}

.cart-summary .btn { margin-top: 0.35rem; }

.cart-policy-links {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

.cart-policy-links a {
  color: var(--orange);
  font-weight: 500;
}

.cart-policy-links a:hover { text-decoration: underline; }

/* Checkout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  padding: 1.75rem 0 3rem;
  align-items: start;
}

.checkout-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.checkout-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-grid .full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 120, 32, 0.18);
}

.form-field textarea { min-height: 88px; resize: vertical; }

.pay-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.pay-option:hover,
.pay-option:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.pay-option input { accent-color: var(--orange); }

.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.checkout-line strong { color: var(--ink); }

.order-success {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 2rem auto 3rem;
}

.order-success .success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--success);
  display: grid;
  place-items: center;
}

.order-success h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.order-id {
  display: inline-block;
  margin: 0.75rem 0 1rem;
  padding: 0.4rem 0.85rem;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-display);
}

.order-success [data-order-detail] {
  text-align: left;
  background: var(--surface);
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0 1.5rem;
  color: var(--muted);
}

.order-success [data-order-detail] p { margin-bottom: 0.5rem; }
.order-success [data-order-detail] p:last-child { margin-bottom: 0; }

.steps {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
}

.step strong {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--line);
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.step.active { color: var(--ink); font-weight: 600; }
.step.active strong {
  background: var(--orange);
  color: var(--white);
}
.step.done strong {
  background: var(--success);
  color: var(--white);
}

@media (max-width: 1024px) {
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 72px 1fr;
  }

  .cart-item-total {
    grid-column: 2;
    justify-self: start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}
