/* Online Stores page */

/* Demo store ------------------------------------------------------------- */

.store {
    --forest: oklch(0.36 0.07 150);
    border-radius: 22px; background: #fff; overflow: hidden;
    border: 1px solid var(--rule); box-shadow: 0 40px 80px -40px rgba(42, 23, 115, 0.45);
}
.store-reset {
    min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
    border: 1.5px solid var(--lavender); background: #fff; color: var(--purple); font-weight: 600; font-size: 14px;
}
.store__chrome { height: 44px; background: #EEEBF6; display: flex; align-items: center; gap: 7px; padding: 0 16px; }
.store__chrome > i { width: 11px; height: 11px; border-radius: 50%; background: var(--lavender); }
.store__chrome > span {
    margin-left: 12px; flex: 0 1 380px; height: 26px; border-radius: 999px; background: #fff;
    display: flex; align-items: center; padding: 0 12px; font-size: 13px; color: var(--muted); overflow: hidden; white-space: nowrap;
}
.store__header {
    padding: 16px clamp(16px, 3vw, 32px); border-bottom: 1px solid #EEEBF6;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.store__brand { font: 800 clamp(20px, 2.2vw, 26px) var(--font-display); letter-spacing: -0.02em; color: var(--forest); }
.store__cart-pill {
    display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0;
    background: var(--forest); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
}
.store__cart-pill.is-bumped { animation: cart-bump 0.4s var(--ease); }
@keyframes cart-bump { 40% { transform: scale(1.14); } }
.store__body { display: flex; flex-wrap: wrap; }
.store__shop { flex: 999 1 440px; min-width: 0; padding: clamp(16px, 3vw, 32px); }
.store__banner {
    border-radius: 16px; background: var(--forest); color: #fff; padding: clamp(20px, 3vw, 32px); margin-bottom: 24px;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
}
.store__banner-title { font: 800 clamp(24px, 3vw, 36px)/1 var(--font-display); letter-spacing: -0.03em; }
.store__banner-sub { font-size: 14px; margin-top: 8px; color: rgba(255, 255, 255, 0.85); }
.store__code { padding: 8px 14px; border-radius: 999px; background: oklch(0.9 0.08 90); color: var(--ink); font-size: 13px; font-weight: 700; }
.store__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px; }

.product { display: flex; flex-direction: column; gap: 8px; }
.product__photo { position: relative; aspect-ratio: 1; }
.product__stock {
    position: absolute; top: 8px; left: 8px; padding: 4px 8px; border-radius: 999px;
    background: #fff; font: 700 11px var(--font-body); color: #8A3A00;
}
.product__line { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 600; }
.product__add {
    min-height: 44px; border-radius: 999px; cursor: pointer;
    border: 1.5px solid var(--forest); background: #fff; color: var(--forest); font-weight: 700; font-size: 14px;
    transition: background-color 0.15s, color 0.15s;
}
.product__add:hover:not(:disabled) { background: var(--forest); color: #fff; }
.product__add:disabled { cursor: not-allowed; opacity: 0.5; }

.store__side {
    flex: 1 1 300px; min-width: 0; background: #FAF8F3; border-left: 1px solid #EEEBF6;
    padding: clamp(16px, 3vw, 28px);
}
.store__side > div { display: flex; flex-direction: column; gap: 14px; }
.store__h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.store__empty { margin: 0; font-size: 15px; color: var(--muted); padding: 20px 0; }
.store__lines { display: flex; flex-direction: column; gap: 14px; }
.store__lines:empty { display: none; }
.cart-line { display: flex; align-items: center; gap: 12px; }
.cart-line__thumb { width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0; background: repeating-linear-gradient(135deg, #EFEBE2 0 6px, #F7F4EE 6px 12px); }
.cart-line__text { flex: 1; min-width: 0; }
.cart-line__name { font-size: 15px; font-weight: 600; }
.cart-line__each { font-size: 13px; color: var(--muted); }
.cart-line__qty { display: flex; align-items: center; gap: 6px; }
.cart-line__qty button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--field); background: #fff; cursor: pointer; font-weight: 700; }
.cart-line__qty span { min-width: 18px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.store__totals { display: flex; flex-direction: column; gap: 14px; }
.store__code-form { display: flex; gap: 8px; }
.store__code-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--field); font-weight: 500; font-size: 15px; background: #fff; }
.store__code-form button { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 0; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.store__code-msg { font-size: 13px; font-weight: 600; color: var(--error); }
.store__code-msg.is-ok { color: var(--success); }
.store__sum { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 15px; }
.store__sum dd { margin: 0; }
.store__sum small { font-size: 12px; color: var(--muted); }
.store__sum .is-discount { color: var(--success); }
.store__sum .is-total { font-weight: 700; font-size: 17px; padding-top: 8px; border-top: 1px solid #E4E0D6; }
.store__primary { min-height: 52px; border-radius: 999px; border: 0; background: var(--forest); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
.store__primary--ink { background: var(--ink); }
.store__back { align-self: flex-start; background: none; border: 0; padding: 0; min-height: 32px; color: var(--purple); font-weight: 600; font-size: 14px; cursor: pointer; }
.store__express { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.store__express button, .store__card {
    min-height: 44px; border-radius: 10px; border: 2px solid var(--field); background: #fff; color: var(--ink);
    font-weight: 700; font-size: 13px; cursor: pointer;
}
.store__express button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.store__card { text-align: left; padding: 0 14px; font-weight: 600; font-size: 14px; }
.store__card[aria-pressed="true"] { border-color: var(--ink); }
.store__check { width: 56px; height: 56px; border-radius: 50%; background: var(--lime-mist); display: grid; place-items: center; font-size: 26px; font-weight: 800; color: var(--success); }
.store__dash { border-radius: 14px; background: var(--ink); color: #fff; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.store__dash > div:not(.store__dash-title)::before { content: "●"; color: var(--sprout); margin-right: 10px; }
.store__dash-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sprout); }
.store__again { min-height: 48px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; cursor: pointer; }

/* Phones: the cart is a drawer that slides in from the right inside the demo store (not over the page), opened
   from the store's Cart button. Nothing in the store is sticky; it scrolls with the page. */
.store__close, .store__scrim { display: none; }
@media (max-width: 859px) {
    .store--drawer .store__body { position: relative; }
    .store--drawer .store__scrim:not([hidden]) { display: block; position: absolute; inset: 0; z-index: 2; background: rgba(20, 11, 51, 0.35); }
    .store--drawer .store__side {
        position: absolute; top: 0; right: 0; bottom: 0; z-index: 3; width: min(88%, 360px);
        border-left: 0; box-shadow: -16px 0 40px rgba(20, 11, 51, 0.25);
        transform: translateX(100%); visibility: hidden;
        transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
    }
    .store--drawer.is-cart-open .store__side { transform: none; visibility: visible; transition: transform 0.35s var(--ease); }
    .store--drawer .store__close {
        position: relative; z-index: 1;
        display: grid; place-items: center; float: right; width: 40px; height: 40px; margin: -4px -4px 0 8px;
        border: 0; border-radius: 50%; background: #EFEBE2; color: var(--ink); cursor: pointer;
    }
    .store__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
}

/* Why section ------------------------------------------------------------ */

.why__big { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; color: var(--sprout); line-height: 1; }
