html, body {
    margin: 0;
    padding: 0;
    text-transform: capitalize;
    font-family: 'Lato', sans-serif;
    font-weight: 100;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
}

/* Flash Sale Banner */
.flash-sale-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    animation: pulse-banner 2s infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
    will-change: opacity;
    transform: translateZ(0); /* Force GPU acceleration */
    backface-visibility: hidden; /* Prevent flickering */
}

/* When banner is hidden, ensure it doesn't affect layout */
.flash-sale-banner[style*="display: none"],
.flash-sale-banner[style*="display: none"] {
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

@keyframes pulse-banner {
    0%, 100% { box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(231, 76, 60, 0.6); }
}

.flash-sale-banner-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.flash-sale-banner-left {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    gap: 10px;
}

.flash-sale-banner-left i {
    animation: pulse-fire 2s infinite;
}

@keyframes pulse-fire {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.flash-sale-text {
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.flash-sale-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.flash-sale-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 10px 16px;
    min-width: 70px;
    width: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.flash-sale-countdown-item:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.flash-sale-countdown-number {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
    font-family: 'Lato', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    font-variant-numeric: tabular-nums; /* Ensures numbers align properly */
}

.flash-sale-countdown-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: 'Lato', sans-serif;
    line-height: 1.2;
    text-align: center;
    width: 100%;
    margin-top: 2px;
}

.flash-sale-separator {
    font-size: 26px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 6px;
    line-height: 1;
    font-family: 'Lato', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    align-self: center;
    flex-shrink: 0;
}

/* Adjust main padding when banner is visible */
body:has(.flash-sale-banner[style*="display: block"]) main {
    padding-top: 140px;
    transition: padding-top 0.2s ease;
}

/* Adjust header position when banner is visible */
body:has(.flash-sale-banner[style*="display: block"]) header {
    top: 50px;
    transition: top 0.2s ease;
}

/* Ensure header and main have smooth transitions */
header {
    transition: top 0.2s ease;
}

main {
    transition: padding-top 0.2s ease;
}

@media(max-width: 767px) {
    .flash-sale-banner {
        top: 0;
    }
    
    .flash-sale-banner-content {
        padding: 12px 15px;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }
    
    .flash-sale-banner-left {
        font-size: 14px;
        justify-content: center;
        width: 100%;
    }
    
    .flash-sale-banner-left i {
        font-size: 18px;
    }
    
    .flash-sale-text {
        font-size: 13px;
    }
    
    .flash-sale-countdown {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .flash-sale-countdown-item {
        padding: 8px 12px;
        min-width: 60px;
        border-radius: 6px;
        flex: 0 0 auto;
    }
    
    .flash-sale-countdown-number {
        font-size: 20px;
        min-height: 24px;
        margin-bottom: 3px;
        letter-spacing: 1px;
    }
    
    .flash-sale-countdown-label {
        font-size: 8px;
        letter-spacing: 0.5px;
        margin-top: 1px;
    }
    
    .flash-sale-separator {
        font-size: 20px;
        margin: 0 3px;
        align-self: center;
    }
    
    body:has(.flash-sale-banner[style*="display: block"]) header {
        top: 50px;
    }
    
    body:has(.flash-sale-banner[style*="display: block"]) main {
        padding-top: 180px;
    }
}

* {
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

/* Loader Styles */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    min-height: 400px;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid rgb(3, 122, 122);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-container p {
    color: rgb(3, 122, 122);
    font-size: 16px;
    margin-top: 10px;
}

/* Error Message Styles */
.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background-color: #fff5f5;
    border: 2px solid #feb2b2;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 500px;
}

.error-message i {
    font-size: 48px;
    color: #e53e3e;
    margin-bottom: 15px;
}

.error-message p {
    color: #c53030;
    font-size: 16px;
    margin-bottom: 20px;
}

.error-message button {
    padding: 10px 20px;
    background-color: rgb(3, 122, 122);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.error-message button:hover {
    background-color: rgb(3, 94, 94);
}

/* Success Message Styles */
.success-message {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: #48bb78;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.success-message.show {
    opacity: 1;
    transform: translateX(0);
}

.success-message i {
    font-size: 20px;
}

.success-message span {
    font-size: 16px;
}

/* Main content - offset for fixed header so breadcrumb doesn't collapse with it */
main {
    padding-top: 80px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    padding-top: 20px;
    padding-bottom: 20px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    position: relative;
    z-index: 1;
}

.breadcrumb-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.breadcrumb-item a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
    padding: 4px 8px;
    border-radius: 4px;
}

.breadcrumb-item a:hover {
    color: rgb(3, 122, 122);
    background-color: rgba(3, 122, 122, 0.1);
}

.breadcrumb-item a i {
    font-size: 12px;
}

.breadcrumb-separator {
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.breadcrumb-separator i {
    font-size: 10px;
}

.breadcrumb-current {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    /* Limit to 3 lines with truncation */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 3);
    word-wrap: break-word;
}

.breadcrumb-current span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 3);
    word-wrap: break-word;
}

/* Button Loading State */
#addToCartBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#addToCartBtn .fa-spinner {
    margin-right: 8px;
}

/* Preview Image - No hover effect (removed as requested) */

