/* ═══════════════════════════════════════════
   KAFFE TEDARİK — Frontend Design System v2
   Inspired by BioFresh Organics UX Patterns
   ═══════════════════════════════════════════ */

:root {
    --primary: #1b3a2d;        /* Deep forest green */
    --primary-light: #2d5a42;
    --accent: #c4553a;         /* Warm terracotta/red */
    --accent-hover: #a8432d;
    --gold: #b8860b;           /* Dark goldenrod */
    --success: #27ae60;
    --warning: #f39c12;
    --bg: #faf8f5;             /* Warm off-white */
    --bg-light: #ffffff;
    --text: #2c3e2d;           /* Dark green-black */
    --text-muted: #7a8b7d;
    --border: #e8e4df;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1280px;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ═══ UNIFIED TOP BAR ═══ */
.top-bar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    padding: 7px 0;
    color: var(--text-muted);
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left, .top-bar-right { display: flex; gap: 16px; align-items: center; }
.top-bar a { color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.top-bar a:hover { color: var(--primary); }
.top-bar-divider { color: var(--border); font-size: 14px; margin: 0 2px; }
.shipping-info {
    display: flex; align-items: center; gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.3px;
}
.shipping-info i { color: var(--primary); font-size: 14px; }


/* ═══ HEADER ═══ */
.site-header {
    background: var(--bg-light);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px;
}
.logo-text {
    font-family: var(--font-serif);
    font-size: 22px; font-weight: 700; color: var(--primary);
    letter-spacing: 0.5px;
}
.logo-text span { color: var(--accent); font-weight: 700; }

/* Search */
.header-search { flex: 1; max-width: 480px; position: relative; margin: 0 32px; }
.header-search form {
    display: flex; background: var(--bg);
    border: 1px solid var(--border); border-radius: 100px;
    overflow: hidden; transition: var(--transition);
}
.header-search form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(27,58,45,0.1); }
.header-search input {
    flex: 1; padding: 10px 20px; border: none; background: none;
    font-size: 13px; outline: none; font-family: inherit;
}
.header-search button {
    padding: 10px 18px; background: none; border: none;
    color: var(--primary); cursor: pointer; font-size: 18px;
}
.header-search button:hover { color: var(--accent); }

.search-dropdown {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--bg-light); border-radius: 12px;
    box-shadow: var(--shadow-lg); display: none; max-height: 400px;
    overflow-y: auto; z-index: 110; border: 1px solid var(--border);
}
.search-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; border-bottom: 1px solid var(--border);
}
.search-item:hover { background: var(--bg); }
.search-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.search-item-name { font-weight: 500; font-size: 14px; }
.search-item-price { color: var(--accent); font-weight: 600; font-size: 13px; }
.search-empty { padding: 20px; text-align: center; color: var(--text-muted); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-action-btn {
    position: relative; width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: transparent;
    color: var(--text); font-size: 22px;
    transition: var(--transition);
}
.header-action-btn:hover { 
    color: var(--accent); 
    background: rgba(196,85,58,0.06); 
}

/* Giriş ve Üye Ol butonları için özel stiller */
.header-login-btn {
    background: var(--primary) !important;
    color: #fff !important;
}
.header-login-btn:hover {
    background: var(--primary-light) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.header-register-btn {
    background: var(--accent) !important;
    color: #fff !important;
}
.header-register-btn:hover {
    background: var(--accent-hover) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.action-badge {
    position: absolute; top: 0; right: 0;
    background: var(--accent); color: #fff;
    width: 18px; height: 18px; border-radius: 50%;
    font-size: 10px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.mobile-menu-btn {
    display: none; width: 42px; height: 42px;
    border: none; background: none; border-radius: 50%;
    font-size: 24px; cursor: pointer; color: var(--primary);
}

/* ═══ MAIN NAV ═══ */
.main-nav {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 78px; z-index: 99;
    overflow: hidden;
}
.nav-list {
    list-style: none; display: flex; align-items: center;
    justify-content: center; flex-wrap: nowrap;
}
.nav-item > a {
    display: flex; align-items: center; gap: 5px;
    padding: 14px 14px; color: var(--text);
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.3px;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-item > a:hover { color: var(--accent); }
.nav-item.has-mega > a {
    background: var(--primary); color: #fff;
    border-radius: 6px; margin: 6px 0;
    padding: 8px 14px; font-size: 11px;
}
.nav-item.has-mega > a:hover { background: var(--primary-light); }

/* Mega Menu */
.mega-menu {
    position: absolute; left: 0; right: 0;
    background: var(--bg-light);
    box-shadow: var(--shadow-lg);
    padding: 30px 40px;
    display: none;
    z-index: 110;
    border-top: 2px solid var(--primary);
}
.nav-item.has-mega:hover .mega-menu { display: block; }
.mega-menu-inner {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px; max-width: var(--container); margin: 0 auto;
}
.mega-title { display: block; font-family: var(--font-serif); font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--primary); }
.mega-link { display: block; font-size: 13px; color: var(--text-muted); padding: 4px 0; }
.mega-link:hover { color: var(--accent); padding-left: 4px; }

/* ═══ HERO SLIDER ═══ */
.hero-slider {
    position: relative; overflow: hidden;
}
.hero-slide {
    display: none; position: relative;
    min-height: 580px;
    background-size: cover; background-position: center;
    animation: fadeIn 0.8s ease;
}

.hero-slide.active { display: block; }
.hero-slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(27,58,45,0.75) 0%, rgba(27,58,45,0.3) 50%, transparent 100%);
}
.hero-slide-content {
    position: relative; z-index: 2;
    max-width: var(--container); margin: 0 auto; padding: 80px 40px;
    color: #fff;
}
.hero-slide-content .hero-badge {
    display: inline-block; background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 6px 18px; border-radius: 100px;
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}
.hero-slide-content h1 {
    font-family: var(--font-serif);
    font-size: 52px; font-weight: 700; line-height: 1.15;
    margin-bottom: 16px; max-width: 560px;
}
.hero-slide-content p {
    font-size: 16px; color: rgba(255,255,255,0.75);
    max-width: 440px; margin-bottom: 28px; line-height: 1.7;
}

.hero-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 6px;
    font-weight: 600; font-size: 14px;
    transition: var(--transition); letter-spacing: 0.3px;
}
.hero-btn-primary { background: var(--accent); color: #fff; }
.hero-btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(196,85,58,0.3); }
.hero-btn-outline { border: 2px solid rgba(255,255,255,0.4); color: #fff; margin-left: 12px; }
.hero-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.hero-controls {
    position: absolute; bottom: 24px; left: 50%;
    transform: translateX(-50%); display: flex; gap: 6px; z-index: 5;
}
.hero-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.35); cursor: pointer;
    transition: var(--transition); border: none;
}
.hero-dot.active { background: #fff; width: 28px; border-radius: 5px; }

.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
    border: none; color: #fff; font-size: 20px; cursor: pointer;
    z-index: 5; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.hero-nav:hover { background: rgba(255,255,255,0.4); }
.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }

