/* Variables for Modern Light UI Theme */
:root {
    --primary-color: #0284c7;       /* Vibrant cyan-blue */
    --primary-hover: #0369a1;       /* Darker blue on hover */
    --accent-color: #16a34a;        /* Vibrant green for price & stock */
    --discount-bg: #ef4444;         /* Bright red for discount badge */
    --text-main: #0f172a;           /* Main dark text */
    --text-muted: #64748b;          /* Muted description text */
    --title-color: #1e40af;         /* Deep royal blue for headings */
    --bg-light: #eafaf1;            /* Soft mint light background */
    --glass-bg: #ffffff;            /* Pure white glass container */
    --glass-border: #e2e8f0;        /* Subtle slate border */
    --border-color: #38bdf8;        /* Cyan accent border */
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Hind Siliguri', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(187, 247, 208, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(224, 242, 254, 0.8) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 600;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i {
    font-size: 0.75rem;
    color: var(--primary-color);
}

.breadcrumb span {
    color: #be185d;
    font-weight: 700;
}

/* Main Layout Grid */
.product-details-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 24px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow);
}

/* LEFT: Gallery Styles */
.gallery-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    width: 100%;
    height: 450px;
    background: #f8fafc;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.main-image-container img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.discount-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--discount-bg);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

/* Thumbnail Row */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.thumb-box {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid var(--glass-border);
}

.thumb-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.thumb-box.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.25);
    background: #f0f9ff;
}

.thumb-box:hover {
    transform: translateY(-2px);
    border-color: #ec4899;
}

/* RIGHT: Product Info Styles */
.info-section {
    display: flex;
    flex-direction: column;
}

.category-tag {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #be185d;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 5px 0 15px 0;
    color: var(--title-color);
    line-height: 1.3;
}

.meta-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.sku-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sku-text strong {
    color: var(--text-main);
}

/* স্টক এবং রেটিং এক লাইনে রাখার স্টাইল */
.stock-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.stock-badge {
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-badge.in-stock {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.stock-badge.out-of-stock {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* Star Ratings */
.rating-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0 !important;
}

.stars {
    color: #d97706;
    font-size: 0.95rem;
}

.rating-val {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Prices */
.price-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
}

.old-price {
    font-size: 1.25rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

.divider {
    border: 0;
    height: 1px;
    background-color: var(--glass-border);
    margin: 20px 0;
}

/* Variations: Sizes & Colors */
.option-group {
    margin-bottom: 20px;
}

.option-group label {
    font-weight: 700;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 10px;
    color: var(--title-color);
}

.options-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    border: 2px solid #cbd5e1;
    background-color: #f8fafc;
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.option-btn:hover {
    border-color: #ec4899;
    color: #ec4899;
    background-color: #fdf2f8;
}

.option-btn.selected {
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 800;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

/* Actions: Qty and Buttons */
.action-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    height: 48px;
    background: #f8fafc;
}

.quantity-selector button {
    background: transparent;
    border: none;
    width: 40px;
    height: 100%;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: bold;
    transition: background 0.2s;
}

.quantity-selector button:hover {
    background-color: #e0f2fe;
}

.quantity-selector input {
    width: 45px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    outline: none;
    background: transparent;
    color: var(--text-main);
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Buttons Grid */
.buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex-grow: 1;
}

.btn {
    height: 48px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-add-cart {
    background-color: #e0f2fe;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-add-cart:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-buy-now {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
}

.btn.disabled {
    background-color: #f1f5f9 !important;
    color: #94a3b8 !important;
    border: 1px solid #cbd5e1 !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* Description Container - লাইট থিম ফিক্স */
.description-container {
    margin-top: 25px;
    color: var(--text-main);
}

.description-container h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: var(--title-color);
}

/* ডেসক্রিপশনের ভেতরের ইনলাইন কালার ওভাররাইড রিসেট */
.description-text {
    line-height: 1.7;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.description-text p, 
.description-text span, 
.description-text div, 
.description-text li {
    color: var(--text-muted) !important;
}

.description-text h1, 
.description-text h2, 
.description-text h3, 
.description-text h4, 
.description-text h5, 
.description-text h6 {
    color: var(--title-color) !important;
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: 700;
}

.description-text strong, 
.description-text b {
    color: var(--text-main) !important;
}

.description-text ul, 
.description-text ol {
    padding-left: 20px;
    margin: 10px 0;
}

.description-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Styles for Mobile */
@media (max-width: 850px) {
    .product-details-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .main-image-container {
        height: 350px;
    }
    .action-container {
        flex-direction: column;
        align-items: stretch;
    }
    .quantity-selector {
        justify-content: center;
    }
}