/* BEKA Home Living — look & feel kept close to the old Shopify (Dawn) theme */
:root {
  --bg: #ffffff;
  --text: rgba(0, 0, 0, .78);
  --strong: #0f0f0f;
  --muted: rgba(0, 0, 0, .58);
  --line: rgba(0, 0, 0, .1);
  --soft: #f4f4f2;
  --card: #0f0f0f;
  --card-text: #ffffff;
  --accent: #0f0f0f;
  --wa: #1fa855;
  --sale: #0f0f0f;
  --radius: 12px;
  --btn-radius: 11px;
  --wrap: 1200px;
  --gap: clamp(16px, 2.5vw, 28px);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; letter-spacing: .02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--strong); font-weight: 400; line-height: 1.2; letter-spacing: .01em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 18px; font-weight: 500; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 750px) { .wrap { padding: 0 32px; } }
.section { margin: clamp(40px, 6vw, 72px) auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
.eyebrow { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
svg { width: 20px; height: 20px; flex: none; }

/* header */
.announce { background: var(--strong); color: #fff; text-align: center; font-size: 13px; letter-spacing: .1em; padding: 9px 16px; }
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-in { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; min-height: 72px; }
.logo { justify-self: center; text-decoration: none; font-size: 20px; color: var(--strong); }
.logo img { max-height: 56px; width: auto; }
.nav { display: none; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--strong); border-radius: 50%; cursor: pointer; }
.icon-btn:hover { background: var(--soft); }
.wa-head { color: var(--wa); }
.wa-head svg { width: 24px; height: 24px; }
@media (min-width: 990px) {
  .header-in { grid-template-columns: auto 1fr 44px; }
  .menu-btn { display: none; }
  .logo { justify-self: start; }
  .nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
  .nav a { text-decoration: none; color: var(--muted); padding: 6px 0; }
  .nav a:hover, .nav a[aria-current] { color: var(--strong); text-decoration: underline; text-underline-offset: 6px; }
}
.drawer { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.4); }
.drawer-panel { background: #fff; width: min(360px, 88vw); height: 100%; padding: 16px 24px; overflow: auto; }
.drawer nav { display: grid; margin-top: 12px; }
.drawer nav a { text-decoration: none; font-size: 18px; color: var(--strong); padding: 14px 0; border-bottom: 1px solid var(--line); }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 28px; border-radius: var(--btn-radius); background: var(--accent); color: #fff; text-decoration: none; font-size: 15px; letter-spacing: .06em; border: 1px solid var(--accent); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.btn-ghost { background: transparent; color: var(--strong); }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-block { width: 100%; }

/* product cards (dark, like the old theme) */
.card { position: relative; display: flex; flex-direction: column; background: var(--card); color: var(--card-text); border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 1; background: #e9e9e7; overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .6s; }
.card-media .alt { opacity: 0; }
@media (hover: hover) { .card:hover .has-alt .alt { opacity: 1; } .card:hover .card-media img { transform: scale(1.03); } }
.card-body { padding: 14px 16px 18px; text-align: center; }
.card-body h3 { color: #fff; font-size: 16px; margin: 0 0 4px; }
.card .price-old { color: rgba(255,255,255,.55); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--sale); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 40px; letter-spacing: .04em; }
.card .badge { background: #fff; color: var(--strong); }
.badge-out { background: #7a7a7a !important; color: #fff !important; }
.price { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px; }
.price-old { font-size: .88em; color: var(--muted); }
.price.big { justify-content: flex-start; font-size: 22px; color: var(--strong); margin: 4px 0 20px; }
.price.big .badge { position: static; font-size: 12px; align-self: center; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 750px) { .grid { grid-template-columns: repeat(3, 1fr); gap: var(--gap); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 420px) { .card-body { padding: 10px 8px 14px; } .card-body h3 { font-size: 14px; } .card .price { font-size: 13px; } }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 20px; font-size: 14px; }
.toolbar select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.coll-desc { max-width: 720px; }

/* horizontal rows on the homepage */
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.row-head p { max-width: 640px; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px; scrollbar-width: thin; }
.row-scroll > * { scroll-snap-align: start; }
@media (min-width: 600px) { .row-scroll { grid-auto-columns: 42%; } }
@media (min-width: 990px) { .row-scroll { grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); gap: var(--gap); } }

/* content blocks */
.split { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 750px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.flip .split-media { order: 2; } }
.split-media img { width: 100%; border-radius: var(--radius); }
.home-hero h1 { font-size: clamp(32px, 4.5vw, 52px); }
.rte ul { padding-left: 1.2em; }
.rte li { margin: .25em 0; }
.title-block { text-align: center; max-width: 860px; }
.title-block .rte { text-align: center; }
.title-block ul { display: inline-block; text-align: left; }
.title-block + .section .grid-blocks { margin-top: -24px; }
.full img { width: 100%; max-width: 960px; margin: 0 auto; border-radius: var(--radius); }
.title-block:has(> .rte:empty) { margin-top: 28px; margin-bottom: 20px; }
.title-block:has(> .rte:empty) + .full { margin-top: 0; }
.hero-block { position: relative; min-height: 60vh; display: grid; align-items: end; color: #fff; }
.hero-block > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-block::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0,0,0,.55)); }
.hero-text { position: relative; z-index: 1; padding-bottom: 48px; width: 100%; }
.hero-text h1, .hero-text .eyebrow { color: #fff; }
.grid-blocks { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-blocks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 990px) { .grid-blocks.n3 { grid-template-columns: repeat(3, 1fr); } .grid-blocks.n4 { grid-template-columns: repeat(4, 1fr); } }
.grid-blocks.gallery { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 990px) { .grid-blocks.gallery { grid-template-columns: repeat(3, 1fr); } }
.tile { margin: 0; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery .tile img { aspect-ratio: 1; }
.tile figcaption { padding: 14px 2px 0; }
.tile h3 { margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 15px; }
[data-zoom] { cursor: zoom-in; }

/* collections list */
.coll-grid { display: grid; gap: var(--gap); }
@media (min-width: 750px) { .coll-grid { grid-template-columns: repeat(3, 1fr); } }
.coll-card { text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.coll-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.coll-card div { padding: 16px 18px 20px; }
.coll-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* product page */
.product { display: grid; gap: 28px; margin-top: 24px; margin-bottom: 56px; }
.product > *, .split > *, .row-head > * { min-width: 0; }
@media (min-width: 990px) { .product { grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; } .info { position: sticky; top: 96px; } }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); background: #eee; scrollbar-width: none; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img { flex: 0 0 100%; width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.thumbs button { flex: 0 0 72px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: .7; }
.thumbs button[aria-current] { border-color: var(--strong); opacity: 1; }
.thumbs img { aspect-ratio: 1; object-fit: cover; }
.info h1 { margin-bottom: 8px; }
.options fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.options legend { font-size: 14px; margin-bottom: 8px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 8px 16px; border: 1px solid rgba(0,0,0,.25); border-radius: 40px; font-size: 14px; cursor: pointer; transition: .15s; }
.pills input:checked + span { background: var(--strong); color: #fff; border-color: var(--strong); }
.pills input:focus-visible + span { outline: 2px solid var(--strong); outline-offset: 2px; }
.options .btn { margin-top: 10px; }
.desc { margin-top: 24px; }
.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; padding: 16px 0; font-weight: 500; color: var(--strong); list-style: none; display: flex; justify-content: space-between; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 20px; line-height: 1; }
.acc[open] summary::after { content: "–"; }
.acc-body { padding-bottom: 18px; font-size: 15px; }
.acc-body h4 { font-size: 15px; font-weight: 600; margin: 8px 0; }
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--strong); }
.cta { background: var(--soft); border-radius: var(--radius); padding: 40px 24px; }

/* contact */
.contact { max-width: 760px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list.big { margin-top: 32px; font-size: 17px; }

/* footer */
.footer { background: var(--soft); margin-top: 72px; padding: 48px 0 24px; font-size: 15px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 750px) { .footer-grid { grid-template-columns: 2fr 1fr 1.3fr; } }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin: 6px 0; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-brand { font-size: 20px; color: var(--strong); margin-bottom: 8px; }
.footer-title { font-weight: 600; color: var(--strong); margin-bottom: 10px; }
.social { display: flex; gap: 6px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; }
.copyright { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.lb-close { position: absolute; top: 12px; right: 12px; color: #fff; }
.lb-close:hover { background: rgba(255,255,255,.12); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 34px; width: 48px; height: 64px; border-radius: 8px; cursor: pointer; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }

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

/* ---- closer to the old Shopify look ---- */
/* dark header with white logo, menu under the logo on desktop */
.header { background: #0f0f0f; border-bottom: 0; backdrop-filter: none; }
.header .icon-btn, .header .logo { color: #fff; }
.header .icon-btn:hover { background: rgba(255,255,255,.1); }
.header .wa-head { color: #fff; }
.drawer-panel .icon-btn { color: var(--strong); }
@media (min-width: 990px) {
  .header-in { grid-template-columns: 1fr 44px; grid-template-areas: "logo wa" "nav nav"; row-gap: 4px; padding-top: 14px; padding-bottom: 10px; }
  .header-in .logo { grid-area: logo; }
  .header-in .nav { grid-area: nav; font-size: 13px; gap: 4px 26px; }
  .header-in .wa-head { grid-area: wa; }
  .nav a { color: rgba(255,255,255,.75); }
  .nav a:hover, .nav a[aria-current] { color: #fff; }
}

/* homepage hero: photo on the right, dark box overlapping on the left */
.home-hero { position: relative; display: grid; }
.hero-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.hero-box { background: #0f0f0f; color: rgba(255,255,255,.8); border-radius: var(--radius); padding: 28px 24px; margin: -48px 16px 0; position: relative; z-index: 1; }
.hero-box h1 { color: #fff; font-size: clamp(26px, 3vw, 40px); }
.btn-light { background: #fff; color: #0f0f0f; border-color: #fff; }
@media (min-width: 750px) {
  .home-hero { grid-template-columns: 1fr 1fr 1fr; align-items: center; }
  .hero-media { grid-column: 2 / 4; grid-row: 1; }
  .hero-box { grid-column: 1 / 2; grid-row: 1; margin: 0 -40px 0 0; padding: 40px 36px; }
}

/* product rows on the homepage: grid like the old theme */
.grid-home { margin-top: 24px; }
@media (min-width: 750px) { .grid-home { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid-home { grid-template-columns: repeat(3, 1fr); } }
.card .badge { background: #0f0f0f; color: #fff; }

/* collections: black band with white-label cards */
.coll-section { background: #0f0f0f; padding: clamp(40px, 6vw, 72px) 0; margin-top: clamp(40px, 6vw, 72px); }
.coll-section h2 { color: #fff; }
.coll-section .coll-card { background: #fff; }
.coll-section .coll-card div { text-align: center; }
.coll-section + .footer, .home .footer { margin-top: 0; }
.coll-section .coll-card p { display: none; }

/* phone: one product / image per row */
@media (max-width: 749px) {
  .grid, .grid-home, .grid-blocks, .grid-blocks.gallery { grid-template-columns: 1fr; gap: 16px; }
  .card-body { padding: 16px 12px 20px; }
  .card-body h3 { font-size: 16px; }
  .card .price { font-size: 15px; }
}

/* homepage sliders: 3 products visible on computer, 1 on phone; swipe or arrows for the rest */
.slider { position: relative; margin-top: 24px; }
.slider .row-scroll { grid-auto-columns: 86%; gap: 14px; scrollbar-width: none; }
.slider .row-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 750px) { .slider .row-scroll { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); gap: var(--gap); } }
.slide-btn { position: absolute; top: 40%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #0f0f0f; font-size: 28px; line-height: 1; box-shadow: 0 2px 10px rgba(0,0,0,.25); cursor: pointer; display: grid; place-items: center; transition: opacity .2s; }
.slide-btn.prev { left: -8px; } .slide-btn.next { right: -8px; }
.slide-btn:disabled { opacity: 0; pointer-events: none; }
@media (min-width: 1100px) { .slide-btn.prev { left: -22px; } .slide-btn.next { right: -22px; } }
