/**
 * Product Details Page Master Stylesheet
 * Consolidated, cleaned, and optimized.
 * Version: 2.0
 * Last Updated: 2026-02-10
 *
 * Contains: Base styles, typography, product card, slider,
 * reviews, stock status, RTL (Arabic) overrides, and mobile responsiveness.
 */

/* ========================================
   Base & Utility Styles
   ======================================== */
.row.shop_info_tab #toggleBtn {
    color: #000;
}

/* Lightbox / Magnific Popup */
.mfp-zoom-out-cur,
.mfp-zoom-out-cur .mfp-image-holder .mfp-close {
    cursor: zoom-out;
    overflow: hidden;
}

.lb-data .lb-close {
    position: absolute;
    top: -26px;
}

/* ========================================
   Typography & Shared Elements
   ======================================== */
.product_title a {
    text-decoration: none;
    color: inherit;
}

/* Price Components */
.price .currency_icon {
    font-size: 1.8rem;
    font-weight: 400;
    color: #3a4d65;
    margin-left: 0.1rem;
}

.old_price {
    font-size: 1.4rem;
    color: #7c8b9c;
    text-decoration: line-through;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.old_price .currency_icon {
    font-size: 1.2rem;
    color: #8d9bae;
}

.currency_icon.fa {
    font-size: 1.2rem;
}

/* Badges & Labels */
.product_img_box {
    position: relative;
    overflow: hidden;
}

.sale_badge {
    background: #e5f0e8;
    color: #1a6d4c;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.35rem 1rem;
    border-radius: 40px;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    border: 1px solid #c0ddd0;
}

.vat_note {
    font-size: 0.85rem;
    color: #546a7e;
    background: #f2f6fa;
    padding: 0.2rem 0.9rem;
    border-radius: 30px;
    display: inline-block;
    margin-left: 0.25rem;
}

.verified_badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #ecfdf5;
    color: #059669;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.discount_tag {
    background: #bb1f2a;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.vat_label {
    font-size: 14px;
    color: #6c757d;
    margin-left: 4px;
}

.limited-stock-label {
    border-color: #D5BA9F;
    background-color: #D5BA9F;
    color: #fff;
    padding: 2px;
}

.verified_badge svg {
    width: 14px;
    height: 14px;
}

.sameday_tag {
    background: #e3f2eb;
    border-radius: 30px;
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #126e4b;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid #b3decb;
}

.sameday_tag i {
    font-size: 0.9rem;
}

/* ========================================
   Online Exclusive Badge
   ======================================== */

span.product_badge.online_exclusive {
    width: 108px;
}

span.online_exclusive img {
    object-fit: cover;
    width: auto !important;
}

.flash_sale_d.online_exclusive img {
    width: 30% !important;
}

/* positioning handled per language via RTL/LTR */
.product_badge {
    position: absolute;
    top: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 80px;
    /* Base width for badges */
}

.product_badge img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

[dir="ltr"] .product_badge {
    right: 15px;
}

[dir="rtl"] .product_badge {
    left: 15px;
}

/* ========================================
   Main Product Card
   ======================================== */
.product_card {
    max-width: 840px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 25px -8px rgba(0, 10, 30, 0.08), 0 2px 4px rgba(0, 0, 0, 0.01);
    padding: 1.25rem 1.5rem;
    transition: all 0.2s ease;
}

.price_row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem 1.5rem;
    margin-bottom: 0.5rem;
}

.product_share {
    margin-top: 15px;
    display: flex;
}

/* ========================================
   Rating & Reviews Section
   ======================================== */
.rating_section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 0.75rem 0;
    padding: 0.4rem 0;
    border-top: 1px solid #e4eaf2;
    border-bottom: 1px solid #e4eaf2;
    cursor: pointer;
    width: fit-content;
    transition: opacity 0.1s;
}

.rating_section:hover {
    opacity: 0.8;
}

/* Star Rating Component */
.stars-outer {
    display: inline-block;
    position: relative;
    font-family: 'Font Awesome 6 Free';
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: #d1dae3;
}

