/* ============================================================
   BEKIND KULTURE
   Department-store retail look (Edgars style).
   White page, red as the working colour, bold uppercase
   headings, promo bar, visible prices and add-to-bag buttons.
   ============================================================ */

:root {
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #4d4d4d;
  --ink-3: #8c8c8c;
  --rule: #e6e6e6;
  --shade: #f5f5f5;
  --red: #d8232a;
  --red-dark: #b81b21;
  --footer: #1f1f1f;

  --font: "Arial", "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
  --gutter: clamp(16px, 3vw, 48px);
  --max: 1320px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body { font-family: var(--font); color: var(--ink); background: var(--paper); font-size: 14px; line-height: 1.5; }
body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 { font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; }

/* ---------- Announcement ---------- */

.announcement { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; text-align: center; padding: 8px var(--gutter); letter-spacing: 0.04em; text-transform: uppercase; }
.announcement:empty { display: none; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; }
.brand-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--ink); color: #fff; border-radius: 50%; font-weight: 700; font-size: 13px; }
.brand-name { font-weight: 700; font-size: 20px; letter-spacing: 0.04em; }

.header-right { display: flex; align-items: center; gap: 26px; }
.site-nav { display: flex; gap: 26px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.site-nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--red); }

.cart-button { background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 11px 16px; display: inline-flex; align-items: center; gap: 8px; }
.cart-button:hover { background: var(--red); }
.cart-count { background: #fff; color: var(--ink); font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; }

/* ---------- Hero banner ---------- */

.hero { position: relative; min-height: 520px; display: flex; align-items: center; background: var(--shade); overflow: hidden; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0) 100%); }

.hero-inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; width: 100%; padding: 64px var(--gutter); color: #fff; }
.hero-eyebrow { display: inline-block; background: var(--red); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 6px 12px; margin-bottom: 18px; }
.hero-title { font-size: clamp(38px, 6vw, 76px); max-width: 700px; margin-bottom: 14px; }
.hero-title-sub { display: block; }
.hero-rule { width: 64px; height: 4px; background: var(--red); margin-bottom: 18px; }
.hero-copy { font-size: 17px; max-width: 520px; margin-bottom: 26px; }

/* ---------- Buttons ---------- */

