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

:root {
    --bg-dark: #1b2a1b;
    --bg-sidebar: #1e2d24;
    --bg-card: #ffffff;
    --bg-main: #f5f6f8;
    --bg-hero: linear-gradient(135deg, #1a3a1a 0%, #0d2b0d 100%);
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --text-light: #a0aec0;
    --text-white: #ffffff;
    --text-sidebar: #c8d6ca;
    --accent-green: #38a169;
    --accent-green-light: #48bb78;
    --accent-green-dark: #276749;
    --accent-red: #e53e3e;
    --accent-orange: #dd6b20;
    --border-color: #e2e8f0;
    --border-sidebar: #2d4a35;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ===== LAYOUT ===== */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1e2d24 0%, #162018 100%);
    color: var(--text-sidebar);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.sidebar-header {
    padding: 12px 16px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-icon {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
}

.logo-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-green-light);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 0 14px;
    overflow-y: auto;
    min-height: 0;
}

.sidebar-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(160,174,192,0.6);
    margin-bottom: 10px;
    text-transform: uppercase;
    padding-left: 4px;
}

/* Öne Çıkanlar featured link */
.category-link[data-id="featured"] {
    background: rgba(56, 161, 105, 0.08);
    margin-bottom: 12px;
    border: 1px solid rgba(56, 161, 105, 0.15);
}

.category-link[data-id="featured"] .cat-icon {
    background: rgba(246, 194, 62, 0.15);
    color: #f6c23e;
}

.category-link[data-id="featured"].active {
    background: rgba(56, 161, 105, 0.2);
    border-color: rgba(56, 161, 105, 0.3);
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 2px;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-sidebar);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-link:hover {
    background: rgba(56, 161, 105, 0.1);
    color: var(--text-white);
}

.category-link.active {
    background: rgba(56, 161, 105, 0.15);
    color: var(--accent-green-light);
}

.category-link .cat-icon {
    width: 28px;
    height: 28px;
    background: rgba(56, 161, 105, 0.12);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--accent-green-light);
    flex-shrink: 0;
}

.category-link .cat-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.category-link.expanded .cat-arrow {
    transform: rotate(180deg);
}

