/*==================================================
        YOUR WELLNEZ — PREMIUM PRODUCT PAGE (V2)
        Clean modern eCommerce redesign for product.html.
        Loads AFTER product.css so these win the cascade.
==================================================*/

/*==================================================
        PRODUCT HERO LAYOUT
==================================================*/

.product-hero{
    background:#fff;
    padding:40px 0 60px;
}

.product-hero .container{
    max-width:1200px;
}

.product-wrapper{
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:60px;
    align-items:start;
}

/*==================================================
        GALLERY
==================================================*/

.product-gallery{
    position:sticky;
    top:110px;
}

.main-image{
    position:relative;
    background:#faf8f4;
    border-radius:24px;
    padding:30px;
    box-shadow:0 18px 50px rgba(0,0,0,.08);
    border:1px solid #f0ebe2;
    overflow:hidden;
}

.main-image img{
    width:100%;
    display:block;
    border-radius:14px;
    object-fit:contain;
    max-height:520px;
    cursor:zoom-in;
    transition:transform .45s ease;
}

.gallery-zoom-btn{
    position:absolute;
    top:18px;
    right:18px;
    width:44px;
    height:44px;
    border-radius:50%;
    border:none;
    background:rgba(255,255,255,.92);
    color:#b97d18;
    font-size:1.1rem;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.3s;
    z-index:3;
}

.gallery-zoom-btn:hover{
    background:var(--primary);
    color:#fff;
    transform:scale(1.08);
}

.thumbnail-gallery{
    display:flex;
    gap:14px;
    justify-content:flex-start;
    flex-wrap:wrap;
    margin-top:18px;
}

.thumbnail-gallery .thumb{
    width:88px;
    height:88px;
    object-fit:cover;
    border-radius:16px;
    border:2px solid #ececec;
    cursor:pointer;
    transition:.3s;
    background:#fff;
}

.thumbnail-gallery .thumb:hover{
    border-color:var(--primary);
    transform:translateY(-4px);
    box-shadow:0 10px 22px rgba(215,154,43,.18);
}

.thumbnail-gallery .thumb.active{
    border-color:var(--primary);
    box-shadow:0 10px 22px rgba(215,154,43,.25);
}

.thumbnail-gallery .thumb-video{
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    background:#1d1d1d;
    color:#fff;
}

.main-product-video{
    width:100%;
    max-height:480px;
    border-radius:14px;
    object-fit:contain;
    background:#000;
}

/*==================================================
        PRODUCT INFO
==================================================*/