.btn { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 15px 28px; background: var(--red); color: #fff; border: 2px solid var(--red); text-align: center; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-block { width: 100%; }
.btn-small { padding: 10px 14px; font-size: 12px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; }

/* ---------- Category tiles ---------- */

.cats { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat { position: relative; display: block; overflow: hidden; background: var(--shade); }
.cat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.4s ease; }
.cat:hover img { transform: scale(1.04); }
.cat-label { position: absolute; left: 0; bottom: 0; right: 0; padding: 28px 18px 18px; background: linear-gradient(to top, rgba(0,0,0,0.65), transparent); color: #fff; display: flex; justify-content: space-between; align-items: flex-end; }
.cat-label h3 { font-size: 20px; }
.cat-label small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 2px solid #fff; padding-bottom: 2px; }
.cat-label span { display: block; font-size: 12px; opacity: 0.85; font-weight: 400; margin-top: 4px; }

/* ---------- Shop ---------- */

.shop { padding: 48px 0 0; }
.shop-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 26px; }
.section-head h2::after { content: ""; display: block; width: 48px; height: 4px; background: var(--red); margin-top: 10px; }

.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 24px; }

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 8px 14px; border: 1px solid var(--rule); color: var(--ink-2); }
.filter-tab:hover { border-color: var(--ink); color: var(--ink); }
.filter-tab.selected { background: var(--ink); border-color: var(--ink); color: #fff; }

.toolbar-right { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.item-count { color: var(--ink-3); }

.view-toggle { display: flex; gap: 6px; }
.view-btn { padding: 6px; border: 1px solid var(--rule); opacity: 0.6; }
.view-btn.selected { border-color: var(--ink); opacity: 1; }
.vt { display: inline-grid; gap: 2px; }
.vt-2 { grid-template-columns: repeat(2, 6px); }
.vt-4 { grid-template-columns: repeat(4, 4px); }
.vt i { display: block; height: 10px; background: var(--ink); }

.sort-select { font: inherit; font-size: 13px; color: var(--ink); border: 1px solid var(--rule); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%231a1a1a' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center; padding: 8px 30px 8px 12px; -webkit-appearance: none; appearance: none; cursor: pointer; }

.product-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.product-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }
.product-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }

.product-card { border: 1px solid var(--rule); background: #fff; display: flex; flex-direction: column; transition: border-color 0.15s; }
.product-card:hover { border-color: var(--ink); }

.product-image { position: relative; overflow: hidden; background: var(--shade); cursor: pointer; }
.product-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.product-image .hover-img { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease; }
.product-image:hover .hover-img { opacity: 1; }

.product-badge { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 8px; }
.quick-view { display: none; }

.product-info { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.product-category { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-bottom: 4px; }
.product-name { font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; }
.product-name:hover { color: var(--red); }
.product-desc { display: none; }

.product-swatches { display: flex; align-items: center; gap: 5px; margin: 8px 0 10px; min-height: 12px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
.swatch-name, .swatch-more { font-size: 12px; color: var(--ink-3); }

.product-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.product-price { font-size: 17px; font-weight: 700; color: var(--red); }
.product-bottom .btn { background: var(--ink); border-color: var(--ink); }
.product-bottom .btn:hover { background: var(--red); border-color: var(--red); }

/* ---------- Promo band / value strip ---------- */

.value-strip { background: var(--red); color: #fff; margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); }
.value-item { padding: 22px var(--gutter); text-align: center; border-left: 1px solid rgba(255,255,255,0.25); }
.value-item:first-child { border-left: 0; }
.value-title { display: block; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.value-desc { display: block; font-size: 13px; opacity: 0.9; margin-top: 2px; }

/* ---------- About ---------- */

.about { max-width: var(--max); margin: 0 auto; padding: 64px var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-media { min-height: 380px; background-size: cover; background-position: center; }
.about-scrim { display: none; }
.about-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); margin-bottom: 10px; }
.about h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 14px; }
.about-rule { width: 48px; height: 4px; background: var(--red); margin-bottom: 18px; }
.about-inner p { color: var(--ink-2); }
#aboutParagraphs p + p { margin-top: 10px; }
.about-motto { margin-top: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink) !important; font-size: 13px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--footer); color: #cfcfcf; font-size: 13px; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1.2fr; gap: 32px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-logo { width: 36px; height: 36px; border-radius: 50%; }
.footer-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid #fff; border-radius: 50%; color: #fff; font-weight: 700; font-size: 12px; }
.footer-brand { color: #fff; font-weight: 700; letter-spacing: 0.04em; }
.footer-blurb { max-width: 340px; }
.footer-heading { color: #fff; font-size: 13px; margin-bottom: 12px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 36px; padding-top: 18px; font-size: 12px; color: #9a9a9a; }

/* ---------- Cart drawer ---------- */

.cart-overlay, .modal-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.5); }

.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,0.15); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); background: var(--ink); color: #fff; }
.cart-head h3 { font-size: 16px; }
.cart-close, .modal-close { font-size: 28px; line-height: 1; padding: 0 4px; }

.cart-items { flex: 1; overflow-y: auto; padding: 0 var(--gutter); }
.cart-empty { padding: 30px 0; color: var(--ink-3); }
.cart-item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.cart-item-thumb img { width: 76px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--shade); }
.cart-item-name { font-weight: 700; }
.cart-item-variant { font-size: 12px; color: var(--ink-3); }
.cart-item-design { font-size: 12px; color: var(--red); font-weight: 700; margin-top: 2px; }
.cart-item-price { font-size: 13px; margin-top: 2px; }
.cart-item-controls { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 13px; }
.cart-item-remove { color: var(--ink-3); text-decoration: underline; }
.cart-item-remove:hover { color: var(--red); }

.qty-btn { width: 28px; height: 28px; border: 1px solid var(--rule); display: inline-grid; place-items: center; font-size: 15px; }
.qty-btn:hover { border-color: var(--ink); }

