/* Modern Kategori Kartı (Ürünlerle Birlikte) */
.category-card-with-products {
    background: var(--card-bg);
    border-radius: 20px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-soft);
}

.category-card-with-products:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Kategori Başlık Bölümü */
.category-card-header {
    position: relative;
    overflow: hidden;
}

.category-card-header-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent) 0%, var(--text) 100%);
}

.category-card-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card-with-products:hover .category-card-header-image img {
    transform: scale(1.05);
}

.category-card-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.category-card-header-content {
    padding: 32px;
    position: relative;
    background: var(--card-bg);
}

.category-card-header-text {
    margin-bottom: 20px;
}

.category-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.category-card-description {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.category-card-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
    flex-wrap: wrap;
    gap: 16px;
}

.category-product-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-soft);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.category-product-count i {
    color: var(--accent);
    font-size: 14px;
}

.category-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}

.category-view-all-btn:hover {
    background: var(--text);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.category-view-all-btn i {
    font-size: 12px;
    transition: var(--transition);
}

.category-view-all-btn:hover i {
    transform: translateX(2px);
}

/* Görsel yoksa alternatif tasarım */
.category-card-with-products.no-image .category-card-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--text) 100%);
}

.category-card-with-products.no-image .category-card-header-content {
    background: transparent;
    color: white;
}

.category-card-with-products.no-image .category-card-title {
    color: white;
}

.category-card-with-products.no-image .category-card-description {
    color: rgba(255, 255, 255, 0.9);
}

.category-card-with-products.no-image .category-product-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.category-card-with-products.no-image .category-product-count i {
    color: white;
}

.category-card-with-products.no-image .category-card-header-meta {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.category-card-with-products.no-image .category-view-all-btn {
    background: white;
    color: var(--accent);
}

.category-card-with-products.no-image .category-view-all-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
}

/* Ürünler Grid (Kart İçinde) */
.category-products-inner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 32px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border-soft);
}

/* İnline Ürün Kartı */
.product-card-inline {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-soft);
}

.product-card-inline:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.product-card-inline .product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-inline .product-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-soft);
}

.product-card-inline .product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card-inline:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-inline .product-card-body {
    padding: 16px;
}

.product-card-inline .product-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-inline .product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-card-inline .product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.product-add-cart-inline {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    font-size: 14px;
}

.product-add-cart-inline:hover {
    background: var(--text);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-card-inline .product-card-image {
    position: relative;
}

.product-card-inline .product-badge {
    position: absolute;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    white-space: nowrap;
    display: inline-block;
    max-width: none;
    width: auto;
    height: auto;
    line-height: 1.2;
}

.product-card-inline .product-badge.featured {
    top: 8px;
    left: 8px;
    background: #ffc107;
    color: #000;
}

.product-card-inline .product-badge.out-of-stock {
    bottom: 8px;
    right: 8px;
    top: auto;
    left: auto;
    background: #f44336;
    color: white;
}

.product-card-inline .product-badge.low-stock {
    bottom: 8px;
    right: 8px;
    top: auto;
    left: auto;
    background: #ff9800;
    color: white;
}

/* Eğer hem featured hem stok durumu varsa */
.product-card-inline .product-badge.featured + .product-badge.low-stock,
.product-card-inline .product-badge.featured + .product-badge.out-of-stock {
    bottom: 8px;
    right: 8px;
    top: auto;
    left: auto;
}

.product-card-inline .product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    background: var(--bg-soft);
}

/* Responsive */
@media (max-width: 1024px) {
    .category-card-header-image {
        height: 160px;
    }
    
    .category-card-header-content {
        padding: 24px;
    }
    
    .category-card-title {
        font-size: 28px;
    }
    
    .category-products-inner-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .category-card-with-products {
        margin-bottom: 32px;
        border-radius: 16px;
    }
    
    .category-card-header-image {
        height: 140px;
    }
    
    .category-card-header-content {
        padding: 20px;
    }
    
    .category-card-title {
        font-size: 24px;
    }
    
    .category-card-description {
        font-size: 14px;
    }
    
    .category-card-header-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-view-all-btn {
        width: 100%;
        justify-content: center;
    }
    
    .category-products-inner-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        padding: 20px;
    }
    
    .product-card-inline .product-card-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .category-card-header-image {
        height: 120px;
    }
    
    .category-card-header-content {
        padding: 16px;
    }
    
    .category-card-title {
        font-size: 20px;
    }
    
    .category-products-inner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }
    
    .product-card-inline .product-card-image {
        height: 140px;
    }
    
    .product-card-inline .product-card-body {
        padding: 12px;
    }
    
    .product-card-inline .product-card-title {
        font-size: 14px;
    }
    
    .product-card-inline .product-price {
        font-size: 16px;
    }
}
