/* =====================================================
   PAGE
===================================================== */

.product-modern-page {
    background: linear-gradient(180deg, #f7eded 0%, #ffffff 100%);
}


/* =====================================================
   LOGO FIX — MOBILE
===================================================== */

@media (max-width: 640px) {

    .site-header img,
    .custom-logo,
    .logo img {

        max-height: 60px !important;
        width: auto !important;
        height: auto !important;

        object-fit: contain;
    }
}

/* =====================================================
   HERO FULL WIDTH (FINAL FIX)
===================================================== */

.product-hero {
    padding: 80px 0 60px;
    /* 🔥 remove side padding */
}

/* 🔥 FULL WIDTH GRID */
.product-hero-grid {

    width: 100%;
    max-width: none;
    /* 🔥 REMOVE LIMIT */
    margin: 0;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* 🔥 give image more space */
    gap: 60px;
    align-items: stretch;
}


/* =====================================================
   GALLERY (TAKES FULL SPACE)
===================================================== */

.product-gallery {
    width: 100%;
    height: 100%;
}

/* 🔥 MAIN IMAGE FULL HEIGHT */

.product-main-image {
    width: 100%;
    height: 520px;
    /* 🔥 BIGGER */
}

/* image */

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}



/* =====================================================
   CONTENT (RIGHT SIDE)
===================================================== */

.product-content {
    padding-right: 40px;
}

.product-title {
    font-size: 52px;
}

.product-price {
    font-size: 28px;
}

.product-short {
    font-size: 20px;
}


/* =====================================================
   MOBILE (STACKED CLEAN)
===================================================== */

@media (max-width: 768px) {

    .product-hero-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .product-main-image {
        height: 320px;
    }

    .product-thumbnails {
        justify-content: center;
    }
}

/* =====================================================
   PRICE COLORS — FIXED (TARGET REAL ELEMENTS)
===================================================== */

/* current price (green) */

.product-price ins,
.product-price ins .woocommerce-Price-amount {

    color: #7bc47f !important;
    /* pastel green */
    font-weight: 700;

    text-decoration: none !important;
    /* 🔥 remove underline */
}

.product-price ins {
    font-size: 1.15em;
}

/* old price (red) */

.product-price del,
.product-price del .woocommerce-Price-amount {

    color: #e28b8b !important;
    /* pastel red */
    opacity: 1 !important;

    text-decoration: line-through;
}

/* spacing */

.product-price del {
    margin-right: 10px;
}

/* =====================================================
   BENEFITS
===================================================== */

.product-benefits {
    padding: 90px 20px;

    background:
        linear-gradient(180deg,
            #fdf5e8 0%,
            #f8eee4 100%);
}

.benefits-grid {
    max-width: 1500px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 34px;
}

.benefit {
    position: relative;

    padding: 42px 28px;

    text-align: center;

    border-radius: 30px;

    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 250, 250, 0.98) 100%);

    border: 1px solid rgba(244, 184, 90, 0.16);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.06);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.benefit::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(90deg,
            #f4b85a 0%,
            #2f5e62 100%);
}

.benefit:hover {
    transform: translateY(-10px) scale(1.03);

    border-color: rgba(244, 184, 90, 0.28);

    box-shadow:
        0 24px 56px rgba(47, 94, 98, 0.14);
}

.benefit span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 84px;
    height: 84px;

    margin-bottom: 24px;

    border-radius: 50%;

    font-size: 42px;

    background:
        linear-gradient(180deg,
            #fff8ef 0%,
            #fff2dd 100%);

    box-shadow:
        0 12px 28px rgba(244, 184, 90, 0.18);

    animation: floatIcon 3.5s ease-in-out infinite;
}

.benefit p {
    margin: 0;

    font-size: 20px;
    line-height: 1.8;

    color: #4f4949;
}


/* =====================================================
   ICON FLOAT
===================================================== */

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 1100px) {

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .product-benefits {
        padding: 70px 20px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .benefit {
        padding: 34px 24px;
        border-radius: 24px;
    }

    .benefit span {
        width: 72px;
        height: 72px;

        font-size: 36px;
    }

    .benefit p {
        font-size: 18px;
    }
}

/* =====================================================
   WHY
===================================================== */

.product-why {
    position: relative;

    padding: 140px 20px;

    background:
        linear-gradient(180deg,
            #fffdfc 0%,
            #fcf5f3 100%);

    overflow: hidden;
}

.product-why::before {
    content: "";

    position: absolute;

    top: -120px;
    right: -120px;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(244, 184, 90, 0.12) 0%,
            rgba(244, 184, 90, 0) 72%);
}

.product-why-box {
    position: relative;

    max-width: 1100px;

    margin: 0 auto;

    padding: 80px;

    text-align: center;

    border-radius: 40px;

    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 250, 250, 0.98) 100%);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.06);
}

