/* ============================================================
   arillise — design system (static site)
   Luxe-modern anti-age skincare. Mauve/plum + champagne glow.
   Clean grotesque type with elegant editorial serif accents.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap");

:root {
  --accent-h: 332;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --space-scale: 1;

  --bg: oklch(0.985 0.005 340);
  --bg-tint: oklch(0.965 0.012 340);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.975 0.008 340);
  --ink: oklch(0.255 0.035 var(--accent-h));
  --ink-soft: oklch(0.43 0.03 var(--accent-h));
  --ink-faint: oklch(0.62 0.02 var(--accent-h));
  --line: oklch(0.9 0.012 var(--accent-h));
  --line-soft: oklch(0.94 0.008 var(--accent-h));

  --plum: oklch(0.46 0.085 var(--accent-h));
  --plum-deep: oklch(0.36 0.07 var(--accent-h));
  --mauve: oklch(0.78 0.05 var(--accent-h));
  --mauve-soft: oklch(0.92 0.03 var(--accent-h));
  --champagne: oklch(0.84 0.058 78);
  --champagne-deep: oklch(0.72 0.07 72);

  --shadow-sm:
    0 1px 2px oklch(0.4 0.05 var(--accent-h) / 0.06),
    0 2px 8px oklch(0.4 0.05 var(--accent-h) / 0.05);
  --shadow-md:
    0 6px 24px oklch(0.4 0.05 var(--accent-h) / 0.1),
    0 2px 6px oklch(0.4 0.05 var(--accent-h) / 0.06);
  --shadow-lg:
    0 24px 60px oklch(0.35 0.06 var(--accent-h) / 0.16),
    0 6px 18px oklch(0.4 0.05 var(--accent-h) / 0.08);

  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;

  --maxw: 1280px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-size: 16px;
  line-height: 1.55;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- typography helpers ---------- */
.serif {
  font-family: var(--serif);
  letter-spacing: 0;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--plum);
}
.muted {
  color: var(--ink-soft);
}
.faint {
  color: var(--ink-faint);
}

.display {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h-xl {
  font-size: clamp(30px, 4vw, 52px);
}
.h-lg {
  font-size: clamp(24px, 3vw, 38px);
}
.h-md {
  font-size: clamp(20px, 2.2vw, 26px);
}

/* ---------- layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}
.section {
  padding: calc(clamp(56px, 9vw, 120px) * var(--space-scale)) 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  transition:
    transform 0.18s ease,
    box-shadow 0.25s ease,
    background 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--plum);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--plum);
  color: var(--plum);
}
.btn-gold {
  background: var(--champagne);
  color: var(--ink);
}
.btn-gold:hover {
  background: var(--champagne-deep);
  box-shadow: var(--shadow-md);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}
.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

/* ---------- cards / surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
}
.chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  font-weight: 600;
}

/* ---------- placeholder imagery ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background: repeating-linear-gradient(
    135deg,
    oklch(0.94 0.02 var(--accent-h)) 0 10px,
    oklch(0.965 0.014 var(--accent-h)) 10px 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--plum);
  opacity: 0.7;
  padding: 4px 10px;
  border-radius: 6px;
  background: oklch(1 0 0 / 0.55);
  border: 1px solid var(--line-soft);
}
.ph-glow {
  background:
    radial-gradient(
      120% 90% at 50% 18%,
      oklch(0.95 0.04 78 / 0.9),
      transparent 60%
    ),
    radial-gradient(
      120% 100% at 50% 100%,
      oklch(0.9 0.05 var(--accent-h) / 0.8),
      transparent 65%
    ),
    repeating-linear-gradient(
      135deg,
      oklch(0.93 0.025 var(--accent-h)) 0 12px,
      oklch(0.965 0.016 var(--accent-h)) 12px 24px
    );
}

/* ---------- stars ---------- */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--champagne-deep);
  line-height: 1;
}
.stars svg {
  width: 15px;
  height: 15px;
}

/* ---------- inputs ---------- */
.field {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.18s ease;
}
.field:focus {
  outline: none;
  border-color: var(--plum);
}
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink-soft);
}
.field-error {
  border-color: oklch(0.55 0.18 25) !important;
}
.error-text {
  font-size: 12px;
  color: oklch(0.55 0.18 25);
  margin-top: 5px;
  display: block;
}

/* ---------- scrollbar niceties ---------- */
::selection {
  background: var(--mauve);
  color: var(--ink);
}

