/*
 | Boutique theme for the customer pages (bag, checkout, order, sign-in, account, info pages)
 | while the boutique is the home page. Loaded after maven.css; everything is scoped to
 | body.theme-butik so the flagship theme is untouched when the switch is off.
 |
 | Same language as the boutique: espresso ground, brass (gold) hairlines and accents,
 | italic Cormorant titles, orange kept only for the main action (dark text, 4px radius),
 | panels framed like the boutique's directory sheet.
 */

.theme-butik {
    --gold: #d9b27a;
    --gold-hi: #e8c896;
    --gold-38: rgba(217, 178, 122, .38);
    --gold-22: rgba(217, 178, 122, .22);
    --cream: #f3e7d8;
    --ink: #120904;
    --orange-soft: var(--gold);          /* accent text: eyebrows, labels, links */
    --line: rgba(217, 178, 122, .16);   /* hairlines read as brass, not grey */
    --frame: inset 0 0 0 5px var(--ink), inset 0 0 0 6px var(--gold-22);
}

.theme-butik ::selection { background: var(--gold); color: var(--ink); }
.theme-butik :focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
.theme-butik .skip-link { background: var(--gold); color: var(--ink); }

/* ---------- announcement bar ---------- */
.theme-butik .topbar {
    background: #0b0502;
    border-bottom: 1px solid var(--gold-22);
    color: var(--gold);
}
.theme-butik .topbar__msg { letter-spacing: .3em; font-size: .6rem; }

/* ---------- header ---------- */
.theme-butik .nav { background: rgba(18, 9, 4, .94); box-shadow: 0 1px 0 var(--gold-22); }
.theme-butik .nav__primary { gap: 1.8rem; }
.theme-butik .nav__link {
    display: inline-flex; align-items: center; gap: .7em;
    font-size: .62rem; letter-spacing: .24em;
}
.theme-butik .nav__link::before {
    content: ""; width: 5px; height: 5px; flex-shrink: 0;
    border: 1px solid var(--gold); rotate: 45deg;
    transition: background .3s var(--ease);
}
.theme-butik .nav__item:hover .nav__link::before,
.theme-butik .nav__link:focus-visible::before { background: var(--gold); }
.theme-butik .nav__link::after { background: var(--gold); left: calc(5px + .7em); }
.theme-butik .icon-btn:hover { color: var(--gold); }
.theme-butik .cart-count { background: var(--gold); color: var(--ink); }
.theme-butik .lang a.is-active { color: var(--gold); }

