﻿/* Theme overlay: survives theme regenerate. Header icons + small utilities. */

/* 997px+ yatay scroll: .row negatif margin + navbar overflow:visible ile viewport taşması. */
html,
body {
    overflow-x: hidden;
}

/* Header brand name: logo tarzı font (SCHASIYEN vb.) */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&display=swap');
.header-brand-name {
    font-family: 'Oswald', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em;
}

/* dark arka plan: #3D464D -> #342007 */
.bg-dark,
.bg-dark:hover,
.bg-dark:focus {
    background-color: #342007 !important;
}

/* text-primary rengi */
.text-primary {
    color: #e3ae24 !important;
}

/* Arka planı #e3ae24 olan tüm elementlerde yazı rengi her zaman beyaz */
.bg-primary,
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary.disabled,
.btn-primary:disabled,
[style*="background-color: #e3ae24"],
[style*="background: #e3ae24"] {
    color: #ffffff !important;
}

/* bg-primary altındaki text-dark -> beyaz */
.bg-primary .text-dark {
    color: #ffffff !important;
}
a.text-primary:hover,
a.text-primary:focus {
    color: #d4a84d !important;
}

/* Header icons row: keep in one line with gap (template-agnostic) */
.header-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icons a,
.header-icons .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header-icons .btn,
.header-icons .dropdown {
    flex-shrink: 0;
}

/* Cart dropdown: single hover area so it doesn't close when moving mouse to menu (regenerate-safe) */
#cartDropdown {
    position: relative;
}
#cartDropdown .dropdown-menu {
    position: absolute !important;
    left: auto !important;
    right: 0 !important;
    margin-top: 0 !important;
    top: 100% !important;
    transform: none !important;
    pointer-events: auto;
}
/* Invisible bridge so mouse from toggle to menu doesn't leave container */
#cartDropdown .dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
    pointer-events: auto;
}

#miniCartDropdownContainer.dropdown-menu {
    min-width: 280px;
}

/* Keep cart dropdown visible: prevent parent overflow from clipping (Bootstrap outside detection) */
.navbar,
.navbar .container-fluid,
.navbar .container,
.header,
.nav,
#cartDropdown {
    overflow: visible !important;
}

/* Small utilities for template variations */
.ecom-cart-qty { font-variant-numeric: tabular-nums; }
.ecom-flex-gap { gap: 0.5rem; }

/* Account dropdown polish */
#accountDropdown + .dropdown-menu .dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
}

#accountDropdown + .dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
}

#accountDropdown + .dropdown-menu .dropdown-item i {
    width: 16px;
    text-align: center;
}

#accountDropdown + .dropdown-menu .dropdown-divider {
    margin: 0.5rem 0;
}

/* Home header Owl carousel dots (no nav) */
#header-carousel {
    position: relative;
}

#header-carousel .owl-nav {
    display: none !important;
}

@media (max-width: 767.98px) {
    #header-carousel .owl-nav {
        display: flex !important;
        justify-content: center;
        width: 100%;
        gap: 8px;
        margin-top: 10px;
        font-size: 30px;
    }
}

#header-carousel .owl-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

#header-carousel .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: #342007;
    border-radius: 50%;
    display: block;
    opacity: .6;
    transition: opacity .3s ease;
}

#header-carousel .owl-dots .owl-dot.active span,
#header-carousel .owl-dots .owl-dot:hover span {
    opacity: 1;
}

/* Product detail popup: smoother image transitions */
.mfp-fade.mfp-bg {
    opacity: 0;
    transition: opacity 0.22s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
    opacity: 0.82;
}

.mfp-fade.mfp-bg.mfp-removing {
    opacity: 0;
}