.product-why-box h2 {
    margin-bottom: 34px;

    font-size: clamp(42px, 5vw, 64px);

    line-height: 1.08;

    color: #214b4f;

    letter-spacing: -0.03em;
}

.product-why-box p {
    font-size: 22px;

    line-height: 2;

    color: #4f4949;

    margin-bottom: 26px;
}

.product-why-box ul {
    margin: 36px 0;

    padding: 0;

    list-style: none;
    display: inline-block;
    text-align: left;
    margin: 36px auto;
}

.product-why-box li {
    position: relative;

    padding-left: 34px;

    margin-bottom: 18px;

    font-size: 21px;
    line-height: 1.8;

    color: #4f4949;
}

.product-why-box li::before {
    content: "";

    position: absolute;

    left: 0;
    top: 14px;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #f4b85a;

    box-shadow:
        0 0 0 7px rgba(244, 184, 90, 0.12);
}

.product-why-box blockquote {
    margin-top: 50px;

    padding: 36px;

    border-left: 4px solid #f4b85a;

    border-radius: 24px;

    background: #fff8ef;

    font-size: 28px;
    line-height: 1.8;

    color: #214b4f;
}


/* =====================================================
   HOW
===================================================== */

.product-how {
    padding: 140px 20px;

    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #f7efef 100%);
}

.product-how-grid {
    max-width: 1500px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 34px;
}

.how-card {
    position: relative;

    padding: 54px 42px;

    border-radius: 34px;

    text-align: left;

    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(252, 248, 248, 0.98) 100%);

    border: 1px solid rgba(47, 94, 98, 0.08);

    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.05);

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.how-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 6px;

    background:
        linear-gradient(90deg,
            #f4b85a 0%,
            #2f5e62 100%);
}

.how-card:hover {
    transform: translateY(-10px);

    border-color: rgba(244, 184, 90, 0.22);

    box-shadow:
        0 24px 60px rgba(47, 94, 98, 0.12);
}

.how-card h3 {
    margin-bottom: 24px;

    font-size: 34px;

    color: #214b4f;

    line-height: 1.2;
}

.how-card p {
    font-size: 20px;

    line-height: 1.9;

    color: #4f4949;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 1100px) {

    .product-how-grid {
        grid-template-columns: 1fr;
    }

    .product-why-box {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {

    .product-why,
    .product-how {
        padding: 90px 20px;
    }

    .product-why-box {
        padding: 46px 26px;

        border-radius: 28px;
        text-align: center;
    }

    .product-why-box ul {
        display: inline-block;
        text-align: left;
    }

    .product-why-box h2 {
        font-size: 38px;
    }

    .product-why-box p,
    .product-why-box li,
    .how-card p {
        font-size: 18px;
    }

    .product-why-box blockquote {
        font-size: 22px;

        padding: 28px;
    }

    .how-card {
        padding: 40px 28px;

        border-radius: 26px;
    }

    .how-card h3 {
        font-size: 28px;
    }
}

/* =====================================================
   GALLERY
===================================================== */

.product-gallery {

    width: 100%;

    text-align: center;

    overflow: hidden;
}

/* =====================================================
   MAIN IMAGE
===================================================== */

.product-main-image img {

    width: 100%;

    max-width: 420px;

    border-radius: 26px;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);

    transition: all 0.3s ease;
}

/* =====================================================
   THUMBNAILS
===================================================== */

.product-thumbnails {

    display: flex;

    flex-wrap: nowrap;

    justify-content: center;

    gap: 12px;

    margin-top: 20px;

    overflow-x: auto;
    overflow-y: hidden;

    width: 100%;

    white-space: nowrap;

    -webkit-overflow-scrolling: touch;

    padding-bottom: 8px;

    scrollbar-width: none;
}

/* Hide scrollbar */

.product-thumbnails::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {

    .product-thumbnails {
        justify-content: flex-start;
    }

}
/* =====================================================
   SINGLE THUMB
===================================================== */

.product-thumb {

    width: 70px;
    min-width: 70px;

    height: 70px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 12px;

    cursor: pointer;

    transition: all 0.2s ease;

    opacity: 0.7;
}

.product-thumb:hover {

    transform: scale(1.05);

    opacity: 1;
}

.product-thumb.active {

    opacity: 1;

    border: 2px solid var(--brand-gold);
}
/* =====================================================
   GLOBAL STICKY CART BAR (ALL DEVICES)
===================================================== */

.floating-cart {

    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;

    z-index: 999999;
}

/* =====================================================
   INNER BAR
===================================================== */

.floating-cart form.cart {

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    padding: 14px 20px;

    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);

    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.12);

    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* =====================================================
   QUANTITY