/* Alt kategoriler */
.sub-category-list {
    list-style: none;
    padding-left: 48px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sub-category-list.open {
    max-height: 1000px;
}

.sub-category-item {
    margin-bottom: 2px;
}

.sub-category-link {
    display: block;
    padding: 8px 12px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sub-category-link:hover {
    color: var(--text-white);
    background: rgba(56, 161, 105, 0.08);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 14px;
    border-top: 1px solid var(--border-sidebar);
    margin-top: auto;
    flex-shrink: 0;
}

.footer-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(160,174,192,0.6);
    margin-bottom: 10px;
    padding-left: 2px;
}

.footer-contact-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-icon-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.footer-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.footer-icon-btn.phone-btn { background: rgba(56, 161, 105, 0.25); color: var(--accent-green-light); }
.footer-icon-btn.phone-btn:hover { background: var(--accent-green); color: white; }
.footer-icon-btn.wa-btn { background: rgba(37, 211, 102, 0.2); color: #25d366; }
.footer-icon-btn.wa-btn:hover { background: #25d366; color: white; }
.footer-icon-btn.mail-btn { background: rgba(160, 174, 192, 0.15); color: var(--text-light); }
.footer-icon-btn.mail-btn:hover { background: var(--text-light); color: #1a202c; }
.footer-icon-btn.map-btn { background: rgba(229, 62, 62, 0.15); color: #fc8181; }
.footer-icon-btn.map-btn:hover { background: var(--accent-red); color: white; }

.sidebar-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-credit img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}
.sidebar-credit span {
    font-size: 10px;
    color: rgba(160,174,192,0.5);
    line-height: 1.4;
}
.sidebar-credit strong {
    color: rgba(200,214,202,0.7);
}

.facebook-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    margin-bottom: 10px;
    background: rgba(24, 119, 242, 0.1);
    border: 1px solid rgba(24, 119, 242, 0.2);
    border-radius: 8px;
    text-decoration: none;
    color: #a0c4f5;
    transition: all 0.2s ease;
}
.facebook-link:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: rgba(24, 119, 242, 0.35);
    color: #cce0ff;
}
.facebook-link-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #1877f2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.facebook-link-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #25d366;
    color: white;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.whatsapp-btn:hover {
    background: #128c7e;
    transform: scale(1.1);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    width: calc(100% - 260px);
    margin-left: 260px;
    padding: 0 32px 40px;
}

/* ===== TOP BAR ===== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: var(--bg-main);
    z-index: 50;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 16px;
    gap: 10px;
    width: 260px;
    transition: border-color 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

.search-box i {
    color: var(--text-light);
    font-size: 14px;
}

.search-box input {
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-primary);
    background: transparent;
    width: 100%;
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--text-light);
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-green);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-green);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-letter {
    color: white;
    font-size: 16px;
    font-weight: 700;
}

/* User area */
.user-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-btn {
    padding: 9px 18px;
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
}

.login-btn:hover {
    background: var(--accent-green-dark);
}

.panel-link {
    padding: 9px 16px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.panel-link:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* User dropdown */
.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 200;
    display: none;
    overflow: hidden;
}

.user-dropdown.open {
    display: block;
}

.user-dropdown-header {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-dropdown-header strong {
    font-size: 14px;
}

.user-dropdown-header span {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.user-dropdown-item:hover {
    background: #f7fafc;
    color: #e53e3e;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    position: relative;
    background: url('https://images.unsplash.com/photo-1504280390367-361c6d9f38f4?w=1200&h=400&fit=crop') center/cover no-repeat;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: stretch;
    margin-bottom: 36px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 50, 15, 0.92) 0%, rgba(10, 35, 10, 0.7) 60%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 48px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-text {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 24px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-green);
    color: white;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-btn:hover {
    background: var(--accent-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.4);
}

.hero-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.hero-btn:hover i {
    transform: translateX(4px);
}

/* ===== HERO POPULAR PRODUCTS ===== */
.hero-popular {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px 24px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.hero-popular::-webkit-scrollbar {
    display: none;
}

.popular-card {
    min-width: 160px;
    max-width: 160px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.popular-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.popular-card-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.popular-card-info {
    padding: 10px 12px;
}

.popular-card-name {
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popular-card-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-green-light);
}

.popular-card-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.popular-card-rating .star {
    color: #f6c23e;
    font-size: 10px;
}

.popular-label {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    padding: 0 8px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

/* ===== FEATURED SECTION ===== */
.featured-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.section-nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(56, 161, 105, 0.05);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f7fafc;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.product-info {
    padding: 16px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 13px;
}

.product-rating .star {
    color: #f6c23e;
    font-size: 12px;
}

.product-rating .rating-value {
    font-weight: 600;
    color: var(--text-primary);
}

.product-rating .review-count {
    color: var(--text-light);
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price-group {
    display: flex;
    flex-direction: column;
}

.product-old-price {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-price .currency {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-green);
}

/* ===== LOADING ===== */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.hamburger-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* ===== SIDEBAR OVERLAY ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* ===== SIDEBAR CLOSE BUTTON ===== */
.sidebar-close-btn {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-sidebar);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 101;
    transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ===== RESPONSIVE ===== */

/* Large screens */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-content {
        max-width: 360px;
        padding: 32px 36px;
    }

    .hero-title {
        font-size: 30px;
    }

    .popular-card {
        min-width: 140px;
        max-width: 140px;
    }
}

/* Medium screens */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-banner {
        flex-direction: column;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        padding: 28px 24px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-popular {
        padding: 0 24px 24px;
        gap: 10px;
    }

    .popular-label {
        writing-mode: horizontal-tb;
        padding: 0 24px 8px;
    }

    .search-box {
        width: 220px;
    }
}

/* Tablet and mobile */
@media (max-width: 768px) {
    /* Hamburger visible */
    .hamburger-btn {
        display: flex;
    }

    /* Sidebar overlay */
    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.active {
        pointer-events: auto;
    }

    /* Sidebar mobile behavior */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: none;
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    }

    .sidebar-close-btn {
        display: flex;
    }

    /* Full viewport layout */
    .layout {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    /* Main content fills screen */
    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 0 10px;
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        overflow: auto;
    }

    /* Compact top bar */
    .top-bar {
        gap: 8px;
        padding: 8px 0;
        flex-shrink: 0;
        flex-wrap: nowrap;
        align-items: center;
    }

    .top-bar-left {
        flex: 1;
        min-width: 0;
    }

    .page-title {
        font-size: 15px;
    }

    .page-subtitle {
        display: none;
    }

    .top-bar-right {
        gap: 6px;
        flex-wrap: nowrap;
        width: auto;
        justify-content: flex-end;
    }

    .search-box {
        width: 140px;
        padding: 7px 10px;
        gap: 6px;
        order: 0;
        flex: 0 1 auto;
    }

    .search-box input {
        font-size: 13px;
    }

    .search-box i {
        font-size: 12px;
    }

    /* User area compact */
    .login-btn {
        padding: 7px 10px;
        font-size: 12px;
    }

    .panel-link {
        padding: 7px 10px;
        font-size: 11px;
    }

    .user-avatar {
        width: 34px;
        height: 34px;
    }

    .hamburger-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    /* Hero banner - mobile compact */
    .hero-banner {
        display: flex;
        flex-direction: column;
        min-height: 140px;
        border-radius: 12px;
        margin-bottom: 12px;
    }

    .hero-overlay {
        background: linear-gradient(135deg, rgba(15, 50, 15, 0.93) 0%, rgba(10, 35, 10, 0.75) 50%, rgba(0,0,0,0.35) 100%);
    }

    .hero-content {
        padding: 18px 20px;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 9px;
        padding: 4px 10px;
        margin-bottom: 8px;
    }

    .hero-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .hero-text {
        font-size: 11px;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-btn {
        padding: 9px 20px;
        font-size: 12px;
        border-radius: 8px;
    }

    .hero-popular {
        display: none;
    }

    /* Section header compact */
    .featured-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: visible;
        margin-bottom: 0;
        min-height: 0;
    }

    .section-header {
        margin-bottom: 8px;
        flex-shrink: 0;
    }

    .section-title {
        font-size: 15px;
    }

    .section-subtitle {
        font-size: 11px;
    }

    .nav-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    /* Products grid - fills remaining space, scrollable */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 16px;
        -webkit-overflow-scrolling: touch;
        align-items: stretch;
        align-content: start;
        grid-auto-rows: auto;
    }

    /* Hide scrollbar but keep scrollable */
    .products-grid::-webkit-scrollbar {
        display: none;
    }

    .products-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* ---- Product card - mobile optimized ---- */
    .product-card {
        border-radius: var(--radius-sm);
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .product-card:hover {
        transform: none;
    }

    .product-card:active {
        transform: scale(0.98);
    }

    .product-image-wrapper {
        height: 110px;
        min-height: 110px;
        max-height: 110px;
        flex-shrink: 0;
        overflow: hidden;
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }

    .product-info {
        padding: 8px 10px 10px;
        display: flex;
        flex-direction: column;
        overflow: visible;
        flex: 1;
    }

    .product-rating {
        margin-bottom: 2px;
        font-size: 11px;
    }

    .product-rating .star {
        font-size: 10px;
    }

    .product-name {
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 2px;
        -webkit-line-clamp: 1;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-height: 1.3;
    }

    /* Hide description on mobile to keep cards compact */
    .product-desc {
        display: none;
    }

    /* Price always visible at card bottom */
    .product-footer {
        margin-top: 4px;
        padding-top: 0;
        flex-shrink: 0;
    }

    .product-price {
        font-size: 15px;
        font-weight: 700;
    }

    .product-price .currency {
        font-size: 12px;
    }

    .product-old-price {
        font-size: 10px;
    }

    .product-badge {
        padding: 2px 8px;
        font-size: 9px;
        top: 6px;
        left: 6px;
    }

    /* Toast */
    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .main-content {
        padding: 0 8px;
    }

    .top-bar {
        padding: 6px 0;
    }

    .page-title {
        font-size: 14px;
    }

    .search-box {
        width: 120px;
        padding: 6px 8px;
    }

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

    /* Products grid */
    .products-grid {
        gap: 8px;
        align-items: stretch;
        align-content: start;
    }

    .product-image-wrapper {
        height: 90px;
        min-height: 90px;
        max-height: 90px;
    }

    .product-info {
        padding: 6px 8px 8px;
    }

    .product-name {
        font-size: 12px;
    }

    .product-rating {
        font-size: 10px;
    }

    .product-rating .star {
        font-size: 9px;
    }

    .product-desc {
        display: none;
    }

    .product-price {
        font-size: 15px;
    }

    .product-price .currency {
        font-size: 12px;
    }

    .product-old-price {
        font-size: 8px;
    }

    .section-header {
        margin-bottom: 6px;
    }

    .section-title {
        font-size: 14px;
    }

    .section-subtitle {
        display: none;
    }

    .nav-btn {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    /* Login/Panel buttons */
    .login-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .panel-link {
        padding: 6px 8px;
        font-size: 10px;
    }

    .panel-link i + span {
        display: none;
    }

    /* User dropdown */
    .user-dropdown {
        right: -10px;
    }

    .hamburger-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }
}

/* ===== SCROLLBAR ===== */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-sidebar);
    border-radius: 4px;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1a202c;
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast .toast-icon {
    color: var(--accent-green);
}

/* ===== LİSTE BUTONU ===== */
.list-toggle-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.list-toggle-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(56, 161, 105, 0.05);
}
.list-toggle-btn .list-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--accent-red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* ===== LİSTE PANELİ ===== */
.list-panel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    -webkit-tap-highlight-color: transparent;
}
.list-panel-overlay.active {
    display: block;
}
.list-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100%;
    height: 100dvh;
    background: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
}
.list-panel.open {
    right: 0;
}
.list-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
}
.list-panel-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.list-panel-header h3 i {
    color: var(--accent-green);
}
.list-panel-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f7fafc;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.list-panel-close:hover {
    background: #edf2f7;
    color: var(--accent-red);
}
.list-panel-name-row {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}
.list-panel-name-row input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}
.list-panel-name-row input:focus {
    border-color: var(--accent-green);
}
.list-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}
.list-panel-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}
.list-panel-empty i {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}
.list-panel-empty p {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-secondary);
}
.list-panel-empty span {
    font-size: 12px;
}

