
/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --pink:       #e8407a;
  --purple:     #7c3aed;
  --pink-light: #fdf2f7;
  --pink-soft:  #fce7f3;
  --ink:        #0d0d12;
  --ink-mid:    #3d3d4a;
  --muted:      #8a8a9a;
  --border:     #ebebf0;
  --white:      #ffffff;
  --bg:         #f8f8fc;
  --gradient:   linear-gradient(135deg, #e8407a, #7c3aed);
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.06);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.1), 0 24px 64px rgba(0,0,0,0.08);
  --radius:     16px;
  --radius-sm:  10px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --nav-h:      64px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.navbar {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: border-color 0.3s, box-shadow 0.3s, height 0.3s;
}

.navbar.scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
  height: 56px;
}

.navbar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-btn em {
  color: var(--pink);
  font-style: italic;
}

.logo img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-mid);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}

.nav-link:hover { color: var(--ink); background: rgba(0,0,0,0.04); }
.nav-link.active { color: var(--pink); font-weight: 600; }

.nav-cart-btn {
  position: relative;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.nav-cart-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: var(--pink-soft);
  transform: translateY(-1px);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gradient);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 2px solid var(--bg);
}

.cart-count[hidden] { display: none; }

/* ═══════════════════════════════════════
   PRODUCT PAGE LAYOUT
═══════════════════════════════════════ */
.product-page {
  padding: 40px 24px 100px;
}

.product-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.product-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 36px;
  transition: color 0.2s;
}

.product-back:hover { color: var(--ink); }

.product-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ═══════════════════════════════════════
   PRODUCT IMAGE
═══════════════════════════════════════ */
.product-view-media {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.product-media-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  aspect-ratio: 1 / 1;
}

.product-media-card shopify-media {
  display: block;
  width: 100%;
  height: 100%;
}

.product-media-card shopify-media img,
.product-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2,0,0,1);
}

.product-media-card:hover shopify-media img { transform: scale(1.03); }

/* ═══════════════════════════════════════
   PRODUCT INFO
═══════════════════════════════════════ */
.product-view-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.product-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
  margin: 0;
}

.product-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: -8px;
}

.product-price {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-top: -8px;
}

.product-description {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.product-description p {
  margin: 0 0 10px;
  font-size: inherit;
  color: inherit;
}

.product-description p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════
   COLOUR SELECTOR — word pills with dot
   Replaces the old circle swatches.
═══════════════════════════════════════ */
.product-colours {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-colours-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.colour-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.colour-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-mid);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s, background 0.2s,
              box-shadow 0.2s, transform 0.15s;
}

.colour-pill:hover {
  border-color: var(--pink);
  color: var(--ink);
  transform: translateY(-1px);
}

.colour-pill.active,
.colour-pill.selected {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: 0 4px 14px rgba(13,13,18,0.2);
}

/* Small colour dot inside each pill */
.colour-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   QUANTITY STEPPER
═══════════════════════════════════════ */
.qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.qty-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  flex-shrink: 0;
}

.qty-btn:hover:not(:disabled) {
  background: var(--pink-soft);
  color: var(--pink);
}

.qty-btn:disabled { opacity: 0.28; cursor: not-allowed; }

.qty-value {
  min-width: 44px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  line-height: 38px;
}

/* ═══════════════════════════════════════
   PRODUCT ACTIONS
═══════════════════════════════════════ */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 24px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover:not(:disabled) {
  background: var(--pink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,64,122,0.35);
}

.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover:not(:disabled) svg { transform: translateX(3px); }

.btn-secondary {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--ink);
  background: rgba(13,13,18,0.03);
}

.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ═══════════════════════════════════════
   PRODUCT META
═══════════════════════════════════════ */
.product-meta {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-value {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-mid);
}

/* ═══════════════════════════════════════
   CART SIDEBAR
═══════════════════════════════════════ */
.cart-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13,13,18,0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-sidebar-backdrop.open { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -16px 0 48px rgba(0,0,0,0.12);
}

.cart-sidebar.open { transform: translateX(0); }

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-sidebar-header-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cart-sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.cart-sidebar-count {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

.cart-sidebar-close {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--border);
  background: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mid);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-family: inherit;
}

.cart-sidebar-close:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: var(--pink-soft);
}

.cart-sidebar-body { flex: 1; overflow-y: auto; padding: 20px 24px; }

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.cart-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.cart-empty p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink-mid);
  margin-bottom: 6px;
}

.cart-empty span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
}

.cart-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-line:last-child { border-bottom: none; }

.cart-line-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--pink-light);
  border: 1px solid var(--border);
}

.cart-line-info { flex: 1; min-width: 0; }

.cart-line-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-line-variant {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 300;
}

.cart-line-bottom { display: flex; align-items: center; justify-content: space-between; }

.cart-line-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.cart-line-qty {
  font-size: 0.74rem;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.cart-line-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
  font-family: inherit;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.cart-line-remove:hover { color: #ef4444; }

.cart-sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--white);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.cart-subtotal-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cart-subtotal-value {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}

.cart-checkout-btn:hover {
  background: var(--pink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232,64,122,0.3);
}

.cart-checkout-btn svg { transition: transform 0.2s; }
.cart-checkout-btn:hover svg { transform: translateX(3px); }

.cart-continue-btn {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 10px;
  letter-spacing: 0.02em;
  transition: border-color 0.15s, color 0.15s;
}

.cart-continue-btn:hover { border-color: var(--ink); color: var(--ink); }

.cart-loading {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 300;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .product-view {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-view-media { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .navbar-inner { padding: 0 20px; }
  .nav-links { display: none; }

  .product-page { padding: 24px 20px 80px; }
  .product-back { margin-bottom: 24px; }

  .product-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .product-price { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .colour-options { gap: 6px; }
  .colour-pill { padding: 7px 13px; font-size: 0.78rem; }
}