/* ═══ SECTION UTILS ═══ */
.section { padding: 60px 0; }
.section-header {
    text-align: center; margin-bottom: 36px;
}
.section-title {
    font-family: var(--font-serif);
    font-size: 28px; font-weight: 700;
    color: var(--primary); margin-bottom: 8px;
}
.section-subtitle {
    font-size: 14px; color: var(--text-muted);
    max-width: 500px; margin: 0 auto;
}
.section-link {
    color: var(--accent); font-weight: 600; font-size: 14px;
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 12px;
}
.section-link:hover { gap: 8px; }

/* ═══ CATEGORY CARDS (3-column grid with full images) ═══ */
.category-showcase {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.category-card-lg {
    position: relative; border-radius: var(--radius);
    overflow: hidden; aspect-ratio: 4/3;
    cursor: pointer;
}
.category-card-lg img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}
.category-card-lg:hover img { transform: scale(1.06); }
.category-card-lg .cat-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(27,58,45,0.7) 0%, transparent 60%);
    display: flex; flex-direction: column;
    justify-content: flex-end; padding: 24px;
}
.category-card-lg .cat-name {
    font-family: var(--font-serif);
    font-size: 22px; font-weight: 700; color: #fff;
    margin-bottom: 4px;
}
.category-card-lg .cat-count { font-size: 13px; color: rgba(255,255,255,0.7); }
.category-card-lg .cat-btn {
    display: inline-flex; align-items: center; gap: 4px;
    margin-top: 10px; padding: 8px 18px; border-radius: 4px;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
    color: #fff; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.3);
    opacity: 0; transform: translateY(8px);
    transition: var(--transition);
}
.category-card-lg:hover .cat-btn { opacity: 1; transform: translateY(0); }

