/*
 Theme Name:   Myreea 2.0
 Description:  Myreea 2.0 - A Twenty Twenty-Five child theme
 Author:       Myreea
 Template:     twentytwentyfive
 Version:      1.0.0
 Text Domain:  myreea-2.0
*/

@import url("../twentytwentyfive/style.css");

/* 
 * Custom styles that use theme.json variables.
 * Note: Colors are defined in theme.json and available as --wp--preset--color--{slug}
 */

/* ========================================
 * 2024-2025 MODERN TYPOGRAPHY SYSTEM
 * WordPress 6.9 Best Practices
 * ======================================== */

/* CSS Custom Properties for Typography */
:root {
    /* Font Family Stack */
    --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Fluid Typography Scale - Optimized for Desktop */
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem); /* Reduced from 1.375rem */
    --font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.375rem); /* Reduced from 1.5rem */
    --font-size-2xl: clamp(1.5rem, 1.3rem + 1vw, 1.75rem); /* Reduced from 2rem */
    --font-size-3xl: clamp(1.875rem, 1.6rem + 1.375vw, 2.25rem); /* Reduced from 2.5rem */
    --font-size-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 2.5rem); /* Reduced from 3rem */
    --font-size-5xl: clamp(2.5rem, 2rem + 2.5vw, 3rem); /* Reduced from 4rem */
    --font-size-6xl: clamp(3rem, 2.5rem + 2.5vw, 3.5rem); /* Reduced from 4.5rem */
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    
    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
}

/* Better Font Loading */
@media (prefers-reduced-motion: no-preference) {
    * {
        font-display: swap;
    }
}

/* Base Typography */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Enhanced Body Text */
body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--leading-normal);
    letter-spacing: var(--tracking-normal);
    color: var(--wp--preset--color--contrast);
    background-color: var(--wp--preset--color--base);
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
}

/* Print Styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
}

/* Container Queries for Advanced Responsive Typography */
@container (min-width: 1200px) {
    :root {
        --font-size-base: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    }
}

/* Desktop-Specific Typography Adjustments */
@media (min-width: 1200px) {
    /* Optimal heading sizes for desktop readability */
    h1, .h1 {
        font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    }
    
    h2, .h2 {
        font-size: clamp(1.5rem, 2vw, 1.875rem);
    }
    
    h3, .h3 {
        font-size: clamp(1.25rem, 1.5vw, 1.5rem);
    }
    
    h4, .h4 {
        font-size: clamp(1.125rem, 1.25vw, 1.25rem);
    }
    
    h5, .h5 {
        font-size: clamp(1rem, 1.1vw, 1.125rem);
    }
    
    h6, .h6 {
        font-size: clamp(0.875rem, 1vw, 1rem);
    }
}

/* Large Desktop Adjustments */
@media (min-width: 1600px) {
    :root {
        --font-size-base: 1.125rem;
    }
    
    h1, .h1 {
        font-size: 2.5rem;
    }
}

/* Heading Base Styles with 2024-2025 Standards - Optimized for Poppins */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 500; /* Poppins looks great with 500 weight */
    line-height: var(--leading-tight);
    word-wrap: break-word;
    overflow-wrap: break-word;
    letter-spacing: -0.015em; /* Slight letter-spacing for Poppins */
}

/* H1 - Hero Headlines */
h1, .h1 {
    font-family: var(--font-display);
    font-size: var(--font-size-6xl);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: var(--tracking-tight);
    color: var(--wp--preset--color--primary);
    margin-bottom: 2rem;
}

/* H2 - Section Headlines */
h2, .h2 {
    font-family: var(--font-display);
    font-size: var(--font-size-5xl);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: var(--tracking-tight);
    color: var(--wp--preset--color--primary);
    margin-bottom: 1.75rem;
}

/* H3 - Subsection Headlines */
h3, .h3 {
    font-family: var(--font-display);
    font-size: var(--font-size-4xl);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: var(--tracking-tight);
    color: var(--wp--preset--color--primary);
    margin-bottom: 1.5rem;
}

