/* Styles/urunler.css */

.products-page {
    --bg-card: #1c1f27;
    --bg-surface: #111318;
    --text-muted: #9da6b9;
    --border-color: #282e39;
}

/* --- Main Layout --- */
.products-page .main-section {
    padding-block: 2rem 4rem;
}

.products-page .layout-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .products-page .layout-wrapper {
        flex-direction: row;
    }
}

@media (max-width: 640px) {
    .products-page .layout-wrapper {
        gap: 0;
    }
}

/* --- Category Header (Banner) --- */
.category-header {
    position: relative;
    width: 100%;
    height: 250px; /* Banner yüksekliği */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../Resources/banner-genel.jpg'); /* Varsayılan Resim */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-header .header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.category-header .header-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.category-header .header-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-header .header-desc {
    font-size: 1.1rem;
    color: #e2e8f0;
    max-width: 600px;
    margin: 0 auto;
}

/* Mobil uyum */
@media (max-width: 768px) {
    .category-header {
        height: 180px;
    }
    .category-header .header-title {
        font-size: 1.8rem;
    }
    .category-header .header-desc {
        font-size: 0.9rem;
        padding-inline: 1rem;
    }
}

/* --- Sidebar --- */
.products-page .sidebar {
    width: 100%;
}

@media (min-width: 1024px) {
    .products-page .sidebar {
        width: 300px;
        flex-shrink: 0;
    }
}

.products-page .search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.products-page .search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-surface); 
    border: 1px solid #3b4354; 
    border-radius: 1rem;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.products-page .search-input:focus {
    border-color: var(--primary-aqua);
}

.products-page .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.products-page .filter-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.products-page .filter-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.products-page .filter-list {
    list-style: none;
}

.products-page .filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.products-page .checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.products-page .checkbox-custom {
    accent-color: var(--primary-aqua);
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.products-page .filter-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.products-page .filter-item:hover .filter-label {
    color: var(--primary-aqua);
}

.products-page .badge-count {
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
}

/* --- Toolbar --- */
.products-page .content-area {
    flex: 1;
}

.products-page .toolbar {
    background: var(--bg-surface);
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .products-page .toolbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.products-page .result-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.products-page .result-count strong {
    color: #fff;
}

.products-page .toolbar-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.products-page .sort-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.products-page .sort-select {
    background: var(--bg-surface);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    outline: none;
}

/* --- Product Cards --- */
.products-page .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.products-page .product-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.products-page .product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-aqua);
}

.products-page .card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #1c1f27; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.products-page .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kutuya yayar, boşluk bırakmaz, taşanı gizler */
    object-position: center; /* Resmin tam ortasını odaklar */
    transition: 0.5s;
}

.products-page .product-card:hover .card-img {
    transform: scale(1.1);
}

.products-page .card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    text-transform: uppercase;
}

.products-page .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.products-page .card-category {
    color: var(--primary-aqua);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.products-page .card-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.products-page .card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.products-page .card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.products-page .card-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.products-page .action-btn {
    background: transparent;
    color: var(--primary-aqua);
    border: none;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.products-page .action-btn:hover {
    text-decoration: underline;
}

/* --- CTA Section --- */
.products-page .cta-section {
    background: var(--bg-surface);
    padding-block: 4rem;
    border-top: 1px solid var(--border-color);
}

.products-page .cta-content {
    text-align: center;
}

.products-page .cta-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.products-page .cta-desc {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.products-page .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.products-page .btn-primary {
    background: var(--primary-aqua); 
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.products-page .btn-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.products-page .btn-primary:hover,
.products-page .btn-outline:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
    transform: translateY(-5px);
}

.bg-aqua {
    background-color: var(--primary-aqua);
}

.bg-green {
    background-color: var(--primary-green);
}

.bg-dark {
    background-color: #000;
}

.bg-gold {
    background-color: #d4af37;
    color: #fff;
}

/* --- Rental (Kiralama) Modern Tasarım --- */
.rental-container {
    background: var(--bg-card);
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    padding: 0; /* Banner kenara yapışsın diye padding kaldırıldı */
}

.rental-banner-wrapper {
    width: 100%;
    background: #000;
}

.rental-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rental-content-modern {
    padding: 2rem;
}

.rental-heading {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.rental-intro {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 900px;
}

/* Kutu Grid Yapısı */
.rental-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-box {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.feature-box:hover {
    border-color: var(--primary-aqua);
    transform: translateY(-5px);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 194, 255, 0.1); /* Aqua rengin saydam hali */
    color: var(--primary-aqua);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-box h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Alt Metinler */
.rental-details-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.rental-details-text p {
    margin-bottom: 1rem;
}

/* Buton */
.rental-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-whatsapp-modern {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    filter: brightness(1.1);
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .rental-content-modern {
        padding: 1.5rem;
    }
    .rental-heading {
        font-size: 1.5rem;
    }
    .rental-features-grid {
        grid-template-columns: 1fr;
    }
    .rental-actions {
        justify-content: center;
        width: 100%;
    }
    .btn-whatsapp-modern {
        font-size: 0.85rem;
        padding: 1rem 0.5rem;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;   
    }
}