/*
Theme Name: Sairay Theme
Theme URI: https://www.sairay.pk/
Author: Muhammad Maroof
Author URI: https://www.sairay.pk/
Description: A custom WordPress theme for Sairay, based on the provided static site.
Version: 1.1 (Refactored)
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sairay
*/

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Colors */
    --color-green: #2B5738;
    --color-light-green: #ABDBAC;
    --color-white: #FFFFFF;
    --color-grey: #666;
    --color-light-grey: #f4f4f4;
    --color-golden: #FFD700;
    --color-royal-blue: #4169E1;
    --color-golden-elixir: #9c894e;
    --color-dark-mask: #1e2033;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-subheading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-button: 'Quicksand', sans-serif;
    --font-lato: 'Lato', sans-serif;

    /* Transitions */
    --body-bg-transition: background-color 0.5s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--body-bg-transition);
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

/* Dynamic body background colors */
.bg-golden { background-color: var(--color-golden-elixir); }
.bg-dark { background-color: var(--color-dark-mask); }
.bg-green { background-color: var(--color-green); }

/* Background Images (Corners) */
.bg-corner {
    position: absolute;
    width: 160px;
    height: 160px;
    z-index: -1;
    opacity: 0.8;
}
.top-left { top: 0; left: 0; }
.top-right { top: 0; right: 0; transform: rotate(90deg); }
.bottom-left { bottom: 0; left: 0; transform: rotate(-90deg); }
.bottom-right { bottom: 0; right: 0; transform: rotate(180deg); }

/* =========================================
   2. SHARED COMPONENTS (Buttons)
   ========================================= */
.button, 
.buy-button, 
.buy-now-button,
.button-green {
    display: inline-block;
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-family: var(--font-button);
    font-weight: 700;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.button:hover, 
.buy-button:hover, 
.buy-now-button:hover,
.button-green:hover {
    background-color: #4CAF50;
    transform: scale(1.1);
}

/* Variant: Golden Button */
.button-golden {
    background-color: var(--color-white);
    color: var(--color-golden-elixir);
}
.button-golden:hover { background-color: var(--color-light-grey); }

/* Variant: Dark Button */
.button-dark {
    background-color: var(--color-white);
    color: var(--color-dark-mask);
}
.button-dark:hover { background-color: var(--color-light-grey); }

/* Variant: White with Green Text */
.button-white-green {
    background-color: var(--color-white);
    color: var(--color-green);
}
.button-white-green:hover {
    background-color: var(--color-light-grey);
    color: var(--color-green);
    transform: scale(1.05);
}

/* =========================================
   3. HEADER (COMPACT VERSION)
   ========================================= */
.main-header {
    padding: 0 5vw; /* Standardize side padding */
    position: relative;
    z-index: 100; /* Ensure header stays on top */
}

.main-header .container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 0 auto;
    /* CRITICAL FIX: Reduced vertical padding from 20px to 10px */
    padding: 17px 20px; 
    margin-bottom: 0; /* Ensure no external margin pushes content down */
}

.logo-image {
    /* CRITICAL FIX: Reduced from 150px to 100px to save height */
    max-width: 120px; 
    padding: 0;
    margin: 0; 
    display: block; /* Removes hidden line-height spacing */
}

.nav-links {
    list-style: none;
    display: flex;
    /* Reduced gap from 50px to 30px to match smaller font */
    gap: 30px; 
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-green);
    font-family: var(--font-body);
    font-weight: 900; /* Reduced from 900 to look cleaner at smaller size */
    /* CRITICAL FIX: Reduced from 28px to 18px */
    font-size: 23px; 
    transition: color 0.3s, transform 0.2s;
}
.nav-links a.active {
    color: #4CAF50; /* Same bright green as hover */
    border-bottom: 3px solid #4CAF50; /* Adds a line under the text */
    padding-bottom: 2px;
}
.nav-links a:hover {
    color: #4CAF50;
    transform: scale(1.05);
}

/* =========================================
   4. HOME SECTIONS (Hero, Features, Ritual)
   ========================================= */
/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
    padding: 40px 5vw 30px;
    position: relative;
    margin-top: -50px;
}

