/* HjoBok webshop – delad stilmall (shop.php + bok.php) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --dark: #1f1611; --dark-mid: #2a201a; --dark-soft: #3d2c20;
    --coffee: #4a3426; --leather: #6b4a35;
    --gold: #b8893f; --gold-hover: #a3762e; --gold-light: #d4a866;
    --cream: #f4ecdf; --warm-white: #faf5ec; --paper: #f9f2e3;
    --text: #2e231a; --text-mid: #6b5a48; --text-light: #9a8a76;
    --border: #e6dcc8; --radius: 3px;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif; color: var(--text);
    background: var(--warm-white); line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ─── Announcement ─── */
.announcement {
    background: var(--dark); color: rgba(255,255,255,0.65);
    text-align: center; padding: 0.55rem 1rem; font-size: 0.8rem; letter-spacing: 0.5px;
}
.announcement a { color: var(--gold-light); text-decoration: none; }

/* ─── Nav ─── */
.nav-wrap { background: var(--dark-mid); position: sticky; top: 0; z-index: 200; backdrop-filter: blur(12px); }
nav { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; height: 64px; }
.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; color: #fff; text-decoration: none; letter-spacing: 0.04em; }
.logo-hjo { color: var(--gold-light); }
.logo-bok { color: #f4ecdf; font-style: italic; font-weight: 400; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.3px; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.cart-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; background: var(--gold); color: var(--dark);
    border: none; padding: 0.5rem 1.1rem; font-weight: 600; font-size: 0.82rem; cursor: pointer;
    border-radius: var(--radius); font-family: inherit; transition: background 0.2s;
}
.cart-toggle:hover { background: var(--gold-hover); }
.cart-toggle .count {
    background: var(--dark); color: var(--gold-light); border-radius: 999px;
    min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.72rem; padding: 0 0.35rem;
}

