/* ==========================================================================
   Rajjar Cloth — storefront styles
   Palette: unbleached cotton, walnut, madder red, indigo — colours of natural dye.
   ========================================================================== */

:root {
  --bg: #f7f2ea;
  --surface: #fffcf6;
  --tint: #efe6d8;
  --ink: #241d17;
  --ink-2: #4a4038;
  --muted: #7a6e62;
  --line: #e2d7c6;
  --accent: #9b3f1e;
  --accent-ink: #fff;
  --accent-hover: #83331a;
  --dark: #2a211a;
  --dark-2: #3a2e25;
  --wa: #1f9d55;
  --wa-hover: #188247;
  --ok: #2f6b3a;
  --err: #a12a1f;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(36, 29, 23, .06), 0 8px 24px rgba(36, 29, 23, .06);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { justify-content: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--dark); color: #fff; padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .65em 1.3em;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-dark:hover { background: var(--dark-2); border-color: var(--dark-2); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); border-color: var(--wa-hover); color: #fff; }
.btn-lg { min-height: 52px; padding: .8em 1.6em; font-size: 1.0625rem; }
.btn-sm { min-height: 36px; padding: .4em .9em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn .icon { width: 1.15em; height: 1.15em; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer; position: relative; text-decoration: none;
}
.icon-btn:hover { background: var(--tint); }
.link-btn { border: 0; background: none; padding: 0; cursor: pointer; color: var(--muted); font-size: .875rem; display: inline-flex; gap: .3em; align-items: center; }
.link-btn:hover { color: var(--err); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; text-decoration: none; }
.link-arrow .icon { transition: transform .15s; }
.link-arrow:hover .icon { transform: translateX(3px); }
.eyebrow {
  display: inline-block; margin: 0 0 .6em;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  text-decoration: none;
}

/* ---------------------------------------------------------------- header */
.announce { background: var(--dark); color: #f3e9da; font-size: .85rem; text-align: center; }
.announce p { margin: 0; padding: .5em var(--gutter); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 242, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
.brand-sub { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .5em .8em; border-radius: var(--radius); text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); background: var(--tint); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 2px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 600; line-height: 18px; text-align: center;
}
.nav-toggle { display: none; }
.site-search { border-top: 1px solid var(--line); padding: 12px 0; background: var(--surface); }
.site-search .container { display: flex; gap: 8px; }
.site-search input { flex: 1; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .brand { margin-right: auto; }
  .site-nav {
    position: fixed; inset: 0 30% 0 0; min-width: 260px; z-index: 60; margin: 0;
    background: var(--surface); padding: 88px 16px 24px; box-shadow: var(--shadow);
    transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto;
  }
  .site-nav.open { transform: none; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .8em 1em; font-size: 1.05rem; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 55; }
  .nav-toggle[aria-expanded="true"] { position: relative; z-index: 61; }
  .brand-sub { display: none; }
}

/* ---------------------------------------------------------------- flash */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius); border: 1px solid; font-weight: 500; }
.flash-success { background: #eef6ee; border-color: #c4dfc6; color: var(--ok); }
.flash-error { background: #fbeeec; border-color: #ecc5bf; color: var(--err); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(78vh, 720px); display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--dark); }
.hero picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: center 40%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26, 19, 13, .85) 0%, rgba(26, 19, 13, .55) 45%, rgba(26, 19, 13, .1) 100%), linear-gradient(0deg, rgba(26, 19, 13, .5), transparent 50%); }
.hero-content { position: relative; z-index: 1; padding-top: 96px; padding-bottom: clamp(48px, 8vw, 96px); }
.hero .eyebrow { color: #f0c9a8; }
.hero h1 { max-width: 14ch; font-size: clamp(2.4rem, 6vw, 4.25rem); }
.hero-sub { max-width: 52ch; font-size: clamp(1rem, 1.6vw, 1.15rem); color: #efe5d8; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------------------------------------------------------------- features */
.features { background: var(--surface); border-bottom: 1px solid var(--line); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--accent); flex: none; }
.feature-title { font-family: var(--font-body); font-size: .95rem; font-weight: 600; margin: 0 0 .15em; letter-spacing: 0; }
.feature p { margin: 0; font-size: .875rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0 clamp(48px, 7vw, 80px); }
.section-tint { background: var(--tint); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }

.page-hero { padding: clamp(24px, 4vw, 40px) 0 clamp(16px, 3vw, 28px); border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero h1 { margin: .2em 0 .3em; }
.page-hero-sm h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin: .4em 0 .2em; }
.page-intro { max-width: 68ch; color: var(--ink-2); font-size: 1.05rem; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4em; list-style: none; margin: 16px 0 8px; padding: 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: .4em; color: var(--line); }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------------------------------------------------------------- categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.cat-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--dark); color: #fff; text-decoration: none; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; opacity: .9; }
.cat-card:hover img { transform: scale(1.04); }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 14, 9, .75), transparent 60%); }
.cat-info { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; }
.cat-name { font-family: var(--font-display); font-size: 1.6rem; }
.cat-count { display: inline-flex; align-items: center; gap: .4em; font-size: .9rem; color: #efe5d8; }

/* ---------------------------------------------------------------- product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
.card { display: flex; flex-direction: column; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s ease; }
.card-alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-alt { opacity: 1; }
.card:hover .card-media img:first-child { transform: scale(1.03); }
.card-placeholder { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, var(--tint) 0 6px, var(--line) 6px 7px); }
.card-body { padding: 12px 2px 0; }
.card-cat { margin: 0 0 .2em; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-title { font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1.35; margin: 0 0 .3em; letter-spacing: 0; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.badge { position: absolute; top: 10px; left: 10px; padding: .2em .6em; border-radius: 99px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.badge-sale { background: var(--accent); color: #fff; }
.badge-muted { background: rgba(36, 29, 23, .8); color: #fff; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1em .5em; margin: 0; }
.price-now { font-weight: 600; }
.price-was { color: var(--muted); font-size: .9em; }
.price-unit { color: var(--muted); font-size: .8rem; flex-basis: 100%; }
.price-lg { font-size: 1.5rem; margin: .2em 0 .8em; }
.price-lg .price-unit { font-size: .9rem; }
.price-lg .badge { position: static; font-size: .75rem; align-self: center; }

/* ---------------------------------------------------------------- story & band */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.story-text p { color: var(--ink-2); font-size: 1.05rem; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { display: flex; gap: .6em; padding: .45em 0; }
.ticks .icon { color: var(--accent); margin-top: .15em; }
@media (max-width: 800px) { .story-grid { grid-template-columns: 1fr; } .story-media img { aspect-ratio: 4 / 3; } }

.band { position: relative; color: #fff; text-align: center; overflow: hidden; background: var(--dark); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.band-content { position: relative; padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); max-width: 720px; }
.band p { color: #efe5d8; font-size: 1.1rem; margin-bottom: 28px; }

/* ---------------------------------------------------------------- posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; }
.post-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-lg); background: var(--tint); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-media img { transform: scale(1.03); }
.post-body { padding-top: 14px; }
.post-body time { font-size: .8rem; color: var(--muted); }
.post-body h3 { font-size: 1.3rem; margin: .25em 0 .4em; }
.post-body h3 a { text-decoration: none; }
.post-body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.post-body p { color: var(--ink-2); font-size: .95rem; }

/* ---------------------------------------------------------------- FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 6vw, 80px); }
@media (max-width: 800px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 500; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 300; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

/* ---------------------------------------------------------------- shop toolbar */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill { padding: .45em 1em; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: .9rem; background: var(--surface); }
.pill:hover { border-color: var(--ink); }
.pill[aria-current="page"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.toolbar p { margin: 0; }
.toolbar-controls { display: flex; flex-wrap: wrap; gap: 12px; }
.toolbar label { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); }
select, input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], textarea {
  min-height: 44px; padding: .55em .8em; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%;
}
.toolbar select { width: auto; min-height: 40px; }
textarea { min-height: 0; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(155, 63, 30, .15); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; background: var(--surface); }
.pagination a:hover { border-color: var(--ink); }
.pagination span[aria-current] { background: var(--dark); border-color: var(--dark); color: #fff; }

.empty { text-align: center; padding: 48px 0; max-width: 560px; margin: 0 auto; }
.empty p { color: var(--ink-2); }
.inline-search { display: flex; gap: 8px; margin: 24px 0; }

/* ---------------------------------------------------------------- product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 72px); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.gallery { position: sticky; top: 96px; align-self: start; }
@media (max-width: 860px) { .gallery { position: static; } }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; list-style: none; padding: 0; margin: 12px 0 0; overflow-x: auto; }
.gallery-thumbs a { display: block; width: 76px; border-radius: var(--radius); overflow: hidden; border: 2px solid transparent; opacity: .75; }
.gallery-thumbs a[aria-current="true"], .gallery-thumbs a:hover { border-color: var(--ink); opacity: 1; }
.product-info h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .2em; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.stock { font-size: .9rem; font-weight: 500; display: flex; align-items: center; gap: .5em; }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--err); }
.buy { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }
.buy .btn { flex: 1 1 160px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; height: 52px; }
.qty input { width: 52px; border: 0; text-align: center; min-height: 0; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty .icon-btn { width: 40px; height: 40px; }
.assurances { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; font-size: .95rem; }
.assurances li { display: flex; align-items: center; gap: .7em; color: var(--ink-2); }
.assurances .icon { color: var(--accent); }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

/* ---------------------------------------------------------------- prose */
.prose { font-size: 1.0625rem; color: var(--ink-2); }
.prose h2 { font-size: 1.7rem; margin: 1.6em 0 .5em; color: var(--ink); }
.prose h3 { font-size: 1.3rem; margin: 1.4em 0 .4em; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-lg); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .6em .8em; border-bottom: 1px solid var(--line); }

.article-head { padding-top: 8px; }
.article-head h1 { margin-top: .3em; }
.article-cover { margin: 24px auto 40px; max-width: 1080px; }
.article-cover img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.article-cta { margin-top: 48px; margin-bottom: 72px; padding: 32px; border-radius: var(--radius-lg); background: var(--tint); text-align: center; }

/* ---------------------------------------------------------------- cart / checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-lines ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 80px 1fr 80px 110px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; }
.cart-line-name { font-weight: 500; text-decoration: none; }
.cart-line-info p { margin: .1em 0 .3em; font-size: .9rem; }
.cart-qty input { text-align: center; }
.cart-line-total { margin: 0; text-align: right; font-weight: 600; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 72px 1fr 72px; }
  .cart-line-total { grid-column: 2 / 4; text-align: left; }
}
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 12px; }
.summary h2 { font-size: 1.4rem; margin: 0; }
.summary dl { margin: 0; }
.summary dl div { display: flex; justify-content: space-between; padding: 6px 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }
.summary-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px !important; font-size: 1.15rem; }
.summary-total dt, .summary-total dd { color: var(--ink); font-weight: 600; }
.summary-lines { list-style: none; padding: 0; margin: 0; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.note { margin: 0; padding: 10px 12px; background: var(--tint); border-radius: var(--radius); font-size: .9rem; }

fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 14px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-grid { grid-template-columns: 1fr; } }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; }
.field [aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: .85rem; margin: 6px 0 0; }
.radio-card { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--ink-2); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.radio-card input { margin-top: .3em; accent-color: var(--accent); }

.success { text-align: center; }
.success .summary { text-align: left; margin: 32px 0; }
.success-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #e3f0e4; color: var(--ok); margin-bottom: 16px; }
.success-icon .icon { width: 36px; height: 36px; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form .btn { margin-top: 20px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 12px; }
.contact-card h2 { font-size: 1.5rem; margin: 0; }
.contact-card .footer-contact p { color: var(--ink-2); }
.contact-card .footer-contact .icon { color: var(--accent); }
.hp { position: absolute; left: -9999px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--dark); color: #d9cdbd; padding-top: 64px; font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.brand-light { color: #fff; margin-bottom: 16px; }
.brand-light .brand-sub { color: #b6a894; display: block; }
.footer-brand p { max-width: 36ch; }
.footer-title { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer nav li { padding: 4px 0; }
.socials { display: flex; gap: 6px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); }
.socials a:hover { background: rgba(255, 255, 255, .1); }
.footer-contact { font-style: normal; }
.footer-contact p { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.footer-contact .icon { margin-top: .2em; opacity: .8; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #a99b88; }
.footer-bottom p { margin: 0; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); background: var(--wa-hover); }
.wa-float .icon { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
