/* ============================================================
   Grafik & Matbaa — Ana CSS Dosyası
   Renk Paleti:
     Primary  : #1B3A6B (koyu lacivert)
     Secondary: #2E86C1 (mavi)
     Accent   : #E67E22 (turuncu)
   ============================================================ */

/* ---- CSS Değişkenleri ---- */
:root {
    --primary:      #1B3A6B;
    --primary-dark: #122850;
    --secondary:    #2E86C1;
    --accent:       #E67E22;
    --accent-dark:  #CA6F1E;
    --text-dark:    #1a1a2e;
    --text-muted:   #6c757d;
    --bg-light:     #f8f9fc;
    --bg-white:     #ffffff;
    --border:       #e9ecef;
    --shadow-sm:    0 2px 8px rgba(0,0,0,.07);
    --shadow-md:    0 4px 20px rgba(0,0,0,.10);
    --shadow-lg:    0 8px 40px rgba(0,0,0,.14);
    --radius:       10px;
    --radius-lg:    16px;
    --transition:   all .25s ease;
}

/* ---- Bootstrap Override — Primary Renk ---- */
.btn-primary,
.bg-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-primary:hover { background-color: var(--primary-dark) !important; border-color: var(--primary-dark) !important; }
.btn-outline-primary { color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-outline-primary:hover { background-color: var(--primary) !important; color: #fff !important; }
.text-primary { color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.badge.bg-primary { background-color: var(--primary) !important; }
.list-group-item.active,
.list-group-item-action.active { background-color: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }

/* Accent buton */
.btn-accent { background-color: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background-color: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* ---- HTML & Body sıfırlama ---- */
html {
    margin: 0 !important;
    padding: 0 !important;
}
body {
    margin: 0 !important;
}

/* ---- Genel Body ---- */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    padding-top: 104px !important; /* masaüstü: topbar(36) + navbar(68) */
}

/* ---- TOP BAR ---- */
.topbar {
    background-color: var(--primary-dark);
    color: rgba(255,255,255,.8);
    font-size: .78rem;
    padding: 6px 0;
    height: 36px;
    line-height: 1.2;
    margin-bottom: 0 !important;
    border-bottom: none !important;
}
.topbar a { color: rgba(255,255,255,.75); text-decoration: none; transition: var(--transition); }
.topbar a:hover { color: #fff; }
.topbar .social-icons a { font-size: .95rem; margin-left: 10px; }

/* ---- NAVBAR ---- */
.main-navbar {
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: none !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}
.navbar-inner {
    background-color: var(--primary);
    min-height: 68px;
    display: flex;
    align-items: center;
    padding: 0;
    transition: background-color .3s;
}
.main-navbar.scrolled .navbar-inner {
    background-color: var(--primary-dark);
}
.navbar {
    border-bottom: none !important;
    box-shadow: none !important;
}
.navbar-brand-logo {
    font-weight: 800;
    font-size: 1.45rem;
    color: #fff !important;
    letter-spacing: -.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.navbar-brand-logo span { color: var(--accent); }
.navbar-brand-logo .logo-icon {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff;
}

.main-navbar .nav-link {
    color: rgba(255,255,255,.88) !important;
    font-weight: 500;
    font-size: .9rem;
    padding: .5rem .75rem !important;
    transition: var(--transition);
    border-radius: 6px;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active { color: #fff !important; background-color: rgba(255,255,255,.1); }

.main-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: .5rem;
    margin-top: 8px !important;
    min-width: 220px;
}
.main-navbar .dropdown-item {
    border-radius: 6px;
    padding: .5rem .85rem;
    font-size: .875rem;
    color: var(--text-dark);
    transition: var(--transition);
}
.main-navbar .dropdown-item:hover { background-color: var(--bg-light); color: var(--primary); }
.main-navbar .dropdown-divider { margin: .4rem 0; }

/* Navbar arama */
.navbar-search .form-control {
    border-radius: 20px 0 0 20px !important;
    border: none;
    font-size: .85rem;
    padding: .4rem 1rem;
    background: rgba(255,255,255,.15);
    color: #fff;
    width: 200px;
    transition: width .3s ease, background .3s;
}
.navbar-search .form-control::placeholder { color: rgba(255,255,255,.6); }
.navbar-search .form-control:focus {
    background: rgba(255,255,255,.25);
    color: #fff;
    width: 240px;
    box-shadow: none;
    outline: none;
}
.navbar-search .btn-search {
    border-radius: 0 20px 20px 0 !important;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    padding: .4rem .85rem;
    font-size: .85rem;
}
.navbar-search .btn-search:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* Sepet ikonu */
.cart-btn {
    position: relative;
    color: rgba(255,255,255,.9) !important;
    padding: .4rem .6rem !important;
}
.cart-btn .cart-badge {
    position: absolute;
    top: 2px; right: 2px;
    background: var(--accent);
    color: #fff;
    font-size: .65rem;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    line-height: 1;
}

/* Navbar toggler */
.navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* ---- BREADCRUMB ---- */
.breadcrumb { font-size: .82rem; }
.breadcrumb-item a { color: var(--secondary); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--primary); text-decoration: underline; }

/* ---- FOOTER ---- */
.site-footer {
    background: var(--text-dark);
    color: rgba(255,255,255,.75);
}
.site-footer h6 { color: #fff; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; font-size: .8rem; }
.site-footer a { color: rgba(255,255,255,.65); text-decoration: none; transition: var(--transition); }
.site-footer a:hover { color: #fff; padding-left: 4px; }
.site-footer .footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; }
.site-footer .footer-brand span { color: var(--accent); }
.site-footer .social-link {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: inline-flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.8) !important;
    transition: var(--transition);
    font-size: 1rem;
    padding: 0 !important;
}
.site-footer .social-link:hover { background: var(--accent); color: #fff !important; }
.footer-bottom {
    background: rgba(0,0,0,.2);
    font-size: .8rem;
}

/* ---- ÜRÜN KARTLARI ---- */
.product-card {
    border-radius: var(--radius) !important;
    transition: var(--transition);
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}
.product-card .card-img-wrap {
    overflow: hidden;
    background: var(--bg-light);
}
.product-card .card-img-wrap img {
    transition: transform .4s ease;
    height: 200px;
    object-fit: cover;
    width: 100%;
}
.product-card:hover .card-img-wrap img { transform: scale(1.06); }
.product-card .product-no-img {
    height: 200px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-light);
    color: #ccc;
    font-size: 3rem;
}
.price-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

/* Badge türleri */
.badge-print    { background: var(--primary) !important; }
.badge-design   { background: #27ae60 !important; }
.badge-3d       { background: var(--accent) !important; }
.badge-featured { background: #e74c3c !important; }

/* ---- HERO ---- */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 60%, #1a5276 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 600px; height: 600px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -5%;
    width: 400px; height: 400px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
}
.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.5px;
}
.hero-subtitle { font-size: 1.05rem; opacity: .85; }
.hero-decoration {
    position: relative; z-index: 1;
}
.hero-deco-box {
    background: rgba(255,255,255,.07);
    border: 2px solid rgba(255,255,255,.15);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(4px);
}

/* ---- STATS BAR ---- */
.stats-bar {
    background: var(--primary);
    color: #fff;
    padding: 30px 0;
}
.stat-item .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.stat-item .stat-label {
    font-size: .8rem;
    opacity: .8;
    margin-top: 2px;
}

/* ---- KATEGORİ KARTLARI (Ana Sayfa) ---- */
.category-card {
    border-radius: var(--radius-lg) !important;
    border: 2px solid var(--border) !important;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
    padding: 32px 24px;
    color: var(--text-dark);
    background: #fff;
}
.category-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg) !important;
    color: var(--text-dark);
}
.category-card .cat-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
}
.cat-icon-print    { background: rgba(27,58,107,.1);  color: var(--primary); }
.cat-icon-design   { background: rgba(39,174,96,.1);  color: #27ae60; }
.cat-icon-3d       { background: rgba(230,126,34,.1); color: var(--accent); }

/* ---- NASIL ÇALIŞIR ---- */
.how-step {
    position: relative;
    text-align: center;
}
.step-number {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(230,126,34,.4);
}

/* ---- CTA BANNER ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    color: #fff;
}

/* ---- SIDEBAR FİLTRE ---- */
.filter-card {
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
}
.filter-card .card-header {
    background: var(--primary) !important;
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
    border-radius: var(--radius) var(--radius) 0 0 !important;
    padding: .65rem 1rem;
}

/* ---- CHECKOUT ADIM GÖSTERGESİ ---- */
.checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
}
.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
}
.step-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    flex-shrink: 0;
}
.step-circle.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.step-circle.done   { background: #27ae60; border-color: #27ae60; color: #fff; }
.step-label { font-size: .8rem; font-weight: 500; color: var(--text-muted); }
.step-label.active { color: var(--primary); font-weight: 700; }
.step-connector {
    width: 60px; height: 2px;
    background: var(--border);
    flex-shrink: 0;
}
@media (max-width: 576px) { .step-connector { width: 24px; } .step-label { display: none; } }

/* ---- ADRES KARTLARI (Checkout) ---- */
.address-radio-card input[type="radio"] { display: none; }
.address-radio-card label {
    display: block;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    cursor: pointer;
    transition: var(--transition);
}
.address-radio-card input[type="radio"]:checked + label {
    border-color: var(--primary);
    background: rgba(27,58,107,.04);
}
.address-radio-card label:hover { border-color: var(--secondary); }

/* ---- DRAG & DROP UPLOAD ---- */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
}
.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(27,58,107,.04);
}
.upload-zone .upload-icon { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 8px; }
.upload-zone.has-file { border-color: #27ae60; background: rgba(39,174,96,.04); }
.upload-zone.has-file .upload-icon { color: #27ae60; }

/* ---- HESAP SAYFASI SİDEBAR ---- */
.account-sidebar .card { border-radius: var(--radius) !important; }
.account-sidebar .user-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #fff;
    margin-bottom: 12px;
}
.account-sidebar .list-group-item {
    border: none;
    border-radius: 8px !important;
    margin: 2px 6px;
    font-size: .875rem;
    font-weight: 500;
    transition: var(--transition);
}

/* ---- GİRİŞ / KAYIT SAYFASI ---- */
.auth-card {
    border-radius: var(--radius-lg) !important;
    border: none !important;
    box-shadow: var(--shadow-lg) !important;
}
.auth-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 36px 32px 28px;
    text-align: center;
    color: #fff;
}
.auth-header .auth-icon { font-size: 3rem; margin-bottom: 8px; }
.auth-header h2 { font-weight: 800; letter-spacing: -.5px; margin-bottom: 4px; }
.auth-header p { opacity: .85; font-size: .9rem; margin: 0; }
.auth-body { padding: 32px; }

