/* --- KOLAY E-TICARET PREMIUM TEMA (Modern & Responsive UI) --- */
:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #E0E7FF;
    --secondary: #10B981;
    --secondary-dark: #059669;
    --danger: #EF4444;
    --warning: #F59E0B;
    --text-main: #111827;
    --text-muted: #6B7280;
    --bg-main: #F9FAFB;
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-block {
    width: 100%;
}

/* --- HEADER VE TOP BAR --- */
.top-bar {
    background-color: #111827;
    color: #D1D5DB;
    font-size: 12px;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #D1D5DB;
    margin-left: 15px;
}

.top-bar a:hover {
    color: #FFF;
}

.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.main-header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
}

.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    position: relative;
}

.search-box form {
    display: flex;
    width: 100%;
    background: #F3F4F6;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: 0.2s;
}

.search-box form:focus-within {
    background: #FFF;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
}

.search-box button {
    background: transparent;
    border: none;
    padding: 0 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}

.search-box button:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 10;
    position: relative;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

.action-btn i {
    font-size: 22px;
    color: var(--primary);
    transition: 0.2s;
}

.action-btn:hover i {
    color: var(--primary-dark);
}

.action-text {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    pointer-events: none;
}

.action-text small {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: -2px;
}

.action-text span {
    font-weight: 700;
    color: var(--text-main);
}

.badge {
    position: absolute;
    top: -5px;
    left: 12px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 0 4px;
    border: 2px solid #FFF;
    pointer-events: none;
}

.main-nav {
    background: #FFF;
    border-bottom: 1px solid var(--border-color);
}

.nav-list {
    list-style: none;
    display: flex;
    font-size: 14px;
    font-weight: 500;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-main);
}

.nav-list li>a:hover {
    color: var(--primary);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFF;
    width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 50;
}

.has-dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px 20px;
    font-weight: 400;
    font-size: 14px;
    border-bottom: 1px solid var(--bg-main);
}

.dropdown-menu li a:hover {
    background: #F9FAFB;
    padding-left: 25px;
    color: var(--primary);
}

/* 3. Seviye ve Sonrası Dropdownlar (Sağa Açılır) */
.dropdown-menu .dropdown-menu {
    top: 0;
    left: 100%;
    /* Tam yanından açılsın */
    margin-top: -3px;
    /* Üstteki yeşil çizgiyi hizala */
    border-radius: var(--radius-md);
}

/* İç içe sekme açık kalma düzeltmesi (CSS Zinciri) */
.nav-list li.has-dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- HERO & PRODUCT GRID --- */
.hero-section {
    margin-top: 20px;
    margin-bottom: 40px;
}

.hero-banner {
    background: linear-gradient(135deg, #4338CA 0%, #4F46E5 100%);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
}

.hero-content h1 {
    font-size: 42px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-banner::after {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 1;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.section-title a {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: 0.3s;
}

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

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--danger);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.fav-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    transition: 0.2s;
}

.fav-btn:hover {
    color: var(--danger);
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

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

.product-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.old-price {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: -2px;
}

.current-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
}

.current-price.discounted {
    color: var(--danger);
}

.add-to-cart-btn {
    background: var(--primary-light);
    color: var(--primary);
    width: 30px;
    height: 30px;
    border-radius: var(--radius-md);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.add-to-cart-btn:hover {
    background: var(--primary);
    color: white;
}

/* --- SIDEBAR CART & MOBILE MENU --- */
.cart-sidebar,
.mobile-sidebar {
    position: fixed;
    top: 0;
    width: 320px;
    height: 100dvh;
    background: #FFF;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-sidebar {
    right: -320px;
}

.mobile-sidebar {
    left: -320px;
}

.cart-sidebar.active {
    transform: translateX(-320px);
}

.mobile-sidebar.active {
    transform: translateX(320px);
}

.cart-overlay,
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.cart-overlay.active,
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-header,
.mobile-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
}

.cart-header button,
.mobile-sidebar-header button {
    background: transparent;
    border: none;
    font-size: 30px;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
}

.cart-header button:hover,
.mobile-sidebar-header button:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: #F9FAFB;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    padding: 0;
    margin: 0;
}

.mobile-menu-list li a {
    transition: 0.2s;
}

.mobile-submenu {
    display: none;
    overflow: hidden;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-search {
    display: none;
    background: #FFF;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-search input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}

.mobile-search input:focus {
    border-color: var(--primary);
}

/* --- FOOTER --- */
.main-footer {
    background: #111827;
    color: #9CA3AF;
    margin-top: 60px;
}

.footer-top {
    padding: 60px 0 40px;
}

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

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: #FFF;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1F2937;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    color: #FFF;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    font-size: 14px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a:hover {
    color: #FFF;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-contact li i {
    color: var(--primary);
    margin-top: 3px;
    font-size: 16px;
}

.nl-form {
    display: flex;
    width: 100%;
}

.nl-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background: #1F2937;
    color: #FFF;
    outline: none;
}

.nl-form button {
    padding: 12px 20px;
    border: none;
    background: var(--primary);
    color: #FFF;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    transition: 0.2s;
}

.nl-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid #1F2937;
    padding: 20px 0;
    font-size: 13px;
}

.payment-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 24px;
    color: #6B7280;
}

/* D-NONE HELPERS */
.d-none-mobile {
    display: block;
}

/* --- MOBİL UYUM (RESPONSIVE) --- */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-footer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .d-none-mobile {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-search {
        display: block;
    }

    .logo {
        font-size: 20px;
    }

    .header-inner {
        height: 60px;
        /* Mobilde ana menüyü incelt */
    }

    .mobile-search {
        display: block;
        padding: 5px 20px;
        /* Mobilde arama boşluklarını incelt */
    }

    .header-actions {
        gap: 15px;
    }

    .action-btn i {
        font-size: 20px;
    }

    .hero-banner {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-banner::after {
        display: none;
    }

    /* mobilde performansı koru */

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .grid-footer {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {

    /* Çok küçük ekranlarda çift satır döküm (Modern E-Ticaret Standardı) */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 28px;
    }
}