:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
    --shadow-lg: 0 20px 50px rgba(37, 99, 235, 0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main { flex: 1; }

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.85rem; }
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--blue-200); color: var(--blue-700); }
.btn-outline:hover { background: var(--blue-50); border-color: var(--blue-500); }
.btn-ghost { background: transparent; color: var(--blue-700); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-white { background: var(--white); color: var(--blue-700); }
.btn-white:hover { background: var(--blue-50); }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 800;
    font-size: 1.35rem;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.brand-text span { color: var(--blue-600); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-800);
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links > li > a,
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.85rem;
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.nav-links > li > a:hover,
.nav-links > li > a.active,
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active {
    color: var(--blue-600);
    background: var(--blue-50);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-user {
    font-size: 0.85rem;
    color: var(--gray-600);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Mega menu */
.nav-dropdown {
    position: static;
}

.mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 1001;
    /* Header ile panel arasında boşluk kalmasın — fare geçerken menü kapanmasın */
    padding-top: 12px;
    margin-top: -12px;
}

/* Görünmez köprü: tetikleyiciden panele geçiş */
.mega-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 16px;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown.is-open .mega-menu,
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown.is-open .nav-dropdown-trigger {
    color: var(--blue-600);
    background: var(--blue-50);
}

.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1.75rem 0;
}

.mega-cat-title {
    display: block;
    font-weight: 700;
    color: var(--blue-700);
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.mega-cat-title:hover { color: var(--blue-600); }

.mega-subs {
    list-style: none;
}

.mega-subs a {
    display: block;
    padding: 0.35rem 0;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s, padding-left 0.2s;
    position: relative;
    z-index: 1;
}

.mega-subs a:hover {
    color: var(--blue-600);
    padding-left: 4px;
}

.mega-cat-title,
.mega-col .btn {
    position: relative;
    z-index: 1;
}

.mega-all {
    display: flex;
    align-items: flex-end;
}

/* Hero */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero--gradient {
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 50%, var(--blue-600) 100%);
}

.hero--gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1557597774-9d2739f85a49?w=1920&q=80') center/cover;
    opacity: 0.15;
}

.hero--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero--image::before {
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 138, 0.75) 100%);
    pointer-events: none;
}

.hero--gradient .hero-overlay {
    background: linear-gradient(90deg, rgba(30, 58, 138, 0.95) 0%, rgba(37, 99, 235, 0.7) 100%);
}

.hero-btn-outline {
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12) !important;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 640px;
    padding: 4rem 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.92;
    margin-bottom: 2rem;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
}

.hero-stat span { font-size: 0.85rem; opacity: 0.85; }

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.section-header p { color: var(--gray-600); }

.section-alt { background: var(--gray-50); }

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.about-text p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.about-feature {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--blue-50);
    border-radius: var(--radius);
}

.about-feature i {
    color: var(--blue-600);
    font-size: 1.25rem;
}

.about-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.about-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-gallery img:first-child {
    grid-row: span 2;
    height: 100%;
    min-height: 280px;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.product-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gray-100);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--blue-600);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.product-card-body { padding: 1.25rem; }

.product-cat {
    font-size: 0.75rem;
    color: var(--blue-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.35rem 0 0.5rem;
    color: var(--gray-900);
}

.product-card h3 a {
    color: inherit;
    text-decoration: none;
}

.product-card h3 a:hover { color: var(--blue-600); }

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--blue-700);
}

.product-price-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
}

.product-price-retail {
    font-size: 0.85rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.service-card {
    padding: 1.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s;
}

.service-card:hover {
    border-color: var(--blue-200);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 0.85rem;
    background: var(--blue-50);
    color: var(--blue-600);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.service-card h3 { font-size: 0.95rem; margin-bottom: 0.4rem; line-height: 1.3; }
.service-card p { font-size: 0.82rem; color: var(--gray-600); line-height: 1.45; }

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    .service-card { padding: 1.75rem 1.25rem; }
    .service-card h3 { font-size: 1rem; }
    .service-card p { font-size: 0.88rem; }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }
    .service-card { padding: 2rem 1.5rem; }
}