/* Liste Ürün Kartı */
.list-item-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 10px;
    margin-bottom: 8px;
    position: relative;
}
.list-item-img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
}
.list-item-info {
    flex: 1;
    min-width: 0;
}
.list-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
.list-item-name:hover {
    color: var(--accent-green);
}
.list-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}
.list-item-price .currency {
    color: var(--accent-green);
    font-size: 12px;
}
.list-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(229, 62, 62, 0.1);
    color: var(--accent-red);
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.list-item-remove:hover {
    background: var(--accent-red);
    color: white;
}

/* Silinen ürün - liste paneli */
.list-item-deleted {
    background: #fff5f5;
    border: 1px dashed #e53e3e;
    align-items: center;
}
.list-item-deleted-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #fed7d7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.list-item-deleted-icon i {
    font-size: 22px;
    color: #e53e3e;
}

/* Liste Footer */
.list-panel-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: #fafafa;
}
.list-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.list-total-row span:first-child {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}
.list-total-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-green-dark);
}
.list-share-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: var(--accent-green);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}
.list-share-btn:hover {
    background: var(--accent-green-dark);
}
.list-share-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}
.list-share-result {
    margin-top: 12px;
}
.share-link-box {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.share-link-box input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 12px;
    font-family: monospace;
    color: var(--text-primary);
    background: white;
    outline: none;
}
.share-link-box button {
    width: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}
.share-link-box button:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}
.share-buttons {
    display: flex;
    gap: 8px;
}
.share-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}
.share-wa-btn {
    background: #25d366;
    color: white;
}
.share-wa-btn:hover { background: #128c7e; }
.share-copy-btn {
    background: #4a5568;
    color: white;
}
.share-copy-btn:hover { background: #2d3748; }

/* Ürün kartındaki listeye ekle butonu */
.product-add-list-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.product-add-list-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: rgba(56, 161, 105, 0.05);
}
.product-add-list-btn.in-list {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: white;
}
.product-add-list-btn.in-list:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

/* Responsive */
@media (max-width: 768px) {
    .list-toggle-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
        border-radius: 8px;
    }
    .list-toggle-btn .list-badge {
        min-width: 16px;
        height: 16px;
        font-size: 9px;
        top: -4px;
        right: -4px;
    }
    .list-panel {
        width: 100%;
        max-width: 100vw;
        right: -100%;
    }
    .list-panel.open {
        right: 0;
    }
    .product-add-list-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
        border-radius: 6px;
    }
}