.mfp-fade .mfp-content {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
    transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.mfp-fade.mfp-ready .mfp-content {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.mfp-fade.mfp-removing .mfp-content {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
}

/* Product detail add-to-cart layout: stack controls on mobile only */
@media (max-width: 767.98px) {
    .js-product-detail .js-product-add-form {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        gap: 10px;
    }

    .js-product-detail .js-product-add-form .quantity {
        width: 100% !important;
        margin-right: 0 !important;
    }

    .js-product-detail .js-product-add-form .js-add-to-cart,
    .js-product-detail .js-product-add-form .js-sepete-git-btn {
        width: 100%;
        margin-left: 0 !important;
    }
}

/* Cart table: mobile vertical card layout */
@media (max-width: 767.98px) {
    .eca-checkout-main.table-responsive {
        overflow-x: visible !important;
    }

    .eca-checkout-main table.table thead {
        display: none;
    }

    .eca-checkout-main table.table,
    .eca-checkout-main table.table tbody,
    .eca-checkout-main table.table tr,
    .eca-checkout-main table.table td {
        display: block;
        width: 100%;
    }

    .eca-checkout-main table.table {
        border: 1px solid #d9d9d9;
    }

    .eca-checkout-main table.table tr {
        background: #fff;
        border: 1px solid #e5e5e5;
        margin-bottom: 12px;
        padding: 10px;
    }

    .eca-checkout-main table.table td {
        border: 0 !important;
        text-align: left !important;
        padding: 8px 0 !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .eca-checkout-main table.table td::before {
        display: inline-block;
        font-weight: 600;
        margin-bottom: 0;
        color: #3d464d;
        flex: 0 0 72px;
    }

    .eca-checkout-main table.table td:nth-child(1)::before { content: "Ürün"; }
    .eca-checkout-main table.table td:nth-child(2)::before { content: "Fiyat"; }
    .eca-checkout-main table.table td:nth-child(3)::before { content: "Adet"; }
    .eca-checkout-main table.table td:nth-child(4)::before { content: "Toplam"; }
    .eca-checkout-main table.table td:nth-child(5)::before { content: "Kaldır"; }

    .eca-checkout-main table.table td .quantity {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .eca-checkout-main table.table td:first-child {
        display: block;
    }

    .eca-checkout-main table.table td:first-child::before {
        display: block;
        margin-bottom: 6px;
        flex: 0 0 auto;
    }
}
/* Home category cards: keep image-left/content-right layout stable */
.cat-item {
    display: flex !important;
    align-items: stretch !important;
    min-height: 120px;
    height: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.cat-item .category-image-wrap {
    width: 150px;
    height: auto;
    flex: 0 0 150px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .home-featured-products-row .product-item,
    .home-recent-carousel .product-item {
        margin-bottom: 20px !important;
    }
}

@media (min-width: 992px) {
    .home-featured-products-row > [class*="col-"],
    .home-recent-carousel > [class*="col-"] {
        padding-bottom: 20px !important;
    }
}

.cat-item .category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.cat-item .category-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 767px) {
    .cat-item {
        min-height: 100px;
    }


    .cat-item .category-content {
        padding: 12px 14px;
    }
}
/* Mobile account dropdown fix */
@media (max-width: 991px) {
    #accountDropdown + .dropdown-menu {
        position: absolute;
        right: 0;
        left: auto;
        min-width: 200px;
    }
}

/* Toast notification (sağ alttan çıkan bildirim) */
#ecom-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.ecom-toast {
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    min-width: 250px;
    max-width: 400px;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease-out;
    font-size: 14px;
}

.ecom-toast.error {
    background-color: #dc3545;
}

.ecom-toast.warning {
    background-color: #ffc107;
    color: #212529;
}

/* Home/listing product cards: equal image area + equal card heights */
.product-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-item .product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f8f8;
}

.product-item .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-item .text-center.py-4 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mini-cart remove button (subtle, reusable with existing AJAX hook) */
.mini-cart-item .mini-cart-price-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.mini-cart-remove {
    border: 0;
    background: none;
    color: #6c757d;
    opacity: .7;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
    transition: opacity .2s ease, color .2s ease;
}

.mini-cart-remove:hover,
.mini-cart-remove:focus {
    opacity: 1;
    color: #dc3545;
    outline: none;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.ecom-toast.fade-out {
    animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* --- Tiffany-like product gallery (eapp-gallery) --- */
.js-eapp-gallery {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.eapp-gallery-left.js-eapp-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
}

.js-eapp-gallery .eapp-thumb {
    display: block;
    border: 1px solid #e6e6e6;
    border-radius: 0;
    background: #fff;
    padding: 4px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.js-eapp-gallery .eapp-thumb img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.js-eapp-gallery .eapp-thumb:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    border-color: #d9d9d9;
}

.js-eapp-gallery .eapp-thumb.is-active {
    border-color: #333;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

/* Tema transform ezPlus koordinatını bozmasın */
.js-eapp-gallery .eapp-gallery-main,
.js-eapp-gallery .eapp-main-frame,
.js-eapp-gallery .js-eapp-zoom-target {
    transform: none !important;
}

.js-eapp-gallery .eapp-gallery-main {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

/* Dış frame (görünüm) */
.eapp-main-frame {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 0;
    padding: 10px;
    height: clamp(340px, 48vw, 520px);
    overflow: hidden;
}

.js-eapp-gallery .eapp-media-stage {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Zoom target çıplak - padding/border/radius yok, ezPlus offset doğru hesaplar */
.js-eapp-zoom-target {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.js-eapp-gallery .eapp-main-anchor {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* img kesin "safe" */
.js-eapp-main-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    filter: none !important;
}

/* ezPlus container tıklamayı geçirsin - popup (main img click) çalışsın */
.zoomContainer { z-index: 99999 !important; pointer-events: none !important; }
.zoomWindowContainer { z-index: 99999 !important; pointer-events: none !important; }
.zoomContainer .zoomLens { pointer-events: none !important; }

/* Lens görünürlük */
.zoomContainer .zoomLens {
    width: 285px !important;
    height: 285px !important;
    background: rgba(210, 180, 140, .45) !important;
    border: 2px solid rgba(30, 30, 30, .45) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22) !important;
}

/* Video thumb + stage */
.eapp-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.eapp-thumb.active,
.js-eapp-gallery .eapp-thumb.is-active {
    border-color: #000;
}

.eapp-thumb {
    position: relative;
    cursor: pointer;
}

.video-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    background: rgba(0, 0, 0, .35);
}

.eapp-video-wrapper video {
    width: 100%;
    border-radius: 0;
}

@media (max-width: 991px) {
    .js-eapp-gallery {
        flex-direction: column;
    }
    .eapp-main-frame {
        height: clamp(280px, 72vw, 440px);
    }
    .eapp-gallery-left.js-eapp-thumbs {
        order: 2;
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow: auto;
        padding: 8px 2px 2px 2px;
    }
    .js-eapp-gallery .eapp-thumb img {
        width: 64px;
        height: 64px;
    }
}

/* Footer Follow Us: show only eca-follow-us (SocialMediaLinks); hide template's static icon row (immediate next .d-flex only) */
.eca-follow-us + .d-flex {
    display: none !important;
}
.footer-follow-us.eca-follow-us {
    display: block;
}
.footer-follow-us.eca-follow-us .d-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.footer-follow-us.eca-follow-us .btn-square {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Bizi Takip Edin: başlık kırpılmasın, column layout (regenerate-safe) */
.footer .footer-follow-us.eca-follow-us {
    display: block;
}
.footer .footer-follow-us.eca-follow-us h6 {
    margin: 0;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: 100%;
}
.footer .footer-follow-us.eca-follow-us .d-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Ücretsiz kargo bilgi bandı (layout'ta _Header üstü; theme-overrides) */
.eca-free-shipping-promo {
    background: linear-gradient(180deg, #3a2408 0%, #2f1d06 100%);
    width: 100%;
    margin: 0;
    padding: 10px 16px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.22);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    position: relative;
    z-index: 2;
}

/* backward-compatible alias if older markup uses ec-* */
.ec-free-shipping-promo {
    background: linear-gradient(180deg, #3a2408 0%, #2f1d06 100%);
    width: 100%;
    margin: 0;
    padding: 10px 16px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.22);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    position: relative;
    z-index: 2;
}

@media (max-width: 575.98px) {
    .eca-free-shipping-promo,
    .ec-free-shipping-promo {
        padding: 9px 12px;
        font-size: 14px;
        letter-spacing: 0.2px;
    }
}

/* Order thank-you & checkout completed: outline-secondary visible on theme bg */
[data-eca-page="order-thankyou"] .btn-outline-secondary,
[data-eca-page="checkout-completed"] .btn-outline-secondary {
    background-color: #f8f9fa;
    color: #212529;
    border-color: #adb5bd;
}

[data-eca-page="order-thankyou"] .btn-outline-secondary:hover,
[data-eca-page="checkout-completed"] .btn-outline-secondary:hover {
    background-color: #e9ecef;
    color: #212529;
    border-color: #6c757d;
}

/* Category menu: level-2 -> level-3 support */
.navbar-vertical .dropdown-menu .eca-submenu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}

.navbar-vertical .dropdown-menu .eca-submenu-link {
    display: block;
    flex: 1 1 auto;
    padding: 0.25rem 1.5rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.navbar-vertical .dropdown-menu .eca-submenu-link:hover {
    color: #16181b;
    text-decoration: none;
    background-color: #f8f9fa;
}

.navbar-vertical .dropdown-menu .eca-submenu-toggle {
    border: 0;
    background: transparent;
    color: #6c757d;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    line-height: 1;
    cursor: pointer;
}

.navbar-vertical .dropdown-menu .eca-submenu-toggle:focus {
    outline: none;
}

.navbar-vertical .dropdown-menu .eca-third-level-panel {
    display: none;
    position: absolute;
    left: calc(100% - 1px);
    top: 0;
    min-width: 220px;
    padding: 0.5rem 0;
    margin: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    z-index: 1001;
}

.navbar-vertical .dropdown-menu .eca-submenu-item.has-children:hover > .eca-third-level-panel,
.navbar-vertical .dropdown-menu .eca-submenu-item.has-children:focus-within > .eca-third-level-panel {
    display: block;
}

.navbar-vertical .dropdown-menu .eca-third-level-link {
    padding-left: 1rem;
}

@media (max-width: 991.98px) {
    .navbar-vertical .dropdown-menu .eca-submenu-item {
        flex-wrap: wrap;
    }

    .navbar-vertical .dropdown-menu .eca-submenu-toggle {
        margin-left: auto;
    }

    .navbar-vertical .dropdown-menu .eca-third-level-panel {
        position: static;
        border: 0;
        min-width: 100%;
        padding: 0 0 0.25rem 0;
        background: transparent;
    }

    .navbar-vertical .dropdown-menu .eca-submenu-item.is-open > .eca-third-level-panel {
        display: block;
    }

    .navbar-vertical .dropdown-menu .eca-third-level-link {
        padding-left: 2rem;
    }
}