/* H4 - Card Titles (Uppercase Modern Style) */
h4, .h4 {
    font-family: var(--font-primary);
    font-size: var(--font-size-3xl);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: var(--tracking-wide);
    color: var(--wp--preset--color--contrast);
    margin-bottom: 1.25rem;
}

/* H5 - Labels (Bold Uppercase) */
h5, .h5 {
    font-family: var(--font-primary);
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--wp--preset--color--primary);
    margin-bottom: 1rem;
}

/* H6 - Micro Labels (Accent Color) */
h6, .h6 {
    font-family: var(--font-primary);
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--wp--preset--color--terracotta);
    margin-bottom: 0.75rem;
}

/* Enhanced Paragraphs */
p {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--leading-relaxed);
    margin-bottom: 1.5rem;
    color: var(--wp--preset--color--contrast);
    max-width: 65ch;
    text-wrap: pretty;
    hyphens: auto;
}

/* Large/Lead Paragraphs */
.lead, .has-lead-font-size {
    font-size: var(--font-size-lg);
    line-height: var(--leading-normal);
    font-weight: 500;
    max-width: 60ch;
}

/* Small Text */
small, .small, .has-small-font-size {
    font-size: var(--font-size-sm);
    line-height: var(--leading-normal);
    font-weight: 400;
}

/* Extra Small Text */
.text-xs, .has-extra-small-font-size {
    font-size: var(--font-size-xs);
    line-height: var(--leading-normal);
    font-weight: 400;
}

/* Blockquotes */
blockquote {
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    line-height: var(--leading-normal);
    font-style: italic;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--wp--preset--color--primary);
    background-color: var(--wp--preset--color--base);
}

/* Lists */
ul, ol {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--leading-relaxed);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Links */
a {
    color: var(--wp--preset--color--primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: all 0.2s ease-in-out;
}

a:hover, a:focus {
    color: var(--wp--preset--color--terracotta);
    text-decoration-thickness: 2px;
}

/* Code and Preformatted Text */
code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    background-color: var(--wp--preset--color--base);
    padding: 0.125em 0.25em;
    border-radius: 3px;
}

pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: var(--font-size-sm);
    line-height: var(--leading-normal);
    background-color: var(--wp--preset--color--base);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

/* Superblock Slider Aspect Ratio Override */
.wp-block-superblockslider-slider[class*="has-aspect-ratio-"],
.wp-block-mariushl-hero-slider[class*="has-aspect-ratio-"] {
    height: auto !important;
}

.wp-block-superblockslider-slider.has-aspect-ratio-16-9,
.wp-block-mariushl-hero-slider.has-aspect-ratio-16-9 {
    aspect-ratio: 16/9;
}

.wp-block-superblockslider-slider.has-aspect-ratio-21-9,
.wp-block-mariushl-hero-slider.has-aspect-ratio-21-9 {
    aspect-ratio: 21/9;
}

.wp-block-superblockslider-slider.has-aspect-ratio-4-3,
.wp-block-mariushl-hero-slider.has-aspect-ratio-4-3 {
    aspect-ratio: 4/3;
}

.wp-block-superblockslider-slider.has-aspect-ratio-1-1,
.wp-block-mariushl-hero-slider.has-aspect-ratio-1-1 {
    aspect-ratio: 1/1;
}

/* Ensure inner elements respect the container */
.wp-block-superblockslider-slider[class*="has-aspect-ratio-"] .superblockslider__track,
.wp-block-mariushl-hero-slider[class*="has-aspect-ratio-"] .superblockslider__track,
.wp-block-superblockslider-slider[class*="has-aspect-ratio-"] .superblockslider__slide,
.wp-block-mariushl-hero-slider[class*="has-aspect-ratio-"] .superblockslider__slide {
    height: 100% !important;
}

.wp-block-superblockslider-slider[class*="has-aspect-ratio-"] img,
.wp-block-mariushl-hero-slider[class*="has-aspect-ratio-"] img {
    height: 100%;
    object-fit: cover;
}

/* Features Section */
.home-features {
    position: relative;
    z-index: 1;
}

.home-features .wp-block-column {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    background-color: transparent;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s ease, 
                background-color 0.3s ease; /* Removed opacity from here */
}

