/* Ensure standard scroll container acts nicely with Lenis */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
}

/*
 * Page Entrance — CSS-only, fires at first paint.
 * Both header and hero share the same animation-delay so they start simultaneously.
 * No JS dependency = no CDN loading gap.
 */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Header: fadeIn ONLY on landing page */
.home header,
.front-page header {
    animation: fadeIn 0.5s ease-out 0.1s both;
}

/* Ensure header is static and immediate on all other pages */
:not(.home):not(.front-page) header {
    animation: none !important;
    opacity: 1 !important;
}

/* Specific Cart Icon Animation: fadeSlideUp with a slight stagger */
.home header .wp-block-woocommerce-mini-cart,
.front-page header .wp-block-woocommerce-mini-cart {
    animation: fadeSlideUp 0.6s ease-out 0.3s both;
    opacity: 0;
}

/* Hero: stagger individual elements inside the left column ONLY on landing page */
.home .wp-block-cover .wp-block-column:first-child > *,
.home .wp-block-group.alignfull:first-of-type .wp-block-column:first-child > *,
.front-page .wp-block-group.alignfull:first-of-type .wp-block-column:first-child > * {
    animation: fadeSlideUp 0.6s ease-out both;
    opacity: 0;
}
.home .wp-block-cover .wp-block-column:first-child > *:nth-child(1), .home .wp-block-group.alignfull:first-of-type .wp-block-column:first-child > *:nth-child(1) { animation-delay: 0.1s; }
.home .wp-block-cover .wp-block-column:first-child > *:nth-child(2), .home .wp-block-group.alignfull:first-of-type .wp-block-column:first-child > *:nth-child(2) { animation-delay: 0.2s; }
.home .wp-block-cover .wp-block-column:first-child > *:nth-child(3), .home .wp-block-group.alignfull:first-of-type .wp-block-column:first-child > *:nth-child(3) { animation-delay: 0.3s; }
.home .wp-block-cover .wp-block-column:first-child > *:nth-child(4), .home .wp-block-group.alignfull:first-of-type .wp-block-column:first-child > *:nth-child(4) { animation-delay: 0.4s; }
.home .wp-block-cover .wp-block-column:first-child > *:nth-child(5), .home .wp-block-group.alignfull:first-of-type .wp-block-column:first-child > *:nth-child(5) { animation-delay: 0.5s; }
.home .wp-block-cover .wp-block-column:first-child > *:nth-child(6), .home .wp-block-group.alignfull:first-of-type .wp-block-column:first-child > *:nth-child(6) { animation-delay: 0.6s; }

/* Hero & Product: first/second column animation ONLY on landing/product page */
.home .wp-block-group.alignfull:first-of-type .wp-block-column:first-child,
.front-page .wp-block-group.alignfull:first-of-type .wp-block-column:first-child,
.page-id-564 .wp-block-query.alignwide .wp-block-post-featured-image,
.page-id-564 .wp-block-query.alignwide .wp-block-group > *,
.single-product .woocommerce-product-gallery {
    animation: fadeSlideUp 0.8s ease-out 0.2s both;
}

/* Journal Hero Stagger: Targets both image and the overlaid content */
.page-id-564 .wp-block-query.alignwide .wp-block-cover__inner-container > *,
.page-id-564 .wp-block-query.alignwide .wp-block-group > * {
    animation: fadeSlideUp 0.8s ease-out both;
    opacity: 0;
}
.page-id-564 .wp-block-query.alignwide .wp-block-cover__inner-container > *:nth-child(1) { animation-delay: 0.1s; }
.page-id-564 .wp-block-query.alignwide .wp-block-cover__inner-container > *:nth-child(2) { animation-delay: 0.2s; }
.page-id-564 .wp-block-query.alignwide .wp-block-cover__inner-container > *:nth-child(3) { animation-delay: 0.3s; }
.page-id-564 .wp-block-query.alignwide .wp-block-cover__inner-container > *:nth-child(4) { animation-delay: 0.4s; }
.page-id-564 .wp-block-query.alignwide .wp-block-cover__inner-container > *:nth-child(5) { animation-delay: 0.5s; }

/* Journal Alignment fixes: Ensure clean container spacing */
.page-id-564 .wp-block-query {
    margin-bottom: var(--wp--preset--spacing--80);
}

