/* Variables for Dark Neon Cyberpunk UI Theme */
:root {
    --primary-color: #00f3ff;
    --primary-hover: #60efff;
    --accent-color: #00ff87;
    --discount-bg: #ff0055;
    --text-main: #f1f5f9;      /* প্রধান উজ্জ্বল টেক্সট কালার */
    --text-muted: #cbd5e1;     /* ডেসক্রিপশন ও সেকেন্ডারি টেক্সটের জন্য দৃশ্যমান কালার */
    --bg-dark: #080c14;
    --border-color: rgba(0, 243, 255, 0.3);
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow: 0 8px 32px rgba(0, 243, 255, 0.15);
}

/* স্মুথ স্ক্রোলিং ও পারফরম্যান্স বুস্ট */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 243, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 127, 0.08) 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;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

.breadcrumb i {
    font-size: 0.75rem;
    color: var(--primary-color);
}

.breadcrumb span {
    color: #ff007f;
    font-weight: 600;
}

/* Main Layout Grid */
.product-details-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 30px;
    border-radius: 24px;
    border: 1px 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: rgba(255, 255, 255, 0.03);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}

.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: 700;
    box-shadow: 0 0 12px var(--discount-bg);
}

/* 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: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1.5px 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 12px rgba(0, 243, 255, 0.6);
    background: rgba(0, 243, 255, 0.08);
}

.thumb-box:hover {
    transform: translateY(-2px);
    border-color: #ff007f;
}

/* RIGHT: Product Info Styles */
.info-section {
    display: flex;
    flex-direction: column;
}

.category-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ff007f;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    text-shadow: 0 0 6px rgba(255, 0, 127, 0.4);
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 5px 0 15px 0;
    color: var(--primary-color);
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.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: 4px 12px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-badge.in-stock {
    background-color: rgba(0, 255, 135, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(0, 255, 135, 0.3);
    box-shadow: 0 0 8px rgba(0, 255, 135, 0.2);
}

.stock-badge.out-of-stock {
    background-color: rgba(255, 0, 85, 0.15);
    color: var(--discount-bg);
    border: 1px solid rgba(255, 0, 85, 0.3);
}

/* Star Ratings */
.rating-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0 !important;
}

.stars {
    color: #ffcc00;
    font-size: 0.95rem;
    text-shadow: 0 0 6px rgba(255, 204, 0, 0.4);
}

.rating-val {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* 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);
    text-shadow: 0 0 10px rgba(0, 255, 135, 0.4);
}

.old-price {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.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: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.options-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-btn {
    border: 1.5px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.option-btn:hover {
    border-color: #ff007f;
    color: #ff007f;
}

.option-btn.selected {
    background-color: var(--primary-color);
    color: #000;
    font-weight: bold;
    border-color: var(--primary-color);
    box-shadow: 0 0 12px var(--primary-color);
}

/* Actions: Qty and Buttons */
.action-container {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
}

.quantity-selector button {
    background: transparent;
    border: none;
    width: 40px;
    height: 100%;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: background 0.2s;
}

.quantity-selector button:hover {
    background-color: rgba(0, 243, 255, 0.15);
}

.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: 700;
    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: rgba(0, 243, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-add-cart:hover {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
}

.btn-buy-now {
    background: linear-gradient(135deg, #00ff87, #60efff);
    color: #000;
    box-shadow: 0 0 12px rgba(0, 255, 135, 0.4);
}

.btn-buy-now:hover {
    box-shadow: 0 0 20px rgba(0, 255, 135, 0.8);
    transform: translateY(-2px);
}

.btn.disabled {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #64748b !important;
    border: 1px solid var(--glass-border) !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: 700;
    margin: 0 0 12px 0;
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
}

/* ডেসক্রিপশনের ভেতরের সকল লেখা দৃশ্যমান করার জন্য */
.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(--primary-color) !important;
    margin-top: 15px;
    margin-bottom: 8px;
}

.description-text strong, 
.description-text b {
    color: var(--accent-color) !important;
}

.description-text ul, 
.description-text ol {
    padding-left: 20px;
    margin: 10px 0;
}

.description-text a {
    color: var(--primary-hover);
    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;
    }
}




    .related-products-section {
        margin-top: 25px;
        padding-top: 15px;
        border-top: 1px solid var(--glass-border);
    }

    .related-title {
        font-size: 1.15rem;
        font-weight: 700;
        margin-bottom: 12px;
        color: var(--primary-color);
        text-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
    }

    .related-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .related-card {
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 8px;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        text-decoration: none;
        color: var(--text-main);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: all 0.3s ease;
    }

    .related-card:hover {
        transform: translateY(-3px);
        border-color: #ff007f;
        box-shadow: 0 4px 15px rgba(255, 0, 127, 0.25);
    }

    .related-img-wrapper {
        width: 100%;
        height: 110px;
        text-align: center;
        margin-bottom: 6px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .related-img-wrapper img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
    }

    .related-card h4 {
        font-size: 0.85rem;
        font-weight: 600;
        margin: 4px 0;
        color: var(--text-main);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .related-price-row {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
    }

    .related-current-price { 
        font-weight: 700; 
        color: var(--accent-color); 
        text-shadow: 0 0 6px rgba(0, 255, 135, 0.3);
    }

    .related-old-price { 
        text-decoration: line-through; 
        color: var(--text-muted); 
        font-size: 0.75rem; 
    }