#containerProduct
{
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    width: 100%;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

#containerProduct::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(3, 122, 122, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(3, 122, 122, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
#containerD
{
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    grid-template-rows: auto;
    padding: 80px 20px;
    box-sizing: border-box;
    overflow-x: visible;
    overflow-y: visible;
    grid-gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
}
#imageSection
{
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    display: block;
    position: sticky;
    top: 90px;
    overflow: visible;
    height: fit-content;
    align-self: start;
    grid-row: 1;
    grid-column: 1;
    z-index: 10;
    margin-top: 0;
    padding-top: 0;
}

/* Image wrapper container - maintains consistent size */
.main-image-wrapper {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    min-height: 500px !important;
    max-height: 600px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border-radius: 16px;
    border: 1px solid rgba(42, 42, 42, 0.8);
    overflow: hidden;
    box-sizing: border-box;
}

/* Only target #imgDetails - other images keep original styles */
#imgDetails {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(42, 42, 42, 0.8);
    object-fit: cover !important;
    object-position: center !important;
    margin: 0;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
}

/* Hover effect only for main image */
#imgDetails:hover {
    box-shadow: 0 12px 40px rgba(3, 122, 122, 0.3),
                0 8px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(3, 122, 122, 0.5);
}

/* Keep original styles for other images in imageSection (preview images) */
/* Styles are handled by #productPreview > img selector below */

/* Image Zoom Effect (Daraz/Amazon style) */
.product-image-zoom {
    cursor: zoom-in !important;
    transition: transform 0.1s ease;
}

/* Zoom Lens (the magnifying glass) */
.zoom-lens {
    position: absolute;
    border: 2px solid rgb(3, 122, 122);
    width: 150px;
    height: 150px;
    background: rgba(3, 122, 122, 0.1);
    pointer-events: none;
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(3, 122, 122, 0.5);
}

/* Position zoom result in productDetails section */
#productDetails {
    position: relative;
    /* Zoom won't affect layout - padding handled in main definition */
}

/* Share Icon with Rating */
.share-icon-rating {
    width: 40px;
    max-width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid #4ecdc4;
    color: #4ecdc4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    outline: none;
    flex-shrink: 0;
}

.share-icon-rating:hover {
    background-color: #4ecdc4;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
}

.share-icon-rating:active {
    transform: scale(0.95);
}

.share-icon-rating i {
    margin: 0;
    padding: 0;
}

/* Zoom Result Container (magnified image) - Full size like Amazon/Daraz */
/* Positioned at the top of productDetails, doesn't affect any layout */
.zoom-result {
    position: fixed;
    width: 500px;
    height: 500px;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff; /* White background for container */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000; /* Higher z-index to show on top */
    pointer-events: none;
    display: none;
    will-change: transform; /* Optimize for smooth animation */
    padding: 0; /* Remove any padding */
    margin: 0; /* Remove any margin */
}

/* On larger screens, position zoom result at the top of productDetails */
@media (min-width: 1200px) {
    .zoom-result {
        width: 550px;
        height: 550px;
        max-width: 100%;
    }
}

/* Medium screens */
@media (min-width: 769px) and (max-width: 1199px) {
    .zoom-result {
        width: 400px;
        height: 400px;
        max-width: 100%;
    }
}

/* On smaller screens, hide zoom */
@media (max-width: 768px) {
    .zoom-result {
        display: none !important;
    }
}

.zoom-result img {
    position: absolute;
    display: block;
    object-fit: none;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    /* Ensure image fills container to avoid white space */
    min-width: 100%;
    min-height: 100%;
}

/* Mobile: Hide zoom on small screens */
@media (max-width: 768px) {
    .zoom-lens,
    .zoom-result {
        display: none !important;
    }
    
    .product-image-zoom {
        cursor: default !important;
    }
}

#productDetails
{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: visible;
    overflow-y: visible;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(42, 42, 42, 0.8);
    padding: 40px;
    position: relative;
    z-index: 1;
    grid-row: 1;
    grid-column: 2;
}
h1
{
    font-size: 35px;
    letter-spacing: 1px;
    word-spacing: 2px;
    margin: 10px 0;
    color: #ffffff;
    font-weight: 700;
}

/* Product Rating Stars on Details Page */
/* Rating and Share Container */
.rating-share-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0 15px 0;
    gap: 20px;
}

.product-rating-details {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.product-rating-details i {
    color: #ffc107;
    font-size: 18px;
}

.product-rating-details i.far {
    color: #ddd;
}

.product-rating-details .rating-number-details {
    color: #b0b0b0;
    font-size: 16px;
    margin-left: 8px;
    font-weight: 500;
}

h4
{
    font-size: 15px;
    font-weight: bold;
    color: rgb(3, 122, 122);
    letter-spacing: 1px;
    word-spacing: 2px;
    margin: 8px 0;
}

#productDetails p {
    color: #d0d0d0;
    line-height: 1.8;
}

/* Price styling - allow wrapping but keep aligned */
.price-details {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.original-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.85em;
    font-weight: normal;
}

.final-price {
    color: rgb(3, 122, 122);
    font-weight: bold;
    font-size: 1.1em;
}

.discount-badge {
    background-color: #e53e3e;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
}

.discount-badge-top {
    background-color: #e53e3e;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    font-weight: bold;
}

