/* ============================================================
   ALAR OFİS MOBİLYALARI — Ana Stil Dosyası
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #1c1c1e;
    --primary-light: #2c2c2e;
    --gold: #c9a84c;
    --gold-light: #e8c96a;
    --cream: #faf7f2;
    --text: #1a0a0a;
    --muted: #7a6a5a;
}

* { font-family: 'Inter', sans-serif; box-sizing: border-box; }
body { background: var(--cream); min-height: 100vh; }

/* ─── DUYURU BANDI ─── */
.announcement-bar {
    background: var(--gold);
    color: var(--primary);
    text-align: center;
    padding: 9px 40px;
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 1001;
    overflow: hidden;
}
.announcement-bar .announcement-text {
    display: inline-block;
    animation: marquee 22s linear infinite;
    white-space: nowrap;
}
.announcement-bar a { color: var(--primary); text-decoration: underline; font-weight: 800; }
.announcement-close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    font-size: 1.1em; color: var(--primary); opacity: 0.6; font-weight: 900;
    line-height: 1; padding: 2px 6px;
}
.announcement-close:hover { opacity: 1; }
@keyframes marquee {
    0%   { transform: translateX(60%); }
    100% { transform: translateX(-100%); }
}

/* ─── HEADER ─── */
.header {
    background: var(--primary);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 2px solid var(--gold);
}
.header-inner { padding: 0; }
.header-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; gap: 16px;
}
.company-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.7em; font-weight: 900; color: var(--gold);
    letter-spacing: 1px; line-height: 1.1;
}
.company-tagline {
    font-size: 0.7em; color: rgba(201,168,76,0.7);
    letter-spacing: 3px; text-transform: uppercase; font-weight: 500;
}
.header-center { text-align: center; flex: 1; }
.header-center h2 {
    font-family: 'Playfair Display', serif;
    color: white; font-size: 1.3em; font-weight: 700;
    margin: 0; letter-spacing: 0.5px;
}
.header-center p {
    color: rgba(201,168,76,0.8); font-size: 0.72em;
    letter-spacing: 2px; text-transform: uppercase; margin: 2px 0 0;
}
.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* ─── NAV ─── */
.main-nav { background: var(--primary-light); border-top: 1px solid rgba(201,168,76,0.2); }
.main-nav .nav-link {
    color: rgba(255,255,255,0.8) !important;
    padding: 14px 20px; font-weight: 600; font-size: 0.88em;
    letter-spacing: 1.5px; text-transform: uppercase;
    transition: all 0.2s; border-bottom: 2px solid transparent;
}
.main-nav .nav-link:hover {
    color: var(--gold) !important;
    border-bottom: 2px solid var(--gold);
    background: rgba(201,168,76,0.08);
}
.mobile-menu-btn {
    display: none; background: var(--gold); color: var(--primary);
    border: none; padding: 10px 15px; border-radius: 3px;
    font-size: 1em; font-weight: 800;
}
@media (max-width: 991px) {
    .main-nav .nav { flex-direction: column; display: none; }
    .main-nav .nav.show { display: flex; }
    .mobile-menu-btn { display: block; }
    .main-nav .nav-link { border-bottom: 1px solid rgba(201,168,76,0.15); padding: 12px 16px; }
    .header-top { flex-wrap: wrap; }
    .header-center { display: none; }
}

/* ─── DROPDOWN ─── */
.categories-dropdown { position: relative; }
.categories-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--primary); min-width: 260px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    z-index: 1001; padding: 6px 0;
    border-top: 2px solid var(--gold);
    border-radius: 0 0 6px 6px;
}
.categories-menu.show { display: block; }
.categories-menu .nav-link {
    color: rgba(255,255,255,0.75) !important;
    padding: 11px 20px; font-size: 0.85em;
    border-bottom: 1px solid rgba(201,168,76,0.1) !important;
    letter-spacing: 0.5px;
}
.categories-menu .nav-link:hover { background: rgba(201,168,76,0.15); color: var(--gold) !important; }
.categories-menu .nav-link:last-child { border-bottom: none !important; }