/* Small category grid (icon-based) */
.category-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.category-card {
    background: var(--bg-light); border-radius: var(--radius);
    padding: 20px 14px; text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.category-card-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(27,58,45,0.08), rgba(27,58,45,0.03));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px; font-size: 22px; color: var(--primary);
}
.category-card h4 { font-size: 13px; font-weight: 600; }
.category-card p { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ═══ PRODUCT CAROUSEL ═══ */
.product-carousel-wrapper { position: relative; }
.product-carousel {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-behavior: smooth;
    -ms-overflow-style: none; scrollbar-width: none;
    padding: 4px 0;
}
.product-carousel::-webkit-scrollbar { display: none; }
.product-carousel .product-card { min-width: 260px; flex-shrink: 0; }
.carousel-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-light); border: 1px solid var(--border);
    box-shadow: var(--shadow); color: var(--text);
    font-size: 18px; cursor: pointer; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.carousel-nav:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.carousel-nav.prev { left: -16px; }
.carousel-nav.next { right: -16px; }

/* ═══ PRODUCT CARD ═══ */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.product-card {
    background: var(--bg-light); border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden; transition: var(--transition);
    position: relative;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card-img {
    position: relative; 
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg);
    display: block;
}

.product-card-img img { width: 100%; height: 100% !important; object-fit: cover !important; transition: transform 0.5s ease; display: block; }

.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-badges {
    position: absolute; top: 10px; left: 10px;
    display: flex; flex-direction: column; gap: 4px;
}
.product-badge {
    display: inline-block; padding: 4px 10px; border-radius: 4px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.badge-new { background: var(--success); color: #fff; }
.badge-sale { background: var(--accent); color: #fff; }
.badge-out { background: #6b7280; color: #fff; }

/* Hover add-to-cart overlay (like BioFresh) */
.product-card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 10px; opacity: 0; transform: translateY(10px);
    transition: var(--transition); z-index: 3;
}
.product-card:hover .product-card-overlay { opacity: 1; transform: translateY(0); }
.overlay-add-btn {
    width: 100%; padding: 10px; border: none; border-radius: 6px;
    background: var(--primary); color: #fff;
    font-weight: 600; font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: var(--transition);
}
.overlay-add-btn:hover { background: var(--accent); }

.product-card-actions {
    position: absolute; top: 10px; right: 10px;
    display: flex; flex-direction: column; gap: 6px;
    opacity: 0; transform: translateX(10px);
    transition: var(--transition);
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateX(0); }
.product-card-action-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--bg-light); color: var(--text);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow); border: none; cursor: pointer;
    font-size: 15px; transition: var(--transition);
}
.product-card-action-btn:hover { background: var(--accent); color: #fff; }

.product-card-body { padding: 14px; }
.product-card-category { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.product-card-name {
    font-size: 14px; font-weight: 600; margin: 4px 0 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    line-clamp: 2; overflow: hidden;
    color: var(--text);
}
.product-card-name:hover { color: var(--accent); }
.product-card-price {
    display: flex; align-items: center; gap: 8px;
    margin-top: 8px;
}
.product-card-price .current { 
    font-size: 18px !important; 
    font-weight: 700 !important; 
    color: var(--accent) !important; 
}
.product-card-price .old { 
    font-size: 14px; 
    color: var(--text-muted); 
    text-decoration: line-through; 
}

/* ═══ PROMO BANNER (full-width) ═══ */
.promo-banner {
    position: relative; border-radius: var(--radius); overflow: hidden;
    min-height: 260px; background-size: cover; background-position: center;
    display: flex; align-items: center;
}
.promo-banner::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(27,58,45,0.8) 0%, rgba(27,58,45,0.2) 100%);
}
.promo-banner-content {
    position: relative; z-index: 2;
    padding: 40px 48px; color: #fff;
}
.promo-banner-content h2 {
    font-family: var(--font-serif);
    font-size: 32px; font-weight: 700; margin-bottom: 8px;
}
.promo-banner-content p { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 20px; max-width: 400px; }