.product-info{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.product-tag{
    display:inline-block;
    align-self:flex-start;
    padding:8px 18px;
    background:linear-gradient(135deg,var(--primary),#f0b84c);
    color:#fff;
    border-radius:30px;
    font-size:.8rem;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
}

.product-info .rating{
    display:flex;
    align-items:center;
    gap:6px;
    color:#f5a623;
    font-size:1rem;
}

.product-info .rating span{
    color:#999;
    font-size:.9rem;
    margin-left:6px;
}

.product-info h1{
    font-size:2.3rem;
    line-height:1.25;
    color:var(--black);
    font-weight:700;
}

.short-description{
    color:var(--text-light);
    line-height:1.8;
    font-size:1rem;
}

.price-area{
    display:flex;
    align-items:baseline;
    gap:14px;
    flex-wrap:wrap;
    padding:18px 0;
    border-top:1px dashed #ececec;
    border-bottom:1px dashed #ececec;
}

.price-area h2{
    font-size:2.2rem;
    color:var(--primary);
    font-weight:700;
}

.price-area del{
    font-size:1.2rem;
    color:#aaa;
}

.save-badge{
    background:#e8f8ed;
    color:#1f9d4d;
    padding:6px 14px;
    border-radius:20px;
    font-size:.85rem;
    font-weight:700;
}

.stock{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:.92rem;
    font-weight:600;
}

.stock.in-stock{
    color:#1f9d4d;
}

.stock.out-stock{
    color:#e53935;
}

.highlights{
    list-style:none;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.highlights li{
    display:flex;
    align-items:center;
    gap:8px;
    padding:12px 14px;
    background:#faf8f4;
    border-radius:12px;
    font-size:.9rem;
    font-weight:500;
}

.highlights li::before{
    content:"\f058";
    font-family:"Font Awesome 6 Free";
    font-weight:900;
    color:var(--primary);
}

/* Benefit items with an uploaded image (Admin Panel) */
.highlights li.benefit-item{
    flex-direction:column;
    align-items:flex-start;
    text-align:left;
    gap:8px;
    padding:10px;
}

.highlights li.benefit-item::before{
    content:"";
}

.benefit-img{
    width:52px;
    height:52px;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
    border:1px solid #f0ece4;
    display:flex;
    align-items:center;
    justify-content:center;
}

.benefit-img img{
    width:100%;
    height:100%;
    object-fit:contain;
}

/* Full-width optional banner above the product details */
.product-banner{
    width:100%;
    border-radius:18px;
    overflow:hidden;
    margin-top:28px;
}

.product-banner img{
    width:100%;
    max-height:320px;
    object-fit:cover;
    display:block;
}

.quantity-section{
    margin-top:6px;
}

.quantity-section h4{
    margin-bottom:10px;
    font-size:.95rem;
    color:var(--text-light);
    font-weight:600;
}

.quantity-selector{
    display:inline-flex;
    align-items:center;
    border:1.5px solid #ececec;
    border-radius:14px;
    overflow:hidden;
    background:#fff;
}

.quantity-selector button{
    width:48px;
    height:48px;
    border:none;
    background:#faf8f4;
    font-size:1.2rem;
    cursor:pointer;
    transition:.3s;
    color:var(--text);
}

.quantity-selector button:hover{
    background:var(--primary);
    color:#fff;
}

.quantity-selector span{
    width:56px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    font-size:1.05rem;
}

/*==================================================
        ACTION BUTTONS
==================================================*/

.product-actions{
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:14px;
}

.add-cart-btn,
.buy-now-btn{
    height:56px;
    border-radius:14px;
    font-weight:700;
    font-size:1rem;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    transition:.3s;
    border:none;
}

.add-cart-btn{
    background:var(--primary);
    color:#fff;
}

.add-cart-btn:hover{
    background:var(--primary-dark);
    transform:translateY(-2px);
    box-shadow:0 14px 30px rgba(215,154,43,.35);
}

.buy-now-btn{
    background:#1d1d1d;
    color:#fff;
}

.buy-now-btn:hover{
    background:#000;
    transform:translateY(-2px);
    box-shadow:0 14px 30px rgba(0,0,0,.2);
}

.add-cart-btn:disabled,
.buy-now-btn:disabled{
    opacity:.5;
    cursor:not-allowed;
    transform:none;
}

.secondary-actions{
    display:flex;
    gap:12px;
}

.secondary-actions .wishlist-btn,
.secondary-actions .share-btn{
    flex:1;
    height:50px;
    border:1.5px solid #ececec;
    border-radius:14px;
    background:#fff;
    font-size:.95rem;
    font-weight:600;
    color:var(--text);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    transition:.3s;
}

.secondary-actions .wishlist-btn:hover,
.secondary-actions .share-btn:hover{
    border-color:var(--primary);
    color:var(--primary);
}

.secondary-actions .wishlist-btn.active{
    background:#ffe8e8;
    border-color:#e53935;
    color:#e53935;
}

/*==================================================
        PRODUCT META
==================================================*/

.product-meta{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:6px;
    padding-top:18px;
    border-top:1px solid #f0ebe2;
}

.meta-item{
    background:#faf8f4;
    padding:14px 16px;
    border-radius:12px;
}

.meta-item span{
    display:block;
    font-size:.75rem;
    color:#999;
    text-transform:uppercase;
    letter-spacing:.5px;
    margin-bottom:4px;
}

.meta-item strong{
    font-size:.92rem;
    color:var(--black);
    font-weight:600;
}

.meta-item strong.in-stock{ color:#1f9d4d; }
.meta-item strong.out-stock{ color:#e53935; }

/*==================================================
        PRODUCT SECTIONS
==================================================*/

.product-sections{
    background:linear-gradient(180deg,#fff 0%,#faf8f3 100%);
}

.section-block{
    padding:80px 0;
    border-top:1px solid #f0ebe2;
}

/* The section dividers ("black lines" between product-page sections) are
   toggleable from Admin Panel -> Settings. body.no-section-dividers strips
   the border-top every section-block shares, so the sections flow straight
   into each other. */
body.no-section-dividers .section-block{
    border-top:none;
}

.section-block .section-header{
    margin-bottom:40px;
}

.section-tag{
    display:inline-block;
    padding:7px 18px;
    background:#fff3d8;
    color:var(--primary);
    border-radius:30px;
    font-size:.8rem;
    font-weight:700;
    letter-spacing:1.5px;
    text-transform:uppercase;
    margin-bottom:14px;
}

.section-header h2{
    font-size:2.2rem;
    color:var(--black);
    margin-bottom:10px;
}

.description-content{
    max-width:780px;
    margin:0 auto;
    text-align:center;
    background:#fff;
    border-radius:20px;
    padding:40px;
    box-shadow:var(--shadow);
}

.description-content p{
    color:var(--text-light);
    line-height:2;
    font-size:1.05rem;
}

/* Ingredients */

.ingredients-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.ingredient-card{
    background:#fff;
    border-radius:20px;
    padding:30px 22px;
    text-align:center;
    border:1px solid #ececec;
    box-shadow:var(--shadow);
    transition:.35s;
}

.ingredient-card:hover{
    transform:translateY(-8px);
    border-color:var(--primary);
    box-shadow:0 22px 45px rgba(215,154,43,.15);
}

.ingredient-image{
    width:80px;
    height:80px;
    margin:0 auto 16px;
    border-radius:50%;
    background:#fff6e5;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.ingredient-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:12px;
}

.ingredient-icon{
    width:80px;
    height:80px;
    margin:0 auto 16px;
    border-radius:50%;
    background:#fff6e5;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.8rem;
    color:var(--primary);
}

.ingredient-card h3{
    font-size:1.2rem;
    margin-bottom:8px;
    color:var(--black);
}

.ingredient-card p{
    color:var(--text-light);
    font-size:.9rem;
    line-height:1.7;
}

/* How to Use */

.howto-steps{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.howto-step{
    background:#fff;
    border-radius:18px;
    padding:30px 20px;
    text-align:center;
    border:1px solid #ececec;
    box-shadow:var(--shadow);
    transition:.35s;
}

.howto-step:hover{
    transform:translateY(-6px);
    border-color:var(--primary);
}

.step-number{
    width:54px;
    height:54px;
    margin:0 auto 16px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--primary),#f0b84c);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.3rem;
    font-weight:700;
}

.howto-step p{
    color:var(--text-light);
    font-size:.92rem;
    line-height:1.7;
}

/* FAQs */

.faq-container{
    max-width:780px;
    margin:0 auto;
}

.faq-item{
    background:#fff;
    border:1px solid #ececec;
    border-radius:16px;
    margin-bottom:14px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.3s;
}

.faq-item:hover{
    border-color:var(--primary);
}

.faq-question{
    width:100%;
    background:none;
    border:none;
    padding:20px 26px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:1.02rem;
    font-weight:600;
    cursor:pointer;
    color:var(--black);
    text-align:left;
    font-family:inherit;
}

.faq-question::after{
    content:"+";
    font-size:1.6rem;
    color:var(--primary);
    transition:.3s;
}

.faq-item.active .faq-question::after{
    content:"\2212";
}

.faq-answer{
    max-height:0;
    overflow:hidden;
    transition:max-height .4s ease;
}

.faq-item.active .faq-answer{
    max-height:260px;
}

.faq-answer p{
    padding:0 26px 22px;
    color:var(--text-light);
    line-height:1.8;
}

/*==================================================
        REVIEWS
==================================================*/

.reviews-section{
    background:#fff;
    padding:90px 0;
}

.reviews-layout{
    display:grid;
    grid-template-columns:260px 1fr 340px;
    gap:28px;
    align-items:start;
}

/* Rating summary */

.rating-summary{
    background:#faf8f4;
    border-radius:20px;
    padding:34px 22px;
    text-align:center;
    border:1px solid #f0ebe2;
}

.rating-big{
    font-size:3.4rem;
    font-weight:800;
    color:var(--black);
    line-height:1;
}

.rating-stars{
    color:#f5a623;
    font-size:1.1rem;
    margin:12px 0 8px;
}

.rating-summary p{
    color:#999;
    font-size:.9rem;
}

/* Review list */

.review-list{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.review-empty{
    background:#faf8f4;
    border-radius:16px;
    padding:28px;
    text-align:center;
    color:#999;
    border:1px dashed #e5ddcf;
}

.review-card{
    background:#fff;
    border:1px solid #ececec;
    border-radius:18px;
    padding:22px;
    box-shadow:var(--shadow);
}

.review-top{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:12px;
}

.review-avatar{
    width:48px;
    height:48px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--primary),#f0b84c);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.2rem;
    flex-shrink:0;
}

.review-top h3{
    font-size:1rem;
    margin-bottom:4px;
    color:var(--black);
}

.review-top .stars{
    color:#f5a623;
    font-size:.9rem;
}

.review-card p{
    color:var(--text-light);
    line-height:1.8;
    font-size:.95rem;
}

.review-photo{
    width:110px;
    height:110px;
    object-fit:cover;
    border-radius:14px;
    border:1px solid #ececec;
    margin-top:12px;
    display:block;
}

.review-date{
    display:block;
    margin-top:10px;
    color:#bbb;
    font-size:.8rem;
}

/* Review form */

.review-form-card{
    background:#faf8f4;
    border:1px solid #f0ebe2;
    border-radius:20px;
    padding:26px;
}

.review-form-card h3{
    font-size:1.2rem;
    margin-bottom:18px;
    color:var(--black);
}

.review-form-card .form-row{
    margin-bottom:14px;
}

.review-form-card input,
.review-form-card select,
.review-form-card textarea{
    width:100%;
    padding:13px 15px;
    border:1.5px solid #ececec;
    border-radius:12px;
    font-size:.95rem;
    font-family:inherit;
    background:#fff;
    outline:none;
    transition:.3s;
}

.review-form-card input:focus,
.review-form-card select:focus,
.review-form-card textarea:focus{
    border-color:var(--primary);
}

.review-form-card .add-cart-btn{
    width:100%;
    height:50px;
}

.review-form-note{
    margin-top:12px;
    font-size:.88rem;
    color:#1f9d4d;
    text-align:center;
}

/* Optional review photo picker — hidden native input behind a small label */

.review-photo-row{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
}

.review-photo-label{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:10px 16px;
    border:1.5px dashed #d8cdbb;
    border-radius:12px;
    background:#fff;
    color:var(--text-light);
    font-size:.9rem;
    cursor:pointer;
    transition:.3s;
}

.review-photo-label:hover{
    border-color:var(--primary);
    color:var(--primary-dark);
}

.review-photo-row input[type="file"]{
    display:none;
}

.review-photo-hint{
    font-size:.78rem;
    color:#bbb;
    padding:0;
    border:none;
}

/* Reviews toggle — exactly one review is shown initially, the rest are
   revealed behind "See more reviews" */

.reviews-toggle{
    text-align:center;
    margin-top:18px;
}

.reviews-toggle-btn{
    padding:11px 26px;
    border:1.5px solid var(--primary);
    border-radius:50px;
    background:transparent;
    color:var(--primary-dark);
    font-family:inherit;
    font-weight:600;
    font-size:.9rem;
    cursor:pointer;
    transition:.3s;
}

.reviews-toggle-btn:hover{
    background:var(--primary);
    color:#fff;
}

/* Review form log-in prompt (writing a review now requires an account) */

.review-login-prompt{
    font-size:.92rem;
    line-height:1.7;
    color:var(--text-light);
}

.review-login-prompt a{
    color:var(--primary);
    font-weight:600;
}

/*==================================================
        ZOOM OVERLAY
==================================================*/

.zoom-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.88);
    z-index:2000;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    pointer-events:none;
    transition:opacity .3s;
}

.zoom-overlay.active{
    opacity:1;
    pointer-events:auto;
}

.zoom-overlay img{
    max-width:92%;
    max-height:90%;
    border-radius:16px;
    box-shadow:0 30px 80px rgba(0,0,0,.5);
}

.zoom-close{
    position:absolute;
    top:24px;
    right:24px;
    width:48px;
    height:48px;
    border-radius:50%;
    border:none;
    background:rgba(255,255,255,.15);
    color:#fff;
    font-size:1.3rem;
    cursor:pointer;
    transition:.3s;
}

.zoom-close:hover{
    background:var(--primary);
    transform:rotate(90deg);
}

/*==================================================
        RESPONSIVE
==================================================*/

@media(max-width:992px){

.product-wrapper{
    grid-template-columns:1fr;
    gap:40px;
}

.product-gallery{
    position:static;
    order:-1;
}

.reviews-layout{
    grid-template-columns:1fr;
}

.rating-summary{
    padding:28px 20px;
}

.ingredients-grid{
    grid-template-columns:repeat(2,1fr);
}

.howto-steps{
    grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:768px){

.product-hero{
    padding:20px 0 40px;
}

.product-info h1{
    font-size:1.8rem;
}

.price-area h2{
    font-size:1.8rem;
}

.highlights{
    grid-template-columns:1fr;
}

.product-actions{
    grid-template-columns:1fr;
}

.product-meta{
    grid-template-columns:1fr;
}

.section-block{
    padding:56px 0;
}

.section-header h2{
    font-size:1.7rem;
}

.ingredients-grid{
    grid-template-columns:1fr;
}

.howto-steps{
    grid-template-columns:1fr;
}

.description-content{
    padding:28px 20px;
}

.reviews-section{
    padding:60px 0;
}

.main-image{
    padding:20px;
}

.thumbnail-gallery .thumb{
    width:72px;
    height:72px;
}

}

@media(max-width:480px){

.thumbnail-gallery .thumb{
    width:62px;
    height:62px;
}

.product-info h1{
    font-size:1.55rem;
}

.secondary-actions{
    flex-direction:column;
}

}
