/* Adria Sanitarije — shared stylesheet */

:root {
  --bg: #f7f4ee;
  --ink: #14232b;
  --navy: #0e3a4a;
  --accent: #b4713a;
  --accent-dark: #9c5f2e;
  --cream: #e7c8ac;
  --border: #e4ded3;
  --muted: #6d6a63;
  --muted2: #8a8378;
  --offwhite: #faf8f4;
  --success: #2f6b4f;
  --error: #a33a2c;
  --font-sans: Manrope, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }
input, select, textarea, button { font-family: inherit; font-size: 15px; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.visually-hidden {
  position: absolute; 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: 12px; top: -50px; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 100; transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--font-serif); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: #cfe3e8; font-size: 13px; letter-spacing: .01em; }
.topbar-inner { padding: 9px 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.topbar-left, .topbar-right { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar a { color: #cfe3e8; }
.dot { opacity: .55; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(247,244,238,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.header-inner { padding: 16px 24px; display: flex; align-items: center; gap: 28px; }
.brand { cursor: pointer; display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--navy); flex: none;
  display: flex; align-items: center; justify-content: center; color: var(--bg);
  font-family: var(--font-serif); font-size: 20px;
}
.brand-text { line-height: 1.05; }
.brand-name { font-family: var(--font-serif); font-size: 22px; letter-spacing: .01em; }
.brand-tagline { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted2); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.nav-item { padding: 9px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.nav-item.active { background: var(--border); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  cursor: pointer; position: relative; display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 9px; background: var(--navy); color: var(--bg);
  font-size: 14px; font-weight: 700; border: none;
}
.cart-count { background: var(--accent); border-radius: 20px; padding: 1px 8px; font-size: 12px; }

/* ---------- Hover helper classes (from design's style-hover) ---------- */
.hv-taupe:hover { background: #ece7dd; }
.hv-navy2:hover { background: #14232b; color: var(--bg); }
.hv-accentdark:hover { background: var(--accent-dark); }
.hv-ghostlight:hover { background: rgba(242,239,232,.08); }
.hv-borderaccent:hover { border-color: var(--accent); }
.hv-accent:hover { background: var(--accent); }
.hv-cream:hover { background: #f2eee7; }
.hv-navyinvert:hover { background: var(--navy); color: #fff; }
.hv-white:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  cursor: pointer; display: inline-block; text-align: center; padding: 13px 22px;
  border-radius: 10px; font-weight: 700; font-size: 15px; border: 1px solid transparent;
  background: none; color: var(--ink); line-height: 1.2;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-dark { background: var(--navy); color: var(--bg); }
.btn-outline { border-color: var(--border); color: var(--ink); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); padding: 16px 26px; border-radius: 11px; font-size: 16px; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(242,239,232,.35); color: #f2efe8; }
.btn-link { padding: 12px 14px; font-weight: 700; color: var(--muted); }
.btn-block { width: 100%; }
.flex-1 { flex: 1; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #f2efe8; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; min-height: 560px; }
.hero-copy { padding: 72px 0; }
.pill { display: inline-block; padding: 6px 13px; border: 1px solid rgba(242,239,232,.28); border-radius: 20px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.hero-title { font-family: var(--font-serif); font-size: 64px; line-height: 1.03; margin: 22px 0 0; font-weight: 400; }
.accent-italic { font-style: italic; color: var(--cream); }
.hero-lead { font-size: 18px; line-height: 1.62; color: #c8d8dd; max-width: 520px; margin: 22px 0 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 46px; flex-wrap: wrap; }
.stat-num { font-size: 32px; }
.stat-label { font-size: 12.5px; color: #a9c1c8; }
.hero-media { height: 100%; min-height: 340px; }
.hero-media img, .hero-img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }

/* ---------- USPs ---------- */
.usps-section { background: #fff; border-bottom: 1px solid var(--border); }
.usps-grid { padding: 34px 24px; display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.usp { display: flex; gap: 14px; align-items: flex-start; }
.usp-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-top: 6px; flex: none; }
.usp-title { font-weight: 700; font-size: 15px; }
.usp-desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; }

/* ---------- Sections / typography ---------- */
.section { padding: 78px 24px 10px; }
.section-tight { padding: 56px 24px 0; max-width: 1240px; margin: 0 auto; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.eyebrow-cream { color: var(--cream); }
.h1 { font-family: var(--font-serif); font-size: 46px; font-weight: 400; margin: 0 0 8px; }
.h1-light { color: #f2efe8; }
.h1.tight { margin-bottom: 12px; }
.h2 { font-family: var(--font-serif); font-size: 42px; font-weight: 400; margin: 10px 0 0; }
.h2-light { color: #f2efe8; }
.h3 { font-family: var(--font-serif); font-size: 28px; font-weight: 400; margin: 0 0 10px; }
.link-more { cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--accent); }
.lead-text { color: var(--muted); font-size: 15.5px; max-width: 720px; line-height: 1.6; margin: 0 0 30px; }
.muted { color: var(--muted); }
.muted-text { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.muted-light { color: #b9c8cd; }
.muted-num { color: var(--muted2); font-size: 13px; }
.breadcrumb { font-size: 13px; color: var(--muted2); margin-bottom: 14px; }
.breadcrumb a { color: var(--navy); }
.crumb-current { color: var(--ink); }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.divider-dark { height: 1px; background: rgba(242,239,232,.18); margin: 22px 0; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-6 { grid-template-columns: repeat(6,1fr); }

/* ---------- Cards (generic) ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: 14px; }

/* Category / product / blog / related cards */
.category-card, .product-card, .blog-card, .related-card { overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.category-card:hover, .product-card:hover, .blog-card:hover, .related-card:hover { color: inherit; }
.card-media { position: relative; display: block; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.category-card .card-media img { height: 130px; }
.product-card .card-media img { height: 200px; }
.blog-card .card-media img { height: 150px; }
.related-card .card-media img { height: 140px; }
.card-badge {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 5px; letter-spacing: .05em;
}
.card-body { padding: 16px 17px 18px; display: flex; flex-direction: column; flex: 1; }
.card-brand { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted2); }
.card-title { cursor: pointer; font-weight: 700; font-size: 15.5px; line-height: 1.32; margin-top: 5px; color: var(--ink); }
.card-title.small { font-size: 15px; min-height: 39px; display: block; }
.card-short { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 7px; flex: 1; }
.card-price-row { display: flex; align-items: baseline; gap: 9px; margin-top: 11px; }
.price { font-size: 26px; }
.price.xl { font-size: 44px; }
.old-price { font-size: 14px; color: var(--muted2); text-decoration: line-through; }
.old-price.large { font-size: 18px; }
.card-stock { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-meta { font-size: 12px; color: var(--muted2); }
.card-excerpt { font-size: 14px; color: var(--muted); line-height: 1.55; margin-top: 7px; }
.category-card .card-title { font-size: 16px; }

/* Reviews */
.review-card { padding: 26px 24px; }
.stars { color: var(--accent); font-size: 15px; letter-spacing: .18em; }
.review-text { font-size: 15px; line-height: 1.62; color: #3d4a51; margin: 14px 0 18px; }
.review-name { font-weight: 700; font-size: 14px; }
.review-city { font-size: 12.5px; color: var(--muted2); }

/* Service (dark) panel on home */
.service-panel { background: #14232b; color: #f2efe8; border-radius: 18px; padding: 52px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.panel-lead { color: #b9c8cd; line-height: 1.62; font-size: 15.5px; margin: 12px 0 24px; }
.steps-list { display: grid; gap: 12px; }
.step { display: flex; gap: 16px; align-items: flex-start; border: 1px solid rgba(242,239,232,.16); border-radius: 12px; padding: 16px 18px; }
.step-n { font-size: 24px; color: var(--cream); min-width: 28px; }
.step-t { font-weight: 700; font-size: 15px; }
.step-d { font-size: 13.5px; color: #b9c8cd; line-height: 1.5; margin-top: 3px; }

/* Newsletter */
.newsletter-section { padding-bottom: 90px; }
.newsletter-panel { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 40px 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.inline-form { display: flex; gap: 10px; }
.input {
  padding: 13px 16px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px;
  background: var(--offwhite); width: 100%;
}
select.input { background: var(--offwhite); }
.fine-print { font-size: 12px; color: var(--muted2); margin-top: 9px; }
.form-msg { font-size: 13.5px; color: var(--success); font-weight: 600; margin-top: 10px; }
.form-msg.error { color: var(--error); }

/* ---------- Shop page ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.shop-aside { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; position: sticky; top: 96px; }
.aside-heading { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted2); margin-bottom: 12px; }
.filter-cat-list { display: flex; flex-direction: column; gap: 2px; }
.filter-cat-item {
  cursor: pointer; padding: 9px 11px; border-radius: 8px; font-size: 14.5px; display: flex;
  justify-content: space-between; gap: 8px; background: transparent; border: none; text-align: left; width: 100%; color: var(--ink);
}
.filter-cat-item.active { background: #f2eee7; font-weight: 700; }
.range { width: 100%; accent-color: var(--accent); }
.range-value { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.aside-help { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.shop-toolbar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.select-auto { width: auto; }
.result-count { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.no-results { padding: 40px; text-align: center; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 14px; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.product-main-img { position: relative; height: 440px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 12px; }
.gallery-thumb { height: 92px; border-radius: 10px; border: 1px solid var(--border); overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted2); }
.product-desc { font-size: 15.5px; line-height: 1.65; color: #3d4a51; margin: 0 0 20px; }
.price-row { display: flex; align-items: baseline; gap: 12px; }
.net-price { font-size: 13px; color: var(--muted); margin-top: 3px; }
.stock-line { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--success); }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }
.product-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.specs-box { margin-top: 26px; border: 1px solid var(--border); border-radius: 13px; overflow: hidden; background: #fff; }
.specs-head { padding: 14px 18px; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted2); }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 18px; border-bottom: 1px solid #f0ebe3; font-size: 14.5px; }
.spec-val { font-weight: 600; text-align: right; }
.specs-foot { padding: 13px 18px; font-size: 13.5px; color: var(--muted); }
.info-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.info-tile { background: #fff; border: 1px solid var(--border); border-radius: 11px; padding: 14px 16px; font-size: 13.5px; line-height: 1.5; }

/* ---------- Services page ---------- */
.dark-hero { background: var(--navy); color: #f2efe8; }
.dark-hero-inner { padding: 64px 24px; }
.dark-hero-lead { color: #c8d8dd; font-size: 17px; line-height: 1.6; max-width: 660px; margin: 0; }
.service-card { padding: 28px 26px; }
.service-bar { width: 32px; height: 4px; background: var(--accent); border-radius: 3px; }
.service-title { font-weight: 700; font-size: 19px; margin: 16px 0 9px; }
.service-desc { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.service-price { margin-top: 16px; font-size: 24px; color: var(--navy); }

.calc-panel { margin-top: 56px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 40px 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.calc-fields { display: grid; gap: 16px; }
.field-label { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.calc-result { background: var(--navy); color: #f2efe8; border-radius: 14px; padding: 34px 32px; display: flex; flex-direction: column; justify-content: center; }
.calc-saving { font-size: 56px; line-height: 1.05; margin: 14px 0 4px; }
.calc-caption { color: #b9c8cd; font-size: 15px; }
.calc-disclaimer { font-size: 12px; color: #8fa9b1; margin-top: 16px; line-height: 1.5; }
.row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 4px 0; }
.row.total { align-items: baseline; font-size: 15px; padding-top: 10px; }
.row.total span:first-child { font-weight: 700; }
.row.total .serif { font-size: 30px; }

.faq-section { margin-top: 56px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.faq-q { width: 100%; text-align: left; cursor: pointer; background: none; border: none; padding: 14px 18px; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 16px; color: var(--ink); }
.faq-sign { color: var(--accent); }
.faq-a { font-size: 14.5px; color: var(--muted); line-height: 1.65; padding: 0 18px 16px; max-width: 820px; }

/* ---------- Blog ---------- */
.post-meta { font-size: 13.5px; color: var(--muted2); margin-bottom: 26px; }
.post-hero { height: 280px; border-radius: 14px; overflow: hidden; margin-bottom: 32px; }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-lead { font-size: 18px; line-height: 1.65; color: #3d4a51; margin: 0 0 26px; }
.post-lead.small { font-size: 16px; }
.post-section { margin-bottom: 26px; }
.post-para { font-size: 16px; line-height: 1.72; color: #3d4a51; margin: 0 0 14px; }
.cta-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px 28px; margin-top: 34px; }
.cta-title { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.cta-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 16px; }

/* ---------- About ---------- */
.about-intro { max-width: 1240px; margin: 0 auto; padding: 56px 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-p { font-size: 16px; line-height: 1.7; color: #3d4a51; margin: 0 0 14px; }
.about-photo { height: 400px; border-radius: 16px; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.fact-card { padding: 26px 24px; }
.fact-num { font-size: 38px; color: var(--navy); }
.fact-text { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.store-card { overflow: hidden; }
.store-card img { width: 100%; height: 140px; object-fit: cover; }
.store-city { font-weight: 700; font-size: 18px; }
.store-details { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.brand-tile { background: #fff; border: 1px solid var(--border); border-radius: 12px; height: 78px; display: flex; align-items: center; justify-content: center; font-weight: 700; letter-spacing: .06em; color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-form-card { padding: 32px 34px; }
.stack-form { display: grid; gap: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.two-col .span-2 { grid-column: span 2; }
textarea.input { resize: vertical; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.checkbox-row input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.contact-side { display: grid; gap: 18px; }
.dark-card { background: var(--navy); color: #f2efe8; border-radius: 16px; padding: 30px 32px; }
.company-details { font-size: 15px; line-height: 1.8; margin-top: 14px; }
.hours-card { padding: 26px 30px; }
.hours-title { font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.hours-body { font-size: 14.5px; color: var(--muted); line-height: 1.8; }
.map-embed { width: 100%; height: 220px; border: 1px solid var(--border); border-radius: 16px; }

/* ---------- Cart / Checkout ---------- */
.cart-loading, .notice { padding: 40px; text-align: center; color: var(--muted); }
.checkout-layout { display: grid; grid-template-columns: 1fr 350px; gap: 28px; align-items: start; }
.stack-gap { display: grid; gap: 18px; }
.card-step-title { font-weight: 700; font-size: 18px; margin-bottom: 16px; padding: 26px 28px 0; }
.checkout-layout .card > .card-step-title:first-child { padding-top: 26px; }
.checkout-layout .card { padding: 0 0 26px; }
.checkout-layout .two-col, .checkout-layout .payment-list, .checkout-layout .checkbox-row, .checkout-layout .fine-print, .checkout-layout .btn, .checkout-layout .form-msg { margin-left: 28px; margin-right: 28px; }
.checkout-layout .two-col { width: calc(100% - 56px); }
.empty-card { padding: 56px; text-align: center; }
.empty-title { font-size: 17px; font-weight: 700; }
.empty-desc { color: var(--muted); font-size: 15px; margin: 8px 0 20px; }
.payment-list { display: grid; gap: 10px; }
.payment-option { cursor: pointer; border: 1px solid var(--border); background: #fff; border-radius: 11px; padding: 15px 18px; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.payment-option.active { border-color: var(--accent); background: #faf5ef; }
.payment-title { font-weight: 700; font-size: 15.5px; }
.payment-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.payment-fee { font-size: 13.5px; color: var(--muted); }
.checkout-summary { padding: 26px; position: sticky; top: 96px; }

.cart-empty-block, .cart-full-block { }
.cart-lines-table { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 18px 20px; border-bottom: 1px solid #f0ebe3; align-items: center; }
.cart-line:last-child { border-bottom: none; }
.cart-line-thumb { height: 80px; border-radius: 9px; background: #ece7dd; }
.qty-control { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.qty-btn { cursor: pointer; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-weight: 700; background: #fff; }
.qty-val { width: 34px; text-align: center; font-weight: 700; }
.remove-link { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 6px; background: none; border: none; padding: 0; }
.cart-page-layout { display: grid; grid-template-columns: 1fr 350px; gap: 28px; align-items: start; }
.summary-card { padding: 26px; position: sticky; top: 96px; }

/* Order success */
.order-success { max-width: 720px; margin: 80px auto 110px; padding: 0 24px; text-align: center; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 22px; }
.success-lead { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 26px; }
.success-details { padding: 24px; text-align: left; font-size: 14.5px; line-height: 1.8; color: #3d4a51; margin-bottom: 24px; }

/* Cart drawer */
.cart-drawer[hidden] { display: none; }
.cart-drawer { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; }
.cart-drawer-backdrop { position: absolute; inset: 0; background: rgba(20,35,43,.42); }
.cart-drawer-panel { position: relative; width: 420px; max-width: 92vw; height: 100%; background: var(--bg); box-shadow: -18px 0 50px rgba(20,35,43,.2); display: flex; flex-direction: column; animation: slideIn .22s ease; }
.cart-drawer-head { padding: 22px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-drawer-title { font-family: var(--font-serif); font-size: 24px; }
.cart-drawer-close { cursor: pointer; font-size: 22px; color: var(--muted2); line-height: 1; background: none; border: none; }
.cart-drawer-body { flex: 1; overflow: auto; padding: 14px 18px; }
.cart-empty-msg { padding: 50px 20px; text-align: center; color: var(--muted); font-size: 15px; }
.cart-drawer-foot { padding: 20px 22px; border-top: 1px solid var(--border); background: #fff; }
.cart-drawer-line { display: grid; grid-template-columns: 64px 1fr; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.cart-drawer-line-thumb { height: 64px; border-radius: 8px; background: #ece7dd; }
.cart-drawer-line-name { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.cart-drawer-line-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.qty-control-sm { display: flex; gap: 6px; align-items: center; }
.qty-btn-sm { cursor: pointer; width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #fff; }
.qty-val-sm { width: 26px; text-align: center; font-weight: 700; font-size: 14px; }

/* Cookie banner */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 70; width: 520px; max-width: calc(100vw - 48px);
  background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 50px rgba(20,35,43,.16);
  padding: 26px 28px; animation: fadeUp .25s ease;
}
.cookie-title { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.cookie-text { font-size: 14px; color: var(--muted); line-height: 1.6; }
.cookie-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #14232b; color: #c8d2d6; margin-top: auto; }
.footer-grid { padding: 56px 24px 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 38px; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-serif); font-size: 19px; }
.footer-brand-name { font-family: var(--font-serif); font-size: 21px; color: #f2efe8; }
.footer-address { font-size: 14px; line-height: 1.75; }
.footer-link-muted { color: #c8d2d6; }
.footer-heading { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream); font-weight: 700; margin-bottom: 13px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-link { cursor: pointer; color: #c8d2d6; }
.footer-bottom-wrap { }
.footer-bottom { border-top: 1px solid rgba(200,210,214,.16); padding: 22px 0 12px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.pay-icons { display: flex; gap: 9px; flex-wrap: wrap; }
.pay-icon { border: 1px solid rgba(200,210,214,.28); border-radius: 7px; padding: 6px 12px; font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.odr { font-size: 13px; line-height: 1.6; max-width: 520px; text-align: right; }
.odr a { color: var(--cream); }
.copyright { padding: 6px 0 34px; font-size: 12.5px; color: #8fa1a8; line-height: 1.6; }

/* ---------- Legal pages ---------- */
.legal-layout { max-width: 1240px; margin: 0 auto; padding: 44px 24px 90px; display: grid; grid-template-columns: 250px 1fr; gap: 38px; align-items: start; }
.legal-aside { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; position: sticky; top: 96px; }
.aside-list { display: flex; flex-direction: column; gap: 2px; }
.legal-nav-item { cursor: pointer; padding: 9px 11px; border-radius: 8px; font-size: 14px; color: var(--ink); display: block; }
.legal-nav-item.active { background: #f2eee7; font-weight: 700; }
.legal-article { padding: 44px 48px; max-width: 840px; }
.legal-updated { font-size: 13px; color: var(--muted2); margin-bottom: 22px; }
.legal-section { margin-bottom: 24px; }
.legal-footer { border-top: 1px solid var(--border); padding-top: 20px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ---------- 404 ---------- */
.not-found { max-width: 640px; margin: 100px auto; padding: 0 24px; text-align: center; }
.not-found-code { font-size: 80px; color: var(--navy); }

/* ================= Responsive ================= */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { min-height: 280px; }
  .service-panel, .calc-panel, .about-intro, .newsletter-panel, .contact-layout { grid-template-columns: 1fr; }
  .shop-layout, .checkout-layout, .legal-layout, .cart-page-layout, .product-detail { grid-template-columns: 1fr; }
  .shop-aside, .checkout-summary, .legal-aside, .summary-card { position: static; }
  .grid-6 { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 720px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-6 { grid-template-columns: repeat(2,1fr); }
  .hero-title { font-size: 42px; }
  .h1 { font-size: 34px; }
  .h2 { font-size: 30px; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; flex-direction: column; width: 100%; position: absolute; left: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 24px 16px; }
  .site-nav.open { display: flex; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .topbar-inner { font-size: 12px; }
  .two-col { grid-template-columns: 1fr; }
  .two-col .span-2 { grid-column: span 1; }
  .checkout-layout .two-col { width: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .odr { text-align: left; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-banner { left: 12px; right: 12px; width: auto; bottom: 12px; padding: 20px; }
  .cart-drawer-panel { width: 100%; }
}