.home-features .wp-block-column:hover {
    background-color: #ffffff;
    transform: translateY(-8px); /* Removed !important */
    box-shadow: 0 15px 30px -5px rgba(58, 90, 64, 0.1);
    z-index: 2;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--cream);
    color: var(--wp--preset--color--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-features .wp-block-column:hover .feature-icon {
    background-color: var(--wp--preset--color--terracotta);
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px -5px rgba(188, 108, 37, 0.4);
}

.home-features__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--wp--preset--color--primary);
    letter-spacing: -0.01em;
}

.home-features__text {
    font-size: 0.95rem;
    color: var(--wp--preset--color--contrast);
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Scroll Animations */
.home-features .wp-block-column.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Base state for animated elements - keep separate to avoid conflicts */
.home-features .wp-block-column:not(.is-visible),
.process-step:not(.is-visible),
.home-hero__title:not(.is-visible),
.home-hero__subtitle:not(.is-visible),
.ingredients-image:not(.is-visible),
.testimonial-card:not(.is-visible) {
    opacity: 0;
    transform: translateY(20px);
}

/* Shared transition properties */
.home-features .wp-block-column,
.process-step,
.home-hero__title,
.home-hero__subtitle,
.ingredients-image,
.testimonial-card {
    will-change: opacity, transform;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.home-features .wp-block-columns .wp-block-column:nth-child(1) { transition-delay: 0s; }
.home-features .wp-block-columns .wp-block-column:nth-child(2) { transition-delay: 0.1s; }
.home-features .wp-block-columns .wp-block-column:nth-child(3) { transition-delay: 0.2s; }
.home-features .wp-block-columns .wp-block-column:nth-child(4) { transition-delay: 0.3s; }

.process-steps .wp-block-column:nth-child(1) .process-step { transition-delay: 0s; }
.process-steps .wp-block-column:nth-child(2) .process-step { transition-delay: 0.15s; }
.process-steps .wp-block-column:nth-child(3) .process-step { transition-delay: 0.3s; }
.process-steps .wp-block-column:nth-child(4) .process-step { transition-delay: 0.45s; }

/* Reviews Carousel */
.reviews-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.reviews-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.reviews-carousel__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 20px;
}

.reviews-carousel__slide {
    flex: 0 0 calc(50% - 10px);
    min-width: calc(50% - 10px);
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reviews-carousel__slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.reviews-carousel__slide.slide-animate .testimonial-stars {
    animation: fadeIn 0.4s ease forwards;
    opacity: 0;
}

.reviews-carousel__slide.slide-animate .home-testimonials__quote {
    animation: slideUp 0.4s ease 0.15s forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reviews-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e0ddd8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--wp--preset--color--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.reviews-carousel__nav:hover {
    background: var(--wp--preset--color--primary);
    color: #ffffff;
    border-color: var(--wp--preset--color--primary);
    transform: translateY(-50%) scale(1.1);
}

.reviews-carousel__nav:active {
    transform: translateY(-50%) scale(0.95);
}

.reviews-carousel__nav--prev {
    left: 0;
}

.reviews-carousel__nav--next {
    right: 0;
}

.reviews-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.reviews-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d4d0ca;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.reviews-carousel__dot:hover {
    background: #a8a29e;
}

.reviews-carousel__dot--active {
    background: var(--wp--preset--color--accent);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .reviews-carousel__slide {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 20px;
    }
    
    .reviews-carousel {
        padding: 0 40px;
    }
    
    .reviews-carousel__nav {
        width: 36px;
        height: 36px;
    }
}

/* Hero Buttons - Liquid Glass Style */
.home-hero__actions .wp-block-button__link {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Shine effect on hover */
.home-hero__actions .wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.home-hero__actions .wp-block-button__link:hover::before {
    left: 150%;
    transition: left 0.7s ease;
}

.home-hero__actions .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Specific adjustments for the outline button to match the glass style */
.home-hero__actions .is-style-outline .wp-block-button__link {
    background: rgba(0, 0, 0, 0.2) !important; /* Slightly darker for contrast */
}

.home-hero__actions .is-style-outline .wp-block-button__link:hover {
    background: rgba(0, 0, 0, 0.3) !important;
}

/* Product Card Styles */
.wc-block-grid__product,
.wp-block-woocommerce-product-collection .wc-block-grid__product,
ul.products li.product {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    border-radius: 12px;
    padding: 12px;
    height: 100%;
    background: transparent;
}

.wc-block-grid__product:hover,
.wp-block-woocommerce-product-collection .wc-block-grid__product:hover,
ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    z-index: 2;
}

/* Product Image Zoom Effect */
.wc-block-grid__product-image,
.wp-block-woocommerce-product-image {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.wc-block-grid__product-image img,
.wp-block-woocommerce-product-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
    height: auto;
}

.wc-block-grid__product:hover .wc-block-grid__product-image img,
.wp-block-woocommerce-product-collection .wc-block-grid__product:hover .wp-block-woocommerce-product-image img {
    transform: scale(1.08);
}

/* Add to Cart Button Reveal */
.wc-block-grid__product-add-to-cart,
.wp-block-woocommerce-product-button,
ul.products li.product .button {
    transition: all 0.3s ease;
    opacity: 0.9;
    transform: translateY(0);
}

.wc-block-grid__product:hover .wc-block-grid__product-add-to-cart,
.wp-block-woocommerce-product-collection .wc-block-grid__product:hover .wp-block-woocommerce-product-button,
ul.products li.product:hover .button {
    opacity: 1;
    transform: translateY(-2px);
}

.wc-block-grid__product-add-to-cart .wp-block-button__link,
.wp-block-woocommerce-product-button .wp-block-button__link,
ul.products li.product .button {
    transition: all 0.3s ease;
}

.wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.wp-block-woocommerce-product-button .wp-block-button__link:hover,
ul.products li.product .button:hover {
    background-color: var(--wp--preset--color--terracotta) !important;
    color: #ffffff !important;
    transform: scale(1.05);
}

/* WooCommerce Sorting Dropdown */
.woocommerce-ordering {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.woocommerce-ordering select.orderby {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    border: 1px solid #e0ddd8;
    border-radius: 8px;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--wp--preset--color--contrast);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.woocommerce-ordering select.orderby:hover {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 2px 8px rgba(58, 90, 64, 0.1);
}

.woocommerce-ordering select.orderby:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 0 0 3px rgba(58, 90, 64, 0.15);
}

.woocommerce-ordering::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--wp--preset--color--primary);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.woocommerce-ordering:hover::after {
    border-top-color: var(--wp--preset--color--terracotta);
}

@media (max-width: 768px) {
    .woocommerce-ordering select.orderby {
        min-width: 180px;
        padding: 0.625rem 2.25rem 0.625rem 0.875rem;
    }
}

/* Hide WooCommerce Breadcrumbs */
.woocommerce-breadcrumb,
.breadcrumb {
    display: none !important;
}

/* Hide WooCommerce Default Sorting & Results */
.woocommerce-ordering,
.woocommerce-result-count {
    display: none !important;
}

/* Product Filters */
.myreea-product-filters {
    background: linear-gradient(135deg, #faf9f7 0%, #f5f4f2 100%);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.myreea-product-filters__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.myreea-product-filters__label {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    white-space: nowrap;
}

.myreea-product-filters__dropdowns {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.myreea-product-filters__all {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #e0ddd8;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}

.myreea-product-filters__all:hover {
    background: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 90, 64, 0.2);
}

.myreea-product-filters__all.is-active {
    background: var(--wp--preset--color--terracotta);
    border-color: var(--wp--preset--color--terracotta);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(188, 108, 37, 0.25);
}

.myreea-filter-dropdown {
    position: relative;
}

.myreea-filter-dropdown__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    border: 1px solid #e0ddd8;
    border-radius: 50px;
    padding: 0.5rem 2.25rem 0.5rem 1rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--wp--preset--color--contrast);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
}

.myreea-filter-dropdown__select:hover {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 2px 8px rgba(58, 90, 64, 0.1);
}

.myreea-filter-dropdown__select:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 0 0 3px rgba(58, 90, 64, 0.15);
}

.myreea-filter-dropdown::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--wp--preset--color--primary);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.myreea-filter-dropdown:hover::after {
    border-top-color: var(--wp--preset--color--terracotta);
}

