/* THE OPEN CRATE - CUSTOMER-FACING ONLINE STORE PREVIEW */

.store-preview-bar {
    padding: 9px 16px;
    background: #171717;
    color: #ffc107;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.store-preview-bar[data-store-mode="live-test"] {
    background: #7a1f16;
    color: #fff;
}

.store-preview-bar[data-store-mode="disabled"],
.store-preview-bar[data-store-mode="error"] {
    background: #4f1510;
    color: #fff;
}

.store-hero {
    padding: 64px 0 56px;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 193, 7, 0.18), transparent 28%),
        linear-gradient(135deg, #171717 0%, #25200f 100%);
    color: #fff;
}

.store-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.45fr);
    gap: 44px;
    align-items: center;
}

.store-hero h1 {
    max-width: 900px;
    margin: 10px 0 14px;
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.store-hero p {
    max-width: 820px;
    color: rgba(255,255,255,0.76);
    font-size: 1.05rem;
    line-height: 1.7;
}

.store-hero-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.store-hero-pills span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: rgba(255,255,255,0.9);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.25;
}

.store-hero-pills span::before {
    content: "";
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    background-color: #ffc107;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    box-shadow: 0 0 0 5px rgba(255,193,7,0.1);
}

.store-hero-pills span:nth-child(1)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M7 15h3'/%3E%3C/svg%3E");
}

.store-hero-pills span:nth-child(2)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h11v9H3z'/%3E%3Cpath d='M14 10h4l3 3v3h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");
}

.store-hero-pills span:nth-child(3)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23171717' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7l8-4 8 4-8 4z'/%3E%3Cpath d='M4 7v10l8 4 8-4V7'/%3E%3Cpath d='M12 11v10'/%3E%3C/svg%3E");
}

.store-section {
    background: #f5f4f1;
}

.store-message {
    display: none;
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 700;
}

.store-message:not(:empty) {
    display: block;
}

.store-message.is-success {
    border: 1px solid #b5d7bd;
    background: #edf8f0;
    color: #17652b;
}

.store-message.is-error {
    border: 1px solid #e2b2ad;
    background: #fff0ee;
    color: #8a2119;
}

.store-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
    gap: 24px;
    align-items: start;
}

.store-product-main,
.store-notice-card,
.store-checkout {
    border: 1px solid #dedbd4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 25px rgba(24, 24, 24, 0.05);
}

.store-product-main {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
    overflow: hidden;
}

.store-product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    padding: 42px;
    background:
        linear-gradient(135deg, rgba(255,193,7,0.14), transparent 52%),
        #1b1b1b;
}

.store-box-art {
    position: relative;
    width: min(100%, 330px);
    aspect-ratio: 1 / 0.78;
    padding: 54px 34px 30px;
    border: 2px solid #8f6217;
    background:
        linear-gradient(90deg, transparent 49%, rgba(87,53,8,0.18) 50%, transparent 51%),
        linear-gradient(#c68b34, #ad7327);
    box-shadow: 0 24px 44px rgba(0,0,0,0.3);
    transform: rotate(-2deg);
}

.store-box-art::before,
.store-box-art::after {
    content: "";
    position: absolute;
    background: rgba(255, 219, 123, 0.75);
}

.store-box-art::before {
    inset: 0 auto 0 50%;
    width: 44px;
    transform: translateX(-50%);
}

.store-box-art::after {
    inset: 22px 0 auto 0;
    height: 34px;
}

.store-box-tape,
.store-box-source,
.store-box-art strong {
    position: relative;
    z-index: 1;
}

.store-box-tape {
    display: inline-block;
    margin-bottom: 20px;
    padding: 5px 8px;
    background: #171717;
    color: #ffc107;
    font-size: 0.64rem;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.store-box-art strong {
    display: block;
    color: #171717;
    font-size: clamp(2.6rem, 6vw, 4rem);
    line-height: 0.82;
    letter-spacing: -0.055em;
}

.store-box-source {
    display: block;
    margin-top: 22px;
    color: #2e210e;
    font-size: 0.95rem;
    font-weight: 900;
}

.store-product-copy {
    padding: 42px 38px;
}

.store-product-copy h2 {
    margin: 6px 0 10px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.store-product-lead {
    color: #68645d;
    font-size: 1rem;
    line-height: 1.65;
}

.store-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 22px 0 18px;
}

.store-price-row strong {
    font-size: 2rem;
}

.store-price-row span,
.store-small-print,
.store-helper,
.store-secure-note {
    color: #777169;
    font-size: 0.8rem;
}

.store-stock-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    padding: 13px 14px;
    border: 1px solid #dedbd4;
    border-radius: 10px;
    background: #faf9f6;
}

.store-stock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2d9b50;
    box-shadow: 0 0 0 4px rgba(45,155,80,0.13);
}

.store-stock-card.is-out .store-stock-dot {
    background: #a64035;
    box-shadow: 0 0 0 4px rgba(166,64,53,0.12);
}

.store-stock-card strong,
.store-stock-card span {
    display: block;
}

.store-stock-card span {
    margin-top: 2px;
    color: #716d66;
    font-size: 0.78rem;
}

.store-facts {
    display: grid;
    gap: 9px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.store-facts li {
    position: relative;
    padding-left: 23px;
    color: #4f4b45;
    font-size: 0.9rem;
    line-height: 1.45;
}

.store-facts li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #9b7100;
    font-weight: 950;
}

.store-buy-button,
.store-pay-button {
    width: 100%;
    min-height: 52px;
    font-size: 0.98rem;
}

.store-small-print {
    margin-top: 9px;
    text-align: center;
}

