/*
Theme Name: Ekebo Interiör
Template: storefront
Description: Demo retailer theme for wc.hansforsman.se. A classic-interior shop where only the start page and Eldstäder work. The brand is invented.
Version: 1.0.3
Text Domain: ekebo
*/

:root {
  --ek-bg: #faf7f2;
  --ek-paper: #ffffff;
  --ek-ink: #1f1d1a;
  --ek-muted: #6b645b;
  --ek-line: #e4ddd2;
  --ek-bar: #4a2c2a;
  --ek-bar-ink: #f3e9e2;
  --ek-accent: #8a5a2b;
  --ek-tile-1: #6f5a46;
  --ek-tile-2: #3f4a44;
  --ek-tile-3: #7a4b3a;
  --ek-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ek-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ek-wide: 1400px;
}

body.ekebo {
  background: var(--ek-bg);
  color: var(--ek-ink);
  font-family: var(--ek-sans);
  font-size: 15px;
  line-height: 1.55;
}
body.ekebo a { color: inherit; text-decoration: none; }
body.ekebo a:hover { color: var(--ek-accent); }
body.ekebo h1, body.ekebo h2, body.ekebo h3 { font-family: var(--ek-serif); font-weight: 500; color: var(--ek-ink); letter-spacing: 0; }
.ek-wrap { max-width: var(--ek-wide); margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------ top bar */
.ek-topbar { background: var(--ek-bar); color: var(--ek-bar-ink); font-size: 13px; }
.ek-topbar .ek-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.ek-topbar a { color: var(--ek-bar-ink) !important; text-decoration: underline; text-underline-offset: 2px; }
.ek-topbar ul { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }

/* ------------------------------------------------------------------ header */
.ek-header { background: var(--ek-paper); border-bottom: 1px solid var(--ek-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .ek-header { top: 32px; }
.ek-header__main { display: grid; grid-template-columns: 260px 1fr auto; align-items: center; gap: 32px; padding-top: 18px; padding-bottom: 14px; }
.ek-logo { display: flex; align-items: center; gap: 12px; }
.ek-logo svg { width: 44px; height: 44px; flex: none; }
.ek-logo__word { font-family: var(--ek-serif); font-size: 30px; letter-spacing: 0.14em; line-height: 1; }
.ek-logo__sub { display: block; font-family: var(--ek-sans); font-size: 10px; letter-spacing: 0.32em; color: var(--ek-muted); margin-top: 4px; }
.ek-search { display: flex; align-items: center; border: 1px solid var(--ek-ink); height: 42px; padding: 0 14px; gap: 10px; background: var(--ek-paper); max-width: 560px; }
.ek-search input[type="search"] { border: 0; outline: 0; background: transparent; box-shadow: none; flex: 1; font-size: 14px; padding: 0; }
.ek-search svg { width: 18px; height: 18px; }
.ek-icons { display: flex; align-items: center; gap: 20px; font-size: 13px; }
.ek-icons svg { width: 22px; height: 22px; display: block; }
.ek-cart { position: relative; }
.ek-cart__count { position: absolute; top: -8px; right: -10px; background: var(--ek-bar); color: #fff; font-size: 11px; border-radius: 999px; min-width: 18px; height: 18px; display: grid; place-items: center; }

.ek-nav { border-top: 1px solid var(--ek-line); }
.ek-nav ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.ek-nav a { display: block; padding: 13px 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; border-bottom: 2px solid transparent; }
.ek-nav a.is-current, .ek-nav a:hover { border-bottom-color: var(--ek-ink); color: var(--ek-ink); }

/* ------------------------------------------------------------------ section titles */
.ek-title { display: flex; align-items: center; gap: 28px; margin: 64px 0 28px; }
.ek-title::before, .ek-title::after { content: ""; flex: 1; height: 1px; background: var(--ek-ink); opacity: 0.6; }
.ek-title h2 { margin: 0; font-size: 34px; }

/* ------------------------------------------------------------------ hero tiles */
.ek-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.ek-tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: block; background: var(--ek-tile-1); }
.ek-tile:nth-child(2) { background: var(--ek-tile-2); }
.ek-tile:nth-child(3) { background: var(--ek-tile-3); }
.ek-tile:nth-child(4) { background: #5b5e4c; }
.ek-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 8%; transition: transform .6s ease; }
.ek-tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(25,18,14,.55) 100%); }
.ek-tile:hover img { transform: scale(1.04); }
.ek-tile__pattern { position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 18px 18px; }
.ek-tile__label { position: absolute; left: 0; right: 0; bottom: 0; top: 0; display: grid; place-items: center; z-index: 2; color: #fff; font-family: var(--ek-serif); font-size: 34px; text-align: center; padding: 20px; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.ek-tile--photo .ek-tile__label { place-items: end center; padding-bottom: 34px; }
.ek-tile__kicker { display: block; font-family: var(--ek-sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; opacity: .9; }
.ek-tile:hover .ek-tile__label { color: #fff; }

/* ------------------------------------------------------------------ explore grid */
.ek-explore { display: grid; grid-template-columns: repeat(4, minmax(0, 220px)); justify-content: center; gap: 22px 48px; }
.ek-explore a { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.ek-explore a:hover span { text-decoration: underline; }
.ek-mono { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ek-line); background: var(--ek-paper); display: grid; place-items: center; font-family: var(--ek-serif); font-size: 20px; color: var(--ek-accent); flex: none; overflow: hidden; }
.ek-mono img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* ------------------------------------------------------------------ product cards */
.ek-rail { position: relative; }
.ek-rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ek-rail__track::-webkit-scrollbar { display: none; }
.ek-rail__btn { position: absolute; top: 34%; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ek-line); background: #fff; display: grid; place-items: center; cursor: pointer; z-index: 3; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.ek-rail__btn--prev { left: -18px; }
.ek-rail__btn--next { right: -18px; }
.ek-card { scroll-snap-align: start; display: block; }
.ek-card__img { aspect-ratio: 1; background: var(--ek-paper); display: grid; place-items: center; overflow: hidden; }
.ek-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.ek-card__sku { font-size: 11px; color: var(--ek-muted); margin-top: 10px; letter-spacing: .03em; }
.ek-card__name { font-size: 14px; font-weight: 600; margin: 3px 0 4px; line-height: 1.35; }
.ek-card__desc { font-size: 12.5px; color: var(--ek-muted); margin: 0 0 8px; }
.ek-card__price { font-size: 14px; font-weight: 600; }
.ek-card__price del { color: var(--ek-muted); font-weight: 400; }
.ek-card__price--ask { font-weight: 400; color: var(--ek-muted); font-size: 13px; }
.ek-btn { display: inline-block; padding: 12px 22px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: #f0ebe3; color: var(--ek-ink) !important; border: 0; }
.ek-btn--dark { background: var(--ek-ink); color: #fff !important; }
.ek-center { text-align: center; margin: 32px 0 0; }

/* ------------------------------------------------------------------ stories */
.ek-stories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ek-story__img { aspect-ratio: 4 / 3; background: var(--ek-paper); overflow: hidden; display: grid; place-items: center; }
.ek-story__img img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.ek-story__img--tone { background: var(--ek-tile-2); color: #fff; font-family: var(--ek-serif); font-size: 64px; }
.ek-story__tags { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ek-muted); margin: 14px 0 6px; }
.ek-story h3 { font-size: 22px; margin: 0 0 8px; line-height: 1.2; }
.ek-story p { font-size: 13.5px; color: var(--ek-muted); margin: 0 0 10px; }
.ek-story__more { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline !important; text-underline-offset: 3px; }

.ek-about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin: 80px auto 0; }
.ek-about__img { background: var(--ek-paper); aspect-ratio: 5 / 4; display: grid; place-items: center; }
.ek-about__img img { max-height: 88%; width: auto; }
.ek-about h2 { font-size: 40px; margin: 0 0 16px; }
.ek-about p { color: var(--ek-muted); font-size: 16px; }

/* ------------------------------------------------------------------ footer */
.ek-news { background: #efe8de; margin-top: 90px; padding: 56px 0; text-align: center; }
.ek-news h2 { font-size: 32px; margin: 0 0 8px; }
.ek-news p { color: var(--ek-muted); margin: 0 0 20px; }
.ek-news form { display: inline-flex; gap: 0; }
.ek-news input[type="email"] { width: 320px; border: 1px solid var(--ek-ink); background: #fff; padding: 12px 14px; box-shadow: none; }
.ek-news button { background: var(--ek-ink); color: #fff; border: 0; padding: 0 22px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ek-footer { background: var(--ek-bar); color: var(--ek-bar-ink); padding: 56px 0 28px; font-size: 14px; }
.ek-footer a { color: var(--ek-bar-ink) !important; }
.ek-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.ek-footer h4 { font-family: var(--ek-serif); font-size: 20px; font-weight: 500; margin: 0 0 12px; color: #fff; }
.ek-footer ul { list-style: none; margin: 0; padding: 0; }
.ek-footer li { margin: 0 0 6px; }
.ek-footer__base { border-top: 1px solid rgba(255,255,255,.18); margin-top: 40px; padding-top: 20px; font-size: 12px; opacity: .8; display: flex; justify-content: space-between; }

/* ------------------------------------------------------------------ category page */
.ek-crumbs { font-size: 13px; color: var(--ek-muted); padding: 18px 0 0; }
.ek-crumbs .woocommerce-breadcrumb { margin: 0; padding: 0; font-size: 13px; background: none; }
.ek-cathead { text-align: center; max-width: 780px; margin: 8px auto 0; }
.ek-cathead h1 { font-size: 46px; margin: 0 0 12px; }
.ek-cathead__desc { color: var(--ek-ink); font-size: 15px; }
.ek-cathead__desc.is-clamped { max-height: 3.2em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.ek-readmore { background: none; border: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0; color: var(--ek-ink); }
.ek-subcats { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; margin: 30px 0 10px; padding: 0; list-style: none; }
.ek-subcats a { display: flex; flex-direction: column; align-items: center; width: 108px; text-align: center; font-size: 13.5px; gap: 10px; }
.ek-subcats .ek-mono { width: 78px; height: 78px; font-size: 30px; }
.ek-subcats a.is-current .ek-mono { border-color: var(--ek-ink); }
.ek-subcats small { display: block; color: var(--ek-muted); font-size: 11.5px; }

.ek-catbody { display: grid; grid-template-columns: 230px 1fr; gap: 40px; margin-top: 36px; }
.ek-side h3 { font-family: var(--ek-sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ek-line); }
.ek-side ul { list-style: none; margin: 0 0 18px; padding: 0; }
.ek-side li a { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.ek-side li a.is-current { font-weight: 700; }
.ek-side li span { color: var(--ek-muted); font-size: 12.5px; }
.ek-side__back { display: inline-flex; gap: 8px; font-size: 14px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--ek-line); width: 100%; }
.ek-side__block { border-top: 1px solid var(--ek-line); padding: 14px 0; font-size: 13px; }
.ek-side__block strong { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }

.ek-toolbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--ek-line); margin-bottom: 22px; font-size: 13.5px; }
.ek-toolbar .woocommerce-result-count, .ek-toolbar .woocommerce-ordering { margin: 0 !important; float: none !important; }
.ek-toolbar select { border: 0; background: transparent; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; box-shadow: none; }

.ek-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 18px; margin: 0; padding: 0; list-style: none; }
.ek-empty { padding: 40px 0; color: var(--ek-muted); }
.ek-pagination { margin-top: 40px; text-align: center; }
.ek-pagination .page-numbers { display: inline-flex; gap: 6px; list-style: none; padding: 0; }
.ek-pagination a, .ek-pagination span { display: inline-block; min-width: 36px; padding: 8px 10px; border: 1px solid var(--ek-line); background: #fff; }
.ek-pagination .current { background: var(--ek-ink); color: #fff; border-color: var(--ek-ink); }

/* Storefront parts this theme replaces */
body.ekebo .site-header, body.ekebo .storefront-handheld-footer-bar, body.ekebo .site-footer { display: none; }
body.ekebo .site-content { padding: 0; }
body.ekebo .site-content > .col-full { max-width: none; padding: 0; margin: 0; }

@media (max-width: 1000px) {
  .ek-header__main { grid-template-columns: 1fr auto; }
  .ek-search { grid-column: 1 / -1; order: 3; max-width: none; }
  .ek-tiles, .ek-stories, .ek-grid { grid-template-columns: repeat(2, 1fr); }
  .ek-explore { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .ek-rail__track { grid-auto-columns: 46%; }
  .ek-catbody, .ek-about, .ek-footer__cols { grid-template-columns: 1fr; }
  .ek-side { display: none; }
  .ek-topbar ul:first-child li:not(:first-child) { display: none; }
}

/* 1.0.2: a room photo fills its tile; Storefront's breadcrumb wrapper sits flush. */
.ek-tile--photo img { object-fit: cover; padding: 0; background: none; }
.ek-crumbs .storefront-breadcrumb { margin: 0; padding: 0; }
.ek-crumbs .col-full { max-width: none; margin: 0; padding: 0; }
.ek-cathead__desc p { margin: 0 0 .8em; }
