/* products.html - Products Listing Page */

/* Premium Background */
body {
    background-image: url('../../assets/backgrounds/premium-bg.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.page-title {
    margin: 20px 0;
}

.page-title h1 {
    font-size: 1.8rem;
}

/* Filters Toolbar */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.filters select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    min-width: 160px;
}

.filters .search-inline {
    flex: 1;
    min-width: 200px;
}

.filters .search-inline input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* Products Grid */
#productsList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media(min-width: 768px) {
    #productsList {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(min-width: 1024px) {
    #productsList {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

/* ============================================
   PRODUCTS HERO (Sol/Sağ Layout)
============================================ */
.products-hero {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    margin-bottom: 16px;
    background-image: url('../../assets/backgrounds/premium-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius, 14px);
}

/* SOL BLOK */
.products-hero-left {
    flex: 1;
    min-width: 0;
}

.products-hero-title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
}

.products-hero-desc {
    font-size: 14px;
    color: #000000;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

/* Tikler */
.products-hero-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.products-hero-checks span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #000000;
    white-space: nowrap;
}

/* Yeşil tik ikonu */
.check-icon {
    width: 16px;
    height: 16px;
    color: #22c55e;
    flex-shrink: 0;
}

/* SAĞ BLOK - Butonlar alt alta */
.products-hero-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.products-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
}

/* WhatsApp Butonu */
.products-hero-btn-whatsapp,
.products-hero-btn[href*="wa.me"] {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #ffffff !important;
}

.products-hero-btn-whatsapp:hover,
.products-hero-btn[href*="wa.me"]:hover {
    background-color: #1ebe57 !important;
    border-color: #1ebe57 !important;
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}


/* ============ RESPONSIVE ============ */

/* Mobile */
@media (max-width: 768px) {
    .products-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
        gap: 16px;
    }

    .products-hero-left {
        width: 100%;
    }

    .products-hero-title {
        font-size: 18px;
    }

    .products-hero-desc {
        font-size: 13px;
    }

    .products-hero-checks {
        gap: 8px;
    }

    .products-hero-checks span {
        font-size: 11px;
    }

    .check-icon {
        width: 14px;
        height: 14px;
    }

    .products-hero-right {
        width: 100%;
    }

    .products-hero-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
}

/* SEO Content Section */
.seo-content-wrapper {
    margin-top: 4rem;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.seo-content-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.seo-content-wrapper h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.seo-content-wrapper p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 1rem;
}

@media (prefers-color-scheme: dark) {
    .seo-content-wrapper {
        background-color: #1f2937;
        border-color: #374151;
    }

    .seo-content-wrapper h2 {
        color: #f3f4f6;
    }

    .seo-content-wrapper h3 {
        color: #e5e7eb;
    }

    .seo-content-wrapper p {
        color: #d1d5db;
    }
}

/* SEO WhatsApp Button */
.seo-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: all 0.2s ease;
    width: fit-content;
}

.seo-whatsapp-btn:hover {
    background-color: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.seo-whatsapp-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 640px) {
    .seo-whatsapp-btn {
        width: 100%;
        justify-content: center;
    }
}