/* === Overall Container === */
.product-detail-css .product-details {
    display: flex;
    gap: 30px;
    padding: 30px 2.5%; /* 2.5% margin on both sides */
    box-sizing: border-box;
}

/* === Column 1: Image Section (4/12) === */
.product-detail-css .image-column {
    flex: 0 0 33%;
    display: flex;
    flex-direction: column;
    align-items: stretch; /* allow full height */
    height: auto;
}

.product-detail-css .image-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    height: 100%; /* allow full height */
}

/* Thumbnails vertically on the left */
.product-detail-css .image-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-detail-css .thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-detail-css .thumbnail:hover {
    transform: scale(1.1);
    border: 2px solid #3498db;
}

/* Main product image */
.product-detail-css .large-image {
    position: sticky;
    top: 20px;
    flex-grow: 1;
    max-height: 80vh;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
}

.product-detail-css .large-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* === Column 2: Product Info (6/12) === */
.product-detail-css .product-info-column {
    flex: 0 0 46%;
    display: flex;
    flex-direction: column;
}

.product-detail-css .product-info h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.product-detail-css .price {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.product-detail-css .original-price {
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
    font-size: 1.3rem;
}

.product-detail-css .discounted-price {
    font-size: 1.8rem;
    color: #333;
    font-weight: 700;
}

.product-detail-css .product-variants {
    margin: 20px 0;
}

.product-detail-css .variant-radio {
    display: none;
}

.product-detail-css .product-variants label {
    display: inline-block;
    cursor: pointer;
    margin-right: 3px;
    padding: 8px 3px;
    background-color: #f4f4f4;
    border: 2px solid transparent;
    border-radius: 5px;
}

.product-detail-css .variant-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.product-detail-css .variant-radio:checked + .variant-label {
    border-color: #3498db;
    background-color: #e1f1fd;
}

.product-detail-css .product-description h3 {
    margin-top: 30px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.product-detail-css .product-description p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
}

/* === Column 3: Purchase (2/12) === */
.product-detail-css .purchase-column {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 20px;
    /* padding: 10px 15px; */
    background-color: transparent;
    border-radius: 10px;
    max-width: 220px;
    /* Remove fixed height, but allow content to determine the height */
    height: auto; /* This allows the height to be dynamic */
}

.product-detail-css .purchase-column form {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Ensure form height is dynamic */
    padding: 10px;
    min-height: 500px; /* Adjust this value to your desired minimum height */
    height: auto;
    border: 1px solid #555555b7;
    border-radius: 10px;
}

.product-detail-css .purchase-column .price-section {
    margin-bottom: 20px;
}

.product-detail-css .purchase-column .price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2c3e50;
}

.product-detail-css .purchase-column .shipping,
.product-detail-css .purchase-column .import {
    font-size: 1rem;
    color: #7f8c8d;
}

.product-detail-css .purchase-column .stock .in-stock {
    font-size: 1.1rem;
    font-weight: bold;
    color: #27ae60;
    margin-top: 10px;
}

.product-detail-css .purchase-column .stock .out-stock {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ae2727;
    margin-top: 10px;
}

.product-detail-css .purchase-column button {
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin-top: 10px;
}

.product-detail-css .purchase-column .buy-now {
    background-color: #e67e22;
}

.product-detail-css .purchase-column button:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.product-detail-css .purchase-column .buy-now:hover {
    background-color: #d1721f;
    transform: scale(1.05);
}

.product-detail-css .purchase-column .payment-info {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #7f8c8d;
}
/* === Responsive: Stack columns for mobile === */
@media (max-width: 768px) {
    .product-detail-css .product-details {
        flex-direction: column;
        padding: 20px;
    }

    .product-detail-css .image-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .product-detail-css .image-thumbnails {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }

    .product-detail-css .image-column,
    .product-detail-css .product-info-column,
    .product-detail-css .purchase-column {
        width: 100%;
        flex: none;
    }

    .product-detail-css .purchase-column button {
        max-width: 100%;
    }
}



/* ********************************product-specifications******************************** */

.product-specifications-amz {
    margin-top: 50px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.06);
}

/* 2-Column Grid Like Amazon */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Column */
.spec-column {
    width: 100%;
}

/* Section Heading */
.spec-heading {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #f0f0f0;
}

/* Table Style (Amazon look) */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    table-layout: fixed; 
}

.spec-table th {
    width: 35%;
    padding: 10px 12px;
    background: #fafafa;
    font-weight: 600;
    color: #555;
    border-bottom: 1px solid #e6e6e6;
    word-break: break-word;        
    word-wrap: break-word;
    white-space: normal;
}

.spec-table td {
    width: 65%;
    padding: 10px 12px;
    color: #444;
    border-bottom: 1px solid #e6e6e6;
    word-break: break-word;
    word-wrap: break-word;
    white-space: normal;
}

/* Variant overrides highlight */
.variant-highlight {
    background: #fff8db;
}

/* Responsive Amazon Style */
@media (max-width: 900px) {
    .spec-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ********************************product-specifications end******************************** */