/* Journal Hero Interaction: Basis for JS-based clickability */
.clickable-hero {
    cursor: pointer;
    position: relative;
    /* Removed scale effect per user request */
}

/* Ensure buttons and meta stay clickable on TOP of the giant link area */
.clickable-hero .wp-block-read-more,
.clickable-hero .wp-block-template-part,
.clickable-hero .wp-block-post-title a {
    position: relative;
    z-index: 20;
    pointer-events: auto;
}

/* Button specific hover feedback */
.clickable-hero .wp-block-read-more:hover {
    filter: brightness(1.1);
}

/* Product Title: 0.2s */
.single-product .product_title,
.single-product .wp-block-post-title {
    animation: fadeSlideUp 0.6s ease-out 0.2s both !important;
}

/* Product Media: 0.3s */
.single-product .woocommerce-product-gallery,
.single-product .wp-block-woocommerce-product-image-gallery,
.single-product .wp-block-post-featured-image,
.single-product .wp-block-image:first-of-type {
    animation: fadeSlideUp 0.7s ease-out 0.3s both !important;
}

/* Product Content (Excerpt, Summary, Price): 0.4s */
.single-product .wp-block-post-excerpt,
.single-product .entry-summary,
.single-product .wp-block-woocommerce-product-summary,
.single-product .wp-block-woocommerce-product-price {
    animation: fadeSlideUp 0.6s ease-out 0.4s both !important;
}

/* Product Add to Cart / Buttons: 0.5s */
.single-product .wp-block-woocommerce-product-add-to-cart-form,
.single-product .cart {
    animation: fadeSlideUp 0.6s ease-out 0.5s both !important;
}

/* 
    JOURNAL ARTICLE REFINEMENTS
    Targets specifically single post view to ensure premium editorial flow
*/
.single-post .wp-block-image img {
    border-radius: 24px;
    overflow: hidden;
}

/* Pullquote Refinement: Smaller, more elegant editorial highlights */
.single-post .wp-block-pullquote p {
    font-size: clamp(1.5rem, 3vw, 2.2rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
    font-weight: 500;
}

.single-post .wp-block-pullquote cite {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 1.5rem;
    display: block;
}

/* Vertical Rhythm: Restricted to article body to avoid breaking meta/header */
.single-post .entry-content p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.single-post .entry-content h2 {
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}

.single-post .entry-content h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

/* Fix Post Meta Alignment: Restricted to article/hero meta only */
.single-post .wp-block-template-part .wp-block-group.is-layout-flex,
.page-id-564 .wp-block-cover .wp-block-group.is-layout-flex {
    align-items: baseline !important;
    gap: 0.5em !important;
}

/* Ensure no paragraph margins inside the article meta group */
.single-post .wp-block-template-part .wp-block-group.is-layout-flex p,
.page-id-564 .wp-block-cover .wp-block-group.is-layout-flex p {
    margin: 0 !important;
    line-height: 1 !important;
}

/* Ensure consistent font sizes in meta */
.single-post .wp-block-post-date,
.single-post .wp-block-post-author-name {
    font-size: 0.95rem;
}

/* 
    ARTICLE ENTRANCE ANIMATIONS
    Apply a sophisticated stagger to the entire article body
*/
.single-post .wp-block-post-title,
.single-post .wp-block-template-part,
.single-post .entry-content > * {
    animation: fadeSlideUp 0.8s ease-out both;
    opacity: 0;
}

/* Staggering the first few blocks for a professional reveal */
.single-post .wp-block-post-title { animation-delay: 0.1s; }
.single-post .wp-block-template-part { animation-delay: 0.2s; }
.single-post .entry-content > *:nth-child(1) { animation-delay: 0.3s; }
.single-post .entry-content > *:nth-child(2) { animation-delay: 0.4s; }
.single-post .entry-content > *:nth-child(3) { animation-delay: 0.5s; }
.single-post .entry-content > *:nth-child(4) { animation-delay: 0.6s; }
/* Subsequent elements will still animate but may appear together to avoid long waits */
.single-post .entry-content > *:nth-child(n+5) { animation-delay: 0.7s; }

/* 
    READING PROGRESS BAR
    Subtle indicator at the top of the viewport for single posts
*/
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 99999;
    background: transparent;
    pointer-events: none;
}

