/* ============ ATELIER MIRA — B2B Womenswear Wholesale ============ */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1c1a17;
  --ink-soft: #5c564d;
  --line: #e6dfd4;
  --accent: #9a7b4f;
  --accent-dark: #7c6039;
  --radius: 4px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header: topbar + main row + category row ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar { background: var(--ink); color: #fff; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 36px; gap: 16px; padding-top: 4px; padding-bottom: 4px;
}
.topbar-text { font-size: 12px; letter-spacing: 0.6px; opacity: 0.92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .lang-switch { flex: none; }
.topbar .lang-switch select {
  border-color: rgba(255,255,255,0.35); color: #fff; background: transparent;
  padding: 4px 8px; font-size: 12px;
}
.topbar .lang-switch select option { color: var(--ink); background: #fff; }
.header-main {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.header-main .logo { flex-shrink: 0; }
.nav-search {
  flex: 1; max-width: 480px; margin: 0 auto;
  display: flex; align-items: center;
  border: 1.5px solid var(--ink); border-radius: 999px;
  background: #fff; overflow: hidden;
}
.nav-search:focus-within { border-color: var(--accent-dark); }
.nav-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  padding: 9px 8px 9px 16px; font-size: 13.5px; font-family: inherit; color: var(--ink);
}
.nav-search button {
  border: none; background: transparent; cursor: pointer; color: var(--ink);
  padding: 8px 14px; display: flex; align-items: center;
}
.header-icons { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.hicon {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; color: var(--ink);
  transition: background 0.2s;
}
.hicon:hover { background: rgba(0,0,0,0.06); }
.count-badge {
  position: absolute; top: 1px; right: -1px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--accent); color: #fff; border-radius: 8px; font-size: 10.5px; font-weight: 600;
  display: none; align-items: center; justify-content: center; line-height: 1;
}
.fav-count { background: #b3392e; }
.cat-nav { border-top: 1px solid var(--line); }
.cat-nav-inner { display: flex; gap: 26px; align-items: center; height: 42px; overflow-x: auto; scrollbar-width: none; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a {
  font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-soft); white-space: nowrap; padding: 3px 0;
  border-bottom: 2px solid transparent; transition: color 0.2s;
}
.cat-nav a:hover, .cat-nav a.active { color: var(--ink); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }
.logo { display: inline-flex; align-items: center; }
.logo-img {
  height: 40px; width: auto; display: block;
  mix-blend-mode: multiply; /* blends the white logo background into the cream header */
}
.lang-switch select {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; font-family: inherit;
  color: var(--ink); cursor: pointer;
}
.lang-switch select:focus { outline: none; border-color: var(--accent); }
/* admin.html legacy header layout */
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.admin-only-nav .main-nav, .site-header .main-nav { display: flex; gap: 24px; align-items: center; }
.site-header .main-nav a { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 30px;
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  border-radius: var(--radius); cursor: pointer; transition: all 0.2s;
  font-family: inherit;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(250,247,242,0.95) 0%, rgba(250,247,242,0.75) 40%, rgba(250,247,242,0.05) 75%);
}
.hero-content { position: relative; z-index: 2; max-width: 560px; padding: 60px 0; }
.hero-tag {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 5vw, 58px); margin-bottom: 22px; }
.hero p { color: var(--ink-soft); font-size: 17px; margin-bottom: 34px; max-width: 460px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .kicker {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); }

.alt-bg { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Value grid ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.value-card { padding: 32px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.value-card .num { font-family: "Playfair Display", serif; font-size: 34px; color: var(--accent); margin-bottom: 12px; }
.value-card h3 { font-size: 20px; margin-bottom: 10px; }
.value-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile .label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 24px 22px;
  background: linear-gradient(transparent, rgba(20,18,15,0.72));
  color: #fff; font-family: "Playfair Display", serif; font-size: 22px;
  letter-spacing: 1px;
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.step { text-align: center; padding: 0 12px; }
.step .icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border: 1px solid var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif; font-size: 24px; color: var(--accent-dark);
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Certifications strip ---------- */
.cert-strip { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.cert-item { text-align: center; }
.cert-item strong { display: block; font-family: "Playfair Display", serif; font-size: 22px; color: var(--accent-dark); }
.cert-item span { font-size: 13px; color: var(--ink-soft); letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Catalog / product cards ---------- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.filter-btn {
  padding: 9px 22px; font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase;
  background: transparent; border: 1px solid var(--line); border-radius: 30px;
  cursor: pointer; color: var(--ink-soft); font-family: inherit; transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--ink); color: var(--ink); background: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.25s, transform 0.25s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 14px 36px rgba(28,26,23,0.1); transform: translateY(-3px); }
.product-card .img-wrap { aspect-ratio: 2/3; overflow: hidden; position: relative; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .img-wrap img { transform: scale(1.04); }
.product-card .badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(250,247,242,0.92); color: var(--accent-dark);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 3px;
}
.product-info { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product-info .code { font-size: 11.5px; letter-spacing: 2px; color: var(--accent-dark); margin-bottom: 6px; }
.product-info h3 { font-size: 19px; margin-bottom: 6px; }
.product-info .fabric { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; }
.price-line { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.price-line .from { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1px; }
.price-line .price { font-family: "Playfair Display", serif; font-size: 21px; }
.price-line .moq { font-size: 12px; color: var(--ink-soft); }

/* ---------- Product detail ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.detail-img { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: sticky; top: 92px; }
.detail-info .code { font-size: 12px; letter-spacing: 2px; color: var(--accent-dark); margin-bottom: 10px; }
.detail-info h1 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.detail-info .desc { color: var(--ink-soft); margin-bottom: 28px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; font-size: 14.5px; }
.spec-table td { padding: 11px 4px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { color: var(--ink-soft); width: 40%; }
.tier-table { width: 100%; border-collapse: collapse; margin-bottom: 32px; font-size: 14.5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tier-table th, .tier-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.tier-table th { background: var(--bg); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.tier-table tr:last-child td { border-bottom: none; }
.tier-table td:last-child, .tier-table th:last-child { text-align: right; }
.tier-table td .price { font-family: "Playfair Display", serif; font-size: 17px; }
.note { font-size: 13px; color: var(--ink-soft); font-style: italic; margin-bottom: 28px; }
.detail-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Contact / form ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.contact-info h2 { font-size: 32px; margin-bottom: 18px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 24px; }
.contact-line { display: flex; gap: 14px; margin-bottom: 16px; font-size: 15px; }
.contact-line .k { min-width: 90px; color: var(--ink-soft); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; padding-top: 2px; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 15px; background: var(--bg); color: var(--ink);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success h3 { font-size: 24px; margin-bottom: 10px; }
.form-success p { color: var(--ink-soft); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 48px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 14px; }
.page-hero p { color: var(--ink-soft); max-width: 560px; margin: 0 auto; }

/* ---------- Legal pages ---------- */
.legal-body { max-width: 760px; margin: 0 auto; padding-bottom: 90px; }
.legal-body h2 { font-size: 24px; margin: 40px 0 14px; }
.legal-body h3 { font-size: 18px; margin: 26px 0 10px; }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 15px; margin-bottom: 10px; }
.legal-body ul { padding-left: 22px; margin-bottom: 14px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #1c1a17; color: #f4efe7;
  padding: 20px 0; transform: translateY(100%); transition: transform 0.35s;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-inner p { flex: 1; min-width: 260px; font-size: 13.5px; margin: 0; }
.cookie-inner a { color: #d8bd8e; text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; }
.cookie-actions .btn { padding: 10px 22px; }
.btn-ghost { background: transparent; border-color: #6b6459; color: #f4efe7; }
.btn-ghost:hover { background: #6b6459; }

/* ---------- CTA band ---------- */
.cta-band { background: #1c1a17; color: #f4efe7; text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.cta-band p { color: #b8b0a2; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; color: var(--ink); }
.footer-grid p, .footer-grid a { font-size: 14px; color: var(--ink-soft); display: block; margin-bottom: 9px; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .detail-layout, .contact-layout { grid-template-columns: 1fr; }
  .detail-img { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-main { gap: 12px; height: 56px; }
  .logo-img { height: 32px; }
  .nav-search { max-width: none; }
  .cat-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .cat-nav.open { display: block; }
  .cat-nav-inner { flex-direction: column; align-items: flex-start; height: auto; padding: 16px 24px; gap: 14px; }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .cat-grid, .product-grid, .value-grid, .form-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

/* ---------- Product gallery & colour swatches ---------- */
.pd-noimg {
  aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink-soft); font-size: 22px; letter-spacing: 2px;
}
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb {
  width: 64px; height: 84px; object-fit: cover; border-radius: 4px; cursor: pointer;
  border: 2px solid transparent; opacity: 0.7;
}
.pd-thumb.active, .pd-thumb:hover { border-color: var(--accent); opacity: 1; }
.pd-colors { margin: 4px 0 16px; }
.pd-colors-label { font-size: 14px; margin-bottom: 10px; }
.pd-swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px #fff;
}
.pd-swatch.active { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-swatches { display: flex; gap: 5px; align-items: center; margin: 6px 0 2px; }
.card-swatches span {
  width: 13px; height: 13px; border-radius: 50%; display: inline-block;
  border: 1px solid rgba(0,0,0,0.12);
}
.card-swatches em { font-style: normal; font-size: 11px; color: var(--ink-soft); }

/* ---------- Cart / online ordering ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); padding: 10px 12px; border-bottom: 2px solid var(--line); }
.cart-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: middle; }
.cart-prod { display: flex; gap: 14px; align-items: center; min-width: 220px; }
.cart-prod img { width: 54px; height: 68px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.cart-qty { width: 84px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-family: inherit; }
.cart-remove { background: none; border: none; color: #b3392e; cursor: pointer; font-size: 13px; text-decoration: underline; font-family: inherit; padding: 0; }
.cart-total-line { display: flex; justify-content: flex-end; gap: 18px; align-items: baseline; padding: 18px 12px; font-size: 15px; }
.cart-total-line .amount { font-family: "Playfair Display", serif; font-size: 26px; }
.cart-add { display: flex; gap: 12px; align-items: center; margin: 22px 0; flex-wrap: wrap; }
.cart-add label { font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); }
.cart-add input { width: 90px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; font-family: inherit; }
.pd-added { font-size: 14px; color: #2e7d43; font-weight: 600; }
.pd-added.err { color: #b3392e; }
.cart-layout { max-width: 880px; margin: 0 auto; padding-bottom: 90px; }

/* ---------- Per-colour order table (product page) ---------- */
.pd-order { margin: 22px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.order-table th { text-align: left; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); padding: 10px 14px; border-bottom: 2px solid var(--line); background: var(--bg); }
.order-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.order-table tr:last-child td { border-bottom: none; }
.oc-cell { display: flex; align-items: center; gap: 9px; min-width: 140px; }
.oc-swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); flex: none; box-shadow: inset 0 0 0 2px #fff; }
.oc-thumb { width: 30px; height: 38px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); flex: none; }
.oc-size { color: var(--ink-soft); font-size: 13px; max-width: 170px; }
.oc-unit { white-space: nowrap; }
.oc-qty { white-space: nowrap; }
.oc-qty .oc-input { width: 58px; padding: 7px 6px; text-align: center; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-family: inherit; -moz-appearance: textfield; }
.oc-qty .oc-input::-webkit-outer-spin-button, .oc-qty .oc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.oc-step { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--ink); color: #fff; font-size: 16px; cursor: pointer; line-height: 1; vertical-align: middle; }
.oc-step:hover { background: var(--accent-dark); }
.oc-sub { white-space: nowrap; font-weight: 600; }
.pd-order-foot { padding: 14px; }
.pd-order-foot .pd-order-btn { width: 100%; padding: 14px 20px; font-size: 15px; }
@media (max-width: 720px) {
  .order-table th:nth-child(2), .order-table td.oc-size, .order-table th.oc-size-h { display: none; }
}

/* ---------- Price gate & wholesale account ---------- */
.price-gate { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-dark); text-decoration: none; padding: 10px 14px; border: 1px dashed var(--accent); border-radius: var(--radius); background: rgba(196,140,68,0.06); }
.price-gate.on-card { margin-top: 10px; }
.price-gate.box { margin: 24px 0; padding: 18px 20px; font-size: 14.5px; }
.price-gate:hover { background: rgba(196,140,68,0.14); }
.acct-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 860px) { .acct-cols { grid-template-columns: 1fr; } }
.acct-err { color: #b3392e; font-size: 13.5px; margin-top: 12px; min-height: 18px; font-weight: 500; }

/* ---------- Customer centre (account page) ---------- */
.acct-page { padding-bottom: 90px; }
.acct-layout { display: grid; grid-template-columns: 264px 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .acct-layout { grid-template-columns: 1fr; } }
.acct-side {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; position: sticky; top: 96px;
  box-shadow: 0 1px 3px rgba(28,26,23,0.05);
}
.side-head {
  display: flex; gap: 12px; align-items: center; padding: 18px 16px;
  background: linear-gradient(135deg, #26211b, #3d352c); color: #fff;
}
.side-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: 1px;
}
.side-name { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.side-mail { font-size: 12px; opacity: 0.72; word-break: break-all; }
.side-nav { display: flex; flex-direction: column; gap: 2px; padding: 10px; }
.side-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: none; background: none; border-radius: 9px;
  font-size: 14px; font-family: inherit; cursor: pointer; text-align: left; color: var(--ink);
  transition: background 0.15s;
}
.side-item:hover { background: var(--bg); }
.side-item.active { background: var(--bg); font-weight: 600; color: var(--accent-dark); box-shadow: inset 3px 0 0 var(--accent-dark); }
.side-logout { margin: 6px 10px 12px; border: 1px solid var(--line); justify-content: center; color: #b3392e; }
.acct-main { min-width: 0; }
.access-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #2e7d43; background: rgba(46,125,67,0.08); border-radius: 20px; padding: 5px 14px; margin: 6px 0 14px; }
.prof-name { font-size: 19px; font-weight: 600; margin: 0 0 2px; }
.prof-email { color: var(--accent-dark); font-size: 14px; margin: 0 0 14px; }
.prof-dl { display: grid; gap: 8px; font-size: 14.5px; }
.prof-dl > div { display: flex; gap: 10px; }
.prof-dl dt { color: var(--ink-soft); min-width: 150px; }
.prof-dl dd { margin: 0; font-weight: 500; }
.ord-search {
  width: 100%; max-width: 420px; padding: 11px 16px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 22px; font-size: 14px; font-family: inherit;
  background: #fff; outline: none; transition: border-color 0.2s;
}
.ord-search:focus { border-color: var(--accent-dark); }
.ord-me {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 18px; box-shadow: 0 1px 3px rgba(28,26,23,0.05);
}
.ordme-id { display: flex; flex-direction: column; min-width: 160px; }
.ordme-id strong { font-size: 14.5px; }
.ordme-id span { font-size: 12.5px; color: var(--ink-soft); word-break: break-all; }
.ordme-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.ordme-tag {
  font-size: 12.5px; color: var(--ink-soft); background: var(--bg);
  border-radius: 14px; padding: 4px 12px; white-space: nowrap;
}
.order-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px; margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(28,26,23,0.05); transition: box-shadow 0.2s;
}
.order-card:hover { box-shadow: 0 6px 18px rgba(28,26,23,0.09); }
.oc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.oc-sums { display: flex; align-items: center; gap: 16px; }
.order-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.order-no { display: flex; gap: 12px; align-items: center; min-width: 170px; }
.ok-dot { width: 24px; height: 24px; border-radius: 50%; background: #2e7d43; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.ord-ref { font-weight: 700; font-size: 15px; cursor: pointer; letter-spacing: 0.3px; }
.ord-date { color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }
.ord-total-l { display: block; font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1px; }
.ord-pay { text-align: right; }
.ord-pay strong { font-size: 16.5px; }
.status-chip { font-size: 12.5px; font-weight: 600; padding: 5px 14px; border-radius: 16px; white-space: nowrap; }
.st-new { background: rgba(196,140,68,0.12); color: var(--accent-dark); }
.st-ok { background: rgba(46,125,67,0.12); color: #2e7d43; }
.st-done { background: rgba(46,125,67,0.2); color: #1d5c30; }
.st-cancel { background: rgba(179,57,46,0.1); color: #b3392e; }
.btn-sm { padding: 8px 18px !important; font-size: 13px !important; }
.oc-actions {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.oc-actions .btn-ink { margin-left: auto; }
.act-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 14px; font-size: 12.5px; font-family: inherit; color: var(--ink); cursor: pointer;
  text-decoration: none; transition: border-color 0.2s;
}
.act-btn:hover { border-color: var(--ink); }
.act-btn.inv-none { opacity: 0.45; }
.order-tl { display: flex; align-items: center; gap: 0; margin: 20px 0 4px; padding: 0 10px; }
.tl-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; background: #fff; }
.tl-step.done .tl-dot { background: #2e7d43; border-color: #2e7d43; }
.tl-label { font-size: 12px; color: var(--ink-soft); }
.tl-step.done .tl-label { color: var(--ink); font-weight: 500; }
.tl-line { flex: 1; height: 2px; background: var(--line); margin: 0 8px 20px; }
.tl-line.done { background: #2e7d43; }
.ord-track { margin-top: 14px; font-size: 13.5px; background: var(--bg); border-radius: 8px; padding: 10px 14px; display: inline-block; }
.order-detail { margin-top: 14px; overflow-x: auto; }
.empty-note { background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 40px 20px; text-align: center; color: var(--ink-soft); font-size: 14.5px; }
.req-type { font-size: 13.5px; color: var(--ink-soft); min-width: 140px; }
.pref-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.pref-title { font-weight: 600; font-size: 14.5px; margin-bottom: 4px; }
.pref-desc { font-size: 13px; color: var(--ink-soft); }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #c9c4bb; border-radius: 26px; transition: 0.2s; cursor: pointer; }
.switch .slider::before { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: 0.2s; }
.switch input:checked + .slider { background: #2e7d43; }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ---------- Wishlist heart & catalog search note ---------- */
.wish-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); cursor: pointer; transition: transform 0.15s, color 0.15s;
  padding: 0;
}
.wish-btn:hover { transform: scale(1.1); }
.wish-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wish-btn.on { color: #b3392e; }
.wish-btn.on svg { fill: #b3392e; }
.pd-wish {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 18px; font-size: 13px; font-family: inherit; cursor: pointer; color: var(--ink);
  transition: all 0.2s;
}
.pd-wish:hover { border-color: var(--ink); }
.pd-wish svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pd-wish.on { color: #b3392e; border-color: #b3392e; }
.pd-wish.on svg { fill: #b3392e; }
.catalog-note { font-size: 14px; color: var(--ink-soft); margin: -24px 0 28px; }

/* ---------- Responsive polish (mobile / tablet / desktop) ---------- */
#cart-table-wrap { overflow-x: auto; }
#cart-table-wrap table { min-width: 620px; }
.pd-order { overflow-x: auto; }
.pd-order .order-table { min-width: 560px; }
.cat-nav-inner { -webkit-overflow-scrolling: touch; }
@media (max-width: 860px) {
  .acct-side { position: static; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .side-nav .side-item { flex: 1 1 45%; }
  .side-logout { flex: 1 1 100%; margin: 0 10px 12px; }
  .oc-sums { width: 100%; justify-content: space-between; }
  .oc-actions .btn-ink { margin-left: 0; flex-basis: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .hero { min-height: 58vh; }
  .topbar-text { font-size: 11px; }
  .page-hero { padding: 52px 0 36px; }
  .detail-actions .btn, .detail-actions .pd-wish { flex: 1 1 auto; justify-content: center; }
  .filter-bar { gap: 8px; }
  .filter-btn { padding: 8px 16px; font-size: 11.5px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Promo slideshow ---------- */
.promo-slides { position: relative; height: 460px; overflow: hidden; background: var(--ink); }
.promo-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; pointer-events: none; }
.promo-slide.active { opacity: 1; pointer-events: auto; }
.promo-slide img { width: 100%; height: 100%; object-fit: cover; }
.promo-cap {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  color: #fff; padding: 24px; gap: 14px;
}
.promo-cap::before { content: ""; position: absolute; inset: 0; background: rgba(24,22,19,0.5); }
.promo-cap > * { position: relative; }
.promo-kicker { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.92; }
.promo-cap h2 { font-family: "Playfair Display", serif; font-size: clamp(30px, 5vw, 48px); margin: 0; color: #fff; }
.promo-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; gap: 8px; justify-content: center; z-index: 2; }
.promo-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; padding: 0; transition: background 0.2s; }
.promo-dots button.active { background: #fff; }
.promo-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.88); color: var(--ink);
  font-size: 22px; cursor: pointer; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.promo-arrow:hover { background: #fff; }
.promo-arrow.prev { left: 16px; }
.promo-arrow.next { right: 16px; }
@media (max-width: 600px) {
  .promo-slides { height: 320px; }
  .promo-arrow { display: none; }
}
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; border-color: #000; color: #fff; }

/* ---------- Order detail (thumbnails / lines / totals) ---------- */
.od-meta { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 16px; }
.od-prod { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 14px 16px; margin-bottom: 14px; }
.od-prod-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.od-prod-head strong { font-size: 15px; }
.od-thumb { width: 54px; height: 68px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); flex: none; }
.od-lines { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.od-lines th { text-align: left; font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-soft); padding: 6px 8px; border-bottom: 2px solid var(--line); }
.od-lines td { padding: 8px; border-bottom: 1px solid var(--line); }
.od-lines tfoot td { border-bottom: none; font-size: 13px; }
.od-totals { margin-left: auto; width: 300px; max-width: 100%; text-align: right; font-size: 14px; line-height: 2.1; }
.od-totals .grand { border-top: 2px solid var(--ink); font-size: 16px; }
