.storefront-page {
    padding: 32px 0 70px;
}

.storefront-shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.storefront-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 28px;
    align-items: stretch;
    overflow: hidden;
    padding: 34px;
    border: 1px solid #eee5d8;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff9ed, #fff);
    box-shadow: 0 16px 42px rgba(23, 33, 54, .06);
}

.storefront-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.storefront-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #a06b08;
    font-size: 12px;
    font-weight: 900;
}

.storefront-hero h1 {
    margin: 0;
    color: #172136;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.15;
}

.storefront-hero p {
    max-width: 700px;
    margin: 15px 0 0;
    color: #687486;
    font-size: 15px;
    line-height: 1.8;
}

.storefront-company {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 22px;
    color: #344055;
    font-size: 13px;
    font-weight: 800;
}

.storefront-company a {
    color: #9d6b0c;
    text-decoration: none;
}

.storefront-cover {
    min-height: 250px;
    overflow: hidden;
    border-radius: 20px;
    background: #f3f4f6;
}

.storefront-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storefront-products {
    margin-top: 38px;
}

.storefront-section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 20px;
}

.storefront-section-head h2 {
    margin: 0;
    color: #172136;
    font-size: clamp(24px, 4vw, 34px);
}

.storefront-count {
    display: grid;
    min-width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 999px;
    background: #fff1d2;
    color: #9d6b0c;
    font-weight: 900;
}

.storefront-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.storefront-product {
    overflow: hidden;
    border: 1px solid #ece7df;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(23, 33, 54, .055);
}

.storefront-product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f6f7f8;
}

.storefront-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.storefront-product-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(135deg, #fff6e3, #f4f6f8);
}

.storefront-product-placeholder span {
    color: #c58a16;
    font-size: 64px;
    font-weight: 900;
}

.storefront-sale {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #172136;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.storefront-product-body {
    padding: 18px;
}

.storefront-product-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.storefront-product h3 {
    margin: 0;
    color: #172136;
    font-size: 17px;
    line-height: 1.45;
}

.storefront-stock {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
}

.storefront-stock.is-available {
    background: #eaf8f0;
    color: #24704b;
}

.storefront-stock.is-empty {
    background: #fff0f0;
    color: #b42323;
}

.storefront-description {
    min-height: 48px;
    margin: 10px 0 0;
    color: #7a8492;
    font-size: 12px;
    line-height: 1.65;
}

.storefront-price {
    display: flex;
    gap: 9px;
    align-items: baseline;
    margin-top: 15px;
}

.storefront-price strong {
    color: #9d6b0c;
    font-size: 19px;
}

.storefront-price del {
    color: #9aa3ad;
    font-size: 12px;
}

.storefront-buy {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    border: 0;
    border-radius: 12px;
    background: #c58a16;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.storefront-buy.is-disabled {
    background: #d8dde3;
    color: #7d8792;
    cursor: not-allowed;
}

.storefront-empty {
    padding: 50px 24px;
    border: 1px dashed #ddd3c3;
    border-radius: 20px;
    color: #778291;
    text-align: center;
}

@media (max-width: 900px) {
    .storefront-hero {
        grid-template-columns: 1fr;
    }

    .storefront-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .storefront-page {
        padding-top: 18px;
    }

    .storefront-shell {
        width: min(100% - 20px, 1180px);
    }

    .storefront-hero {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .storefront-grid {
        grid-template-columns: 1fr;
    }

    .storefront-product-head {
        align-items: center;
    }
}

/* =========================================================
   STOREFRONT PURCHASE ACTIONS
   ========================================================= */

.storefront-order-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
    margin-top: 14px;
}

.storefront-quantity {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 105px;
    margin: 0;
}

.storefront-quantity > span {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.storefront-quantity input {
    width: 100%;
    min-height: 46px;
    padding: 9px 10px;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    background: #fff;
    font: inherit;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.storefront-quantity input:focus {
    border-color: #9da9b7;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
}

.storefront-order-submit {
    flex: 1 1 auto;
    min-height: 46px;
    margin: 0;
}

.storefront-stock-note {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.5;
    opacity: .7;
}

.storefront-order-error {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.5;
    color: #b42318;
}

.storefront-unavailable {
    width: 100%;
}

.storefront-unavailable .storefront-buy.is-disabled {
    width: 100%;
    cursor: not-allowed;
    opacity: .55;
}

.storefront-unavailable-message {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: #b42318;
}

[dir="rtl"] .storefront-order-actions {
    direction: rtl;
}

[dir="ltr"] .storefront-order-actions {
    direction: ltr;
}

@media (max-width: 520px) {
    .storefront-order-actions {
        gap: 8px;
    }

    .storefront-quantity {
        flex-basis: 88px;
    }

    .storefront-quantity input,
    .storefront-order-submit {
        min-height: 44px;
    }
}