===================================================== */

.floating-cart .quantity {
    display: flex;
    align-items: center;
}

/* input */

.floating-cart input.qty {

    width: 80px;
    height: 52px;

    font-family: "Adys", sans-serif;
    font-weight: 700;
    font-size: 18px;

    text-align: center;

    border-radius: 12px;
    border: 2px solid #214b4f;

    background: #fff;

    appearance: textfield;
}

/* remove arrows */

.floating-cart input.qty::-webkit-inner-spin-button,
.floating-cart input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =====================================================
   FLOATING CART — FINAL VERSION
===================================================== */

.floating-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 999999;
}

.floating-cart form.cart,
.floating-cart .floating-cart-form {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Quantity */
.floating-cart .quantity {
    display: flex;
    align-items: center;
}

.floating-cart input.qty {
    width: 80px;
    height: 52px;
    font-family: "Adys", sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    border-radius: 12px;
    border: 2px solid #214b4f;
    background: #fff;
    appearance: textfield;
}

/* Remove spinner arrows */
.floating-cart input.qty::-webkit-inner-spin-button,
.floating-cart input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Add to Cart Button */
.floating-cart .single_add_to_cart_button,
.floating-cart .single-ajax-cart {
    flex: 1;
    height: 52px;
    font-family: "Adys", sans-serif !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    border-radius: 999px;
    background: #7bc47f !important;
    color: #454545 !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap;
    text-decoration: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
}

/* =====================================================
   FINAL HOVER — SOFT DARKER PASTEL GREEN
===================================================== */

body.single-product .floating-cart .single_add_to_cart_button:hover,
body.single-product .floating-cart .single-ajax-cart:hover {
    background: #66b36b !important;
    /* darker pastel green */
    color: #454545 !important;
    /* keep text unchanged */
    border-color: #66b36b !important;
    box-shadow: 0 10px 24px rgba(102, 179, 107, 0.35) !important;
    transform: translateY(-1px);
}

/* Prevent content from being hidden */
.product-modern-page {
    padding-bottom: 120px;
}

/* Mobile */
@media (max-width: 640px) {

    .floating-cart form.cart,
    .floating-cart .floating-cart-form {
        gap: 12px;
        padding: 12px;
    }

    .floating-cart input.qty {
        width: 64px;
        height: 46px;
        font-size: 16px;
    }

    .floating-cart .single_add_to_cart_button,
    .floating-cart .single-ajax-cart {
        height: 46px;
        font-size: 14px !important;
    }
}

/* Hide default WooCommerce add-to-cart section */
.single-product .summary form.cart {
    display: none !important;
}

/* =====================================================
   MOBILE TUNING
===================================================== */

@media (max-width: 640px) {

    .floating-cart form.cart {

        gap: 12px;
        padding: 12px;
    }

    .floating-cart input.qty {

        width: 64px;
        height: 46px;
        font-size: 16px;
    }

    .floating-cart .single_add_to_cart_button {

        height: 46px;
        font-size: 14px;
    }
}

/* 🔥 FORCE FULL IMAGE (FINAL) */

/* 🔥 FORCE FULL IMAGE (FINAL) */

.product-main-image {
    width: 100% !important;
    height: 550px !important;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fffaf5;

    border-radius: 24px;

    overflow: hidden;
}

.product-main-image img {
    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;
}

/* =====================================================
   MOBILE TEXT CENTER FIX
===================================================== */

@media (max-width: 768px) {

    .product-content {
        text-align: center;
        align-items: center;
        /* 🔥 centers flex children */
        padding: 0 10px;
    }

    .product-title {
        text-align: center;
    }

    .product-price {
        text-align: center;
    }

    .product-short {
        text-align: center;
    }

}

/* =====================================================
   FOOTER SPACE ABOVE STICKY BUY BAR
===================================================== */

body.single-product footer,
body.single-product .site-footer {

    padding-bottom: 80px !important;
}

@media (max-width: 640px) {

    body.single-product footer,
    body.single-product .site-footer {

        padding-bottom: 70px !important;
    }

}