@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --brand-blue: #202c59;
    --brand-blue-hover: #161f40;
    --brand-gold: #b98f4f;
    --brand-gold-hover: #9f783d;
    --bg-light: #fbfaf8;
    --line: #e8e3d8;
    --font-body: "Inter", sans-serif;
    --font-heading: "Playfair Display", serif;
}

html, body,
button, input, textarea, select, label,
small, span, p, a, li, td, th,
.navbar, .category-nav-link, .header-cart-btn {
    font-family: var(--font-body) !important;
}

h1, h2, h3, h4, h5, h6,
.serif-font {
    font-family: var(--font-heading) !important;
    letter-spacing: -0.02em;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background: var(--bg-light);
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

/* ========================= TOP BAR ========================= */

.top-info-bar {
    background: var(--brand-blue);
    color: #e2e7f5;
    font-size: 0.8rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--brand-gold);
}

.top-info-bar a {
    color: inherit;
    text-decoration: none;
}

.top-info-bar a:hover {
    color: var(--brand-gold);
}

/* ========================= HEADER ========================= */

header {
    position: relative;
    z-index: 999;
    background: #fff !important;
}

.site-logo-img {
    height: 48px;
    width: auto;
}

.navbar {
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.btn-gold {
    background-color: var(--brand-gold) !important;
    color: white !important;
    border: none !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-gold:hover {
    background-color: var(--brand-gold-hover) !important;
}

.btn-blue {
    background-color: var(--brand-blue) !important;
    color: white !important;
    border: none !important;
}

.btn-blue:hover {
    background-color: var(--brand-blue-hover) !important;
}

.btn-outline-dark {
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.btn-outline-dark:hover {
    background: var(--brand-blue);
    color: #fff;
}

/* ========================= NAVBAR KATEGORİ ========================= */

.category-subnav {
    background: #fff;
    border-bottom: 2px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.cat-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.category-nav-item {
    position: relative;
    padding-bottom: 10px;
}

.category-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    color: var(--brand-blue);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.category-nav-link:hover {
    color: var(--brand-gold);
    background: rgba(185, 143, 79, 0.05);
}

.arrow-icon {
    font-size: 0.7rem;
}

.cat-dropdown-menu,
.mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.18s ease;
    pointer-events: none;
}

.cat-dropdown-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    min-width: 240px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 1001;
    box-shadow: 0 12px 26px rgba(0,0,0,0.08);
}

.cat-dropdown-menu li {
    list-style: none;
}

.cat-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cat-dropdown-menu a:hover {
    background: #f9f7f5;
    color: var(--brand-blue);
    padding-left: 20px;
}

.mega-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    min-width: 520px !important;
    display: none;
    padding: 14px;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-radius: 8px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 12px 26px rgba(0,0,0,0.08);
    z-index: 1001;
}

.mega-menu a {
    padding: 12px 14px !important;
    font-size: 0.86rem !important;
    font-family: "Inter", sans-serif !important;
}

.mega-menu a:hover {
    background: #f9f7f5 !important;
    color: var(--brand-blue) !important;
}

.category-nav-item:hover > .cat-dropdown-menu,
.category-nav-item:hover > .mega-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.category-nav-item:hover > .mega-menu {
    display: grid !important;
}

.header-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 2px solid var(--brand-blue);
    border-radius: 999px;
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    background: white;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.header-cart-btn:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
    background: rgba(185, 143, 79, 0.05);
}

/* ========================= SLIDER ========================= */

.hero-slider-item {
    min-height: 460px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.hero-slider-overlay {
    min-height: 460px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(32,44,89,0.8), rgba(32,44,89,0.3));
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(32,44,89,0.6) !important;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 100;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(32,44,89,0.9) !important;
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: contain;
}

.carousel-indicators {
    bottom: 20px;
    gap: 8px;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    margin: 0;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    width: 8px;
    height: 8px;
    background: var(--brand-gold);
    opacity: 1;
}

/* ========================= CANLI DAVETİYE ÖNİZLEME ========================= */

#davetiyeBaskiAlani {
    position: relative;
    background: #f4eee4;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 32px rgba(32,44,89,0.1);
}

.kod-etiketi {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand-blue);
    color: white;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
    z-index: 1;
}

.baski-cerceve {
    background: #fffefb;
    border: 1px solid #ddd;
    padding: 40px 20px;
    min-height: 460px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

/* ========================= ÜRÜN KARTLARI ========================= */

.product-card {
    border: 1px solid var(--line);
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(32,44,89,0.08);
    border-color: var(--brand-gold);
}

.product-img-zoom {
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card:hover .product-img-zoom {
    transform: scale(1.04);
}

.product-card p {
    display: none !important;
}

.product-card h5 {
    font-size: 1rem;
    font-weight: 600;
}

.product-card .p-4 {
    padding: 12px !important;
}

/* ========================= ÜRÜN DETAY SAYFASI ========================= */

.main-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}

.main-img-wrapper img,
#anaGorsel {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #fff;
    cursor: zoom-in;
}

.image-nav-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    padding: 0 10px;
    z-index: 10;
    pointer-events: none;
}

.btn-nav-prev,
.btn-nav-next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(32, 44, 89, 0.7);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    opacity: 0;
}

.main-img-wrapper:hover .btn-nav-prev,
.main-img-wrapper:hover .btn-nav-next {
    opacity: 1;
}

.btn-nav-prev:hover,
.btn-nav-next:hover {
    background: rgba(32, 44, 89, 0.9);
    transform: scale(1.08);
}