@media (max-width: 768px) {
    .myreea-product-filters {
        padding: 1rem;
    }
    
    .myreea-product-filters__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .myreea-product-filters__dropdowns {
        width: 100%;
    }
    
    .myreea-filter-dropdown__select {
        min-width: 100%;
        font-size: 0.8125rem;
        padding: 0.4rem 2rem 0.4rem 0.75rem;
    }
    
    .myreea-product-filters__all {
        font-size: 0.8125rem;
        padding: 0.4rem 0.75rem;
    }
}

/* Contact Page Styles */
.page-id-121 .wp-block-post-title {
    display: none;
}

.myreea-contact-page {
    padding: 2rem 0;
}

.myreea-contact-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.myreea-contact-hero h1 {
    margin-bottom: 1rem;
}

.myreea-contact-hero p {
    font-size: var(--font-size-lg);
    color: var(--wp--preset--color--contrast);
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
}

.myreea-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.myreea-contact-info {
    padding: 2rem;
    background: linear-gradient(135deg, #faf9f7 0%, #f5f4f2 100%);
    border-radius: 12px;
}

.myreea-contact-info__title {
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    margin-bottom: 1.5rem;
}

.myreea-contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.myreea-contact-info__item:last-child {
    margin-bottom: 0;
}

.myreea-contact-info__icon {
    font-size: 1.25rem;
    color: var(--wp--preset--color--terracotta);
    width: 24px;
    flex-shrink: 0;
    text-align: center;
}

.myreea-contact-info__content h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    margin-bottom: 0.25rem;
}