.stars-outer::before {
    content: "\f005 \f005 \f005 \f005 \f005";
    font-weight: 900;
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    color: #f5b342;
}

.stars-inner::before {
    content: "\f005 \f005 \f005 \f005 \f005";
    font-weight: 900;
}

.rating_text {
    font-weight: 500;
    color: #1f3246;
    font-size: 0.95rem;
    border-left: 1px solid #ccd8e6;
    padding-left: 0.85rem;
}

/* RTL adjustment for rating text */
[dir="rtl"] .rating_text {
    border-left: none;
    border-right: 1px solid #ccd8e6;
    padding-left: 0;
    padding-right: 0.85rem;
}

[dir="rtl"] .stars-inner {
    left: auto;
    right: 0;
}

/* Reviews Section Container */
#Reviews {
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    margin-bottom: 10px;
    border-radius: 10px;
}

.reviews_summary_box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.summary_rating_value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.summary_stars_wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary_meta_text {
    font-size: 1.1rem;
    color: #6b7280;
    margin-left: 0.5rem;
}

.global_ratings_footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

/* Individual Review */
.review_item {
    padding: 0.6rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.review_item:last-child {
    border-bottom: none;
}

.review_meta_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.reviewer_name_stars {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviewer_avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #f3f4f6;
}

.reviewer_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name_stars_stack {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.reviewer_name {
    font-weight: 700;
    color: #111827;
    font-size: 1.1rem;
}

.review_date {
    color: #6b7280;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.review_body_text {
    color: #374151;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.review_photos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.review_photo_img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s;
}

.review_photo_img:hover {
    transform: scale(1.05);
}

.summary_stars_wrap .stars-outer {
    font-size: 1.4rem;
}

/* Review Actions */
.review_actions_row {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.action_link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.action_link:hover {
    color: #111827;
}

.action_link.liked {
    color: #ef4444;
}

/* Comments Section (Legacy) */
.comment_block {
    padding-left: 55px;
}

[dir="rtl"] .comment_block {
    padding-left: unset !important;
    padding-right: 56px !important;
}

.comment_img img {
    max-width: 58px;
    aspect-ratio: 1/1;
    display: block;
    object-fit: cover;
    width: 100%;
    border-radius: 100%;
    max-width: 44px;
}

.comment-date {
    font-style: italic;
    color: #65656f;
    font-size: 13px;
    letter-spacing: -.45px;
    line-height: 1.57143;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    word-spacing: -0.5px;
}

.customer_meta {
    text-align: left;
}

[dir="rtl"] .customer_meta {
    text-align: right !important;
}

.comments .total_rating {
    text-align: left;
}

[dir="rtl"] .comments .total_rating {
    text-align: right !important;
}

.comment_list .description {
    text-align: left;
}

[dir="rtl"] .comment_list .description {
    text-align: right !important;
}

.fill_thumb {
    color: #bb1f2a;
    font-weight: 700;
}

/* ========================================
   Product Options (Color, Size)
   ======================================== */
.swatch_section {
    margin: 0.75rem 0 0.75rem 0;
}

.switch_label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #43627f;
    margin-bottom: 0.75rem;
}

/* Color Swatches */
.color_swatches {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.color_dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f2f5;
    border: 2px solid transparent;
    transition: all 0.15s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    cursor: pointer;
}

.color_dot.active {
    border-color: #1e2f40;
    outline: 2px solid white;
    outline-offset: 0px;
    box-shadow: 0 0 0 2px white, 0 6px 12px rgba(0, 20, 50, 0.1);
}

.color_dot.white {
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.color_dot.gray {
    background: #d0d7de;
}

/* Size List */
.size_list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.size_item {
    min-width: 80px;
    text-align: center;
    background: #f4f7fc;
    border-radius: 60px;
    padding: 0.6rem 1rem;
    font-weight: 550;
    font-size: 0.95rem;
    color: #1f3a57;
    border: 1.5px solid transparent;
    transition: all 0.1s;
    cursor: pointer;
}

.size_item.active {
    background: #1e2f40;
    border-color: #1e2f40;
    color: white;
    font-weight: 500;
    box-shadow: 0 6px 10px rgba(0, 30, 60, 0.08);
}

.size_item:not(.active):hover {
    background: #e2eaf3;
    border-color: #b4c8dc;
}

/* Scrollable Switches for Mobile */
.product_size_switch {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto !important;
    gap: 0px;
    overflow-y: hidden;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
}

.product_size_switch a {
    white-space: nowrap;
}

.product_color_switch {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto !important;
    gap: 10px;
    overflow-y: hidden;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
}

.product_color_switch a {
    flex: 0 0 auto !important;

}

.product_description .product_color_switch a.active {
    border: 2px solid #bb1f2a;
    border-radius: 50%;
    padding: 0px;
}

.product_description .product_color_switch img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.product_description .product_size_switch span {
    margin-left: 5px !important;
    padding: 3px 6px 2px 6px;
}

/* ========================================
   Stock Status & Delivery
   ======================================== */
.stock_status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.stock_status.in_stock {
    color: #059669;
}

.stock_status.low_stock {
    color: #d97706;
}

.stock_status.out_of_stock {
    color: #dc2626;
}

.stock_count {
    font-weight: 700;
    color: #bc3f2c;
    background: #fff0ec;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    border: 1px solid #ffd7cd;
}

/* Delivery Info Card */
.delivery_info_card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #f1f5f9;
}

.delivery_info_card .delivery_icon {
    font-size: 1.25rem;
    color: #1e2f40;
}

.delivery_info_card .delivery_text {
    font-size: 1rem;
    color: #334155;
    margin: 0;
}

.delivery_info_card .selected_area {
    color: #3b82f6 !important;
    font-weight: 600;
    text-decoration: none;
}

.order_deadline_banner {
    background: #fff7ed;
    color: #111827;
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.order_deadline_banner i {
    font-size: 1.1rem;
}

.delivery_check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.delivery_check i {
    color: #2f7b5a;
    font-size: 1rem;
}

.delivery_link {
    color: #0b5e42;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px dashed #7dab95;
}

/* Physical quantity */
.physical_qty_exists.mb-2 {
    background: #fbfbfb;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    margin: 1.2rem 0 1.8rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* ========================================
   Payment & Financing Row
   ======================================== */
.payment_row {
    background: #f3f7fe;
    border-radius: 18px;
    padding: 1rem 1.4rem;
    margin: 1.2rem 0 1.8rem 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    border: 1px solid #dde6f2;
}

.payment_plan {
    font-weight: 550;
    color: #14273e;
}

.payment_plan i {
    color: #286b4e;
    margin-right: 0.4rem;
}

[dir="rtl"] .payment_plan i {
    margin-right: 0;
    margin-left: 0.4rem;
}

.payment_plan a {
    color: #0d4b6e;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 0.9rem;
    margin-left: 0.3rem;
}

[dir="rtl"] .payment_plan a {
    margin-left: 0;
    margin-right: 0.3rem;
}

.tamara_badge,
.tabby_badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    padding: 0.2rem 1rem 0.2rem 0.8rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #ccdbea;
}

/* ========================================
   Add to Cart & Buttons
   ======================================== */
.add_cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e2f40;
    color: white;
    border: none;
    border-radius: 100px;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.2px;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 6px 18px rgba(20, 40, 70, 0.12);
    margin: 1.5rem 0 1.2rem 0;
    gap: 0.5rem;
}

.add_cart i {
    font-size: 1.2rem;
}

.add_cart:hover {
    background: #112331;
    box-shadow: 0 12px 22px rgba(10, 30, 50, 0.15);
}

.add_wishlist svg {
    margin-bottom: 5px;
}

/* Quantity Selector */
.quantity-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 30px;
    padding: 0px;
    width: fit-content;
    min-width: 80px;
    margin: auto;
}

.qty-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f2f3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qty-input {
    border: none;
    text-align: center;
    width: 32px;
    font-size: 16px;
    background: transparent;
    pointer-events: none;
}

.qty-input:focus {
    outline: none;
}

/* ========================================
   Product Gallery & Slider
   ======================================== */
.product_slider img {
    min-height: unset !important;
}

.product_gallery_item a {
    border-radius: 10px;
}

.product_img_box {
    margin-bottom: 11px;
    border-radius: 10px;
}

.product_img_zoom-set {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    font-size: 18px;
    background-color: #fafafa;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 100%;
}

.small-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Mobile Slider */
.product_img_box_mobile {
    position: relative;
    margin-bottom: 20px;
}

.mobile-slider-prev,
.mobile-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-slider-prev {
    left: 10px;
}

.mobile-slider-next {
    right: 10px;
}

#product_main_slider_mobile .slick-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

#product_main_slider_mobile .slick-dots li {
    display: inline-block;
    margin: 0 5px;
}

