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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #5e4932 0%, #f1c27d 100%);
    color: #2b2118;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo i {
    font-size: 2rem;
    color: #ffd700;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2b2118;
    margin: 0;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: translateY(-2px);
}

/* Image logo inside header */
.logo img.logo-img {
    height: 40px;
    width: auto;
    display: block;
    border: 0;
}

@media (max-width: 480px) {
    .logo img.logo-img { height: 32px; }
}

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100vw;
    height: 36.46vw;
    max-height: 700px;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Force homepage banner full width and height */
.banner-slider.banner-full {
    width: 100vw !important;
    height: 36.46vw !important;
    max-height: 700px !important;
    margin-left: calc(-50vw + 50%) !important;
    border-radius: 0 !important;
}

/* Ensure children fill the forced height */
.banner-slider.banner-full .slider-container,
.banner-slider.banner-full .slide,
.banner-slider.banner-full .slide img {
    height: 100% !important;
    width: 100% !important;
}

/* Responsive overrides for homepage banner */
@media (max-width: 768px) {
    .banner-slider.banner-full {
        height: 36.46vw !important;
        max-height: 400px !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .banner-slider.banner-full {
        height: 36.46vw !important;
        max-height: 250px !important;
        margin-bottom: 0 !important;
    }
}

/* Özel düzeltme: Telefon dik konumda boşluk kaldır */
@media (max-width: 480px) and (orientation: portrait) {
    .banner-slider,
    .banner-slider.banner-full {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }
    
    .main-content-area {
        padding-top: 0 !important;
        margin-top: 0 !important;
        padding: 0 15px 1rem !important;
    }
    
    .products-main {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .products-header {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Banner responsive sizing - Kaliteli görüntü koruması */
.banner-slider .slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: all 0.3s ease;
    background: transparent;
}

/* Banner image optimization for different screen sizes */
@media (max-width: 768px) {
    .banner-slider {
        height: 600px;
        border-radius: 0;
    }
    
    .banner-slider .slide img {
        object-position: center center;
        border-radius: 0;
    }
    
    .slide {
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .banner-slider {
        height: 400px;
        border-radius: 0;
        margin-left: calc(-50vw + 50%);
        margin-bottom: 1rem;
    }
    
    .banner-slider .slide img {
        object-position: center center;
        border-radius: 6px;
    }
    
    .slide {
        border-radius: 6px;
    }
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.slider-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

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

.dot.active,
.dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Responsive Slider */
@media (max-width: 768px) {
    .banner-slider {
        height: 600px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-nav.prev {
        left: 10px;
    }
    
    .slider-nav.next {
        right: 10px;
    }
}

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

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Header cart badge */
.nav .nav-cart { position: relative; }
.cart-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    margin-left: 6px;
    min-width: 18px;
}

.btn-add {
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white !important;
    font-weight: 600;
    padding: 0.7rem 1.5rem !important;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

.btn-add:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,107,107,0.4);
}



/* Main Content Area */
.main-content-area {
    display: grid;
    grid-template-columns: 360px 1fr 240px; /* sol kategori alanını genişlet */
    max-width: none; /* tam genişlik */
    width: 100%;
    margin: 0; /* ortalamayı kaldır, sola yasla */
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem 0.5rem; /* üst padding azaltıldı */
    min-height: calc(100vh - 400px);
}



/* Sidebar - Minimal ve Kompakt */
.sidebar {
    width: 360px; /* geniş alan */
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 85px; /* üstten daha az mesafe */
}

.sidebar-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-header i {
    color: #667eea;
    font-size: 1rem;
}

.category-menu {
    padding: 0;
}

.category-item {
    margin-bottom: 0;
}

.category-item:last-child {
    margin-bottom: 0;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px; /* daha büyük padding */
    background: transparent;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    width: 100%;
    text-align: left;
    font-size: 16px; /* font büyütüldü */
    font-weight: 600;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.2;
    min-height: 52px; /* minimum yükseklik */
}

.category-link:hover {
    background: #f8f9fa;
    color: #667eea;
    border-color: #e1e6ff; /* daha yumuşak border rengi */
}

.category-link.active {
    background: #f1a661;
    color: #2b2118;
    border-color: #f1a661;
}

.category-icon {
    margin-right: 8px;
    font-size: 13px;
    width: 16px;
    text-align: center;
}

.expand-icon {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.expand-icon.expanded {
    transform: rotate(90deg);
}

.subcategory-list {
    margin-top: 0.05rem;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
}

.subcategory-list.expanded {
    max-height: 200px;
}

.subcategory-item {
    display: block;
    padding: 8px 10px 8px 20px; /* daha büyük padding */
    color: #6c757d;
    text-decoration: none;
    font-size: 14px; /* font büyütüldü */
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-bottom: 3px;
    line-height: 1.2;
    min-height: 36px; /* minimum yükseklik */
    display: flex;
    align-items: center;
}

.subcategory-item:hover {
    background: #f0f4ff;
    color: #667eea;
    padding-left: 24px;
}

.subcategory-item.active {
    background: #667eea;
    color: white;
    font-weight: 500;
}

/* Products Main Area */
.products-main {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Active Filters */
.active-filters {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    background: #f1a661;
    color: #2b2118;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag i {
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter-tag i:hover {
    color: #ffd700;
}

.clear-filters-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* Admin Link */
.admin-link {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    color: white !important;
    font-weight: 600;
    padding: 0.7rem 1.5rem !important;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

/* Sidebar v2 — Minimal, compact, consistent */
.sidebar {
    width: 360px !important; /* daha geniş */
    padding: 16px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.sidebar-header { display: none !important; }

.category-menu { display: block; margin: 0; padding: 0; }
.category-item { margin: 4px 0; }

.category-link {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 58px; /* belirgin şekilde daha büyük */
    padding: 0 20px; /* daha geniş yatay boşluk */
    border-radius: 10px;
    text-decoration: none;
    color: #212529;
    background: transparent;
    border: none;
    font-size: 18px; /* daha büyük yazı */
    font-weight: 700;
}

.category-link:hover { background: #f0f2f5; color: #3f51b5; }
.category-link.active { background: #eef1ff; color: #3f51b5; font-weight: 600; }

.category-icon { width: 26px; text-align: center; font-size: 20px; margin-right: 0; }
.expand-icon { margin-left: auto; font-size: 16px; color: #98a2b3; }
.expand-icon.expanded { transform: rotate(90deg); }

.subcategory-list { display: none; padding-left: 0; margin-top: 4px; }
.subcategory-list.expanded { display: block; }

.subcategory-item {
    display: block;
    min-height: 42px; /* tek satırda daha büyük yükseklik */
    line-height: 1.4; /* çok satırda rahat okuma */
    padding: 10px 14px 10px 26px; /* daha geniş padding */
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-size: 16px;
    margin: 6px 0; /* öğeler arası boşluk */
    white-space: normal; /* satır sarmayı aç */
    word-break: break-word; /* uzun kelimeleri böl */
    overflow-wrap: anywhere; /* çok uzun dizilerde de böl */
}

.subcategory-item:hover { background: #f7f7fa; color: #3f51b5; }
.subcategory-item.active { background: #dfe6ff; color: #243a80; font-weight: 600; }

.admin-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

/* Products Section */
.products {
    padding: 4rem 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-box {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102,126,234,0.2);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    align-items: stretch;
}

/* Landscape kategori menüsünü normal modda gizle */
.landscape-category-menu {
    display: none;
}

/* Desktop Grid Optimizations */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1600px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2.5rem;
    }
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    max-width: 100%;
    min-width: 0; /* prevent overflow */
    word-wrap: break-word; /* break long words */
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 260px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* tamamı sığsın */
    object-position: center center;
    background-color: #fff;
}

.product-image i {
    font-size: 3rem;
    color: #dee2e6;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.product-category {
    color: #f1a661;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.product-description {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 1rem;
}

.product-contact {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Cart & Checkout */
.cart-container, .checkout-container {
    padding: 2rem 0;
}

.cart-grid, .checkout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    padding: 1.25rem;
}

.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid #eee; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-item-title { font-weight: 600; }
.cart-item-price { font-weight: 700; color: #2b2118; }
.qty-input { width: 64px; padding: .4rem .5rem; border-radius: 8px; border: 1px solid #e9ecef; }
.remove-btn { background: transparent; border: none; color: #dc3545; cursor: pointer; }

.summary-row { display: flex; justify-content: space-between; margin: .5rem 0; }
.summary-total { font-weight: 800; font-size: 1.1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group input, .form-group select, .form-group textarea { padding: .7rem .9rem; border: 1.5px solid #e9ecef; border-radius: 8px; }
.form-actions { margin-top: 1rem; }
.btn-primary { background: #28a745; color: #fff; border: none; padding: .8rem 1.2rem; border-radius: 10px; cursor: pointer; font-weight: 700; }
.btn-secondary { background: #667eea; color: #fff; border: none; padding: .7rem 1rem; border-radius: 8px; cursor: pointer; font-weight: 600; }

@media (max-width: 900px) {
    .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
}

.contact-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.contact-phone {
    background: #28a745;
    color: white;
}

.contact-phone:hover {
    background: #218838;
    transform: translateY(-2px);
}

.contact-email {
    background: #17a2b8;
    color: white;
}

.contact-email:hover {
    background: #138496;
    transform: translateY(-2px);
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.no-products p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Add Product Page */
.add-product {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.form-container h2 i {
    color: #667eea;
    margin-right: 0.5rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.form-group label i {
    margin-right: 0.5rem;
    color: #667eea;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102,126,234,0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-upload-label i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 2px solid #e9ecef;
}

.contact-info h3 {
    color: #495057;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.contact-info h3 i {
    color: #667eea;
    margin-right: 0.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Generic primary button (ensure visible in settings forms) */
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a42a1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-danger-small {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
    cursor: pointer;
}
.btn-danger-small:hover { background: #c82333; }

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.modal-header i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
    text-align: center;
    color: #495057;
}

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

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Footer */
.footer {
    background: #343a40;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: #adb5bd;
    margin-bottom: 0.5rem;
}

.footer-section i {
    margin-right: 0.5rem;
    color: #f1a661;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #495057;
    color: #adb5bd;
}

/* Mobile Sidebar Toggle */
.sidebar-toggle {
    display: none;
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}

/* Landscape Phone Optimization (Yatay Telefon) */
@media screen and (max-height: 500px) and (orientation: landscape) {
    /* Make content full-bleed in phone landscape */
    .container { max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
    .products-main, #products-grid { width: 100% !important; max-width: 100% !important; margin: 0 !important; }
    .products { padding-left: 0; padding-right: 0; }
    /* Category page full-bleed */
    .category-main { padding: 0 !important; width: 100% !important; max-width: 100% !important; }
    .category-page-header, .breadcrumb-container { margin: 0 !important; border-radius: 0 !important; padding-left: 6px !important; padding-right: 6px !important; }
    #products-grid { width: 100% !important; max-width: 100% !important; padding-left: 4px !important; padding-right: 4px !important; }
    .products-section { padding-left: 0 !important; padding-right: 0 !important; }
    .products-grid > .product-card { width: 100%; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; justify-items: stretch; align-items: stretch; }
    .products-grid > * { min-width: 0; }
    .header .container {
        padding: 0 15px;
        min-height: 50px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .banner-slider {
        height: 300px; /* daha kompakt banner */
    }
    
    /* ANA İÇERİK ALANINI TAM EKRAN YAP */
    .main-content-area {
        padding: 0 15px;
        gap: 0;
        grid-template-columns: 1fr; /* SADECE CONTENT, SİDEBAR YOK */
    }
    
    /* SİDEBAR'I TAMAMEN GİZLE */
    .sidebar {
        display: none !important;
    }
    
    /* EN ÇOK SATANLARI DA GİZLE */
    .best-sellers {
        display: none !important;
    }
    
    .products-main { padding: 0.25rem 4px; width: 100%; max-width: 100%; }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    /* KATEGORİ LİNKLERİNİ ÜST HEADER'A EKLEYELİM */
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* LANDSCAPE MOBIL KATEGORİ MENÜSÜ */
    .landscape-category-menu {
        display: block !important;
        width: 100%;
        padding: 0.3rem 0.5rem;
        background: rgba(94, 73, 50, 0.95);
        position: sticky;
        top: 50px;
        z-index: 999;
        overflow-x: auto;
        white-space: nowrap;
        backdrop-filter: blur(10px);
        border-bottom: 2px solid #f1c27d;
    }
    
    .landscape-category-menu::-webkit-scrollbar {
        height: 3px;
    }
    
    .landscape-category-menu::-webkit-scrollbar-thumb {
        background: #f1c27d;
        border-radius: 3px;
    }
    
    .landscape-category-item {
        display: inline-block;
        margin-right: 0.5rem;
        padding: 0.3rem 0.8rem;
        background: rgba(241, 194, 125, 0.2);
        color: #f1c27d;
        border-radius: 15px;
        text-decoration: none;
        font-size: 0.8rem;
        border: 1px solid rgba(241, 194, 125, 0.3);
        transition: all 0.2s ease;
    }
    
    .landscape-category-item:hover,
    .landscape-category-item.active {
        background: #f1c27d;
        color: #2b2118;
        transform: translateY(-1px);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* tam 2 sütun */
        gap: 0.3rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .product-card {
        border-radius: 6px;
        min-width: 0;
        overflow: hidden;
    }
    
    .product-image { height: 90px; width: 100%; }
    .product-image img { object-fit: contain; } /* tamamı sığsın */
    
    .product-info {
        padding: 0.3rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .product-title {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 0.2rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .product-category { display: none; }
    
    .product-description {
        display: none; /* açıklama gizli */
    }
    
    .product-price {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
        font-weight: 700;
        color: #e74c3c;
    }
    
    .contact-btn { display: none; }
    
    .category-menu {
        margin: 0;
        padding: 0;
    }
    
    .category-item {
        margin: 2px 0;
    }
    
    .category-link {
        height: 50px;
        padding: 0 8px;
        font-size: 14px;
        overflow: hidden;
        white-space: nowrap;
        justify-content: flex-start;
        gap: 8px;
    }
    
    .category-icon {
        width: 20px;
        font-size: 16px;
        flex-shrink: 0;
        text-align: center;
    }
    
    .category-link span {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .sidebar:hover .category-link span {
        opacity: 1;
    }
    
    .expand-icon {
        display: none;
    }
    
    .subcategory-list {
        display: none !important;
    }
    
    .sidebar:hover .subcategory-list.expanded {
        display: block !important;
    }
    
    /* Sidebar toggle is not used in phone landscape anymore (drawer used) */
    .sidebar-toggle { display: none !important; }
    
    /* Admin Panel Landscape */
    .admin-nav-container {
        padding: 0.5rem 1rem;
        min-height: 50px;
    }
    
    .admin-nav {
        gap: 0.5rem;
    }
    
    .admin-nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .admin-container {
        padding: 0 1rem;
    }
    
    .admin-page-title {
        font-size: 1.4rem;
        padding: 0.5rem 0;
    }
    
    .admin-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* Mobile Product Category Optimization */
@media (max-width: 768px) {
    .product-category {
        font-size: 0.8rem !important; /* mobile'da küçük kategori */
        margin-bottom: 0.6rem !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content-area {
        gap: 0.75rem;
        padding: 0.75rem 1.25rem 1.25rem; /* üst padding azaltıldı */
        grid-template-columns: 280px 1fr 200px; /* tablet için optimize */
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .sidebar {
        width: 280px;
        padding: 12px !important;
        top: 75px; /* tablet için daha kompakt */
    }
    
    .best-sellers {
        top: 75px; /* tablet için daha kompakt */
    }
    
    .category-link {
        height: 52px;
        font-size: 16px;
        padding: 0 16px;
    }
    
    .subcategory-item {
        min-height: 38px;
        padding: 8px 12px 8px 22px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0; /* header genel padding'i azalt */
    }
    
    .header .container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.25rem 15px; /* container padding'i minimal */
        min-height: 50px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .main-content-area {
        grid-template-columns: 1fr;
        padding: 0 15px 1rem; /* mobile için üst padding sıfır */
        gap: 0.75rem;
    }
    
    .best-sellers {
        width: 100%;
        position: static;
        order: 3;
        margin-top: 1rem;
    }
    
    .sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 2000;
        transition: left 0.3s ease;
        border-radius: 0;
        overflow-y: auto;
        background: white !important;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1) !important;
        padding: 1rem !important;
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .sidebar-toggle {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* mobile'da kesinlikle yan yana 2 ürün */
        gap: 1rem; /* gap azaltıldı */
        width: 100%;
        max-width: 100%;
    }
    
    .product-card {
        margin: 0;
        max-width: 100%;
    }
    
    .product-image { height: 180px; }
    
    .product-info {
        padding: 1rem; /* padding azaltıldı */
    }
    
    .product-title {
        font-size: 1.1rem; /* font küçültüldü */
        line-height: 1.3;
        margin-bottom: 0.4rem;
    }
    
    .product-description {
        font-size: 0.9rem;
        -webkit-line-clamp: 2; /* sadece 2 satır göster */
        margin-bottom: 0.75rem;
    }
    
    .product-price {
        font-size: 1.2rem; /* fiyat fontu küçültüldü */
        margin-bottom: 0.75rem;
    }
    
    .product-contact {
        flex-direction: column;
        gap: 0.5rem; /* butonlar arası boşluk azaltıldı */
    }
    
    .contact-btn {
        padding: 0.6rem 0.5rem; /* buton padding'i azaltıldı */
        font-size: 0.85rem;
    }
    
    .active-filters {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }
    
    .filter-tags {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        margin: 0 15px;
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}

/* Best Sellers Section */
.best-sellers {
    width: 240px;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 85px; /* sidebar ile aynı hizaya getir */
}

.best-sellers-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1c27d;
}

.best-sellers-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #5e4932;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.best-sellers-header i {
    color: #ff6b35;
    font-size: 1.3rem;
}

.best-sellers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.best-seller-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.best-seller-item:hover {
    border-color: #f1c27d;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(241, 194, 125, 0.3);
    text-decoration: none;
    color: inherit;
}

.best-seller-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.best-seller-image i {
    font-size: 1.5rem;
    color: #dee2e6;
}

.best-seller-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.best-seller-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.best-seller-price {
    font-size: 1rem;
    font-weight: 700;
    color: #667eea;
}

.best-seller-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.no-best-sellers {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.no-best-sellers i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
    display: block;
}

/* Best Sellers Admin Page Styles */
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.page-title-section h2 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.page-description {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.page-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.admin-content-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f3f4;
}

.section-header h3 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.best-sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.best-seller-admin-card {
    border: 2px solid #f1f3f4;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.best-seller-admin-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.best-seller-admin-card.active {
    border-color: #28a745;
}

.best-seller-admin-card.inactive {
    border-color: #dc3545;
    opacity: 0.7;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.order-badge {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.8rem;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.card-content {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
}

.card-content .product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content .product-image i {
    font-size: 2rem;
    color: #dee2e6;
}

.product-info {
    flex: 1;
}

.product-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
}

.product-category {
    font-size: 0.9rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.btn-edit, .btn-toggle, .btn-delete {
    flex: 1;
    padding: 0.7rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit {
    background: #17a2b8;
    color: white;
}

.btn-edit:hover {
    background: #138496;
    transform: translateY(-1px);
}

.btn-toggle {
    background: #6c757d;
    color: white;
}

.btn-toggle:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.no-best-sellers-admin {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state h3 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0 0 2rem 0;
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Product Preview Styles */
.product-preview {
    margin: 1rem 0;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.product-preview-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    float: left;
    margin-right: 1rem;
}

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

.product-preview-image i {
    font-size: 1.5rem;
    color: #dee2e6;
}

.product-preview-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1rem;
}

.product-preview-info p {
    margin: 0 0 0.5rem 0;
    color: #667eea;
    font-weight: 600;
}

.product-preview-info span {
    font-size: 0.9rem;
    color: #6c757d;
    background: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.product-preview::after {
    content: '';
    display: table;
    clear: both;
}

/* Admin Panel Stilleri */
.admin-body {
    background: #f8f9fa;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.admin-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-logo i {
    font-size: 1.8rem;
    color: #667eea;
}

.admin-logo h1 {
    color: #333;
    margin: 0;
    font-size: 1.5rem;
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-nav-link {
    color: #495057;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: #667eea;
    color: white;
}

.admin-logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.admin-logout-btn:hover {
    background: #c82333;
}

.admin-main {
    padding: 2rem 0;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.admin-page-title {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    border-bottom: 3px solid #f1f3f4;
}

.admin-page-title i {
    color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Admin Sections */
.admin-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #f1f3f4;
    transition: all 0.3s ease;
}

.admin-section:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.admin-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.admin-section h3 i {
    color: #667eea;
    font-size: 1.25rem;
}

.admin-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-controls .btn-primary,
.admin-controls .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-controls .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.admin-controls .btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a42a1);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.admin-controls .btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.admin-controls .btn-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #495057;
}

/* Admin List Items */
.admin-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-list-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-list-item:hover {
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.admin-list-item.active {
    border-color: #28a745;
    background: #f8fff9;
}

.admin-list-item.inactive {
    border-color: #dc3545;
    background: #fff5f5;
    opacity: 0.8;
}

.admin-item-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-item-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Status Badges */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.active {
    background: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.status-indicator.inactive {
    background: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* Admin Form Stilleri */
.admin-main .form-container {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.admin-main .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: start;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #f8f9fa;
    color: #333;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group select:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f3f4;
}

/* Image Preview Styles */
#image-preview {
    margin-top: 1rem;
}

#image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#image-preview img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Form File Input Styling */
.form-group input[type="file"] {
    background: white;
    border: 2px dashed #667eea;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.form-group input[type="file"]:hover {
    border-color: #5a6fd8;
    background: #f8f9ff;
}

/* Tablet Landscape Mode (Yatay Tablet) */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .main-content-area {
        grid-template-columns: 250px 1fr 200px; /* daha kompakt layout */
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }
    
    .sidebar {
        width: 250px;
        padding: 0.75rem !important;
        top: 70px;
    }
    
    .category-link {
        height: 48px;
        font-size: 15px;
        padding: 0 14px;
    }
    
    .subcategory-item {
        min-height: 36px;
        padding: 6px 10px 6px 20px;
        font-size: 14px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* yatay tablette otomatik */
        gap: 0.75rem;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-title {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .product-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
    
    .best-sellers {
        width: 200px;
        padding: 1rem;
        top: 70px;
    }
    
    .best-seller-item {
        padding: 0.75rem;
    }
    
    .best-seller-image {
        width: 50px;
        height: 50px;
    }
    
    .best-seller-title {
        font-size: 0.85rem;
    }
    
    /* Admin Panel Tablet Landscape */
    .admin-nav-container {
        padding: 0.75rem 1.5rem;
        height: 60px;
    }
    
    .admin-nav-link {
        padding: 0.5rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .admin-stat-card {
        padding: 1.25rem;
    }
    
    .admin-section {
        padding: 1.25rem;
    }
}

/* Admin Mobile Responsive Improvements */
@media (max-width: 768px) {
    /* Navigation */
    .admin-nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
    
    .admin-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .admin-nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .admin-logout-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Main Content */
    .admin-container {
        padding: 0 1rem;
    }
    
    .admin-page-title {
        font-size: 1.6rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    /* Stats Grid */
    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .admin-stat-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .admin-stat-card .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .admin-stat-card .stat-info h3 {
        font-size: 1.8rem;
    }
    
    /* Sections */
    .admin-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 15px;
    }
    
    .admin-section h3 {
        font-size: 1.3rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    /* Controls */
    .admin-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .admin-controls .btn-primary,
    .admin-controls .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
    
    /* List Items */
    .admin-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .admin-item-actions {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    /* Page Headers */
    .admin-page-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .page-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Best Sellers Grid */
    .best-sellers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .best-seller-admin-card {
        margin-bottom: 1rem;
    }
    
    .card-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Categories */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Banner Management */
    .banner-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .banner-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .banner-controls {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Responsive Form Styles */
@media (max-width: 768px) {
    .admin-main .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .admin-main .form-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
    }
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Small Phone Landscape Mode */
@media screen and (max-width: 667px) and (max-height: 400px) and (orientation: landscape) {
    .header .container {
        padding: 0 10px;
        min-height: 45px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo i {
        font-size: 1.4rem;
    }
    
    .nav {
        gap: 0.3rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* KÜÇÜK LANDSCAPE KATEGORİ MENÜSÜ */
    .landscape-category-menu {
        display: block !important;
        width: 100%;
        padding: 0.25rem 0.4rem;
        background: rgba(94, 73, 50, 0.95);
        position: sticky;
        top: 45px;
        z-index: 999;
        overflow-x: auto;
        white-space: nowrap;
        backdrop-filter: blur(10px);
        border-bottom: 2px solid #f1c27d;
    }
    
    .landscape-category-item {
        display: inline-block;
        margin-right: 0.4rem;
        padding: 0.25rem 0.6rem;
        background: rgba(241, 194, 125, 0.2);
        color: #f1c27d;
        border-radius: 12px;
        text-decoration: none;
        font-size: 0.75rem;
        border: 1px solid rgba(241, 194, 125, 0.3);
        transition: all 0.2s ease;
    }
    
    .landscape-category-item:hover,
    .landscape-category-item.active {
        background: #f1c27d;
        color: #2b2118;
        transform: translateY(-1px);
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .banner-slider {
        height: 350px; /* daha kompakt banner */
        margin: 0 5px 0.75rem 5px;
    }
    
    /* TAM EKRAN İÇERİK - SİDEBAR YOK */
    .main-content-area {
        padding: 0 10px;
        gap: 0;
        grid-template-columns: 1fr; /* SADECE CONTENT */
    }
    
    /* SİDEBAR VE EN ÇOK SATANLARI GİZLE */
    .sidebar {
        display: none !important;
    }
    
    .best-sellers {
        display: none !important;
    }
    
    .products-main {
        padding: 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* tam 2 sütun */
        gap: 0.3rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .product-card {
        border-radius: 4px;
        min-width: 0;
        overflow: hidden;
    }
    
    .product-image {
        height: 100px; /* çok kompakt */
        width: 100%;
        object-fit: cover;
    }
    
    .product-info {
        padding: 0.3rem;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .product-title {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
        line-height: 1.1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .product-description {
        display: none; /* açıklama gizli */
    }
    
    .product-price {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
        font-weight: 700;
        color: #e74c3c;
    }
    
    .contact-btn {
        padding: 0.25rem;
        font-size: 0.65rem;
        border-radius: 3px;
    }
    
    .sidebar:hover {
        width: 250px !important;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3) !important;
    }
    
    .category-link {
        height: 45px;
        padding: 0 6px;
        font-size: 12px;
    }
    
    .category-icon {
        width: 18px;
        font-size: 14px;
    }
    
    .sidebar-toggle {
        width: 35px !important;
        height: 35px !important;
        top: 50px !important;
        left: 8px !important;
        font-size: 0.9rem !important;
    }
    
    /* Admin Küçük Landscape */
    .admin-nav-container {
        padding: 0.4rem 0.8rem;
        min-height: 45px;
    }
    
    .admin-nav {
        gap: 0.3rem;
        flex-wrap: wrap;
    }
    
    .admin-nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .admin-page-title {
        font-size: 1.2rem;
        padding: 0.4rem 0;
    }
    
    .admin-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .admin-stats-grid {
        grid-template-columns: repeat(5, 1fr); /* 5 sütun çok küçük ekranda */
        gap: 0.4rem;
    }
    
    .admin-stat-card {
        padding: 0.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .admin-stat-card .stat-icon {
        width: 30px;
        height: 30px;
    }
    
    .admin-stat-card .stat-info h3 {
        font-size: 1rem;
    }
    
    .admin-stat-card .stat-info p {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header .container {
        padding: 0 10px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.7rem;
    }
    
    .nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .banner-slider {
        height: 300px;
        margin: 0 5px 1.5rem 5px;
        border-radius: 5px;
    }
    
    .main-content-area {
        padding: 0 10px 0.75rem; /* çok küçük mobil için üst padding sıfır */
    }
    
    .products-main {
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .section-title {
        font-size: 1.7rem;
        margin-bottom: 1rem;
    }
    
    .search-box input {
        padding: 0.7rem 0.8rem 0.7rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* 480px'de de yan yana */
        gap: 0.75rem; /* daha küçük gap */
    }
    
    .product-card {
        border-radius: 10px;
    }
    
    .product-image {
        height: 180px; /* daha da küçük resim */
    }
    
    .product-info {
        padding: 0.8rem; /* daha az padding */
    }
    
    .product-title {
        font-size: 1rem; /* daha küçük font */
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }
    
    .product-description {
        font-size: 0.8rem; /* daha küçük açıklama */
        -webkit-line-clamp: 2;
        margin-bottom: 0.5rem;
    }
    
    .product-price {
        font-size: 1.1rem; /* daha küçük fiyat */
        margin-bottom: 0.6rem;
    }
    
    .contact-btn {
        padding: 0.5rem 0.4rem; /* daha kompakt butonlar */
        font-size: 0.8rem;
        border-radius: 5px;
    }
    
    .best-sellers {
        margin-top: 1rem;
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .best-seller-item {
        padding: 0.8rem;
        border-radius: 8px;
    }
    
    .best-seller-image {
        width: 60px;
        height: 60px;
    }
    
    .best-seller-title {
        font-size: 0.85rem;
    }
    
    .best-seller-price {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 1.5rem 0 0.8rem;
    }
    
    .footer-content {
        gap: 1.25rem;
        padding: 0 10px;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
    
    .admin-nav-container {
        flex-direction: column;
        height: auto;
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .admin-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .admin-nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .admin-container {
        padding: 0 10px;
    }
    
    .admin-section {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
        border-radius: 15px;
    }
    
    .admin-section h3 {
        font-size: 1.3rem;
    }
    
    .admin-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .admin-controls .btn-primary,
    .admin-controls .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
    
    .admin-list-item {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        border-radius: 12px;
    }
    
    .admin-item-actions {
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .admin-page-title {
        font-size: 1.4rem;
        padding: 0.8rem 0;
    }
    
    .form-container {
        margin: 0 10px;
        padding: 1.25rem;
        border-radius: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .form-actions {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 20px;
    }
}

/* Icon Selector Styles */
.icon-selector {
    position: relative;
    width: 100%;
}

.selected-icon {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.selected-icon:hover {
    border-color: #667eea;
    background: #ffffff;
}

.selected-icon i:first-child {
    color: #667eea;
    font-size: 1.25rem;
}

.selected-icon span {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.dropdown-arrow {
    color: #6c757d;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.selected-icon.active .dropdown-arrow {
    transform: rotate(180deg);
}

.icon-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 300px;
    overflow: hidden;
    display: none;
    margin-top: 0.5rem;
}

.icon-dropdown.show {
    display: block;
}

.icon-search {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.icon-search input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.icon-search input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.icon-item:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.icon-item.selected {
    background: #667eea;
    color: white;
}

.icon-item i {
    font-size: 1.5rem;
    color: #667eea;
    transition: color 0.3s ease;
}

.icon-item.selected i {
    color: white;
}

.icon-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
    line-height: 1.2;
}

.icon-item.selected span {
    color: white;
}

/* Icon Grid Scrollbar */
.icon-grid::-webkit-scrollbar {
    width: 6px;
}

.icon-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.icon-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.icon-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Custom Icon Upload Styles */
.custom-icon-upload {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    text-align: center;
    background: #f8f9fa;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.custom-icon-upload small {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
}

/* Icon Tabs */
.icon-tabs {
    display: flex;
    border-bottom: 1px solid #e9ecef;
}

.icon-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.icon-tab:hover {
    background: #f8f9fa;
    color: #495057;
}

.icon-tab.active {
    background: #667eea;
    color: white;
    border-bottom: 3px solid #5a6fd8;
}

/* Custom Icon Item Styles */
.icon-item.custom-icon {
    position: relative;
}

.icon-item.custom-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.icon-item.custom-icon .delete-custom-icon {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.icon-item.custom-icon:hover .delete-custom-icon {
    display: flex;
}

/* Upload Progress */
.upload-progress {
    margin-top: 1rem;
    padding: 0.5rem;
    background: #e3f2fd;
    border-radius: 8px;
    display: none;
}

.upload-progress.show {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

/* Responsive Icon Selector */
@media (max-width: 768px) {
    .icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .icon-item {
        padding: 0.5rem;
    }
    
    .icon-item i {
        font-size: 1.25rem;
    }
    
    .icon-tabs {
        flex-direction: column;
    }
    
    .upload-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Landscape Kategori Menüsü - Tüm Cihazlarda */
@media (orientation: landscape) and (max-width: 1024px) {
    .landscape-category-menu {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .landscape-category-menu::-webkit-scrollbar {
        display: none;
    }
    
    .landscape-category-item {
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Kategori Sayfaları Responsive Grid */
@media (max-width: 768px) {
    .category-products,
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 0.75rem !important;
    }
    
    /* Kategori sayfası için özel düzenlemeler */
    .category-main .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

/* Landscape Mode Body Class */
body.landscape-mode {
    /* Landscape modda özel stillendirmeler */
}

body.landscape-mode .landscape-category-menu {
    border-bottom: 2px solid #f1c27d !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Contact Page Styles */
.contact-container {
    padding: 2rem 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.contact-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.contact-header h1 i {
    color: #667eea;
}

.contact-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Contact Info Cards */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: white;
}

.info-card:nth-child(1) .info-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.info-card:nth-child(2) .info-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.info-card:nth-child(3) .info-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.info-card:nth-child(4) .info-icon {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.info-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

.info-content p {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #495057;
    font-weight: 500;
}

.info-content span {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Contact Form */
.contact-form-section {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.form-header h2 i {
    color: #667eea;
}

.form-header p {
    margin: 0;
    color: #6c757d;
    font-size: 1rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group.full-width {
    grid-column: span 2;
}

.contact-form .form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.contact-form .form-group label i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #f8f9fa;
    color: #333;
    box-sizing: border-box;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.contact-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f3f4;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.faq-section h2 i {
    color: #667eea;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
    background: white;
}

.faq-item h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.faq-item h3 i {
    color: #667eea;
    font-size: 1rem;
}

.faq-item p {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form .form-group.full-width {
        grid-column: span 1;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .contact-form .form-actions {
        flex-direction: column;
    }
    
    .contact-form .form-actions .btn-primary,
    .contact-form .form-actions .btn-secondary {
        width: 100%;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .info-icon {
        margin-bottom: 0.5rem;
    }
}

/* Breadcrumb Stilleri */
.breadcrumb-container {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: #667eea;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #adb5bd;
}

/* Kategori Sayfası Stilleri */
.category-main {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-height: calc(100vh - 300px);
}

.category-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.category-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.category-details h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.category-details p {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.category-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
}

/* Kategori Filtreleri */
.category-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 2px solid #e9ecef;
}

.filter-section h4 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1.1rem;
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 0.9rem;
}

.btn-filter {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: #5a6fd8;
}

.search-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

/* Ürün Link Stilleri */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-link:hover .product-title {
    color: #667eea;
}

/* Ürün Detay Sayfası */
.product-detail-container {
    padding: 2rem 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.product-images {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.image-container {
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.image-container i {
    font-size: 4rem;
    color: #dee2e6;
}

.product-info-detail {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: fit-content;
}

.product-category-badge {
    background: #f1a661;
    color: #2b2118;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-title-detail {
    font-size: 2rem;
    color: #333;
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.3;
}

.product-price-detail {
    font-size: 2.5rem;
    color: #28a745;
    font-weight: 700;
    margin-bottom: 2rem;
}

.product-meta {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-item i {
    color: #667eea;
    width: 16px;
}

.contact-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f0f8ff;
    border-radius: 10px;
    border: 2px solid #667eea;
}

.contact-section h3 {
    margin: 0 0 1rem 0;
    color: #667eea;
    font-size: 1.3rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.contact-warning {
    background: #fff3cd;
    color: #856404;
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid #ffeaa7;
    font-size: 0.85rem;
}

.contact-warning i {
    margin-right: 0.5rem;
}

.share-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.share-section h4 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1.1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #1ebe57;
}

.share-btn.copy {
    background: #6c757d;
    color: white;
}

.share-btn.copy:hover {
    background: #5a6268;
}

.product-description-section,
.related-products-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.product-description-section h2,
.related-products-section h2 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-description-content {
    line-height: 1.6;
    color: #495057;
    font-size: 1.1rem;
}

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

.related-product-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.related-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-product-image {
    height: 200px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.related-product-image i {
    font-size: 3rem;
    color: #dee2e6;
}

.related-product-info {
    padding: 1rem;
}

.related-product-category {
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.related-product-title {
    font-size: 1rem;
    color: #333;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-price {
    font-size: 1.1rem;
    color: #28a745;
    font-weight: 700;
}

.no-related,
.no-description,
.no-contact {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 1rem 0;
}

/* Bildirim Stilleri */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left-color: #28a745;
    color: #155724;
}

.notification-error {
    border-left-color: #dc3545;
    color: #721c24;
}

.notification-info {
    border-left-color: #17a2b8;
    color: #0c5460;
}

.notification i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .main-content-area {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        max-width: none;
        margin-bottom: 1rem;
    }
    
    .category-page-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .category-info {
        flex-direction: column;
        text-align: center;
    }
    
    .category-details h1 {
        font-size: 2rem;
    }
    
    .filter-options {
        grid-template-columns: 1fr;
    }
    
    .price-range {
        flex-wrap: wrap;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-images {
        position: relative;
        top: auto;
    }
    
    .product-title-detail {
        font-size: 1.5rem;
    }
    
    .product-price-detail {
        font-size: 2rem;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .notification {
        left: 10px;
        right: 10px;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* Admin Ürün Modal – önceki (beğenilen) görünüm */
.admin-product-modal {
    z-index: 10000 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-product-modal.show {
    opacity: 1;
}

.admin-product-modal .modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    background: white;
    position: relative;
}

.admin-product-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-product-modal .modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.admin-product-modal .modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.admin-product-modal .modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.admin-product-modal .modal-body {
    padding: 2rem;
}

.admin-product-modal .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-product-modal .form-group.col-span-2 {
    grid-column: span 2;
}

.admin-product-modal .form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.admin-product-modal .form-group input,
.admin-product-modal .form-group select,
.admin-product-modal .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #333;
}

.admin-product-modal .form-group input:focus,
.admin-product-modal .form-group select:focus,
.admin-product-modal .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-product-modal .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-product-modal .btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #ffffff;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.admin-product-modal .btn-primary:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a5acd);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .admin-product-modal .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    .admin-product-modal .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .admin-product-modal .form-group.col-span-2 {
        grid-column: span 1;
    }
    .admin-product-modal .modal-header,
    .admin-product-modal .modal-body {
        padding: 1.5rem;
    }
}

/* Admin Banner Management */
.admin-banner-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.admin-banner-section h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.banner-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.banner-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.banner-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.banner-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.banner-image {
    width: 100%;
    height: 150px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

.banner-image i {
    font-size: 2rem;
    color: #dee2e6;
}

.banner-info {
    padding: 1rem;
}

.banner-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.banner-order {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-weight: 600;
}

.banner-status {
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-weight: 600;
}

.banner-status.active {
    background: #28a745;
    color: white;
}

.banner-status.inactive {
    background: #dc3545;
    color: white;
}

.banner-actions {
    display: flex;
    gap: 0.5rem;
}

.banner-btn {
    padding: 0.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
}

.banner-btn.edit {
    background: #17a2b8;
    color: white;
}

.banner-btn.edit:hover {
    background: #138496;
}

.banner-btn.delete {
    background: #dc3545;
    color: white;
}

.banner-btn.delete:hover {
    background: #c82333;
}

.banner-btn.toggle {
    background: #6c757d;
    color: white;
}

.banner-btn.toggle:hover {
    background: #5a6268;
}

/* Banner Modal Specific Styles */
#bannerModal .file-upload-label {
    min-height: 120px;
}

#bannerModal .image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
}

/* Banner Size Info Styles */
.banner-size-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e9ecef;
}

.size-requirements h4 {
    margin: 0 0 1rem 0;
    color: #495057;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.size-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    text-align: center;
    transition: all 0.3s ease;
}

.size-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.size-item .device {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.size-item .dimensions {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.3rem;
}

.size-item .ratio {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.size-tips {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.size-tips p {
    margin: 0 0 0.5rem 0;
    color: #495057;
}

.size-tips ul {
    margin: 0;
    padding-left: 1.5rem;
}

.size-tips li {
    margin-bottom: 0.3rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.preview-info {
    margin-top: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #495057;
}

.preview-info.valid {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.preview-info.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.preview-info.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .banner-controls {
        flex-direction: column;
    }
    
    .banner-list {
        grid-template-columns: 1fr;
    }
    
    .banner-actions {
        flex-direction: column;
    }
}

/* Admin Stats Grid - Best Sellers sayfası için */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.admin-stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
}

.admin-stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.admin-stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.admin-stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

.admin-stat-card .stat-icon i {
    font-size: 1.5rem;
}

.admin-stat-card .stat-info h3 {
    margin: 0 0 0.25rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.admin-stat-card .stat-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* No Best Sellers State */
.no-best-sellers-admin {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0 0 2rem 0;
    color: #6c757d;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Product Preview in Modal */
.product-preview {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.product-preview-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.product-preview-image i {
    font-size: 1.5rem;
    color: #dee2e6;
}

.product-preview-info {
    flex: 1;
}

.product-preview-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #333;
}

.product-preview-info p {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: #28a745;
}

.product-preview-info span {
    font-size: 0.8rem;
    color: #6c757d;
    background: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .admin-stat-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .admin-stat-card .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .admin-stat-card .stat-info h3 {
        font-size: 1.5rem;
    }
    
    .best-sellers-grid {
        grid-template-columns: 1fr;
    }
    
    .page-actions {
        flex-direction: column;
    }
    
    .admin-page-header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* SEO Form Sections */
.form-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.form-section .section-title {
    margin: 0 0 1.5rem 0;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.help-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.char-counter {
    text-align: right;
    font-weight: 500;
}

/* Full-bleed products grid on phone landscape */
@media screen and (max-height: 500px) and (orientation: landscape) {
    html, body { overflow-x: hidden; }
    .container { max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
    .main-content-area { padding: 0 !important; }
    .products-main { width: 100vw !important; max-width: 100vw !important; padding: 0 4px !important; }
    #products-grid, .products-grid { width: 100vw !important; max-width: 100vw !important; margin: 0 !important; }
}

@media screen and (max-width: 667px) and (max-height: 400px) and (orientation: landscape) {
    html, body { overflow-x: hidden; }
    .container { max-width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }
    .main-content-area { padding: 0 !important; }
    .products-main { width: 100vw !important; max-width: 100vw !important; padding: 0 3px !important; }
    #products-grid, .products-grid { width: 100vw !important; max-width: 100vw !important; margin: 0 !important; }
}

/* Landscape Category Drawer - Base Styles */
.landscape-drawer-toggle {
    display: none;
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 1100;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: #5e4932;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    cursor: pointer;
}

#landscape-drawer { display: none; }
#landscape-drawer.active { display: block; }

#landscape-drawer .drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1098;
}

#landscape-drawer .drawer-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
    z-index: 1099;
    transform: translateY(100%);
    transition: transform .25s ease;
}

#landscape-drawer.active .drawer-panel { transform: translateY(0); }

#landscape-drawer .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

#landscape-drawer .drawer-title { font-weight: 700; color: #2b2118; }
#landscape-drawer .drawer-close { background: transparent; border: none; font-size: 1.3rem; color: #6c757d; cursor: pointer; }

#landscape-drawer .drawer-body { padding: .75rem 1rem 1rem; max-height: 55vh; overflow: auto; }

#landscape-drawer .drawer-category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .5rem;
}

#landscape-drawer .drawer-category-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .55rem .75rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    color: #2b2118;
    background: #f8f9fa;
    font-weight: 600;
    font-size: .95rem;
}

#landscape-drawer .drawer-category-item.active { background: #f1c27d; border-color: #f1c27d; color: #2b2118; }

/* Use drawer in phone landscape, hide old bar */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .landscape-category-menu { display: none !important; }
    .landscape-category-item { display: none !important; }
    .landscape-drawer-toggle { display: block; }
}

/* Small phone landscape */
@media screen and (max-width: 667px) and (max-height: 400px) and (orientation: landscape) {
    .landscape-category-menu { display: none !important; }
    .landscape-category-item { display: none !important; }
    .landscape-drawer-toggle { display: block; }
    #landscape-drawer .drawer-body { max-height: 60vh; }
}

/* Category/Subcategory page tweaks for phone landscape */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .category-page-header {
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
        border-radius: 10px;
    }
    .category-info { gap: 0.75rem; }
    .category-icon-large { width: 50px; height: 50px; font-size: 1.4rem; }
    .category-details h1 { font-size: 1.2rem; }
    .category-details p { display: none; }
    .category-stats { gap: 0.5rem; flex-wrap: wrap; }
    .category-main { padding: 0.5rem; }
    .category-filters { display: none; }
    #products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.4rem !important; }
}

/* Category/Subcategory page tweaks for mobile portrait */
@media (max-width: 768px) {
    .category-page-header { padding: 1rem; margin-bottom: 1rem; }
    .category-details h1 { font-size: 1.6rem; }
    .category-details p { font-size: 1rem; }
    .category-main { padding: 1rem; }
    #products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.75rem; }
}

/* Alt kategori sayfalarında yatay optimizasyon */
@media (max-width: 768px) {
    .category-main #products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.5rem !important;
        padding: 0 4px !important;
    }
    .category-main .product-card {
        margin: 0 !important;
        min-width: 0 !important;
    }
}