.thumb-gallery {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: white;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.thumb-item.active,
.thumb-item:hover {
    border-color: var(--brand-gold);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================= MODAL RESİM ========================= */

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    position: relative;
    width: min(90vw, 900px);
    height: min(80vh, 700px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #000;
}

.image-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    border: 2px solid white;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

.image-modal-close:hover {
    background: rgba(255,255,255,0.4);
}

.image-modal-prev,
.image-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-prev {
    left: 18px;
}

.image-modal-next {
    right: 18px;
}

/* ========================= ADMIN PANEL ========================= */

.admin-sidebar {
    background: var(--brand-blue);
    min-height: 100vh;
    padding: 20px 12px;
    color: white;
}

.admin-nav-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(32,44,89,0.04);
}

.table-card {
    background: white;
    border-radius: 10px;
    border: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(32,44,89,0.04);
}

.product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.badge-cat {
    background: #eef2ff;
    color: var(--brand-blue);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ========================= RESİM YÜKLEME ========================= */

.image-drop-area {
    border: 2px dashed #d4cbb8;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: white;
    transition: all 0.2s ease;
}

.image-drop-area:hover {
    border-color: var(--brand-gold);
    background: var(--bg-light);
}

.preview-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.preview-box {
    width: 100px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--line);
    background: white;
}

.preview-box.is-cover {
    border-color: var(--brand-gold);
}

.preview-box img {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.btn-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    border: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    cursor: pointer;
}

.cover-btn {
    width: 100%;
    border: 0;
    background: var(--brand-blue);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 0;
    cursor: pointer;
}

.preview-box.is-cover .cover-btn {
    background: var(--brand-gold);
}

/* ========================= FORM ========================= */

.form-control,
.form-select {
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 0.15rem rgba(185,143,79,0.25);
}

.form-label {
    color: #333;
    font-weight: 500;
}

/* ========================= MODAL ========================= */

.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid var(--line);
    background: #fafafa;
}

.modal-footer {
    border-top: 1px solid var(--line);
    background: #fafafa;
}

/* ========================= TABLO ========================= */

.table {
    border-collapse: collapse;
}

.table thead {
    background: #f5f5f5;
}

.table th {
    border-bottom: 2px solid var(--line);
    font-weight: 600;
    color: var(--brand-blue);
}

.table tbody tr {
    border-bottom: 1px solid var(--line);
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: #f9f9f9;
}

/* ========================= FOOTER ========================= */

footer {
    background-color: var(--brand-blue);
    margin-top: auto;
}

/* ========================= RESPONSİF ========================= */

@media (max-width: 991px) {
    .hero-slider-item,
    .hero-slider-overlay {
        min-height: 340px;
    }

    .mega-menu {
        min-width: 320px !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .baski-cerceve {
        min-height: 350px;
        padding: 30px 16px;
    }

    .main-img-wrapper {
        max-height: 400px;
    }

    .main-img-wrapper img,
    #anaGorsel {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .category-nav-list {
        font-size: 0.75rem;
    }

    .category-nav-link {
        padding: 10px 8px;
    }

    .mega-menu {
        min-width: 280px !important;
        grid-template-columns: 1fr !important;
    }

    .cat-dropdown-menu {
        min-width: 180px;
    }

    .main-img-wrapper {
        aspect-ratio: 1;
        max-height: 350px;
    }

    .main-img-wrapper img,
    #anaGorsel {
        max-height: 350px;
    }

    .admin-sidebar {
        display: none;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }

    .baski-cerceve {
        min-height: 300px;
        padding: 20px 12px;
    }
}

@media (max-width: 576px) {
    .site-logo-img {
        height: 40px;
    }

    .hero-slider-item,
    .hero-slider-overlay {
        min-height: 240px;
    }

    .hero-slider-overlay h1 {
        font-size: 1.5rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .baski-cerceve {
        min-height: 280px;
        padding: 16px 10px;
    }

    .thumb-item {
        width: 60px;
        height: 60px;
    }

    .preview-box {
        width: 80px;
    }

    .preview-box img {
        width: 80px;
        height: 80px;
    }

    .main-img-wrapper {
        max-height: 300px;
    }

    .main-img-wrapper img,
    #anaGorsel {
        max-height: 300px;
    }
}
        .sepet-kosul {
            background: #f9f7f5;
            border-radius: 10px;
            padding: 20px;
            border-left: 4px solid var(--brand-gold);
        }

        .sepet-ozet {
            background: white;
            border: 1px solid var(--line);
            border-radius: 12px;
            padding: 24px;
            position: sticky;
            top: 100px;
        }

        .sepet-satir {
            padding: 16px;
            border-bottom: 1px solid var(--line);
            display: flex;
            gap: 16px;
            align-items: flex-start;
        }

        .sepet-satir:last-child {
            border-bottom: none;
        }

        .sepet-resim {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 8px;
            background: var(--bg-light);
            flex-shrink: 0;
        }

        .sepet-detay {
            flex-grow: 1;
        }

        .sepet-kontroller {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 10px;
        }

        .sepet-adet-input {
            width: 60px;
            text-align: center;
            border: 1px solid var(--line);
            border-radius: 6px;
            padding: 6px;
            font-weight: 600;
        }

        .btn-adet {
            width: 32px;
            height: 32px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 4px;
            background: var(--bg-light);
            border: 1px solid var(--line);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-adet:hover {
            background: var(--brand-gold);
            border-color: var(--brand-gold);
            color: white;
        }

        .sepet-fiyat {
            text-align: right;
            min-width: 120px;
        }

        .sepet-bostur {
            text-align: center;
            padding: 80px 20px;
        }

        .sepet-bostur-ikon {
            font-size: 60px;
            color: #ccc;
            margin-bottom: 20px;
        }

        .notification {
            position: fixed;
            top: 80px;
            right: 20px;
            background: #28a745;
            color: white;
            padding: 14px 20px;
            border-radius: 8px;
            z-index: 9999;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(400px);
                opacity: 0;
            }
        }