#product_main_slider_mobile .slick-dots li button {
    font-size: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
}

#product_main_slider_mobile .slick-dots li.slick-active button {
    background: #bb1f2a;
}

/* ========================================
   Meta & Footer Tags
   ======================================== */
.meta_footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.2rem;
    font-size: 0.85rem;
    color: #4d6278;
    border-top: 1px solid #e2eaf2;
    padding-top: 1.2rem;
    margin-top: 0.5rem;
}

.meta_item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.meta_item strong {
    color: #1a2e45;
    font-weight: 600;
}

.tag_list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #edf2f8;
    padding: 0.2rem 1rem;
    border-radius: 40px;
    color: #1d3d5c;
    font-size: 0.8rem;
}

ul.product-meta {
    background-color: #fbfbfb;
    padding: 10px;
    border-radius: 10px;
}

/* ========================================
   Flash Sale & Countdown
   ======================================== */
.deal_content {
    width: 100%;
    padding: 30px 30px 30px 13px;
}

.countdown_box .countdown {
    color: #292b2c;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    min-width: 26px;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.countdown-wrap {
    background: #bb1f2a !important;
}

.countdown {
    color: #fff !important;
    font-variant-numeric: tabular-nums;
    min-width: 26px;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.countdown_time.countdown_style4 {
    margin: 0 -2px;
    width: auto;
    display: inline-flex;
}

.flash_sale_d {
    z-index: 10;
}

.flash_sale_d img {
    width: 100%;
}

.flash_sale {
    color: #fff;
    font-size: 13px;
    right: 14px;
    padding: 2px 8px;
    position: absolute;
    text-transform: uppercase;
    z-index: 1;
}

[dir="rtl"] .flash_sale {
    right: auto;
    left: 14px;
}

/* ========================================
   Bundle Products
   ======================================== */
.bundle-product-owl-carousel .owl-item.active {
    width: 100% !important;
}

.bundle-product-owl-carousel .owl-stage {
    width: 100% !important;
}

.bundle_products .product_slider img {
    min-height: 100% !important;
    max-height: 180px !important;
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .bundle_products .add_to_cart {
        position: unset !important;
    }
}

@media only screen and (max-width: 320px) {
    .bundle-product-owl-carousel.owl-carousel .owl-item img {
        min-height: 80px !important;
        max-height: 80px !important;
        min-width: 80px !important;
        max-width: 80px !important;
    }
}

/* ========================================
   Utility & Table Styles
   ======================================== */
table.table.table-striped li {
    list-style: inside !important;
}

.fa-chevron-right {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* ========================================
   RTL (Arabic) Specific Overrides
   ======================================== */
[dir="rtl"] span.online_exclusive {
    left: 0px;
    right: auto;
    padding: 0px;
}

[dir="rtl"] .summary_meta_text {
    margin-left: 0;
    margin-right: 0.5rem;
}

[dir="rtl"] .product_size_switch {
    flex-direction: row-reverse;
}

.pr_detail .pr_switch_wrap.size-warp {
    direction: ltr !important;
    /* Keep size guide LTR even in RTL */
}

[dir="rtl"] .wishlist-btn-on-image {
    left: unset;
    right: 20px;
}

[dir="rtl"] .product_img_zoom-set {
    right: auto;
    left: 20px;
}

/* ========================================
   Mobile Responsiveness (General)
   ======================================== */
@media only screen and (max-width: 767px) {
    .product_gallery_item a img {
        margin: 0px;
        height: 75px;
    }

    #bundle_combo_product_modal .add_to_cart {
        color: #fff !important;
        position: unset !important;
        left: 2%;
        right: unset;
        font-size: 12px;
        width: 100% !important;
        padding: 6px;
    }

    .zoomContainer {
        display: none !important;
        pointer-events: none !important;
    }
}

@media only screen and (max-width: 640px) {
    #Reviews {
        padding: 1.5rem;
    }

    .reviews_summary_box {
        gap: 1rem;
    }

    .review_meta_row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .review_date {
        font-size: 0.8rem;
    }
}