.hero-content { flex: 1; }

.hero-content h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-green);
    font-size: 3em;
    margin-bottom: 20px;
}

.hero-content p {
    font-family: var(--font-lato);
    margin-bottom: 30px;
    font-size: 1.1em;
}

.hero-image {
    flex: 1;
    position: relative;
    padding: 20px;
    background-color: var(--color-white);
    box-shadow: 5px 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* Why Choose Us */
.why-choose-us-section {
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

.why-choose-us-section h2 {
    font-family: var(--font-heading);
    color: var(--color-green);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.why-choose-us-section .subtitle {
    font-family: var(--font-subheading);
    font-weight: 300;
    font-size: 1.2em;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    max-width: 700px;
    margin: 0 auto;
}

.feature-item {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature-item p {
    font-weight: 700;
    font-family: var(--font-body);
    color: var(--color-green);
}

.feature-icon {
    width: 60px;
    height: 60px;
}

/* Hair Ritual */
.hair-ritual-section {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.hair-ritual-section h2 {
    font-family: var(--font-heading);
    color: var(--color-green);
    font-size: 2.5em;
    margin: 20px auto 40px;
}

.ritual-grid {
    display: flex;
    justify-content: center;
    gap: 70px;
}

.ritual-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.ritual-item p {
    font-weight: 700;
    font-family: var(--font-body);
    color: var(--color-green);
}

.ritual-icon {
    width: 150px;
    height: 150px;
}

/* =========================================
   5. TESTIMONIALS (Marquee)
   ========================================= */
.testimonials-section {
    background: var(--color-white);
    padding: 70px 0;
    text-align: center;
    overflow: hidden;
}

.testimonials-section h2 {
    font-family: var(--font-heading);
    color: var(--color-green);
    font-size: 2.5em;
    margin-bottom: 50px;
}

.testimonials-marquee {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.testimonials-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll-left 40s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

/* Merged Testimonial Item Styles */
.testimonial-item {
    background-color: #2B5738;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(171, 219, 172, 0.5);
    width: 300px; /* Fixed width for smooth marquee */
    flex-shrink: 0;
    white-space: normal;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: transform 0.2s;
}

.testimonial-item:hover {
    transform: scale(1.05);
}

.testimonial-item p {
    font-family: var(--font-lato);
    font-weight: 600;
    font-style: italic;
    color: var(--color-white);
    font-size: 1em;
    line-height: 1.4;
    margin: 0;
}

.review-author-small {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-light-green);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * (300px + 40px) * 9)); }
}

/* =========================================
   6. PRODUCTS PAGE ARCHIVE
   ========================================= */
.products-hero-section {
    text-align: center;
}

.products-hero-section h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-green);
    font-size: 2.8em;
    margin-bottom: 17px;
}

.products-hero-section p {
    font-family: var(--font-lato);
    font-size: 1.08em;
    max-width: 80vw;
    margin: 0 auto;
    text-align: justify;
}

.products-main {
    display: flex;
    flex-direction: column;
}

.products-section {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    justify-content: center;
    align-items: start;
}

/* Product Card - The Box */
.product-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(171, 219, 172, 0.4);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.2s ease;
    height: auto;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(43, 87, 56, 0.2);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.product-content {
    padding: 15px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.product-content .buy-button {
    margin-top: 5px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.6em;
    margin-top: 4px;
    margin-bottom: 5px;
}

/* Product Info Outside the Box (Wrapper) */
.product-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.product-info-outside {
    text-align: center;
    padding: 0 10px;
}

.product-info-outside .product-description {
    font-family: var(--font-lato);
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 20px;
}

.product-info-outside .product-benefits {
    display: inline-block;
    list-style: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85em;
    text-align: left;
    margin: 0 auto;
    padding-left: 0;
}

.product-benefits li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
}

/* --- PRODUCT THEMES (Colors & Swaps) --- */