/* ---------- drawers, bag, search ---------- */
.theme-butik .drawer,
.theme-butik .search {
    background:
        radial-gradient(90% 40% at 30% 0%, rgba(227, 109, 44, .1), transparent 70%),
        linear-gradient(#1b0e06, #120904);
}
.theme-butik .drawer--right { border-left-color: var(--gold-38); }
.theme-butik .drawer--left { border-right-color: var(--gold-38); }
.theme-butik .drawer__nav a { font-family: var(--serif); font-size: 1.25rem; }
.theme-butik .cart__title { color: var(--gold); }
.theme-butik .cart__foot { background: #160b05; border-top-color: var(--gold-22); }
.theme-butik .cart__ship-bar span { background: var(--gold); }
.theme-butik .line__name,
.theme-butik .sr-item strong {
    font-family: var(--serif); font-size: 1.3rem; letter-spacing: .02em; text-transform: none; font-weight: 400;
}
.theme-butik .line img { background: #1b0e06; box-shadow: 0 0 0 1px var(--gold-22); }
.theme-butik .qty { border-color: var(--gold-22); }
.theme-butik .qty button:hover { color: var(--gold); }

/* ---------- buttons (as in the boutique) ---------- */
.theme-butik .btn {
    border-radius: 4px;
    background: var(--orange); border-color: var(--orange); color: var(--ink);
    font-size: .68rem; letter-spacing: .2em;
}
.theme-butik .btn:hover { background: #ef7d3c; border-color: #ef7d3c; }
.theme-butik .btn:disabled:hover { background: var(--orange); border-color: var(--orange); }
.theme-butik .btn--ghost { background: none; border-color: rgba(243, 231, 216, .55); color: var(--cream); }
.theme-butik .btn--ghost:hover { background: rgba(217, 178, 122, .08); border-color: var(--gold); color: var(--cream); }

/* ---------- page head: the boutique interior, dimmed, with a brass rule ---------- */
.theme-butik .shop-head {
    position: relative;
    padding: clamp(64px, 9vw, 128px) 0 clamp(44px, 6vw, 76px);
    text-align: center;
    border-bottom: 1px solid var(--gold-38);
    background:
        linear-gradient(180deg, rgba(18, 9, 4, .62) 0%, rgba(18, 9, 4, .8) 55%, var(--ink) 100%),
        url('../images/butik/interior-landscape-1920.webp') center 42% / cover no-repeat,
        var(--ink);
}
@media (max-width: 760px) {
    .theme-butik .shop-head {
        background:
            linear-gradient(180deg, rgba(18, 9, 4, .62) 0%, rgba(18, 9, 4, .82) 55%, var(--ink) 100%),
            url('../images/butik/interior-portrait-720.webp') center 30% / cover no-repeat,
            var(--ink);
    }
}
/* A small brass lozenge sitting on the rule. */
.theme-butik .shop-head::after {
    content: ""; position: absolute; left: 50%; bottom: 0; width: 9px; height: 9px;
    border: 1px solid var(--gold); background: var(--ink);
    transform: translate(-50%, 50%) rotate(45deg);
}
.theme-butik .shop-head .crumbs {
    color: var(--gold); letter-spacing: .34em; font-size: .6rem; margin-bottom: 1rem;
}
.theme-butik .shop-head .crumbs a { color: rgba(243, 231, 216, .7); }
.theme-butik .shop-head .crumbs a:hover { color: var(--gold); }
.theme-butik .shop-head .display {
    font: italic 400 clamp(2.4rem, 1.6rem + 3.4vw, 4rem)/1.05 var(--serif);
    letter-spacing: .01em; text-transform: none; margin-bottom: .7rem;
    text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}
.theme-butik .shop-head p { max-width: 34rem; margin-left: auto; margin-right: auto; color: rgba(243, 231, 216, .75); }

/* Section titles elsewhere on these pages. */
.theme-butik main .display {
    font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: .01em;
}
.theme-butik .eyebrow { color: var(--gold); }

/* ---------- panels: framed like the boutique's directory sheet ---------- */
.theme-butik .account-card,
.theme-butik .checkout__step,
.theme-butik .checkout__summary,
.theme-butik .form-page > .form {
    border: 1px solid var(--gold-38);
    background:
        radial-gradient(90% 60% at 20% 0%, rgba(227, 109, 44, .07), transparent 70%),
        linear-gradient(#1b0e06, #140a04);
    box-shadow: var(--frame);
}
.theme-butik .account-card,
.theme-butik .checkout__step,
.theme-butik .checkout__summary { padding: 1.6rem 1.7rem; }
.theme-butik .form-page > .form { padding: 2rem clamp(1.2rem, 4vw, 2.2rem); }

.theme-butik .account-card h2,
.theme-butik .checkout__summary h2,
.theme-butik .order-page h2 {
    font: italic 400 1.5rem/1.2 var(--serif); letter-spacing: .01em; text-transform: none;
}
.theme-butik .checkout__step legend {
    font: italic 400 1.35rem/1 var(--serif); letter-spacing: .01em; text-transform: none;
    padding: 0 .7rem; margin-left: -.7rem; background: var(--ink);
}
.theme-butik .checkout__step legend::before {
    content: counter(step, upper-roman) " · "; color: var(--gold); font-style: normal;
    font-family: var(--sans); font-size: .62rem; letter-spacing: .2em; vertical-align: .3em;
}
.theme-butik .account-card__badge,
.theme-butik .drawer__label { color: var(--gold); }

/* ---------- forms ---------- */
.theme-butik .field label,
.theme-butik .field__label { color: rgba(243, 231, 216, .68); }
.theme-butik .field input:not([type=checkbox]),
.theme-butik .field select,
.theme-butik .field textarea,
.theme-butik .gift-picker select,
.theme-butik .cart-page__qty input {
    background: rgba(11, 5, 2, .6); border-color: var(--gold-22); border-radius: 3px;
}
.theme-butik .field input:focus,
.theme-butik .field select:focus,
.theme-butik .field textarea:focus { outline: 1px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.theme-butik .field--row input,
.theme-butik .checkout__choice input { accent-color: var(--gold); }
.theme-butik .checkout__choice { border-color: var(--gold-22); border-radius: 3px; }
.theme-butik .checkout__choice:has(input:checked) { border-color: var(--gold); background: rgba(217, 178, 122, .06); }
.theme-butik .size:has(input:checked) { border-color: var(--gold); }
.theme-butik .form-links a:hover { color: var(--gold); }
.theme-butik .form-status,
.theme-butik .field__error,
.theme-butik .cart-page__error,
.theme-butik .line__problem,
.theme-butik .cart__msg { color: #f0a77a; }

/* ---------- info pages ---------- */
.theme-butik .prose { color: rgba(243, 231, 216, .74); margin-left: auto; margin-right: auto; }
.theme-butik .prose h2 {
    position: relative; font-style: italic; font-weight: 400; font-size: 1.9rem; padding-top: 1.4rem;
}
.theme-butik .prose h2::before {
    content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 1px; background: var(--gold);
}
.theme-butik .prose > h2:first-child { padding-top: 0; }
.theme-butik .prose > h2:first-child::before { display: none; }
.theme-butik .prose a { color: var(--gold); }
.theme-butik .prose th { color: var(--gold); font-weight: 400; letter-spacing: .08em; }
.theme-butik .prose ul { list-style: none; padding-left: 0; }
.theme-butik .prose ul li { position: relative; padding-left: 1.3rem; }
.theme-butik .prose ul li::before {
    content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px;
    border: 1px solid var(--gold); rotate: 45deg;
}

/* ---------- footer ---------- */
.theme-butik .footer {
    position: relative;
    background:
        radial-gradient(70% 120% at 50% 0%, rgba(217, 178, 122, .07), transparent 60%),
        #0b0502;
    border-top: 1px solid var(--gold-38);
}
.theme-butik .footer::before {
    content: ""; position: absolute; left: 50%; top: 0; width: 9px; height: 9px;
    border: 1px solid var(--gold); background: #0b0502;
    transform: translate(-50%, -50%) rotate(45deg);
}
.theme-butik .footer h4 { color: var(--gold); }
.theme-butik .footer a:hover { color: var(--gold); }
.theme-butik .footer__grid,
.theme-butik .footer__base { border-color: var(--gold-22); }