/* New Arrival Badge - Updated Styling */
.badge-new {
    background: #4ecdc4;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: inline-block;
}

/* Hot Sale Badge */
.badge.hot-sale,
.hot-sale {
    background-color: #e53e3e;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

/* Best Seller Badge */
.badge.best-seller,
.best-seller {
    background-color: #d69e2e;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}

#details h3:first-child {
    font-size: 24px;
    font-weight: bold;
    color: rgb(3, 122, 122);
    margin: 10px 0;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}

h3 {
    font-size: 18px;
    margin: 10px 0;
    color: #ffffff;
    font-weight: 600;
}

#productPreview
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    max-width: 100%;
    overflow: visible;
    width: 100%;
}
#productPreview > img
{
    width: 80px;
    min-width: 80px;
    height: 80px;
    cursor: pointer;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border 0.2s ease;
    border-radius: 4px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#productPreview > img.selected
{
    border: 3px solid rgb(3, 122, 122);
    border-radius: 4px;
}
p
{
    font-size: 15px;
    word-spacing: 2px;
    letter-spacing: 1px;
    line-height: 1.8;
    margin: 10px 0;
    color: #d0d0d0;
}
/* Stock Info - Inside quantity controls, aligned to right */
.stock-info {
    margin: 0;
    margin-left: auto; /* Push to right side */
    font-size: 14px;
    font-weight: 500;
}

/* Quantity Controls on Product Details */
.quantity-controls-details {
    display: inline-flex; /* Use inline-flex to only take required width */
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    margin-left: auto; /* Align to right side */
    padding: 15px 20px; /* Add horizontal padding */
   
    width: fit-content; /* Only take required width */
    max-width: 100%; /* Prevent overflow on small screens */
    flex-shrink: 0; /* Don't shrink */
}

.quantity-label-details {
    font-size: 16px;
    color: #ffffff;
    font-weight: 500;
    margin-right: 5px;
}

.quantity-btn-details {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(42, 42, 42, 0.8);
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #b0b0b0;
}

.quantity-btn-details:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(3, 122, 122), #4dd0e1);
    color: #fff;
    border-color: rgb(3, 122, 122);
    box-shadow: 0 2px 8px rgba(3, 122, 122, 0.4);
}

.quantity-btn-details:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-value-details {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    padding: 0 10px;
}

.button-container {
    display: flex;
    gap: 15px;
}

/* Reduce spacing on mobile */
@media(max-width: 767px) {
    #productPreview {
        margin: 5px 0;
    }
    
    #details {
        margin: 0;
        padding: 0;
    }
    
    .quantity-controls-details {
        gap: 12px;
        margin: 15px 0;
        padding: 12px 0;
    }
    
    .quantity-label-details {
        font-size: 14px;
    }
    
    .quantity-btn-details {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .quantity-value-details {
        font-size: 16px;
        min-width: 40px;
        padding: 0 8px;
    }
}

/* Scoped to contentdetails page only - won't affect cart drawer buttons */
#productDetails button,
#productDetails .btn-add-to-cart,
#productDetails .btn-buy-now,
#button button,
#button .btn-add-to-cart,
#button .btn-buy-now,
.containerProduct button,
#containerProduct button
{
    padding: 15px 30px;
    color: white;
    background: linear-gradient(135deg, rgb(3, 122, 122), #4dd0e1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(3, 122, 122, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

#productDetails .btn-buy-now,
#button .btn-buy-now,
#containerProduct .btn-buy-now {
    background: linear-gradient(135deg, #48bb78, #38a169);
    font-weight: bold;
}

#productDetails .btn-buy-now:hover,
#button .btn-buy-now:hover,
#containerProduct .btn-buy-now:hover {
    background: linear-gradient(135deg, #38a169, #48bb78);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.6);
}

#productDetails .btn-share,
#button .btn-share,
#containerProduct .btn-share {
    background-color: #4299e1;
    font-weight: bold;
}

#productDetails .btn-share:hover,
#button .btn-share:hover,
#containerProduct .btn-share:hover {
    background-color: #3182ce;
}

#productDetails button a,
#button button a,
#containerProduct button a
{
    text-decoration: none;
    font-size: 18px;
}

#productDetails button:hover,
#productDetails .btn-add-to-cart:hover,
#button button:hover,
#button .btn-add-to-cart:hover,
#containerProduct button:hover,
#containerProduct .btn-add-to-cart:hover
{
    background: linear-gradient(135deg, #4dd0e1, rgb(3, 122, 122));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(3, 122, 122, 0.6);
}

#productDetails button a:focus,
#button button a:focus,
#containerProduct button a:focus
{
    outline: none;
}

#productDetails button:disabled,
#button button:disabled,
#containerProduct button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ----------------------------- MEDIA QUERY --------------------------- */

/* Desktop Large (1400px+) */
@media(min-width: 1400px) {
    #containerD {
        padding: 80px 20px;
    }
    
    #productDetails {
        padding: 40px;
    }
    
    h1 {
        font-size: 38px;
    }
}

/* Desktop (1200px - 1399px) */
@media(max-width: 1399px) {
    #containerD {
        padding: 80px 20px;
    }
    
    #productDetails {
        padding: 40px;
    }
    
    h1 {
        font-size: 35px;
    }
}