/* ─── BUTONLAR ─── */
.whatsapp-btn {
    background: #25D366; color: white; padding: 10px 18px; border-radius: 3px;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 0.9em; transition: all 0.2s; letter-spacing: 0.3px;
}
.whatsapp-btn:hover { background: #1ebe5d; color: white; transform: translateY(-1px); }
.order-btn {
    background: var(--gold); color: var(--primary); padding: 10px 18px; border-radius: 3px;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    font-weight: 800; font-size: 0.9em; transition: all 0.2s;
    border: none; cursor: pointer; letter-spacing: 0.3px;
}
.order-btn:hover { background: var(--gold-light); color: var(--primary); transform: translateY(-1px); }

/* ─── ADMIN ─── */
.admin-panel {
    display: none; background: var(--primary); padding: 10px 0;
    position: fixed; top: 0; width: 100%; z-index: 2000;
    border-bottom: 2px solid var(--gold);
}
body.admin-active { padding-top: 50px; }
.admin-btn {
    background: var(--gold); color: var(--primary); border: none;
    padding: 8px 16px; border-radius: 3px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px;
    font-weight: 800; transition: all 0.2s; text-decoration: none; font-size: 0.85em;
}
.admin-btn:hover { background: var(--gold-light); }
.secret-admin-btn {
    position: fixed; bottom: 90px; right: 20px;
    width: 44px; height: 44px; background: rgba(43,10,10,0.6);
    color: rgba(201,168,76,0.4); border: 1px solid rgba(201,168,76,0.2);
    border-radius: 50%; cursor: pointer; z-index: 999;
    transition: all 0.3s; font-size: 1em;
}
.secret-admin-btn:hover { opacity: 1; color: var(--gold); background: var(--primary); border-color: var(--gold); }

/* ─── MODALLER ─── */
.login-modal, .admin-modal, .order-modal, .product-gallery-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 3000;
}
.login-modal { background: rgba(10,0,0,0.88); z-index: 4000; }
.admin-modal { background: rgba(10,0,0,0.92); z-index: 3000; }
.order-modal { background: rgba(10,0,0,0.88); z-index: 3000; }
.product-gallery-modal { background: rgba(10,0,0,0.94); z-index: 4000; }
.login-content {
    background: white; margin: 80px auto; padding: 40px;
    border-radius: 4px; max-width: 420px; text-align: center;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6); border-top: 4px solid var(--gold);
}
.admin-content {
    background: white; margin: 20px auto; padding: 30px;
    border-radius: 4px; max-width: 960px; max-height: 88vh;
    overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.order-content {
    background: white; margin: 40px auto; padding: 30px;
    border-radius: 4px; max-width: 820px; max-height: 82vh; overflow-y: auto;
}
.gallery-content {
    background: white; margin: 20px auto; padding: 25px;
    border-radius: 4px; max-width: 920px; max-height: 92vh; overflow-y: auto;
}
.gallery-main-image {
    width: 100%; max-height: 500px; object-fit: contain;
    margin-bottom: 15px; border-radius: 4px; transition: transform 0.2s; cursor: zoom-in;
}
.gallery-main-image:hover { transform: scale(1.01); }

/* ─── HERO ─── */
.hero-section {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 50%, #1a0505 100%);
    color: white; padding: 100px 0 80px; text-align: center;
    position: relative; overflow: hidden;
    min-height: 460px; display: flex; align-items: center;
    border-bottom: 3px solid var(--gold);
}
.hero-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 65%);
}
.hero-section::after {
    content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 80px;
    background: linear-gradient(to bottom, transparent, var(--cream));
}
.hero-section > * { position: relative; z-index: 1; }
.hero-badge {
    display: inline-block; background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.4); color: var(--gold);
    padding: 6px 20px; border-radius: 30px; font-size: 0.8em;
    font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    margin-bottom: 20px; animation: fadeInUp 0.6s ease-out;
}
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.8em; font-weight: 900; margin-bottom: 20px;
    line-height: 1.1; animation: fadeInUp 0.8s ease-out 0.1s both;
}
.hero-title .accent { color: var(--gold); }
.hero-subtitle {
    font-size: 1.1em; margin-bottom: 16px; color: rgba(255,255,255,0.65);
    font-weight: 400; max-width: 560px; margin-left: auto; margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-stats {
    display: flex; justify-content: center; gap: 40px; margin-top: 30px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}
.hero-stat { text-align: center; }
.hero-stat-number {
    font-size: 1.8em; font-weight: 900; color: var(--gold);
    display: block; font-family: 'Playfair Display', serif;
}
.hero-stat-label {
    font-size: 0.72em; color: rgba(255,255,255,0.5);
    letter-spacing: 1.5px; text-transform: uppercase;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── BÖLÜM BAŞLIKLARI ─── */
.section-heading { text-align: center; margin-bottom: 50px; }
.section-heading .label {
    display: inline-block; color: var(--gold); font-size: 0.78em;
    letter-spacing: 4px; text-transform: uppercase; font-weight: 700; margin-bottom: 8px;
}
.section-heading h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6em; font-weight: 900; color: var(--primary);
    margin: 0; line-height: 1.15;
}
.section-heading .divider {
    width: 60px; height: 3px; background: var(--gold);
    margin: 14px auto 0; border-radius: 2px;
}

/* ─── ÜRÜN KARTI ─── */
.product-card {
    border: 1px solid #ede0cc; box-shadow: 0 2px 10px rgba(43,10,10,0.06);
    transition: all 0.3s; border-radius: 6px; overflow: hidden;
    background: white; height: 460px; display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(43,10,10,0.14);
    border-color: var(--gold);
}
.product-image-container { height: 215px; position: relative; overflow: hidden; flex-shrink: 0; }
.product-img { width: 100%; height: 215px; object-fit: cover; display: block; transition: transform 0.5s; }
.product-card:hover .product-img { transform: scale(1.07); }
.product-card .card-body {
    flex: 1; display: flex; flex-direction: column;
    justify-content: space-between; padding: 14px;
}

/* ─── BADGE ─── */
.featured-badge {
    position: absolute; top: 0; left: 0;
    background: var(--primary); color: var(--gold);
    padding: 5px 12px; font-weight: 800; font-size: 0.72em;
    letter-spacing: 1px; text-transform: uppercase; z-index: 10;
    border-radius: 0 0 8px 0;
}
.discount-badge {
    position: absolute; top: 0; right: 0;
    background: #c0392b; color: white;
    padding: 5px 12px; font-weight: 800; font-size: 0.72em;
    letter-spacing: 0.5px; z-index: 10; border-radius: 0 0 0 8px;
}
.image-count-badge {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.7); color: white;
    padding: 3px 8px; border-radius: 3px; font-size: 0.75em; font-weight: 600;
}
.view-images-btn {
    position: absolute; bottom: 8px; left: 8px;
    background: rgba(43,10,10,0.85); color: var(--gold); border: none;
    padding: 4px 10px; border-radius: 3px; font-size: 0.75em; cursor: pointer; font-weight: 700;
}
.view-images-btn:hover { background: var(--gold); color: var(--primary); }
.original-price { text-decoration: line-through; color: #aaa; font-size: 0.86em; }
.discounted-price { color: #c0392b; font-weight: 800; font-size: 1.1em; }

/* ─── KATEGORİ KARTI ─── */
.category-card {
    border: 1px solid #ede0cc; box-shadow: none; transition: all 0.3s;
    border-radius: 6px; background: white; height: 190px; text-align: center;
    padding: 20px 15px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; cursor: pointer;
    position: relative; overflow: hidden;
}
.category-card::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: var(--gold); transform: scaleX(0); transition: transform 0.3s;
}
.category-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(43,10,10,0.1);
    transform: translateY(-4px);
}
.category-card:hover::before { transform: scaleX(1); }
.category-icon { font-size: 2.4em; color: var(--gold); margin-bottom: 12px; }
.category-card h5 { color: var(--primary); font-weight: 800; margin: 0; font-size: 1em; }

