
/* 
 * Dynamic Theme CSS Generator v2.0
 * ================================
 * Theme Name: Modern Kırmızı
 * Concept: modern
 * Category Style: list
 * Product Layout: grid-2col
 * Primary Color: #e74c3c
 * Generated: 2026-02-14 12:13:01
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --theme-primary: #e74c3c;
    --theme-secondary: #c0392b;
    --theme-accent: #ff5252;
    --theme-background: #f8f9fa;
    --theme-text: #2c3e50;
    --theme-font: 'Poppins', sans-serif;
    --primary-rgb: 231, 76, 60;
    --secondary-rgb: 192, 57, 43;
    --accent-rgb: 255, 82, 82;
}

/* Global Styles */
body {
    font-family: var(--theme-font) !important;
    background-color: var(--theme-background) !important;
    color: var(--theme-text) !important;
}

/* Header Styles */
.hero-section {
    border-bottom: 3px solid var(--theme-primary) !important;
}

.logo-img:hover {
    box-shadow: 0 12px 35px rgba(var(--primary-rgb), 0.3) !important;
}

/* Category Section */
.category-section::before {
    background: linear-gradient(90deg, transparent, var(--theme-primary), transparent) !important;
}

.category-section {
    border-top: 1px solid rgba(var(--primary-rgb), 0.1) !important;
}

.modern-category-item {
    background: linear-gradient(135deg, var(--theme-primary), rgba(var(--primary-rgb), 0.8)) !important;
}

/* Default Grid Style (if not specified) */
.modern-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
}

.modern-category-item {
    position: relative;
    height: 180px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
    transition: opacity 0.4s ease;
}

.modern-category-item:hover::before {
    opacity: 0.5;
}

.modern-category-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.category-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.modern-category-item:hover .category-bg-image {
    transform: scale(1.1);
}

.modern-category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: white;
    z-index: 3;
    background: linear-gradient(transparent, rgba(0,0,0,0.8) 60%);
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-category-item:hover .modern-category-content {
    transform: translateY(0);
}

.modern-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
    color: white !important;
}

@media (max-width: 768px) {
    .modern-category-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-category-item {
        height: 150px;
    }
    
    .modern-category-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .modern-category-item {
        height: 130px;
    }
    
    .modern-category-content {
        padding: 20px;
    }
    
    .modern-category-title {
        font-size: 1.2rem;
    }
}

/* Category List Style */
.modern-category-grid {
    display: block !important;
}

.modern-category-item {
    height: 120px !important;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    background: white;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.modern-category-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.15);
    border-color: var(--theme-primary);
}

.category-bg-image {
    width: 180px !important;
    height: 120px !important;
    flex-shrink: 0;
    object-fit: cover;
    position: static !important;
}

.modern-category-content {
    position: static !important;
    background: transparent !important;
    color: var(--theme-text) !important;
    padding: 20px !important;
    transform: none !important;
    flex: 1;
    display: flex;
    align-items: center;
    z-index: 3;
}

.modern-category-title {
    color: var(--theme-primary) !important;
    font-size: 1.3rem !important;
    margin: 0 !important;
    text-shadow: none !important;
    font-weight: 600;
    text-align: left;
}

/* Default Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.15);
    border-color: var(--theme-primary);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-description {
    font-size: 0.9rem;
    color: rgba(var(--theme-text), 0.7);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--theme-primary);
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .product-image {
        height: 180px;
    }
}

/* Product 2-Column Grid Style */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    padding: 15px;
}

.product-card {
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    background: white !important;
    border: 1px solid rgba(var(--primary-rgb), 0.1) !important;
}

.product-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.15) !important;
    border-color: var(--theme-primary) !important;
}

.product-image {
    width: 100% !important;
    height: 140px !important;
    object-fit: cover !important;
}

.product-info {
    padding: 15px !important;
}

.product-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--theme-text) !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
    text-align: left !important;
}

.product-description {
    font-size: 0.9rem !important;
    color: rgba(var(--theme-text), 0.7) !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.product-price {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--theme-primary) !important;
    text-align: left !important;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Mobilde de 2 sütun */
        gap: 10px !important;
        padding: 10px;
    }
    
    .product-image {
        height: 100px !important;
    }
    
    .product-info {
        padding: 10px !important;
    }
    
    .product-title {
        font-size: 0.9rem !important;
    }
    
    .product-description {
        font-size: 0.8rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .product-price {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Küçük mobilde de 2 sütun */
        gap: 8px !important;
        padding: 8px;
    }
    
    .product-image {
        height: 90px !important;
    }
    
    .product-info {
        padding: 8px !important;
    }
    
    .product-title {
        font-size: 0.85rem !important;
    }
    
    .product-description {
        font-size: 0.75rem !important;
        -webkit-line-clamp: 1 !important;
    }
    
    .product-price {
        font-size: 0.95rem !important;
    }
}

