﻿/* Features Section 1 Styles */
.features-section-1 {
    padding: 100px 0;
    background-color: #ffffff;
}

.features-section-1 .features-container {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

/* Text Elements Wrapper Container */
.text-wrapper-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    background-color: #ffffff;
    border-radius: 12px;
    margin-bottom: 40px;
}

/* Text Elements Container */
.text-elements-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.text-column {
    display: flex;
    flex-direction: column;
}

/* Cards Wrapper Container */
.cards-wrapper-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
}

.features-heading {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    font-size: 40px;
    line-height: 1.4em;
    letter-spacing: -0.01em;
    color: #333231;
    margin: 0;
    text-align: left;
    max-width: 100%;
    padding-right: 20px;
}

.highlight-text {
    color: #3E7B51;
}

.features-subheading {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5em;
    color: #6E6C6A;
    margin: 0;
    text-align: left;
    max-width: 100%;
    padding-right: 20px;
}

.product-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.product-frame {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    flex: 1;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 400px;
    min-height: 400px;
    border-radius: 0px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 16px 24px 0px rgba(0, 0, 0, 0.16);
}

.classic-card {
    background-color: #AFCFED;
}

.protein-card {
    background-color: #CFBDDD;
}

.juice-card {
    background-color: #B2D0B9;
}

/* New Cards */
.aralikli-oruc-card {
    background-color: #EDD5AB;
}

.yirmibirgun-card {
    background-color: #EDBEAB;
}

.tekogun-card {
    background-color: #C0EDAB;
}

.product-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 70%;
    max-width: 320px;
    max-height: 320px;
    background-size: contain;
    background-position: bottom right;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.classic-image {
    background-image: url('../../assets/images/packages/27.png');
}

.protein-image {
    background-image: url('../../assets/images/packages/79.png');
}

.juice-image {
    background-image: url('../../assets/images/packages/image2.png');
    transform: scale(1.25) translateX(25px);
}

/* New Card Images */
.aralikli-oruc-image {
    background-image: url('../../assets/images/packages/27.png');
}

.yirmibirgun-image {
    background-image: url('../../assets/images/packages/79.png');
}

.tekogun-image {
    background-image: url('../../assets/images/packages/79.png');
}

.product-name {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.4em;
    margin: 0;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.classic-card .product-name {
    color: #3C5873;
}

.protein-card .product-name {
    color: #5B3C73;
}

.juice-card .product-name {
    color: #285F35;
}

/* New Card Product Names */
.aralikli-oruc-card .product-name {
    color: #483E2E;
}

.yirmibirgun-card .product-name {
    color: #48352E;
}

.tekogun-card .product-name {
    color: #36482E;
}

.product-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 10;
}

.product-price {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.5em;
    letter-spacing: 0.04em;
}

.classic-card .product-price {
    color: #2E3B48;
}

.protein-card .product-price {
    color: #3D2E48;
}

.juice-card .product-price {
    color: #2E4834;
}

/* New Card Prices */
.aralikli-oruc-card .product-price {
    color: #483E2E;
}

.yirmibirgun-card .product-price {
    color: #48352E;
}

.tekogun-card .product-price {
    color: #36482E;
}

.product-price-detail {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5em;
    letter-spacing: 0.04em;
}

.classic-card .product-price-detail {
    color: #3C5873;
}

.protein-card .product-price-detail {
    color: #5B3C73;
}

.juice-card .product-price-detail {
    color: #3C7349;
}

/* New Card Price Details */
.aralikli-oruc-card .product-price-detail {
    color: #735F3C;
}

.yirmibirgun-card .product-price-detail {
    color: #734C3C;
}

.tekogun-card .product-price-detail {
    color: #4D733C;
}

.arrow-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.classic-card .arrow-icon {
    background-color: #AFCFED;
    color: #3C5873;
}

.protein-card .arrow-icon {
    background-color: #CFBDDD;
    color: #5B3C73;
}

.juice-card .arrow-icon {
    background-color: #B2D0B9;
    color: #3C7349;
}