.myreea-contact-info__content p,
.myreea-contact-info__content a {
    font-size: var(--font-size-sm);
    color: var(--wp--preset--color--contrast);
    margin: 0;
    line-height: 1.6;
}

.myreea-contact-info__content a {
    text-decoration: none;
}

.myreea-contact-info__content a:hover {
    color: var(--wp--preset--color--terracotta);
}

.myreea-contact-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0ddd8;
}

.myreea-contact-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #e0ddd8;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.myreea-contact-social__link:hover {
    background: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Contact Form Styles */
.myreea-contact-form {
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.myreea-contact-form__success,
.myreea-contact-form__error {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.myreea-contact-form__success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.myreea-contact-form__error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.myreea-contact-form__success .dashicons,
.myreea-contact-form__error .dashicons {
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.myreea-contact-form__field {
    margin-bottom: 1.25rem;
}

.myreea-contact-form__label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--wp--preset--color--contrast);
    margin-bottom: 0.5rem;
}

.myreea-contact-form__label .required {
    color: var(--wp--preset--color--terracotta);
}

.myreea-contact-form__input,
.myreea-contact-form__select,
.myreea-contact-form__textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--wp--preset--color--contrast);
    background: #faf9f7;
    border: 1px solid #e0ddd8;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.myreea-contact-form__input:focus,
.myreea-contact-form__select:focus,
.myreea-contact-form__textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(58, 90, 64, 0.1);
}

.myreea-contact-form__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233a5a40' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.myreea-contact-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.myreea-contact-form__field--checkbox {
    margin-top: 1.5rem;
}

.myreea-contact-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--wp--preset--color--contrast);
    line-height: 1.5;
}

.myreea-contact-form__checkbox {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--wp--preset--color--primary);
    cursor: pointer;
}

.myreea-contact-form__checkbox-label a {
    color: var(--wp--preset--color--primary);
    text-decoration: underline;
}

.myreea-contact-form__checkbox-label a:hover {
    color: var(--wp--preset--color--terracotta);
}

.myreea-contact-form__submit {
    margin-top: 1.5rem;
}

.myreea-contact-form__button {
    width: 100%;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #ffffff;
    background: var(--wp--preset--color--primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.myreea-contact-form__button:hover {
    background: var(--wp--preset--color--terracotta);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(188, 108, 37, 0.3);
}

.myreea-contact-form__button:active {
    transform: translateY(0);
}

/* FAQ Section */
.myreea-contact-faq {
    margin-top: 3rem;
    text-align: center;
}

.myreea-contact-faq__title {
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    margin-bottom: 1.5rem;
}

.myreea-contact-faq__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.myreea-contact-faq__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e0ddd8;
    border-radius: 50px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--wp--preset--color--contrast);
    text-decoration: none;
    transition: all 0.3s ease;
}

