/**
 * Kurukahveci Dündar Efe - Özel Kurumsal Tema Stil Dosyası
 * Renk Paleti:
 *   Ana Renk (Espresso) : #40271C
 *   Arka Plan (Krem)    : #F7F1E7
 *   Buton / Vurgu (Bakır): #B97645
 *   İkincil (Zeytin)    : #71806A
 *   Ürün Kartı (Beyaz)  : #FFFFFF
 */

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;
    --font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;

    --c-espresso: #40271C;
    --c-primary: #40271C;
    --c-primary-dark: #2B1A12;
    --c-primary-light: #5A3A2B;

    --c-caramel: #B97645;
    --c-accent: #B97645;
    --c-accent-hover: #9E6034;
    --c-gold: #B97645;
    --c-olive: #71806A;
    --c-olive-hover: #5B6955;

    --c-bg: #F7F1E7;
    --c-surface: #FFFFFF;
    --c-cream: #F7F1E7;
    --c-border: #E5D9C8;
    --c-text: #40271C;
    --c-text-muted: #6E584E;
}

body {
    background-color: var(--c-bg) !important;
    color: var(--c-text) !important;
    font-family: var(--font-sans) !important;
}

.main-content-wrap {
    padding-top: 0 !important;
    padding-bottom: 48px;
}

/* =========================================================================
   1. ÜST DUYURU ŞERİDİ (TOP BAR)
   ========================================================================= */
.kde-topbar {
    background-color: var(--c-espresso);
    color: #F7F1E7;
    font-size: 13px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(185, 118, 69, 0.25);
}

.kde-topbar-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.kde-topbar-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #B97645;
    display: inline-block;
}

.kde-topbar-auth {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
}

.kde-topbar-auth a {
    color: #EADBC8;
    text-decoration: none;
}
.kde-topbar-auth a:hover {
    color: #FFFFFF;
}

/* =========================================================================
   2. ANA HEADER & NAVİGASYON
   ========================================================================= */
.kde-header {
    background-color: var(--c-cream);
    border-bottom: 1px solid #E4D7C5;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 14px rgba(64, 39, 28, 0.06);
}

.kde-header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.kde-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.kde-brand-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.kde-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.kde-brand-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--c-espresso);
    text-transform: uppercase;
}

.kde-brand-sub {
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 500;
    color: #6B5347;
    margin-top: 3px;
    letter-spacing: 0.01em;
}

.kde-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.kde-nav-item {
    position: relative;
}

.kde-nav-link {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--c-espresso);
    text-decoration: none;
    padding: 8px 2px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.kde-nav-link:hover,
.kde-nav-link.active {
    color: var(--c-accent);
    border-bottom-color: var(--c-accent);
}

.kde-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #FFFFFF;
    border: 1px solid #E5D9C8;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(64, 39, 28, 0.12);
    padding: 8px;
    display: none;
    z-index: 1050;
}

.kde-nav-item:hover .kde-nav-dropdown {
    display: block;
}

.kde-nav-dropdown a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--c-espresso);
    font-size: 13.5px;
    text-decoration: none;
}

.kde-nav-dropdown a:hover {
    background: #F7F1E7;
    color: var(--c-accent);
}

.kde-header-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.kde-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: var(--c-espresso);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.kde-icon-btn:hover {
    background-color: rgba(185, 118, 69, 0.12);
    color: var(--c-espresso);
}

.kde-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background-color: var(--c-espresso);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* =========================================================================
   3. HERO BANNER
   ========================================================================= */
.kde-hero-wrap {
    max-width: 1320px;
    margin: 0 auto 36px auto;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
    position: relative;
    background-color: var(--c-cream);
    box-shadow: 0 10px 30px rgba(64, 39, 28, 0.08);
}

.kde-hero-grid {
    position: relative;
    min-height: 430px;
    display: flex;
    align-items: center;
}

.kde-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    z-index: 1;
}

.kde-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #F7F1E7 0%, #F7F1E7 38%, rgba(247, 241, 231, 0.88) 54%, rgba(247, 241, 231, 0.12) 76%, rgba(247, 241, 231, 0) 100%);
    z-index: 2;
}

.kde-hero-content {
    position: relative;
    z-index: 3;
    max-width: 560px;
    padding: 54px 48px;
}

.kde-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.8vw, 3.15rem);
    font-weight: 700;
    line-height: 1.14;
    color: var(--c-espresso);
    margin-bottom: 16px;
}

.kde-hero-subtitle {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: #553D32;
    margin-bottom: 28px;
    max-width: 460px;
}

.kde-btn-copper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--c-accent);
    color: #FFFFFF !important;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 6px;
    border: none;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 16px rgba(185, 118, 69, 0.28);
}

.kde-btn-copper:hover {
    background-color: var(--c-accent-hover);
    transform: translateY(-1px);
    color: #FFFFFF !important;
}

.kde-btn-olive {
    background-color: var(--c-olive);
    box-shadow: 0 6px 16px rgba(113, 128, 106, 0.28);
}

.kde-btn-olive:hover {
    background-color: var(--c-olive-hover);
}

/* =========================================================================
   4. 6'LI KATEGORİ VİTRİN IZGARASI
   ========================================================================= */