/* ─── Megameny ─── */
.menu { display: flex; gap: 0.35rem; align-items: center; }
.menu-item { position: relative; }
.menu-trigger {
    display: inline-flex; align-items: center; gap: 0.4rem; background: transparent; border: none;
    color: rgba(255,255,255,0.78); font-family: inherit; font-size: 0.85rem; letter-spacing: 0.3px;
    padding: 0.55rem 0.9rem; cursor: pointer; border-radius: var(--radius); transition: color 0.2s, background 0.2s;
}
.menu-trigger .chev { transition: transform 0.25s; opacity: 0.6; }
.menu-item:hover .menu-trigger, .menu-trigger:focus-visible { color: #fff; background: rgba(255,255,255,0.06); }
.menu-item:hover .menu-trigger .chev { transform: rotate(180deg); }
.mega {
    position: absolute; top: calc(100% + 0.4rem); left: 50%; transform: translateX(-50%) translateY(8px);
    background: linear-gradient(165deg, var(--dark-mid), var(--dark)); border: 1px solid rgba(212,168,102,0.18);
    border-radius: 6px; box-shadow: 0 24px 60px -18px rgba(0,0,0,0.7); padding: 1.6rem 1.8rem;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 1.4rem 2.2rem;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
    z-index: 250;
}
.menu-item:hover .mega, .menu-item:focus-within .mega {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.mega::before {
    content: ''; position: absolute; bottom: 100%; left: 0; right: 0; height: 0.8rem;
}
.mega-col-head {
    font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-style: italic; color: var(--gold-light);
    margin-bottom: 0.65rem; padding-bottom: 0.4rem; border-bottom: 1px solid rgba(212,168,102,0.16); white-space: nowrap;
}
.mega a {
    display: block; color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.82rem;
    padding: 0.32rem 0; white-space: nowrap; transition: color 0.18s, padding-left 0.18s;
}
.mega a:hover { color: var(--gold-light); padding-left: 0.3rem; }

/* ─── Mobilmeny (hamburgare) ─── */
.nav-toggle { display: none; background: transparent; border: none; color: #fff; cursor: pointer; padding: 0.4rem; }
.mobile-menu { display: none; }

/* ─── Shop header ─── */
.shop-hero {
    background:
        radial-gradient(circle at 18% 20%, rgba(184,137,63,0.10), transparent 50%),
        radial-gradient(circle at 82% 90%, rgba(107,74,53,0.20), transparent 55%),
        linear-gradient(160deg, var(--dark) 0%, var(--coffee) 70%, var(--dark-soft) 100%);
    color: #fff; text-align: center; padding: 4.5rem 2rem 3.5rem; position: relative; overflow: hidden;
}
.shop-hero::after {
    content: ''; position: absolute; inset: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 6px);
    pointer-events: none;
}
.shop-hero .badge {
    display: inline-block; background: rgba(212,168,102,0.12); color: var(--gold-light);
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2.5px;
    padding: 0.4rem 1.1rem; border: 1px solid rgba(212,168,102,0.25); margin-bottom: 1.4rem; position: relative; z-index: 1;
}
.shop-hero h1 {
    font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 300; line-height: 1.15; letter-spacing: 0.03em; position: relative; z-index: 1;
}
.shop-hero h1 em { font-style: italic; color: var(--gold-light); font-weight: 300; }
.shop-hero p { color: rgba(255,255,255,0.6); margin: 1rem auto 0; max-width: 460px; font-weight: 300; position: relative; z-index: 1; }

/* ─── Filter bar ─── */
.filter-wrap { background: var(--cream); border-bottom: 1px solid var(--border); position: sticky; top: 64px; z-index: 100; }
.filters { max-width: 1100px; margin: 0 auto; padding: 1rem 2rem; display: flex; flex-direction: column; gap: 0.85rem; }

/* Rad 1: aktiv kategori + sök */
.filter-top { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.filter-label { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.25rem; color: var(--coffee); }
.chip-clear {
    display: inline-flex; align-items: center; gap: 0.45rem; background: var(--coffee); color: #fff;
    text-decoration: none; padding: 0.45rem 0.9rem; border-radius: var(--radius); font-size: 0.82rem; font-weight: 500;
    transition: background 0.2s;
}
.chip-clear svg { opacity: 0.7; }
.chip-clear:hover { background: var(--gold-hover); }
.chip-clear:hover svg { opacity: 1; }
.filters .search { margin-left: auto; position: relative; display: flex; align-items: center; }
.filters .search input {
    border: 1px solid var(--border); background: #fff; border-radius: var(--radius);
    padding: 0.55rem 1rem 0.55rem 2.2rem; font-family: inherit; font-size: 0.85rem; color: var(--text);
    outline: none; width: 300px; transition: border-color 0.2s, box-shadow 0.2s;
}
.filters .search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,137,63,0.12); }
.filters .search svg { position: absolute; left: 0.75rem; color: var(--text-light); pointer-events: none; }

/* Rad 2: filterkontroller med etiketter */
.filter-controls {
    display: flex; align-items: flex-end; gap: 0.7rem; flex-wrap: wrap;
    padding-top: 0.85rem; border-top: 1px solid var(--border);
}
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field-label {
    font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
    font-weight: 600; color: var(--text-light); padding-left: 0.1rem;
}
.field-sort { margin-left: auto; }

.sort-wrap { display: inline-flex; }
.sort-wrap select {
    border: 1px solid var(--border); background: #fff; border-radius: var(--radius); cursor: pointer;
    padding: 0.5rem 2.2rem 0.5rem 0.85rem; font-family: inherit; font-size: 0.82rem; color: var(--text-mid);
    outline: none; appearance: none; transition: border-color 0.2s, box-shadow 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239a8a76' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.7rem center;
}
.sort-wrap select:hover { border-color: var(--gold-light); }
.sort-wrap select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,137,63,0.12); }

