/* ==========================================================================
   CHEFBASE - ÖZEL MARKA STİLİ
   Renk paleti: Lacivert (kurumsal) + Turuncu (aksiyon/CTA)
   ========================================================================== */

:root{
    --cb-navy: #16324F;
    --cb-navy-dark: #0E2236;
    --cb-orange: #F2811D;
    --cb-orange-dark: #D96B0A;
    --cb-gray-50: #F7F8FA;
    --cb-gray-100: #EEF1F4;
    --cb-gray-300: #D7DCE2;
    --cb-gray-600: #5B6672;
    --cb-text: #1E2A33;
    --cb-success: #1F9D55;
    --cb-radius: 6px;
    --cb-shadow: 0 2px 10px rgba(22,50,79,0.08);
}

body{
    color: var(--cb-text);
    background:#fff;
}

a{ color: var(--cb-navy); }
a:hover{ color: var(--cb-orange); }

/* ---------- Header ---------- */
.site-header{
    background: #fff;
    border-bottom: 1px solid var(--cb-gray-100);
    box-shadow: var(--cb-shadow);
}
.cb-top-bar{
    background: var(--cb-navy);
    color:#fff;
    font-size: 13px;
    padding: 6px 0;
}
.cb-top-bar a{ color:#fff; opacity:.9; }
.cb-top-bar .cb-top-bar-inner{
    max-width:1280px; margin:0 auto; padding:0 20px;
    display:flex; justify-content:space-between; align-items:center;
}

.site-header .site-branding img{ max-height:48px; }

/* Arama kutusu */
.cb-search-form{
    display:flex; flex:1; max-width:560px; margin:0 24px;
}
.cb-search-form input[type="search"]{
    flex:1; border:2px solid var(--cb-navy); border-right:none;
    border-radius: var(--cb-radius) 0 0 var(--cb-radius);
    padding:10px 14px; font-size:14px;
}
.cb-search-form button{
    background: var(--cb-orange); color:#fff; border:none;
    padding:0 18px; border-radius:0 var(--cb-radius) var(--cb-radius) 0;
    cursor:pointer; transition:.2s;
}
.cb-search-form button:hover{ background: var(--cb-orange-dark); }

/* Header ikon grubu: favoriler / karşılaştır / hesap / sepet */
.cb-header-icons{ display:flex; align-items:center; gap:18px; }
.cb-header-icons a{
    position:relative; color: var(--cb-navy); display:flex; flex-direction:column;
    align-items:center; font-size:11px; text-decoration:none;
}
.cb-header-icons .cb-badge{
    position:absolute; top:-6px; right:-10px; background:var(--cb-orange);
    color:#fff; font-size:10px; font-weight:700; border-radius:50%;
    width:18px; height:18px; display:flex; align-items:center; justify-content:center;
}

/* ---------- Mega Menü ---------- */
.cb-mega-menu-bar{
    background: var(--cb-navy-dark);
}
.cb-mega-menu{
    max-width:1280px; margin:0 auto; position:relative;
}
.cb-mega-menu > ul{
    list-style:none; display:flex; margin:0; padding:0;
}
.cb-mega-menu > ul > li{
    position:relative;
}
.cb-mega-menu > ul > li > a{
    display:block; color:#fff; padding:14px 18px; font-weight:600;
    font-size:14px; text-decoration:none; letter-spacing:.2px;
}
.cb-mega-menu > ul > li:hover > a,
.cb-mega-menu > ul > li.cb-active > a{ background: var(--cb-orange); }

.cb-mega-panel{
    display:none;
    position:absolute; left:0; top:100%; width:100%;
    background:#fff; box-shadow:0 12px 28px rgba(0,0,0,.15);
    border-top:3px solid var(--cb-orange);
    z-index:60; padding:28px;
}
.cb-mega-menu > ul > li:hover .cb-mega-panel{ display:flex; gap:32px; }

.cb-mega-col{ flex:1; min-width:160px; }
.cb-mega-col h4{
    color: var(--cb-navy); font-size:13px; text-transform:uppercase;
    letter-spacing:.5px; margin-bottom:12px; border-bottom:2px solid var(--cb-gray-100);
    padding-bottom:8px;
}
.cb-mega-col ul{ list-style:none; margin:0; padding:0; }
.cb-mega-col ul li a{
    display:block; padding:6px 0; color: var(--cb-text); font-size:14px; text-decoration:none;
}
.cb-mega-col ul li a:hover{ color: var(--cb-orange); padding-left:4px; transition:.15s; }

.cb-mega-promo{
    width:220px; background: var(--cb-gray-50); border-radius: var(--cb-radius);
    padding:16px; text-align:center;
}
.cb-mega-promo img{ width:100%; border-radius:4px; margin-bottom:10px; }
.cb-mega-promo .cb-btn{ width:100%; }

/* Mobil menü */
.cb-mobile-menu-toggle{ display:none; }
@media (max-width: 850px){
    .cb-mega-menu-bar{ display:none; }
    .cb-mobile-menu-toggle{
        display:flex; align-items:center; gap:8px; background:var(--cb-navy);
        color:#fff; border:none; padding:10px 16px; width:100%; font-weight:600;
    }
    .cb-mobile-drawer{
        position:fixed; top:0; left:-320px; width:300px; height:100%;
        background:#fff; z-index:999; transition:left .25s ease; overflow-y:auto;
        box-shadow:4px 0 18px rgba(0,0,0,.2);
    }
    .cb-mobile-drawer.open{ left:0; }
    .cb-mobile-drawer-overlay{
        display:none; position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:998;
    }
    .cb-mobile-drawer-overlay.open{ display:block; }
    .cb-mobile-drawer ul{ list-style:none; margin:0; padding:0; }
    .cb-mobile-drawer li{ border-bottom:1px solid var(--cb-gray-100); }
    .cb-mobile-drawer a{ display:block; padding:14px 18px; color:var(--cb-text); text-decoration:none; }
    .cb-mobile-drawer .cb-has-children > a::after{ content:"+"; float:right; color:var(--cb-orange); font-weight:700; }
}

/* ---------- Kategori kartları (Ana Sayfa) ---------- */
.cb-category-grid{
    display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:16px; max-width:1280px; margin:40px auto; padding:0 20px;
}
.cb-category-card{
    background: var(--cb-gray-50); border-radius: var(--cb-radius);
    text-align:center; padding:20px 12px; text-decoration:none; color:var(--cb-text);
    transition:.2s; border:1px solid var(--cb-gray-100);
}
.cb-category-card:hover{ transform:translateY(-3px); box-shadow:var(--cb-shadow); border-color:var(--cb-orange); }
.cb-category-card img{ width:64px; height:64px; object-fit:contain; margin-bottom:10px; }
.cb-category-card span{ display:block; font-size:13px; font-weight:600; }

/* ---------- Kampanya / Hero Slider ---------- */
.cb-hero-banner{
    max-width:1280px; margin:24px auto; padding:0 20px;
}
.cb-hero-banner .cb-slide{
    border-radius:10px; overflow:hidden; position:relative; min-height:340px;
    background-size:cover; background-position:center; display:flex; align-items:center;
}
.cb-hero-banner .cb-slide-content{
    padding:48px; color:#fff; max-width:480px;
    background: linear-gradient(90deg, rgba(22,50,79,.85) 0%, rgba(22,50,79,0) 100%);
    height:100%; display:flex; flex-direction:column; justify-content:center;
}
.cb-hero-banner h2{ font-size:32px; margin-bottom:12px; color:#fff; }
.cb-hero-banner p{ margin-bottom:20px; opacity:.9; }

/* ---------- Genel Buton ---------- */
.cb-btn{
    display:inline-block; background:var(--cb-orange); color:#fff !important;
    padding:11px 22px; border-radius:var(--cb-radius); font-weight:700; font-size:14px;
    text-decoration:none; border:none; cursor:pointer; transition:.2s;
}
.cb-btn:hover{ background:var(--cb-orange-dark); }
.cb-btn-outline{
    background:transparent; border:2px solid #fff; color:#fff !important;
}
.cb-btn-navy{ background:var(--cb-navy); }
.cb-btn-navy:hover{ background:var(--cb-navy-dark); }

/* WooCommerce ana CTA renklerini markaya bağla */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit{
    background: var(--cb-orange) !important; color:#fff !important;
    border-radius: var(--cb-radius); font-weight:700; border:none;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover{
    background: var(--cb-orange-dark) !important;
}
.woocommerce a.added_to_cart{ color: var(--cb-navy) !important; font-weight:600; }

/* ---------- Ürün Kartı + Rozetler ---------- */
ul.products li.product{
    position:relative; border:1px solid var(--cb-gray-100); border-radius:var(--cb-radius);
    padding:14px !important; transition:.2s;
}
ul.products li.product:hover{ box-shadow:var(--cb-shadow); border-color:var(--cb-orange); }

.cb-badge-ribbon{
    position:absolute; top:10px; left:10px; z-index:5;
    background:var(--cb-orange); color:#fff; font-size:11px; font-weight:700;
    padding:4px 10px; border-radius:3px; text-transform:uppercase;
}
.cb-badge-ribbon.cb-badge-new{ background: var(--cb-navy); }
.cb-badge-ribbon.cb-badge-stock{ background:#B3261E; }

.cb-card-actions{
    position:absolute; top:10px; right:10px; display:flex; flex-direction:column; gap:8px; z-index:5;
}
.cb-card-actions button{
    width:34px; height:34px; border-radius:50%; border:1px solid var(--cb-gray-300);
    background:#fff; cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition:.2s; font-size:15px;
}
.cb-card-actions button:hover{ background:var(--cb-orange); color:#fff; border-color:var(--cb-orange); }
.cb-card-actions button.cb-active{ background:var(--cb-orange); color:#fff; border-color:var(--cb-orange); }

/* ---------- Filtre Sidebar ---------- */
.cb-filter-widget{
    background:var(--cb-gray-50); border-radius:var(--cb-radius); padding:18px; margin-bottom:18px;
}
.cb-filter-widget h4{
    font-size:13px; text-transform:uppercase; color:var(--cb-navy); margin-bottom:12px;
}
.cb-filter-widget label{ display:flex; align-items:center; gap:8px; font-size:14px; padding:5px 0; cursor:pointer; }

/* ---------- Sticky Sepete Ekle Barı (Ürün Detay) ---------- */
.cb-sticky-bar{
    position:fixed; bottom:0; left:0; width:100%; background:#fff;
    box-shadow:0 -4px 16px rgba(0,0,0,.12); padding:12px 24px; z-index:500;
    display:flex; align-items:center; justify-content:space-between;
    transform:translateY(100%); transition:transform .25s ease;
}
.cb-sticky-bar.cb-visible{ transform:translateY(0); }
.cb-sticky-bar img{ width:46px; height:46px; object-fit:cover; border-radius:4px; margin-right:12px; }
.cb-sticky-bar .cb-sticky-info{ display:flex; align-items:center; flex:1; }
.cb-sticky-bar .cb-sticky-price{ font-weight:700; color:var(--cb-navy); margin-right:20px; }

/* ---------- Karşılaştırma Tablosu ---------- */
.cb-compare-table{ width:100%; border-collapse:collapse; }
.cb-compare-table th, .cb-compare-table td{
    border:1px solid var(--cb-gray-100); padding:12px; text-align:center; vertical-align:top;
}
.cb-compare-table th{ background:var(--cb-gray-50); }
.cb-compare-remove{ color:#B3261E; cursor:pointer; font-size:12px; }

/* ---------- WhatsApp Float Buton ---------- */
.cb-whatsapp-float{
    position:fixed; bottom:24px; right:24px; z-index:900;
    width:58px; height:58px; border-radius:50%; background:#25D366;
    display:flex; align-items:center; justify-content:center; box-shadow:0 4px 14px rgba(0,0,0,.25);
    text-decoration:none; transition:.2s;
}
.cb-whatsapp-float:hover{ transform:scale(1.08); }
.cb-whatsapp-float svg{ width:30px; height:30px; fill:#fff; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--cb-navy-dark); color:#cfd8e3; padding:50px 0 20px; }
.site-footer a{ color:#cfd8e3; }
.site-footer a:hover{ color:var(--cb-orange); }
.site-footer h4{ color:#fff; font-size:14px; text-transform:uppercase; margin-bottom:16px; }
.cb-footer-trust{
    display:flex; gap:24px; flex-wrap:wrap; max-width:1280px; margin:0 auto 30px;
    padding:24px 20px; border-top:1px solid rgba(255,255,255,.1); border-bottom:1px solid rgba(255,255,255,.1);
}
.cb-footer-trust .cb-trust-item{ display:flex; align-items:center; gap:10px; font-size:13px; }

/* ---------- Popup ---------- */
.cb-popup-overlay{
    display:none; position:fixed; inset:0; background:rgba(14,34,54,.7); z-index:1000;
    align-items:center; justify-content:center;
}
.cb-popup-overlay.cb-open{ display:flex; }
.cb-popup-box{
    background:#fff; border-radius:10px; max-width:440px; width:90%; padding:32px;
    position:relative; text-align:center;
}
.cb-popup-close{
    position:absolute; top:12px; right:16px; background:none; border:none; font-size:22px; cursor:pointer; color:var(--cb-gray-600);
}

@media (max-width:768px){
    .cb-hero-banner h2{ font-size:22px; }
    .cb-hero-banner .cb-slide-content{ max-width:100%; background:rgba(22,50,79,.78); }
}