/* ---- FORM ELEMANLAR ---- */
.form-control, .form-select {
    border-radius: 8px !important;
    border-color: var(--border);
    font-size: .9rem;
    padding: .55rem .85rem;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(46,134,193,.15);
}
.form-label { font-size: .85rem; font-weight: 600; color: var(--text-dark); margin-bottom: .3rem; }

/* ---- ANIMASYONLAR ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .5s ease both; }
.fade-in-up-1 { animation-delay: .1s; }
.fade-in-up-2 { animation-delay: .2s; }
.fade-in-up-3 { animation-delay: .3s; }
.fade-in-up-4 { animation-delay: .4s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.fade-in { animation: fadeIn .4s ease both; }

/* ---- TOAST BİLDİRİMLERİ ---- */
#toastContainer {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gm-toast {
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: .875rem;
    box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 10px;
    animation: toastIn .3s ease;
    min-width: 240px;
}
.gm-toast.success { background: #27ae60; }
.gm-toast.error   { background: #e74c3c; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- PROGRESS BAR (Sepet kargo) ---- */
.shipping-progress .progress { height: 6px; border-radius: 10px; background: var(--border); }
.shipping-progress .progress-bar { background: linear-gradient(90deg, var(--secondary), var(--accent)); }

/* ---- STICKY MOBILE SEPET BUTONU ---- */
@media (max-width: 768px) {
    .sticky-add-to-cart {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 100;
        background: #fff;
        padding: 12px 16px;
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 16px rgba(0,0,0,.1);
    }
}

/* ---- ÜRÜN DETAY TABs ---- */
.product-tabs .nav-tabs { border-bottom: 2px solid var(--border); }
.product-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: .875rem;
    border: none;
    padding: .65rem 1.25rem;
    border-radius: 0;
}
.product-tabs .nav-link.active {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    margin-bottom: -2px;
    background: none;
}

/* ---- SİPARİŞ KARTLARI (Geçmiş) ---- */
.order-card { border-radius: var(--radius) !important; transition: var(--transition); }
.order-card:hover { box-shadow: var(--shadow-md) !important; }
.order-timeline .timeline-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
    flex-shrink: 0;
    margin-top: 5px;
}
.order-timeline .timeline-dot.active { background: var(--primary); }