@media only screen and (max-width: 575px) {
    span.online_exclusive img {
        height: 31px;
    }
}

@media (max-width: 576px) {
    .quantity-wrapper {
        transform: scale(0.95);
    }
}

@media only screen and (max-width: 991px) {
    .product_size_switch {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto !important;
        gap: 10px;
        overflow-y: hidden;
        max-width: 100% !important;
        -webkit-overflow-scrolling: touch;
        padding: 13px 2px !important;
    }
}

@media (max-width: 767px) {
    .wishlist-btn-on-image {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 11;
    }

    [dir="rtl"] .wishlist-btn-on-image {
        right: auto;
        left: 10px;
    }
}

/* Tablet adjustments */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    /* keep bundle button style from earlier */
}

/* ========================================
   Miscellaneous & Cleanup
   ======================================== */
.pr_detail .pr_switch_wrap {
    margin-bottom: 2px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.product-details .product_price .price .price_symbol,
.product-details .product_price-in-mobile .price .price_symbol {
    font-size: 12px !important;
}

.shop_info_tab ul:nth-of-type(1) li {
    margin-left: unset !important;
}

.product-details-wrapper p {
    color: unset !important;
    line-height: unset !important;
    margin-bottom: unset !important;
}


/* ========================================
   Product Detail Tabs
   ======================================== */


.product-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nav-tab {
    padding: 8px 20px;
    border-radius: 25px;
    border: 1px solid #e5e5e5;
    background-color: #f8f9fa;
    color: #4a4a4a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none !important;
}

.nav-tab:hover {
    background-color: #fff;
    border-color: #bb1f2a;
    color: #bb1f2a;
}

.nav-tab.active {
    border-color: #bb1f2a;
    box-shadow: 0 2px 6px rgba(187, 31, 42, 0.15);
    color: #bb1f2a;
}

[dir="rtl"] .product-tabs {
    justify-content: flex-start;
}

/* ========================================
   Review Photos Gallery
   ======================================== */
.review_photos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.review_photo_link {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    transition: transform 0.2s ease;
}

.review_photo_link:hover {
    transform: scale(1.05);
    border-color: #bb1f2a;
}

.review_photo_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Modern Price & Rating Header
   ======================================== */
.product_description_header {
    margin-bottom: 1rem;
}

.product-details-wrapper .product_title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.product_price_rating_row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.main_price_row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 1.5rem;
    font-weight: 700;
}

