﻿/* ===== RESET & TEMEL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== TOPBAR ===== */
.topbar {
    background: #0f172a;
    color: #94a3b8;
    padding: 8px 0;
    font-size: 13px;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar-left {
    display: flex;
    gap: 20px;
}

.topbar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-right {
    display: flex;
    gap: 16px;
}

.topbar-right a {
    color: #94a3b8;
    transition: color 0.3s;
}

.topbar-right a:hover {
    color: #f1f5f9;
}

/* ===== HEADER ===== */
.header {
    background: #fff;
    padding: 16px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.logo i {
    color: #3b82f6;
    font-size: 28px;
}

/* ===== SEARCH ===== */
.search-box {
    flex: 1;
    max-width: 500px;
}

.search-box form {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 30px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.search-box form:focus-within {
    border-color: #3b82f6;
}

.search-box input {
    flex: 1;
    padding: 10px 18px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-box button {
    padding: 10px 20px;
    background: #3b82f6;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #2563eb;
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-btn {
    position: relative;
    font-size: 24px;
    color: #0f172a;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== MAIN NAV ===== */
.main-nav {
    background: #1e293b;
    color: #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav .container {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #f1f5f9;
    font-size: 24px;
    padding: 12px 0;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    gap: 2px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.nav-menu > li > a:hover {
    background: #334155;
    color: #f1f5f9;
}

.nav-menu > li > a i.fa-chevron-down {
    font-size: 10px;
}

/* DROPDOWN */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e293b;
    min-width: 200px;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 20px;
    color: #cbd5e1;
    font-size: 14px;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background: #334155;
    color: #f1f5f9;
}

/* MOBILE NAV */
.mobile-nav {
    display: none;
    background: #0f172a;
    padding: 16px;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav ul li a {
    color: #cbd5e1;
    padding: 6px 0;
    display: block;
}

.mobile-nav ul li ul {
    padding-left: 20px;
}

.mobile-nav.show {
    display: block;
}

/* ===== SLIDER ===== */
.slider-section {
    margin-bottom: 40px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    max-height: 500px;
}

.slide {
    display: none;
    position: relative;
    width: 100%;
}

.slide.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 60px;
    left: 60px;
    color: #fff;
    max-width: 500px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.slide-content h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.slide-content p {
    font-size: 18px;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 5;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(0,0,0,0.7);
}

.slider-prev {
    left: 16px;
}

.slider-next {
    right: 16px;
}

.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots .dot.active {
    background: #fff;
}

/* ===== SECTION ===== */
.section {
    padding: 40px 0;
}

.section.bg-light {
    background: #f1f5f9;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: #0f172a;
}

/* ===== CATEGORY GRID ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.category-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-card a {
    display: block;
    padding: 16px;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.product-card h3 {
    font-size: 14px;
    font-weight: 500;
    margin: 12px 0 8px;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
}

/* ===== FOOTER ===== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #f1f5f9;
    font-size: 18px;
    margin-bottom: 12px;
}

.footer-col p {
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1e293b;
    border-radius: 50%;
    color: #94a3b8;
    transition: background 0.3s, color 0.3s;
}

.social-links a:hover {
    background: #3b82f6;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a {
    color: #94a3b8;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #f1f5f9;
}

.footer-col ul li i {
    margin-right: 8px;
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 16px 0;
    text-align: center;
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .search-box {
        max-width: 300px;
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .topbar {
        display: none;
    }

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

    .nav-menu {
        display: none;
    }

    .search-box {
        max-width: 200px;
    }

    .search-box input {
        padding: 6px 12px;
        font-size: 12px;
    }
    .search-box button {
        padding: 6px 12px;
    }

    .logo a {
        font-size: 18px;
    }
    .logo i {
        font-size: 20px;
    }

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

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

    .slide-content {
        left: 20px;
        bottom: 40px;
    }
    .slide-content h2 {
        font-size: 20px;
    }
    .slide-content p {
        font-size: 14px;
    }

    .slide img {
        height: 250px;
    }

    .slider-prev,
    .slider-next {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .section {
        padding: 24px 0;
    }
    .section-title {
        font-size: 22px;
    }

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

@media (max-width: 480px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }
    .search-box {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}