.reading-progress-bar {
    width: 0%;
    height: 100%;
    background-color: #e67e5b; /* Accent color */
    box-shadow: 0 0 10px rgba(230, 126, 91, 0.4);
    transition: width 0.1s ease-out;
}

/* 
 * Product Imagery: Standardized Corner Rounding
 * Ensures all product-related images (main and secondary) use 24px per client request.
 */
.single-product .wp-block-post-featured-image,
.single-product .woocommerce-product-gallery img,
.single-product .wp-block-woocommerce-product-image-gallery img,
.single-product .wp-block-image img,
.single-product figure.wp-block-image,
.single-product .wp-block-post-featured-image img {
    border-radius: 24px !important;
}

/* 
 * Performance Utilities
 * Adding will-change to elements we aggressively animate with GSAP
 */
main h1,
main h2,
main h3,
main h4,
main h5,
main h6,
main p,
main ul,
main ol,
main blockquote,
main .wp-block-heading,
main .wp-block-post-title,
main .wp-block-paragraph,
main .wp-block-quote,
main .wp-block-column,
main .wp-block-cover img,
main .wp-block-image img,
main figure img,
.product_title,
.woocommerce-product-gallery {
    will-change: transform, opacity;
}

/* Ensure parallax containers mask the inner image scale/movement */
main .wp-block-cover,
main .wp-block-image,
main figure {
    overflow: hidden !important;
    /* Critical for parallax */
    position: relative;
    /* If the user applies Gutenberg radius, it's often on the image. 
       We add a soft default radius to images that might have had them, 
       or use inherit/mask to ensure rounded corners on the wrapper don't get broken by the inner img scale. */
    border-radius: inherit;
    /* Force clipping in webkit for rounded corners */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
}

/* Adjusted is-style-rounded to avoid oval/pill distortion on rectangular images */
main .wp-block-image.is-style-rounded,
main figure.is-style-rounded,
main .wp-block-image.is-style-rounded img,
main figure.is-style-rounded img {
    border-radius: 24px !important;
}

/* If specific border-radius styles are used in WP 6.x+, we need the wrapper to inherit them magically,
   which is done via the mask-image hack above, but we also ensure the image itself keeps its intended border radius when static if parallax is off */
/* 
 * Button Interactive States
 * Premium, subtle feedback for buttons site-wide
 */
