/**
 * 3DKKTC.COM - Modern E-Ticaret Özel Stil Dosyası
 */

:root {
    --primary-color: #0284c7;
    --primary-hover: #0369a1;
    --primary-light: #e0f2fe;
    --secondary-color: #0f172a;
    --dark-surface: #1e293b;
    --accent-color: #f59e0b;
    --whatsapp-color: #25d366;
    --whatsapp-hover: #1ebd5b;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 12px 20px -3px rgba(2, 132, 199, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition-fast: all 0.2s ease-in-out;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

/* ===================================================
   ÜST DUYURU BANDI (ANNOUNCEMENT BAR)
=================================================== */
.top-bar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar a {
    color: #38bdf8;
    text-decoration: none;
    transition: var(--transition-fast);
}

.top-bar a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ===================================================
   NAVBAR & BAŞLIK
=================================================== */
.navbar-brand img {
    height: 44px;
    width: auto;
}

.main-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-link {
    font-weight: 500;
    color: #334155 !important;
    padding: 0.6rem 0.9rem !important;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Arama Kutusu */
.search-form .input-group {
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #ffffff;
    transition: var(--transition-fast);
}

.search-form .input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.search-form .form-control {
    border: none;
    padding-left: 1.2rem;
    font-size: 0.95rem;
    background: transparent;
}

.search-form .form-control:focus {
    box-shadow: none;
}

.search-form .btn-search {
    background: transparent;
    border: none;
    color: var(--primary-color);
    padding: 0 1.2rem;
}

/* Sepet Butonu */
.cart-btn-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary-color) !important;
    font-size: 1.15rem;
    transition: var(--transition-fast);
}

.cart-btn-link:hover {
    background-color: var(--primary-color);
    color: #ffffff !important;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #ef4444;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* ===================================================
   HERO ALANI (HERO SECTION)
=================================================== */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0369a1 100%);
    color: #ffffff;
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1.25rem;
}

.hero-title .text-highlight {
    background: linear-gradient(90deg, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 580px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    border: none;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    transition: var(--transition-fast);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
    color: #ffffff;
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 10px;
    font-size: 1rem;
    backdrop-filter: blur(8px);
    transition: var(--transition-fast);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ===================================================
   GÜVEN ROZETLERİ (TRUST BADGES)
=================================================== */
.trust-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.trust-text h6 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.trust-text p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===================================================
   KATEGORİ KARTLARI
=================================================== */
.category-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--card-hover-shadow);
    color: var(--primary-color);
}

.category-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
    transition: var(--transition-fast);
}

.category-card:hover .category-icon {
    background-color: var(--primary-color);
    color: #ffffff;
}

.category-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===================================================
   ÜRÜN KARTLARI (PRODUCT CARDS)
=================================================== */
.product-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: #cbd5e1;
}

.product-image-wrap {
    position: relative;
    padding-top: 100%; /* 1:1 Kare oran */
    background-color: #f1f5f9;
    overflow: hidden;
}

.product-image-wrap img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.05);
}

/* Ürün Rozetleri */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-featured {
    background-color: #0284c7;
    color: #ffffff;
}

.badge-bestseller {
    background-color: #f59e0b;
    color: #ffffff;
}

.badge-discount {
    background-color: #ef4444;
    color: #ffffff;
}

.product-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

.product-title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7em;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-price-box {
    margin-top: auto;
    padding-top: 0.75rem;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 0.85rem;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.price-old {
    font-size: 0.88rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.product-actions form {
    margin: 0;
    display: flex;
}

.btn-add-cart {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(2, 132, 199, 0.2);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.55rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-add-cart:hover:not(:disabled) {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.btn-out-of-stock {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border: 1px dashed #cbd5e1;
}

.btn-quick-view {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-fast);
    text-decoration: none;
    flex-shrink: 0;
}

.btn-quick-view:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.btn-quick-wa {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid rgba(22, 163, 74, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: var(--transition-fast);
    text-decoration: none;
    flex-shrink: 0;
}

.btn-quick-wa:hover {
    background-color: #16a34a;
    color: #ffffff;
}

/* ===================================================
   ÖZEL BASKI BANNERI (CUSTOM 3D PRINT PROMO)
=================================================== */
.custom-print-banner {
    background: linear-gradient(135deg, #0284c7 0%, #1e40af 100%);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.3);
}

.custom-print-banner::before {
    content: "";
    position: absolute;
    top: -50px; right: -50px;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

/* ===================================================
   WHATSAPP YÜZEN BUTON (FLOATING ACTION)
=================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp-color);
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.whatsapp-float:hover {
    background-color: var(--whatsapp-hover);
    color: #ffffff;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ===================================================
   FOOTER (ALT BİLGİ)
=================================================== */
.site-footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding-top: 3.5rem;
    border-top: 1px solid #1e293b;
    margin-top: 3rem;
}

.site-footer h5 {
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 8px;
}

.site-footer h5::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 32px; height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #38bdf8;
    padding-left: 4px;
}

.footer-bottom {
    background-color: #0b1120;
    padding: 1.25rem 0;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

/* ===================================================
   MOBİL VE TABLET UYUMLULUK (RESPONSIVE)
=================================================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .custom-print-banner {
        padding: 2rem 1.5rem;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 52px;
        height: 52px;
        font-size: 28px;
    }
}