/* New Card Arrow Icons */
.aralikli-oruc-card .arrow-icon {
    background-color: #EDD5AB;
    color: #483E2E;
}

.yirmibirgun-card .arrow-icon {
    background-color: #EDBEAB;
    color: #48352E;
}

.tekogun-card .arrow-icon {
    background-color: #C0EDAB;
    color: #36482E;
}

.features-section-1-description {
    font-family: 'Fira Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5em;
    color: #6E6C6A;
    margin: 0;
    text-align: left;
}

/* Features Section 1 Mobile Styles */
@media (max-width: 1024px) {
    .product-image {
        width: 65%;
        height: 65%;
    }
}

@media (max-width: 768px) {
    .features-section-1 {
        padding: 40px 0;
    }

    .features-section-1 .features-container {
        gap: 30px;
    }

    .text-wrapper-container {
        padding: 15px;
        margin-bottom: 0;
    }

    .product-image {
        width: 60%;
        height: 60%;
    }

    .text-elements-container {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
    }

    .cards-wrapper-container {
        padding: 5px;
    }

    .features-heading {
        font-size: 34px;
        text-align: left;
    }

    .features-subheading {
        font-size: 18px;
        text-align: left;
    }

    .product-cards-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        width: 100%;
        max-width: 95vw;
        min-width: 350px;
        height: 400px;
        margin: 0 auto;
    }

    .product-image {
        width: 220px;
        height: 220px;
    }

    .product-image.classic-image,
    .product-image.protein-image {
        width: 350px;
        height: 350px;
    }

    .product-image.juice-image {
        width: 320px;
        height: 320px;
    }

    .product-name {
        font-size: 24px;
        top: 15px;
        left: 20px;
    }

    .product-price-container {
        bottom: 20px;
        left: 20px;
    }

    .product-price {
        font-size: 18px;
    }

    .product-price-detail {
        font-size: 12px;
    }

    .features-section-1-description {
        font-size: 14px;
    }
}

/* Tablet styles (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .features-section-1 {
        padding: 60px 0;
    }

    .features-section-1 .features-container {
        padding: 0 20px;
        gap: 30px;
    }

    .text-wrapper-container {
        padding: 20px;
        margin-bottom: 30px;
    }

    .text-elements-container {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .product-cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        max-width: 100%;
        padding: 0 10px;
    }

    .product-card {
        height: 320px;
        min-height: 320px;
    }

    .product-image {
        width: 180px;
        height: 180px;
    }

    .product-card .classic-image,
    .product-card .protein-image,
    .product-card .juice-image {
        width: 200px;
        height: 200px;
    }

    .features-heading {
        font-size: 32px;
        text-align: center;
        padding-right: 0;
    }

    .features-subheading {
        font-size: 16px;
        text-align: center;
        padding-right: 0;
    }

    .product-name {
        font-size: 22px;
        top: 12px;
        left: 15px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-price-container {
        bottom: 15px;
        left: 15px;
    }

    .features-section-1-description {
        font-size: 14px;
    }
}

/* Extra-small phones (<=480px) */
@media (max-width: 480px) {
    .features-section-1 {
        padding: 32px 0;
    }

    .features-section-1 .features-container {
        padding: 0 5px;
        gap: 24px;
    }

    .features-heading {
        font-size: 30px;
    }

    .features-subheading {
        font-size: 16px;
    }

    .product-card {
        width: 100%;
        max-width: 90vw;
        min-width: 320px;
        height: 380px;
        margin: 0 auto;
    }

    .product-image {
        width: 200px;
        height: 200px;
    }

    .product-image.classic-image,
    .product-image.protein-image {
        width: 300px;
        height: 300px;
    }

    .product-image.juice-image {
        width: 280px;
        height: 280px;
    }

    .product-name {
        font-size: 22px;
        top: 12px;
        left: 16px;
    }

    .product-price-container {
        bottom: 16px;
        left: 16px;
    }

    .product-price {
        font-size: 16px;
    }

    .product-price-detail {
        font-size: 11px;
    }

    .features-section-1-description {
        font-size: 13px;
    }
}

