@import url("theme-tokens.css");

:root {
    --ink: var(--theme-text-primary);
    --muted: var(--theme-text-secondary);
    --mint: var(--theme-accent);
    --ink-on-mint: var(--theme-text-on-accent);
}

.store-shell {
    --store-yellow: #ffc857;
    --store-coral: #ff7b6b;
    --store-coral-ink: var(--tooltip-ink);
    --store-blue: #4d7cff;
    --store-category-violet: linear-gradient(145deg, #6041aa, #271957);
    --store-category-teal: linear-gradient(145deg, #327688, #123343);
    --store-category-coral: linear-gradient(145deg, #d97a5c, #5d2c29);
    --store-category-blue: linear-gradient(145deg, #3c65a0, #172b4c);
    max-width: 1280px;
    margin: auto;
    padding: 0 var(--space-xl);
}

.store-shell .button {
    border: 0;
    cursor: pointer;
}

.store-toast {
    position: fixed;
    top: 88px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    padding: 12px 18px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--theme-accent) 14%, var(--theme-panel));
    color: var(--theme-text-primary);
    box-shadow: 0 12px 40px color-mix(in srgb, var(--theme-bg) 70%, transparent);
    font-weight: 600;
}

.store-toast i {
    color: var(--theme-accent);
    margin-right: 8px;
}

.store-toast a {
    color: var(--theme-link);
    text-decoration: underline;
    margin-left: 18px;
}

.store-hero {
    min-height: 610px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 80px;
    padding: 80px 4%;
    background:
        radial-gradient(circle at 76% 45%, var(--theme-info-soft), transparent 35%),
        radial-gradient(circle at 15% 25%, var(--theme-accent-soft), transparent 30%);
    border-bottom: 1px solid var(--line);
}

.store-hero h1 {
    font-size: clamp(54px, 7vw, 92px);
}

.store-hero > div > p:not(.eyebrow) {
    max-width: 570px;
    color: var(--muted);
    font-size: 18px;
}

.store-trust {
    display: flex;
    gap: 22px;
    margin-top: 34px;
    color: var(--muted);
    font-size: 12px;
}

.store-trust i {
    color: var(--mint);
    font-size: 18px;
    vertical-align: middle;
}

.hero-product-stack {
    height: 400px;
    position: relative;
    display: grid;
    place-items: center;
}

.stack-card {
    position: absolute;
    width: 295px;
    height: 360px;
    border-radius: 8px;
    border: 1px solid var(--theme-border-strong);
}

.stack-back {
    background: var(--store-coral);
    transform: rotate(12deg) translate(22px, -2px);
}

.stack-mid {
    background: var(--store-blue);
    transform: rotate(5deg) translate(6px, -5px);
}

.stack-front {
    color: var(--ink);
    text-decoration: none;
    background: linear-gradient(
        145deg,
        var(--theme-surface-strong),
        var(--theme-panel)
    );
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 30px 80px color-mix(in srgb, var(--theme-bg) 44%, transparent);
}

.stack-front:before {
    content: "";
    position: absolute;
    inset: 25px;
    border: 1px solid
        color-mix(in srgb, var(--theme-text-primary) 12%, transparent);
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0 39px,
            color-mix(in srgb, var(--theme-text-primary) 8%, transparent) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0 39px,
            color-mix(in srgb, var(--theme-text-primary) 8%, transparent) 40px
        );
}

.stack-front > * {
    position: relative;
}

.stack-front:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 5px;
}

.stack-front .stack-product-cover {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin: 26px 0 auto;
    min-height: 0;
}

.stack-front b,
.stack-front span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.stack-front small {
    position: absolute;
    top: 35px;
    left: 35px;
    color: var(--mint);
    font-weight: 700;
}

.stack-front i {
    font-size: 75px;
    color: var(--mint);
    margin-bottom: auto;
}

.stack-front b {
    font-size: 28px;
    line-height: 1.15;
}

.stack-front span {
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
}

.hero-price {
    position: absolute;
    right: 3%;
    bottom: 10%;
    background: var(--store-yellow);
    color: var(--theme-text-primary);
    border-radius: 50%;
    width: 105px;
    height: 105px;
    display: grid;
    place-content: center;
    text-align: center;
    transform: rotate(8deg);
    font-size: 11px;
}

.hero-price strong {
    font-size: 18px;
    overflow-wrap: anywhere;
}

.category-strip {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    overflow: auto;
}

.fulfillment-filter {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-lg) 0 0;
}

.fulfillment-filter a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.fulfillment-filter a:hover,
.fulfillment-filter a.active {
    border-color: var(--mint);
    background: color-mix(in srgb, var(--mint) 10%, var(--panel));
    color: var(--ink);
}

.category-strip a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 10px 15px;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 30px;
    font-size: 13px;
}

.category-strip a span {
    display: grid;
    gap: 1px;
}

.category-strip a b {
    font-weight: 600;
}

.category-strip a small {
    max-width: 210px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
}

.category-strip a i {
    margin-right: 7px;
}

.category-strip a:hover,
.category-strip a.active {
    color: var(--ink);
    border-color: var(--line);
    background: var(--panel);
}

.featured-product {
    width: 100%;
    min-width: 0;
    margin: 100px auto;
    max-width: 1120px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.featured-product > * {
    min-width: 0;
    max-width: 100%;
}

.featured-art,
.product-main-art {
    min-height: 440px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        var(--theme-surface-strong),
        var(--theme-panel)
    );
}

.featured-art {
    width: 100%;
    max-width: 100%;
}

.featured-art:before,
.product-main-art:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        30deg,
        transparent 49%,
        var(--theme-glass-subtle) 50%,
        transparent 51%
    );
    background-size: 45px 45px;
}

