.storefront-catalog .catalog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
}

.category-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    font-weight: 700;
}

.category-nav a.is-active {
    border-color: var(--accent);
    color: #ffffff;
    background: var(--accent);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.product-media,
.product-detail-media {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #e9f2f8;
    color: var(--muted);
    font-weight: 700;
}

.product-media {
    aspect-ratio: 4 / 3;
}

.product-media img,
.product-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-body {
    padding: 16px;
}

.product-card h2 {
    margin: 8px 0;
    font-size: 22px;
    line-height: 1.2;
}

.product-category,
.product-note {
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 700;
}

.product-note {
    margin: 12px 0 0;
}

.product-price {
    margin: 18px 0;
    color: #111827;
    font-size: 30px;
    font-weight: 800;
}

.product-price-small {
    margin: 12px 0 0;
    font-size: 19px;
}

.add-to-cart,
.checkout-form {
    display: grid;
    gap: 9px;
}

.add-to-cart {
    grid-template-columns: minmax(100px, 140px) minmax(150px, max-content);
    align-items: end;
    margin: 22px 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.product-field-variant {
    grid-column: 1 / -1;
}

.product-field-quantity {
    grid-column: 1;
}

.add-to-cart .button {
    grid-column: 2;
}

.product-field {
    display: grid;
    gap: 6px;
}

.product-field label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.add-to-cart select,
.add-to-cart input,
.checkout-form input,
.checkout-form textarea,
.cart-row input {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    color: inherit;
    font: inherit;
}

.add-to-cart .button {
    min-height: 42px;
}

.cart-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 36px;
    align-items: start;
}

.cart-items {
    border-top: 1px solid var(--line);
}

.cart-row {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 110px 140px;
    gap: 18px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.cart-row h2 {
    margin: 0 0 7px;
    font-size: 19px;
}

.cart-row p {
    margin: 4px 0;
}

.cart-row label span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 13px;
}

.cart-image {
    display: grid;
    width: 96px;
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    background: #e9f2f8;
    color: var(--muted);
    font-size: 12px;
}

.cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-update {
    margin-top: 16px;
}

.checkout-panel {
    position: sticky;
    top: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
}

.checkout-form textarea {
    resize: vertical;
}

.checkout-form .button {
    margin-top: 8px;
}

.form-error {
    padding: 10px 12px;
    border-left: 3px solid #b42318;
    background: #fff1f0;
    color: #8a1c13;
}

.empty-state,
.order-success {
    max-width: 680px;
    padding: 24px 0;
}

.order-list,
.owner-order-items {
    display: grid;
    gap: 14px;
}

.owner-order {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.owner-order header,
.owner-order-items div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.owner-order h2 {
    margin: 4px 0;
}

.owner-order-items {
    margin-top: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 480px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.product-detail-media {
    position: relative;
    min-height: 360px;
    border-radius: 8px;
    aspect-ratio: 1;
}

.product-gallery {
    position: relative;
    min-width: 0;
}

.product-gallery-lens,
.product-gallery-zoom {
    display: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 980px) {
    .product-detail-media {
        cursor: crosshair;
    }

    .product-gallery-lens {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 3;
        width: 150px;
        height: 150px;
        border: 1px solid rgba(0, 88, 135, 0.65);
        background: rgba(255, 255, 255, 0.35);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
        pointer-events: none;
        will-change: transform;
    }

    .product-gallery-zoom {
        position: absolute;
        top: 0;
        left: calc(100% + 32px);
        z-index: 12;
        width: min(440px, calc(100vw - 580px));
        min-width: 360px;
        aspect-ratio: 1;
        border: 1px solid var(--line);
        border-radius: 8px;
        background-color: #ffffff;
        background-repeat: no-repeat;
        box-shadow: 0 18px 42px rgba(16, 38, 61, 0.2);
        pointer-events: none;
    }

    .product-gallery.is-zooming {
        z-index: 11;
    }

    .product-gallery.is-zooming .product-gallery-lens,
    .product-gallery.is-zooming .product-gallery-zoom {
        display: block;
    }
}

.product-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 72px));
    gap: 10px;
    margin-top: 10px;
}

.product-gallery-thumbnail {
    aspect-ratio: 1;
    overflow: hidden;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
}

.product-gallery-thumbnail:hover,
.product-gallery-thumbnail:focus-visible,
.product-gallery-thumbnail.is-active {
    border-color: var(--storefront-accent);
}

.product-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-expand {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    place-items: center;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.16);
    cursor: zoom-in;
}

