﻿/* wwwroot/assets/css/custom.css */

/* Header: ana sayfada şeffaf/beyaz kalmasın, açılışta da görünsün */
.header {
    background-color: var(--cp-color-bg-1);
}

/* Mobil menü: kullanılmayan ikinci panel menüyü engellemesin */
@media (max-width: 992px) {
    .mobile-side-menu-overlay.is-open {
        z-index: 9998;
    }

    .mobile-side-menu {
        z-index: 9999;
    }

    .mobile-side-menu.is-open {
        z-index: 9999;
    }
}

/* Sayfa geçişlerinde preloader (Yeşiller yazısı) görünmesin */
html.skip-preloader .preloader {
    display: none !important;
}

/* Ürünler sayfası - ürün grupları yazıları */
.products-page-section .col-md-2 .section-title {
    font-size: 40px;
    line-height: 1.25;
}


/* Ürünler sayfası - başlık ile liste arası boşluk */
.products-page-section .col-md-2 .section-heading {
    margin-bottom: 16px;
}

.products-page-section .col-md-2 .section-heading.mt-5 {
    margin-top: 32px;
}

.products-page-section .product-group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.products-page-section .product-group-list li {
    margin-bottom: 12px;
}

.products-page-section .product-group-list a {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
}

/* Ürün kartı: resim üstte, isim altta — yazı resmi kapatmasın */
.product-card.project-item-3,
.project-inner-wrap .product-card.project-item-3,
.home-products-section .project-inner-wrap .product-card.project-item-3 {
    height: auto !important;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}

.product-card .project-thumb {
    height: 240px !important;
    flex-shrink: 0;
    background-color: #f4f7f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.product-card .project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
}

.product-card .project-thumb .overlay,
.product-card:hover .project-thumb .overlay {
    display: none;
}

.product-card .project-content,
.product-card:hover .project-content {
    position: relative !important;
    bottom: auto !important;
    left: auto;
    width: 100%;
    padding: 14px 16px;
    visibility: visible !important;
    opacity: 1 !important;
}

.product-card .project-content .title {
    font-size: 16px;
    line-height: 1.35;
    margin: 0;
}

.home-products-section .product-card .project-thumb {
    height: 220px !important;
}

.home-products-section .product-card .project-content {
    padding: 12px 14px;
}

.home-products-section .product-card .project-content .title {
    font-size: 15px;
}

.home-products-pager {
    margin-top: 40px;
}

.home-products-pager ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-products-pager a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--cp-color-bg-1);
    border-radius: 8px;
    color: var(--cp-color-bg-1);
    font-weight: 600;
    text-decoration: none;
}

.home-products-pager a:hover,
.home-products-pager li.active a {
    background-color: var(--cp-color-bg-1);
    color: #fff;
}

.category-frame-section .project-item .project-thumb {
    padding: 12px;
    background: var(--cp-color-theme-primary); /* #89EA5F açık yeşil */
    border: 4px solid var(--cp-color-bg-1);
    border-radius: 16px;
}

.category-frame-section .project-item .project-thumb img {
    border: 4px solid #fff;
    border-radius: 8px;
}

.category-frame-section .project-item .project-thumb .overlay {
    top: 16px;
    left: 16px;
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    border-radius: 4px;
}

/* About - sayacın altındaki sol resim */
.about-left-content .about-left-image {
    width: 85%; /* sağdaki yazıdan uzaklaştırır */
    max-width: 85%;
    margin-left: 0;
    margin-right: auto; /* resmi sola yaslar, sağda boşluk bırakır */
    margin-top: 40px;
    border-radius: 8px; /* sağdaki resimle aynı */
    overflow: hidden; /* köşelerin yuvarlak görünmesi için şart */
}

.about-left-content .about-left-image img {
    height: 350px; /* sağdaki resimle aynı yükseklik */
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.about-left-content .about-left-image .img-overlay {
    border-radius: 8px;
}

/* About - marka swiper'ını biraz sola kaydır */
.about-brands-section .sponsor-carousel {
    margin-left: -150px; /* sola kaydırma — 20px, 30px, 50px deneyin */
}

/* Markalar sayfası - logoları tam sığdır */
.brands-page-section .project-item-3 {
    height: auto;
}

.brands-page-section .project-item-3 .project-thumb {
    height: 220px; /* logo kutusu yüksekliği — 180px–280px deneyin */
    background-color: #fff; /* boş alanlar beyaz */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* logo etrafında nefes payı */
}

.brands-page-section .project-item-3 .project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* tamamı görünür, kırpılmaz */
    object-position: center;
}

/* Ürün kartı ve detay modalı */
.product-card-trigger {
    border: 0;
    padding: 0;
    background: transparent;
}

.product-card-trigger:focus-visible {
    outline: 3px solid rgba(137, 234, 95, 0.7);
    outline-offset: 6px;
    border-radius: 24px;
}

.product-card-trigger .product-card.project-item-3 {
    height: auto !important;
}

.product-category-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #004037;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.product-theme-modal .modal-dialog {
    max-width: 980px;
}

.product-theme-modal .modal-content {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 30px 100px rgba(0, 64, 55, 0.24);
}

.product-theme-modal .modal-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(137, 234, 95, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(0, 64, 55, 0.05), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.product-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 64, 55, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: #004037;
}

.product-modal-image-wrap {
    position: relative;
    min-height: 100%;
    background: linear-gradient(180deg, #f3f8f5 0%, #eef5f1 100%);
}

.product-modal-image {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: contain;
    object-position: center;
}

.product-modal-body {
    position: relative;
    z-index: 1;
    padding: 54px 42px 42px;
}

.product-modal-kicker {
    display: inline-flex;
    margin-bottom: 14px;
    color: #89EA5F;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.product-modal-title {
    margin-bottom: 18px;
    font-size: clamp(28px, 2.6vw, 44px);
    line-height: 1.08;
}

.product-modal-copy {
    margin-bottom: 28px;
    color: #5a6660;
    font-size: 16px;
    line-height: 1.8;
}

.product-modal-meta {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
}

.product-modal-meta-item {
    padding: 16px 18px;
    border: 1px solid rgba(0, 64, 55, 0.1);
    border-radius: 18px;
    background: #f8fbf9;
}

.product-modal-meta-item span {
    display: block;
    margin-bottom: 6px;
    color: #6d7a74;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-modal-meta-item strong {
    color: #004037;
    font-size: 18px;
    font-weight: 700;
}

.product-modal-actions .cp-primary-btn {
    width: 100%;
    justify-content: center;
}

.product-modal-description {
    margin-bottom: 28px;
    color: #4f5d57;
    line-height: 1.8;
    white-space: pre-line;
}

@media (max-width: 991.98px) {
    .product-modal-body {
        padding: 36px 28px 28px;
    }

    .product-modal-image {
        min-height: 300px;
    }
}

@media (max-width: 992px) {
    #sidebar-area {
        display: none !important;
    }
}

@media (max-width: 992px) {
    body.mobile-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 992px) {
    .mobile-side-menu .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-side-menu .mobile-nav li {
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    }

    .mobile-side-menu .mobile-nav li a {
        color: #004037;
        font-size: 18px;
        font-weight: 600;
        text-decoration: none;
    }
}