.myreea-contact-faq__link:hover {
    background: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 90, 64, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .myreea-contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .myreea-contact-info {
        order: 2;
    }
    
    .myreea-contact-form {
        order: 1;
    }
    
    .myreea-contact-faq__links {
        flex-direction: column;
        align-items: center;
    }
    
    .myreea-contact-faq__link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Header Accent Line */
header.wp-block-template-part {
    border-bottom: 3px solid var(--wp--preset--color--terracotta) !important;
    box-shadow: 0 2px 8px rgba(188, 108, 37, 0.15) !important;
}

/* Hide Page Titles Globally */
.page .wp-block-post-title,
.page .entry-title,
body:not(.single-product) .wp-block-query-title {
    display: none;
}

/* Main Menu Current Page Indicator */
.wp-block-navigation-item a {
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.current-menu-item > a,
.current_page_item > a,
.home .wp-block-navigation-item:first-child a {
    background: var(--wp--preset--color--terracotta) !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    header.wp-block-template-part {
        border-bottom-width: 2px !important;
        box-shadow: 0 1px 4px rgba(188, 108, 37, 0.15) !important;
    }
}

/* ========================================
 * WOOCOMMERCE SINGLE PRODUCT PAGE
 * Best Practices Styling
 * ======================================== */

/* Product Page Layout */
.single-product .wp-block-columns.alignwide {
    gap: 4rem;
    align-items: flex-start;
}

/* Increase Product Image Gallery Size */
.single-product main .wp-block-columns.alignwide > .wp-block-column:first-child {
    flex-basis: 60% !important;
    max-width: 60%;
}

.single-product main .wp-block-columns.alignwide > .wp-block-column:last-child {
    flex-basis: 40% !important;
    max-width: 40%;
}

/* Product Image Gallery */
.single-product .wc-block-components-product-image-gallery,
.single-product .woocommerce-product-gallery {
    position: sticky;
    top: 2rem;
    max-width: none !important;
}

.single-product .wp-block-woocommerce-product-image-gallery {
    max-width: none !important;
}

.single-product .woocommerce-product-gallery__image img,
.single-product .wc-block-components-product-image img {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    max-width: 100% !important;
}

.single-product .woocommerce-product-gallery__image:hover img {
    transform: scale(1.02);
}

/* Product Title */
.single-product .wp-block-post-title,
.single-product .product_title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--wp--preset--color--primary);
    margin-bottom: 1rem;
}

/* Product Rating */
.single-product .wc-block-components-product-rating,
.single-product .woocommerce-product-rating {
    margin-bottom: 1rem;
}

.single-product .star-rating {
    color: #f59e0b;
    font-size: 1.1rem;
}

/* Product Price */
.single-product .wc-block-components-product-price,
.single-product .price {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--wp--preset--color--terracotta);
    margin-bottom: 1.5rem;
}

.single-product .price del {
    color: #999;
    font-size: 1.25rem;
    font-weight: 400;
    margin-right: 0.75rem;
}

.single-product .price ins {
    text-decoration: none;
}

/* Product Summary */
.single-product .woocommerce-product-details__short-description,
.single-product .wc-block-components-product-summary {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--wp--preset--color--contrast);
    margin-bottom: 1.5rem;
}

/* Add to Cart Section */
.single-product .cart,
.single-product .wc-block-components-add-to-cart {
    background: linear-gradient(135deg, #faf9f7 0%, #f5f4f2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.single-product .quantity label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    margin-bottom: 0.5rem;
}

.single-product .quantity input.qty {
    width: 80px;
    padding: 0.75rem;
    font-size: var(--font-size-base);
    border: 1px solid #e0ddd8;
    border-radius: 8px;
    text-align: center;
}

.single-product .quantity input.qty:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 0 0 3px rgba(58, 90, 64, 0.1);
}

