/* --- 1. RESET & VARIABLES --- */
:root {
    --primary-color: #212121;
    --accent-color: #d32f2f;
    /* Red for discounts */
    --bg-color: #f9f9f9;
    --border-color: #e0e0e0;
    --text-dark: #333333;
    --text-light: #666666;
    --radius: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Anek Bangla", sans-serif;
    /* STRICTLY ANEK BANGLA */
    /* background-color: var(--bg-color); */
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- 2. LAYOUT CONTAINER --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
}

.breadcrumb span {
    margin: 0 8px;
}

/* Grid Layout */
.product-wrapper {
    display: flex;
    /* Image wider than text */
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- 3. LEFT COLUMN: IMAGES --- */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 40%;
}

.main-image {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.02);
    /* Subtle zoom */
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumb {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    overflow: hidden;
}

.thumb.active {
    border: 2px solid var(--primary-color);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 4. RIGHT COLUMN: DETAILS --- */
.product-info h1 {
    font-size: 1.5rem;
    /* font-size: 2rem; */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Price Area */
.price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.sp-current-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.2rem;
}

.discount-badge {
    background-color: var(--accent-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.stock-status {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Selectors (Size/Color) */
.option-group {
    margin-bottom: 25px;
}

.option-title {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    color: var(--text-dark);
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Custom Radio Buttons styling */
.size-radio {
    display: none;
}

.size-label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.size-radio:checked+.size-label {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.size-label:hover {
    border-color: var(--primary-color);
}

/* Color Options */
.color-label {
    padding: 5px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.size-radio:checked+.color-label {
    background-color: #fce4ec;
    /* Light pink bg for selection */
    border-color: #e91e63;
    color: #e91e63;
}

/* Actions: Quantity & Buttons */
.action-area {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.quantity-wrapper {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    height: 50px;
    width: 120px;
}

.qty-btn {
    width: 40px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-dark);
}

.qty-input {
    width: 40px;
    border: none;
    text-align: center;
    font-family: "Anek Bangla", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.qty-input:focus {
    outline: none;
}

table.variations tbody tr {
    display: flex;
    flex-direction: row;
    margin-bottom: 10px;
    align-items: center;
}

span.color-label:last-child {
    margin-right: 0px;
}

span.color-label {
    margin-right: 10px;
}

table.variations tbody tr td.value {
    margin-left: 10px;
}

.qty-input {
    height: 100% !important;
}

tr:nth-child(2) td.value {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    flex: 1;
    min-width: 150px;
    height: 50px;
    border-radius: 4px;
    border: none;
    font-family: "Anek Bangla", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cart {
    background-color: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-cart:hover {
    background-color: #f0f0f0;
}

.btn-buy {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-buy:hover {
    opacity: 0.9;
}

/* --- 5. BOTTOM DETAILS (Specs & Table) --- */
.details-section {
    margin-top: 30px;
    background: #fafafa;
    padding: 20px;
    border-radius: var(--radius);
}

.details-grid {
    display: flex;
    gap: 30px;
    flex-direction: row;
}

.spec-list {
    list-style: none;
}

.spec-list li {
    margin-bottom: 8px;
    /* display: flex; */
    /* text-align: end; */
    /* gap: 0px; */
    /* width: 25%; */
}

.spec-list strong {
    width: 130px;
    color: var(--text-dark);
    font-weight: 600;
    /* text-align: left; */
    /* margin-right: 11px; */
}

/* Size Chart Table */
.size-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: #fff;
}

.size-table th,
.size-table td {
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    text-align: center;
}

.size-table th {
    background-color: #eee;
    font-weight: 600;
}

.info-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: var(--text-light);
}

.info-footer p {
    margin-bottom: 5px;
}

/* --- 6. MOBILE RESPONSIVE --- */
@media (max-width: 768px) {

    .product-wrapper {
        /* Stack vertically */
        gap: 20px;
        padding: 15px;
        flex-direction: column;
    }

    .product-gallery {
        width: 100%;
    }

    .single-product-info {
        width: 100% !important;
    }

    .size-table th,
    .size-table td {

        padding: 6px 3px;

        font-size: 13px;
    }

    .details-grid {
        /* Stack specs */
        flex-direction: column;
        gap: 15px;
    }

    .action-area {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .single-product-title {
        font-size: 22px;
    }
}

span.color-label {
    color: #000 !important;
    background: #fff !important;
}

span.color-label.selected {
    background: #000 !important;
    color: #fff !important;
}

.single-product-info {
    width: 60%;
}

.product-description {
    padding: 30px;
    background: #ffffff;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06);
}

.top-section-rating:before {
    content: "\2605\2605\2605\2605\2605";
    font-size: 20px;
    letter-spacing: 2px;
    color: gold;
    transition: all 0.3s ease;
}

.discount-badge .woocommerce-Price-amount.amount bdi,
.discount-badge .woocommerce-Price-amount.amount bdi .woocommerce-Price-currencySymbol {
    color: #fff;
}

span.posted_in,
span.tagged_as {
    width: 100%;
    display: block;
}

html {
    scroll-behavior: smooth;
}