.wp-block-button__link,
.wp-element-button,
.button {
    transition: background-color 0.30s ease, transform 0.30s ease, color 0.30s ease !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.button:hover {
    background-color: #333333 !important; /* Subtle shift from #111111 */
    color: #fcfbf8 !important; /* Ensure base text stays crisp */
    transform: translateY(-2px); /* Slight lift for tactile feel */
    border-color: #333333 !important;
}

.wp-block-button__link:active,
.wp-element-button:active,
.button:active {
    transform: translateY(0);
}

/* 
 * Footer Logo Fix: Prevent clipping and force right alignment
 * Specifically for the logo in the 'Ilumina con propósito' section.
 */
.wp-block-group.alignfull figure.wp-block-image img[src*="arcadia_logo.png"],
.home footer figure.wp-block-image {
    overflow: visible !important;
}

/* Right align the logo block in the footer area */
.home .wp-block-group.alignfull:last-of-type .wp-block-column:last-child .wp-block-image {
    margin-left: auto !important;
    margin-right: 0 !important;
    display: flex;
    justify-content: flex-end;
}

/* 
 * Homepage Header Inversion:
 * Ensure the navigation is legible against the new dark hero background.
 * (Commented out because the hero background is now light cream)
.home .wp-block-cover header,
.home .wp-block-cover header a,
.home .wp-block-cover header .wp-block-navigation-item__content {
    color: #ffffff !important;
}
.home .wp-block-cover header img {
    filter: brightness(0) invert(1);
}
.home .wp-block-cover header svg,
.home .wp-block-cover header svg path {
    fill: #ffffff !important;
}
*/

/* 
 * Hero Blend Effect:
 * Fades the bottom of the hero image into the background color
 * to seamlessly merge with the next section.
 */
.hero-blend-bottom {
    background-color: #F2F0EA !important;
    position: relative;
    overflow: hidden; /* Ensure gradient stays within Hero */
}

/* Clear the mask, use a solid color gradient for a perfect match */
.hero-blend-bottom .wp-block-cover__image-background {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

/* Smooth color bleed from section background upwards over image */
.hero-blend-bottom::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8vh; /* Reduced height to stay below buttons */
    background: linear-gradient(to top, #F2F0EA 0%, rgba(242, 240, 234, 0) 100%);
    pointer-events: none; /* Let clicks pass through to content */
    z-index: 10; /* Changed to sit above image (0) but below content if needed */
}

/* 
 * Hero Gradient Background:
 * A smooth gradient from #f2eee9 at the top to #f2f0ea at the bottom,
 * matching the next section perfectly. 
 */
.hero-gradient-bg {
    background: linear-gradient(to bottom, #f2eee9 0%, #f2f0ea 100%) !important;
    background-color: #f2f0ea !important; /* Fallback */
    position: relative;
    overflow: hidden;
}

/* Ensure any separated image in the right column scales perfectly */
.hero-gradient-bg > .wp-block-cover__inner-container > .wp-block-group > .wp-block-columns > .wp-block-column:nth-child(2) {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-gradient-bg > .wp-block-cover__inner-container > .wp-block-group > .wp-block-columns > .wp-block-column:nth-child(2) img.wp-block-image,
.hero-gradient-bg > .wp-block-cover__inner-container > .wp-block-group > .wp-block-columns > .wp-block-column:nth-child(2) figure.wp-block-image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* 3D Model Viewer Integration */
.hero-gradient-bg model-viewer {
    width: 100%;
    min-height: 60vh;
    background-color: transparent;
    --poster-color: transparent;
    outline: none;
    /* Touch-action pan-y ensures mobile users can scroll down without getting trapped rotating the mesh */
    touch-action: pan-y;
    
    /* Initial state for the GSAP entrance animation */
    opacity: 0;
    transform: translateY(20px);
}

/* Remove the native loading indicator (progress bar) as requested */
.hero-gradient-bg model-viewer::part(default-progress-bar) {
    display: none;
}

/* Constrain hero content so it doesn't drift too far on ultra-wide screens */
.hero-blend-bottom .wp-block-cover__inner-container {
    position: relative;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    z-index: 20;
}

/* Ensure the next section pulls up slightly to eliminate any pixel gap */
.home main > .wp-block-group:first-of-type {
    margin-top: -2px !important;
    position: relative;
    z-index: 2;
}

/* 
 * Parallax Gap Fix:
 * For the hero only, we force a larger scale and a negative initial translate.
 * This guarantees there are 'hidden' pixels above the fold to fill the parallax gap.
 */
.home .wp-block-cover.hero-blend-bottom .wp-block-cover__image-background {
    scale: 1.25 !important;
    transform: translateY(-5%) !important;
    transform-origin: top center !important;
}

/* 
 * ==========================================
 * 5. ARCADIA CUSTOM MOBILE DRAWER
 * ==========================================
 * A completely decoupled, scratch-built navigation drawer
 * mimicking WooCommerce Cart styling.
 */

#arcadia-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 90vw;
    max-width: 450px; /* Cart-like sizing */
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height for mobile browsers */
    box-sizing: border-box; /* PREVENT PADDING FROM ADDING TO HEIGHT */
    background-color: #fcfbf8; /* Premium paper white */
    z-index: 999999;
    display: flex;
    flex-direction: column;
    padding: 30px;
    box-shadow: 20px 0 80px rgba(0, 0, 0, 0.1);
    
    /* Initial state for GSAP */
    transform: translateX(-100%);
    visibility: hidden;
}

#arcadia-mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 17, 17, 0.4);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
}

.arcadia-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.arcadia-drawer-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #111111;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arcadia-drawer-title svg {
    height: 24px;
    width: auto;
}

.arcadia-drawer-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arcadia-drawer-close svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    transition: transform 0.3s ease;
}

.arcadia-drawer-close:hover svg {
    transform: scale(1.1);
}

.arcadia-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-grow: 1;
    overflow-y: auto; /* Enable scrolling if nav items exceed screen height */
    padding-bottom: 20px; /* Padding before reaching footer */
}

.arcadia-drawer-nav a {
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: -1px;
    text-transform: capitalize;
    color: #111111;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    transform-origin: left;
}

