/* ===================================
   CATEGORY PAGE - TÜREV MEDIKAL
   Modern Design System
   =================================== */

/* Hero background image - Each category can override this */
.page-hero.category-hero::before {
    background-image: url('../images/categories-hero-main.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.28;
}

/* Specific category hero images */
.page-hero.gastroenterology-hero::before,
.page-hero.urology-hero::before,
.page-hero.tracheal-aspiration-hero::before,
.page-hero.cardiovascular-surgery-hero::before,
.page-hero.surgical-suction-hero::before,
.page-hero.infusion-hero::before {
    background-image: url('../images/categories-hero-main.jpg');
}

/* ===================================
   PAGE HERO
   =================================== */

/* Hero standardizasyonu (müşteri talebi): global .page-hero / h1 ile
   aynı kalsın diye buradaki sapan padding + 48px accent override KALDIRILDI.
   Üretim / Made-in-Türkiye artık diğer iç sayfalarla birebir aynı. */

.page-hero .category-intro {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.90);
    max-width: none;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

.page-hero .lead {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    max-width: 700px;
}

/* ===================================
   CATEGORY PRODUCTS
   =================================== */

.category-products {
    padding: var(--space-20) 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
}

/* ===================================
   PRODUCT CARD
   =================================== */

.product-card {
    position: relative;
    background: var(--color-bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(var(--color-primary-rgb), 0.15);
}

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

/* Product Card Image */
.product-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-gray-50) 0%, var(--color-bg-gray-200) 100%);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Legacy support */
.product-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, var(--color-bg-gray-50) 0%, var(--color-bg-gray-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-primary);
    color: var(--color-bg-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
    z-index: 3;
}

.product-badge.new {
    background: var(--color-success);
    color: var(--color-bg-white);
}

.product-badge.featured {
    background: var(--color-primary);
    color: var(--color-bg-white);
}

/* Yerli Üretim (Ticaret Bakanlığı) logo rozeti - CTA satırında */
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
}

/* Eski .product-cta üst çizgisi artık footer'da; iç içe tekrar etmesin */
.product-card-footer .product-cta {
    padding-top: 0;
    border-top: none;
}

.product-card-footer .product-badge-logo {
    width: auto;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
    pointer-events: none;
}

/* Product Card Content */
.product-card-content {
    padding: 28px 24px 32px;
}

.product-card-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 14px;
    line-height: 1.3;
}

.product-card-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-accent);
    transition: color var(--transition-base);
}

.product-cta::after {
    content: '→';
    font-size: 18px;
    transition: var(--transition-transform);
}

.product-card:hover .product-cta {
    color: var(--color-primary);
}

.product-card:hover .product-cta::after {
    transform: translateX(4px);
}

/* Legacy support */
.product-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-dark);
    margin-bottom: var(--space-3);
    line-height: var(--leading-tight);
}

.product-card h3 a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color var(--transition-base);
}

.product-card h3 a:hover {
    color: var(--color-primary);
}

.product-description {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-5);
    flex: 1;
}

/* Product Features */
.product-features {
    list-style: none;
    margin-bottom: var(--space-5);
}

.product-features li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: var(--font-size-xs);
    color: var(--color-text-body);
    margin-bottom: var(--space-2);
}

.product-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

/* Product CTA */
.product-cta {
    display: flex;
    gap: var(--space-2);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
}

.product-cta .btn {
    flex: 1;
    justify-content: center;
    font-size: var(--font-size-sm);
    padding: var(--space-3) var(--space-4);
}

.product-cta .btn-icon {
    padding: var(--space-3);
    width: auto;
    aspect-ratio: 1;
}

/* Not: Kartın sağ-alt köşesindeki ikinci ok kaldırıldı.
   "Detayları İncele" yanındaki ok (.product-cta::after) tek ok olarak kalır. */

/* ===================================
   CATEGORY FILTERS (OPTIONAL)
   =================================== */

.category-filters {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    padding: var(--space-6);
    background: var(--color-bg-gray-50);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.filter-label {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-dark);
}

.filter-select {
    padding: var(--space-2) var(--space-4);
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: var(--font-size-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-white);
    color: var(--color-text-body);
    transition: all var(--transition-base);
    cursor: pointer;
}

.filter-select:hover {
    border-color: var(--color-primary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-primary);
}

/* ===================================
   EMPTY STATE
   =================================== */

.products-empty {
    text-align: center;
    padding: var(--space-20) var(--space-8);
}

.products-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: var(--color-bg-gray-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-4xl);
}

.products-empty h3 {
    font-size: var(--font-size-2xl);
    color: var(--color-text-dark);
    margin-bottom: var(--space-3);
}

.products-empty p {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    margin-bottom: var(--space-6);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
        gap: var(--space-6);
    }

    .category-products {
        padding: var(--space-12) 0;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .product-card-image {
        height: 220px;
    }

    .product-card-content {
        padding: var(--space-5) var(--space-5) var(--space-6);
    }
}