.kde-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 44px;
}

.kde-cat-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(64, 39, 28, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kde-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(64, 39, 28, 0.16);
}

.kde-cat-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 1;
}

.kde-cat-card:hover img {
    transform: scale(1.05);
}

.kde-cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 16, 11, 0.84) 0%, rgba(28, 16, 11, 0.62) 52%, rgba(28, 16, 11, 0.18) 100%);
    z-index: 2;
}

.kde-cat-body {
    position: relative;
    z-index: 3;
    max-width: 78%;
    color: #FFFFFF;
}

.kde-cat-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    color: #F7F1E7;
    opacity: 0.95;
}

.kde-cat-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.kde-cat-desc {
    font-family: var(--font-sans);
    font-size: 12.5px;
    line-height: 1.45;
    color: rgba(247, 241, 231, 0.9);
    margin-bottom: 16px;
}

.kde-cat-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 12.5px;
    font-weight: 600;
    color: #FFFFFF;
    background-color: var(--c-accent);
    transition: background-color 0.2s ease;
}

.kde-cat-card:hover .kde-cat-cta {
    background-color: var(--c-accent-hover);
}

.kde-cat-cta.olive {
    background-color: var(--c-olive);
}

.kde-cat-card:hover .kde-cat-cta.olive {
    background-color: var(--c-olive-hover);
}

/* =========================================================================
   5. ÜRÜN KARTLARI & ÖNE ÇIKAN ÜRÜNLER
   ========================================================================= */
.kde-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.kde-section-head h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--c-espresso);
    margin: 0 0 4px 0;
}

.kde-section-head p {
    font-size: 14px;
    color: #6B5347;
    margin: 0;
}

.kde-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 44px;
}

.kde-product-card {
    background-color: #FFFFFF;
    border: 1px solid #EAE0D2;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kde-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(64, 39, 28, 0.08);
}

.kde-product-img-box {
    display: block;
    background-color: #FAF6F0;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
}

.kde-product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.kde-product-card:hover .kde-product-img-box img {
    transform: scale(1.04);
}

.kde-product-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.kde-product-title {
    font-family: var(--font-sans);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--c-espresso);
    text-decoration: none;
    line-height: 1.3;
}

.kde-product-title:hover {
    color: var(--c-accent);
}

.kde-product-weight {
    font-size: 12.5px;
    color: #7D685C;
    margin-bottom: 8px;
}

.kde-product-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--c-espresso);
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
}

.kde-product-old-price {
    font-size: 13px;
    color: #9C8A80;
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: 500;
}

.kde-product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 14px;
}

.kde-stars {
    color: #D49137;
    letter-spacing: 1px;
}

.kde-rating-count {
    color: #7D685C;
    font-size: 12px;
}

.kde-add-btn {
    width: 100%;
    background-color: var(--c-accent);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.kde-add-btn:hover {
    background-color: var(--c-accent-hover);
}

/* =========================================================================
   6. GÜVEN ŞERİDİ (TRUST STRIP)
   ========================================================================= */
.kde-trust-strip {
    border-top: 1px solid #E3D6C4;
    border-bottom: 1px solid #E3D6C4;
    padding: 26px 0;
    margin-bottom: 16px;
}

.kde-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.kde-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.kde-trust-icon {
    width: 34px;
    height: 34px;
    color: var(--c-espresso);
    flex-shrink: 0;
}

.kde-trust-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-espresso);
}

/* =========================================================================
   7. KOYU ESPRESSO FOOTER (#40271C)
   ========================================================================= */
.kde-footer {
    background-color: var(--c-espresso);
    color: #EADBC8;
    padding-top: 0;
}

.kde-footer-brandbar {
    border-bottom: 1px solid rgba(247, 241, 231, 0.14);
    padding: 22px 20px;
}

.kde-footer-brandbar-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.kde-footer-tagline {
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 16px;
    color: #F7F1E7;
    text-align: center;
}

.kde-footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kde-footer-social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(247, 241, 231, 0.35);
    color: #F7F1E7 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.kde-footer-social-link:hover {
    background-color: var(--c-accent);
    border-color: var(--c-accent);
}

.kde-footer .ref-footer {
    background-color: var(--c-espresso) !important;
    padding-top: 36px;
}

/* =========================================================================
   RESPONSIVE UYARLAMALAR
   ========================================================================= */
@media (max-width: 1140px) {
    .kde-nav {
        gap: 12px;
    }
    .kde-nav-link {
        font-size: 13px;
    }
    .kde-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .kde-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .kde-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .kde-hero-scrim {
        background: linear-gradient(180deg, rgba(247, 241, 231, 0.94) 0%, rgba(247, 241, 231, 0.88) 55%, rgba(247, 241, 231, 0.45) 100%);
    }
    .kde-hero-content {
        padding: 40px 28px;
    }
}

@media (max-width: 640px) {
    .kde-cat-grid {
        grid-template-columns: 1fr;
    }
    .kde-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .kde-trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .kde-brand-title {
        font-size: 16px;
    }
    .kde-brand-sub {
        display: none;
    }
    .kde-footer-socials {
        margin: 0 auto;
    }
}