.featured-art img,
.product-main-art img,
.store-card-art img {
    display: block;
    max-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-art > i {
    font-size: 150px;
    color: var(--mint);
    position: relative;
}

.featured-art > span {
    position: absolute;
    left: 20px;
    top: 20px;
    background: var(--mint);
    color: var(--ink-on-mint);
    padding: 7px 11px;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 800;
}

.featured-product h2 {
    font-size: 44px;
    overflow-wrap: anywhere;
}

.featured-product > div > p:not(.eyebrow) {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.featured-product ul,
.product-copy ul {
    padding: 0;
    list-style: none;
}

.featured-product li {
    display: flex;
    align-items: flex-start;
    margin: 12px 0;
    overflow-wrap: anywhere;
}

.featured-product li i {
    flex: 0 0 auto;
    color: var(--mint);
    margin-right: 8px;
}

.featured-buy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    margin-top: 30px;
}

.featured-buy > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

.featured-buy b {
    font-size: 32px;
    overflow-wrap: anywhere;
}

.featured-buy .button {
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    overflow-wrap: anywhere;
}

.featured-buy del,
.price del,
.detail-price del {
    color: var(--muted);
}

.products-section {
    padding: 90px 0;
}

.products-section > header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 35px;
}

.products-section h2 {
    font-size: 44px;
    margin-bottom: 0;
}

.store-filters {
    display: flex;
    gap: 10px;
}

.store-filters label {
    position: relative;
}

.store-filters label i {
    position: absolute;
    left: 12px;
    top: 11px;
    color: var(--muted);
}

.store-filters input,
.store-filters select,
.order-lookup input {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 7px;
    padding: 11px 12px;
}

.store-filters input {
    padding-left: 37px;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.store-card {
    background: var(--panel);
    border: var(--border-size) solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: 0.25s;
}

.store-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(
        in srgb,
        var(--theme-text-primary) 22%,
        transparent
    );
}

.store-card-art {
    height: 260px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.store-card-art > i {
    font-size: 88px;
    color: var(--theme-text-on-dark);
    filter: drop-shadow(0 15px 20px var(--theme-shadow-color));
}

.art-Courses {
    background: var(--store-category-violet);
}

.art-SketchUp.Models {
    background: var(--store-category-teal);
}

.art-House.Plans {
    background: var(--store-category-coral);
}

.art-PDF.Guides {
    background: var(--store-category-blue);
}

.sale-badge,
.format-badge,
.fulfillment-badge {
    position: absolute;
    top: var(--space-sm);
    padding: var(--space-2xs) var(--space-xs);
    border-radius: var(--radius-xs);
    font-size: var(--smallest-font-size);
    font-weight: var(--font-extra-bold);
}

.sale-badge {
    left: var(--space-sm);
    background: var(--store-coral);
    color: var(--store-coral-ink);
}

.format-badge {
    right: var(--space-sm);
    background: var(--media-overlay-bg);
    border: var(--border-size) solid var(--media-overlay-border);
    color: var(--media-overlay-ink);
}

.fulfillment-badge {
    left: var(--space-sm);
    bottom: var(--space-sm);
    top: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: var(--border-size) solid var(--media-overlay-border);
    background: var(--media-overlay-bg);
    color: var(--media-overlay-ink);
}

.fulfillment-badge.is-physical {
    background: color-mix(in srgb, var(--theme-info) 76%, var(--theme-bg));
}

.store-card-body {
    padding: var(--space-lg);
}

.store-card-body > p {
    color: var(--mint);
    text-transform: uppercase;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.store-card-body h3 {
    font-size: 19px;
    margin: 7px 0;
}

.store-card-body > span {
    color: var(--muted);
    font-size: 13px;
    display: block;
    min-height: 42px;
}

.store-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: var(--border-size) solid var(--line);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
}

.price {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
}

.price b {
    font-size: 20px;
}

.price del {
    font-size: 12px;
}

.store-card-foot button {
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--ink-on-mint);
    font-size: 20px;
    cursor: pointer;
}

.store-card-options {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--ink-on-mint);
    font-size: 12px;
    font-weight: 800;
}

.store-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    color: var(--muted);
}

.store-empty > i {
    font-size: 48px;
    color: var(--mint);
}

.store-empty h3,
.store-empty h2 {
    color: var(--ink);
}

/* Laravel's pagination markup uses utility classes that are not loaded by the
   storefront. Keep these controls self-contained so its SVG arrows cannot
   expand to the width of the results region. */
.store-pagination {
    margin-top: var(--space-2xl);
}

.store-pagination nav > div:first-child,
.store-pagination nav > div:last-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.store-pagination nav > div:first-child {
    display: none;
}

.store-pagination nav > div:last-child > div:last-child > span {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--theme-bg) 18%, transparent);
}

.store-pagination nav > div:last-child > div:last-child a,
.store-pagination nav > div:last-child > div:last-child span[aria-current] > span,
.store-pagination nav > div:last-child > div:last-child span[aria-disabled] > span {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: var(--small-font-size);
    font-weight: 700;
    line-height: 1;
}

.store-pagination nav > div:last-child > div:last-child > span > :first-child,
.store-pagination nav > div:last-child > div:last-child > span > :first-child > span {
    border-left: 0;
}

.store-pagination nav > div:last-child > div:last-child a:hover,
.store-pagination nav > div:last-child > div:last-child span[aria-current] > span {
    background: var(--mint);
    color: var(--ink-on-mint);
}

.store-pagination nav span[aria-disabled] > span {
    cursor: not-allowed;
    opacity: 0.42;
}

.store-pagination nav svg {
    display: block;
    width: 20px;
    height: 20px;
    max-width: 20px;
    flex: 0 0 20px;
}

@media (max-width: 639px) {
    .store-pagination nav > div:first-child {
        display: flex;
    }

    .store-pagination nav > div:first-child > a,
    .store-pagination nav > div:first-child > span {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding: 0 var(--space-md);
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        background: var(--panel);
        color: var(--ink);
        font-size: var(--small-font-size);
        font-weight: 700;
    }

    .store-pagination nav > div:first-child > span {
        color: var(--muted);
        cursor: not-allowed;
        opacity: 0.55;
    }

    .store-pagination nav > div:last-child {
        display: none;
    }
}

.store-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin: 80px 0;
}

.store-benefits article {
    padding: 32px;
    background: var(--bg);
}

.store-benefits i {
    font-size: 27px;
    color: var(--mint);
}

.store-benefits h3 {
    margin-bottom: 5px;
}

.store-benefits p {
    font-size: 12px;
    color: var(--muted);
}