/* Golden Theme */
.product-golden-theme {
    background-color: var(--color-golden-elixir);
    color: var(--color-white);
}
.product-golden-theme .product-title,
.product-golden-theme .product-description { color: var(--color-white); }
.text-golden .product-description,
.text-golden .product-benefits li { color: var(--color-golden-elixir); }
.text-golden .product-benefits li::before { content: "✔️"; position: absolute; left: 0; color: var(--color-golden-elixir); }

/* Dark Theme */
.product-dark-theme {
    background-color: var(--color-dark-mask);
    color: var(--color-white);
}
.product-dark-theme .product-title,
.product-dark-theme .product-description { color: var(--color-white); }
.text-dark .product-description,
.text-dark .product-benefits li { color: var(--color-dark-mask); }
.text-dark .product-benefits li::before { content: "✔️"; position: absolute; left: 0; color: var(--color-dark-mask); }

/* Green Theme */
.product-green-theme {
    background-color: var(--color-green);
}
.product-green-theme .product-title { color: var(--color-white); }
.text-green .product-description,
.text-green .product-benefits li { color: var(--color-green); }
.text-green .product-benefits li::before { content: "✔️"; position: absolute; left: 0; color: var(--color-green); }

/* Dynamic Theme Overrides (When body background changes) */
body.bg-green .product-info-outside .product-description,
body.bg-green .product-info-outside .product-benefits li,
body.bg-green .product-info-outside .product-benefits li::before,
body.bg-golden .product-info-outside .product-description,
body.bg-golden .product-info-outside .product-benefits li,
body.bg-golden .product-info-outside .product-benefits li::before,
body.bg-dark .product-info-outside .product-description,
body.bg-dark .product-info-outside .product-benefits li,
body.bg-dark .product-info-outside .product-benefits li::before {
    color: var(--color-white) !important;
    transition: color 0.3s ease;
}

/* =========================================
   7. SINGLE PRODUCT PAGE
   ========================================= */
.product-detail-page {
    background-color: var(--color-white);
    min-height: 100vh;
}

.product-detail-main-compact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px - 280px);
}

.product-detail-section-compact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 100px;
}

.product-image-container {
    flex: 1 1 220px;
    text-align: center;
    max-height: 90vh;
}

.product-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.product-main-image:hover { transform: scale(1.05); }

.product-details-container {
    flex: 1 1 500px;
    padding: 10px 30px;
    border-radius: 15px;
    background-color: var(--color-white);
    box-shadow: 0 10px 30px rgba(171, 219, 172, 0.5);
    color: var(--color-green);
    max-height: 60vh;
    overflow-y: auto;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.product-tagline {
    font-family: var(--font-lato);
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 12px;
}

.product-price-section { margin-bottom: 10px; }

.product-price {
    font-family: var(--font-heading);
    font-size: 2em;
    font-weight: 600;
}

.product-description-full {
    font-family: var(--font-lato);
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.product-features li {
    font-family: var(--font-body);
    font-size: 1.1em;
    margin-bottom: 10px;
}

.buy-now-button {
    font-size: 1.2em;
    padding: 15px 40px;
    margin-top: 20px;
}

/* Product Options */
.product-options {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    align-items: center;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-options label {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-green);
}

.product-options select,
.product-options input {
    padding: 8px;
    border: 1px solid var(--color-green);
    border-radius: 5px;
    font-family: var(--font-lato);
}

/* Slideshow */
.slideshow-container {
    position: relative;
    max-width: 100%;
}

.slideshow-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    vertical-align: middle;
    display: none;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: var(--color-green); 
    font-weight: bold;
    font-size: 30px;
    background-color: rgba(255, 255, 255, 0.8); 
    border-radius: 0 3px 3px 0;
    user-select: none;
    transition: 0.3s ease;
    z-index: 100; 
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev { left: 0; }
.prev:hover, .next:hover {
    background-color: var(--color-green); /* Turn green on hover */
    color: var(--color-white);            /* Turn text white on hover */
}

/* =========================================
   8. REVIEWS PAGE
   ========================================= */
.reviews-page-body {
    background-color: var(--color-light-green);
}

.reviews-hero-section {
    text-align: center;
    padding-top: 20px;
}

.reviews-hero-section h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-green);
    font-size: 3em;
    margin-bottom: 20px;
}