/* Prisintervall */
.price-range { display: inline-flex; align-items: center; gap: 0.3rem; }
.price-range input {
    width: 70px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius);
    padding: 0.5rem 0.6rem; font-family: inherit; font-size: 0.82rem; color: var(--text); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s; -moz-appearance: textfield;
}
.price-range input::-webkit-outer-spin-button,
.price-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-range input:hover { border-color: var(--gold-light); }
.price-range input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,137,63,0.12); }
.price-range input::placeholder { color: var(--text-light); }
.price-dash { color: var(--text-light); }
.price-go {
    border: 1px solid var(--coffee); background: var(--coffee); border-radius: var(--radius); cursor: pointer;
    padding: 0.5rem 0.9rem; font-family: inherit; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em; color: #fff;
    transition: background 0.2s, border-color 0.2s;
}
.price-go:hover { background: var(--gold-hover); border-color: var(--gold-hover); }

/* ─── Resultatmeta & paginering ─── */
.result-meta { max-width: 1100px; margin: 0 auto 1.6rem; font-size: 0.85rem; color: var(--text-mid); }
.result-meta strong { color: var(--coffee); font-weight: 600; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin-top: 3.5rem; }
.pagination a { text-decoration: none; }
.pg-num, .pg-arrow {
    display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px;
    padding: 0 0.7rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
    color: var(--text-mid); font-size: 0.85rem; font-weight: 500; transition: all 0.18s;
}
.pg-num:hover, .pg-arrow:hover { border-color: var(--gold); color: var(--coffee); }
.pg-num.active { background: var(--coffee); border-color: var(--coffee); color: #fff; }
.pg-gap { color: var(--text-light); padding: 0 0.3rem; }

/* ─── Grid ─── */
.shop-main { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 4rem; }
.books-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.book-card { text-align: center; display: flex; flex-direction: column; }
.book-cover-link { display: block; text-decoration: none; color: inherit; cursor: pointer; transition: transform 0.3s; }
.book-card:hover .book-cover-link { transform: translateY(-6px); }
.book-cover {
    width: 100%; aspect-ratio: 2/3; margin-bottom: 1rem; border-radius: 2px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.15), 0 12px 28px rgba(74,52,38,0.18);
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 1.2rem;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.book-cover::after { content: ''; position: absolute; top: 0; bottom: 0; left: 8%; width: 1px; background: rgba(0,0,0,0.15); z-index: 1; }
/* Konstprodukter: kvadratiska produktfoton på vit botten, visa HELA bilden */
.book-cover.is-art { aspect-ratio: 1; background: #fff; padding: 0.7rem; box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 10px 24px rgba(74,52,38,0.12); }
.book-cover.is-art img { object-fit: contain; position: static; inset: auto; }
.book-cover.is-art::after { display: none; }
.book-cover .ph-title {
    font-family: 'Cormorant Garamond', serif; color: rgba(255,255,255,0.92); font-size: 1.05rem;
    line-height: 1.3; font-style: italic; text-align: center; letter-spacing: 0.02em; position: relative; z-index: 1;
}
.badge-sold {
    position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; background: rgba(31,22,17,0.85);
    color: var(--gold-light); font-size: 0.62rem; letter-spacing: 1px; text-transform: uppercase;
    padding: 0.25rem 0.55rem; border-radius: 2px; font-weight: 600;
}
.book-meta-cat { font-size: 0.66rem; color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.35rem; font-weight: 600; }
.book-meta-title { font-family: 'Cormorant Garamond', serif; font-size: 1.08rem; color: var(--text); margin-bottom: 0.15rem; font-weight: 500; line-height: 1.3; }
.book-meta-title a { text-decoration: none; color: inherit; transition: color 0.18s; }
.book-meta-title a:hover { color: var(--gold-hover); }
.book-meta-author { font-size: 0.76rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 0.6rem; }
.book-price { font-size: 0.98rem; color: var(--gold); font-weight: 600; margin-bottom: 0.8rem; }
.add-btn {
    margin-top: auto; background: transparent; border: 1px solid var(--coffee); color: var(--coffee);
    padding: 0.6rem 0.8rem; border-radius: var(--radius); font-family: inherit; font-weight: 600;
    font-size: 0.82rem; cursor: pointer; transition: all 0.2s; letter-spacing: 0.3px;
}
.add-btn:hover { background: var(--coffee); color: #fff; }
.add-btn:disabled { border-color: var(--border); color: var(--text-light); cursor: not-allowed; background: transparent; }

.no-results, .empty-state { grid-column: 1 / -1; text-align: center; padding: 4rem 1rem; color: var(--text-mid); }
.empty-state h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--coffee); font-weight: 400; margin-bottom: 0.6rem; }
.empty-state a { color: var(--gold); }

/* ─── Produktsida (bok.php) ─── */
.breadcrumb { max-width: 1100px; margin: 0 auto; padding: 1.4rem 2rem 0; font-size: 0.8rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-mid); text-decoration: none; transition: color 0.18s; }
.breadcrumb a:hover { color: var(--gold-hover); }
.breadcrumb span { color: var(--text); }
.product { max-width: 1100px; margin: 0 auto; padding: 2rem 2rem 4rem; display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 3.5rem; align-items: start; }
.product-cover-wrap { position: sticky; top: 90px; }
.product-cover {
    width: 100%; aspect-ratio: 2/3; border-radius: 3px; overflow: hidden; position: relative;
    box-shadow: 0 2px 0 rgba(0,0,0,0.15), 0 24px 50px rgba(74,52,38,0.28);
    display: flex; align-items: center; justify-content: center; padding: 1.6rem; background: var(--dark-mid);
}
.product-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.product-cover::after { content: ''; position: absolute; top: 0; bottom: 0; left: 7%; width: 1px; background: rgba(0,0,0,0.15); z-index: 1; }
/* Konstprodukter: visa hela produktfotot på vit botten */
.product-cover.is-art { aspect-ratio: 1; background: #fff; padding: 1.4rem; box-shadow: 0 2px 0 rgba(0,0,0,0.06), 0 20px 44px rgba(74,52,38,0.16); }
.product-cover.is-art img { object-fit: contain; position: static; inset: auto; }
.product-cover.is-art::after { display: none; }
.product-cover .ph-title {
    font-family: 'Cormorant Garamond', serif; color: rgba(255,255,255,0.92); font-size: 1.5rem;
    line-height: 1.3; font-style: italic; text-align: center; position: relative; z-index: 1;
}
.product-info .p-cat { font-size: 0.72rem; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-bottom: 0.7rem; }
.product-info h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 400; line-height: 1.15; color: var(--text); margin-bottom: 0.6rem; }
.product-info .p-author { font-size: 0.95rem; color: var(--text-mid); margin-bottom: 1.6rem; }
.product-info .p-author a { color: var(--coffee); text-decoration: none; border-bottom: 1px solid var(--border); }
.product-info .p-author a:hover { color: var(--gold-hover); }
.product-info .p-price { font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--coffee); font-weight: 500; margin-bottom: 0.4rem; }
.product-info .p-stock { font-size: 0.82rem; margin-bottom: 1.6rem; display: inline-flex; align-items: center; gap: 0.45rem; }
.product-info .p-stock.in { color: #4a7a3a; }
.product-info .p-stock.order { color: var(--text-mid); }
.product-info .p-stock .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.p-actions { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 2.2rem; flex-wrap: wrap; }
.p-add {
    background: var(--gold); color: var(--dark); border: none; padding: 0.95rem 2rem; border-radius: var(--radius);
    font-family: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; letter-spacing: 0.4px; transition: background 0.2s;
}
.p-add:disabled { background: var(--border); color: var(--text-light); cursor: not-allowed; }
.p-back { color: var(--text-mid); text-decoration: none; font-size: 0.85rem; }
.p-back:hover { color: var(--gold-hover); }

/* ── Färgvarianter (bildminiatyrer + sök, ProMarker-stil) ── */
.p-variants { margin: 0 0 1.8rem; }
.p-variants-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.7rem; }
.p-variants-head .vlabel { font-size: 0.72rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-light); }
.p-variants-head .vselected { font-size: 0.9rem; color: var(--text); font-weight: 500; text-align: right; }
.v-search { position: relative; display: flex; align-items: center; margin-bottom: 0.8rem; }
.v-search svg { position: absolute; left: 0.7rem; color: var(--text-light); pointer-events: none; }
.v-search input {
    width: 100%; padding: 0.6rem 2.4rem 0.6rem 2.1rem; border: 1px solid var(--border); border-radius: var(--radius);
    font-family: inherit; font-size: 0.85rem; color: var(--text); background: #fff; outline: none; transition: border-color 0.15s;
}
.v-search input:focus { border-color: var(--gold); }
.v-search .v-count {
    position: absolute; right: 0.6rem; font-size: 0.7rem; color: var(--text-light); background: var(--paper);
    border-radius: 999px; padding: 0.1rem 0.5rem; min-width: 1.5rem; text-align: center;
}
.thumb-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px;
    max-height: 340px; overflow-y: auto; padding: 2px; margin: 0 -2px;
}
.vthumb {
    position: relative; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 8px; padding: 0;
    background: #fff; cursor: pointer; overflow: hidden; transition: border-color 0.12s, transform 0.12s, box-shadow 0.12s;
}
.vthumb img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.vthumb:hover { transform: translateY(-1px); border-color: var(--gold-light); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.vthumb.selected { border-color: var(--coffee); box-shadow: 0 0 0 2px var(--coffee); }
.vthumb.sold { opacity: 0.5; }
.vthumb.sold::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(0,0,0,0.06) 6px 7px); }
.vthumb-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 0.8rem; color: var(--text-light); }
.vthumb-dot { position: absolute; bottom: 3px; right: 3px; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); }
.v-noresult { font-size: 0.82rem; color: var(--text-light); padding: 0.8rem 0; }
.p-sku { margin-top: 0.7rem; font-size: 0.75rem; color: var(--text-light); min-height: 1em; }