.order-lookup {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: center;
    margin: 100px 0;
    padding: 60px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.order-lookup h2 {
    font-size: 40px;
}

.order-lookup p {
    color: var(--muted);
}

.order-lookup form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.order-lookup button,
.order-lookup small {
    grid-column: 1/-1;
}

.breadcrumbs {
    padding: 30px 0;
    color: var(--muted);
    font-size: var(--smaller-font-size);
    display: flex;
    gap: var(--space-xs);
}

.breadcrumbs a:hover {
    color: var(--mint);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: start;
    gap: clamp(36px, 5vw, 70px);
    padding: 30px 0 90px;
}

.product-gallery,
.product-info {
    min-width: 0;
}

.product-main-art {
    min-height: 560px;
}

.product-main-art > i {
    font-size: 170px;
    position: relative;
    color: var(--theme-text-on-dark);
}

.product-main-art > span {
    position: absolute;
    bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 11px;
}

.product-mini {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    padding: var(--space-md);
    color: var(--muted);
    font-size: var(--tiny-font-size);
}

.product-videos {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.product-videos h2 {
    margin: 0;
    font-size: var(--compact-font-size);
}

.product-videos figure {
    overflow: hidden;
    margin: 0;
    border: var(--border-size) solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
}

.product-videos video {
    display: block;
    width: 100%;
    max-height: 520px;
    aspect-ratio: 16/9;
    background: #05070a;
    object-fit: contain;
}

.product-audio-preview {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: var(--space-md);
    border: var(--border-size) solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
}

.product-audio-preview > div {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.product-audio-preview > div > i {
    color: var(--mint);
    font-size: 28px;
}

.product-audio-preview span,
.product-audio-preview b,
.product-audio-preview small {
    display: block;
}

.product-audio-preview small {
    margin-top: 2px;
    color: var(--muted);
    line-height: 1.5;
}

.product-audio-preview audio {
    width: 100%;
}

.product-mini i {
    color: var(--mint);
    margin-right: var(--space-2xs);
}

.product-info h1 {
    margin-bottom: var(--space-sm);
    font-size: clamp(40px, 4.5vw, 62px);
    line-height: 1.02;
}

.rating {
    font-size: var(--small-font-size);
}

.rating span {
    color: var(--store-yellow);
    letter-spacing: var(--border-size-strong);
}

.rating small {
    color: var(--muted);
}

.product-info .lead {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.detail-price {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0 0 var(--space-md);
}

.detail-price b {
    font-size: 36px;
}

.detail-price span {
    background: var(--theme-accent-strong);
    color: var(--ink);
    font-size: var(--tiny-font-size);
    padding: var(--space-2xs) var(--space-xs);
    border-radius: var(--radius-xs);
}

.add-cart {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--normal-font-size);
    transition:
        opacity 0.2s,
        filter 0.2s,
        transform 0.2s;
}

.add-cart:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    filter: saturate(0.25);
    transform: none;
}

.product-purchase-card {
    margin-top: var(--space-xl);
    padding: clamp(18px, 2.2vw, 26px);
    border: var(--border-size) solid var(--line);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--panel) 94%, var(--mint) 6%);
    box-shadow: 0 18px 50px color-mix(in srgb, var(--ink) 8%, transparent);
}

.product-purchase-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.product-purchase-options > label:last-child {
    grid-column: 1 / -1;
}

.product-purchase-options label,
.cart-quantity-form label {
    display: grid;
    gap: var(--space-2xs);
    color: var(--muted);
    font-size: var(--smaller-font-size);
    font-weight: var(--font-bold);
}

.product-purchase-options select,
.product-purchase-options input,
.cart-quantity-form input {
    min-height: 44px;
    width: 100%;
    border: var(--border-size) solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    color: var(--ink);
    padding: 0 var(--space-sm);
    font: inherit;
}

.product-purchase-options select {
    cursor: pointer;
}

.product-purchase-options option:disabled {
    color: var(--muted);
}

.product-purchase-options :is(select, input):focus,
.cart-quantity-form input:focus {
    outline: var(--focus-ring-size) solid var(--mint);
    outline-offset: var(--focus-ring-offset);
}

.buy-now {
    display: block;
    text-align: center;
    margin: var(--space-sm);
    color: var(--muted);
    font-size: var(--smaller-font-size);
    text-decoration: underline;
}

.secure-note {
    border-top: var(--border-size) solid var(--line);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--space-sm);
}

.secure-note i {
    grid-row: 1/3;
    color: var(--mint);
    font-size: 25px;
}

.secure-note span {
    color: var(--muted);
    font-size: var(--tiny-font-size);
}

.product-copy {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
    border-top: var(--border-size) solid var(--line);
    padding: 90px 5%;
}

.product-copy h2 {
    font-size: 44px;
}

.prose {
    color: var(--muted);
    line-height: 1.9;
}

.product-copy aside {
    background: var(--panel);
    border: var(--border-size) solid var(--line);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
}

.product-copy li {
    margin: 15px 0;
}

.product-copy li i {
    color: var(--mint);
    margin-right: 10px;
}

.product-copy aside p {
    font-size: var(--tiny-font-size);
    color: var(--muted);
}

.related {
    padding: 70px 0 110px;
}

.narrow-page {
    max-width: 1120px;
    min-height: 75vh;
}

.page-title {
    padding: 35px 0;
}

.page-title h1,
.checkout-head h1 {
    font-size: 58px;
}

.page-title > p:last-child {
    color: var(--muted);
}

.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr;
    gap: 55px;
    padding-bottom: 100px;
}

.fulfillment-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0 0 var(--space-lg);
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--theme-info) 45%, var(--line));
    border-radius: 10px;
    background: color-mix(in srgb, var(--theme-info) 8%, var(--panel));
}

.fulfillment-note > i {
    color: var(--theme-info);
    font-size: 24px;
}

.fulfillment-note p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.checkout-layout {
    align-items: start;
}

.cart-items article {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    gap: 18px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}

