:root {
    --store-bg: #0d1213;
    --store-bg-deep: #080e0f;
    --store-surface: #151d1d;
    --store-surface-raised: #1b2423;
    --store-card: #f0e1c3;
    --store-card-deep: #dbc092;
    --store-card-text: #1a160f;
    --store-gold: #d6aa62;
    --store-gold-hover: #efc67d;
    --store-muted: #a9afaa;
    --store-line: rgba(214, 170, 98, .22);
    --store-blue: #73b8da;
    --store-control-height: 48px;
    --store-radius: 18px;
}

html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 15% -10%, rgba(214, 170, 98, .10), transparent 32rem),
        linear-gradient(180deg, #101616 0%, var(--store-bg) 100%) !important;
    color: #f7f3eb;
    font-family: 'Montserrat', sans-serif !important;
}

body, button, input, textarea, select { font-family: 'Montserrat', sans-serif; }
a, button, input, textarea, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 4px;
}

/* Stejná hlavička jako na hlavním webu a wiki. */
.navbar {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 94px !important;
    padding: 10px clamp(18px, 3vw, 52px) !important;
    gap: 18px !important;
    border-bottom: 1px solid var(--store-line) !important;
    background: rgba(9, 16, 17, .95) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .25) !important;
    backdrop-filter: blur(18px);
}
.navbar .nav-left,
.navbar .nav-right,
.navbar .nav-links {
    display: flex !important;
    align-items: center !important;
}
.navbar .nav-left { min-width: 0; gap: 18px !important; }
.navbar .nav-right { margin-left: auto !important; gap: 6px !important; }
.navbar .logo { flex: 0 0 auto; margin: 0 !important; }
.navbar .logo img { display: block; width: auto; height: 64px !important; max-width: 116px; object-fit: contain; }
.navbar .nav-links {
    flex-wrap: nowrap !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    white-space: nowrap;
}
.navbar .nav-links a,
.nav-plain-link {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    min-height: var(--store-control-height);
    box-sizing: border-box;
    padding: 9px 10px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #c9ceca !important;
    font-size: clamp(.68rem, .72vw, .82rem) !important;
    font-weight: 800 !important;
    letter-spacing: .025em;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap;
}
.navbar .nav-links a i,
.nav-plain-link i { color: #777f7c; transition: color .2s ease; }
.navbar .nav-links a:hover,
.navbar .nav-links a.active,
.nav-plain-link:hover,
.nav-plain-link.active {
    background: rgba(214, 170, 98, .10) !important;
    color: #fff !important;
}
.navbar .nav-links a:hover i,
.navbar .nav-links a.active i,
.nav-plain-link:hover i,
.nav-plain-link.active i { color: var(--store-gold); }

.nav-utility-link,
.nav-login-button,
.nav-account-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 126px;
    min-width: 126px;
    min-height: var(--store-control-height);
    box-sizing: border-box;
    padding: 8px 10px !important;
    border: 1px solid rgba(214, 170, 98, .42) !important;
    border-radius: 11px !important;
    background: rgba(214, 170, 98, .06) !important;
    color: var(--store-gold-hover) !important;
    font-size: .74rem !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.nav-utility-link:hover,
.nav-login-button:hover,
.nav-account-link:hover { border-color: var(--store-gold) !important; background: rgba(214, 170, 98, .14) !important; color: #fff !important; }
.nav-cart-link,
.nav-cart-link:hover,
.nav-cart-link.active {
    border-color: #e3b86f !important;
    background: linear-gradient(135deg, #e3b86f, #bc8844) !important;
    color: #17120c !important;
    box-shadow: 0 12px 28px rgba(214, 170, 98, .20);
}
.nav-cart-link i { color: #17120c !important; }
.cart-count {
    display: inline-grid;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    background: rgba(9, 16, 17, .84);
    color: #fff;
    font-size: .68rem;
    line-height: 1;
}
.nav-account-link { width: auto; min-width: 126px; max-width: none; color: #f7f3eb !important; }
.nav-account-link img { width: 30px; height: 30px; border-radius: 8px; }
.nav-account-link span { max-width: none; overflow: visible; text-overflow: clip; }
.nav-signout { display: flex; margin: 0 !important; }
.nav-signout button {
    display: grid;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #777;
    cursor: pointer;
}
.nav-signout button:hover { background: rgba(217, 83, 79, .12); color: #ef7772; }

/* Hero má shodnou výšku, typografii a vrstvu s veřejnými weby. */
.store-hero.page-hero {
    position: relative;
    min-height: 290px !important;
    box-sizing: border-box;
    display: grid !important;
    align-content: center;
    padding: clamp(34px, 6vw, 52px) 20px !important;
    overflow: hidden;
    border-bottom: 1px solid rgba(214, 170, 98, .42) !important;
    background:
        linear-gradient(180deg, rgba(9, 15, 15, .64), rgba(9, 15, 15, .94)),
        url('https://bertreich.cz/images/castle-bamberg.jpg') center 44% / cover no-repeat !important;
    text-align: center !important;
}
.store-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(transparent, var(--store-bg));
    pointer-events: none;
}
.store-hero > div { position: relative; z-index: 1; width: min(760px, 100%); margin: 0 auto; }
.store-hero .realm-subtitle {
    display: block;
    margin: 0 0 5px;
    color: #f4f4f4;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 400;
    letter-spacing: clamp(4px, 2vw, 8px);
    text-transform: uppercase;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, .8);
}
.store-hero h1 {
    margin: 0 0 15px !important;
    color: #edc477 !important;
    font-size: clamp(2.5rem, 7vw, 4rem) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: clamp(2px, 2vw, 5px) !important;
    text-transform: uppercase;
    text-shadow: 3px 3px 20px rgba(0, 0, 0, .9);
}
.store-hero p {
    max-width: 700px;
    margin: 0 auto !important;
    color: #c8ceca !important;
    font-size: clamp(.94rem, 1.7vw, 1.05rem) !important;
    line-height: 1.65 !important;
}

.store-main {
    width: min(1220px, calc(100% - 40px)) !important;
    min-height: 45vh;
    margin: 0 auto !important;
    padding: clamp(38px, 6vw, 70px) 0 88px !important;
}
.store-main h1,
.store-main h2,
.store-main h3,
.store-main h4 { font-weight: 900; }
.eyebrow,
.product-kind {
    color: #987039 !important;
    font-size: .7rem !important;
    font-weight: 900 !important;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.flash {
    margin: 0 0 22px;
    padding: 15px 18px;
    border: 1px solid;
    border-radius: 13px;
    font-weight: 700;
}
.flash.success { border-color: rgba(104, 204, 146, .4); background: rgba(104, 204, 146, .11); color: #9ee2bb; }
.flash.error { border-color: rgba(237, 119, 114, .44); background: rgba(237, 119, 114, .11); color: #ffaaa6; }
.store-live-region {
    position: fixed;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.category-directory {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 clamp(42px, 6vw, 68px);
    padding: 0;
}
.category-directory a,
.store-breadcrumbs a,
.category-heading-copy a,
.orders-profile-link {
    color: var(--store-gold-hover);
    font-weight: 800;
    text-decoration: none;
}
.category-directory a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid var(--store-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .025);
}
.category-directory a:hover { border-color: var(--store-gold); background: rgba(214, 170, 98, .10); color: #fff; }

.catalog-category { scroll-margin-top: 116px; }
.catalog-category + .catalog-category {
    margin-top: clamp(58px, 8vw, 94px);
    padding-top: clamp(46px, 6vw, 70px);
    border-top: 1px solid rgba(214, 170, 98, .14);
}
.category-heading,
.section-head {
    display: flex !important;
    align-items: end !important;
    justify-content: space-between !important;
    gap: 28px;
    margin: 0 0 26px !important;
}
.category-heading h2,
.section-head h2 {
    margin: 5px 0 0 !important;
    color: #f6f0e6 !important;
    font-size: clamp(1.75rem, 4vw, 2.55rem) !important;
    line-height: 1.08;
}
.category-heading-copy { max-width: 560px; text-align: right; }
.category-heading-copy p,
.section-head > p { margin: 0 0 7px !important; color: var(--store-muted) !important; line-height: 1.65; }
.category-heading-copy a { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; }

.product-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
    gap: 24px !important;
}
.product-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 230, 184, .82) !important;
    border-radius: var(--store-radius) !important;
    background: linear-gradient(150deg, #f5e8d0, var(--store-card)) !important;
    color: var(--store-card-text) !important;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .27) !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: #f6d89f !important;
    box-shadow: 0 30px 62px rgba(0, 0, 0, .36) !important;
}
.product-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.product-card-link:focus-visible { outline-offset: -5px !important; }
.product-image {
    position: relative;
    display: grid !important;
    height: 210px !important;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 38%, rgba(255,255,255,.38), transparent 43%),
        linear-gradient(145deg, #d8bc8e, #aa824e) !important;
    color: #4f351a;
    font-size: 4.3rem;
}
.product-image::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 36%;
    background: linear-gradient(transparent, rgba(74, 45, 17, .18));
    pointer-events: none;
}
.product-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-body { display: flex !important; min-height: 310px; flex-direction: column; padding: 24px !important; }
.product-body h3 { margin: 6px 0 11px !important; color: #211a11 !important; font-size: 1.32rem !important; line-height: 1.18; }
.product-body > p {
    display: -webkit-box;
    margin: 0 0 14px !important;
    overflow: hidden;
    color: #604f38 !important;
    line-height: 1.6 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.product-more { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; color: #68481f; font-size: .75rem; font-weight: 900; }
.product-bottom {
    position: relative;
    z-index: 2;
    display: flex !important;
    align-items: end !important;
    justify-content: space-between;
    gap: 14px !important;
    margin-top: auto !important;
}
.product-price { min-width: 0; }
.product-price del { display: block; margin-bottom: 3px; color: #8d7659; font-size: .76rem; }
.product-price strong { display: block; color: #291c0e !important; font-size: 1.42rem !important; font-weight: 900; white-space: nowrap; }
.product-price small { display: block; max-width: 210px; margin-top: 5px; color: #76644c; font-size: .62rem; line-height: 1.35; }
.product-bottom form { flex: 0 0 auto; margin: 0 !important; }
.product-bottom button,
.product-detail-buy button,
.login-card button,
.checkout-form button,
.discount-form button,
.btn-primary,
.btn-outline {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--store-control-height) !important;
    box-sizing: border-box;
    padding: 10px 16px !important;
    border: 1px solid #563c1e !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, #684a26, #352514) !important;
    color: #fff !important;
    font-size: .78rem !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(62, 41, 18, .19);
}
.product-bottom button:hover,
.product-detail-buy button:hover,
.login-card button:hover,
.checkout-form button:hover,
.discount-form button:hover,
.btn-primary:hover,
.btn-outline:hover { border-color: #856334 !important; background: linear-gradient(135deg, #795831, #44301a) !important; transform: translateY(-1px); }
.product-card.in-cart .product-bottom button { border-color: #42664d !important; background: #42664d !important; }

.product-card.featured {
    border: 3px solid #c59b5f !important;
    outline: 1px solid rgba(255, 239, 207, .88);
    outline-offset: -7px;
    box-shadow: 0 0 0 4px rgba(197, 155, 95, .18), 0 24px 58px rgba(0, 0, 0, .38) !important;
}
.product-card.featured:hover { border-color: #e1bd7c !important; box-shadow: 0 0 0 5px rgba(197, 155, 95, .24), 0 30px 66px rgba(0, 0, 0, .44) !important; }
.featured-label,
.sale-label {
    position: absolute;
    z-index: 3;
    top: 16px !important;
    padding: 9px 13px !important;
    border-radius: 999px !important;
    font-size: .66rem !important;
    font-weight: 900 !important;
    letter-spacing: .07em;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(0,0,0,.32);
}
.featured-label { right: 16px !important; border: 1px solid rgba(255,226,170,.72); background: linear-gradient(135deg,#241c12,#5a4325); color:#ffe3ad; }
.sale-label { left: 16px !important; border: 1px solid #ffd0cd; background: #a5413e; color: #fff; }
.product-card.featured .sale-label { top: 16px !important; }

.category-empty,
.empty,
.catalog-empty {
    padding: 34px !important;
    border: 1px dashed rgba(214, 170, 98, .28) !important;
    border-radius: var(--store-radius) !important;
    background: rgba(255, 255, 255, .025) !important;
    color: var(--store-muted) !important;
    text-align: center;
}
.catalog-empty { display: grid; max-width: 720px; margin: 0 auto; justify-items: center; gap: 12px; }
.catalog-empty > i { color: var(--store-gold); font-size: 2.2rem; }
.catalog-empty h2 { margin: 0; color: #f7f3eb; }
.catalog-empty p { margin: 0 0 7px; line-height: 1.65; }

/* Detail produktu. */
.store-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; color: #7f8985; font-size: .78rem; }
.store-breadcrumbs i { font-size: .62rem; }
.product-detail {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    overflow: hidden;
    border: 1px solid rgba(255, 230, 184, .82);
    border-radius: 22px;
    background: linear-gradient(150deg, #f5e8d0, var(--store-card));
    color: var(--store-card-text);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .34);
}
.product-detail.featured { border: 3px solid #c59b5f; }
.product-detail-media {
    position: relative;
    display: grid;
    min-height: 480px;
    place-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.4), transparent 40%), linear-gradient(145deg, #d8bc8e, #aa824e);
    color: #4f351a;
    font-size: 7rem;
}
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-content { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 62px); }
.product-detail-content h2 { margin: 7px 0 18px; color: #211a11; font-size: clamp(2rem, 4.5vw, 3.35rem); line-height: 1.03; }
.product-detail-description { color: #5a4934; font-size: 1rem; line-height: 1.75; }
.product-detail-delivery { display: flex; align-items: flex-start; gap: 13px; margin: 26px 0; padding: 16px; border: 1px solid rgba(93, 66, 30, .15); border-radius: 14px; background: rgba(255,255,255,.34); }
.product-detail-delivery > i { margin-top: 2px; color: #765426; font-size: 1.25rem; }
.product-detail-delivery strong,
.product-detail-delivery span { display: block; }
.product-detail-delivery strong { margin-bottom: 4px; color: #2c2115; }
.product-detail-delivery span { color: #6c5a42; font-size: .83rem; line-height: 1.55; }
.product-detail-buy { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 10px; }
.product-detail-buy form { margin: 0; }

/* Přihlášení, účet, košík a objednávky. */
.account-panel,
.account-bar,
.orders,
.cart-layout,
.checkout-layout,
.cart-card,
.checkout-card,
.cart-summary,
.order-summary,
.legal-page {
    border: 1px solid var(--store-line) !important;
    border-radius: var(--store-radius) !important;
    background: linear-gradient(145deg, rgba(27, 36, 35, .98), rgba(17, 23, 23, .98)) !important;
    box-shadow: 0 22px 50px rgba(0,0,0,.24) !important;
}
.account-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr); gap: 32px; margin: 0 0 44px; padding: clamp(24px, 4vw, 38px) !important; }
.account-panel h2 { margin: 6px 0 10px; }
.account-panel p { color: var(--store-muted); line-height: 1.6; }
.account-panel form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; }
.account-panel label,
.checkout-form label,
.discount-form label,
.cart-note-field { display: grid; gap: 7px; color: #c9ceca; font-size: .74rem; font-weight: 800; }
.account-panel input,
.checkout-form input,
.checkout-form textarea,
.checkout-form select,
.discount-form input,
.cart-note-field textarea,
[name="order_note"] {
    min-height: 48px;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid rgba(214, 170, 98, .28);
    border-radius: 11px;
    background: #f3e7d2;
    color: #20180e;
}
.checkout-form textarea,
.cart-note-field textarea,
[name="order_note"] { min-height: 116px; resize: vertical; }
.account-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 34px; padding: 16px 20px !important; }
.account-bar span { color: var(--store-muted); }
.account-bar strong { color: var(--store-gold-hover); }
.orders { margin-top: 72px; padding: clamp(22px, 4vw, 34px) !important; }
.orders-profile-link { display: inline-flex; align-items: center; gap: 7px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 76px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.07); }
.order-row > div { display: flex; align-items: center; gap: 12px; }
.order-row > div:first-child { min-width: 0; flex-direction: column; align-items: flex-start; }
.order-row > div:first-child span { overflow-wrap: anywhere; color: var(--store-muted); font-size: .78rem; }
.order-row a { color: var(--store-gold-hover); font-size: .76rem; font-weight: 800; }
.status { padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: .68rem; font-weight: 800; }

.cart-layout,
.checkout-layout { display: grid !important; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr) !important; gap: 24px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.cart-card,
.checkout-card,
.cart-summary,
.order-summary { padding: clamp(22px, 4vw, 34px) !important; }
.cart-item { display: grid !important; grid-template-columns: 72px minmax(0, 1fr) auto !important; align-items: center !important; gap: 16px !important; padding: 16px 0 !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; }
.cart-item img { width: 72px !important; height: 72px !important; border-radius: 12px !important; object-fit: cover; }
.cart-item button,
.remove-button {
    display: inline-grid;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    place-items: center;
    border: 1px solid rgba(237,119,114,.3) !important;
    border-radius: 11px !important;
    background: rgba(237,119,114,.09) !important;
    color: #ffaaa6 !important;
    cursor: pointer;
}
.checkout-form { display: grid; gap: 16px; }
.checkout-form button { width: 100%; }
.discount-form { display: flex !important; gap: 9px !important; }
.discount-form input { min-width: 0; flex: 1; }
.cart-note-field { margin: 18px 0; }
.cart-note-field small { color: #7f8985; font-weight: 500; line-height: 1.45; }
.checkout-form .newsletter-choice,
.checkout-form .consent-choice { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: start; gap: 11px; color: #b9c1bd; font-size: .79rem; font-weight: 600; line-height: 1.55; }
.checkout-form .newsletter-choice { padding: 13px 14px; border: 1px solid rgba(115,184,218,.25); border-radius: 11px; background: rgba(115,184,218,.055); }
.checkout-form .newsletter-choice input,
.checkout-form .consent-choice input { width: 18px; min-width: 18px; min-height: 18px; margin: 2px 0 0; accent-color: var(--store-gold); }
.cart-item-price button,
.clear-cart button,
.remove-discount button,
.legal-nav a { min-height: var(--store-control-height) !important; display: inline-flex; align-items: center; justify-content: center; }
.cart-item-price button,
.clear-cart button { padding: 8px 4px !important; }
.remove-discount button { padding: 7px 0 !important; }

.legal-page { max-width: 900px; margin: 0 auto; padding: clamp(26px, 5vw, 54px) !important; }
.legal-page h1 { color: var(--store-gold-hover); }
.legal-page h2 { margin-top: 34px; }
.legal-page p,
.legal-page li { color: #c6ccc8; line-height: 1.75; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.legal-nav a { display: inline-flex; min-height: 48px; align-items: center; padding: 8px 13px; border: 1px solid var(--store-line); border-radius: 10px; color: var(--store-gold-hover); font-size: .76rem; font-weight: 800; text-decoration: none; }

.store-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 10020;
    display: flex;
    align-items: center;
    gap: 11px;
    max-width: min(390px, calc(100vw - 32px));
    padding: 15px 18px;
    border: 1px solid rgba(104, 204, 146, .44);
    border-radius: 13px;
    background: #15251d;
    color: #dff7e9;
    font-size: .84rem;
    font-weight: 800;
    box-shadow: 0 18px 45px rgba(0,0,0,.45);
    transform: translateY(12px);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
}
.store-toast[hidden] { display: none; }
.store-toast.is-visible { transform: translateY(0); opacity: 1; }
.store-toast i { color: #68cc92; }
.store-toast.is-error { border-color: rgba(237,119,114,.48); background: #2a1717; color: #ffe2e0; }
.store-toast.is-error i { color: #ef7772; }
.cart-count.is-bumped { animation: store-cart-bump .35s ease; }
@keyframes store-cart-bump { 50% { transform: scale(1.28); } }

@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; }
    .product-detail-media { min-height: 330px; max-height: 460px; }
    .account-panel { grid-template-columns: 1fr; }
    .account-panel form { grid-template-columns: 1fr 1fr; }
    .account-panel button { grid-column: 1 / -1; }
    .cart-layout,
    .checkout-layout { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
    .navbar { min-height: 78px !important; padding: 9px 18px !important; }
    .navbar .logo img { height: 56px !important; }
    .store-hero.page-hero { min-height: 215px !important; padding: 28px 14px 32px !important; }
    .store-hero .realm-subtitle { font-size: 1rem; letter-spacing: 4px; }
    .store-hero h1 { font-size: clamp(2.35rem, 12vw, 3.35rem) !important; }
    .store-hero p { font-size: .9rem !important; line-height: 1.55 !important; }
    .store-main { width: min(100% - 28px, 1220px) !important; padding: 36px 0 68px !important; }
    .category-directory { display: grid; grid-template-columns: 1fr; margin-bottom: 42px; }
    .category-directory a { justify-content: space-between; }
    .category-heading,
    .section-head { align-items: flex-start !important; flex-direction: column !important; gap: 13px !important; }
    .category-heading-copy { max-width: none; text-align: left; }
    .catalog-category + .catalog-category { margin-top: 52px; padding-top: 42px; }
    .product-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
    .product-image { height: 200px !important; }
    .product-body { min-height: 0; padding: 22px !important; }
    .product-bottom { align-items: stretch !important; flex-direction: column; }
    .product-bottom form,
    .product-bottom button { width: 100%; }
    .product-detail-media { min-height: 280px; }
    .product-detail-content { padding: 26px 22px 30px; }
    .product-detail-buy { align-items: stretch; flex-direction: column; }
    .product-detail-buy button,
    .product-detail-buy form { width: 100%; }
    .account-panel { padding: 22px !important; }
    .account-panel form { grid-template-columns: 1fr; }
    .account-panel button { grid-column: auto; }
    .account-bar { align-items: flex-start; flex-direction: column; }
    .order-row,
    .order-row > div { align-items: flex-start; flex-direction: column; }
    .cart-item { grid-template-columns: 58px minmax(0, 1fr) auto !important; }
    .cart-item img { width: 58px !important; height: 58px !important; }
    .store-toast { right: 16px; bottom: 16px; left: 16px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