/* ---- YARDIMCI SINIFLAR ---- */
.bg-light-blue { background-color: rgba(46,134,193,.07); }
.bg-light-accent { background-color: rgba(230,126,34,.07); }
.bg-primary-soft { background-color: rgba(27,58,107,.07); }
.text-accent { color: var(--accent) !important; }
.fw-800 { font-weight: 800 !important; }
.rounded-xl { border-radius: var(--radius-lg) !important; }
.section-title { font-weight: 800; letter-spacing: -.3px; }
.section-subtitle { color: var(--text-muted); font-size: .95rem; }

/* ---- MOBİL YÜZEN SEPET BUTONU ---- */
.floating-cart-btn {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 1050;
    background: var(--accent);
    color: #fff;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 18px rgba(0,0,0,.3);
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.floating-cart-btn:hover,
.floating-cart-btn:focus { color: #fff; transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.floating-cart-btn .fcart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* ---- MOBIL ---- */
@media (max-width: 991px) {
    body { padding-top: 96px !important; }
    .main-navbar { min-height: 56px; }
    .navbar-search .form-control { width: 100%; border-radius: 8px !important; }
    .navbar-search .btn-search { border-radius: 8px !important; }
    .hero-section { padding: 50px 0; }
    .cta-banner { padding: 36px 24px; }
}
@media (max-width: 575px) {
    body { padding-top: 64px !important; }
    .main-navbar .navbar-brand,
    .main-navbar .navbar-brand-logo {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    .main-navbar {
        align-items: center !important;
        padding-top: 0 !important;
        min-height: 64px;
    }
}