.main_price_row .product_price {
    font-size: 2rem;
}

.main_price_row del {
    font-size: 1.1rem;
    color: #999;
    font-weight: 400;
}

.discount_tag {
    background: #bb1f2a;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.vat_label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.rating_summary_wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.avg_rating_number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.rating_count {
    color: #666;
    font-size: 0.9rem;
}

/* ========================================
   Modern Variant & Size Selectors
   ======================================== */
.pr_switch_wrap {
    margin-bottom: 0.5rem !important;
}

.switch_lable {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.selected-value-label {
    font-weight: 400;
    color: #666;
}

/* Color Variants */
.modern-variant-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-variant-link {
    text-decoration: none !important;
}

.variant-thumb-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    padding: 2px;
    background: #fff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.color-variant-link:hover .variant-thumb-wrapper {
    border-color: #bb1f2a;
}

.color-variant-link.active .variant-thumb-wrapper {
    border: 2px solid #bb1f2a;
}

.variant-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.color-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Size Options */
.modern-size-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
    padding: 0 10px;
}

.size-option:hover {
    border-color: #bb1f2a;
    color: #bb1f2a;
}

.size-option.active {
    background: #bb1f2a;
    border-color: #bb1f2a;
    color: #fff;
}

/* ========================================
   Mobile Accordion & Scroll Fixes
   ======================================== */