.arcadia-drawer-nav a:hover {
    color: #e67e5b;
    transform: scale(1.05);
}

.arcadia-drawer-footer {
    padding-top: 5px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arcadia-drawer-footer a {
    font-size: 0.85rem;
    color: #555555;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arcadia-drawer-footer a:hover {
    color: #e67e5b;
}

.arcadia-drawer-socials {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.arcadia-drawer-socials a {
    color: #111111;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.arcadia-drawer-socials a svg {
    width: 22px;
    height: 22px;
}

.arcadia-drawer-socials a:hover {
    color: #e67e5b;
    transform: scale(1.1);
}


/* ==========================================
   FOOTER TWEAKS
   ========================================== */
@media (max-width: 781px) {
    footer.wp-block-template-part .wp-block-navigation {
        display: none !important;
    }
}

/* ==========================================
   NAVIGATION POLISH: SLIDING UNDERLINES
   ========================================== */

.wp-block-navigation-item__content {
    position: relative;
    text-decoration: none !important;
    display: inline-block;
}

.wp-block-navigation-item__content::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.wp-block-navigation-item__content:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 
    MAGNETIC ENGINE HINTS
    Only applied to devices with a fine pointer (mouse) to avoid 
    unnecessary layer creation on mobile/touch devices.
*/
@media (hover: hover) and (pointer: fine) {
    .wp-block-button__link,
    .wc-block-mini-cart__button,
    .wp-block-woocommerce-mini-cart__button,
    .wp-block-navigation__responsive-container-open,
    .wp-block-navigation__responsive-container-close {
        will-change: transform;
        display: inline-block;
    }
}

/* 
    MOBILE REFINEMENTS
    Ensuring premium typography and rhythm on small screens
*/
@media (max-width: 781px) {
    .page-id-564 .wp-block-cover {
        min-height: 60vh !important;
    }
    
    .page-id-564 .wp-block-post-title {
        font-size: clamp(2rem, 10vw, 3.5rem) !important;
        line-height: 1.05 !important;
    }

    .single-post .entry-content p {
        margin-bottom: 1.5rem;
        font-size: 1.05rem;
    }

    .single-post .wp-block-pullquote p {
        font-size: 1.4rem !important;
    }
}

/* ==========================================
   PRODUCT PAGE SPECIFICATIONS GRID
   ========================================== */

.arcadia-product-specs-container {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 60px;
    border-top: 1px solid rgba(0,0,0,0.08); /* Mimicking bottom lines */
    color: #111111;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.spec-row.spec-row-last {
    border-bottom: none;
}

.spec-label {
    font-size: 32px !important;
    font-weight: 500;
    line-height: 1.5 !important;
    letter-spacing: -0.04em !important;
    margin-top: 0 !important;
}

.spec-content {
    font-size: 24px !important;
    font-weight: 400;
    line-height: 1.5 !important;
    letter-spacing: -0.04em !important;
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    color: #2b2b2b;
    align-self: center; /* Triggers native flex/grid vertical centering */
}

.spec-content p {
    font-size: 24px !important;
    line-height: 1.5 !important;
    letter-spacing: -0.04em !important;
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    margin-bottom: 15px !important;
}
.spec-content p:last-child {
    margin-bottom: 0;
}

.spec-content a {
    text-decoration: underline;
    color: inherit;
    transition: opacity 0.2s ease;
}
.spec-content a:hover {
    opacity: 0.7;
}

/* Specific numbers layout */
.spec-numbers-grid {
    display: flex;
    flex-direction: column;
}

.spec-group {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.08); /* Internal separations */
}

.spec-group.spec-group-last {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.spec-group-title {
    font-size: 1.15rem;
    font-weight: 500;
    margin-top: 0 !important;
    margin-bottom: 25px;
}

.spec-metrics-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15%;
}

.spec-metrics-flush {
    margin-top: 30px;
}

.spec-metric {
    display: flex;
    flex-direction: column;
    min-width: 100px;
}

.spec-val {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.spec-desc {
    font-size: 16px !important;
    font-weight: 400;
    color: #888888;
}

/* Mobile Responsiveness for the Grid */
@media (max-width: 768px) {
    .spec-row {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 25px 0;
    }
    
    .spec-label {
        font-weight: 500;
    }

    .spec-metrics-wrapper {
        gap: 30px;
    }
}

/**
 * ==========================================
 * EXPERIMENTAL: WOOCOMMERCE REVIEWS OVERRIDE
 * Blending classic WooCommerce review mechanisms with the Arcadia typography system
 * ==========================================
 */
 
/* Strip standard WooCommerce styling */
.woocommerce-Reviews ol.commentlist {
    margin: 0;
    padding: 0;
    width: 100%;
    list-style: none; /* Strip bullet points */
}

/* Individual Review Component Structure */
.woocommerce-Reviews ol.commentlist li.review,
#comments > ol > li.review {
    margin: 0 0 35px 0;
    padding: 0 0 35px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08); /* Match spec-row lines */
}