/* Modern Theme Specific */
.modern-category-item {
    border-radius: 0 !important;
    transform: skew(-2deg) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.modern-category-item:hover {
    transform: skew(-2deg) scale(1.05) !important;
    box-shadow: 0 25px 50px rgba(var(--primary-rgb), 0.4) !important;
}

.modern-category-content {
    transform: skew(2deg) translateY(10px) !important;
}

.modern-category-title {
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}

/* Common Theme Applications */
.btn-primary, .add-to-cart, .cart-floating-button {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
}

.btn-primary:hover, .add-to-cart:hover, .cart-floating-button:hover {
    background-color: var(--theme-secondary) !important;
}

.text-primary, .menu-item-price, .product-price {
    color: var(--theme-primary) !important;
}

.border-primary {
    border-color: var(--theme-primary) !important;
}

.bg-primary {
    background-color: var(--theme-primary) !important;
}

.category-header {
    background: var(--theme-primary) !important;
}

.back-button {
    background: var(--theme-primary) !important;
}

.quantity-btn:hover {
    background: var(--theme-primary) !important;
    color: white !important;
}

::selection {
    background-color: var(--theme-primary) !important;
    color: white !important;
}

::-webkit-scrollbar-thumb {
    background-color: var(--theme-primary) !important;
}

/* ============================================
   SEPETE EKLE VE MİKTAR KONTROL CSS
   ============================================ */

/* Sipariş Kontrolleri */
.order-controls {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: 10px !important;
}

/* Miktar Kontrol */
.quantity-control {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.quantity-btn {
    width: 30px !important;
    height: 30px !important;
    border: 1px solid rgba(var(--primary-rgb), 0.3) !important;
    background: white !important;
    color: var(--theme-primary) !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
}

.quantity-btn:hover {
    background: var(--theme-primary) !important;
    color: white !important;
    border-color: var(--theme-primary) !important;
}

.quantity-btn i {
    font-size: 0.75rem !important;
}

.quantity-input {
    width: 45px !important;
    height: 30px !important;
    text-align: center !important;
    border: 1px solid rgba(var(--primary-rgb), 0.3) !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    color: var(--theme-text) !important;
    padding: 0 !important;
}

/* Sepete Ekle Butonu */
.add-to-cart {
    flex: 1 !important;
    height: 30px !important;
    background: var(--theme-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    padding: 0 10px !important;
    min-width: 40px !important;
}

.add-to-cart:hover {
    background: var(--theme-secondary) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.3) !important;
}

.add-to-cart i {
    font-size: 0.9rem !important;
}

/* Mobil için iyileştirmeler */
@media (max-width: 576px) {
    .order-controls {
        gap: 6px !important;
    }
    
    .quantity-btn {
        width: 28px !important;
        height: 28px !important;
    }
    
    .quantity-input {
        width: 40px !important;
        height: 28px !important;
        font-size: 0.85rem !important;
    }
    
    .add-to-cart {
        height: 28px !important;
        font-size: 0.85rem !important;
    }
}

/* ============================================
   GERİ BUTONU - DİNAMİK RENKLER
   ============================================ */
.back-button-container {
    background-color: var(--theme-background) !important;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1) !important;
}

.btn-back {
    background-color: var(--theme-primary) !important;
    color: white !important;
    border: 2px solid var(--theme-primary) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-back:hover {
    background-color: var(--theme-secondary) !important;
    border-color: var(--theme-secondary) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.3) !important;
}

/* ============================================
   KATEGORİ BAŞLIĞI - DİNAMİK RENKLER
   ============================================ */
.category-header {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary)) !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    color: white !important;
}

.category-header h2 {
    margin: 0 !important;
    font-size: 1.5rem !important;
    display: flex !important;
    align-items: center !important;
    color: white !important;
}

.category-header i {
    margin-right: 10px !important;
}

.category-description {
    margin-top: 5px !important;
    font-size: 0.9rem !important;
    color: rgba(255,255,255,0.95) !important;
}

/* ============================================
   SEPET ÖĞELERİ
   ============================================ */
.cart-item {
    padding: 15px 0 !important;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.1) !important;
}

.cart-item:last-child {
    border-bottom: none !important;
}

.cart-item-image {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 2px solid rgba(var(--primary-rgb), 0.2) !important;
}

.cart-item .price {
    font-weight: 600 !important;
    color: var(--theme-primary) !important;
}

/* SEPET FLOATING BUTTON */
.cart-floating-button {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    background: var(--theme-primary) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4) !important;
    transition: all 0.3s ease !important;
    z-index: 1000 !important;
}

.cart-floating-button:hover {
    background: var(--theme-secondary) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5) !important;
}

.cart-count {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: var(--theme-accent) !important;
    color: white !important;
    font-size: 14px !important;
    min-width: 25px !important;
    height: 25px !important;
    border-radius: 12.5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}

/* ============================================
   MENÜ ÖĞELER İ
   ============================================ */
.menu-item {
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
}

.menu-item:hover {
    transform: translateY(-2px) !important;
}

.menu-item-image {
    width: 100% !important;
    height: 200px !important;
    overflow: hidden !important;
    border-radius: 8px 8px 0 0 !important;
    position: relative !important;
}

.menu-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.menu-item:hover .menu-item-image img {
    transform: scale(1.05) !important;
}

.menu-item-content {
    padding: 15px !important;
}

/* KATEGORİ SEKSİYONU */
.category-section {
    padding: 0 !important;
    margin-top: 30px !important;
}