/* ─── KATEGORİ HEADER ─── */
.category-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white; padding: 70px 0; text-align: center;
    position: relative; overflow: hidden; border-bottom: 3px solid var(--gold);
}
.category-header > * { position: relative; z-index: 1; }
.breadcrumb { background: transparent; padding: 0; }

/* ─── FOOTER ─── */
.footer {
    background: var(--primary); color: rgba(255,255,255,0.6);
    padding: 60px 0 0; margin-top: 70px;
    border-top: 3px solid var(--gold);
}
.footer h4 {
    color: var(--gold); font-weight: 800; letter-spacing: 0.5px;
    font-size: 1em; text-transform: uppercase; margin-bottom: 18px;
}
.footer a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--gold); }
.footer p { font-size: 0.9em; line-height: 1.7; }

/* ─── WHATSAPP FLOAT ─── */
.floating-whatsapp {
    position: fixed; bottom: 22px; right: 22px; background: #25D366;
    color: white; width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    box-shadow: 0 6px 22px rgba(37,211,102,0.45); z-index: 998;
    animation: pulse 2.5s infinite; text-decoration: none; transition: transform 0.2s;
}
.floating-whatsapp:hover { transform: scale(1.1); animation: none; color: white; }
@keyframes pulse {
    0%, 100% { box-shadow: 0 6px 22px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 6px 32px rgba(37,211,102,0.75); }
}