.cart-foot { padding: 18px var(--gutter) 22px; border-top: 1px solid var(--rule); background: var(--shade); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 14px; }
.cart-total-row strong { color: var(--red); font-size: 20px; }
.cart-note { font-size: 12px; color: var(--ink-3); margin-top: 12px; }

/* ---------- Product modal ---------- */

.product-modal { position: fixed; z-index: 90; inset: 0; margin: auto; width: min(980px, calc(100% - 32px)); height: min(700px, calc(100% - 32px)); background: #fff; overflow: hidden; }
.modal-close { position: absolute; top: 10px; right: 14px; z-index: 2; }

.modal-body { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: max-content; align-content: start; height: 100%; overflow-y: auto; }
.modal-gallery { grid-column: 1; grid-row: 1 / span 30; position: sticky; top: 0; height: min(700px, calc(100svh - 32px)); background: var(--shade); display: flex; flex-direction: column; }
.modal-main-image { flex: 1; min-height: 0; }
.modal-main-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbs { display: flex; gap: 6px; padding: 6px; background: #fff; }
.modal-thumb { width: 60px; border: 2px solid transparent; }
.modal-thumb.selected { border-color: var(--ink); }
.modal-thumb img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.modal-body > :not(.modal-gallery) { grid-column: 2; margin-left: var(--gutter); margin-right: var(--gutter); }
.modal-title { margin-top: 40px; font-size: 22px; text-transform: none; }
.modal-price { font-size: 22px; font-weight: 700; color: var(--red); margin-top: 6px; }
.modal-desc { color: var(--ink-2); margin-top: 14px; }
.modal-fabric { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.option-group { margin-top: 20px; }
.option-label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.option-label em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; }
.option-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.option-pill { min-width: 44px; padding: 9px 12px; border: 1px solid var(--rule); font-size: 13px; font-weight: 700; }
.option-pill:hover { border-color: var(--ink); }
.option-pill.selected { border-color: var(--ink); background: var(--ink); color: #fff; }

.swatch-pill { padding: 3px; border: 2px solid transparent; border-radius: 50%; }
.swatch-pill.selected { border-color: var(--ink); }
.swatch-lg { width: 22px; height: 22px; }

.customize-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; position: relative; background: var(--shade); padding: 12px; }
.customize-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.customize-box { flex: 0 0 18px; width: 18px; height: 18px; border: 2px solid var(--ink); background: #fff; margin-top: 1px; }
.customize-row input:checked + .customize-box { background: var(--red); border-color: var(--red); }
.customize-row input:focus-visible + .customize-box { outline: 2px solid var(--red); outline-offset: 2px; }
.customize-text strong { display: block; font-size: 13px; }
.customize-text small { font-size: 12px; color: var(--ink-3); }

.qty-stepper { display: inline-flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 700; }

#modalAddBtn { margin-top: 24px; margin-bottom: 30px; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .product-grid, .product-grid.grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-media { min-height: 300px; order: -1; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-gallery { grid-row: auto; position: static; height: auto; }
  .modal-main-image img { aspect-ratio: 4 / 5; height: auto; }
  .modal-body > :not(.modal-gallery) { grid-column: 1; }
  .modal-title { margin-top: 20px; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .brand-name { font-size: 16px; }
  .hero { min-height: 440px; }
  .hero-inner { padding: 40px var(--gutter); }
  .cats { grid-template-columns: 1fr; padding-top: 16px; gap: 10px; }
  .cat img { aspect-ratio: 16 / 9; }
  .product-grid, .product-grid.grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-grid.grid-4 .product-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .product-grid.grid-4 .product-bottom .btn { width: 100%; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .value-strip { grid-template-columns: 1fr; }
  .value-item { border-left: 0; border-top: 1px solid rgba(255,255,255,0.25); }
  .value-item:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

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

/* iOS Safari zooms into form controls under 16px */
@media (max-width: 720px) {
  .sort-select, select, input, textarea { font-size: 16px; }
}