/* Tablet Landscape (1024px - 1199px) */
@media(max-width: 1199px) {
    #containerD {
        padding: 70px 20px;
    }
    
    #productDetails {
        padding: 35px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    #productPreview > img {
        width: 70px;
        height: 70px;
    }
    
    p {
        font-size: 16px;
    }
}

/* Tablet Portrait (768px - 1023px) */
@media(max-width: 1023px) {
    #containerD {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr;
        padding: 70px 20px;
        grid-gap: 30px;
        box-sizing: border-box;
    }
    
    #productDetails {
        padding: 30px;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    #imageSection {
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
        position: relative;
        top: auto;
    }
    
    /* Maintain consistent image container size on mobile - responsive */
    .main-image-wrapper {
        aspect-ratio: 1 / 1 !important;
        width: 100% !important;
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
    }
    
    /* Only target #imgDetails on mobile - keep aspect ratio */
    #imgDetails {
        aspect-ratio: 1 / 1 !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        float: none;
        display: block;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    #productDetails {
        width: 100%;
    }
    
    /* Keep preview images small - don't affect them */
    #productPreview {
        gap: 15px;
    }
    
    #productPreview > img {
        width: 75px !important;
        height: 75px !important;
        min-width: 75px !important;
        max-width: 75px !important;
        max-height: 75px !important;
        object-fit: cover !important;
    }
    
    #productPreview > img.selected {
        border: 3px solid rgb(3, 122, 122);
        border-radius: 4px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h4 {
        font-size: 16px;
    }
    
    p {
        font-size: 15px;
    }
    
    .button-container {
        justify-content: center;
    }
    
    #productDetails button,
    #productDetails .btn-add-to-cart,
    #productDetails .btn-buy-now,
    #button button,
    #button .btn-add-to-cart,
    #button .btn-buy-now,
    #containerProduct button {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* Mobile Landscape (600px - 767px) */