/* Add to Cart Button */
.single-product .single_add_to_cart_button,
.single-product .wc-block-components-product-button__button {
    width: 100%;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    background: var(--wp--preset--color--primary);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.single-product .single_add_to_cart_button:hover,
.single-product .wc-block-components-product-button__button:hover {
    background: var(--wp--preset--color--terracotta);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(188, 108, 37, 0.3);
}

/* Product Meta */
.single-product .product_meta,
.single-product .wc-block-components-product-meta {
    font-size: var(--font-size-sm);
    color: #666;
    padding-top: 1rem;
    border-top: 1px solid #e0ddd8;
    margin-top: 1rem;
}

.single-product .product_meta span,
.single-product .wc-block-components-product-meta__item {
    display: block;
    margin-bottom: 0.5rem;
}

.single-product .product_meta a,
.single-product .wc-block-components-product-meta__item a {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
}

.single-product .product_meta a:hover {
    color: var(--wp--preset--color--terracotta);
}

/* SKU */
.single-product .sku_wrapper {
    font-weight: 600;
}

.single-product .sku {
    font-weight: 400;
    color: #999;
}

/* Product Details Tabs/Accordion */
.single-product .wc-block-components-product-details,
.single-product .woocommerce-tabs {
    margin-top: 3rem;
}

.single-product .wp-block-accordion-item {
    border: 1px solid #e0ddd8;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.single-product .wp-block-accordion-heading__toggle {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    background: #faf9f7;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.single-product .wp-block-accordion-heading__toggle:hover {
    background: #f5f4f2;
}

.single-product .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle {
    background: var(--wp--preset--color--primary);
    color: #ffffff;
}

.single-product .wp-block-accordion-heading__toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
}

.single-product .wp-block-accordion-panel {
    padding: 1.5rem;
}

/* Related Products Section */
.single-product .related.products,
.single-product [data-block-name="woocommerce/product-collection"] {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e0ddd8;
}

.single-product .related.products > h2,
.single-product .wp-block-heading.alignwide {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    text-align: center;
    margin-bottom: 2rem;
}

/* Trust Badges - Custom Addition */
.myreea-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0ddd8;
}

.myreea-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--wp--preset--color--contrast);
}

.myreea-trust-badge i {
    color: var(--wp--preset--color--terracotta);
}

/* Breadcrumbs on Product Page */
.single-product .woocommerce-breadcrumb {
    margin-bottom: 2rem;
    font-size: var(--font-size-sm);
    color: #666;
}

.single-product .woocommerce-breadcrumb a {
    color: var(--wp--preset--color--primary);
    text-decoration: none;
}

.single-product .woocommerce-breadcrumb a:hover {
    color: var(--wp--preset--color--terracotta);
}

/* Product Reviews */
.single-product .woocommerce-Reviews {
    margin-top: 1rem;
}

.single-product .comment-respond {
    background: #faf9f7;
    border-radius: 12px;
    padding: 1.5rem;
}

.single-product .comment-form-rating label {
    font-weight: 600;
    color: var(--wp--preset--color--primary);
}

/* Product Info Formatting */
.myreea-product-info p {
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: var(--font-size-sm);
}

.myreea-product-info strong {
    color: var(--wp--preset--color--primary);
    font-weight: 600;
}

.myreea-product-info {
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .single-product .wp-block-columns.alignwide {
        gap: 2rem;
        flex-direction: column;
    }
    
    .single-product .wp-block-columns.alignwide > .wp-block-column:first-child,
    .single-product .wp-block-columns.alignwide > .wp-block-column:last-child {
        flex-basis: 100% !important;
        max-width: 100%;
    }
    
    .single-product .woocommerce-product-gallery {
        position: static;
    }
    
    .single-product .wp-block-post-title,
    .single-product .product_title {
        font-size: 1.5rem;
    }
    
    .single-product .wc-block-components-product-price,
    .single-product .price {
        font-size: 1.5rem;
    }
    
    .single-product .cart,
    .single-product .wc-block-components-add-to-cart {
        padding: 1rem;
    }
}

/* Responsive - Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .single-product .wp-block-columns.alignwide > .wp-block-column:first-child {
        flex-basis: 50% !important;
        max-width: 50%;
    }
    
    .single-product .wp-block-columns.alignwide > .wp-block-column:last-child {
        flex-basis: 50% !important;
        max-width: 50%;
    }
}