.cart-thumb,
.checkout-thumb {
    height: 75px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.cart-thumb img,
.checkout-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-thumb i {
    font-size: 35px;
}

.cart-items article small {
    color: var(--mint);
    text-transform: uppercase;
}

.cart-items article h3 {
    margin: 4px 0;
}

.cart-items article span {
    font-size: 11px;
    color: var(--muted);
}

.cart-items article form button {
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
}

.cart-items article .cart-quantity-form {
    display: flex;
    align-items: end;
    gap: var(--space-xs);
}

.cart-items article .cart-quantity-form input {
    width: 76px;
}

.text-button {
    border: 0;
    background: none;
    color: var(--muted);
    text-decoration: underline;
    margin-top: 20px;
}

.cart-summary,
.checkout-summary {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 28px;
    height: max-content;
    border-radius: 10px;
}

.checkout-summary {
    align-self: start;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: var(--checkout-form-height, none);
    overflow: hidden;
}

.cart-summary > div,
.checkout-summary-footer > div {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 13px;
}

.mint {
    color: var(--mint) !important;
}

.total b {
    font-size: 24px;
}

.total small {
    font-size: 9px;
    color: var(--muted);
}

.cart-summary .button {
    display: block;
    text-align: center;
    margin-top: 24px;
}

.cart-summary > p {
    text-align: center;
    color: var(--muted);
    font-size: 10px;
}

.cart-empty {
    margin: 30px 0 100px;
}

.checkout-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 40px;
}

.checkout-head > span {
    color: var(--mint);
    font-size: 12px;
}

.checkout-form h2 {
    font-size: 20px;
    letter-spacing: 0;
    margin: 10px 0 24px;
}

.checkout-form h2 b {
    display: inline-grid;
    place-items: center;
    background: var(--mint);
    color: var(--ink-on-mint);
    width: 27px;
    height: 27px;
    border-radius: 50%;
    margin-right: 10px;
}

.shipping-checkout { display: grid; gap: 1rem; }
.shipping-checkout label span { color: var(--muted); font-size: .76rem; font-weight: 500; }
.shipping-rate-button { justify-self: start; border: 1px solid var(--border); background: transparent; color: inherit; }
.shipping-rate-status { margin: 0; color: var(--muted); font-size: .86rem; }
.shipping-options { display: grid; gap: .65rem; }
.shipping-options label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem; border: 1px solid var(--border); border-radius: 14px; padding: .9rem; cursor: pointer; }
.shipping-options label:has(input:checked) { border-color: var(--mint); background: color-mix(in srgb, var(--mint) 8%, transparent); }
.shipping-options span { display: grid; gap: .2rem; }
.shipping-options small { color: var(--muted); }

.checkout-access-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0 0 30px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
}

.checkout-access-note > i {
    color: var(--mint);
    font-size: 24px;
}

.checkout-access-note p {
    margin: 4px 0 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.checkout-access-note a {
    color: var(--mint);
    font-size: 12px;
    font-weight: 700;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 45px;
}

.field-grid label {
    font-size: 12px;
    font-weight: 600;
}

.field-grid label.full {
    grid-column: 1/-1;
}

.field-grid input {
    display: block;
    width: 100%;
    margin-top: 7px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 13px;
    border-radius: 6px;
}

.field-grid small {
    display: block;
    color: var(--muted);
    margin-top: 5px;
    font-weight: 400;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 35px;
}

.payment-options label > input {
    position: absolute;
    opacity: 0;
}

.payment-options label > span {
    display: grid;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    cursor: pointer;
}

.payment-options input:checked + span {
    border-color: var(--mint);
    background: var(--theme-accent-soft);
}

.payment-options i {
    font-size: 24px;
    color: var(--mint);
}

.payment-options small {
    color: var(--muted);
}

.pay-button {
    width: 100%;
    padding: 16px;
}

.terms {
    text-align: center;
    color: var(--muted);
    font-size: 10px;
}

.form-errors {
    color: var(--theme-danger);
    margin-bottom: 15px;
}

.checkout-summary article {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    margin: 15px 0;
}

.checkout-summary-items {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 8px;
    border-bottom: 1px solid var(--line);
}

.checkout-summary-footer {
    position: relative;
    z-index: 1;
    background: var(--panel);
    padding-top: 4px;
}

.checkout-summary-footer .coupon-form { margin: 14px 0; }

.checkout-summary article > form { margin: 0; }

.checkout-summary article > form button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.checkout-summary article > form button:hover,
.checkout-summary article > form button:focus-visible {
    border-color: var(--theme-danger);
    color: var(--theme-danger);
}

.checkout-summary article > form button:disabled { cursor: wait; opacity: .55; }

.checkout-summary article.is-removing {
    position: relative;
    min-height: 55px;
    overflow: hidden;
    border-radius: 6px;
}

.checkout-summary article.is-removing > * { visibility: hidden; }

.checkout-summary article.is-removing::before {
    position: absolute;
    inset: 0;
    content: '';
    background:
        linear-gradient(var(--surface-strong), var(--surface-strong)) 0 0 / 55px 55px no-repeat,
        linear-gradient(var(--surface-strong), var(--surface-strong)) 72px 8px / 38% 12px no-repeat,
        linear-gradient(var(--surface-strong), var(--surface-strong)) 72px 32px / 27% 9px no-repeat,
        linear-gradient(var(--surface-strong), var(--surface-strong)) calc(100% - 70px) 19px / 54px 12px no-repeat;
}

.checkout-summary article.is-removing::after {
    position: absolute;
    inset: 0;
    content: '';
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 8%, transparent), transparent);
    animation: checkout-row-skeleton 1s ease-in-out infinite;
}

@keyframes checkout-row-skeleton {
    to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .checkout-summary article.is-removing::after { animation: none; }
}

.checkout-summary-error {
    margin: 10px 0 0;
    color: var(--theme-danger);
    font-size: 12px;
}

.checkout-thumb {
    height: 55px;
}

.checkout-summary article span {
    display: grid;
    min-width: 0;
}

.checkout-summary article span b,
.checkout-summary article span small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-summary article > strong { white-space: nowrap; }

.checkout-summary article small {
    color: var(--muted);
}

.coupon-form {
    margin: 24px 0;
}

.coupon-form label {
    display: flex;
}

.coupon-form input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 10px;
}

.coupon-form button {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    color: var(--ink);
}

.coupon-form small {
    color: var(--theme-danger);
}

.checkout-summary ul {
    padding: 18px 0 0;
    list-style: none;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
}

