.storefront-product-detail .product-detail-shell {
    overflow: visible;
}

.storefront-product-detail .product-detail-breadcrumb {
    margin-bottom: 1.5rem;
}

.storefront-product-detail .product-detail-breadcrumb .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0;
    margin: 0;
    list-style: none;
    background: transparent;
}

.storefront-product-detail .product-detail-breadcrumb .breadcrumb-item {
    color: var(--store-muted);
    font-size: 0.92rem;
}

.storefront-product-detail .product-detail-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    float: none;
    padding-left: 0.3rem;
    color: var(--store-muted);
    content: "/";
}

.storefront-product-detail .product-detail-breadcrumb a {
    color: var(--store-accent);
    text-decoration: none;
}

.storefront-product-detail .product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 420px);
    gap: 1.5rem;
    align-items: start;
}

.product-detail-overview-stack,
.product-detail-main,
.product-detail-gallery,
.product-detail-purchase-panel {
    display: grid;
    gap: 1.1rem;
}

.product-detail-showcase-card,
.product-detail-flow-card,
.product-detail-purchase-panel,
.product-detail-media-frame,
.product-detail-price-shell {
    border: 1px solid var(--store-line);
    border-radius: var(--store-radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 244, 0.94));
    box-shadow: var(--store-shadow);
}

.product-detail-showcase-card {
    display: grid;
    grid-template-columns: minmax(320px, 0.94fr) minmax(0, 1.06fr);
    gap: 1.25rem;
    padding: 1.25rem;
}

.storefront-product-detail .product-detail-gallery,
.storefront-product-detail .product-detail-main {
    min-width: 0;
}

.storefront-product-detail .product-detail-media-frame {
    display: grid;
    place-items: center;
    min-height: 560px;
    padding: 1.3rem;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(15, 92, 77, 0.08), transparent 38%), var(--store-surface-soft);
}

.product-detail-image {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.product-detail-image-placeholder {
    display: grid;
    place-items: center;
    gap: 0.75rem;
    min-height: 420px;
    width: 100%;
    border-radius: 24px;
    background: rgba(23, 20, 17, 0.03);
    color: var(--store-muted);
}

.product-detail-image-placeholder i {
    font-size: 4rem;
    color: rgba(23, 20, 17, 0.2);
}

.product-detail-header {
    display: grid;
    gap: 0.95rem;
}

.product-detail-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.product-detail-kicker {
    margin-bottom: 0;
}

.product-detail-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.product-detail-status-chip--featured {
    background: rgba(181, 101, 59, 0.12);
    color: #8c4d24;
}

.product-detail-status-chip--available {
    background: rgba(15, 92, 77, 0.1);
    color: var(--store-accent);
}

.storefront-product-detail .product-detail-title {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 3.45rem);
    line-height: 1.08;
}

.storefront-product-detail .product-detail-description {
    max-width: 52rem;
    margin: 0;
}

.product-detail-signal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.product-detail-signal-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 1rem;
    border-radius: var(--store-radius-md);
    background: var(--store-surface-soft);
    border: 1px solid var(--store-line);
}

.product-detail-signal-icon {
    display: inline-grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 14px;
    background: var(--store-accent-soft);
    color: var(--store-accent);
    font-size: 1rem;
}

.product-detail-signal-card strong,
.product-detail-flow-step strong {
    display: block;
    color: var(--store-ink);
    margin-bottom: 0.25rem;
}

