/* ── Product Page Layout ── */
.product-page {
    max-width: 1200px;
    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 {
    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;
}

.detail-discount-badge {
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.product-detail-stock {
    font-size: 13px;
    font-weight: 500;
}

.in-stock {
    color: #16a34a;
}

.out-of-stock {
    color: #dc2626;
}

.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;
}

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

.quantity-section {
    margin-bottom: 16px;
}

.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: fit-content;
}

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

.qty-minus:hover,
.qty-plus:hover {
    background: #f0f0f0;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    background: white;
}

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

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

.btn {
    flex: 1;
    padding: 13px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 80, 80, 0.2);
}

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

.btn-outline {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-add-to-cart {
    /* Additional ADD TO CART specific styles can go here */
}

.btn-buy-now {
    /* Additional BUY NOW specific styles can go here */
}


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

.product-video h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-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: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}



/* ── 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;
    }


    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {

    .action-buttons {
        flex-direction: column;
    }
}



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

.variants-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--dark-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: 2/3;
    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;
    }
}