.checkout-summary li {
    margin: 9px 0;
}

.checkout-summary li i {
    color: var(--mint);
    margin-right: 7px;
}

.order-page {
    max-width: 980px;
    padding-bottom: 100px;
}

.order-success {
    text-align: center;
    padding: 80px 0 55px;
}

.order-success > span {
    display: inline-grid;
    place-items: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--mint);
    color: var(--ink-on-mint);
    font-size: 32px;
}

.order-success h1 {
    font-size: 60px;
}

.order-success > p:not(.eyebrow) {
    color: var(--muted);
}

.order-success > div {
    display: inline-grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px 45px;
    margin-top: 20px;
}

.order-success > div small {
    color: var(--muted);
}

.download-library {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.download-library header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: var(--panel);
}

.download-library header h2 {
    font-size: 28px;
    margin: 0;
}

.download-library header > span {
    color: var(--muted);
    font-size: 11px;
}

.download-library article {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 24px 30px;
    border-top: 1px solid var(--line);
}

.guest-download-notice {
    display: flex;
    gap: 12px;
    padding: 16px 30px;
    border-top: 1px solid var(--line);
    background: var(--theme-warning-soft);
    color: var(--ink);
}

.guest-download-notice > i {
    color: var(--store-yellow);
    font-size: 22px;
}

.guest-download-notice p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.download-icon {
    height: 65px;
    display: grid;
    place-items: center;
    background: var(--surface-strong);
    border-radius: 7px;
    color: var(--mint);
}

.download-icon img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.download-library article h3 {
    margin: 0;
}

.download-library article p,
.download-library article small {
    color: var(--muted);
    font-size: 11px;
}

.purchased-license {
    margin-top: var(--space-xs);
    color: var(--muted);
    font-size: var(--tiny-font-size);
}

.purchased-license summary {
    color: var(--mint);
    cursor: pointer;
    font-weight: 700;
}

.purchased-license p {
    max-width: 62ch;
    margin: var(--space-xs) 0 0;
    white-space: normal;
}

.preparing {
    color: var(--store-yellow);
    font-size: 12px;
}

.download-spent {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.personalization-link {
    display: block;
    width: fit-content;
    margin-top: 5px;
    color: var(--mint);
    font-size: 11px;
    font-weight: 700;
}

.personalization-page {
    max-width: 840px;
    padding-bottom: 100px;
}

.personalization-form {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.personalization-product {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.personalization-product > i {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--surface-strong);
    color: var(--mint);
}

.personalization-product > div {
    display: grid;
}

.personalization-product small {
    color: var(--muted);
}

.personalization-note {
    display: flex;
    gap: 10px;
    margin: -15px 0 24px;
    padding: 14px;
    border-radius: 8px;
    background: var(--theme-accent-soft);
}

.personalization-note i {
    color: var(--mint);
    font-size: 20px;
}

.personalization-note p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.order-help {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--panel);
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
}

.order-help > i {
    font-size: 26px;
    color: var(--mint);
}

.order-help p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.order-help a {
    margin-left: auto;
    color: var(--mint);
    font-size: 12px;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin: 35px;
    color: var(--muted);
}

@media (max-width: 900px) {
    .store-hero,
    .featured-product,
    .product-detail,
    .product-copy,
    .order-lookup {
        grid-template-columns: 1fr;
    }

    .store-hero {
        padding: 60px 0;
    }

    .hero-product-stack {
        order: -1;
        height: 360px;
    }

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

    .store-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-section > header {
        align-items: start;
        gap: 20px;
        flex-direction: column;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        order: -1;
        max-height: none;
        overflow: visible;
    }

    .checkout-summary-items {
        overflow-y: visible;
    }

    .store-shell {
        padding: 0 20px;
    }
}

@media (max-width: 600px) {
    .featured-product {
        gap: 36px;
        margin: 70px 0;
        max-width: 100%;
    }

    .featured-art {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .featured-art > i {
        font-size: clamp(88px, 34vw, 130px);
    }

    .featured-product h2 {
        font-size: clamp(32px, 10vw, 42px);
    }

    .store-hero {
        display: none;
    }
}

@media (max-width: 600px) {
    .breadcrumbs {
        flex-wrap: wrap;
        padding: 22px 0;
    }

    .product-detail {
        gap: 38px;
        padding: 10px 0 60px;
    }

    .product-main-art {
        width: 100%;
        min-height: 0;
        aspect-ratio: 4/5;
    }

    .product-main-art > i {
        font-size: clamp(88px, 34vw, 130px);
    }

    .product-thumbnails {
        width: 100%;
        max-width: 100%;
        overscroll-behavior-inline: contain;
    }

    .product-mini {
        justify-content: flex-start;
        gap: var(--space-sm) var(--space-md);
        padding-inline: 0;
    }

    .product-info h1 {
        font-size: clamp(34px, 11vw, 46px);
        overflow-wrap: anywhere;
    }

    .product-info .lead {
        font-size: var(--h3-font-size);
        line-height: 1.7;
    }

    .detail-price {
        flex-wrap: wrap;
        gap: var(--space-xs) var(--space-sm);
    }

    .detail-price b {
        font-size: 30px;
    }

    .product-copy {
        gap: 42px;
        padding: 60px 0;
    }

    .product-copy h2 {
        font-size: clamp(32px, 10vw, 40px);
    }

    .hero-product-stack {
        height: 300px;
        width: 240px;
    }

    .stack-card {
        width: 230px;
        height: 310px;
    }

    .stack-front {
        padding: 28px;
    }

    .stack-front:before {
        inset: 21px;
    }

    .stack-front small {
        top: 29px;
        left: 29px;
    }

    .stack-front i {
        font-size: 64px;
    }

    .stack-front b {
        font-size: 24px;
    }

    .hero-price {
        width: 90px;
        height: 90px;
        right: 5%;
        bottom: 8%;
    }

    .hero-price strong {
        font-size: 16px;
    }

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

    .store-card-art {
        height: 230px;
    }

    .category-strip {
        justify-content: start;
    }

    .fulfillment-filter {
        justify-content: start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .store-trust {
        flex-direction: column;
    }

    .store-filters {
        width: 100%;
        flex-direction: column;
    }

    .store-filters input,
    .store-filters select {
        width: 100%;
    }

    .order-lookup {
        padding: 30px;
    }

    .order-lookup form {
        grid-template-columns: 1fr;
    }

    .featured-buy {
        align-items: start;
        gap: 20px;
        flex-direction: column;
    }

    .featured-buy .button {
        width: 100%;
    }

    .product-mini {
        flex-wrap: wrap;
    }

    .field-grid,
    .payment-options {
        grid-template-columns: 1fr;
    }

    .cart-items article {
        grid-template-columns: 70px 1fr auto;
    }

    .cart-items article > form {
        grid-column: 3;
    }

    .cart-items article > .cart-quantity-form {
        grid-column: 2 / -1;
    }

    .product-purchase-options {
        grid-template-columns: 1fr;
    }

    .checkout-head {
        align-items: start;
    }

    .checkout-head > span {
        display: none;
    }

    .order-success h1 {
        font-size: 42px;
    }

    .order-success > div {
        grid-template-columns: 1fr;
    }

    .download-library article {
        grid-template-columns: 55px 1fr;
    }

    .download-library article > a,
    .download-library article > .preparing,
    .download-library article > .download-spent {
        grid-column: 1/-1;
        text-align: center;
        justify-content: center;
    }

    .order-help {
        align-items: start;
        flex-wrap: wrap;
    }

    .order-help a {
        margin-left: 40px;
    }
}

.moncash-conversion-notice {
    display: flex;
    gap: 12px;
    margin: -18px 0 24px;
    padding: 15px;
    border: 1px solid var(--theme-warning-border);
    border-radius: 8px;
    background: var(--theme-warning-soft);
}

.moncash-conversion-notice[hidden] {
    display: none;
}

.moncash-conversion-notice > i {
    flex: 0 0 auto;
    color: var(--store-yellow);
    font-size: 25px;
}

.moncash-conversion-notice b,
.moncash-conversion-notice p,
.moncash-conversion-notice small {
    display: block;
    margin: 0;
}

.moncash-conversion-notice p {
    margin: 4px 0;
    color: var(--ink);
    font-size: 13px;
}

.moncash-conversion-notice small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.store-card-foot button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.store-card-foot .cart-button-label {
    font-size: 0;
}

.store-card-foot button.is-added {
    width: auto;
    padding: 0 11px;
}

.store-card-foot button.is-added .cart-button-label {
    font-size: 10px;
}

.add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cart-quantity label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--smaller-font-size);
    font-weight: var(--font-bold);
    color: var(--muted);
}

.cart-quantity select {
    border: var(--border-size) solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--panel);
    padding: calc(var(--space-sm) / 2) var(--space-xs);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.cart-quantity select:focus {
    outline: var(--focus-ring-size) solid var(--mint);
    outline-offset: var(--focus-ring-offset);
}

.art-courses {
    background: var(--store-category-violet);
}

.art-sketchup-models {
    background: var(--store-category-teal);
}

.art-house-plans {
    background: var(--store-category-coral);
}

.art-pdf-guides {
    background: var(--store-category-blue);
}

.product-thumbnails {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    overflow-x: auto;
}

.product-thumbnail {
    width: 86px;
    height: 70px;
    flex: 0 0 86px;
    padding: 0;
    overflow: hidden;
    border: var(--border-size-strong) solid transparent;
    border-radius: var(--radius-sm);
    background: var(--panel);
    cursor: pointer;
    opacity: 0.72;
    transition:
        border-color 0.2s,
        opacity 0.2s,
        transform 0.2s;
}

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

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--mint);
    opacity: 1;
}