.product-detail-signal-card p,
.product-detail-flow-step p,
.product-detail-panel-head p,
.product-detail-total-subnote {
    margin: 0;
    color: var(--store-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.product-detail-flow-card {
    padding: 1.25rem;
}

.product-detail-flow-card__head {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.product-detail-flow-card__head h2,
.product-detail-panel-head h2,
.product-detail-form-header h2 {
    margin: 0;
    color: var(--store-ink);
    font-size: 1.45rem;
}

.product-detail-flow-steps {
    display: grid;
    gap: 0.85rem;
}

.product-detail-flow-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding-top: 0.85rem;
    border-top: 1px solid var(--store-line);
}

.product-detail-flow-step:first-child {
    padding-top: 0;
    border-top: 0;
}

.product-detail-flow-step__index {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--store-ink);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

.product-detail-purchase-rail {
    position: sticky;
    top: 6.75rem;
}

.product-detail-purchase-panel {
    padding: 1.25rem;
}

.product-detail-panel-head {
    display: grid;
    gap: 0.35rem;
    padding-bottom: 0.2rem;
}

.product-detail-purchase-context {
    display: grid;
    gap: 0.6rem;
    padding: 0.95rem 1rem;
    border-radius: var(--store-radius-md);
    background: linear-gradient(135deg, rgba(15, 92, 77, 0.08), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(15, 92, 77, 0.12);
}

.product-detail-purchase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.product-detail-purchase-category,
.product-detail-purchase-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.28rem 0.78rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.product-detail-purchase-category {
    background: rgba(255, 255, 255, 0.74);
    color: var(--store-ink);
}

.product-detail-purchase-status {
    background: rgba(15, 92, 77, 0.12);
    color: var(--store-accent);
}

.product-detail-purchase-title {
    margin: 0;
    color: var(--store-ink);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.5;
}

.product-detail-purchase-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.product-detail-purchase-points span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--store-surface-soft);
    border: 1px solid var(--store-line);
    color: var(--store-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.product-detail-purchase-points i {
    color: var(--store-accent);
    font-size: 0.75rem;
}

.storefront-product-detail .product-detail-price-shell {
    display: grid;
    gap: 0.6rem;
    padding: 1.2rem 1.25rem;
    background: linear-gradient(180deg, rgba(15, 92, 77, 0.06), rgba(255, 255, 255, 0.98));
}

.product-detail-price-loader-shell {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--store-muted);
}

.product-detail-price-loader {
    width: 150px;
    height: 38px;
    border-radius: 12px;
}

.product-detail-price-display {
    display: grid;
    gap: 0.25rem;
}

.product-detail-price-label,
.product-detail-price-hint,
.product-detail-refresh-note,
.product-detail-total-label {
    color: var(--store-muted);
}

.product-detail-price-display strong {
    color: var(--store-ink);
    font-family: var(--font-display);
    font-size: clamp(2.05rem, 3vw, 3rem);
    line-height: 1.08;
}

.product-detail-refresh-note {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: var(--store-radius-md);
    background: rgba(15, 92, 77, 0.08);
    border: 1px solid rgba(15, 92, 77, 0.14);
}

.product-detail-form-header {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.product-detail-form-header p {
    margin: 0;
    color: var(--store-muted);
}

.product-detail-form-section {
    display: grid;
    gap: 0.9rem;
}

.storefront-product-detail .purchase-form-shell .form-control,
.storefront-product-detail .purchase-form-shell .form-select {
    min-height: 3.35rem;
    border-radius: 18px;
    border-color: rgba(23, 20, 17, 0.12);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: none;
}

.storefront-product-detail .purchase-form-shell .form-control:focus,
.storefront-product-detail .purchase-form-shell .form-select:focus {
    border-color: rgba(15, 92, 77, 0.3);
    box-shadow: 0 0 0 0.2rem rgba(15, 92, 77, 0.09);
}

.storefront-product-detail .purchase-form-shell textarea.form-control {
    min-height: 8rem;
}

.storefront-product-detail .purchase-form-shell .form-text {
    color: var(--store-muted);
    margin-top: 0.35rem;
}

.product-detail-draft-banner,
.product-detail-min-badge,
.product-detail-balance-alert {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
    border-radius: 20px;
    padding: 1rem 1.1rem;
}

.product-detail-draft-banner {
    background: rgba(23, 77, 120, 0.08);
    border: 1px solid rgba(23, 77, 120, 0.12);
    color: var(--store-accent);
}

.product-detail-min-badge {
    margin: 1rem 0 0;
    background: rgba(181, 101, 59, 0.1);
    border: 1px solid rgba(181, 101, 59, 0.16);
    color: #8c4d24;
}

.product-detail-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.92fr);
    gap: 0.95rem;
    margin: 1rem 0;
}

.product-detail-quantity-card,
.product-detail-total-card {
    border-radius: var(--store-radius-md);
    background: var(--store-surface-soft);
    border: 1px solid var(--store-line);
    padding: 1rem;
}

.product-detail-qty-group {
    direction: ltr;
}

.product-detail-qty-button {
    min-width: 52px;
}

.product-detail-total-card {
    display: grid;
    align-content: center;
    gap: 0.25rem;
}

.product-detail-total-value {
    display: inline-flex;
    align-items: end;
    gap: 0.5rem;
    color: var(--store-ink);
}

.product-detail-total-value strong {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.1;
}

.product-detail-wallet-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.95rem;
    padding: 0.95rem 1rem;
    border-radius: var(--store-radius-md);
    background: rgba(23, 20, 17, 0.03);
    border: 1px solid var(--store-line);
    color: var(--store-ink);
}