.woocommerce-Reviews ol.commentlist li.review:last-child,
#comments > ol > li.review:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Hide Native H2 Title since the layout already provides the "Valoraciones" label */
.spec-content h2 {
    font-size: 26px !important;
    font-weight: 500 !important;
    letter-spacing: -0.04em !important;
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    color: #111111;
}

/* Beautiful Rounded Avatars */
.spec-content img {
    border-radius: 50% !important;
    width: 45px !important;
    height: 45px !important;
    object-fit: cover !important;
    float: left;
    margin-right: 15px !important;
    display: inline-block !important; /* Overriding previous display:none */
}

/* Base Content Container Fix for Site Editor Blocks */
.spec-content li {
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    margin-bottom: 35px !important;
    list-style: none !important;
    clear: both; /* Ensure floated avatars don't overflow */
}

.spec-content li:last-of-type {
    border-bottom: none !important;
}

.spec-content ul,
.spec-content ol {
    margin: 0;
    padding: 0;
    list-style: none; /* Strip bullet points */
}

/* Clearfix for the flex headers to ensure avatar floats natively */
.spec-content .wc-block-components-review-list-item__info::after {
    content: "";
    display: table;
    clear: both;
}

/* Meta Data Context Resets (Author and Date) */
.spec-content time,
.spec-content .wc-block-review-list-item__published-date,
.spec-content .wc-block-components-review-list-item__published-date {
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em;
    color: #888888;
    display: block;
}

.spec-content .wc-block-review-list-item__author,
.spec-content .wc-block-components-review-list-item__author {
    color: #111111 !important;
    margin-right: 10px;
    font-size: 20px !important;
    font-weight: 500 !important;
    display: block;
    margin-bottom: 2px;
}

/* The actual customer text review body */
.spec-content li > div {
    font-size: 24px !important;
    line-height: 1.5 !important;
    letter-spacing: -0.04em !important;
    color: #2b2b2b !important;
    margin-top: 15px !important;
}

.spec-content li p {
    font-size: 24px !important;
    line-height: 1.5 !important;
    letter-spacing: -0.04em !important;
    color: #2b2b2b !important;
}

/* Submittal Form Overrides */
.spec-content h3 {
    font-size: 20px !important;
    font-weight: 500 !important;
    letter-spacing: -0.04em !important;
    margin-bottom: 40px !important; /* Increased separation from stars */
    color: #111111;
}

/* Neutralizing the Star backgrounds */
.spec-content .star-rating,
.spec-content .wc-block-components-product-rating,
.spec-content .wc-block-components-product-rating__stars {
    background: transparent !important;
    background-color: transparent !important;
}
.spec-content .wc-block-components-product-rating svg {
    background: transparent !important;
}

/* Form Labels and Helper Text Scale */
.spec-content label {
    font-size: 16px !important;
    font-weight: 500 !important;
    display: block;
    margin-bottom: 8px;
    color: #111111;
}

.spec-content .comment-notes,
.spec-content .wc-block-components-product-reviews-form__notes {
    font-size: 14px !important;
    color: #888888 !important;
    margin-bottom: 25px !important;
    line-height: 1.5 !important;
}

/* Form Inputs Reset */
.spec-content input[type="text"],
.spec-content input[type="email"],
.spec-content textarea {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 12px !important;
    padding: 15px !important;
    font-size: 16px !important;
    margin-bottom: 20px;
    background: #ffffff !important; /* Solid white pop */
    color: #111111 !important;
    font-family: inherit;
    box-sizing: border-box;
}

