﻿.products-page-section {
    margin-bottom: 70px;
}

.products-section-box {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 28px;
    padding: 30px 26px;
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.products-hero-box {
    background: linear-gradient(135deg, #ffffff, #eef7fc);
    border-radius: 24px;
    padding: 36px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.section-head h2 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #17212b;
}

.section-head p {
    font-size: 18px;
    color: #5f6f7c;
}

.product-category-menu {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.category-link {
    padding: 12px 24px;
    border-radius: 999px;
    background-color: #ffffff;
    color: #1f2937;
    text-decoration: none;
    font-weight: 700;
    transition: 0.25s ease;
    border: 1px solid #dbe7ef;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

    .category-link:hover {
        background-color: #198754;
        color: #fff;
        border-color: #198754;
        transform: translateY(-2px);
    }

    .category-link.active {
        background-color: #198754;
        color: #fff;
        border-color: #198754;
        box-shadow: 0 10px 20px rgba(25,135,84,0.20);
    }

.product-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    transition: 0.28s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #eef3f6;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
    }

.modern-product-image-wrap {
    height: 250px;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modern-product-image {
    max-height: 190px;
    width: 100%;
    object-fit: contain;
    transition: transform 0.28s ease;
}

.product-card:hover .modern-product-image {
    transform: scale(1.06);
}

.modern-product-body {
    padding: 20px 20px 14px 20px;
    flex-grow: 1;
}

.modern-product-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #198754;
    background: #edf8f1;
    border-radius: 999px;
    padding: 7px 12px;
    margin-bottom: 14px;
}

.modern-product-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d2732;
    margin-bottom: 10px;
    min-height: 44px;
}

.modern-product-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #64707c;
    min-height: 44px;
    margin-bottom: 14px;
}

.modern-product-price {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.modern-product-footer {
    padding: 0 20px 20px 20px;
}

    .modern-product-footer .btn {
        font-weight: 700;
        padding: 12px 16px;
        border-radius: 14px;
    }

.best-seller-card {
    border: 1px solid #dff3e8;
}

.best-seller-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    background: linear-gradient(135deg, #198754, #24b36b);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    padding: 8px 14px;
    box-shadow: 0 10px 20px rgba(25, 135, 84, 0.22);
}

@media (max-width: 991px) {
    .section-head h2 {
        font-size: 36px;
    }

    .modern-product-image-wrap {
        height: 220px;
    }

    .modern-product-price {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .products-section-box {
        padding: 22px 16px;
        border-radius: 22px;
    }

    .section-head h2 {
        font-size: 30px;
    }

    .section-head p {
        font-size: 15px;
    }

    .modern-product-image-wrap {
        height: 200px;
    }

    .modern-product-title {
        font-size: 22px;
        min-height: auto;
    }

    .modern-product-desc {
        min-height: auto;
    }

    .modern-product-price {
        font-size: 28px;
    }
}

.product-detail-box {
    background: rgba(255, 255, 255, 0.60);
    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 30px;
    padding: 34px;
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
}

.product-detail-image-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #f6fbfe 100%);
    border-radius: 26px;
    padding: 30px;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image {
    max-width: 100%;
    max-height: 430px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

    .product-detail-image:hover {
        transform: scale(1.04);
    }

.product-detail-content {
    padding-right: 10px;
}

.product-detail-category {
    display: inline-block;
    background: #edf8f1;
    color: #198754;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
}

.product-detail-title {
    font-size: 42px;
    font-weight: 800;
    color: #17212b;
    line-height: 1.15;
}

.product-detail-shortinfo {
    font-size: 18px;
    line-height: 1.8;
    color: #5f6f7c;
}

.product-detail-price {
    font-size: 42px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.8px;
}

.stock-badge {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.in-stock {
    background: #eaf8ef;
    color: #198754;
}

.out-stock {
    background: #fff0f0;
    color: #dc3545;
}

.product-detail-mini-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.mini-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #425160;
    font-weight: 600;
}

    .mini-info-item i {
        color: #198754;
        font-size: 18px;
    }

.product-description-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 30px 28px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
}

.product-description-text {
    font-size: 16px;
    line-height: 1.9;
    color: #566371;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .product-detail-box {
        padding: 24px;
    }

    .product-detail-image-wrap {
        min-height: 360px;
    }

    .product-detail-title {
        font-size: 34px;
    }

    .product-detail-price {
        font-size: 34px;
    }
}

@media (max-width: 576px) {
    .product-detail-box {
        padding: 18px;
        border-radius: 22px;
    }

    .product-detail-image-wrap {
        min-height: 280px;
        padding: 20px;
        border-radius: 20px;
    }

    .product-detail-title {
        font-size: 28px;
    }

    .product-detail-shortinfo {
        font-size: 16px;
    }

    .product-detail-price {
        font-size: 30px;
    }

    .product-description-box {
        padding: 22px 18px;
    }
}

.product-description-box + section {
    margin-top: 40px;
}
.similar-product-card {
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

    .similar-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10);
    }

.similar-product-image-wrap {
    height: 160px;
    padding: 16px;
    border-bottom: 1px solid #f2f4f7;
}

.similar-product-image {
    max-height: 120px;
}

.similar-product-body {
    padding: 14px 14px 10px 14px;
}

.similar-product-category {
    font-size: 11px;
    padding: 5px 10px;
    margin-bottom: 10px;
}

.similar-product-title {
    font-size: 15px;
    font-weight: 700;
    min-height: 38px;
    margin-bottom: 8px;
}

.similar-product-desc {
    font-size: 13px;
    line-height: 1.5;
    min-height: 36px;
    margin-bottom: 10px;
    color: #6b7280;
}

.similar-product-price {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 0;
}

.similar-product-footer {
    padding: 0 14px 14px 14px;
}

    .similar-product-footer .btn {
        font-size: 14px;
        font-weight: 700;
        padding: 10px 12px;
        border-radius: 12px;
    }

.similar-section-head h2 {
    font-size: 32px;
}

.similar-section-head p {
    font-size: 16px;
}

.product-description {
    white-space: pre-line;
    line-height: 1.8;
}

/* ÜRÜNLER SAYFASI - MOBİLDE 2'Lİ ÜRÜN */
@media (max-width: 576px) {

    .products-row,
    .product-list,
    .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

        .products-row > div,
        .product-list > div,
        .products-grid > div {
            width: 100% !important;
            max-width: 100% !important;
            flex: unset !important;
        }

    .product-card {
        border-radius: 14px;
        min-height: 220px;
        padding: 10px;
    }

        .product-card img,
        .product-image {
            max-width: 85px;
            height: 85px;
            object-fit: contain;
            margin: 0 auto 8px auto;
            display: block;
        }

        .product-card h5,
        .product-card h6,
        .product-title {
            font-size: 12px;
            line-height: 1.3;
            text-align: center;
        }

        .product-card .btn {
            font-size: 12px;
            padding: 7px 0;
            border-radius: 9px;
        }
}

/* ÜRÜNLER SAYFASI - ÇOK SATANLAR (MOBİL SLIDER) */
@media (max-width: 576px) {

    .best-seller-products-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 12px;
        padding: 0 8px 10px 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

        /* scroll bar gizle */
        .best-seller-products-row::-webkit-scrollbar {
            display: none;
        }

        .best-seller-products-row > div {
            flex: 0 0 48% !important;
            max-width: 48% !important;
            width: 48% !important;
            scroll-snap-align: start;
        }

        /* kart küçült */
        .best-seller-products-row .product-card {
            min-height: 200px;
            border-radius: 14px;
            padding: 10px;
        }

        .best-seller-products-row .product-image {
            max-width: 80px;
            height: 80px;
            object-fit: contain;
        }

        .best-seller-products-row h5,
        .best-seller-products-row h6 {
            font-size: 12px;
        }

        .best-seller-products-row .btn {
            font-size: 12px;
            padding: 6px 0;
        }
}

/* MOBİLDE ÜRÜN AÇIKLAMASINI GİZLE */
@media (max-width: 576px) {

    .product-card p,
    .product-description,
    .product-info,
    .home-product-info {
        display: none !important;
    }

    .product-card {
        min-height: auto !important;
        padding-bottom: 18px;
    }

        .product-card h5,
        .product-card h6,
        .product-title {
            margin-top: 12px;
            margin-bottom: 12px;
            font-size: 14px;
        }

    .product-price,
    .home-product-price {
        font-size: 24px;
        margin: 12px 0;
    }

    .product-card .btn {
        width: 100%;
        font-size: 13px;
        padding: 9px 0;
    }
}

/* MOBİLDE ÜRÜN GÖRSELİNİ DAHA BÜYÜT */
@media (max-width: 576px) {

    .product-image-wrap,
    .home-product-image-wrap {
        height: 180px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
    }

    .product-image,
    .home-product-image,
    .product-card img {
        max-width: 150px !important;
        max-height: 150px !important;
        width: auto;
        height: auto;
        object-fit: contain;
        transition: 0.3s;
    }

    .product-card:active img {
        transform: scale(1.08);
    }
}

@media (max-width: 576px) {
    .product-col {
        display: flex;
    }

    .product-card {
        width: 100%;
        min-height: 500px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-card-main {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }

    .modern-product-image-wrap {
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modern-product-image {
        max-width: 155px;
        max-height: 155px;
        object-fit: contain;
    }

    .modern-product-desc {
        display: none;
    }

    .modern-product-title {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .modern-product-price {
        white-space: nowrap;
        font-size: 28px;
        line-height: 1.1;
        text-align: center;
    }

    .modern-product-footer {
        margin-top: auto;
    }
}

@media (max-width: 576px) {

    .best-seller-mobile-scroll {
        width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 14px;
    }

        .best-seller-mobile-scroll::-webkit-scrollbar {
            display: none;
        }

        .best-seller-mobile-scroll .best-seller-products-row {
            display: flex !important;
            flex-wrap: nowrap !important;
            width: max-content !important;
            gap: 14px !important;
            margin: 0 !important;
        }

        .best-seller-mobile-scroll .product-col {
            flex: 0 0 46vw !important;
            width: 46vw !important;
            max-width: 46vw !important;
            
        }
}

/* ÜRÜN DETAY - BENZER ÜRÜNLER MOBİL SLIDER */
@media (max-width: 576px) {

    .similar-products-mobile-scroll {
        width: 100%;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding: 0 8px 14px 8px;
    }

        .similar-products-mobile-scroll::-webkit-scrollbar {
            display: none;
        }

    .similar-products-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 14px !important;
        width: max-content !important;
        margin: 0 !important;
    }

    .similar-product-col {
        flex: 0 0 46vw !important;
        width: 46vw !important;
        max-width: 46vw !important;
    }

        .similar-product-col .product-card {
            width: 100% !important;
            min-height: 500px !important;
        }

        .similar-product-col .modern-product-image-wrap {
            height: 180px !important;
        }

        .similar-product-col .modern-product-image {
            max-width: 150px !important;
            max-height: 150px !important;
            object-fit: contain !important;
        }

        .similar-product-col .modern-product-desc {
            display: none !important;
        }

        .similar-product-col .modern-product-title {
            min-height: 44px !important;
            text-align: center !important;
        }

        .similar-product-col .modern-product-price {
            white-space: nowrap !important;
            text-align: center !important;
            font-size: 28px !important;
        }
}

/* BENZER ÜRÜNLER - MASAÜSTÜ KART ARALIĞI */
@media (min-width: 768px) {

    .similar-products-row {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 24px !important;
    }

    .similar-product-col {
        flex: 0 0 calc(25% - 18px) !important;
        max-width: calc(25% - 18px) !important;
        width: calc(25% - 18px) !important;
        padding: 0 !important;
    }

        .similar-product-col .product-card {
            width: 100% !important;
            margin: 0 !important;
        }
}

/* MOBİL ÜRÜNLER TAŞMA DÜZELTME */
@media (max-width: 576px) {

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .col-6 {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .product-card {
        width: 100% !important;
    }

    .products-container {
        overflow-x: hidden !important;
    }
}

/* MOBİL TÜM ÜRÜNLER - TAŞMA KESİN DÜZELTME */
@media (max-width: 576px) {

    html,
    body {
        overflow-x: hidden !important;
    }

    .products-section-box {
        overflow: hidden !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .products-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

        .products-row > .product-col,
        .products-row > div {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            flex: none !important;
            padding-left: 0 !important;
            padding-right: 0 !important;
        }

        .products-row .product-card {
            width: 100% !important;
            min-width: 0 !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
        }

        .products-row .modern-product-image-wrap {
            width: 100% !important;
            max-width: 100% !important;
            overflow: hidden !important;
        }

        .products-row .modern-product-image {
            max-width: 140px !important;
            max-height: 140px !important;
        }
}

/* ÜRÜNLER SAYFASI - ÇOK SATAN MOBİL TEK KART ORTALI */
@media (max-width: 576px) {

    .best-seller-mobile-scroll {
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 0 18px 0 !important;
    }

        .best-seller-mobile-scroll .best-seller-products-row {
            display: flex !important;
            flex-wrap: nowrap !important;
            gap: 18px !important;
            width: 100% !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        .best-seller-mobile-scroll .product-col {
            flex: 0 0 100% !important;
            width: 100% !important;
            max-width: 100% !important;
            padding: 0 34px !important;
            box-sizing: border-box !important;
            scroll-snap-align: center !important;
        }

        .best-seller-mobile-scroll .product-card {
            width: 100% !important;
            max-width: 320px !important;
            margin: 0 auto !important;
        }
}