@media(max-width: 767px) {
    #containerProduct {
        padding-top: 60px;
    }
    
    #containerD {
        width: 100%;
        max-width: 1280px;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 20px 20px;
        grid-gap: 15px;
        box-sizing: border-box;
    }
    
    #productDetails {
        padding: 25px 20px;
        grid-row: 2;
        grid-column: 1;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    #imageSection {
        width: 100%;
        max-width: 100%;
        margin: 0;
        position: relative;
        top: auto;
        grid-row: 1;
        grid-column: 1;
    }
    
    #imageSection img:not(#imgDetails):not(#productPreview > img) {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    /* Only #imgDetails gets aspect ratio for responsiveness */
    #imgDetails {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        max-height: none !important;
    }
    
    /* Keep preview images small - don't affect them */
    #productPreview {
        gap: 6px;
        padding-bottom: 8px;
    }
    
    #productPreview > img {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        max-width: 60px !important;
        max-height: 60px !important;
        object-fit: cover !important;
    }
    
    #productPreview > img.selected {
        border: 3px solid rgb(3, 122, 122);
        border-radius: 4px;
    }
    
    h1 {
        font-size: 20px;
        margin: 8px 0;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 14px;
        margin: 6px 0;
    }
    
    /* Price - can wrap to two lines if needed */
    #details h3:first-child {
        font-size: 20px;
        line-height: 1.3;
        margin: 6px 0;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    h3 {
        font-size: 16px;
        margin: 8px 0;
        color: #ffffff;
        font-weight: 600;
    }
    
    p {
        font-size: 13px;
        line-height: 1.5;
        margin: 8px 0;
    }
    
    #productDetails {
        padding: 25px 20px;
    }
    
    #productDetails button,
    #productDetails .btn-add-to-cart,
    #productDetails .btn-buy-now,
    #button button,
    #button .btn-add-to-cart,
    #button .btn-buy-now,
    #containerProduct button {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .quantity-controls-details {
        gap: 10px;
        margin: 12px 0;
        padding: 10px 0;
    }
    
    .quantity-label-details {
        font-size: 13px;
    }
    
    .quantity-btn-details {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    
    .quantity-value-details {
        font-size: 15px;
        min-width: 35px;
        padding: 0 6px;
    }
    
    .button-container {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    
    .success-message {
        top: 80px;
        right: 15px;
        left: 15px;
        padding: 12px 20px;
    }
    
    .loader-container {
        padding: 80px 20px;
        min-height: 300px;
    }
    
    .error-message {
        margin: 30px auto;
        max-width: 90%;
    }
}

/* Mobile Portrait (480px - 599px) */
@media(max-width: 599px) {
    #containerProduct {
        padding-top: 55px;
    }
    
    #containerD {
        width: 100%;
        max-width: 1280px;
        padding: 15px 20px;
        grid-gap: 4px;
        box-sizing: border-box;
    }
    
    #imageSection {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    #imageSection img:not(#imgDetails):not(#productPreview > img) {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }
    
    /* Only #imgDetails gets aspect ratio for responsiveness */
    #imgDetails {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        max-height: none !important;
    }
    
    /* Keep preview images small - don't affect them */
    #productPreview {
        gap: 5px;
        padding-bottom: 6px;
    }
    
    #productPreview > img {
        width: 55px !important;
        height: 55px !important;
        min-width: 55px !important;
        max-width: 55px !important;
        max-height: 55px !important;
        object-fit: cover !important;
    }
    
    #productPreview > img.selected {
        border: 3px solid rgb(3, 122, 122);
        border-radius: 4px;
    }
    
    h1 {
        font-size: 18px;
        margin: 24px 0px 0px 0px;
        line-height: 1.3;
        letter-spacing: 0.3px;
    }
    
    h4 {
        font-size: 13px;
        margin: 4px 0;
    }
    
    /* Price - can wrap to two lines if needed */
    #details h3:first-child {
        font-size: 18px;
        line-height: 1.3;
        margin: 5px 0;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    h3 {
        font-size: 15px;
        margin: 6px 0;
        color: #ffffff;
        font-weight: 600;
    }
    
    p {
        font-size: 12px;
        line-height: 1.4;
        margin: 6px 0;
    }
    
    #productDetails {
        padding: 20px 0px;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    #productDetails button,
    #productDetails .btn-add-to-cart,
    #productDetails .btn-buy-now,
    #button button,
    #button .btn-add-to-cart,
    #button .btn-buy-now,
    #containerProduct button {
        font-size: 13px;
        padding: 9px 14px;
    }
    
    .quantity-controls-details {
        gap: 8px;
        margin: 10px 0;
        padding: 8px 0;
    }
    
    .quantity-label-details {
        font-size: 12px;
    }
    
    .quantity-btn-details {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
    
    .quantity-value-details {
        font-size: 14px;
        min-width: 30px;
        padding: 0 5px;
    }
    
    .button-container {
        gap: 8px;
        margin-top: 12px;
    }
    
    .success-message {
        top: 70px;
        right: 10px;
        left: 10px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .success-message i {
        font-size: 18px;
    }
    
    .loader-container {
        padding: 60px 20px;
        min-height: 250px;
    }
    
    .loader {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .error-message {
        padding: 40px 20px;
        margin: 20px auto;
    }
    
    .error-message i {
        font-size: 40px;
    }
    
    .error-message p {
        font-size: 14px;
    }
}

/* Small Mobile (320px - 479px) */
@media(max-width: 479px) {
    #containerProduct {
        padding-top: 50px;
    }
    
    #containerD {
        width: 100%;
        max-width: 1280px;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 20px;
        grid-gap: 4px;
        box-sizing: border-box;
        margin: 0;
    }
    
    #productDetails {
        padding: 18px 12px;
        grid-row: 2;
        grid-column: 1;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    
    #imageSection {
        width: 100%;
        max-width: 100%;
        margin: 0;
        position: relative;
        top: auto;
        grid-row: 1;
        grid-column: 1;
    }
    
    #imageSection img:not(#imgDetails):not(#productPreview > img) {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
        border-radius: 8px;
    }
    
    /* Only #imgDetails gets aspect ratio for responsiveness */
    #imgDetails {
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        max-height: none !important;
    }
    
    #productDetails {
        width: 100%;
        max-width: 100%;
        padding: 18px 0px;
    }
    
    /* Keep preview images small - don't affect them */
    #productPreview {
        gap: 15px;
        padding-top: 10px;
    }
    
    #productPreview > img {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
        object-fit: cover !important;
    }
    
    #productPreview > img.selected {
        border: 3px solid rgb(3, 122, 122);
        border-radius: 4px;
    }
    
    h1 {
        font-size: 16px;
        margin: 20px 0px 0px 0px;
        line-height: 1.3;
        letter-spacing: 0.2px;
        word-spacing: 0.5px;
    }
    
    h4 {
        font-size: 12px;
        margin: 3px 0;
    }
    
    /* Price - can wrap to two lines if needed */
    #details h3:first-child {
        font-size: 16px;
        line-height: 1.3;
        margin: 4px 0;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    h3 {
        font-size: 14px;
        margin: 5px 0;
        color: #ffffff;
        font-weight: 600;
    }
    
    p {
        font-size: 11px;
        line-height: 1.4;
        margin: 5px 0;
        letter-spacing: 0.2px;
    }
    
    .button-container {
        gap: 8px;
        margin-top: 10px;
    }
    
    #productDetails button,
    #productDetails .btn-add-to-cart,
    #productDetails .btn-buy-now,
    #button button,
    #button .btn-add-to-cart,
    #button .btn-buy-now,
    #containerProduct button {
        font-size: 12px;
        padding: 12px 12px;
    }
    
    .success-message {
        top: 60px;
        right: 8px;
        left: 8px;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .success-message i {
        font-size: 16px;
    }
    
    .loader-container {
        padding: 50px 10px;
        min-height: 200px;
    }
    
    .loader {
        width: 35px;
        height: 35px;
        border-width: 3px;
    }
    
    .loader-container p {
        font-size: 14px;
    }
    
    .error-message {
        padding: 30px 12px;
        margin: 15px auto;
    }
    
    .error-message i {
        font-size: 35px;
    }
    
    .error-message p {
        font-size: 13px;
    }
    
    .error-message button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Smooth image transitions */
#imgDetails {
    transition: opacity 0.3s ease;
}

#imgDetails.loading {
    opacity: 0.5;
}

/* Button click animation */
button:active {
    transform: scale(0.98);
}

