/* Product Details - Tabs Styling */
.product-details-tabs {
    transition: all 0.3s ease;
}
.product-details-tabs .nav-tabs .nav-link {
    color: #666;
    background: transparent;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-left: 5px;
    padding-right: 5px;
    letter-spacing: 0.5px;
}
.product-details-tabs .nav-item:first-child .nav-link {
    border-left: none !important;
}
.product-details-tabs .nav-link:hover {
    background: #eee;
    color: #000;
}
.product-details-tabs .nav-link.active {
    background: #b00000 !important;
    color: #fff !important;
}
.tabs-count-4 .nav-link { font-size: 0.8rem !important; }
.tabs-count-5 .nav-link { font-size: 0.72rem !important; }

@media (max-width: 768px) {
    .tabs-count-3 .nav-link { font-size: 0.75rem !important; }
    .tabs-count-4 .nav-link { font-size: 0.65rem !important; }
    .tabs-count-5 .nav-link { font-size: 0.6rem !important; }
}
.product-details-tabs .nav-tabs .nav-item:not(:last-child) {
    border-right: 1px solid rgba(0,0,0,0.1);
}
body.dark-theme .product-details-tabs .nav-tabs .nav-item:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.1);
}
.nav-tabs, .thumbnail-scroll, .comment-list-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar, .thumbnail-scroll::-webkit-scrollbar, .comment-list-wrapper::-webkit-scrollbar {
    display: none;
}

/* Rich Content Styling */
.rich-content {
    line-height: 1.8;
    font-size: 1.35rem;
    color: var(--about-text, #222);
    text-align: justify;
}
.rich-content p { margin-bottom: 2rem; }
.rich-content img { 
    display: block;
    max-width: 100%; 
    height: auto; 
    border-radius: 0; 
    margin: 0 auto;
    box-shadow: none;
}
.shared-detail-img { width: 100%; object-fit: cover; margin-top: 0 !important; margin-bottom: 0 !important; }

/* Mobile specific tweaks for rich-content */
@media (max-width: 768px) {
    .tab-content {
        padding: 1.5rem 0.75rem !important;
    }
    .rich-content {
        font-size: 1.15rem;
    }
    .rich-content img {
        margin: 1.5rem auto;
        border-radius: 8px;
        width: 100%;
    }
}

.rich-content h1, .rich-content h2, .rich-content h3 { 
    color: #000; 
    margin-top: 3.5rem; 
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}
@media (max-width: 768px) {
    .rich-content h1, .rich-content h2, .rich-content h3 {
        font-size: 1.5rem;
        margin-top: 2.5rem;
    }
}
.rich-content ul, .rich-content ol { margin-bottom: 2rem; padding-left: 2.5rem; max-width: 900px; margin-left: auto; margin-right: auto; }
.rich-content li { margin-bottom: 1rem; }

/* Variant & Tier Selection Styling */
.variant-option {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #fff;
    color: #333;
    border: 1px solid #e5e7eb !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    padding: 5px 12px !important;
    border-radius: 10px !important;
    cursor: pointer;
}
.tier-option {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd !important;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    padding: 6px 15px !important;
    border-radius: 8px !important;
}
.tier-option:hover, .variant-option:hover {
    border-color: #b00000 !important;
    background-color: #fff5f5;
    transform: translateY(-1px);
}
.tier-option.active, .variant-option.active {
    background-color: #fff !important;
    border-color: #b00000 !important;
    color: #b00000 !important;
    box-shadow: 0 4px 12px rgba(176, 0, 0, 0.08);
    font-weight: 700;
}
/* .variant-img-sm removed as requested */
.hidden-variant {
    display: none !important;
}
#tier-selector i {
    font-size: 1.1rem;
    color: #666;
}
.tier-option.active i {
    color: #b00000;
}

/* Dark Theme Support */
body.dark-theme .product-details-tabs {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}
body.dark-theme .product-details-tabs .nav-tabs {
    background-color: #121212 !important;
}
body.dark-theme .product-details-tabs .nav-tabs .nav-link {
    color: #888;
}
body.dark-theme .product-details-tabs .nav-tabs .nav-link:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.05);
}