.product-thumbnail:focus-visible {
    outline: var(--focus-halo-size) solid
        color-mix(in srgb, var(--mint) 55%, transparent);
    outline-offset: var(--focus-ring-size);
}

.product-thumbnail:active {
    transform: scale(0.97);
}

.product-main-art:before {
    pointer-events: none;
}

.product-gallery-open {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: var(--space-sm);
    border: 0;
    background: transparent;
    color: white;
    cursor: zoom-in;
}

.product-gallery-open > span {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    padding: 8px 11px;
    border: 1px solid color-mix(in srgb, white 32%, transparent);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, #05070a 76%, transparent);
    box-shadow: 0 8px 24px color-mix(in srgb, #05070a 25%, transparent);
    font-size: var(--tiny-font-size);
    font-weight: 700;
    backdrop-filter: blur(8px);
    transition: transform 0.2s, background 0.2s;
}

.product-variant-preview {
    position: fixed;
    z-index: 40;
    left: max(var(--space-md), env(safe-area-inset-left));
    bottom: max(var(--space-md), env(safe-area-inset-bottom));
    width: clamp(88px, 12vw, 140px);
    aspect-ratio: 1;
    display: block;
    padding: 5px;
    overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--mint) 82%, white);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: 0 12px 32px color-mix(in srgb, #05070a 38%, transparent);
    pointer-events: none;
}

.product-variant-preview[hidden] {
    display: none;
}

.product-variant-preview img {
    width: 100%;
    height: 100%;
    border-radius: calc(var(--radius-md) - 6px);
    object-fit: cover;
}

.product-variant-preview small {
    position: absolute;
    right: 7px;
    bottom: 7px;
    left: 7px;
    overflow: hidden;
    padding: 4px 6px;
    border-radius: var(--radius-xs);
    background: color-mix(in srgb, #05070a 78%, transparent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-gallery-open:hover > span {
    background: color-mix(in srgb, #05070a 90%, transparent);
    transform: translateY(-2px);
}

.product-gallery-open:focus-visible {
    outline: var(--focus-ring-size) solid var(--mint);
    outline-offset: calc(var(--focus-ring-size) * -1);
}

.product-gallery-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #05070a;
    color: white;
}

html.product-gallery-modal-open {
    overflow: hidden;
}

.product-gallery-dialog::backdrop {
    background: color-mix(in srgb, #05070a 94%, transparent);
}

.product-gallery-dialog-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    padding: clamp(18px, 3vw, 38px);
}

.product-gallery-stage {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    place-items: center;
    min-width: 0;
    min-height: 0;
    padding: var(--space-sm);
    cursor: zoom-out;
}

.product-gallery-stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 22px 65px color-mix(in srgb, black 55%, transparent);
    cursor: default;
    touch-action: pan-y;
    user-select: none;
}

