/* =================================================================
   ÜRÜNLER KARTLARI CSS - Ana Sayfa Ürün Showcase
   Sol: Kategori menüsü
   Sağ: 6 ürün kartı (3x2 grid)
   Hero Banner stilleri + Liste sayfası kart stilleri
   ================================================================= */

/* Ana Wrapper */
.urunler-kartlar-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0;
}

.urunler-kartlar-container {
    width: 100%;
    min-height: 600px;
    background: #fef7ed;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
    box-shadow: 0 20px 60px rgba(196, 30, 58, 0.15);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 25px;
    padding: 30px 150px;
}

/* Krem arka plan üzerine kırmızı noktalı animasyon */
.urunler-kartlar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(
            circle at 20% 30%,
            rgba(196, 30, 58, 0.2) 3px,
            transparent 3px
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(196, 30, 58, 0.15) 2px,
            transparent 2px
        ),
        radial-gradient(
            circle at 40% 60%,
            rgba(196, 30, 58, 0.18) 2.5px,
            transparent 2.5px
        );
    background-size: 60px 60px, 100px 100px, 80px 80px;
    background-position: 0 0, 50px 50px, 25px 25px;
    animation: redDotsMove 25s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes redDotsMove {
    0% {
        background-position: 0 0, 50px 50px, 25px 25px;
    }

    100% {
        background-position: 60px 60px, 150px 150px, 105px 105px;
    }
}

/* Animasyonlu kırmızı çizgi efekti - Üstte */
.urunler-kartlar-container::after {
    display: none;
}

@keyframes borderPulse {
    0%,
    100% {
        box-shadow: 0 0 15px rgba(196, 30, 58, 0.6),
            inset 0 0 10px rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 25px rgba(196, 30, 58, 0.9),
            inset 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

/* Sol Taraf - Kategori Menüsü */
.kategori-menu {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.kategori-baslik {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #c41e3a;
    text-align: center;
}

.kategori-liste {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kategori-liste li {
    margin-bottom: 8px;
}

.kategori-btn {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 22px 15px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.3;
}

.kategori-btn i {
    font-size: 1.5rem;
    color: #c41e3a;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.kategori-btn span {
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 18px 0;
}

.kategori-btn:hover {
    background: #f7fafc;
    border-color: #c41e3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.1);
}

.kategori-btn:hover i {
    transform: scale(1.1);
}

.kategori-btn.active {
    background: linear-gradient(135deg, #c41e3a 0%, #a01628 100%);
    border-color: #c41e3a;
    color: white;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.4);
}

.kategori-btn.active i {
    color: white;
    transform: scale(1.15);
}

/* Sağ Taraf - Ürün Grid Wrapper */
.urunler-grid-wrapper {
    position: relative;
    z-index: 1;
}

.urunler-baslik {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
    text-align: center;
}

/* Ürün Grid - 3 sütun x 2 satır */
.urunler-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Ürün Kartları - Liste.css'den kopyalandı */
.product-card-wrapper {
    position: relative;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.12);
    border-color: #c41e3a;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}

.product-image {
    position: relative;
    width: 100%;
    height: 320px;
    background: #ffffff;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #999;
    font-size: 2.5rem;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c41e3a;
    color: white;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.discount-badge {
    background: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.indoor-badge {
    top: 42px;
    background: linear-gradient(135deg, #616161 0%, #424242 100%);
    box-shadow: 0 2px 8px rgba(66, 66, 66, 0.3);
}

.outdoor-badge {
    top: 42px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.product-image:not(:has(.discount-badge)) .indoor-badge,
.product-image:not(:has(.discount-badge)) .outdoor-badge {
    top: 10px;
}

.product-info {
    padding: 1.5rem 1rem 0.8rem;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.product-prices {
    margin-bottom: 1rem;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.price-row:last-child {
    margin-bottom: 0;
    background: linear-gradient(135deg, #c41e3a 0%, #a01628 100%);
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.price-row:last-child .price-label,
.price-row:last-child .price-value {
    color: white;
}

.price-label {
    font-size: 0.75rem;
    color: #718096;
    font-weight: 500;
}

.price-value {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.85rem;
}

.price-value.old {
    color: #c41e3a;
    font-weight: 600;
    font-size: 0.85rem;
}

.price-value.main {
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
    line-height: 1;
}

.product-actions {
    display: none;
}

.btn-favorite,
.btn-whatsapp {
    padding: 0.65rem 0.8rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.75rem;
}

.btn-favorite {
    flex: 0 0 35%;
    background: white;
    color: #c41e3a;
    border: 2px solid #c41e3a;
}

.btn-favorite i {
    font-size: 1rem;
}

.btn-favorite:hover {
    background: #c41e3a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.btn-whatsapp {
    flex: 0 0 calc(70% - 0.5rem);
    background: #25d366;
    color: white;
    border: 2px solid #25d366;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    border-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    color: white;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: #718096;
}

.no-products i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

/* Loading Spinner */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #c41e3a;
    font-size: 1.2rem;
    font-weight: 600;
}

.loading-spinner i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .urunler-kartlar-container {
        padding: 30px 80px;
    }

    .urunler-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 968px) {
    .urunler-kartlar-container {
        grid-template-columns: 140px 1fr;
        padding: 25px 15px;
        gap: 15px;
    }

    .kategori-menu {
        padding: 10px 6px;
    }

    .kategori-liste li {
        margin-bottom: 2px;
    }

    .urunler-baslik {
        font-size: 1.4rem;
        margin-bottom: 18px;
    }

    .kategori-btn {
        font-size: 0.65rem;
        padding: 14px 6px;
        gap: 8px;
    }

    .kategori-btn i {
        font-size: 1.1rem;
    }

    .kategori-btn span {
        padding: 5px 0;
    }

    .urunler-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Sadece ilk 2 ürünü göster */
    .urunler-grid .product-card-wrapper:nth-child(n + 3) {
        display: none;
    }

    .product-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .urunler-kartlar-container {
        grid-template-columns: 100px 1fr;
        padding: 20px 8px;
        gap: 12px;
    }

    .kategori-menu {
        padding: 8px 4px;
    }

    .kategori-liste li {
        margin-bottom: 5px;
    }

    .urunler-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Sadece ilk 2 ürünü göster */
    .urunler-grid .product-card-wrapper:nth-child(n + 3) {
        display: none;
    }

    .kategori-btn {
        font-size: 0.6rem;
        padding: 12px 5px;
        gap: 5px;
        flex-direction: column;
    }

    .kategori-btn i {
        font-size: 1rem;
    }

    .kategori-btn span {
        padding: 4px 0;
        line-height: 1.2;
    }

    .product-image {
        height: 220px;
    }

    .product-info {
        padding: 1.2rem 0.9rem 0.6rem;
    }

    .product-title {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .price-row:last-child {
        padding: 6px 10px;
        border-radius: 16px;
    }
}