.reviews-hero-section p {
    font-family: var(--font-lato);
    font-size: 1.1em;
    max-width: 650px;
    margin: 0 auto;
}

.reviews-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 0;
    margin-bottom: 40px;
}

.review-box {
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 30px;
    border-radius: 20px 20px 20px 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    width: 100%;
    transition: transform 0.2s;
    margin: 10px;
}

.review-box:hover { transform: scale(1.02); }

.review-text {
    font-family: var(--font-lato);
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-author {
    font-family: var(--font-body);
    font-weight: 900;
    color: var(--color-white);
    text-align: right;
    display: block;
    font-style: italic;
}

/* Product Reviews Content Block */
.product-review-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-review-content h2 {
    font-family: var(--font-heading);
    color: var(--color-green);
    font-size: 2.2em;
    margin-bottom: 5px;
    margin-top: 50px;
}

.review-tagline {
    font-family: var(--font-lato);
    font-size: 1.1em;
    font-style: italic;
    color: var(--color-grey);
    margin-bottom: 20px;
}

/* Quote Box Style */
.review-quote-box {
    background-color: var(--color-light-green);
    padding: 20px;
    border-left: 5px solid var(--color-green);
    border-radius: 5px;
    margin-bottom: 20px;
}

.review-quote-box p {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1em;
    color: var(--color-green);
    line-height: 1.5;
}

.review-quote-box .quote-author {
    display: block;
    text-align: right;
    font-style: italic;
    font-weight: 500;
    margin-top: 10px;
    color: var(--color-green);
}

/* =========================================
   9. CONTACT PAGE
   ========================================= */
.contact-page-body {
    background-color: var(--color-light-green);
}

.contact-hero-section {
    text-align: center;
}
/* --- Form Validation Styles --- */
.contact-form input.input-error {
    border-color: #ff4d4d !important; /* Bright Red */
    background-color: #fff0f0;
}

.contact-form input.input-success {
    border-color: var(--color-green) !important;
    background-color: #f0fff4;
}

/* Shake animation for errors */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}
.contact-hero-section h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-green);
    font-size: 3em;
    margin-bottom: 20px;
}

.contact-hero-section p {
    font-family: var(--font-lato);
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
}

.contact-details-section { padding-bottom: 80px; }

.contact-box {
    background-color: var(--color-white);
    padding: 0px;
    margin-left: 2em;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(171, 219, 172, 0.5);
    display: flex;
    gap: 80px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.contact-form-container,
.contact-details-container {
    flex: 1;
    min-width: 400px;
    padding-left: 3em;
    padding-top: 2em;
}

.contact-details-container {
    margin: 0;
    padding-right: 3em;
    background-color: var(--color-green);
    border-radius: 15px;
}

.contact-form-container h2,
.contact-details-container h2 {
    font-family: var(--font-heading);
    font-size: 2em;
    margin-bottom: 20px;
}

.contact-form-container h2 { color: var(--color-green); }
.contact-details-container h2 { color: var(--color-white); }
.contact-form .form-group { margin-bottom: 20px; }

.contact-form label {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-green);
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-light-green);
    border-radius: 8px;
    font-family: var(--font-lato);
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 5px rgba(43, 87, 56, 0.3);
}

.contact-details-container .detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    margin-left: 2em;
    margin-top: 40px;
}

.contact-details-container .detail-item .detail-icon {
    width: 30px;
    height: 30px;
}

.contact-details-container .detail-item p,
.contact-details-container .detail-item a {
    font-family: var(--font-lato);
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details-container .detail-item a:hover { color: #4CAF50; }

.white-icon { filter: brightness(0) invert(1); }

/* =========================================
   10. FOOTER
   ========================================= */
.main-footer {
    padding: 30px 0 0px;
    position: relative;
    background-color: var(--color-green);
    margin-top: auto;
}

.accordion-arrow { display: none; }

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 0px;
}

.footer-nav h3,
.footer-socials h3 {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 15px;
}

.footer-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-links a {
    text-decoration: none;
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s, transform 0.2s;
}

.footer-nav-links a:hover {
    color: #4CAF50;
    transform: scale(1.1);
}

.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-lato);
    color: var(--color-white);
    transition: transform 0.2s;
    margin-bottom: 10px;
}