.store-notice-card {
    padding: 28px;
}

.store-notice-card h3 {
    margin: 6px 0 14px;
    font-size: 1.5rem;
}

.store-notice-card p {
    margin: 0 0 14px;
    color: #66615a;
    font-size: 0.87rem;
    line-height: 1.62;
}

.store-notice-card p:last-child {
    margin-bottom: 0;
}

.store-checkout {
    margin-top: 26px;
    padding: 28px;
}

.store-checkout-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e4e1da;
}

.store-checkout-header h2 {
    margin: 6px 0 8px;
    font-size: 1.85rem;
}

.store-checkout-header p {
    max-width: 760px;
    color: #716c64;
}

.store-reservation-timer {
    flex: 0 0 auto;
    min-width: 155px;
    padding: 13px 15px;
    border: 1px solid #e2d6ad;
    border-radius: 10px;
    background: #fff9e6;
    text-align: right;
}

.store-reservation-timer span,
.store-reservation-timer strong {
    display: block;
}

.store-reservation-timer span {
    color: #7e6b2e;
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.store-reservation-timer strong {
    margin-top: 3px;
    color: #2d291d;
}

.store-checkout-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.store-checkout-grid > .store-checkout-card:first-child {
    grid-column: 1 / -1;
}

.store-checkout-card {
    position: relative;
    min-width: 0;
    padding: 22px;
    border: 1px solid #dfdcd5;
    border-radius: 12px;
    background: #fbfaf8;
}

.store-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #171717;
    color: #ffc107;
    font-size: 0.76rem;
    font-weight: 950;
}

.store-checkout-card h3 {
    margin: 0 0 14px;
    font-size: 1.18rem;
}

.store-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.store-field-wide {
    grid-column: 1 / -1;
}

.store-checkout-card .review-field {
    margin-bottom: 0;
}

.store-checkout-card .review-field label {
    font-size: 0.78rem;
}

.store-checkout-card .review-field label span {
    font-weight: 400;
}

.store-checkout-card .review-field input {
    min-height: 42px;
    margin-top: 5px;
    padding: 9px 10px;
    border-radius: 7px;
}

.store-checkbox-row,
.store-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.store-checkbox-row {
    margin: 14px 0;
    font-size: 0.84rem;
}

.store-consent-row {
    margin: 14px 0;
    color: #4f4a44;
    font-size: 0.8rem;
}

.store-checkbox-row input,
.store-consent-row input {
    flex: 0 0 auto;
    margin-top: 4px;
}

.store-rate-list {
    display: grid;
    gap: 8px;
}

.store-rate-choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dcd8d0;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
}

.store-rate-choice:hover,
.store-rate-choice:has(input:checked) {
    border-color: #c28e00;
    background: #fff8dc;
}

.store-rate-choice input {
    margin-top: 4px;
}

.store-rate-copy {
    flex: 1;
    min-width: 0;
}

.store-rate-copy strong,
.store-rate-copy span {
    display: block;
}

.store-rate-copy strong {
    font-size: 0.88rem;
}

.store-rate-copy span {
    margin-top: 3px;
    color: #716c64;
    font-size: 0.77rem;
}

.store-order-summary {
    display: grid;
    gap: 9px;
    margin-bottom: 12px;
}

.store-order-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e1da;
    font-size: 0.86rem;
}

.store-summary-total {
    padding-top: 4px;
    color: #222;
    font-size: 0.94rem !important;
    font-weight: 900;
}

.store-secure-note {
    margin-top: 9px;
    text-align: center;
    line-height: 1.45;
}

.store-cancel-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.store-info-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 44px;
    align-items: start;
}

.store-info-grid h2 {
    margin-top: 6px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.05;
}

.store-info-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.store-info-steps > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dedbd4;
    border-radius: 10px;
    background: #fff;
}

.store-info-steps strong {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffc107;
    color: #171717;
}

.store-info-steps span {
    color: #5f5a53;
    font-size: 0.87rem;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .store-product-layout {
        grid-template-columns: 1fr;
    }

    .store-notice-card {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 24px;
    }

    .store-notice-card .kicker,
    .store-notice-card h3 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .store-hero-inner,
    .store-product-main,
    .store-info-grid {
        grid-template-columns: 1fr;
    }

    .store-hero-pills {
        width: min(100%, 460px);
    }

    .store-product-visual {
        min-height: 360px;
    }

    .store-checkout-grid {
        grid-template-columns: 1fr;
    }

    .store-checkout-grid > .store-checkout-card:first-child {
        grid-column: auto;
    }

    .store-notice-card {
        display: block;
    }

    .store-notice-card p {
        margin-bottom: 14px;
    }
}

@media (max-width: 620px) {
    .store-preview-bar {
        font-size: 0.62rem;
    }

    .store-hero {
        padding: 46px 0 40px;
    }

    .store-hero-pills {
        gap: 10px;
    }

    .store-hero-pills span {
        font-size: 0.66rem;
    }

    .store-hero-pills span::before {
        width: 38px;
        height: 38px;
        background-size: 18px 18px;
    }

    .store-info-steps,
    .store-form-grid {
        grid-template-columns: 1fr;
    }

    .store-field-wide {
        grid-column: auto;
    }

    .store-product-copy,
    .store-notice-card,
    .store-checkout {
        padding: 22px;
    }

    .store-product-visual {
        min-height: 300px;
        padding: 28px;
    }

    .store-checkout-header {
        flex-direction: column;
    }

    .store-reservation-timer {
        width: 100%;
        text-align: left;
    }

    .store-cancel-row .btn {
        width: 100%;
    }
}