.product-gallery-arrow,
.product-gallery-close {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid color-mix(in srgb, white 18%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, white 9%, transparent);
    color: white;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.product-gallery-arrow:hover,
.product-gallery-close:hover {
    background: color-mix(in srgb, white 18%, transparent);
    transform: scale(1.06);
}

.product-gallery-arrow:focus-visible,
.product-gallery-close:focus-visible {
    outline: var(--focus-ring-size) solid var(--mint);
    outline-offset: var(--focus-ring-offset);
}

.product-gallery-arrow i,
.product-gallery-close i {
    font-size: 28px;
}

.product-gallery-arrow {
    align-self: center;
    justify-self: center;
    grid-row: 1;
}

.product-gallery-arrow.previous { grid-column: 1; }
.product-gallery-arrow.next { grid-column: 3; }
.product-gallery-arrow[hidden] { display: none; }

.product-gallery-close {
    position: absolute;
    z-index: 2;
    top: clamp(14px, 2vw, 26px);
    right: clamp(14px, 2vw, 26px);
}

.product-gallery-dialog footer {
    display: flex;
    grid-column: 2;
    grid-row: 2;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding-top: var(--space-sm);
    color: color-mix(in srgb, white 72%, transparent);
    font-size: var(--small-font-size);
}

.product-gallery-dialog footer strong {
    overflow: hidden;
    color: white;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .product-gallery-dialog-card {
        grid-template-columns: 56px minmax(0, 1fr) 56px;
        padding: 68px 8px max(16px, env(safe-area-inset-bottom));
    }

    .product-gallery-stage { grid-column: 1 / -1; padding: 0; }
    .product-gallery-arrow { z-index: 1; width: 44px; height: 44px; background: color-mix(in srgb, #05070a 72%, transparent); }
    .product-gallery-arrow.previous { grid-column: 1; }
    .product-gallery-arrow.next { grid-column: 3; }
    .product-gallery-dialog footer { grid-column: 1 / -1; padding-inline: var(--space-xs); }
}

@media (prefers-reduced-motion: reduce) {
    .product-gallery-open > span,
    .product-gallery-arrow,
    .product-gallery-close { transition: none; }
}

.product-description {
    position: relative;
    margin: var(--space-md) 0;
    color: var(--muted);
    font-size: var(--compact-font-size);
    line-height: 1.75;
}

.product-description.is-truncated {
    max-height: 12rem;
    overflow: hidden;
}

.product-description.is-truncated:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4.5rem;
    background: linear-gradient(transparent, var(--bg));
}

.product-description h2,
.product-description h3,
.product-description h4,
.product-description-full h2,
.product-description-full h3,
.product-description-full h4 {
    margin: 1.1em 0 0.45em;
    color: var(--ink);
    line-height: 1.3;
}

.product-description p,
.product-description-full p {
    margin: 0 0 1em;
}

.product-description ul,
.product-description ol,
.product-description-full ul,
.product-description-full ol {
    padding-left: 1.35rem;
}

.product-description a,
.product-description-full a {
    color: var(--mint);
    text-decoration: underline;
}

.product-description-more {
    margin: calc(var(--space-2xs) * -1) 0 var(--space-md);
    padding: var(--space-xs) 0;
    border: 0;
    background: transparent;
    color: var(--mint);
    font:
        var(--font-bold) var(--smaller-font-size) "Poppins",
        sans-serif;
    cursor: pointer;
    text-decoration: underline;
}

.product-description-more:focus-visible {
    outline: var(--focus-ring-size) solid var(--mint);
    outline-offset: var(--space-2xs);
}

.product-description-dialog {
    width: min(var(--content-width-lg), calc(100% - var(--space-xl)));
    max-height: min(82vh, 850px);
    padding: 0;
    border: var(--border-size) solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    color: var(--ink);
    box-shadow: 0 30px 90px color-mix(in srgb, var(--theme-bg) 44%, transparent);
    scrollbar-color: var(--mint) var(--bg);
    scrollbar-width: thin;
}

.product-description-dialog::-webkit-scrollbar {
    width: 10px;
}

.product-description-dialog::-webkit-scrollbar-track {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    background: var(--bg);
}

.product-description-dialog::-webkit-scrollbar-thumb {
    min-height: 44px;
    border: var(--border-size-strong) solid var(--bg);
    border-radius: var(--radius-pill);
    background: var(--mint);
}

.product-description-dialog::-webkit-scrollbar-thumb:hover {
    background: var(--store-blue);
}

.product-description-dialog::backdrop {
    background: color-mix(in srgb, var(--theme-bg) 78%, transparent);
    backdrop-filter: blur(5px);
}

.product-description-dialog-card {
    padding: 0 var(--space-xl) var(--space-xl);
}

.product-description-dialog header {
    position: sticky;
    z-index: 1;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-lg) 0 var(--space-md);
    background: var(--panel);
    border-bottom: var(--border-size) solid var(--line);
}

.product-description-dialog header h2 {
    margin: 0;
    font-size: clamp(22px, 4vw, 32px);
}

.product-description-dialog header button {
    width: var(--icon-size-md);
    height: var(--icon-size-md);
    flex: 0 0 var(--icon-size-md);
    border: var(--border-size) solid var(--line);
    border-radius: var(--radius-round);
    background: var(--bg);
    color: var(--ink);
    font-size: 22px;
    cursor: pointer;
}

.product-description-full {
    padding-top: var(--space-lg);
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.product-description-full blockquote {
    margin: 1.2rem 0;
    padding: 12px 18px;
    border-left: 3px solid var(--mint);
    background: var(--bg);
}

/* Payment recovery */
.payment-review-icon {
    background: color-mix(
        in srgb,
        var(--store-yellow) 20%,
        var(--panel)
    ) !important;
    color: var(--store-yellow) !important;
    box-shadow: 0 0 0 10px
        color-mix(in srgb, var(--store-yellow) 7%, transparent);
}

.order-success .payment-review-lead {
    max-width: 680px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.75;
}

.order-success > .payment-review-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(720px, 100%);
    margin: 28px auto 0;
}

.payment-review-summary > div {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: linear-gradient(
        145deg,
        var(--panel),
        color-mix(in srgb, var(--panel) 85%, var(--store-blue))
    );
    text-align: left;
}

.payment-review-summary-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--store-blue) 13%, var(--bg));
    color: var(--store-blue);
    font-size: 21px;
}