/* CTA */
.cta-band {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-band h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.cta-band p { opacity: 0.9; margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-200);
}

.footer-top { padding: 4rem 0 2rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 2rem;
}

.footer-brand .brand-text { color: white; }
.footer-desc { margin: 1rem 0; font-size: 0.9rem; opacity: 0.85; line-height: 1.7; }

.footer-social { display: flex; gap: 0.75rem; }

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
}

.footer-social a:hover { background: var(--blue-600); }

.footer-grid h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.footer-links { list-style: none; }
.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 0.3rem 0;
    transition: color 0.2s;
}
.footer-links a:hover { color: white; }

.footer-contact { list-style: none; }
.footer-contact li {
    display: flex;
    gap: 0.6rem;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    align-items: flex-start;
}
.footer-contact i { color: var(--blue-400); margin-top: 3px; }
.footer-contact a { color: var(--gray-400); text-decoration: none; }
.footer-contact a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Auth pages */
.auth-page {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
}

.auth-card {
    width: min(440px, 100%);
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    color: var(--gray-900);
}

.auth-card .subtitle {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: var(--gray-800);
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-hint { font-size: 0.8rem; color: var(--gray-400); margin-top: 0.35rem; }

.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: var(--blue-50); color: var(--blue-800); border: 1px solid var(--blue-200); }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.auth-footer a { color: var(--blue-600); font-weight: 600; }

/* Products page */
.page-header {
    background: linear-gradient(135deg, var(--blue-50), var(--white));
    padding: 3rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.page-header h1 { font-size: 2rem; font-weight: 800; color: var(--gray-900); }
.page-header p { color: var(--gray-600); margin-top: 0.35rem; }

.products-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    padding: 2.5rem 0 4rem;
}

.sidebar-filter {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}

.sidebar-filter h3 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.filter-list { list-style: none; }
.filter-list a {
    display: block;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.88rem;
    transition: all 0.2s;
}

.filter-list a:hover,
.filter-list a.active {
    background: var(--blue-100);
    color: var(--blue-700);
    font-weight: 600;
}

.filter-sub { padding-left: 0.75rem; }

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-600);
}

.empty-state i { font-size: 3rem; color: var(--gray-200); margin-bottom: 1rem; }

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

.product-detail-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gray-100);
    aspect-ratio: 1;
}

.product-detail-img img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.product-detail-meta { color: var(--blue-600); font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.product-detail-price { font-size: 2rem; font-weight: 800; color: var(--blue-700); margin: 1rem 0; }
.product-detail-desc { color: var(--gray-600); line-height: 1.8; }

.company-notice {
    background: var(--blue-50);
    border: 1px solid var(--blue-200);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.nav-mobile-auth { display: none; }

@media (max-width: 992px) {
    .about-grid, .product-detail, .products-layout, .footer-grid {
        grid-template-columns: 1fr;
    }
    .products-layout .sidebar-filter { position: static; }
    .about-gallery img:first-child { grid-row: auto; min-height: 180px; }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow);
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-actions { display: none; }
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        pointer-events: auto;
        display: none;
    }
    .nav-dropdown.open .mega-menu { display: block; }
    .nav-mobile-auth { display: list-item; }
    .nav-mobile-auth a { color: var(--blue-600) !important; font-weight: 600; }
    .hero-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* İnternet fiyat tablosu */
.internet-table-wrap {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.internet-table {
    width: 100%;
    border-collapse: collapse;
}

.internet-table th {
    background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
    color: white;
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.internet-table th i { margin-right: 0.35rem; opacity: 0.9; }

.internet-table td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
}

.internet-table tbody tr:hover td { background: var(--blue-50); }
.internet-table tbody tr:last-child td { border-bottom: none; }

.internet-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--blue-700);
}

.internet-note {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-400);
    font-weight: 500;
    margin-top: 0.2rem;
}

@media (max-width: 600px) {
    .internet-table th, .internet-table td { padding: 0.85rem 0.75rem; font-size: 0.88rem; }
}
