/* =====================================================
   A+Co Bug Fixes CSS
   Bu faylı layout.blade.php-də @yield('head')-dən ƏVVƏL əlavə edin
   
   Problemlər:
   1. Header üstündə boşluq
   2. Subcategories/Category card description background
   3. Partners/Tərəfdaşlar ellips ölçüsü
   ===================================================== */


/* =====================================================
   1. HEADER BOŞLUQ PROBLEMİ FIX
   ===================================================== */

/* HTML və Body reset */
html {
    margin: 0 !important;
    padding: 0 !important;
    scroll-behavior: smooth;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.defult-home {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Main Content wrapper */
.main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Full Width Header */
.full-width-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative;
}

/* RS Header */
#rs-header,
.rs-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Toolbar - ilk element */
.toolbar-area {
    margin-top: 0 !important;
}

.toolbar-area.topbar-style1 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Offwrap - boşluq yaratmasın */
.offwrap {
    display: none;
    position: fixed;
}

/* Preloader gizli */
#pre-load {
    display: none !important;
}

/* Login popup - boşluq yaratmasın */
.login-popup {
    position: fixed;
}

/* Menu Area */
.menu-area {
    margin-top: 0;
}


/* =====================================================
   2. SUBCATEGORIES / CATEGORY CARD DESCRIPTION FIX
   Yazının arxasındakı ağ background problemi
   ===================================================== */

/* Subcategories səhifəsi - Card Data */
.card__data {
    background: transparent !important;
}

/* Card Description - şəffaf background */
.card__description {
    background: transparent !important;
    background-color: transparent !important;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

/* Description wrapper */
.card__description-wrapper {
    background: transparent !important;
    background-color: transparent !important;
}

/* Card title */
.card__title {
    background: transparent !important;
    background-color: transparent !important;
}

/* Bütün card içindəki p, span elementlər */
.card__article p,
.card__article span,
.card__article h2,
.card__article .card__description,
.card__article .card__title {
    background: transparent !important;
    background-color: transparent !important;
    -webkit-text-fill-color: inherit;
}

/* Mark/highlight effektini sil */
.card__description mark,
.card__description::selection,
.card__title::selection {
    background: transparent;
}

/* Selection color - normal */
.card__article *::selection {
    background: rgba(187, 11, 15, 0.3);
    color: inherit;
}

/* Tooltip (hover popup) - bu düzgün işləsin */
.card__description:hover::after {
    background: rgba(0, 0, 0, 0.95) !important;
    color: #ffffff !important;
    padding: 15px !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Category səhifəsi üçün əlavə fix */
.rs-shop-part .card__description {
    background: none !important;
    background-color: transparent !important;
}

/* Text shadow ilə oxunaqlılıq */
.rs-shop-part .card__title {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rs-shop-part .card__description {
    color: #a0a0a0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}


/* =====================================================
   3. TƏRƏFDAŞLAR / PARTNERS ELLİPS ÖLÇÜSÜ FIX
   Dairəvi logolar çox böyükdür
   ===================================================== */

/* Partner section container */
.rs-partner {
    position: relative;
    overflow: hidden;
}

/* Partner logo ölçüsü - KİÇİLDİLMİŞ */
.rs-partner .logo-img img {
    max-width: 100px !important;
    max-height: 100px !important;
    width: 100px !important;
    height: 100px !important;
    object-fit: contain !important;
    border-radius: 50% !important;
    transition: all 0.3s ease;
}

/* Logo container */
.rs-partner .logo-img {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 120px !important;
    height: 120px !important;
    margin: 0 auto !important;
}

/* Owl carousel item */
.rs-partner .item {
    padding: 10px 5px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carousel wrapper */
.rs-partner .rs-carousel.owl-carousel {
    padding: 0 50px;
}

/* Partner item hover */
.rs-partner .logo-img img:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Carousel dots - daha kiçik */
.rs-partner .owl-dots {
    margin-top: 20px;
}

.rs-partner .owl-dot span {
    width: 10px !important;
    height: 10px !important;
}

/* Nav buttons */
.rs-partner .owl-nav button.owl-prev,
.rs-partner .owl-nav button.owl-next {
    width: 35px !important;
    height: 35px !important;
    font-size: 18px !important;
}


/* =====================================================
   ƏLAVƏ UYĞUNLUQ DÜZƏLİŞLƏRİ
   ===================================================== */

/* Carousel stage - overflow fix */
.rs-partner .owl-stage-outer {
    overflow: visible;
    padding: 10px 0;
}

/* Z-index hierarchy */
.rs-header {
    z-index: 9999 !important;
}

.menu-area.menu-sticky {
    z-index: 9999 !important;
}

.rs-slider,
#rs-slider {
    z-index: 1;
}

/* Mobile responsive */
@media (max-width: 991px) {
    /* Header gap fix for mobile */
    .toolbar-area.hidden-md {
        display: none !important;
    }
    
    /* Partners smaller on mobile */
    .rs-partner .logo-img img {
        max-width: 80px !important;
        max-height: 80px !important;
        width: 80px !important;
        height: 80px !important;
    }
    
    .rs-partner .logo-img {
        max-width: 100px !important;
        height: 100px !important;
    }
}

@media (max-width: 767px) {
    /* Even smaller on small screens */
    .rs-partner .logo-img img {
        max-width: 70px !important;
        max-height: 70px !important;
        width: 70px !important;
        height: 70px !important;
    }
    
    .rs-partner .logo-img {
        max-width: 90px !important;
        height: 90px !important;
    }
    
    .rs-partner .rs-carousel.owl-carousel {
        padding: 0 30px;
    }
}


/* =====================================================
   SUBCATEGORIES SƏHİFƏSİ - Card popup fix
   ===================================================== */

/* Subcategories card data - ağ background olmalıdır */
.rs-shop-part .card-wrapper .card__data {
    background-color: #ffffff !important;
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
}

/* Amma category səhifəsində deyil */
.rs-shop-part .row .card__data {
    background: transparent !important;
}

/* Card article - düzgün struktur */
.rs-shop-part .row .card__article {
    background-color: hsl(235, 32%, 10%);
}

/* Subcategories card text colors */
.card-wrapper .card__title {
    color: #262626 !important;
}

.card-wrapper .card__description {
    color: #666666 !important;
}

.card-wrapper .card__button {
    color: #4c7c1b !important;
}

/* Category page card text colors */
.row .card__article .card__title {
    color: #ffffff !important;
}

.row .card__article .card__description {
    color: #a0a0a0 !important;
}