@media (max-width: 767px) {
    .product-tabs-wrapper {
        display: none !important;
    }

    .pr_switch_wrap .modern-variant-grid,
    .pr_switch_wrap .modern-size-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        scrollbar-width: thin;
    }

    .pr_switch_wrap .modern-variant-grid::-webkit-scrollbar,
    .pr_switch_wrap .modern-size-grid::-webkit-scrollbar {
        height: 4px;
    }

    .pr_switch_wrap .modern-variant-grid::-webkit-scrollbar-thumb,
    .pr_switch_wrap .modern-size-grid::-webkit-scrollbar-thumb {
        background: #eee;
        border-radius: 4px;
    }

    .color-variant-link,
    .size-option {
        flex: 0 0 auto !important;
    }

    /* Accordion Header for Mobile */
    .mobile-accordion-header {
        background: #fdfdfd;
        border: 1px solid #eee;
        padding: 15px;
        margin-top: 15px;
        border-radius: 8px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
        cursor: pointer;
    }

    .mobile-accordion-header .toggle-icon svg {
        transition: transform 0.3s ease;
    }

    .mobile-accordion-header.active .toggle-icon svg {
        transform: rotate(180deg);
    }

    .shop_info_tab,
    #Reviews {
        border: none !important;
    }

    .shop_info_tab.active,
    #Reviews.active {
        display: block !important;
    }

    .rowRelated,
    .rowRecently {
        margin-top: 30px !important;
    }
}

@media (max-width: 767px) {

    /* Mobile Accordion Improvements for Product Details & Reviews */
    a#toggleBtn,
    a#reviewToggleBtn {
        display: block;
        width: 100%;
        text-decoration: none !important;
        color: inherit !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    .description-toggle {
        background: #ffffff;

        border-radius: 12px;
        margin-top: 16px !important;

        overflow: hidden;
        transition: all 0.3s ease;

    }

    .description-toggle .description {
        background: transparent !important;
        border: none !important;
        padding: 0px 0px !important;
        /* proper inner spacing */
        margin: 0 !important;
        cursor: pointer;
    }

    .description-toggle .accordion-title {
        font-size: 16px !important;
        font-weight: 700 !important;
        /* Heading bold */
        color: #111827 !important;
    }

    .description-toggle .accordion-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6b7280;
    }

    /* Inner padding keeps accordion animation smooth */
    .description-toggle .collapse-inner {
        padding: 0 20px 20px 20px !important;
    }

    /* Improve typography hierarchy: content lighter */
    .description-toggle .collapse-inner p,
    .description-toggle .collapse-inner span,
    .description-toggle .collapse-inner li {
        color: #4b5563 !important;
        font-size: 14.5px !important;
        line-height: 1.6;
        font-weight: 400 !important;
    }

    /* Adjust reviews inside the accordion */
    .description-toggle .collapse-inner #Reviews {
        padding: 0 !important;
        border: none !important;
        margin-bottom: 0 !important;
        background: transparent !important;
    }

    /* Prevent double margin on headings */
    .description-toggle .collapse-inner h2,
    .description-toggle .collapse-inner h3,
    .description-toggle .collapse-inner h4 {
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #374151 !important;
        margin-top: 12px;
        margin-bottom: 8px;
    }

    /* Color/Size block overall spacing */
    .pr_switch_wrap {
        margin-bottom: 0px !important;
        padding-bottom: 0 !important;
    }

    /* Label ("Color:", "Size:") spacing */
    .pr_switch_wrap .switch_lable {
        margin-bottom: 6px !important;
        display: block;
        line-height: 0.2 !important;
    }

    /* Color grid spacing */
    .product_color_switch,
    .modern-variant-grid {
        gap: 8px !important;
        margin-top: 6px !important;
    }

    /* Size grid spacing */
    .product_size_switch,
    .modern-size-grid {
        gap: 10px !important;
        margin-top: 0px !important;
    }

    /* Size buttons padding to reduce height */
    .modern-size-grid .size-option {
        padding: 10px 12px !important;
        line-height: 1 !important;
    }

    /* If any extra <hr> is making gap */
    hr {
        margin: 10px 0 !important;
    }


}