.product-detail-balance-alert {
    margin-bottom: 1rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.14);
    color: #991b1b;
}

.product-detail-balance-alert strong,
.product-detail-balance-alert span {
    display: block;
}

.product-detail-submit {
    min-height: 3.65rem;
    border-radius: 18px;
}

.product-detail-form-loader,
.product-detail-form-error {
    display: grid;
    place-items: center;
    gap: 0.85rem;
    min-height: 240px;
    text-align: center;
}

.product-detail-form-error {
    color: var(--store-muted);
}

.product-detail-form-error i {
    font-size: 3rem;
    color: var(--warning-dark);
}

.product-detail-spinner {
    width: 3rem;
    height: 3rem;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.2);
}

.loading-pulse {
    background: linear-gradient(90deg, rgba(23, 20, 17, 0.06) 25%, rgba(23, 20, 17, 0.14) 50%, rgba(23, 20, 17, 0.06) 75%);
    background-size: 200% 100%;
    animation: product-detail-pulse 1.5s ease-in-out infinite;
}

@keyframes product-detail-pulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (max-width: 1279px) {
    .storefront-product-detail .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-purchase-rail {
        order: -1;
        position: static;
    }

    .product-detail-overview-stack {
        order: 1;
    }
}

@media (max-width: 991px) {
    .product-detail-showcase-card,
    .product-detail-signal-grid,
    .product-detail-summary-grid {
        grid-template-columns: 1fr;
    }

    .storefront-product-detail .product-detail-media-frame {
        min-height: 420px;
    }
}

@media (max-width: 767px) {
    .storefront-product-detail .product-detail-breadcrumb {
        margin-bottom: 1rem;
    }

    .storefront-product-detail .product-detail-grid {
        gap: 1rem;
    }

    .product-detail-showcase-card,
    .product-detail-flow-card,
    .product-detail-purchase-panel,
    .storefront-product-detail .product-detail-price-shell,
    .storefront-product-detail .product-detail-media-frame {
        border-radius: 22px;
    }

    .product-detail-showcase-card,
    .product-detail-flow-card,
    .product-detail-purchase-panel {
        padding: 1rem;
    }

    .product-detail-purchase-panel {
        gap: 0.95rem;
        box-shadow: 0 20px 36px rgba(23, 20, 17, 0.1);
    }

    .product-detail-main {
        order: -1;
        gap: 0.85rem;
    }

    .product-detail-gallery {
        order: 1;
    }

    .storefront-product-detail .product-detail-media-frame {
        min-height: 240px;
        padding: 0.8rem;
    }

    .product-detail-image {
        max-height: 220px;
    }

    .storefront-product-detail .product-detail-title {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .storefront-product-detail .product-detail-description {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-detail-purchase-context {
        padding: 0.85rem 0.9rem;
    }

    .product-detail-purchase-title {
        font-size: 0.98rem;
    }

    .product-detail-purchase-points {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.15rem;
        scrollbar-width: none;
    }

    .product-detail-purchase-points::-webkit-scrollbar {
        display: none;
    }

    .storefront-product-detail .product-detail-price-shell {
        padding: 1rem;
    }

    .product-detail-price-display strong {
        font-size: clamp(1.8rem, 7vw, 2.35rem);
    }

    .product-detail-chip-row,
    .product-detail-balance-alert,
    .product-detail-wallet-row,
    .product-detail-draft-banner,
    .product-detail-min-badge {
        flex-direction: column;
        align-items: stretch;
    }

    .product-detail-signal-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(235px, 78vw);
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 0.2rem;
        scrollbar-width: none;
    }

    .product-detail-signal-grid::-webkit-scrollbar {
        display: none;
    }

    .product-detail-signal-card {
        min-height: 100%;
    }

    .product-detail-flow-step {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding-top: 0.72rem;
    }

    .product-detail-flow-step__index {
        margin-bottom: 0.15rem;
    }

    .product-detail-summary-grid {
        gap: 0.75rem;
        margin: 0.85rem 0;
    }

    .product-detail-quantity-card,
    .product-detail-total-card {
        padding: 0.9rem;
    }

    .product-detail-qty-button {
        min-width: 46px;
    }

    .product-detail-submit {
        min-height: 3.35rem;
    }
}