.product-gallery-expand:hover,
.product-gallery-expand:focus-visible {
    border-color: var(--storefront-accent);
}

.zoom-icon {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.zoom-icon::before,
.zoom-icon::after {
    position: absolute;
    content: '';
}

.zoom-icon::before {
    right: -6px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
}

.zoom-icon::after {
    top: 5px;
    left: 3px;
    width: 6px;
    height: 2px;
    background: currentColor;
    box-shadow: 2px -2px 0 -0.5px currentColor;
}

.product-lightbox {
    width: min(94vw, 1100px);
    height: min(94vh, 1100px);
    padding: 22px;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
}

.product-lightbox::backdrop {
    background: rgba(10, 18, 27, 0.84);
}

.product-lightbox img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    place-items: center;
    background: #ffffff;
    color: #111827;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.product-detail-body h1 {
    margin: 8px 0 14px;
    line-height: 1.15;
}

.product-panel {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.product-panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.option-group {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-values span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.variant-list {
    display: grid;
    gap: 10px;
}

.variant-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.variant-row span,
.variant-row small {
    color: var(--muted);
}

.attribute-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.attribute-list div {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.attribute-list dt {
    color: var(--muted);
    font-weight: 700;
}

.attribute-list dd {
    margin: 0;
}

.storefront-hero {
    border-bottom-color: var(--storefront-accent);
}

.storefront-hero-slider {
    position: relative;
    overflow: hidden;
}

.storefront-hero-slide {
    display: none;
    width: 100%;
}

.storefront-hero-slide.is-active {
    display: flex;
}

.storefront-hero-slider .storefront-hero-slide:not(.is-active) {
    display: none;
}

.storefront-hero-slide:not(.has-image) {
    min-height: 320px;
    align-items: center;
}

.storefront-hero-slide.vertical-top { align-items: flex-start; }
.storefront-hero-slide.vertical-center { align-items: center; }
.storefront-hero-slide.vertical-bottom { align-items: flex-end; }

.storefront-hero-content {
    display: flex;
    width: 100%;
    flex-direction: column;
}

.storefront-hero-content > .storefront-hero-eyebrow { order: 1; }
.storefront-hero-content > h1,
.storefront-hero-content > h2 { order: 2; }
.storefront-hero-content > p { order: 3; }
.storefront-hero-content > .storefront-hero-actions { order: 4; }
.storefront-hero.order-buttons-first .storefront-hero-content > p:not(.storefront-hero-eyebrow) { order: 4; }
.storefront-hero.order-buttons-first .storefront-hero-content > .storefront-hero-actions {
    order: 3;
    margin-bottom: 14px;
}

.storefront-hero.content-narrow .storefront-hero-content { max-width: 520px; }
.storefront-hero.content-medium .storefront-hero-content { max-width: 760px; }
.storefront-hero.content-wide .storefront-hero-content { max-width: 100%; }
.storefront-hero.align-center .storefront-hero-content { margin-right: auto; margin-left: auto; }
.storefront-hero.align-right .storefront-hero-content { margin-left: auto; }

.storefront-hero-slide h2 {
    margin: 0 0 12px;
    font-size: 2em;
    line-height: 1.15;
}

.storefront-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.storefront-hero.align-center .storefront-hero-actions { justify-content: center; }
.storefront-hero.align-right .storefront-hero-actions { justify-content: flex-end; }

.storefront-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 50%;
    place-items: center;
    color: #ffffff;
    background: rgba(16, 38, 61, 0.64);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.storefront-slider-arrow.is-prev { left: max(12px, calc((100% - 1180px) / 2)); }
.storefront-slider-arrow.is-next { right: max(12px, calc((100% - 1180px) / 2)); }

.storefront-slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    z-index: 4;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

.storefront-slider-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(16, 38, 61, 0.5);
    cursor: pointer;
}

.storefront-slider-dots button.is-active {
    background: #ffffff;
}

.storefront-page {
    --storefront-accent: #0077b6;
}

.storefront-preview-bar {
    border-bottom: 1px solid #d29a22;
    color: #10263d;
    background: #fff3c4;
}

.storefront-preview-bar .wrap {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.storefront-preview-bar strong,
.storefront-preview-bar span {
    display: block;
}

.storefront-preview-bar span {
    font-size: 13px;
}

.storefront-preview-bar a {
    flex: 0 0 auto;
    font-weight: 700;
}

.storefront-logo {
    display: block;
    width: auto;
    max-width: 180px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
}

.storefront-header-row {
    position: relative;
    flex-wrap: nowrap;
}

.storefront-header-row .brand {
    min-width: 0;
}

.storefront-menu-toggle {
    display: none;
}

.storefront-brand-name {
    margin-left: 10px;
    overflow-wrap: anywhere;
}

.storefront-hero .button {
    background: var(--storefront-accent);
}

.storefront-hero.has-image {
    min-height: 380px;
    display: flex;
    align-items: center;
    color: #ffffff;
    background:
        linear-gradient(rgba(11, 25, 38, var(--storefront-hero-overlay)), rgba(11, 25, 38, var(--storefront-hero-overlay))),
        var(--storefront-hero-image) var(--storefront-hero-position, center) / cover no-repeat;
}

.storefront-hero.height-compact { min-height: 300px; }
.storefront-hero.height-regular { min-height: 380px; }
.storefront-hero.height-tall { min-height: 520px; }

.storefront-hero.align-center { text-align: center; }
.storefront-hero.align-right { text-align: right; }
.storefront-hero.align-center p { margin-right: auto; margin-left: auto; }
.storefront-hero.align-right p { margin-left: auto; }

.storefront-hero-eyebrow {
    margin-bottom: 8px;
    color: var(--storefront-accent);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.storefront-hero.has-image .storefront-hero-eyebrow,
.storefront-template-accent .storefront-hero-eyebrow {
    color: #ffffff;
}

.storefront-product-grid.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.storefront-product-grid.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.storefront-product-grid.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.storefront-product-block {
    position: relative;
}

.storefront-product-block.is-carousel {
    padding: 0 48px;
}

.is-carousel .storefront-product-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.is-carousel .storefront-product-grid::-webkit-scrollbar { display: none; }
.is-carousel .storefront-product-grid .product-card { scroll-snap-align: start; }
.is-carousel .storefront-product-grid.columns-3 .product-card { flex: 0 0 calc((100% - 36px) / 3); }
.is-carousel .storefront-product-grid.columns-4 .product-card { flex: 0 0 calc((100% - 54px) / 4); }
.is-carousel .storefront-product-grid.columns-5 .product-card { flex: 0 0 calc((100% - 72px) / 5); }

.product-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(16, 38, 61, 0.14);
    font-size: 26px;
    cursor: pointer;
    transform: translateY(-50%);
}

.product-carousel-arrow.is-prev { left: 0; }
.product-carousel-arrow.is-next { right: 0; }
.product-carousel-arrow:disabled { opacity: 0.3; cursor: default; }

.storefront-hero.has-image p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
}

.storefront-template-catalog .storefront-hero {
    padding-top: 28px;
    padding-bottom: 24px;
}

.storefront-template-catalog .storefront-featured {
    background: var(--surface);
}

.storefront-template-accent .storefront-hero {
    color: #ffffff;
    background: var(--storefront-accent);
}

.storefront-template-accent .storefront-hero.has-image {
    background:
        linear-gradient(rgba(11, 25, 38, var(--storefront-hero-overlay)), rgba(11, 25, 38, var(--storefront-hero-overlay))),
        var(--storefront-hero-image) var(--storefront-hero-position, center) / cover no-repeat;
}

.storefront-template-accent .storefront-hero p {
    color: rgba(255, 255, 255, 0.84);
}

.storefront-template-accent .storefront-hero .button {
    color: var(--storefront-accent);
    background: #ffffff;
}

.storefront-hero.tone-light,
.storefront-hero.tone-light h1,
.storefront-hero.tone-light h2 {
    color: #ffffff;
}

.storefront-hero.tone-light p,
.storefront-hero.tone-light .storefront-hero-eyebrow {
    color: rgba(255, 255, 255, 0.9);
}

.storefront-hero.tone-dark,
.storefront-hero.tone-dark h1,
.storefront-hero.tone-dark h2 {
    color: #10263d;
}

.storefront-hero.tone-dark p { color: #40566d; }
.storefront-hero.tone-dark .storefront-hero-eyebrow { color: var(--storefront-accent); }

.storefront-hero.buttons-light .storefront-hero-actions .button:first-child {
    border-color: #ffffff;
    color: var(--storefront-accent);
    background: #ffffff;
}

.storefront-hero.buttons-outline .storefront-hero-actions .button:first-child {
    border-color: currentColor;
    color: inherit;
    background: transparent;
}

.storefront-shell {
    --storefront-content-width: 1080px;
    --storefront-page-bg: #ffffff;
    --storefront-radius: 8px;
    --storefront-section-space: 36px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--storefront-page-bg);
    font-family: Arial, Helvetica, sans-serif;
    --accent: var(--storefront-accent);
    --accent-dark: var(--storefront-accent);
}

.storefront-shell .main { flex: 1; background: var(--storefront-page-bg); }
.storefront-shell .wrap { width: min(var(--storefront-content-width), calc(100% - 32px)); }
.storefront-shell .section { padding-top: var(--storefront-section-space); padding-bottom: var(--storefront-section-space); }

.storefront-shell.font-modern { font-family: "Segoe UI", Arial, sans-serif; }
.storefront-shell.font-humanist { font-family: "Trebuchet MS", Arial, sans-serif; }
.storefront-shell.font-serif { font-family: Georgia, "Times New Roman", serif; }
.storefront-shell.font-serif button,
.storefront-shell.font-serif input,
.storefront-shell.font-serif select,
.storefront-shell.font-serif textarea { font-family: inherit; }

.storefront-shell.width-compact { --storefront-content-width: 960px; }
.storefront-shell.width-wide { --storefront-content-width: 1280px; }

.storefront-shell.background-soft { --storefront-page-bg: #f4f6f8; --surface: #ffffff; }
.storefront-shell.background-cool { --storefront-page-bg: #eef5f6; --surface: #ffffff; }

.storefront-shell.corners-square { --storefront-radius: 0; }
.storefront-shell.corners-rounded { --storefront-radius: 16px; }

.storefront-shell.spacing-compact { --storefront-section-space: 24px; }
.storefront-shell.spacing-spacious { --storefront-section-space: 56px; }

.storefront-shell .button,
.storefront-shell .product-card,
.storefront-shell .category-nav a,
.storefront-shell .storefront-category-grid a,
.storefront-shell .storefront-benefit-grid article,
.storefront-shell .storefront-review-grid article,
.storefront-shell .storefront-faq-list details,
.storefront-shell .checkout-panel,
.storefront-shell .cart-image,
.storefront-shell .add-to-cart select,
.storefront-shell .add-to-cart input,
.storefront-shell .checkout-form input,
.storefront-shell .checkout-form textarea,
.storefront-shell .cart-row input {
    border-radius: var(--storefront-radius);
}

.storefront-shell.cards-outlined .product-card {
    border: 1px solid var(--line);
    box-shadow: none;
}

.storefront-shell.cards-shadow .product-card {
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(16, 38, 61, 0.14);
}

.storefront-shell.cards-flat .product-card {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.storefront-contacts {
    background: var(--surface);
}

.storefront-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.storefront-category-grid a {
    position: relative;
    display: flex;
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    font-weight: 800;
    overflow: hidden;
}

.storefront-category-grid a.has-image {
    min-height: 160px;
    align-items: flex-end;
    color: #ffffff;
    border: 0;
    background:
        linear-gradient(180deg, rgba(11, 25, 38, 0.04) 25%, rgba(11, 25, 38, 0.82) 100%),
        var(--category-image) center / cover no-repeat;
}

.storefront-category-grid a.has-image > span {
    position: relative;
    z-index: 1;
}

.storefront-category-arrow {
    font-size: 22px;
}

.storefront-category-grid a:hover {
    border-color: var(--storefront-accent);
    text-decoration: none;
}

.storefront-benefits {
    background: var(--surface);
}

.storefront-benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.storefront-benefit-grid article {
    position: relative;
    padding: 20px;
    border-left: 4px solid var(--storefront-accent);
    background: #ffffff;
}

.storefront-benefit-icon {
    display: block;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
}

.storefront-benefit-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.storefront-benefit-icon.is-system {
    background: var(--benefit-color, var(--storefront-accent));
    -webkit-mask: var(--benefit-media) center / contain no-repeat;
    mask: var(--benefit-media) center / contain no-repeat;
}

.storefront-benefit-icon.is-system img {
    display: none;
}

.storefront-benefit-grid h3,
.storefront-benefit-grid p {
    margin: 0;
}

.storefront-content-layout {
    display: grid;
    gap: 32px;
    align-items: center;
}

.storefront-content-layout.has-image {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
}

.storefront-content-band.image-right .storefront-content-layout > img {
    grid-column: 2;
    grid-row: 1;
}

.storefront-content-layout > img {
    width: 100%;
    max-height: 440px;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.storefront-content-layout h2 {
    margin-bottom: 14px;
}

.storefront-content-layout p {
    color: var(--muted);
    white-space: normal;
}

.storefront-content-layout .button {
    margin-top: 10px;
}

.storefront-reviews {
    background: var(--surface);
}

.storefront-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.storefront-review-grid article {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.storefront-review-rating {
    margin-bottom: 12px;
    color: #b8c0ca;
}

.storefront-review-rating .is-filled {
    color: #e5a100;
}

.storefront-review-grid blockquote {
    margin: 0 0 16px;
    color: var(--muted);
}

.storefront-review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.storefront-review-author > img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    object-fit: cover;
}

.storefront-review-author > img.shape-circle { border-radius: 50%; }
.storefront-review-author > img.shape-rounded { border-radius: 12px; }
.storefront-review-author > img.shape-square { border-radius: 0; }

.storefront-faq-list {
    display: grid;
    max-width: 860px;
    gap: 10px;
}

.storefront-faq-list details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.storefront-faq-list summary {
    padding: 16px 48px 16px 18px;
    font-weight: 800;
    cursor: pointer;
}

.storefront-faq-list details > div {
    padding: 0 18px 18px;
    color: var(--muted);
}

.storefront-benefit-grid p {
    margin-top: 8px;
    color: var(--muted);
}

.store-contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    align-items: baseline;
}

.store-contact-list a {
    font-weight: 700;
}

.store-contact-list p {
    flex-basis: 100%;
    margin: 0;
}

.media-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 100px 140px auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.media-row:last-child {
    border-bottom: 0;
}

@media (min-width: 761px) and (max-width: 1100px) {
    .storefront-product-grid.columns-4,
    .storefront-product-grid.columns-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .storefront-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .storefront-preview-bar .wrap {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .storefront-content-layout.has-image {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .storefront-review-grid {
        grid-template-columns: 1fr;
    }

    .storefront-hero-content {
        max-width: 100% !important;
    }

    .storefront-hero.height-compact { min-height: 280px; }
    .storefront-hero.height-regular { min-height: 340px; }
    .storefront-hero.height-tall { min-height: 430px; }

    .storefront-content-band.image-right .storefront-content-layout > img {
        grid-column: 1;
        grid-row: auto;
    }

    .storefront-header-row {
        min-height: 58px;
    }

    .storefront-header-row .brand {
        max-width: calc(100% - 54px);
    }

    .storefront-logo {
        max-width: 128px;
        height: 38px;
    }

    .storefront-brand-name {
        max-width: min(48vw, 190px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .storefront-menu-toggle {
        display: grid;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        place-content: center;
        gap: 4px;
        background: #ffffff;
        cursor: pointer;
    }

    .storefront-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--ink);
        transition: transform 160ms ease, opacity 160ms ease;
    }

    .storefront-header.is-menu-open .storefront-menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .storefront-header.is-menu-open .storefront-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .storefront-header.is-menu-open .storefront-menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .storefront-header .storefront-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 30;
        display: none;
        padding: 10px 16px 14px;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #ffffff;
        box-shadow: 0 14px 24px rgba(16, 38, 61, 0.14);
    }

    .storefront-header.is-menu-open .storefront-menu {
        display: flex;
    }

    .storefront-header .storefront-menu a {
        display: block;
        min-height: 44px;
        padding: 11px 0;
        border-bottom: 1px solid var(--line);
    }

    .storefront-header .storefront-menu a:last-child {
        border-bottom: 0;
    }

    .storefront-catalog .catalog-head,
    .product-detail,
    .variant-row,
    .attribute-list div,
    .media-row {
        grid-template-columns: 1fr;
    }

    .storefront-catalog .catalog-head {
        align-items: flex-start;
    }

    .product-detail-media {
        min-height: 260px;
    }

    .cart-page,
    .cart-row,
    .add-to-cart {
        grid-template-columns: 1fr;
    }

    .product-field-variant,
    .product-field-quantity,
    .add-to-cart .button {
        grid-column: 1;
    }

    .checkout-panel {
        position: static;
    }

    .cart-row {
        align-items: start;
    }

    .owner-order header,
    .owner-order-items div {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .storefront-product-grid.columns-3,
    .storefront-product-grid.columns-4,
    .storefront-product-grid.columns-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .storefront-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 25px;
    }

    .storefront-product-block.is-carousel {
        padding: 0 34px;
    }

    .is-carousel .storefront-product-grid.columns-3 .product-card,
    .is-carousel .storefront-product-grid.columns-4 .product-card,
    .is-carousel .storefront-product-grid.columns-5 .product-card {
        flex-basis: min(78vw, 280px);
    }

    .product-carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 21px;
    }

    .storefront-hero-slide h2 {
        font-size: 1.65em;
    }
}