.social-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-white);
    font-family: var(--font-lato);
    font-weight: 400;
}

.social-item:hover { transform: scale(1.05); }
.social-item img { width: 25px; height: 25px; }

.footer-separator {
    width: 2px;
    height: 150px;
    background-color: var(--color-white);
    border-radius: 1px;
    align-self: center;
}

.disclaimer {
    text-align: center;
    font-family: var(--font-lato);
    font-weight: 600;
    font-size: 1.2em;
    color: var(--color-green);
    margin-top: 30px;
    background-color: var(--color-white);
}
/* =========================================
   11. ENHANCED PRODUCT PAGE (PREMIUM LAYOUT)
   ========================================= */
/* --- WHATSAPP MODAL STYLES --- */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dimmed background */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover { color: #000; }

.modal-content h3 {
    font-family: var(--font-heading);
    color: var(--color-green);
    margin: 15px 0 10px;
}

.modal-content p {
    font-family: var(--font-lato);
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.button-outline {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #666;
}

.button-outline:hover {
    background-color: #f4f4f4;
    color: #333;
}

/* Main Container */
.product-page-container {
    max-width: 1200px;
    margin: 0 auto;
    /* Reduced top padding to pull content up */
    padding: 0px 30px 40px 40px; 
}

/* Top Section: Split Layout */
.product-primary-area {
    display: flex;
    flex-wrap: wrap;
    gap: 50px; /* Reduced gap between image and text */
    margin-bottom: 60px;
    align-items: flex-start; /* Keeps image and text centered vertically relative to each other */
}

/* Left Column: Image */
.product-gallery {
    flex: 1 1 350px;
    /* ADD THESE LINES TO CENTER EVERYTHING */
    display: flex;
    flex-direction: column;
    align-items: center; 
}

.product-gallery .slideshow-container {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    width: 100%;       /* Ensure it takes available space */
    max-width: 450px;  /* Prevent it from getting too huge */
}

/* CRITICAL FIX: Force desktop image to be smaller */
.product-gallery .slideshow-image {
    max-height: 300px;
    width: 100%;       /* CHANGED from 40vw to 100% */
    object-fit: cover; 
    display: block;
    margin: 0 auto;    /* Ensures image is centered if container is larger */
}

/* Right Column: Info */
.product-info-col {
    flex: 1 1 400px;
    /* Remove default padding if any exists */
}

/* Title & Rating */
.product-header-group {
    margin-bottom: 10px; /* Tighter spacing */
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.product-name-large {
    font-family: var(--font-heading);
    font-size: 2.5em; /* Slightly smaller than 3em */
    color: var(--color-green);
    margin-bottom: 5px;
    line-height: 1.1;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-lato);
    font-size: 0.95em;
    color: var(--color-grey);
}

.stars { color: var(--color-golden); letter-spacing: 2px; }

/* Price */
.product-price-large {
    font-family: var(--font-heading);
    font-size: 2em;
    color: var(--color-green);
    font-weight: 700;
    margin: 15px 0; /* Reduced from 20px */
}

/* Short Description */
.product-short-desc {
    font-family: var(--font-lato);
    font-size: 1.05em;
    line-height: 1.5;
    color: var(--color-grey);
    margin-bottom: 20px; /* Reduced from 30px */
}

/* Selectors (Size/Qty) */
.product-selectors {
    display: flex;
    gap: 20px;
    margin-bottom: 20px; /* Reduced from 30px to pull button up */
}

.selector-group label {
    display: block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-green);
    margin-bottom: 5px;
}

.selector-group select, 
.selector-group input {
    width: 100%;
    padding: 10px; /* Slightly more compact input */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-lato);
    font-size: 1em;
}