/* ---------- utilities ---------- */
.row {
  display: flex;
  align-items: center;
}
.between {
  justify-content: space-between;
}
.gap-s {
  gap: 8px;
}
.gap-m {
  gap: 16px;
}
.gap-l {
  gap: 28px;
}
.grid {
  display: grid;
}
.fade-up {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    animation: fadeUp 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
}
@keyframes fadeUp {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.divider {
  height: 1px;
  background: var(--line-soft);
  border: none;
}

/* ---------- sticky header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: oklch(0.985 0.005 340 / 0.85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}
.site-header nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--ink);
}
.logo {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--champagne-deep);
  display: inline-block;
  margin-left: 1px;
  transform: translateY(-1px);
}
.cart-btn {
  position: relative;
  background: var(--ink);
  color: var(--bg);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--champagne);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}

/* ---------- product card ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.product-card:hover .ph {
  transform: scale(1.012);
}
.product-card .ph {
  transition: transform 0.4s ease;
}
.product-card .add-btn {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.28s ease;
  justify-content: center;
}
.product-card:hover .add-btn {
  opacity: 1;
  transform: none;
}
.bestseller-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--ink);
  color: var(--bg);
  border: none;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}
.sale-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--champagne);
  color: var(--ink);
  border: none;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  margin-top: 0;
}
.site-footer .footer-inner {
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid oklch(1 0 0 / 0.12);
  font-size: 13px;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  opacity: 0.82;
}
.footer-bottom a:hover {
  opacity: 1;
}
.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-col a {
  font-size: 14px;
  opacity: 0.82;
}
.footer-col a:hover {
  opacity: 1;
}

/* ---------- cart drawer ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.2 0.03 332 / 0.34);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 60;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 92vw);
  background: var(--bg);
  z-index: 61;
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform 0.36s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open {
  transform: none;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 22px;
  line-height: 1;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.cart-empty {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
}
.shipping-bar {
  padding: 16px 24px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}
.shipping-track {
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.shipping-fill {
  height: 100%;
  background: var(--champagne-deep);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: flex-start;
}
.cart-item-info {
  flex: 1;
}
.qty-control {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.qty-btn {
  width: 30px;
  height: 32px;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}
.qty-val {
  width: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  display: grid;
  align-items: center;
}
.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface);
}

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--bg);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  box-shadow: 0 -4px 20px oklch(0.2 0.03 332 / 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show {
  transform: none;
}
.cookie-banner a {
  text-decoration: underline;
  opacity: 0.8;
}
.cookie-banner a:hover {
  opacity: 1;
}
.cookie-accept {
  background: var(--champagne);
  color: var(--ink);
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-accept:hover {
  background: var(--champagne-deep);
}

/* ---------- policy pages ---------- */
.policy-page {
  padding: 60px 0 80px;
}
.policy-page h1 {
  margin-bottom: 24px;
}
.policy-page h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 20px;
}
.policy-page p {
  margin-bottom: 14px;
  line-height: 1.7;
}
.policy-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}
.policy-page ul li {
  margin-bottom: 6px;
}

/* ---------- tabs ---------- */
.tabs-nav {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line-soft);
}
.tab-btn {
  background: none;
  border: none;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-faint);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.tab-btn.active {
  color: var(--ink);
  border-bottom-color: var(--plum);
}
.tab-content {
  padding-top: 22px;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* ---------- quantity selector ---------- */
.qty-selector {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.qty-selector .qty-btn {
  width: 42px;
  height: 44px;
  font-size: 20px;
}

/* ---------- product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.product-gallery {
  position: sticky;
  top: 96px;
}
.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.benefit-item {
  display: flex;
  gap: 8px;
  font-size: 15px;
  align-items: flex-start;
}
.benefit-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mauve-soft);
  color: var(--plum);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- checkout ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.form-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row-narrow {
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: 14px;
}
.pay-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}
.pay-option.selected {
  border-color: var(--plum);
  background: var(--surface-2);
}
.pay-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pay-option.selected .pay-radio {
  border-color: var(--plum);
}
.pay-radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--plum);
}
.order-summary {
  position: sticky;
  top: 96px;
}
.summary-item {
  display: flex;
  gap: 16px;
  align-items: center;
}
.summary-item .ph {
  flex-shrink: 0;
}

/* ---------- sort select ---------- */
.sort-select {
  width: auto;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .site-header nav {
    display: none !important;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .review-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
  }
  .ingredient-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 760px) {
  .hide-sm {
    display: none !important;
  }
  .product-detail,
  .checkout-grid {
    grid-template-columns: 1fr !important;
  }
  .product-gallery {
    position: static !important;
  }
  .product-grid {
    gap: 18px !important;
  }
  .trust-strip-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .form-row,
  .form-row-narrow {
    grid-template-columns: 1fr !important;
  }
}