/* Star Rating Styling */
.star-rating {
    direction: rtl;
    display: inline-block;
    padding: 0;
}
.star-rating input[type=radio] {
    display: none;
}
.star-rating label {
    color: #ddd;
    font-size: 1.8rem;
    padding: 0 5px;
    cursor: pointer;
    transition: all .2s;
    margin: 0;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type=radio]:checked ~ label {
    color: #ffca08;
}
.comment-list-wrapper::-webkit-scrollbar { width: 4px; }
.comment-list-wrapper::-webkit-scrollbar-track { background: transparent; }
.comment-list-wrapper::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 10px; }

/* Thumbnail & Hover Effects */
.thumbnail-item {
    width: 60px;
    height: 60px;
    aspect-ratio: 1 / 1;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid #eee !important;
    border-radius: 6px !important;
    overflow: hidden;
    background: #fff;
}

.thumbnail-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    border-color: #ccc !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.thumbnail-item.active {
    border-color: #b00000 !important;
    box-shadow: 0 0 0 3px rgba(176, 0, 0, 0.1), 0 8px 16px rgba(176, 0, 0, 0.1);
    transform: translateY(-2px) scale(1.02);
}

.thumbnail-scroll {
    display: flex;
    gap: 6px;
    padding: 10px 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.thumbnail-scroll::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-scroll::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 10px;
}

.thumbnail-scroll::-webkit-scrollbar-thumb:hover {
    background: #ddd;
}


/* Animation & Layout Utilities */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.slider-nav {
    transition: all 0.3s ease;
}
.group:hover .slider-nav {
    opacity: 0.7 !important;
}
.slider-nav:hover {
    opacity: 1 !important;
    background-color: rgba(0,0,0,0.8) !important;
}

.cursor-pointer { cursor: pointer; }

/* Custom Scrollbars */
.comment-list-wrapper::-webkit-scrollbar { width: 4px; }
.comment-list-wrapper::-webkit-scrollbar-track { background: transparent; }
.comment-list-wrapper::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 10px; }

/* Desktop Adjustment */
@media (min-width: 992px) {
    .product-reviews-block {
        border-top: 1px solid rgba(0,0,0,0.05);
    }
}
.border-light-offset { border-color: rgba(0,0,0,0.05) !important; }

/* Stock Badge */
.stock-badge {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Compact Elements & Layout Refinement */
.product-purchase-box {
    padding: 1.25rem !important;
    border-radius: 16px !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
}

.variant-option, .tier-option {
    min-width: unset;
    text-align: left;
}

.qty-group {
    max-width: 130px !important;
    height: 38px;
}

.qty-group .btn {
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.qty-input {
    height: 38px !important;
    font-size: 0.95rem !important;
}

.qty-label {
    font-size: 0.8rem !important;
    letter-spacing: 0.5px;
}

/* Price & Title Scaling */
.product-title {
    font-size: 1.35rem !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

#main-product-price {
    font-size: 2rem !important;
}

.discount-badge {
    font-size: 0.75rem !important;
    padding: 0.4em 0.8em !important;
}

/* Rich Content Polish */
.rich-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.rich-content img { 
    display: block;
    max-width: 100%; 
    height: auto; 
    border-radius: 0; 
    margin: 0 auto !important;
    box-shadow: none !important;
}
.rich-main-img {
    width: 85%;
    max-width: 900px;
}

.short-description.rich-content {
    font-size: 0.95rem !important;
    line-height: 1.6;
}

/* Gallery Tweaks */
.product-main-img-container {
    aspect-ratio: 1/1;
    background-color: #f9f9f9 !important;
}

.main-product-image {
    object-fit: contain;
}

@media (max-width: 768px) {
    .product-title { font-size: 1.2rem !important; }
    #main-product-price { font-size: 1.6rem !important; }
    .product-purchase-box { padding: 1rem !important; }
}

.btn-add-cart, .btn-buy-now {
    min-height: 48px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem !important; /* Slightly larger text */
}