/* Buy Button */
.buy-now-button {
    padding: 15px; /* Slightly tighter padding */
    font-size: 1.2em;
    margin-bottom: 25px; /* Space before trust badges */
    border-radius: 8px;
    text-align: center;
    display: block;
    width: 100%;
}
.trust-badges {
    display: flex;
    gap: 20px;
    justify-content: center; /* Center them under the image */
    margin-top: 20px;        /* Add space between image and badges */
    padding-top: 0;
    border-top: none;        /* Remove the line */
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.badge-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    /* Optional: Add a subtle background circle for pop */
    /* background: #f4f4f4; border-radius: 50%; padding: 5px; */ 
}

.badge-text {
    font-family: var(--font-body);
    font-size: 0.75em;
    font-weight: 700;
    color: var(--color-green);
}
/* --- Content Tabs/Sections (Below Fold) --- */
.product-details-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.detail-block h3 {
    font-family: var(--font-heading);
    font-size: 2em;
    color: var(--color-green);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.detail-block h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--color-golden-elixir);
    margin-top: 10px;
}

.detail-block p, .detail-block li {
    font-family: var(--font-lato);
    font-size: 1.05em;
    line-height: 1.7;
    color: #444;
    margin-bottom: 15px;
}

.detail-block ul {
    padding-left: 20px;
    list-style-type: disc;
}


/* =========================================
   12. MEDIA QUERIES (Responsive)
   ========================================= */

/* --- Tablet / Medium Screens (Max 980px) --- */
@media (max-width: 980px) {
    .bg-corner { width: 130px; height: 130px; }
    .nav-links { gap: 35px; }
}

