/* ── Product Page Layout ── */
.product-page {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.breadcrumb {
    font-size: 13px;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--gray-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 6px;
}

/* ── Main Product Section ── */
.product-main {
    align-items: start;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* ── Product Info ── */
.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.product-detail-category {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.product-detail-title {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-color);
}

.product-detail-sku {
    font-size: 12px;
    color: var(--gray-color);
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.detail-current-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.detail-original-price {
    font-size: 16px;
    color: var(--gray-color);
    text-decoration: line-through;
    align-self: flex-end;
    padding-bottom: 7px;
}

.detail-discount-badge {
    align-self: flex-end;
    background: #f5e6e8;
    /* Light rosy/burgundy tint */
    color: #8a3a4b;
    /* Deep burgundy text */
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    vertical-align: middle;
    margin-bottom: 7px;
}


.divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 0;
}

.product-detail-description {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    white-space: pre-line;
}

/* ── Product Description Section ── */
.product-description-section {
    margin-top: 2.5rem;
    padding: 2rem;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.product-description-header {
    display: grid;
    gap: 6px;
    margin-bottom: 1rem;
}

.product-description-header h3 {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary-color);
    margin: 0;
}

.product-description-body {
    border-top: 1px dashed #e6e6e6;
    padding-top: 1rem;
}

/* ── Add to Cart Section ── */
.add-to-cart-form {
    margin-bottom: 10px;
}


.quantity-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    background: transparent;
}

.qty-minus,
.qty-plus {
    min-width: 30px;
    height: 46px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    color: #666;
    transition: all 0.2s ease;
    background: #ff000017;
}


.quantity-input {
    min-width: 26px;
    width: 100%;
    height: 46px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    background: transparent;
    color: #666;
}

.quantity-input:focus {
    outline: none;
}

/* ── Action Buttons ── */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-add-to-cart:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(255, 80, 80, 0.3);
    transform: translateY(-2px);
}


.btn-add-to-cart {
    flex: 1;
    padding: 13px 24px;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 16px rgba(91, 45, 55, 0.20);
}

.btn-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

/* ── YouTube Embed ── */
.product-video {
    margin-top: 1rem;
}

.product-video h3 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.video-wrapper {
    aspect-ratio: 4 / 3;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Related Products ── */
.related-section {
    margin-top: 2.75rem;
    padding: 2rem 1.25rem 1.5rem;
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 82, 82, 0.08), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
}

.related-section-header {
    margin-bottom: 1.4rem;
}

.related-kicker {
    margin: 0 0 0.35rem;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-color);
}

.related-section h2 {
    font-size: 1.65rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
    color: #1d2433;
}

/* ── Category Banner ── */
.category-banner-section {
    margin-top: 2.75rem;
    padding: 2rem 1.25rem 1.5rem;
    border: 1px solid #f0f0f0;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 82, 82, 0.08), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.05);
}

.category-banner-header {
    margin: 0 0 0.65rem;
    font-size: 20px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primary-color);
}


/* ── Responsive ── */
@media (max-width: 768px) {
    .breadcrumb {
        display: none;
    }

    .product-page {
        padding: 0;
        margin: 11px auto;
    }

    .product-detail-info {
        margin: 0px 10px;
    }

    .product-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }


    .product-description-section {
        padding: 1.5rem;
        margin: 1.5rem 10px 0;
    }

    .related-section {
        padding: 0;
    }

    .related-section-header {
        padding: 0 10px;
        margin: 1rem 0;
    }

    .related-section h2 {
        font-size: 1.35rem;
    }
}




/* Variants Section */
.variants-section {
    margin-bottom: 10px;
    width: 100%;
    min-width: 0;
}

.variants-section h3 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 2px;
    color: var(--primary-color);
}

.variants-scroll {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0 10px;
    -webkit-overflow-scrolling: touch;
}

.variants-scroll::-webkit-scrollbar {
    height: 6px;
}

.variants-scroll::-webkit-scrollbar-track {
    background: var(--light-color);
    border-radius: 3px;
}

.variants-scroll::-webkit-scrollbar-thumb {
    background: var(--gray-color);
    border-radius: 3px;
}

.variants-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

.variant-image-item {
    flex: 0 0 80px;
    aspect-ratio: var(--product-image-aspect-ratio);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-color);
    text-decoration: none;
}

.variant-image-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 90, 90, 0.15);
    transform: translateY(-2px);
}

.variant-image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .variant-image-item {
        flex: 0 0 100px;
    }
}

.product-stock-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    gap: 12px
}

.product-stock-available,
.product-stock-warning {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1
}

.product-stock-available {
    color: #159447;
    font-size: 12px;
    font-weight: 700;
    min-height: 24px;
    padding: 0 11px;
    border-radius: 13px;
    background: #e9f9ee;
    box-sizing: border-box
}

.stock-dot {
    width: 12px;
    height: 12px;
    margin-right: 6px;
    flex: 0 0 12px;
    border-radius: 50%;
    background: #16a34a
}

.product-stock-available.unavailable {
    color: #e52d2d
}

.stock-dot.unavailable {
    background: #e52d2d
}

.product-stock-warning {
    min-height: 24px;
    padding: 0 11px;
    border-radius: 13px;
    color: #e52d2d;
    background: #ffe6e6;
    font-size: 12px;
    font-weight: 700;
    box-sizing: border-box
}

.fire-icon {
    width: 16px;
    height: 20px;
    margin-right: 5px;
    flex: 0 0 20px;
    color: #ff3030
}

.fire-icon path {
    fill: currentColor
}


@media (max-width: 768px) {
    .add-to-cart-form {
        margin-bottom: 0;
    }
    
    .quantity-controls {
        border-radius: 16px;
    }

    .action-buttons {
        flex-direction: row;
        position: fixed;
        left: 6px;
        right: 6px;
        bottom: 6px;
        z-index: 1000;
        padding: 10px;
        gap: 8px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        background:
            linear-gradient(135deg,
                rgba(255, 255, 255, 0.85),
                rgba(255, 255, 255, 0.55));
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.75);
        border-radius: 28px;
        box-shadow:
            0 12px 35px rgba(0, 0, 0, 0.14),
            0 4px 12px rgba(0, 0, 0, 0.06),
            inset 0 1px 1px rgba(255, 255, 255, 0.95);
    }

    .quantity-section {
        flex: 0.4;
    }

    .btn-add-to-cart {
        border-radius: 16px;
    }
}