/* ==========================================================================
   FORCE OVERRIDE: Modern Clean Product Styles (Hepsiburada/Trendyol Style)
   ========================================================================== */

/* 1. Global Layout & Reset */
.product-detail .content-product-right {
    width: 100%;
    padding: 0 15px;
}

body {
    background-color: #ffffff !important;
}

/* 
   ==========================================================================
   NEW: MODERN IMAGE GALLERY (Reference Image Style)
   ========================================================================== 
*/

/* Main Image Container */
.content-product-left .large-image {
    border: 1px solid #eee !important;
    border-radius: 20px !important;
    /* Rounded Corners like image */
    overflow: hidden !important;
    margin-bottom: 20px !important;
    background: #fff !important;
    padding: 5px !important;
    position: relative !important;
}

/* The Main Image Itself */
.content-product-left .large-image img {
    border-radius: 16px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    /* Ensure image fits nicely */
}

/* Thumbnails (Small Images) - Refined */
.content-product-left .image-additional,
.content-product-left .thumbnails {
    margin-top: 15px !important;
}

/* Individual Thumbnail Item - Clean State (No Border by Default) */
.content-product-left .thumbnail,
.content-product-left .owl2-item .item,
.content-product-left .image-additional .owl-item .item {
    border: 1px solid transparent !important;
    /* Invisible border to prevent layout shift */
    border-radius: 14px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    padding: 2px !important;
    /* Minimal padding */
    background: transparent !important;
    transition: all 0.2s ease !important;
    opacity: 0.8 !important;
    /* Slightly fade out inactive ones */
}

/* Hover & Active State - The Single Blue Line */
.content-product-left .thumbnail:hover,
.content-product-left .owl2-item .item:hover,
.content-product-left .image-additional .owl-item .item:hover,
.content-product-left .image-additional .owl-item.active .item {
    border: 1px solid #ff5400 !important;
    /* Thin Blue Line */
    box-shadow: none !important;
    /* No shadow, flat design */
    opacity: 1 !important;
    background: #fff !important;
}

/* Thumbnail Images */
.content-product-left .thumbnail img,
.content-product-left .owl2-item .item img {
    border-radius: 12px !important;
    display: block !important;
    width: 100% !important;
}

/* Navigation Arrows (Owl Carousel) */
.content-product-left .owl-nav .owl-prev,
.content-product-left .owl-nav .owl-next {
    background: #fff !important;
    color: #333 !important;
    border-radius: 50% !important;
    /* Circular buttons */
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    text-align: center !important;
    font-size: 20px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    border: none !important;
}

.content-product-left .owl-nav .owl-prev {
    left: 10px !important;
}

.content-product-left .owl-nav .owl-next {
    right: 10px !important;
}

/* ========================================================================== */

/* 2. TAB NAVIGATION (The main fix needed) */

/* Container Reset */
.product-view .producttab .nav-tabs {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    padding: 0 20px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    height: 70px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

/* Reset Lists */
.product-view .producttab .nav-tabs>li {
    margin: 0 30px 0 0 !important;
    float: none !important;
    background: none !important;
    border: none !important;
}

/* Tab Links - Default State */
.product-view .producttab .nav-tabs>li>a {
    border: none !important;
    background: transparent !important;
    color: #555 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 24px 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    text-transform: capitalize !important;
    /* No uppercase shouting */
    position: relative !important;
}

/* Remove any background image or gradients from theme */
.product-view .producttab .nav-tabs>li>a:hover,
.product-view .producttab .nav-tabs>li.active>a {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
}

/* Active State Text - Mavi */
.product-view .producttab .nav-tabs>li.active>a,
.product-view .producttab .nav-tabs>li.active>a:hover,
.product-view .producttab .nav-tabs>li.active>a:focus {
    color: #ff5400 !important;
    /* Brand Blue */
    font-weight: 700 !important;
}

/* Active State - The Blue Line */
.product-view .producttab .nav-tabs>li.active>a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0px !important;
    left: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background-color: #ff5400 !important;
    border-radius: 3px 3px 0 0 !important;
    display: block !important;
}

/* Clean up theme separators if any */
.product-view .producttab .nav-tabs>li::before,
.product-view .producttab .nav-tabs>li::after {
    display: none !important;
}


