:root {
    --primary-color: #c41e3a;
    --primary-hover: #a01628;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 24px rgba(196, 30, 58, 0.15);
}

/* Noktalı animasyon - Body arka planı */
body {
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(
        circle,
        var(--primary-color) 3px,
        transparent 3px
    );
    background-size: 60px 60px;
    opacity: 0.2;
    animation: dotMove 25s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes dotMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

.products-hero {
    background: linear-gradient(135deg, #fef7ed 0%, #fff5f0 100%);
    padding: 0.6rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

/* Animasyonlu kırmızı çizgi efekti - Header ile birebir aynı */
.products-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #b80211 0%, #f93f48 50%, #b80211 100%);
    box-shadow: 0 0 10px rgba(242, 39, 70, 0.6);
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 50%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.6) 30%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.6) 70%,
        transparent 100%
    );
    animation: slideLight 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes slideLight {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

.products-hero .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    max-width: 1600px;
    padding: 0 2rem;
}

/* Modern Başlık - Aynı Satırda */
.modern-heading {
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.275rem !important;
    margin: 0;
    flex-shrink: 0;
    letter-spacing: -0.5px;
    white-space: nowrap;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #4a4a4a 0%, #5a5a5a 100%);
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Ürün Arama Kutusu */
.product-search-wrapper {
    position: relative;
    width: 200px;
    flex-shrink: 0;
}

.product-search-input {
    width: 100%;
    padding: 0.5rem 1.25rem 0.5rem 2.5rem;
    border: 1px solid #333;
    border-radius: 50px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    outline: none;
}

.product-search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.product-search-input:focus {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f0f0f0 0%, #fafafa 100%);
    border-color: #000;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.85rem;
    pointer-events: none;
}

/* Filtre Toggle Butonu */
.filter-toggle-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.filter-toggle-btn {
    background: linear-gradient(135deg, #4a4a4a 0%, #5a5a5a 100%);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
}

.filter-toggle-btn:hover {
    background: linear-gradient(135deg, #5a5a5a 0%, #6a6a6a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    animation: none;
}

.filter-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filter-toggle-btn i {
    font-size: 0.85rem;
}

/* Filtre Kontrolleri - Açılır Kapanır */
.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #2d3748;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.filter-select:hover {
    border-color: var(--primary-color);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card-wrapper {
    position: relative;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    background: #f8f9fa;
    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: 3rem;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

/* İndirim rozeti (kırmızı - varsayılan) */
.discount-badge {
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

/* İç mekan rozeti (koyu gri) */
.indoor-badge {
    top: 52px; /* İndirim rozetinin altında */
    background: linear-gradient(135deg, #616161 0%, #424242 100%);
    box-shadow: 0 2px 8px rgba(66, 66, 66, 0.3);
}

/* Dış mekan rozeti (mavi) */
.outdoor-badge {
    top: 52px; /* İndirim rozetinin altında */
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* İndirim yoksa mekan rozeti yukarıda olsun */
.product-image:not(:has(.discount-badge)) .indoor-badge,
.product-image:not(:has(.discount-badge)) .outdoor-badge {
    top: 12px;
}

.product-info {
    padding: 1.5rem 1.5rem 0.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    min-height: 2.6em;
}

.product-prices {
    margin-bottom: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price-label {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
}

.price-value {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.price-value.old {
    color: #a0aec0;
    font-weight: 400;
    font-size: 1.125rem;
}

.price-value.main {
    font-size: 1.375rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1;
}

.discount-badge {
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
    background: white;
}

.btn-favorite,
.btn-whatsapp {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    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.5rem;
    font-size: 0.8125rem;
}

.btn-favorite {
    flex: 0 0 30%;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 0.5rem;
    animation: favoritePulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.7);
}

.btn-favorite i {
    font-size: 1.1rem;
}

.btn-favorite:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.btn-favorite.active {
    background: var(--primary-color);
    color: white;
    animation: favoriteGlow 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(196, 30, 58, 0.6);
}

.btn-favorite.active i {
    animation: heartBeat 0.3s ease;
}

.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;
}

@keyframes heartBeat {
    0%,
    100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(1.2);
    }
}

@keyframes favoritePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(196, 30, 58, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(196, 30, 58, 0);
    }
}

@keyframes favoriteGlow {
    0%,
    100% {
        box-shadow: 0 0 15px rgba(196, 30, 58, 0.6),
            0 0 25px rgba(196, 30, 58, 0.4),
            inset 0 0 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(196, 30, 58, 0.8),
            0 0 35px rgba(196, 30, 58, 0.6),
            inset 0 0 15px rgba(255, 255, 255, 0.3);
        transform: scale(1.02);
    }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a {
    background: white;
    color: var(--primary-color);
    border: 2px solid #e2e8f0;
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination span.active {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #cbd5e0;
}

/* Bildirim (Notification) Stilleri */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #10b981;
    color: #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
    color: #ef4444;
}

.notification i {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .products-hero .container {
        flex-direction: column;
        align-items: center; /* Merkezde olsun */
        gap: 0.75rem; /* Boşluklar azaldı (1.5rem -> 0.75rem) */
        padding: 0 1rem; /* Yan padding azaldı */
    }

    .products-hero {
        padding: 0.4rem 0; /* Üst-alt padding azaldı */
    }

    .modern-heading {
        font-size: 1.1rem !important; /* Başlık küçüldü */
        padding: 0.4rem 1rem; /* Padding azaldı */
        margin: 0; /* Margin kaldırıldı */
    }

    .product-search-wrapper {
        width: 100%; /* Tam genişlik */
        max-width: 300px; /* Maksimum genişlik */
    }

    .filter-toggle-wrapper {
        width: 100%; /* Tam genişlik */
        max-width: 300px; /* Maksimum genişlik */
    }

    .filter-toggle-btn {
        width: 100%; /* Buton tam genişlik */
        justify-content: center;
    }

    .filter-controls {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .filter-select {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }

    .product-image {
        height: 220px;
    }

    .btn-favorite {
        font-size: 0.85rem;
        padding: 0.65rem 0.25rem;
    }

    .btn-whatsapp {
        font-size: 0.8rem;
        padding: 0.65rem 0.5rem;
        gap: 0.35rem;
    }

    .btn-whatsapp span {
        font-size: 0.75rem;
    }

    .notification {
        right: 10px;
        left: 10px;
        top: 10px;
    }
}