/* Disable hover effects on touch devices */
@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ===== Package Page Carousel Variant ===== */

/* Section level: clip any overflow so cards don't cause horizontal scrollbar */
.package-page-carousel {
    overflow-x: hidden;
    overflow-y: visible;
}

/* Carousel Header - heading + nav arrows side by side */
.package-page-carousel .carousel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.package-page-carousel .carousel-text-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
}

.package-page-carousel .carousel-text-content .features-heading {
    padding-right: 0;
}

.package-page-carousel .carousel-text-content .features-subheading {
    font-size: 20px;
    padding-right: 0;
    max-width: 600px;
}

/* Navigation Arrows */
.carousel-nav-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

.carousel-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #EFEEE5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
}

.carousel-nav-btn:hover {
    background-color: #E5E4DB;
    transform: scale(1.05);
}

.carousel-nav-btn:active {
    transform: scale(0.95);
}

.carousel-nav-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    transform: none;
}

.carousel-nav-btn svg {
    flex-shrink: 0;
}

/* Carousel Cards Wrapper - overflow visible so cards peek out to the right */
.carousel-cards-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
    position: relative;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

/* Track uses transform-based sliding, not native scroll */
.carousel-cards-track {
    display: flex;
    gap: 24px;
    width: max-content;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    transform: translate3d(0, 0, 0);
    cursor: grab;
}

.carousel-cards-track:active {
    cursor: grabbing;
}

/* Carousel Product Frame */
.carousel-product-frame {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    width: 384px;
}

.carousel-product-frame .product-card {
    width: 384px;
    height: 400px;
    min-height: 400px;
}

.carousel-product-frame .product-image {
    width: 70%;
    height: 70%;
    max-width: 320px;
    max-height: 320px;
}

/* Override for package page carousel — keep text elements stacked */
.package-page-carousel .text-wrapper-container,
.package-page-carousel .text-elements-container,
.package-page-carousel .cards-wrapper-container {
    display: none;
}

/* Desktop: allow visual overflow for peek effect */
@media (min-width: 1200px) {

    .package-page-carousel,
    .package-page-carousel .carousel-cards-wrapper {
        overflow: visible;
    }
}

/* ===== Carousel Mobile Responsive ===== */
@media (max-width: 768px) {
    .package-page-carousel .carousel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 0 15px;
    }

    .package-page-carousel .carousel-text-content .features-subheading {
        font-size: 16px;
    }

    .carousel-nav-buttons {
        display: none;
    }

    .carousel-cards-wrapper {
        padding: 0 15px;
        overflow: visible;
    }

    .carousel-cards-track {
        gap: 24px;
        cursor: grab;
    }

    /* Card width: ~85% of viewport so 1 full card + peek of 2nd visible */
    /* (100vw - 32px padding) * 0.85 */
    .carousel-product-frame {
        width: calc((100vw - 32px) * 0.85);
        scroll-snap-align: start;
        gap: 12px;
    }

    .carousel-product-frame .product-card {
        width: 100%;
        height: 350px;
        min-height: 350px;
    }

    .carousel-product-frame .product-image {
        width: 200px;
        height: 200px;
    }

    .carousel-product-frame .product-name {
        font-size: 24px;
    }
}

/* Tablet responsive for carousel */
@media (min-width: 769px) and (max-width: 992px) {
    .package-page-carousel .carousel-header {
        padding: 0 20px;
    }

    .carousel-cards-wrapper {
        padding: 0 20px;
    }

    .carousel-product-frame {
        width: 320px;
    }

    .carousel-product-frame .product-card {
        width: 320px;
        height: 360px;
        min-height: 360px;
    }

    .carousel-product-frame .product-image {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 480px) {
    .carousel-product-frame {
        width: calc((100vw - 32px) * 0.85);
    }

    .carousel-product-frame .product-card {
        width: 100%;
        height: 320px;
        min-height: 320px;
    }

    .carousel-product-frame .product-image {
        width: 180px;
        height: 180px;
    }

    .carousel-product-frame .product-name {
        font-size: 22px;
    }
}