/* home.php satır 3730 */
/* Product Carousel Dynamic Styles */
.product-carousel-wrapper {
    position: relative;
    overflow: visible;
}
.product-grid.carousel-grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: hidden;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    gap: 12px;
    padding-top: 12px;
    margin-top: -12px;
    padding-bottom: 24px; /* Space for shadow */
    margin-bottom: -24px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.product-grid.carousel-grid::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
.product-grid.carousel-grid .product-card {
    flex: 0 0 calc(25% - 9px);
    width: auto;
    /* Reset grid transitions if needed */
}
@media (max-width: 1024px) {
    .product-grid.carousel-grid .product-card { flex: 0 0 calc(33.333% - 8px); }
}
@media (max-width: 768px) {
    /* Simetrik gutter: wrapper'da 16px sol + 16px sağ, taşma olmadan temiz görüntü */
    .product-carousel-wrapper {
        width: 100%;
        box-sizing: border-box;
        padding: 0 16px !important;
        position: relative;
        overflow: visible !important;
    }

    .product-grid.carousel-grid {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        touch-action: pan-x pan-y !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        overscroll-behavior-y: auto !important;
        padding: 6px 0 24px 0 !important;
        margin: 0 !important;
        gap: 12px !important;
        width: 100% !important;
        min-height: 295px !important;
        box-sizing: border-box;
        scrollbar-width: none;
        align-items: stretch !important;
    }
    .product-grid.carousel-grid::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
    .product-grid.carousel-grid::after { content: none !important; display: none !important; }

    /* Ürünler: ekranda yan yana TAM 2 KART (sağ ve sol eşit 16px boşluk, dikey kaydırma yok, fiyatlar direkt görünür) */
    .product-grid.carousel-grid .product-card {
        flex: 0 0 calc((100% - 12px) / 2) !important;
        width: calc((100% - 12px) / 2) !important;
        min-width: 0 !important;
        max-width: calc((100% - 12px) / 2) !important;
        min-height: 275px !important;
        height: auto !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        margin: 0;
        border-radius: 14px !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        background: #ffffff !important;
        box-shadow: 0 4px 14px rgba(26,46,30,0.07) !important;
    }
    .product-grid.carousel-grid .product-card-image {
        aspect-ratio: 1 / 1 !important;
        width: 100% !important;
        height: auto !important;
        flex-shrink: 0 !important;
    }
    .product-grid.carousel-grid .product-card-info {
        padding: 10px 10px 16px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        flex: 1 0 auto !important;
        flex-shrink: 0 !important;
        min-height: 96px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        overflow: visible !important;
    }
    .product-grid.carousel-grid .product-card-name {
        font-size: 0.82rem !important;
        line-height: 1.25 !important;
        margin-bottom: 6px !important;
        font-weight: 600 !important;
        min-height: 2.5em !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        word-break: break-word !important;
    }
    .product-grid.carousel-grid .product-card-price {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: var(--forest, #1a2e1e) !important;
        display: flex !important;
        align-items: baseline !important;
        gap: 6px !important;
        flex-wrap: wrap !important;
        line-height: 1.3 !important;
        margin-top: auto !important;
        padding-top: 4px !important;
        padding-bottom: 2px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    .product-grid.carousel-grid .product-card-price .old-price {
        font-size: 0.76rem !important;
        color: #94a3b8 !important;
        text-decoration: line-through !important;
        margin-right: 2px !important;
    }

    /* Kampanyalar: ekranda tam 1 şık afiş kartı, orantılı ve estetik */
    .campaigns-section .product-grid.carousel-grid {
        gap: 16px !important;
    }
    .campaigns-section .product-grid.carousel-grid .product-card.campaign-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 210px !important;
        height: 210px !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 18px rgba(0,0,0,0.12) !important;
    }
    .campaigns-section .campaign-card .product-info {
        padding: 20px 22px !important;
    }
    .campaigns-section .campaign-card .product-title {
        font-size: 1.25rem !important;
        margin-bottom: 6px !important;
        font-weight: 700 !important;
    }
    .campaigns-section .campaign-card .product-info p {
        font-size: 0.85rem !important;
        line-height: 1.35 !important;
        margin-bottom: 14px !important;
        max-width: 82% !important;
        opacity: 0.95;
    }
    .campaigns-section .campaign-card .campaign-glow-btn {
        padding: 7px 20px !important;
        font-size: 0.78rem !important;
        border-radius: 20px !important;
        box-shadow: 0 3px 12px rgba(0,0,0,0.2) !important;
    }

    /* Kampanya altındaki navigasyon noktaları */
    .campaign-dots-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        margin-top: 10px;
    }
    .campaign-dot {
        width: 7px;
        height: 7px;
        border-radius: 99px;
        background: #cbd5e1;
        border: none;
        padding: 0;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    .campaign-dot.active {
        width: 22px;
        background: var(--moss, #2c4c3b);
    }
}

/* Carousel Arrow Buttons */
.carousel-btn {
    position: absolute;
    top: calc(50% - 12px);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(44, 76, 59, 0.1);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(26,46,30,0.1);
    color: var(--forest, #1a2e1e);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s;
}
.product-carousel-wrapper:hover .carousel-btn {
    opacity: 0.6;
    visibility: visible;
}
.carousel-btn:hover {
    background: #fff;
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}
.carousel-btn.prev-btn { left: -20px; }
.carousel-btn.next-btn { right: -20px; }
@media (max-width: 768px) {
    .carousel-btn { display: none !important; }
}

