/*
Theme Name: Derm-line
Theme URI: http://localhost:8080
Author: Derm-line
Description: Science-backed dermatological formulations — a faithful WooCommerce port of the Derm-line design (Fraunces + Inter, warm cream & gold).
Version: 1.0.8
Requires at least: 6.9
Requires PHP: 8.0
Text Domain: dermline
*/

/* ============================================================
   Design tokens (reused 1:1 from the original Lovable build)
   ============================================================ */
:root {
  --background: oklch(96.8% .004 85);
  --foreground: oklch(24% .008 60);
  --card: oklch(99.5% .002 85);
  --card-foreground: oklch(24% .008 60);
  --popover: oklch(99.5% .002 85);
  --muted: oklch(93% .006 80);
  --muted-foreground: oklch(52% .008 65);
  --secondary: oklch(93% .004 85);
  --secondary-foreground: oklch(28% .008 60);
  --accent: oklch(92% .02 85);
  --accent-foreground: oklch(28% .008 60);
  --border: oklch(89% .006 80);
  --input: oklch(89% .006 80);
  --gold: oklch(78% .09 82);
  --gold-soft: oklch(82% .07 85);
  --gold-foreground: oklch(22% .01 60);
  --primary: oklch(28% .008 60);
  --primary-foreground: oklch(98% .004 85);
  --ring: oklch(78% .09 82);
  --destructive: oklch(55% .2 27);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", ui-serif, Georgia, serif;

  --radius: 0.75rem;
  --container: 72rem;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

/* ============================================================
   Layout helpers
   ============================================================ */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container { padding-inline: 2rem; } }