/* =====================================================
   PRODUCT REVIEWS SECTION
   ===================================================== */

.product-reviews-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 60px 0;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.product-reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(3, 122, 122, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(3, 122, 122, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.product-reviews-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
}

.product-reviews-container h2 {
    font-size: 36px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 50px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 20px;
}

.product-reviews-container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgb(3, 122, 122), transparent);
    border-radius: 2px;
}

/* Product page buying guide (editorial / quality content) */
.product-buying-guide {
    width: 100%;
    padding: 48px 0 64px;
    background: #141414;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

.product-buying-guide-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.product-buying-guide h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.product-buying-guide h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgb(3, 122, 122);
    margin: 24px 0 12px 0;
}

.product-buying-guide p,
.product-buying-guide li {
    color: #c4c4c4;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 14px 0;
}

.product-buying-guide-list {
    margin: 0 0 16px 0;
    padding-left: 1.35rem;
}

.product-buying-guide-list li {
    margin-bottom: 10px;
}

.product-buying-guide a {
    color: rgb(3, 180, 180);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.product-buying-guide a:hover {
    color: #ffffff;
}

/* Product Reviews Statistics */
.product-reviews-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(42, 42, 42, 0.8);
}

.product-reviews-stats-left {
    flex: 0 0 250px;
}

.product-reviews-overall {
    text-align: center;
}

.product-reviews-rating-number {
    display: block;
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, rgb(3, 122, 122), #4dd0e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.product-reviews-stars-large {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.product-reviews-stars-large i {
    font-size: 24px;
    color: #ffc107;
}

.product-reviews-total {
    color: #b0b0b0;
    font-size: 16px;
    margin: 0;
    font-weight: 500;
}