.description {
    background: #eee;
    padding: 8px 20px;
    border: 1px solid #e5e5e5;
    background-color: #f8f9fa;
    color: #4a4a4a;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    outline: none !important;
}

.product-gallery-slider-wrapper:empty {
    display: none !important;
}


.shop_info_tab .table-striped {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    font-size: 14px;
}

.shop_info_tab .table-striped tr {
    border-bottom: 1px solid #eee;
}

.shop_info_tab .table-striped tr:last-child {
    border-bottom: none;
}

.shop_info_tab .table-striped td {
    padding: 12px 16px;
    vertical-align: middle;
    border-top: 0px solid #dee2e6;
}

.shop_info_tab .table-striped td:first-child {
    width: 35%;
    font-weight: 600;
    color: #333;
    background: #fafafa;
}

.shop_info_tab .table-striped td:last-child {
    color: #555;
    background: #fafafa;
}

.shop_info_tab .table-striped tr:hover {
    background: #f8f8f8;
    transition: 0.2s ease;
}

.shop_info_tab .table-striped b,
.shop_info_tab .table-striped strong {
    font-weight: 500;
}





.online_exclusive {
    z-index: 10;
}

[dir="ltr"] span.online_exclusive {
    /* right: 0px; */
    left: 6px;
    padding: 0px;
}

[dir="rtl"] span.online_exclusive {
    left: 0px;
    right: 6px;
    padding: 0px;
}

span.product_badge.online_exclusive {
    top: unset;
    bottom: 10px;
}

.main_content .section {


    position: relative;
}

@media (max-width: 767px) {
    .section {
        padding: unset;
        position: relative;
    }

    .main_content .section {

        margin-bottom: 20px;

    }

    .product-details-wrapper .product_title {
        font-size: 18px !important;
        line-height: 1.4;
    }

    .product_price-in-mobile {
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    .product_price-in-mobile del {
        margin: 0 !important;
    }

    .product_price-in-mobile .on_sale {
        margin: 0 !important;
    }

    .product_price-in-mobile .on_sale span {
        background: #bb1f2a;
        color: #fff;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
    }
}

.search_wrap.myClass {
    opacity: 1;
    visibility: visible;
    -webkit-animation: slideInLeft 1s both;
    animation: slideInLeft 1s both;
}

.search_overlay.myClass {
    left: 0;
    right: auto;
    width: 100%;
}

.vat_label_small {
    font-size: 13px;
}

.pattern-img-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.limited-stock-label-v2 {
    border-radius: 3px;
    font-size: 14px;
    padding: 0 9px;
    border-color: #D5BA9F;
    background-color: #D5BA9F;
    color: #fff;
}

.red-link {
    color: #bb1f2a;
}

.sameday_premium_v2 {
    display: none;
    color: green;
    font-weight: 700;
    font-size: 12px;
}

.no-border {
    border: unset !important;
}

.review_header_v2 {
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 20px;
}

.review_title_v2 {
    font-size: 18px;
    font-weight: 600;
}

.countdown_time.countdown_style4 {
    color: #fff;
    font-size: 13px;
    padding: 0px;
    position: relative;
    text-transform: uppercase;
    top: 8px;
    z-index: 1;
}


.tamara-container {


    margin: 10px !important;

}

div#sameday_premium {
    color: green;
    font-weight: 500;
}

a.selected_area {
    color: #bb1f2a;
}


.countdown_time.countdown_style4.mb-3 {
    display: flow-root !important;

}