.p-specs { border-top: 1px solid var(--border); margin-bottom: 2rem; }
.p-specs .row { display: flex; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.p-specs .row .k { width: 140px; color: var(--text-light); flex-shrink: 0; }
.p-specs .row .v { color: var(--text); }
.p-desc { font-size: 0.92rem; color: var(--text-mid); line-height: 1.8; }
.p-desc h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--coffee); font-weight: 400; margin-bottom: 0.8rem; }
.p-desc p { margin-bottom: 0.9rem; }
.related { max-width: 1100px; margin: 0 auto; padding: 1rem 2rem 4rem; }
.related h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--coffee); font-weight: 400; margin-bottom: 1.6rem; text-align: center; }

/* ─── Cart drawer ─── */
.overlay { position: fixed; inset: 0; background: rgba(31,22,17,0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 300; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
    position: fixed; top: 0; right: 0; width: 400px; max-width: 92vw; height: 100%;
    background: var(--warm-white); box-shadow: -8px 0 40px rgba(31,22,17,0.25);
    transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 310; display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { background: var(--dark-mid); color: #fff; padding: 1.3rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.4rem; letter-spacing: 0.02em; }
.drawer-head button { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.5rem; cursor: pointer; line-height: 1; transition: color 0.2s; }
.drawer-head button:hover { color: #fff; }
.drawer-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-row { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cart-row .thumb { width: 48px; height: 66px; border-radius: 2px; flex-shrink: 0; background-size: cover; background-position: center; box-shadow: 0 2px 8px rgba(74,52,38,0.2); }
.cart-row .info { flex: 1; min-width: 0; }
.cart-row .info .t { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--text); line-height: 1.25; margin-bottom: 0.2rem; }
.cart-row .info .v { font-size: 0.74rem; color: var(--text-light); margin-bottom: 0.25rem; }
.cart-row .info .p { font-size: 0.82rem; color: var(--gold); font-weight: 600; }
.cart-row .qty { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }
.cart-row .qty button { width: 24px; height: 24px; border: 1px solid var(--border); background: #fff; border-radius: 3px; cursor: pointer; color: var(--coffee); font-size: 0.9rem; line-height: 1; transition: all 0.15s; }
.cart-row .qty button:hover { border-color: var(--gold); background: var(--cream); }
.cart-row .qty span { font-size: 0.85rem; min-width: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-row .remove { margin-left: auto; align-self: flex-start; background: none; border: none; color: var(--text-light); cursor: pointer; font-size: 0.78rem; text-decoration: underline; }
.cart-row .remove:hover { color: var(--coffee); }
.cart-empty { text-align: center; color: var(--text-light); padding: 3rem 1rem; font-weight: 300; }
.drawer-foot { padding: 1.3rem 1.5rem; border-top: 1px solid var(--border); background: var(--cream); }
.sum-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-mid); margin-bottom: 0.5rem; }
.sum-row.total { font-size: 1.05rem; color: var(--text); font-weight: 600; margin: 0.8rem 0 1rem; padding-top: 0.8rem; border-top: 1px solid var(--border); }
.sum-row.total .amt { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--coffee); }
.checkout-btn {
    width: 100%; background: var(--gold); color: var(--dark); border: none; padding: 0.95rem;
    border-radius: var(--radius); font-family: inherit; font-weight: 600; font-size: 0.92rem;
    cursor: pointer; letter-spacing: 0.4px; transition: background 0.2s;
}
.checkout-btn:hover { background: var(--gold-hover); }
.checkout-btn:disabled { background: var(--border); color: var(--text-light); cursor: not-allowed; }
.drawer-foot .note { text-align: center; font-size: 0.72rem; color: var(--text-light); margin-top: 0.7rem; }

/* ─── Toast ─── */
.toast {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(120%);
    background: var(--dark); color: #fff; padding: 0.85rem 1.4rem; border-radius: var(--radius);
    font-size: 0.85rem; box-shadow: 0 10px 30px rgba(0,0,0,0.3); z-index: 400; transition: transform 0.3s; display: flex; align-items: center; gap: 0.6rem;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { color: var(--gold-light); }

/* ─── Footer ─── */
/* ─── Info-/juridiksidor (sida.php) ─── */
.info-page { max-width: 1000px; margin: 0 auto; padding: 2.5rem 2rem 4rem; display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
.info-tabs { display: flex; flex-direction: column; gap: 0.2rem; position: sticky; top: 90px; }
.info-tabs a { display: block; padding: 0.6rem 0.9rem; border-radius: var(--radius); color: var(--text-mid); text-decoration: none; font-size: 0.9rem; border-left: 2px solid transparent; transition: background 0.18s, color 0.18s, border-color 0.18s; }
.info-tabs a:hover { background: var(--cream); color: var(--coffee); }
.info-tabs a.active { background: var(--cream); color: var(--coffee); border-left-color: var(--gold); font-weight: 500; }
.info-content { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem 2.8rem; }
.info-head { border-bottom: 1px solid var(--border); padding-bottom: 1.2rem; margin-bottom: 1.6rem; }
.info-head h1 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 2.1rem; color: var(--coffee); margin: 0; }
.info-updated { font-size: 0.8rem; color: var(--text-light); margin: 0.4rem 0 0; }
.info-content h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.35rem; color: var(--coffee); margin: 1.8rem 0 0.6rem; }
.info-content p { color: var(--text-mid); line-height: 1.7; margin: 0 0 0.9rem; }
.info-content ul { color: var(--text-mid); line-height: 1.7; margin: 0 0 0.9rem; padding-left: 1.3rem; }
.info-content li { margin-bottom: 0.35rem; }
.info-content a { color: var(--gold-hover); text-decoration: underline; text-underline-offset: 2px; }
.info-content a:hover { color: var(--coffee); }
.info-facts { list-style: none; padding-left: 0 !important; }
.info-facts li { padding: 0.35rem 0; border-bottom: 1px dashed var(--border); }
.info-facts li:last-child { border-bottom: none; }

footer { background: var(--dark); color: rgba(255,255,255,0.55); padding: 3.5rem 2rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.footer-brand .logo { font-size: 1.4rem; display: inline-block; margin-bottom: 0.7rem; }
.footer-brand p { color: rgba(255,255,255,0.4); font-size: 0.85rem; max-width: 280px; }
.footer-col h4 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.05rem; color: var(--gold-light); margin-bottom: 0.9rem; letter-spacing: 0.3px; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.85rem; padding: 0.25rem 0; transition: color 0.18s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { max-width: 1100px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .books-grid { grid-template-columns: repeat(2, 1fr); }
    .product { grid-template-columns: 1fr; gap: 2rem; }
    .product-cover-wrap { position: static; max-width: 280px; margin: 0 auto; }
    .info-page { grid-template-columns: 1fr; gap: 1.5rem; }
    .info-tabs { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
    .info-tabs a { border-left: none; border: 1px solid var(--border); }
    .info-tabs a.active { border-color: var(--gold); }
    .info-content { padding: 1.8rem 1.4rem; }
}
@media (max-width: 860px) {
    .menu { display: none; }
    .nav-toggle { display: inline-flex; }
    .mobile-menu.open { display: block; }
    .mobile-menu {
        background: var(--dark); border-top: 1px solid rgba(212,168,102,0.15);
        max-height: 70vh; overflow-y: auto; padding: 0.5rem 0 1rem;
    }
    .mobile-menu .m-section > summary {
        list-style: none; cursor: pointer; color: #fff; font-family: 'Cormorant Garamond', serif;
        font-size: 1.15rem; padding: 0.8rem 1.5rem; display: flex; justify-content: space-between; align-items: center;
    }
    .mobile-menu .m-section > summary::-webkit-details-marker { display: none; }
    .mobile-menu .m-section[open] > summary { color: var(--gold-light); }
    .mobile-menu .m-head { color: var(--gold-light); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; padding: 0.6rem 1.5rem 0.2rem; }
    .mobile-menu a { display: block; color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.9rem; padding: 0.45rem 1.5rem; }
    .mobile-menu a:hover { color: var(--gold-light); }
}
@media (max-width: 768px) {
    nav { padding: 0 1.2rem; }
    .nav-links { gap: 1rem; }
    .filters .search { margin-left: 0; width: 100%; }
    .filters .search input { width: 100%; }
    .filter-controls { gap: 0.6rem 0.7rem; }
    .field-sort { margin-left: 0; }
    .field { flex: 1 1 auto; }
    .field .sort-wrap, .sort-wrap select { width: 100%; }
    .shop-main { padding: 2rem 1.2rem 3rem; }
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ═══════════ STARTSIDA / SKYLTFÖNSTER (index.php) ═══════════ */
.home-hero {
    background:
        radial-gradient(120% 120% at 80% -10%, rgba(184,137,63,0.18), transparent 55%),
        linear-gradient(160deg, var(--dark) 0%, var(--coffee) 100%);
    color: #fff; padding: 4.5rem 2rem 4rem; text-align: center;
}
.home-hero-inner { max-width: 720px; margin: 0 auto; }
.home-hero .badge {
    display: inline-block; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--gold-light); border: 1px solid rgba(212,168,102,0.4); border-radius: 999px;
    padding: 0.35rem 1rem; margin-bottom: 1.4rem;
}
.home-hero h1 {
    font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1; margin-bottom: 1rem;
}
.home-hero h1 em { color: var(--gold-light); font-style: italic; }
.home-hero p { color: rgba(255,255,255,0.7); font-size: 1.02rem; max-width: 520px; margin: 0 auto 2rem; }
.home-search { display: flex; align-items: center; max-width: 540px; margin: 0 auto 1.4rem; background: #fff; border-radius: var(--radius); padding: 0.35rem 0.35rem 0.35rem 1.1rem; box-shadow: 0 14px 40px rgba(0,0,0,0.25); }
.home-search svg { color: var(--text-light); flex-shrink: 0; }
.home-search input { flex: 1; border: none; outline: none; font-family: inherit; font-size: 0.95rem; padding: 0.6rem 0.8rem; color: var(--text); background: transparent; }
.home-search button { background: var(--gold); color: var(--dark); border: none; border-radius: var(--radius); padding: 0.65rem 1.6rem; font-family: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: background 0.2s; }
.home-search button:hover { background: var(--gold-hover); }
.home-hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.home-hero-cta .btn-primary { background: var(--gold); color: var(--dark); text-decoration: none; padding: 0.8rem 1.8rem; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; transition: background 0.2s; }
.home-hero-cta .btn-primary:hover { background: var(--gold-hover); }
.home-hero-cta .btn-ghost { color: #fff; text-decoration: none; padding: 0.8rem 1.4rem; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius); font-size: 0.9rem; transition: all 0.2s; }
.home-hero-cta .btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* Två avdelningar */
.home-depts { max-width: 1100px; margin: -2.5rem auto 0; padding: 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; position: relative; z-index: 5; }
.dept { display: flex; gap: 1.3rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.8rem; text-decoration: none; color: var(--text); box-shadow: 0 12px 30px rgba(74,52,38,0.10); transition: transform 0.2s, box-shadow 0.2s; }
.dept:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(74,52,38,0.18); }
.dept-icon { flex-shrink: 0; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; color: var(--gold-hover); background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); }
.dept-icon svg { width: 28px; height: 28px; }
.dept-text h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.5rem; color: var(--coffee); margin-bottom: 0.2rem; }
.dept-text p { font-size: 0.85rem; color: var(--text-mid); margin-bottom: 0.5rem; }
.dept-link { font-size: 0.82rem; font-weight: 600; color: var(--gold-hover); }

/* Sektioner */
.home-section { max-width: 1100px; margin: 0 auto; padding: 3.2rem 2rem 0; }
.home-section-tint { max-width: none; background: var(--cream); margin-top: 3.2rem; padding-bottom: 3.2rem; }
.home-section-tint > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.home-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.6rem; }
.home-section-head h2 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 1.8rem; color: var(--coffee); }
.home-section-head .see-all { font-size: 0.84rem; font-weight: 600; color: var(--gold-hover); text-decoration: none; }
.home-section-head .see-all:hover { color: var(--gold); }

/* Kategori-brickor med ikon */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1rem;
    text-decoration: none; color: var(--text); text-align: center; transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.cat-tile:hover { transform: translateY(-3px); border-color: var(--gold-light); box-shadow: 0 10px 24px rgba(74,52,38,0.12); }
.cat-ico { color: var(--gold-hover); line-height: 0; }
.cat-tile:hover .cat-ico { color: var(--coffee); }
.cat-label { font-size: 0.88rem; font-weight: 500; letter-spacing: 0.2px; }

/* Produktstrip (mini-kort) */
.mini-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.mini-card { text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.mini-cover {
    width: 100%; aspect-ratio: 2/3; border-radius: 3px; overflow: hidden; margin-bottom: 0.6rem;
    background: var(--dark-mid); display: flex; align-items: center; justify-content: center; padding: 0.8rem;
    box-shadow: 0 1px 0 rgba(0,0,0,0.12), 0 10px 22px rgba(74,52,38,0.14); transition: transform 0.2s;
}
.mini-card:hover .mini-cover { transform: translateY(-4px); }
.mini-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-card.is-art .mini-cover { aspect-ratio: 1; background: #fff; padding: 0.6rem; }
.mini-card.is-art .mini-cover img { object-fit: contain; }
.mini-ph { font-family: 'Cormorant Garamond', serif; color: rgba(255,255,255,0.9); font-style: italic; font-size: 0.85rem; text-align: center; line-height: 1.3; }
.mini-title { font-size: 0.82rem; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.2rem; }
.mini-price { font-size: 0.85rem; font-weight: 600; color: var(--gold-hover); margin-top: auto; }

/* USP-rad */
.home-usp { max-width: 1100px; margin: 3.5rem auto 0; padding: 0 2rem 1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.usp { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.usp svg { color: var(--gold); flex-shrink: 0; }
.usp strong { display: block; font-size: 0.9rem; color: var(--text); }
.usp span { font-size: 0.78rem; color: var(--text-light); }

@media (max-width: 860px) {
    .home-depts { grid-template-columns: 1fr; margin-top: -1.5rem; }
    .mini-grid { grid-template-columns: repeat(3, 1fr); }
    .home-usp { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .mini-grid { grid-template-columns: repeat(2, 1fr); }
    .tile-grid { grid-template-columns: repeat(2, 1fr); }
    .home-search { flex-wrap: wrap; border-radius: var(--radius); }
}