.section { padding-block: 5rem; }
.section--tight { padding-block: 3rem; }
.eyebrow {
  font-family: var(--font-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  font-size: .75rem;
  font-weight: 500;
  margin: 0;
}
.text-gold { color: var(--gold); }
.muted { color: var(--muted-foreground); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-top: .5rem; }
.section-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; color: var(--muted-foreground); transition: color .2s; }
.section-link:hover { color: var(--gold); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  white-space: nowrap; font-size: .875rem; font-weight: 500; cursor: pointer;
  height: 2.75rem; padding-inline: 2rem; border-radius: .5rem; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
/* Inline text-link icons (arrows etc.) — keep them small everywhere */
.section-link svg,
.product-card .details svg,
.article-card .more svg,
.back-link svg,
.contact-row svg,
.info-block svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn-gold { background: var(--gold); color: var(--gold-foreground); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline { border-color: var(--input); background: var(--background); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.btn-outline:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-dark { background: var(--primary); color: var(--primary-foreground); }
.btn-dark:hover { opacity: .9; }
.btn-sm { height: 2.25rem; padding-inline: 1rem; font-size: .8125rem; }
.btn-block { width: 100%; }

/* Telegram + WhatsApp side by side */
.contact-buttons { display: inline-flex; gap: .75rem; flex-wrap: wrap; justify-content: center; align-items: center; }
/* WhatsApp brand green */
.btn-wa, .btn.whatsapp-link { background: #25D366; color: #fff; border: 1px solid #25D366; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.btn-wa:hover, .btn.whatsapp-link:hover { background: #1ebe5d; border-color: #1ebe5d; color: #fff; }
.whatsapp-link svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.product-actions .btn-ask--wa { border-color: #25D366; }
.product-actions .btn-ask--wa:hover { background: #25D366; border-color: #25D366; color: #fff; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(12px);
}
.site-header .container { display: flex; height: 4rem; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; color: var(--foreground); }
.brand-underline { margin-top: 2px; height: .5rem; width: 6rem; }
.brand-underline path { fill: var(--gold); }
.main-nav { display: none; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.main-nav li { list-style: none; margin: 0; }
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav a { font-size: .875rem; color: var(--muted-foreground); transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--foreground); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: .5rem; background: transparent; border: none; cursor: pointer; color: var(--foreground); position: relative; }
.icon-btn:hover { background: var(--accent); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.cart-count { position: absolute; top: 2px; right: 2px; min-width: 1.1rem; height: 1.1rem; padding: 0 .25rem; border-radius: 999px; background: var(--gold); color: var(--gold-foreground); font-size: .65rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.menu-toggle { display: inline-flex; }
@media (min-width: 768px) { .menu-toggle { display: none; } }
.mobile-nav { display: none; border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: .85rem 1.25rem; font-size: .95rem; color: var(--muted-foreground); border-bottom: 1px solid color-mix(in oklab, var(--border) 40%, transparent); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.hero .container { display: grid; align-items: center; gap: 2.5rem; padding-block: 4rem; }
@media (min-width: 768px) { .hero .container { grid-template-columns: 1fr 1fr; padding-block: 6rem; } }
.hero h1 { margin-top: 1rem; font-size: clamp(2.25rem, 6vw, 3.75rem); line-height: 1.05; }
.hero-sub { margin-top: 1.5rem; max-width: 28rem; color: var(--muted-foreground); font-size: 1.075rem; }
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-media { position: relative; }
.hero-media .frame { overflow: hidden; border-radius: 1rem; border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Product / article cards
   ============================================================ */
.card-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card { border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); border-radius: var(--radius); overflow: hidden; background: var(--card); transition: box-shadow .2s; }
.product-card:hover { box-shadow: 0 20px 30px -18px rgba(0,0,0,.22); }
.product-card .media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: color-mix(in oklab, var(--secondary) 50%, transparent); }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .media img { transform: scale(1.03); }
.badge { position: absolute; left: 1rem; top: 1rem; border-radius: 999px; background: color-mix(in oklab, var(--background) 80%, transparent); padding: .25rem .75rem; font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--muted-foreground); backdrop-filter: blur(6px); }
.product-card .body { padding: 1.25rem; }
.product-card h3 { font-size: 1.25rem; color: var(--foreground); }
.product-card .desc { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .row { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; }
.product-card .price { font-size: 1rem; font-weight: 500; color: var(--foreground); }
.product-card .details { display: inline-flex; align-items: center; gap: .3rem; font-size: .875rem; color: var(--muted-foreground); transition: color .2s; }
.product-card:hover .details { color: var(--gold); }

/* Article card */
.article-card { border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); border-radius: var(--radius); overflow: hidden; background: var(--card); transition: box-shadow .2s; display: flex; flex-direction: column; }
.article-card:hover { box-shadow: 0 20px 30px -18px rgba(0,0,0,.22); }
.article-card .media { aspect-ratio: 16/10; overflow: hidden; background: var(--muted); }
.article-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .media img { transform: scale(1.03); }
.article-card .body { padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.article-card .meta { font-size: .75rem; color: var(--muted-foreground); letter-spacing: .02em; }
.article-card h3 { font-size: 1.25rem; }
.article-card p { font-size: .9rem; color: var(--muted-foreground); }
.article-card .more { margin-top: auto; padding-top: .5rem; font-size: .875rem; color: var(--gold); display: inline-flex; align-items: center; gap: .35rem; }

/* ============================================================
   Feature / values band
   ============================================================ */
.band { border-block: 1px solid color-mix(in oklab, var(--border) 60%, transparent); background: color-mix(in oklab, var(--secondary) 40%, transparent); }
.values-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-top: 2.5rem; }
@media (min-width: 640px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.value p { font-size: .9rem; color: var(--muted-foreground); }
.value .num { font-family: var(--font-display); color: var(--gold); font-size: 1.5rem; }

/* CTA / telegram band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.cta-band p { margin: 1rem auto 2rem; max-width: 34rem; color: var(--muted-foreground); }

/* ============================================================
   Single product
   ============================================================ */
.product-single { display: grid; gap: 2.5rem; grid-template-columns: 1fr; margin-top: 2rem; align-items: stretch; }
@media (min-width: 1024px) { .product-single { grid-template-columns: 1fr 1fr; } }
.product-gallery { overflow: hidden; border-radius: 1rem; border: 1px solid color-mix(in oklab, var(--border) 60%, transparent); background: color-mix(in oklab, var(--secondary) 40%, transparent); min-height: 0; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-summary h1 { font-size: 2.25rem; margin-top: .5rem; }
.product-active { margin-top: .5rem; color: var(--muted-foreground); font-size: 1.125rem; }
.product-summary .price { font-family: var(--font-sans); font-size: 1.5rem; font-weight: 500; margin-top: 1rem; color: var(--foreground); }
.product-summary .price .amount { font-family: var(--font-sans); }
.product-summary .lede { margin-top: 1.5rem; color: var(--muted-foreground); font-size: 1rem; line-height: 1.625; }
.product-summary .lede p + p { margin-top: 1rem; }
.product-actions { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .product-actions { flex-direction: row; } }
.product-actions form.cart { margin: 0; display: block; flex: 1; }
/* No quantity picker on the product page — quantity is adjusted in the cart. */
.product-actions .quantity { display: none; }
/* Add to cart + Ask on Telegram: equal-width (flex-1), h-11, rounded-md, px-8 — like the original. */
.product-actions .single_add_to_cart_button,
.product-actions .btn-ask {
	width: 100%; flex: 1; height: 2.75rem; padding-inline: 2rem;
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font-size: .875rem; font-weight: 500; border-radius: .375rem; cursor: pointer;
	white-space: nowrap; transition: background-color .2s, color .2s;
}
.product-actions .single_add_to_cart_button {
	background: var(--gold) !important; color: var(--gold-foreground) !important; border: none !important;
	box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.product-actions .single_add_to_cart_button:hover { background: var(--gold-soft) !important; }
.product-actions .single_add_to_cart_button::before {
	content: ""; width: 1rem; height: 1rem; background: currentColor; flex-shrink: 0;
	-webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
	mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}
.product-actions .btn-ask { border: 1px solid var(--gold); color: var(--foreground); background: transparent; }
.product-actions .btn-ask:hover { background: var(--gold); color: var(--gold-foreground); }
.product-actions .btn-ask svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* Stacked data blocks in the summary column (Indications / How to use / Cautions) */
.product-blocks { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); display: grid; gap: 1.5rem; }
.product-block .eyebrow { margin-bottom: .75rem; }
.product-block p { color: var(--muted-foreground); font-size: 1rem; line-height: 1.625; }
.check-list { list-style: none; display: grid; gap: .5rem; margin: 0; padding: 0; }
.check-list li { display: flex; gap: .5rem; align-items: flex-start; font-size: 1rem; color: var(--muted-foreground); list-style: none; }
.check-list li::before {
	content: ""; flex-shrink: 0; width: 1rem; height: 1rem; margin-top: .2rem; background: var(--gold);
	-webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Scientific basis link box — gold-tinted, horizontal on desktop */
.science-box {
	margin-top: 4rem; border-radius: 1rem; padding: 2rem;
	border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent);
	background: color-mix(in oklab, var(--gold) 5%, transparent);
	display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
}
@media (min-width: 640px) { .science-box { flex-direction: row; align-items: center; justify-content: space-between; } }
.science-box .science-text h2 { font-family: var(--font-display); font-size: 1.5rem; margin-top: .5rem; }
.science-box .science-text p.muted { margin-top: .5rem; max-width: 36rem; font-size: .875rem; }
.science-cta { flex-shrink: 0; }

/* ============================================================
   Research / article single
   ============================================================ */
.page-hero { border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent); }
.page-hero .container { padding-block: 4rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-top: 1rem; max-width: 46rem; }
.page-hero .lede { margin-top: 1.25rem; max-width: 42rem; color: var(--muted-foreground); font-size: 1.075rem; }

.prose { max-width: 44rem; margin-inline: auto; }
.prose > * + * { margin-top: 1.35rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.prose p { color: var(--foreground); line-height: 1.8; }
.prose ul { list-style: none; display: grid; gap: .65rem; }
.prose ul li { position: relative; padding-left: 1.4rem; color: var(--foreground); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .65rem; width: .4rem; height: .4rem; border-radius: 999px; background: var(--gold); }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 1.25rem; font-family: var(--font-display); font-size: 1.25rem; color: var(--foreground); font-style: italic; }
.prose a:not(.btn) { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.topic-tags { display: flex; gap: .5rem; flex-wrap: wrap; }
.topic-tag { font-size: .75rem; padding: .25rem .75rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted-foreground); background: var(--card); }
.back-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; color: var(--muted-foreground); margin-bottom: 1.5rem; }
.back-link:hover { color: var(--gold); }

/* ============================================================
   Static pages
   ============================================================ */
.static-page .prose h2 { font-size: 1.4rem; }
.contact-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.contact-row { display: flex; justify-content: space-between; border-bottom: 1px solid color-mix(in oklab, var(--border) 50%, transparent); padding: .85rem 0; }
.contact-row .k { color: var(--muted-foreground); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid color-mix(in oklab, var(--border) 60%, transparent); background: color-mix(in oklab, var(--secondary) 30%, transparent); margin-top: 2rem; }
.site-footer .container { padding-block: 3.5rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-about { max-width: 22rem; }
.footer-about .brand-name { display: block; margin-bottom: .75rem; }
.footer-about p { color: var(--muted-foreground); font-size: .9rem; }
.footer-col h4 { font-size: .9rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { font-size: .9rem; color: var(--muted-foreground); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid color-mix(in oklab, var(--border) 50%, transparent); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; padding-block: 1.5rem; font-size: .8rem; color: var(--muted-foreground); }

/* ============================================================
   WooCommerce overrides
   ============================================================ */
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--gold); border-radius: .5rem; background: var(--card); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--gold); }
.woocommerce table.shop_table, .woocommerce .cart-collaterals { border-radius: var(--radius); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt {
  background: var(--gold) !important; color: var(--gold-foreground) !important;
  border-radius: .5rem !important; font-weight: 500; padding: .7em 1.4em;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover { background: var(--gold-soft) !important; }
.woocommerce .price, .woocommerce-Price-amount { color: var(--foreground); }
.woocommerce-breadcrumb { color: var(--muted-foreground); font-size: .85rem; }
.telegram-link { display: inline-flex; align-items: center; gap: .5rem; }

.disclaimer { font-size: .8rem; color: var(--muted-foreground); }

/* ============================================================
   Enquiry cart (Telegram, no payment)
   ============================================================ */
.cart-enquiry { max-width: 60rem; }
.cart-enquiry > h1 { font-size: clamp(2.25rem, 5vw, 3rem); }
.cart-enquiry .enquiry-lead { margin-top: 1rem; max-width: 40rem; font-size: 1.05rem; }
.cart-enquiry .cart-items { margin-top: 2.5rem; display: grid; gap: 1rem; }
.cart-row {
	display: grid;
	grid-template-columns: 72px 1fr auto auto auto;
	align-items: center;
	gap: 1.25rem;
	background: var(--card);
	border: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
}
.cart-thumb { width: 72px; height: 72px; border-radius: .6rem; overflow: hidden; background: color-mix(in oklab, var(--secondary) 50%, transparent); flex-shrink: 0; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.cart-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--foreground); }
.cart-active { font-size: .85rem; color: var(--muted-foreground); }
.cart-qty { display: inline-flex; align-items: center; gap: .25rem; }
.cart-qty .qty-btn {
	width: 2.1rem; height: 2.1rem; border-radius: .5rem;
	border: 1px solid var(--input); background: var(--background);
	font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--foreground);
	display: inline-flex; align-items: center; justify-content: center;
	transition: background-color .15s;
}
.cart-qty .qty-btn:hover { background: var(--accent); }
.cart-qty .qty-input {
	width: 2.75rem; height: 2.1rem; text-align: center;
	border: 1px solid var(--input); border-radius: .5rem;
	background: var(--card); color: var(--foreground); font-family: inherit; font-size: .95rem;
	-moz-appearance: textfield;
}
.cart-qty .qty-input::-webkit-outer-spin-button,
.cart-qty .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-price { font-size: 1.05rem; font-weight: 500; color: var(--foreground); white-space: nowrap; }
.cart-remove { color: var(--muted-foreground); display: inline-flex; padding: .4rem; border-radius: .4rem; transition: color .15s, background-color .15s; }
.cart-remove:hover { color: var(--destructive); background: color-mix(in oklab, var(--destructive) 8%, transparent); }
.cart-remove svg { width: 1.15rem; height: 1.15rem; }

.cart-summary { margin-top: 2rem; display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.cart-total { display: flex; align-items: baseline; gap: 1rem; font-size: 1rem; }
.cart-total-amount { font-family: var(--font-display); font-size: 1.9rem; color: var(--foreground); }
.cart-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: flex-end; }
.link-btn { background: none; border: none; cursor: pointer; font-family: inherit; font-size: .9rem; color: var(--muted-foreground); padding: 0; }
.link-btn:hover { color: var(--foreground); text-decoration: underline; }
.cart-note { font-size: .8rem; text-align: right; max-width: 22rem; }
.cart-empty .enquiry-lead { margin-bottom: 1.75rem; }

@media (max-width: 640px) {
	.cart-row { grid-template-columns: 56px 1fr; grid-template-areas: "thumb info" "qty price" "qty remove"; row-gap: .75rem; }
	.cart-thumb { grid-area: thumb; width: 56px; height: 56px; }
	.cart-info { grid-area: info; }
	.cart-qty { grid-area: qty; }
	.cart-price { grid-area: price; text-align: right; }
	.cart-remove { grid-area: remove; justify-self: end; }
	.cart-summary { align-items: stretch; }
	.cart-actions { justify-content: space-between; }
	.cart-note { text-align: left; }
}
