/* ========================================================================
   ANINDAPERDE.COM - MODESY 2.6.4
   TEK PARCA TEMIZ TASARIM DOSYASI

   Kurulum:
   1) Admin panelindeki eski Custom CSS kodunun tamamini silin.
   2) Bu dosyanin tamamini Custom CSS alanina yapistirin.
   3) HTML style acilis/kapanis etiketi EKLEMEYIN.
   4) Site ve tarayici onbellegini temizleyin.
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600;700&display=swap');

:root {
    --ap-navy: #1a2a3a;
    --ap-navy-dark: #131f2b;
    --ap-mobile-header: #131921;
    --ap-gold: #d4a017;
    --ap-search: #febd69;
    --ap-text: #333333;
    --ap-muted: #636e72;
    --ap-bg: #f8f9fa;
    --ap-border: #e5e7eb;
    --ap-white: #ffffff;
    --ap-danger-price: #b12704;
}

/* ========================================================================
   1. GENEL AYARLAR - TUM CIHAZLAR
   ======================================================================== */

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden !important;
    background-color: var(--ap-bg) !important;
    color: var(--ap-text);
    font-family: 'Open Sans', Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nav-main,
.btn {
    font-family: 'Montserrat', Arial, sans-serif !important;
}

img {
    max-width: 100%;
}

/* ========================================================================
   2. MASAUSTU UST BAR VE ANA MENU
   ======================================================================== */

.top-bar,
.nav-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    background-color: var(--ap-navy) !important;
    color: var(--ap-white) !important;
}

.top-bar a,
.nav-top a,
.nav-top li a {
    color: var(--ap-white) !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0.9;
}

.top-bar a:hover,
.nav-top a:hover {
    color: var(--ap-gold) !important;
    opacity: 1;
}

.top-bar i,
.nav-top i {
    color: var(--ap-white) !important;
}

.nav-main,
.nav-main .navbar {
    position: relative;
    z-index: 10;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 3px solid var(--ap-gold) !important;
    background-color: var(--ap-white) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nav-main .navbar ul .nav-item .nav-link {
    color: #2c3e50 !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-main .navbar ul .nav-item .nav-link:hover {
    color: var(--ap-gold) !important;
}

/* ========================================================================
   3. SAYFA YOLU / BREADCRUMB
   ======================================================================== */

.nav-breadcrumb {
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    border: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.nav-breadcrumb::before {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 100%;
    border-bottom: 1px solid #e1e1e1;
    background-color: #f1f2f6;
    content: '';
    transform: translateX(-50%);
}

.breadcrumb {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.breadcrumb-item a,
.breadcrumb-item.active {
    font-size: 12px !important;
    text-transform: uppercase;
}

.breadcrumb-item a {
    color: var(--ap-muted) !important;
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--ap-gold) !important;
}

.breadcrumb-item.active {
    color: var(--ap-navy) !important;
    font-weight: 700;
}

.breadcrumb-item + .breadcrumb-item::before {
    padding: 0 10px;
    color: var(--ap-gold) !important;
    content: '\203A' !important;
    font-size: 14px;
    font-weight: 700;
}

/* ========================================================================
   4. URUN KARTLARI - MODESY 2.6.4 GERCEK SINIFLARI
   ======================================================================== */

.product-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--ap-border) !important;
    border-radius: 8px;
    background: var(--ap-white);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card .product-image-container {
    overflow: hidden;
    background-color: #f9f9f9;
}

.product-card .product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.product-card .card-body {
    padding: 15px;
}

.product-card .product-title {
    height: 40px;
    margin-bottom: 6px;
    overflow: hidden;
    color: var(--ap-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.product-card .product-title a {
    color: inherit !important;
    text-decoration: none;
}

.product-card .price {
    display: block;
    margin-top: 5px;
    color: var(--ap-navy) !important;
    font-size: 17px;
    font-weight: 700;
}

/* Eski/ozel sayfalarda product-item kullaniliyorsa gorunumu korur. */
.product-item {
    display: flex;
    height: 100% !important;
    margin-bottom: 30px;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--ap-border) !important;
    border-radius: 8px;
    background: var(--ap-white);
}

.product-item .img-product-container {
    position: relative;
    width: 100%;
    padding-bottom: 150% !important;
    overflow: hidden;
    background-color: #f9f9f9;
}

.product-item .img-product-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.product-item .item-details {
    padding: 15px;
    flex-grow: 1;
    text-align: center;
}

.product-item .product-title {
    height: 38px;
    margin-bottom: 5px;
    overflow: hidden;
    color: var(--ap-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.product-item .price {
    display: block;
    margin-top: 5px;
    color: var(--ap-navy) !important;
    font-size: 17px;
    font-weight: 700;
}

/* Hover yalnizca fare kullanan cihazlarda calisir. */
@media (hover: hover) and (pointer: fine) {
    .product-card:hover,
    .product-item:hover {
        border-color: var(--ap-gold) !important;
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.09);
        transform: translateY(-4px);
    }
}

/* ========================================================================
   5. PERDE HESAPLAYICI
   ======================================================================== */

.p-calc-cont {
    margin-top: 20px;
    border: 1px solid #e1e1e1 !important;
    border-top: 3px solid var(--ap-navy) !important;
    background: var(--ap-white);
}

.p-head {
    border-bottom: 1px solid #eeeeee;
    background: var(--ap-bg) !important;
    color: var(--ap-navy) !important;
    font-weight: 700;
}

.p-card.active {
    border-color: var(--ap-gold) !important;
    background: #fffcf5 !important;
}

.p-card.active::after {
    background: var(--ap-gold) !important;
}

.p-footer {
    background: var(--ap-navy) !important;
    color: var(--ap-white) !important;
}

.p-total-txt {
    color: #f1c40f !important;
}

/* ========================================================================
   6. FOOTER - TUM CIHAZLAR
   ======================================================================== */

#footer {
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: 60px;
    padding-top: 60px;
    background-color: var(--ap-navy) !important;
    color: #ecf0f1 !important;
}

#footer .footer-title {
    margin-bottom: 20px;
    padding: 0;
    border: 0;
    color: var(--ap-gold) !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

#footer a,
#footer .nav-footer ul li a,
.footer-widget-content a {
    display: inline-block;
    margin-bottom: 8px;
    color: #bdc3c7 !important;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

#footer a:hover {
    padding-left: 5px;
    color: var(--ap-white) !important;
}

.footer-widget {
    padding-right: 15px;
    padding-left: 15px;
}

.footer-widget-content {
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
}

.footer-bottom {
    margin-top: 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--ap-navy-dark) !important;
}

.copyright {
    color: #7f8c8d !important;
    font-size: 12px;
}

.footer-social-links ul {
    display: flex;
    gap: 10px;
    padding-left: 0;
    list-style: none;
}

/* Masaustu footer kolonlarini korur. */
@media (min-width: 992px) {
    #footer .footer-top .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }

    #footer .col-lg-4 {
        width: 33.333333% !important;
        max-width: 33.333333% !important;
        flex: 0 0 33.333333% !important;
    }

    #footer .col-lg-8 {
        width: 66.666667% !important;
        max-width: 66.666667% !important;
        flex: 0 0 66.666667% !important;
    }

    #footer .col-lg-7 {
        width: 58.333333% !important;
        max-width: 58.333333% !important;
        flex: 0 0 58.333333% !important;
    }

    #footer .col-lg-5 {
        width: 41.666667% !important;
        max-width: 41.666667% !important;
        flex: 0 0 41.666667% !important;
    }

    .footer-widget {
        margin-bottom: 0 !important;
    }
}