/* ═══ FEATURES BAR ═══ */
.features-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; padding: 40px 0;
}
.feature-item {
    display: flex; align-items: center; gap: 14px;
    padding: 20px; background: var(--bg-light);
    border-radius: var(--radius); border: 1px solid var(--border);
}
.feature-icon {
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(27,58,45,0.06);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--primary); flex-shrink: 0;
}
.feature-item h5 { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.feature-item p { font-size: 11px; color: var(--text-muted); }

/* ═══ BREADCRUMB ═══ */
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    padding: 16px 0; font-size: 13px; color: var(--text-muted);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: 10px; }

/* ═══ CATEGORY PAGE ═══ */
.category-layout {
    display: grid; grid-template-columns: 260px 1fr;
    gap: 24px; padding: 20px 0 60px;
}
.filter-sidebar { position: sticky; top: 140px; align-self: start; }
.filter-card {
    background: var(--bg-light); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 20px;
    margin-bottom: 16px;
}
.filter-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.filter-option input { accent-color: var(--primary); }
.filter-option label { font-size: 13px; cursor: pointer; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range input {
    width: 100%; padding: 8px; font-size: 13px;
    border: 1px solid var(--border); border-radius: 6px;
    font-family: inherit;
}
.filter-btn {
    width: 100%; padding: 10px; background: var(--primary);
    color: #fff; border: none; border-radius: 6px;
    font-weight: 600; cursor: pointer; margin-top: 12px;
    transition: var(--transition);
}
.filter-btn:hover { background: var(--primary-light); }

.sort-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; padding: 12px 16px;
    background: var(--bg-light); border-radius: var(--radius);
    border: 1px solid var(--border);
}
.sort-bar span { font-size: 13px; color: var(--text-muted); }
.sort-bar select {
    padding: 6px 12px; border: 1px solid var(--border);
    border-radius: 6px; font-size: 13px; font-family: inherit;
}

/* ═══ PRODUCT DETAIL ═══ */
.product-detail { padding: 20px 0 60px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.product-gallery { position: sticky; top: 140px; align-self: start; }
.gallery-main {
    position: relative;
    border-radius: var(--radius); overflow: hidden;
    background: var(--bg); aspect-ratio: 1;
    margin-bottom: 12px; cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-main:hover img { transform: scale(1.03); }
.gallery-zoom-btn {
    position: absolute; bottom: 12px; right: 12px;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    cursor: zoom-in;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: var(--transition);
    color: var(--text);
    font-size: 18px;
}
.gallery-zoom-btn:hover { background: #fff; transform: scale(1.1); }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb {
    width: 72px; height: 72px; border-radius: 6px;
    overflow: hidden; border: 2px solid var(--border);
    cursor: pointer; opacity: 0.6; transition: var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ═══ LIGHTBOX ═══ */
#lightboxModal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.94);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    touch-action: pan-y;
}
#lbImgWrap {
    display: flex; align-items: center; justify-content: center;
    max-width: 90vw; max-height: 90vh;
    cursor: default;
}
#lightboxImg {
    max-width: 88vw; max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 60px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.25s ease;
    user-select: none; -webkit-user-select: none;
    display: block;
}
/* Kapat */
#lbClose {
    position: absolute; top: 16px; right: 16px;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none; color: #fff;
    font-size: 26px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; transition: background 0.2s;
}
#lbClose:hover { background: rgba(255,255,255,0.3); }
/* Sayıcı */
#lbCounter {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.5); color: #fff;
    padding: 4px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 600;
    display: none; z-index: 10;
}
/* Ok Butonları */
#lbPrev, #lbNext {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none; color: #fff;
    font-size: 30px; cursor: pointer;
    display: none; align-items: center; justify-content: center;
    z-index: 10; transition: background 0.2s;
}
#lbPrev { left: 16px; }
#lbNext { right: 16px; }
#lbPrev:hover, #lbNext:hover { background: rgba(255,255,255,0.35); }
/* Mobil ipucu */
#lbHint {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.5); font-size: 12px;
    display: none;
}
@media (max-width: 768px) {
    #lbHint { display: block; }
    #lbPrev { left: 8px; width: 44px; height: 44px; font-size: 26px; }
    #lbNext { right: 8px; width: 44px; height: 44px; font-size: 26px; }
    #lbClose { top: 12px; right: 12px; width: 44px; height: 44px; }
    #lightboxImg { max-width: 96vw; max-height: 80vh; border-radius: 6px; }
}