.product-reviews-stats-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-reviews-rating-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-reviews-rating-bar span:first-child {
    min-width: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-reviews-bar-container {
    flex: 1;
    height: 10px;
    background: linear-gradient(90deg, #2a2a2a, #1a1a1a);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(42, 42, 42, 0.5);
}

.product-reviews-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgb(3, 122, 122), #4dd0e1);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(3, 122, 122, 0.5);
    position: relative;
}

.product-reviews-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.product-reviews-percentage {
    min-width: 45px;
    text-align: right;
    color: #b0b0b0;
    font-size: 15px;
    font-weight: 600;
}

/* Product Reviews List */
.product-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-review-item {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(42, 42, 42, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.product-review-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgb(3, 122, 122), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-review-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(3, 122, 122, 0.2),
                0 4px 20px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: rgba(3, 122, 122, 0.5);
}

.product-review-item:hover::before {
    opacity: 1;
}

.product-review-header {
    margin-bottom: 15px;
}

.product-reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(3, 122, 122), rgb(3, 94, 94));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.product-reviewer-details {
    flex: 1;
}

.product-reviewer-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.product-review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-review-stars {
    display: flex;
    gap: 3px;
}

.product-review-stars i {
    color: #ffc107;
    font-size: 14px;
}

.product-review-stars i.far {
    color: #444;
}

.product-review-stars i {
    filter: drop-shadow(0 1px 2px rgba(255, 193, 7, 0.3));
}

.product-review-date {
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.verified-badge i {
    font-size: 12px;
}

.product-review-content {
    margin-top: 10px;
}

.product-review-content p {
    margin: 0;
    color: #e0e0e0;
    font-size: 15px;
    line-height: 1.6;
}

/* No Reviews Message */
.no-reviews-message {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-radius: 16px;
    border: 1px solid rgba(42, 42, 42, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.no-reviews-message i {
    font-size: 48px;
    color: #888;
    margin-bottom: 15px;
}

.no-reviews-message p {
    color: #b0b0b0;
    font-size: 18px;
    margin: 0;
    font-weight: 500;
}

/* Responsive Design for Product Reviews */
@media (max-width: 768px) {
    .product-reviews-section {
        margin: 0;
        padding: 40px 0;
    }
    
    .product-reviews-container {
        padding: 0 20px;
        margin: 0 auto;
    }
    
    .product-reviews-container h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .product-reviews-stats {
        flex-direction: column;
        gap: 25px;
        padding: 30px 20px;
    }
    
    .product-reviews-stats-left {
        flex: 1;
    }
    
    .product-reviews-rating-number {
        font-size: 36px;
    }
    
    .product-reviews-stars-large i {
        font-size: 20px;
    }
    
    .product-review-item {
        padding: 20px;
    }
    
    .product-reviewer-avatar {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .no-reviews-message {
        padding: 40px 20px;
    }
    
    .no-reviews-message i {
        font-size: 36px;
    }
}

/* =====================================================
   PRODUCT REVIEW FORM STYLES (Same as website reviews)
   ===================================================== */

.write-review-button-container {
    text-align: center;
    margin: 20px 0 30px 0;
}

.btn-write-review {
    background: linear-gradient(135deg, rgb(3, 122, 122), rgb(3, 94, 94));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(3, 122, 122, 0.3);
    margin-top: 20px;
}

.btn-write-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 122, 122, 0.4);
    background: linear-gradient(135deg, rgb(3, 94, 94), rgb(3, 122, 122));
}

.btn-write-review:active {
    transform: translateY(0);
}

.btn-write-review i {
    font-size: 14px;
}

.review-form-container {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(42, 42, 42, 0.8);
    display: none;
    position: relative;
    z-index: 1;
}

.review-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.review-form-header h3 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-form-header p {
    margin: 0;
    color: #b0b0b0;
    font-size: 15px;
}

.review-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #ffffff;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(42, 42, 42, 0.8);
    border-radius: 10px;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #1a1a1a;
    color: #ffffff;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(3, 122, 122);
    box-shadow: 0 0 0 3px rgba(3, 122, 122, 0.2);
    background: #0f0f0f;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

.rating-input-container {
    margin: 10px 0;
}

.rating-input-stars {
    display: flex;
    gap: 8px;
    cursor: pointer;
}

.rating-input-stars {
    justify-content: center;
}

.rating-input-stars i {
    font-size: 36px;
    color: #444;
    transition: all 0.2s ease;
}

.rating-input-stars i.fas {
    color: #ffc107;
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.4));
}

.rating-input-stars i:hover {
    transform: scale(1.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-submit-review {
    background: linear-gradient(135deg, rgb(3, 122, 122), #4dd0e1);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(3, 122, 122, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-submit-review:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(3, 122, 122, 0.6);
    background: linear-gradient(135deg, #4dd0e1, rgb(3, 122, 122));
}

.btn-submit-review:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-cancel-review {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    color: #b0b0b0;
    border: 2px solid rgba(42, 42, 42, 0.8);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cancel-review:hover {
    background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
    border-color: #444;
    color: #ffffff;
    transform: translateY(-2px);
}

.form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.form-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.form-message i {
    font-size: 18px;
}

/* Responsive Design for Review Form */
@media (max-width: 768px) {
    .review-form-container {
        padding: 20px 15px;
    }
    
    .review-form-header h3 {
        font-size: 20px;
    }
    
    .rating-input-stars i {
        font-size: 28px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-submit-review,
    .btn-cancel-review {
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================
   VARIANT SELECTORS (Size and Color) - Box Style
   ===================================================== */
.variant-selectors {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

/* Hide variant selectors container when empty or no variants */
.variant-selectors:empty,
.variant-selectors[style*="display: none"] {
    display: none !important;
    margin: 0;
    padding: 0;
    height: 0;
    border: none;
}

.variant-selector-group {
    margin-bottom: 25px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

.variant-selector-group:last-child {
    margin-bottom: 0;
}

.variant-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Box Container */
.variant-box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/* Base Box Style */
.variant-box {
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Lato', sans-serif;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

.variant-box:focus {
    outline: 2px solid rgb(3, 122, 122);
    outline-offset: 2px;
}

/* Size Boxes - Flexible width to accommodate text */
.variant-box.size-box {
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 0;
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-box.size-box:hover {
    border-color: rgb(3, 122, 122);
    background-color: #f8fffe;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(3, 122, 122, 0.3);
}

.variant-box.size-box.selected {
    border-color: rgb(3, 122, 122);
    background-color: rgb(3, 122, 122);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(3, 122, 122, 0.2), 0 2px 8px rgba(3, 122, 122, 0.4);
    transform: translateY(-2px);
}

.variant-box.size-box:disabled,
.variant-box.size-box.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f5f5f5;
}

.variant-box-text {
    display: block;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    font-size: inherit;
    width: 100%;
}

/* Color Boxes - Square and Smaller */
.variant-box.color-box {
    width: 40px;
    height: 40px;
    margin: 0;
    position: relative;
    flex-shrink: 0;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-box.color-box:hover {
    border-color: rgb(3, 122, 122);
    box-shadow: 0 2px 8px rgba(3, 122, 122, 0.3);
    transform: translateY(-2px);
    z-index: 2;
}

.variant-box.color-box.selected {
    border-color: rgb(3, 122, 122);
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(3, 122, 122, 0.2), 0 2px 8px rgba(3, 122, 122, 0.4);
    transform: translateY(-2px);
    z-index: 3;
}

/* Checkmark for selected color - Removed ring, just show checkmark */
.color-checkmark {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    z-index: 1;
    pointer-events: none;
}

.variant-box.color-box.selected .color-checkmark {
    display: block;
}

.variant-box.color-box:disabled,
.variant-box.color-box.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(100%);
}

/* Ensure parent containers don't clip boxes */
#details {
    overflow: visible !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.variant-selector-group {
    overflow: visible !important;
}

/* Responsive variant selectors */
@media (max-width: 768px) {
    .variant-box-container {
        gap: 8px;
    }
    
    .variant-box.size-box {
        min-width: 35px;
        height: 35px;
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .variant-box.color-box {
        width: 35px;
        height: 35px;
    }
    
    .variant-box.color-box .color-checkmark {
        font-size: 14px;
    }
    
    .variant-selectors {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Recommended Products Section - Dark Theme */
.recommended-products-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    position: relative;
    overflow: hidden;
}

.recommended-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(3, 122, 122, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(3, 122, 122, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.recommended-title {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    margin: 0 auto 50px;
    padding: 0 20px 20px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    max-width: 1280px;
    box-sizing: border-box;
    width: 100%;
}

.recommended-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgb(3, 122, 122), transparent);
    border-radius: 2px;
}

.recommended-products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 30px;
    align-items: stretch;
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.recommended-product-box {
    border: 1px solid rgba(42, 42, 42, 0.8);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.recommended-product-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgb(3, 122, 122), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.recommended-product-box:hover {
    border-color: rgba(3, 122, 122, 0.5);
    box-shadow: 0 8px 30px rgba(3, 122, 122, 0.2),
                0 4px 20px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
}

.recommended-product-box:hover::before {
    opacity: 1;
}

.recommended-product-box .image-container {
    width: 100%;
    overflow: hidden;
    display: block !important;
    position: relative;
    min-height: 220px;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
}

.recommended-product-box img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border: none;
    margin: 0;
    padding: 0;
}

.recommended-product-box:hover img {
    transform: scale(1.05);
}

.recommended-product-box a {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
    text-decoration: none;
    color: inherit;
}

.recommended-product-box .image-container {
    flex-shrink: 0;
}

.recommended-product-box h3 {
    padding: 20px;
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.recommended-product-box .price-quantity-row {
    background: rgba(15, 15, 15, 0.5);
    border-top: 1px solid rgba(42, 42, 42, 0.8);
    padding: 15px 20px;
    margin: 0;
    margin-top: auto !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.recommended-product-box .price-quantity-row > div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.recommended-product-box .price-quantity-row h2 {
    margin: 0;
    font-size: 18px;
    color: #4ecdc4;
    font-weight: 600;
}

.recommended-product-box .price-quantity-row .original-price {
    font-size: 10px !important;
    color: #999 !important;
    text-decoration: line-through !important;
    font-weight: normal !important;
}

.recommended-product-box .price-quantity-row .final-price {
    font-size: 18px !important;
    color: #4ecdc4 !important;
    font-weight: 600 !important;
}

.recommended-product-box .price-quantity-row .original-price {
    font-size: 10px !important;
    color: #999 !important;
    text-decoration: line-through !important;
    font-weight: normal !important;
}

.recommended-product-box .price-quantity-row .final-price {
    font-size: 18px !important;
    color: #4ecdc4 !important;
    font-weight: 600 !important;
}

.recommended-add-to-cart-btn {
    width: calc(100% - 40px);
    padding: 12px 20px;
    margin: 15px 20px 20px;
    background: linear-gradient(135deg, rgb(3, 122, 122), #4dd0e1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(3, 122, 122, 0.4);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.recommended-add-to-cart-btn:hover {
    background: linear-gradient(135deg, #4dd0e1, rgb(3, 122, 122));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(3, 122, 122, 0.6);
}

.recommended-add-to-cart-btn:active {
    transform: translateY(0);
}

.recommended-add-to-cart-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.recommended-add-to-cart-btn i {
    font-size: 12px;
}

/* Responsive styles for recommended products */
@media(max-width: 1023px) {
    .recommended-products-section {
        width: 100%;
        padding: 30px 20px;
    }
    
    .recommended-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding: 0 20px 20px;
    }
    
    .recommended-products-container {
        max-width: 1280px;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-gap: 20px;
        padding: 0 20px;
    }
}

@media(max-width: 767px) {
    .recommended-products-section {
        width: 100%;
        padding: 20px 20px;
        margin: 40px auto;
    }
    
    .recommended-title {
        font-size: 24px;
        margin-bottom: 20px;
        padding: 0 20px 20px;
    }
    
    .recommended-products-container {
        max-width: 1280px;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        grid-gap: 15px;
        padding: 0;
    }
    
    .recommended-product-box {
        height: 100%; /* Maintain full height on mobile */
    }
    
    .recommended-product-box img {
        height: 150px;
    }
}

/* Sticky Add to Cart bar - mobile only */
.sticky-add-to-cart-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(26, 26, 26, 0.98);
    border-top: 1px solid rgba(42, 42, 42, 0.8);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .sticky-add-to-cart-bar {
        display: flex;
    }
}
@media (min-width: 769px) {
    .sticky-add-to-cart-bar {
        display: none !important;
    }
}
.sticky-bar-price {
    font-size: 18px;
    font-weight: 700;
    color: rgb(3, 122, 122);
}
.sticky-bar-add-btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 12px 24px;
    background: rgb(3, 122, 122);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
}
.sticky-bar-add-btn:hover {
    background: rgba(3, 122, 122, 0.9);
}
.sticky-bar-add-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.sticky-bar-add-btn:active {
    transform: scale(0.98);
}

/* Server-rendered product summary (removed when JS fills #containerProduct) */
.product-ssr {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    padding: 0 12px;
}
.product-ssr h1 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    line-height: 1.25;
    margin: 0 0 0.75rem;
    color: #1a1a1a;
}
.product-ssr-brand,
.product-ssr-price {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #333;
}
.product-ssr-price {
    font-weight: 700;
    color: rgb(3, 122, 122);
}
.product-ssr-figure {
    margin: 1rem 0;
    max-width: 100%;
}
.product-ssr-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}
.product-ssr-description {
    white-space: pre-wrap;
    line-height: 1.55;
    color: #333;
    margin: 1rem 0;
}
.product-ssr-more {
    font-size: 0.9rem;
    color: #555;
    margin: 1rem 0 0;
}
.product-ssr-more a {
    color: rgb(3, 122, 122);
    font-weight: 600;
}