/* ========================================================================
   7. SADECE MOBIL - MASAUSTUNU ETKILEMEZ
   ======================================================================== */

@media (max-width: 767.98px) {
    /*
     * Tema normalde mobil header icin 70px alan ayiriyor.
     * Arama cubugu eklenince gercek yukseklik 139px oluyor.
     * Body'yi kaydirmak yerine yalnizca header alanini duzeltiyoruz.
     */
    #header {
        height: 139px !important;
        min-height: 139px !important;
    }

    .nav-mobile-header {
        border: 0 !important;
        background-color: var(--ap-mobile-header) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
    }

    .nav-mobile-header-container {
        height: 60px !important;
        background-color: var(--ap-mobile-header) !important;
    }

    .nav-mobile-header i,
    .nav-mobile-header .mobile-cart-icon i {
        color: var(--ap-white) !important;
    }

    .nav-mobile-header .menu-icon span,
    .nav-mobile-header .menu-icon span::before,
    .nav-mobile-header .menu-icon span::after {
        background-color: var(--ap-white) !important;
    }

    .nav-mobile-header .span_cart_product_count {
        background-color: #f08804 !important;
        color: #111111 !important;
        font-weight: 700 !important;
    }

    .nav-mobile-header-container .a-search-icon {
        display: none !important;
    }

    /* Mobil arama: input ve buton tek bir kutu icinde kalir. */
    .mobile-search-form {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 5px 14px 14px !important;
        border: 0 !important;
        background-color: var(--ap-mobile-header) !important;
        box-sizing: border-box !important;
    }

    .mobile-search-form form {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mobile-search-form .input-group {
        display: flex !important;
        width: 100% !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        flex-wrap: nowrap !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: var(--ap-white) !important;
    }

    .mobile-search-form .form-control {
        position: static !important;
        display: block !important;
        width: auto !important;
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        flex: 1 1 auto !important;
        border: 0 !important;
        border-radius: 0 !important;
        outline: 0 !important;
        background: var(--ap-white) !important;
        color: #111111 !important;
        font-size: 15px !important;
        line-height: 44px !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .mobile-search-form .input-group-append,
    .mobile-search-form .input-group-btn {
        display: flex !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 50px !important;
        border: 0 !important;
    }

    .mobile-search-form .btn,
    .mobile-search-form button {
        position: static !important;
        display: flex !important;
        width: 50px !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 50px !important;
        border: 0 !important;
        border-radius: 0 !important;
        outline: 0 !important;
        background-color: var(--ap-search) !important;
        color: #222222 !important;
        box-shadow: none !important;
        transform: none !important;
    }

    .mobile-search-form .btn i,
    .mobile-search-form button i {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        color: #222222 !important;
        font-size: 20px !important;
        line-height: 1 !important;
        transform: none !important;
    }

    #response_search_results_mobile,
    #result-search-content,
    .search-results {
        position: absolute !important;
        z-index: 9999 !important;
        top: 48px !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-height: 60vh !important;
        overflow-y: auto !important;
        border: 1px solid #dddddd !important;
        background-color: var(--ap-white) !important;
        color: var(--ap-text) !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    }

    #result-search-content ul li a,
    .search-results a {
        display: block;
        padding: 10px 12px;
        border-bottom: 1px solid #eeeeee;
        background-color: var(--ap-white) !important;
        color: var(--ap-text) !important;
    }

    /* Slider header'in altindan baslar. */
    .section-main-slider {
        margin-top: 0 !important;
    }

    .main-slider,
    .main-slider .swiper-slide {
        height: clamp(280px, 96vw, 360px) !important;
    }

    .main-slider .swiper-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Ana sayfadaki gereksiz 135px beyaz boslugu kaldirir. */
    .index-wrapper {
        padding-top: 24px !important;
    }

    /* Mobil kategori kartlari. */
    .custom-department-section {
        margin-top: 0 !important;
        margin-bottom: 32px !important;
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .department-title-wrapper {
        margin-bottom: 16px !important;
    }

    .department-title {
        padding: 0 12px !important;
        font-size: 17px !important;
        line-height: 1.25 !important;
        letter-spacing: 0.3px !important;
    }

    .department-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        margin-bottom: 32px !important;
    }

    .arch-card {
        min-width: 0 !important;
        padding: 12px 8px !important;
        border: 1px solid var(--ap-border) !important;
        border-radius: 12px !important;
        background: var(--ap-white) !important;
        box-shadow: 0 2px 7px rgba(15, 23, 42, 0.06) !important;
    }

    .arch-img-wrapper {
        width: min(120px, 100%) !important;
        height: auto !important;
        margin-bottom: 10px !important;
        overflow: hidden !important;
        aspect-ratio: 1 / 1 !important;
        border: 0 !important;
        border-radius: 999px 999px 16px 16px !important;
    }

    .arch-card-title {
        min-height: 36px !important;
        margin: 0 !important;
        color: #172033 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
    }

    /* Mobil urun kartlari: iki sutuna uygun kompakt gorunum. */
    .product-card {
        border-radius: 10px !important;
        box-shadow: 0 2px 7px rgba(15, 23, 42, 0.06) !important;
        transform: none !important;
    }

    .product-card .card-body {
        padding: 10px !important;
    }

    .product-card .product-title {
        height: 40px !important;
        margin-bottom: 6px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.5 !important;
    }

    .product-card .product-seller {
        display: none !important;
    }

    .product-card .price {
        color: var(--ap-danger-price) !important;
        font-size: 17px !important;
        font-weight: 700 !important;
    }

    /* Mobil breadcrumb tek satirda parmakla kayar. */
    .nav-breadcrumb,
    .nav-breadcrumb.d-none,
    .nav-breadcrumb.d-sm-none,
    .nav-breadcrumb.d-md-none {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 10px 0 !important;
    }

    .breadcrumb,
    .breadcrumb-products,
    .breadcrumb-mobile-scroll {
        display: flex !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 15px !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        background: transparent !important;
        scrollbar-width: none !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .breadcrumb::-webkit-scrollbar {
        display: none !important;
    }

    .breadcrumb-item {
        display: flex !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    .breadcrumb-item a,
    .breadcrumb-item.active {
        white-space: nowrap !important;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        display: block !important;
        padding: 0 8px !important;
        font-size: 16px !important;
    }

    /* Mobilde ekranin buyuk bolumunu kaplayan cerez kutusunu kucultur. */
    .cookies-warning {
        right: 12px !important;
        bottom: 12px !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
        padding: 16px !important;
        border: 1px solid var(--ap-border) !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2) !important;
    }

    .cookies-warning .text,
    .cookies-warning .text p {
        margin-bottom: 12px !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .cookies-warning .btn {
        min-height: 44px !important;
        margin: 0 !important;
        border-radius: 8px !important;
    }

    #footer {
        margin-top: 32px !important;
        padding-top: 32px !important;
    }
}

/* ========================================================================
   8. GENEL KÜÇÜK DUZELTMELER
   ======================================================================== */

#result-search-content,
.search-results {
    z-index: 9999 !important;
    border: 1px solid #dddddd !important;
    background-color: var(--ap-white) !important;
    color: var(--ap-text) !important;
}

#result-search-content ul li a:hover,
.search-results a:hover {
    background-color: #f1f1f1 !important;
    color: var(--ap-gold) !important;
    text-decoration: none !important;
}

.btn-sell-now {
    display: none !important;
}