.product-info h1 {
    font-family: var(--font-serif);
    font-size: 28px; font-weight: 700; margin-bottom: 8px;
}
.product-info .sku { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.product-price-area {
    display: flex; align-items: baseline; gap: 12px;
    margin-bottom: 20px; padding: 16px;
    background: var(--bg); border-radius: var(--radius);
}
.product-price-area .price { font-size: 32px; font-weight: 800; color: var(--accent); }
.product-price-area .old-price { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.product-stock {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 100px;
    font-size: 13px; font-weight: 600;
}
.stock-in { background: rgba(39,174,96,0.1); color: var(--success); }
.stock-out { background: rgba(239,68,68,0.1); color: #ef4444; }

.btn-notify-stock {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; margin-top: 12px;
    background: var(--accent); color: #fff;
    border: none; border-radius: 6px;
    font-size: 14px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
}
.btn-notify-stock:hover { background: var(--primary); transform: translateY(-1px); }
.btn-notify-stock i { font-size: 18px; }

.notify-stock-info {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; margin-top: 12px;
    background: rgba(139,92,246,0.1); color: #8b5cf6;
    border-radius: 6px; font-size: 13px; font-weight: 500;
}
.notify-stock-info i { font-size: 18px; }
.notify-stock-info a { color: #8b5cf6; text-decoration: underline; }

.variant-section { margin: 20px 0; }
.variant-section h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; margin-bottom: 8px; color: var(--primary); }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-btn {
    padding: 8px 18px; border: 2px solid var(--border);
    border-radius: 6px; background: var(--bg-light);
    font-size: 13px; font-weight: 500; cursor: pointer;
    transition: var(--transition);
}
.variant-btn.active, .variant-btn:hover { border-color: var(--primary); color: var(--primary); }

.quantity-selector {
    display: flex; align-items: center; gap: 0;
    border: 1px solid var(--border); border-radius: 6px;
    overflow: hidden; width: fit-content;
}
.quantity-selector button {
    width: 40px; height: 40px; border: none; background: var(--bg);
    font-size: 18px; cursor: pointer; transition: var(--transition);
}
.quantity-selector button:hover { background: var(--border); }
.quantity-selector input {
    width: 50px; text-align: center; border: none;
    font-size: 15px; font-weight: 600; font-family: inherit;
}

.add-to-cart-row { display: flex; gap: 12px; margin: 20px 0; }
.btn-add-cart {
    flex: 1; padding: 14px 32px; background: var(--primary);
    color: #fff; border: none; border-radius: 6px;
    font-weight: 700; font-size: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: var(--transition);
}
.btn-add-cart:hover { background: var(--accent); transform: translateY(-1px); }
.btn-add-cart:disabled {
    background: var(--border); color: var(--text-muted);
    cursor: not-allowed; transform: none;
}
.btn-wishlist {
    width: 48px; height: 48px; border: 1px solid var(--border);
    border-radius: 6px; background: var(--bg-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; cursor: pointer; transition: var(--transition);
}
.btn-wishlist:hover { border-color: var(--accent); color: var(--accent); }

.product-meta { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.product-meta-item {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0; font-size: 13px; color: var(--text-muted);
}
.product-meta-item i { color: var(--primary); font-size: 16px; }

/* Tabs */
.product-tabs { margin-top: 40px; }
.tab-header { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
    padding: 12px 24px; font-weight: 600; font-size: 14px;
    color: var(--text-muted); background: none; border: none;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    cursor: pointer; transition: var(--transition);
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ═══ ALERTS ═══ */
.alert {
    padding: 12px 16px; border-radius: 6px;
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 500;
}
.alert-success { background: rgba(39,174,96,0.1); color: var(--success); }
.alert-error { background: rgba(239,68,68,0.1); color: #ef4444; }

/* ═══ FOOTER ═══ */
.site-footer {
    background: #1b3a2d; /* Koyu yeşil arka plan */
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 60px 0 0;
    color: #fff; /* Beyaz yazı rengi */
    margin-top: 60px;
}
.site-footer .logo-text {
    font-size: 18px; color: #fff !important; font-weight: 700;
}
.site-footer .logo-text span { 
    color: var(--accent) !important; 
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .logo-icon { 
    width: 36px; height: 36px; font-size: 18px; 
    background: var(--accent); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.footer-logo .logo-text { font-size: 18px; color: #fff !important; font-weight: 700; }
.footer-logo .logo-text span { color: var(--accent) !important; }
.footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.footer-social { 
    display: flex; 
    gap: 16px; 
    margin-top: 20px; 
}
.footer-social a {
    color: rgba(255,255,255,0.6);
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
}
.footer-social a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.footer-social a:hover { 
    color: #fff;
    transform: translateY(-2px);
}

.footer-col h4 {
    color: #fff; font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.footer-col a { 
    display: block; font-size: 13px; 
    color: rgba(255,255,255,0.7); 
    padding: 4px 0; 
    text-decoration: none;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); padding-left: 4px; }
.footer-col p { color: rgba(255,255,255,0.7); }
.footer-col p strong { color: #fff; }

/* Contact Info Styles */
.contact-info p {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-info .company-name {
    font-weight: 700;
    color: #fff !important;
    font-size: 14px;
    margin-bottom: 12px;
}
.contact-info .address {
    color: rgba(255,255,255,0.7) !important;
    margin-bottom: 12px;
}
.contact-info .phone,
.contact-info .email {
    color: rgba(255,255,255,0.7) !important;
}
.contact-info .phone i,
.contact-info .email i {
    font-size: 14px;
    color: var(--accent);
    width: 16px;
}
.contact-info .phone a,
.contact-info .email a {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none;
    padding: 0 !important;
    transition: var(--transition);
}
.contact-info .phone a:hover,
.contact-info .email a:hover {
    color: var(--accent) !important;
    padding-left: 0 !important;
}

.footer-bottom {
    padding: 20px 0; text-align: center; font-size: 12px; 
    color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: var(--accent); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ═══ WHATSAPP FLOATING — sadece yuvarlak ikon ═══ */
.whatsapp-float {
    position: fixed; bottom: 24px; left: 24px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999; transition: var(--transition);
}
.whatsapp-float:hover {
    background: #1ebe5d;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}
.whatsapp-float i {
    font-size: 30px;
    line-height: 1;
}

/* ═══ MOBILE MENU ═══ */
.mobile-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 200; display: none;
}
.mobile-overlay.open { display: block; }
.mobile-menu {
    position: fixed; top: 0; right: -320px; width: 320px;
    height: 100%; background: var(--bg-light);
    z-index: 210; transition: var(--transition);
    overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.mobile-menu-header button {
    width: 36px; height: 36px; border: none; background: var(--bg);
    border-radius: 50%; font-size: 20px; cursor: pointer;
}
.mobile-menu-body a {
    display: block; padding: 12px 20px; font-weight: 500;
    border-bottom: 1px solid var(--border); font-size: 14px;
}
.mobile-menu-body a:hover { background: var(--bg); color: var(--accent); }

/* ═══ PAGINATION ═══ */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.pagination a, .pagination span {
    padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 500;
    border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center;
}
.pagination a:hover { background: var(--bg); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination svg { width: 16px; height: 16px; max-width: 16px; max-height: 16px; }
/* Laravel Tailwind pagination wrapper fix */
nav[role="navigation"] { display: flex; justify-content: center; }
nav[role="navigation"] .flex { display: none; }
nav[role="navigation"] .hidden { display: flex !important; gap: 4px; flex-wrap: wrap; justify-content: center; align-items: center; }
nav[role="navigation"] .hidden span, nav[role="navigation"] .hidden a {
    padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 500;
    border: 1px solid var(--border); display: inline-flex; align-items: center;
}
nav[role="navigation"] .hidden a:hover { background: var(--bg); text-decoration: none; }
nav[role="navigation"] .hidden span[aria-current="page"] span { background: var(--primary); color: #fff; border-color: var(--primary); padding: 8px 14px; border-radius: 6px; }
nav[role="navigation"] .hidden svg { width: 16px; height: 16px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .top-bar { display: none; }
    .mobile-menu-btn { display: flex; }
    .main-nav { display: none; }
    .header-search { display: none; }

    .hero-slide { min-height: 380px; }
    .hero-slide-content h1 { font-size: 28px; }
    .hero-slide-content { padding: 40px 20px; }
    .hero-nav { display: none; }

    .category-showcase { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .features-bar { grid-template-columns: repeat(2, 1fr); }

    .category-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: static; display: none; }
    .filter-sidebar.open { display: block; }

    .product-detail-grid { grid-template-columns: 1fr; gap: 20px; }
    .product-gallery { position: static; }
    .product-info h1 { font-size: 22px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-col h4 { font-size: 13px; }
    .footer-col a { font-size: 12px; }
    .footer-desc { font-size: 12px; }
    .section { padding: 40px 0; }
}

@media (max-width: 480px) {
    .category-showcase { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr 1fr; }
    .features-bar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-social { justify-content: center; }
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ═══ CART PAGE ═══ */
.cart-layout {
    display: grid; grid-template-columns: 1fr 360px;
    gap: 24px; align-items: start;
}
.cart-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px; background: var(--bg-light);
    border-radius: var(--radius); border: 1px solid var(--border);
    margin-bottom: 12px; transition: var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow); }
.cart-item-img {
    width: 80px; height: 80px; border-radius: 8px;
    overflow: hidden; flex-shrink: 0; background: var(--bg);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.cart-item-name:hover { color: var(--accent); }
.cart-item-category { font-size: 11px; color: var(--text-muted); }
.cart-item-qty { display: flex; align-items: center; gap: 0; }
.qty-btn {
    width: 32px; height: 32px; border: 1px solid var(--border);
    background: var(--bg); font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.qty-btn:first-child { border-radius: 6px 0 0 6px; }
.qty-btn:last-child { border-radius: 0 6px 6px 0; }
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-input {
    width: 42px; height: 32px; text-align: center;
    border: 1px solid var(--border); border-left: 0; border-right: 0;
    font-size: 13px; font-weight: 600; font-family: inherit;
}
.cart-item-price { text-align: right; min-width: 100px; }
.cart-price { font-weight: 700; font-size: 16px; color: var(--accent); display: block; }
.cart-unit-price { font-size: 11px; color: var(--text-muted); }
.cart-item-remove {
    width: 36px; height: 36px; border: none; background: transparent;
    color: var(--text-muted); font-size: 18px; cursor: pointer;
    border-radius: 50%; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.cart-item-remove:hover { background: rgba(239,68,68,0.1); color: #ef4444; }

/* Cart Summary */
.cart-summary {
    background: var(--bg-light); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 24px;
}
.summary-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; font-size: 14px; color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.summary-total {
    font-size: 18px; font-weight: 700; color: var(--text);
    border-bottom: none; margin-top: 8px; padding-top: 16px;
    border-top: 2px solid var(--primary);
}
.checkout-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px; margin-top: 20px;
    background: var(--primary); color: #fff; border: none;
    border-radius: 6px; font-weight: 700; font-size: 15px;
    cursor: pointer; transition: var(--transition);
}
.checkout-btn:hover { background: var(--accent); transform: translateY(-1px); }

/* ═══ CHECKOUT PAGE ═══ */
.checkout-layout {
    display: grid; grid-template-columns: 1fr 380px;
    gap: 24px; align-items: start;
}
.checkout-section {
    background: var(--bg-light); border-radius: var(--radius);
    border: 1px solid var(--border); padding: 24px;
    margin-bottom: 16px;
}
.checkout-section h3 {
    font-family: var(--font-serif); font-size: 18px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
    color: var(--primary);
}
.form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
    font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text);
}
.form-group input, .form-group textarea, .form-group select {
    padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px;
    font-size: 14px; font-family: inherit; transition: var(--transition);
    background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary); outline: none;
    box-shadow: 0 0 0 2px rgba(27,58,45,0.1);
}
.form-error { font-size: 12px; color: #ef4444; margin-top: 4px; }

.checkbox-label {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; font-size: 14px;
}
.checkbox-label input { accent-color: var(--primary); width: 16px; height: 16px; }

/* Payment Options */
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
    display: block; border: 2px solid var(--border); border-radius: var(--radius);
    padding: 16px; cursor: pointer; transition: var(--transition);
}
.payment-option.selected { border-color: var(--primary); background: rgba(27,58,45,0.02); }
.payment-option:hover { border-color: var(--primary-light); }
.payment-option input[type="radio"] { display: none; }
.payment-option-content {
    display: flex; align-items: center; gap: 14px;
}
.payment-option-content i { font-size: 28px; color: var(--primary); }
.payment-option-content strong { display: block; font-size: 14px; margin-bottom: 2px; }
.payment-option-content p { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ═══ TOAST NOTIFICATION ═══ */
.toast {
    position: fixed; bottom: 24px; right: 24px;
    background: var(--primary); color: #fff;
    padding: 14px 24px; border-radius: 8px;
    font-size: 14px; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    z-index: 9999; transform: translateY(100px);
    opacity: 0; transition: all 0.4s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast i { font-size: 20px; }

/* Responsive additions */
@media (max-width: 768px) {
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .cart-item { flex-wrap: wrap; }
    .cart-item-price { min-width: auto; }
    .form-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════
   CAMPAIGN STYLES
   ═══════════════════════════════════════════════════════════ */

.product-campaigns {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border-radius: 12px;
    border: 2px solid var(--accent);
}

.campaign-badge-box {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.campaign-badge-box:last-child {
    margin-bottom: 0;
}

.campaign-badge-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.campaign-badge-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
}

.campaign-badge-type {
    background: #f3f4f6;
    color: #374151;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.campaign-badge-discount {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 15px;
}

.campaign-countdown-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    padding: 6px 10px;
    background: #f9fafb;
    border-radius: 6px;
}

.campaign-countdown-mini i {
    color: var(--accent);
}

.countdown-text {
    font-weight: 600;
    font-family: monospace;
}

/* ═══ WHATSAPP FLOAT BUTTON (mobile override) ═══ */
.whatsapp-float {
    position: fixed;
    bottom: 88px;
    left: 24px;
    z-index: 10000;

    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 13px 20px 13px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.whatsapp-float i {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}
.whatsapp-float:hover {
    background: #1ebe5d;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
    color: #fff;
}
.whatsapp-float .whatsapp-text {
    font-size: 13px;
    font-weight: 600;
}
@media (max-width: 640px) {
    .whatsapp-float .whatsapp-text { display: none; }
    .whatsapp-float { padding: 14px; border-radius: 50%; }
}

