﻿/* ===== PRODUCT DETAILS CARD ===== */

.product-detail-card {
    display: flex;
    gap: 2rem;
    background: #ffffff;
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    margin-top: 1rem;
}

/* ===== LEFT SECTION ===== */

.product-left {
    width: 280px;
    text-align: center;
}

.product-img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    background: #fafafa;
    border-radius: 14px;
    padding: 1rem;
}

/* In Cart badge */
.cart-status {
    margin-top: 1rem;
    padding: .4rem .8rem;
    background: #fff3e8;
    color: #f74f22;
    font-weight: 700;
    border-radius: 20px;
    display: inline-block;
    font-size: .9rem;
}

/* ===== RIGHT SECTION ===== */

.product-right {
    flex: 1;
}

/* Product Name */
.pd-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #111;
}

/* Info rows: Cost, Shipping, Shelf Life, Quantity */
.pd-row {
    display: grid;
    grid-template-columns: 140px auto;
    align-items: center;
    margin-bottom: .75rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Labels */
.pd-row span {
    color: #666;
}

/* Values */
.pd-row label {
    color: #111;
}

.pd-value {
    color: #111;
    font-weight: 600;
    white-space: nowrap; /* ₹ और amount कभी न टूटें */
}

/* Quantity dropdown */
.qty-dropdown {
    border-radius: 20px;
    padding: .35rem .6rem;
    font-weight: 600;
    font-size: .95rem;
    min-width: 60px;
    border: 1px solid #ccc;
    cursor: pointer;
}

/* Details text */
.pd-detail {
    margin: 1rem 0 1.2rem 0;
    font-size: .95rem;
    color: #333;
    line-height: 1.5;
}

/* ===== BUTTON BAR ===== */

.product-actions-bar {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Common button style (same as Cart) */
.product-actions-bar .btn {
    min-width: 140px;
    padding: .6rem 1.4rem;
    border-radius: 30px;
    border: none;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
}

/* Primary (orange) */
.product-actions-bar .btn.primary {
    background: #f74f22;
    color: #ffffff;
}

/* Secondary (grey) */
.product-actions-bar .btn.secondary {
    background: #f2f2f2;
    color: #333333;
}

/* Hover */
.product-actions-bar .btn:hover {
    opacity: .92;
}

/* ===== MOBILE RESPONSIVE ===== */

@media (max-width: 600px) {

    .product-detail-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .product-left {
        width: 100%;
    }

    .product-img {
        width: 220px;
        height: 220px;
    }

    .pd-row {
        grid-template-columns: 1fr;
        gap: .25rem;
        text-align: center;
    }

    .product-actions-bar {
        flex-direction: column;
    }

    .product-actions-bar .btn {
        width: 100%;
    }
}