/* The Main Submit Button */
.spec-content button[type="submit"],
.spec-content input[type="submit"],
.spec-content .wp-block-button__link {
    background-color: #111111 !important;
    color: #ffffff !important;
    padding: 15px 35px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
}

.spec-content button[type="submit"]:hover,
.spec-content input[type="submit"]:hover,
.spec-content .wp-block-button__link:hover {
    background-color: #333333 !important;
}

/* Prevent Native WooCommerce Rating Stars (which use <button> tags) from swallowing styling */
.spec-content button.wc-block-components-product-rating__star-icon,
.spec-content .star-rating span {
    background-color: transparent !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    color: #111111 !important; /* Keep the stars dark outline */
}

/* Centering the cookie consent checkbox and label horizontally */
.spec-content .comment-form-cookies-consent, 
.spec-content .wc-block-components-product-reviews-form-cookies-consent {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 40px !important; /* Increased spacing to separate from button */
}

.spec-content .comment-form-cookies-consent label, 
.spec-content .wc-block-components-product-reviews-form-cookies-consent label {
    font-size: 16px !important;
    color: #888888 !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.spec-content .comment-form-cookies-consent input,
.spec-content .wc-block-components-product-reviews-form-cookies-consent input {
    margin: 0 !important;
    width: auto !important;
}

/* ==========================================
   PHASE 3: FINAL DESIGN POLISH
   ========================================== */

/* 1. Mini-Cart Architectural Refinement */
.wc-block-cart-item {
    border-bottom: 1px solid rgba(0,0,0,0.08) !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}
.wc-block-cart-item:last-of-type {
    border-bottom: none !important;
}
.wc-block-cart-item__title {
    font-weight: 500 !important;
    letter-spacing: -0.04em !important;
}

/* 2. Shop Archive & Sorting */
.woocommerce-ordering select.orderby {
    border: 1px solid rgba(0,0,0,0.1) !important;
    border-radius: 4px !important;
    padding: 10px 35px 10px 15px !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-size: 14px !important;
    color: #111111 !important;
    background-color: transparent !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23111111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.woocommerce-result-count {
    font-size: 14px !important;
    color: #888888 !important;
    margin-bottom: 25px !important;
}

/* 3. Elevated Empty States */
.wc-block-cart__empty-cart,
.wc-block-mini-cart__empty-cart-wrapper {
    text-align: center !important;
    padding: 80px 20px !important;
}

.wc-block-cart__empty-cart-message,
.wc-block-mini-cart__empty-cart-title {
    font-size: 24px !important;
    font-weight: 500 !important;
    letter-spacing: -0.04em !important;
    color: #111111 !important;
    margin-bottom: 30px !important;
}

/* 4. Cohesive System Notices */
.wc-block-components-notice,
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 4px !important;
    padding: 20px !important;
    background-color: #fcfcfc !important;
    color: #111111 !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    box-shadow: none !important;
    margin-bottom: 30px !important;
}

.wc-block-components-notice--error,
.woocommerce-error {
    border-left: 4px solid #cc0000 !important;
}

.wc-block-components-notice--success,
.woocommerce-message {
    border-left: 4px solid #111111 !important;
}

/* 5. Gallery Toggle (Ver más) */
.product-extra-gallery {
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.product-extra-gallery.is-visible {
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fix for gallery transition conflict */
.product-extra-gallery .wp-block-image,
.product-extra-gallery figure,
.product-extra-gallery img {
    transition: none !important; /* Prevent browser transitions from fighting GSAP */
}

.gallery-toggle-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: -24px; /* Overlap slightly with previous row for aesthetic */
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.ver-mas-btn {
    background: #ffffff !important;
    color: #111111 !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    padding: 12px 35px !important;
    border-radius: 50px !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ver-mas-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
    background-color: #fcfcfc !important;
}

.ver-mas-btn svg {
    transition: transform 0.3s ease;
}

/* 6. Lightbox Aspect Ratio Fix */
/* Ensures that images forced to 16:9 on the page reveal their full original ratio when enlarged */
.wp-lightbox-overlay img {
    aspect-ratio: auto !important;
    object-fit: contain !important;
    border-radius: 12px !important; /* Soft architectural curves matching the site design */
}