/* 3. CONTENT BOXES */
.product-view .producttab .tab-content {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.product-view .producttab .tab-pane {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    padding: 30px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
}

/* Headings */
.product-view .producttab .tab-content h3 {
    font-size: 18px !important;
    font-weight: 700;
    color: #1a1a1a !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
    border-bottom: none !important;
}

/* Text readability */
.product-view .producttab .tab-content p,
.product-view .producttab .tab-content {
    color: #444 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}


/* 4. ATTRIBUTES (The Grey Pills) */

.product-property-list {
    border: none !important;
    background: transparent !important;
}

.product-property-list .property-item {
    background-color: #f9f9f9 !important;
    border-radius: 8px !important;
    padding: 15px 20px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border: none !important;
    width: 100% !important;
}

.product-property-list .propery-title,
.product-property-list .propery-des {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
}

.product-property-list .propery-title {
    color: #1a1a1a !important;
    font-weight: 600 !important;
}

.product-property-list .propery-des {
    color: #333 !important;
    font-weight: 600 !important;
    text-align: right !important;
}


/* 5. BUY BOX & SIDEBAR FIXES */
.sticky-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 99;
    align-self: flex-start;
}

.stick-buy-box {
    background: #fff !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

.price-new {
    color: #1a1a1a !important;
    font-size: 28px !important;
    font-weight: 800 !important;
}

.btn-add-cart {
    background-color: #ff5400 !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    padding: 15px !important;
    text-transform: none !important;
    box-shadow: 0 4px 10px rgba(75, 45, 248, 0.2) !important;
}

.btn-add-cart:hover {
    background-color: #3a20d0 !important;
    box-shadow: 0 6px 15px rgba(75, 45, 248, 0.3) !important;
}

/* Trust Badges - Fixed Layout */
.badge-item {
    background: #fff !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    margin-bottom: 5px !important;
    padding: 10px !important;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

.badge-icon {
    width: 30px !important;
    flex-shrink: 0 !important;
    text-align: center !important;
}

.badge-text {
    flex: 1 !important;
}

.badge-text strong {
    display: block !important;
    font-size: 14px !important;
    margin-bottom: 4px !important;
    color: #333 !important;
}

.badge-text p {
    font-size: 13px !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Custom Badge Colors (Pastel) */
.badge-free {
    background-color: #f0fff4 !important;
    /* Pastel Green */
    border-color: #c6f6d5 !important;
}

.badge-payment {
    background-color: #fffaf0 !important;
    /* Pastel Orange */
    border-color: #feeec8 !important;
}

.badge-cargo {
    background-color: #e3f2fd !important;
    /* Pastel Blue */
    border-color: #bbdefb !important;
}

.badge-installment {
    background-color: #f3e5f5 !important;
    /* Pastel Purple */
    border-color: #e1bee7 !important;
}

/* ==========================================================================
   MOBILE OPTIMIZATION (Responsive Design)
   ========================================================================== */

@media (max-width: 991px) {

    /* 1. Reset Layout for Mobile */
    .product-detail .row {
        flex-direction: column !important;
    }

    .col-lg-9,
    .col-lg-3,
    .col-md-9,
    .col-md-3 {
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* 2. Disable Sticky Sidebar on Mobile */
    .sticky-sidebar {
        position: static !important;
        width: 100% !important;
        margin-top: 20px !important;
        z-index: 1 !important;
    }

    .stick-buy-box {
        box-shadow: none !important;
        border: 1px solid #eee !important;
        margin-bottom: 20px !important;
    }

    /* 3. Horizontal Scrollable Tabs */
    .product-view .producttab .nav-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        height: auto !important;
        padding: 10px 0 !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .product-view .producttab .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .product-view .producttab .nav-tabs>li {
        flex: 0 0 auto !important;
        margin-right: 15px !important;
    }

    .product-view .producttab .nav-tabs>li>a {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }

    /* 4. Product Attributes on Mobile */
    .product-property-list .property-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 10px !important;
    }

    .product-property-list .propery-des {
        text-align: left !important;
        margin-top: 5px !important;
    }

    /* Gallery Optimization */
    .content-product-left .large-image {
        margin-left: -5px !important;
        margin-right: -5px !important;
        border-radius: 10px !important;
    }

    /* Trust Badges - 2 Column Grid */
    .product-trust-badges {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .product-trust-badges .badge-item {
        flex-direction: column !important;
        text-align: center !important;
        padding: 10px !important;
        gap: 8px !important;
    }

    .product-trust-badges .badge-text p {
        display: none !important;
        /* Hide description for cleaner look */
    }

    /* Make Cart Button Full Width */
    .btn-add-cart {
        width: 100% !important;
        font-size: 16px !important;
        padding: 14px !important;
    }

    /* HIDE UNWANTED "BUY NOW" / "SIMDI AL" BUTTONS */
    /* Only allow the main Add to Cart button and badges */
    .cart-buttons-vertical>button:not(#button-cart),
    .cart-buttons-vertical>a,
    .cart-buttons-vertical>input,
    .btn-buy-now,
    .button-buynow,
    .fast-checkout {
        display: none !important;
    }

    /* Hide any Theme Specific Mobile Sticky Bars */
    .so-groups-sticky,
    .sticky-product-bar,
    .bottom-mobile-bar {
        display: none !important;
    }
}