/* --- Tablet / Small Laptop (Max 900px) --- */
@media (max-width: 900px) {
    /* General Layout */
    .bg-corner { width: 100px; height: 100px; }
    .ritual-icon { width: 120px; height: 120px; }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 30px;
        padding-bottom: 40px;
        margin-top: 0;
    }

    .hero-content {
        order: 2;
        max-width: 100%;
        padding: 0 20px;
    }

    .hero-image {
        order: 1;
        max-width: 400px;
        margin: 0 auto;
    }

    .why-choose-us-section,
    .hair-ritual-section,
    .testimonials-section {
        padding: 40px 20px;
    }
    /* 1. Stack items vertically and center them */
    .product-primary-area {
        flex-direction: column;
        align-items: center; /* Centers the image and text block */
        gap: 30px;
        margin-bottom: 40px;
    }

    /* 2. Make columns take full width but limit max width for readability */
    .product-gallery,
    .product-info-col {
        width: 100%;
        flex: auto; /* Overrides the desktop flex-basis */
        max-width: 500px; /* Prevents text from getting too wide to read */
        text-align: center; /* Centers text for the stacked layout */
    }

    /* 3. Adjust Image Size for Tablet */
    .product-gallery .slideshow-container {
        margin: 0 auto; /* Centers the slideshow box */
        width: 100%;
    }

    .product-gallery .slideshow-image {
        max-height: 400px; /* Allows image to be taller on tablet than the compact desktop view */
        width: 80%;
        object-fit: cover;
    }

    /* 4. Center the Specific Info Elements */
    .product-header-group {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers title and stars */
        border-bottom: none; /* Removes line for cleaner mobile look */
    }

    .product-rating {
        justify-content: center;
    }

    /* Center the Quantity/Size selectors */
    .product-selectors {
        justify-content: center;
        gap: 15px;
    }
    
    .selector-group {
        text-align: left; /* Keep labels aligned left to inputs */
    }

    /* 5. Adjust Details Section (Below Fold) */
    .product-details-section {
        grid-template-columns: 1fr; /* Stack ingredients and ritual */
        gap: 40px;
        text-align: left; /* Keep long reading text left-aligned */
    }
    
    .trust-badges {
        justify-content: center;
        gap: 20px;
    }

    /* Accordion Footer Logic */
    .accordion-header {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
        padding: 10px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
        width: 100%;
        min-width: 200px;
        margin-bottom: 5px;
        transition: background-color 0.3s;
    }

    .accordion-header:hover { background-color: rgba(255, 255, 255, 0.2); }
    
    .accordion-header h3 {
        margin: 0 !important;
        font-size: 1.2em;
        pointer-events: none;
    }

    .accordion-arrow {
        display: block;
        color: var(--color-white);
        font-size: 1.2em;
        transition: transform 0.3s ease;
    }

    .accordion-content {
        display: none;
        margin-top: 10px;
        animation: fadeDown 0.3s ease-in-out;
    }

    @keyframes fadeDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .accordion-item.active .accordion-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .accordion-item.active .accordion-arrow { transform: rotate(180deg); }

    /* Navigation */
    .main-header .container {
        gap: 15px;
        padding-top: 20px;
    }

    .main-header .nav-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        gap: 20px;
        margin-top: 10px;
    }

    .nav-links a {
        font-size: 20px;
        font-weight: 800;
    }

    /* Grids */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 500px;
        margin: 0px 30px 10px;
        padding-bottom: 30px;
    }

    .ritual-grid,
    .testimonials-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    /* Products Page */
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        padding: 20px;
    }

    .product-card {
        max-width: 100%;
        margin: 0;
    }

    /* Reviews & Contact */
    .reviews-section {
        max-width: 90vw;
        margin: 20px auto;
    }

    .contact-box {
        flex-direction: column;
        margin-left: 0;
        padding: 30px;
    }

    .contact-form-container,
    .contact-details-container {
        padding: 0;
        min-width: unset;
        width: 100%;
    }

    .contact-details-container {
        margin-top: 40px;
        padding: 30px;
    }

    .contact-details-container .detail-item {
        margin-left: 0;
        justify-content: start;
    }

    /* Footer Tablet Adjustments */
    .main-footer {
        padding-top: 30px;
        padding-bottom: 10px;
    }

    .footer-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .footer-nav,
    .footer-socials {
        align-items: center;
        width: 100%;
    }

    .footer-logo img { max-width: 140px !important; }
    .footer-logo { margin-bottom: 20px; }

    .footer-separator {
        width: 40%;
        height: 1px;
        background-color: rgba(255, 255, 255, 0.4);
        margin: 5px auto;
        display: block; /* Ensure visibility override */
    }

    .footer-nav h3,
    .footer-socials h3 {
        margin-bottom: 10px;
        font-size: 1.2em;
    }

    .footer-nav-links { gap: 8px; }
    .footer-socials { gap: 15px; }

    .disclaimer {
        margin-top: 20px;
        padding: 15px 20px;
        font-size: 0.9em;
    }
    .product-page-container {
        padding-top: 10px; /* Less top padding */
    }

    .product-primary-area {
        flex-direction: column;
        gap: 15px; /* Tighter gap between image and text */
        margin-bottom: 30px;
    }
    
    /* 1. MUCH SMALLER IMAGE */
    .product-gallery .slideshow-image {
        max-height: 220px; /* Drastically reduced height */
    }

    /* 2. TIGHTER CONTENT SPACING */
    .product-header-group {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .product-name-large {
        font-size: 1.8em; /* Slightly smaller title */
        margin-bottom: 5px;
    }
    
    .product-rating {
        margin-bottom: 5px;
    }

    .product-price-large {
        font-size: 1.6em;
        margin: 5px 0 10px; /* Very tight margins */
    }

    .product-short-desc {
        font-size: 0.95em;
        line-height: 1.4;
        margin-bottom: 15px; /* Pulls selectors up */
    }

    .product-selectors {
        gap: 10px;
        margin-bottom: 15px; /* Pulls button up */
    }
    
    .selector-group label {
        margin-bottom: 3px;
        font-size: 0.75em;
    }
    
    .selector-group select, 
    .selector-group input {
        padding: 8px; /* Smaller inputs */
    }

    .buy-now-button {
        padding: 12px;
        font-size: 1.1em;
        margin-bottom: 15px; /* Reduced margin */
    }
    
    .trust-badges {
        margin-top: 10px;
        padding-top: 10px;
    }

    /* Below fold content */
    .product-details-section {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
}

/* --- Mobile / Small Screens (Max 700px) --- */
@media (max-width: 700px) {
    .product-info-outside .product-description {
        font-size: 1em;
    }
}

/* --- Mobile / Very Small Screens (Max 600px) --- */
@media (max-width: 600px) {
    /* Global Container */
    .container {
        padding: 10px 20px 10px;
        margin: 0 auto 40px;
    }

    /* Testimonials Mobile */
    .testimonial-item {
        width: 260px;
        padding: 20px 15px;
    }

    @keyframes scroll-left {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-1 * (260px + 40px) * 9)); }
    }

    /* Header & Nav */
    .main-header .container { padding: 15px 10px 0px; }
    .nav-links a { font-size: 15px; font-weight: 900; }
    .logo-image { max-width: 120px; margin: 10px 0px; }

    /* Hero */
    .bg-corner { width: 100px; height: 100px; }
    .hero-content h1 { font-size: 2em; }
    .hero-content p { font-size: 1.2em; }
    .hero-section { padding: 20px 10px; }
    .ritual-icon { width: 100px; height: 100px; }

    /* Buttons */
    .button, .buy-button, .buy-now-button, .button-green {
        padding: 10px 20px;
        font-size: 1em;
    }

    /* Products Page Mobile */
    .products-hero-section h1 { font-size: 1.8em; margin-bottom: 16px; }
    .products-hero-section.container { margin-bottom: 10px; padding-bottom: 0; }
    
    .product-grid {
        padding-top: 0;
        margin-top: 0;
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .product-card { flex: 1 1 100%; }
    .product-image { height: 220px; }
    .product-content { padding: 12px 15px; }
    .product-title { font-size: 1.5em; margin-bottom: 5px; }
    
    .product-review-section { padding: 20px 10px; }
    .product-review-content h2 { font-size: 1.8em; }
    .product-wrapper { width: 100%; }

    .product-info-outside { padding: 0 5px; }
    .product-info-outside .product-description {
        font-size: 0.95em;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    .product-info-outside .product-benefits { font-size: 0.9em; }

    /* Reviews Page Mobile */
    .reviews-hero-section { padding-top: 10px; padding-bottom: 10px; }
    .reviews-hero-section h1 { font-size: 2em; margin-bottom: 5px; }
    .reviews-hero-section p { font-size: 0.95em; margin-bottom: 20px; }
    
    .reviews-section { gap: 20px; padding: 0 10px; }
    
    .review-box {
        padding: 20px;
        margin: 20px 0;
        border-radius: 15px;
        width: 100%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .review-text { font-size: 0.9em; line-height: 1.4; margin-bottom: 10px; }
    .review-author { font-size: 0.9em; margin-top: 5px; }

    /* Contact Page Mobile */
    .contact-box { padding: 10px; margin-top: 0; }
    .contact-form-container { padding: 0; }
    
    .contact-form-container h2,
    .contact-details-container h2 {
        font-size: 1.5em;
        text-align: center;
    }
    .contact-form-container h2 { margin-bottom: 10px; margin-top: 0; }
    
    .contact-form .form-group { margin-bottom: 8px; }
    .contact-form label { font-size: 0.9em; margin-bottom: 2px; }
    .contact-form input { padding: 8px; }
    .contact-form textarea { padding: 8px; height: 80px; }
    .contact-form .button { width: 100%; padding: 10px; margin-top: 5px; }

    .contact-details-container { padding: 20px; }
    .contact-details-container .detail-item { margin-top: 15px; margin-bottom: 15px; }

    /* Footer Mobile */
    .main-footer { padding-top: 15px; padding-bottom: 0; }
    .footer-flex { gap: 15px; }
    .footer-separator { width: 50%; margin: 10px 0; opacity: 0.5; }
    
    .footer-nav h3, .footer-socials h3 { margin-bottom: 8px; font-size: 1.1em; }
    .footer-nav-links { gap: 5px; }
    .footer-nav-links a { font-size: 16px; }
    .footer-socials { gap: 12px; }
    .social-item a { font-size: 0.9em; }
    .footer-logo img { max-width: 120px !important; }
    
    .disclaimer {
        margin-top: 20px;
        padding: 15px;
        font-size: 0.8em;
    }
     .modal-buttons {
        flex-direction: column-reverse; /* Cancel button at bottom on mobile */
    }
    .modal-buttons button {
        width: 100%;
    }
}