/* ─── GALERİ ─── */
.gallery-thumbnails { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.gallery-thumbnail {
    width: 80px; height: 80px; object-fit: cover; border-radius: 4px;
    cursor: pointer; border: 2px solid transparent; transition: all 0.2s;
}
.gallery-thumbnail:hover,
.gallery-thumbnail.active { border-color: var(--gold); }

/* ─── SEPET & ARAMA ─── */
.cart-item { border-bottom: 1px solid #f5ede0; padding: 15px 0; }
.cart-item:last-child { border-bottom: none; }
.search-wrapper { position: relative; }
.search-results {
    position: absolute; width: 100%; z-index: 1002; left: 0; top: 100%;
    background: white; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    max-height: 340px; overflow-y: auto; display: none;
    border-top: 3px solid var(--gold);
}
.search-result-item {
    padding: 12px 16px; border-bottom: 1px solid #f5ede0;
    cursor: pointer; transition: background 0.15s;
}
.search-result-item:hover { background: #fdf8f0; }
.search-result-item:last-child { border-bottom: none; }

/* ─── MISC ─── */
#products-container,
#categories-container,
#category-products-container { min-height: 200px; }
.loading-placeholder {
    height: 300px; background: #f5ede0;
    display: flex; align-items: center; justify-content: center; border-radius: 6px;
}
#firebase-status { position: fixed; bottom: 20px; left: 20px; z-index: 9999; display: none; }

/* ─── MOBİL ─── */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2em; }
    .hero-subtitle { font-size: 0.95em; }
    .hero-stats { gap: 20px; }
    .hero-stat-number { font-size: 1.4em; }
    .company-name { font-size: 1.3em; }
    .admin-content, .order-content { margin: 10px; padding: 15px; }
    .product-card { height: auto; min-height: 380px; }
    .product-image-container { height: 180px; }
    .product-img { height: 180px; }
    .category-card { height: 160px; }
    .whatsapp-btn span { display: none; }
    .order-btn span { display: none; }
    .section-heading h2 { font-size: 1.9em; }
}

/* ─── MOBİL KATEGORİ ŞERİDİ ─── */
.category-strip {
    display: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--primary);
    border-bottom: 2px solid var(--gold);
    padding: 0;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 999;
}
.category-strip::-webkit-scrollbar { display: none; }
.category-strip a {
    display: inline-block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 11px 16px;
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(201,168,76,0.15);
    transition: all 0.2s;
    white-space: nowrap;
}
.category-strip a:hover,
.category-strip a:active { color: var(--gold); background: rgba(201,168,76,0.1); }
@media (max-width: 991px) {
    .category-strip { display: block; }
}

/* ─── TOPLU FİYAT TABLOSU ─── */
.bulk-price-table input[type=number] {
    width: 110px; padding: 4px 8px; border: 1px solid #ede0cc;
    border-radius: 3px; font-size: 0.9em; text-align: right;
}
.bulk-price-table input[type=number]:focus { border-color: var(--gold); outline: none; }
.bulk-price-table td { vertical-align: middle; }