.payment-review-summary small,
.payment-review-summary strong {
    display: block;
}

.payment-review-summary small {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.payment-review-summary strong {
    color: var(--ink);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.order-success > .payment-review-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 720px;
    margin: 16px auto 0;
    padding: 13px 15px;
    border: 1px solid color-mix(in srgb, var(--store-yellow) 35%, var(--line));
    border-radius: 10px;
    background: color-mix(in srgb, var(--store-yellow) 8%, var(--panel));
    color: var(--ink);
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
}

.payment-review-warning i {
    flex: 0 0 auto;
    color: var(--store-yellow);
    font-size: 18px;
}

.order-success > .form-errors,
.order-success > .store-notice {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: min(720px, 100%);
    margin: 16px auto 0;
    padding: 13px 16px;
    border-radius: 10px;
}

.order-success > .form-errors {
    border: 1px solid color-mix(in srgb, var(--store-coral) 38%, var(--line));
    background: color-mix(in srgb, var(--store-coral) 9%, var(--panel));
}

.order-success > .store-notice.success {
    border: 1px solid color-mix(in srgb, var(--mint) 35%, var(--line));
    background: color-mix(in srgb, var(--mint) 8%, var(--panel));
    color: var(--ink);
}

.payment-receipt-received {
    text-align: left;
}

.payment-receipt-received i {
    color: var(--mint);
    font-size: 24px;
}

.payment-receipt-received strong,
.payment-receipt-received span {
    display: block;
}

.order-success > .payment-receipt-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: min(720px, 100%);
    margin: 18px auto 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    text-align: left;
    box-shadow: 0 18px 45px var(--theme-shadow-color);
}

.payment-receipt-form-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--mint) 12%, var(--bg));
    color: var(--mint);
    font-size: 23px;
}

.payment-receipt-form label strong,
.payment-receipt-form label small {
    display: block;
}

.payment-receipt-form label small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.payment-receipt-form input[type="file"] {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    padding: 9px;
    border: 1px dashed var(--line);
    border-radius: 9px;
    background: var(--bg);
    color: var(--muted);
    font-size: 10px;
}

.payment-receipt-form button {
    grid-column: 3;
    grid-row: 1/3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 43px;
    white-space: nowrap;
}

.payment-support-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.payment-support-link i {
    color: var(--mint);
    font-size: 18px;
}

.payment-support-link span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
}

@media (max-width: 700px) {
    .order-success {
        padding-top: 55px;
    }

    .order-success > .payment-review-summary {
        grid-template-columns: 1fr;
    }

    .order-success > .payment-receipt-form {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .payment-receipt-form input[type="file"],
    .payment-receipt-form button {
        grid-column: 1/-1;
    }

    .payment-receipt-form button {
        grid-row: auto;
        width: 100%;
    }
}

@media (max-width: 460px) {
    .store-shell.order-page {
        padding-inline: 18px;
    }

    .order-success h1 {
        font-size: 34px;
        line-height: 1.08;
    }

    .payment-review-summary > div {
        padding: 14px;
    }

    .order-success > .payment-receipt-form {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .payment-receipt-form-icon {
        margin: 0 auto;
    }

    .payment-receipt-form label,
    .payment-receipt-form input[type="file"] {
        grid-column: 1;
    }

    .payment-support-link {
        flex-wrap: wrap;
    }

    .payment-support-link span {
        width: 100%;
    }
}

.product-description-full pre {
    max-width: 100%;
    overflow: auto;
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    background: var(--bg);
}
.physical-delivery-note {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
    margin: var(--space-md) 0;
    padding: var(--space-md);
    border: var(--border-size) solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
}
.physical-delivery-note i { color: var(--mint); font-size: 1.25rem; }
.physical-delivery-note span { display: grid; gap: var(--space-2xs); line-height: 1.5; }
.physical-delivery-note b { color: var(--text); }
.add-cart[aria-busy="true"] { cursor: wait; opacity: .72; }
.shipment-list { display: grid; gap: var(--space-sm); margin: var(--space-md) 0; }
.shipment-list article { margin: 0; }
@media (max-width: 600px) {
    .shipment-list article { align-items: flex-start; }
    .shipment-list .button { width: 100%; grid-column: 1 / -1; }
}
/* Product decision information */
.product-decision-grid,
.product-policies,
.product-faqs {
    margin: clamp(
            var(--space-2xl),
            7vw,
            calc(var(--space-5xl) + var(--space-md))
        )
        0;
}
.product-decision-grid > header,
.product-policies > header,
.product-faqs > header {
    margin-bottom: var(--space-lg);
}
.product-decision-grid > div,
.product-policies > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
}
.product-decision-grid article,
.product-policies article {
    border: var(--border-size) solid var(--line);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    background: var(--panel);
}
.product-decision-grid article {
    display: flex;
    gap: var(--space-sm);
}
.product-decision-grid article i,
.product-policies article > i {
    font-size: var(--h2-font-size);
    color: var(--mint);
}
.product-decision-grid article span {
    display: grid;
    gap: var(--space-2xs);
    line-height: 1.55;
}
.product-policies article h3 {
    margin: var(--space-xs) 0;
}
.product-policies article p {
    line-height: 1.65;
}
.product-policies article a {
    display: inline-block;
    margin-top: var(--space-xs);
    font-weight: var(--font-bold);
}
.product-faqs > div {
    display: grid;
    gap: var(--space-sm);
}
.product-faqs details {
    border: var(--border-size) solid var(--line);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--panel);
}
.product-faqs summary {
    cursor: pointer;
    font-weight: var(--font-bold);
}
.product-faqs details p {
    margin: var(--space-sm) 0 0;
    line-height: 1.65;
}
@media (max-width: 720px) {
    .product-decision-grid > div,
    .product-policies > div {
        grid-template-columns: 1fr;
    }
}
