/*
Theme Name: AloeJoy Theme
Theme URI: https://aloejoy.es
Author: AloeJoy AI
Description: A high-performance, minimalist theme inspired by 'Nerve', optimized for artisan products.
Version: 2.0.0
Text Domain: aloejoy
*/

/* 1. RESET & VARIABLES */
/* Variables are populated by customizer.php output in <head> */
:root {
    /* Fallbacks */
    --color-primary: #2d6a4f;
    --color-accent: #e5989b;
    --color-bg: #fdfcf8;
    --color-text: #1b263b;
    --color-light: #f7fafc;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 12px;
    --container-max: 1200px;
    --header-height: 70px;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    line-height: 1.2;
    color: var(--color-primary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* 2. HEADER & NAVIGATION (Sliding Menu) */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    /* Allow logo to overlap/float */
    overflow: visible !important;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: visible !important;
    /* CRITICAL for logo float */
}

.menu-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}

/* LOGO - Fixed 120px */
.brand-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* User requested removing top */
    z-index: 1000;
    margin: 0 !important;
    /* User specific request */
    width: 120px;
    padding-top: 5px;
    /* Slight breathing room inside */
}

.brand-logo a {
    display: block;
    pointer-events: auto;
    /* Restore clicks on logo */
}

/* Ensure logo doesn't get cut by strict overflow handling on body/html if any */
.brand-logo img,
.custom-logo {
    max-width: 120px !important;
    width: 120px !important;
    height: auto !important;
    max-height: 120px !important;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}




/* 3b. CATEGORY ICONS STRIP */
.cat-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
    width: 100%;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Ensure text inside is centered */
}

/* OFF-CANVAS MENU */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 101;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 102;
    padding: 30px;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.menu-open .mobile-nav {
    left: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.mobile-nav li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 500;
}

/* 3. HERO SECTION */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius);
    margin: 20px;
    /* Slight inset for modern look */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, var(--hero-overlay));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.btn-hero {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-hero:hover {
    background: #fff;
    color: var(--color-accent);
    transform: translateY(-2px);
}

/* 4. PRODUCTS (Nerve Style Grid) */

/* 3b. CATEGORY ICONS STRIP */
/* HORIZONTAL CATEGORIES */
.scroll-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    /* Space between buttons and list */
}

.cat-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 10px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
    /* Take available space */
    min-width: 0;
    /* CRITICAL: Allow shrinking for scroll */
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.cat-horizontal::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    background: #fff;
    border: 2px solid #ecfdf5;
    /* Light green border */
    color: var(--color-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 10;
    transition: all 0.2s ease;
    flex-shrink: 0;
    /* Prevent button shrinking */
}

.scroll-btn:hover {
    background: var(--color-primary);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(45, 106, 79, 0.2);
    border-color: var(--color-primary);
}

.cat-card-horizontal {
    flex: 0 0 auto;
    width: 140px;
    /* Slightly wider */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s;
    padding: 10px;
}

.cat-card-horizontal:hover {
    transform: translateY(-5px);
}

.cat-icon-svg-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: 0.3s;
    /* 3D Button Style - Uniform Pastel Green */
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 4px solid #fff;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(16, 185, 129, 0.1),
        inset 0 -4px 4px rgba(0, 0, 0, 0.02);
    /* Inner subtle shadow */
}

.cat-card-horizontal:hover .cat-icon-svg-wrapper {
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 4px 6px rgba(16, 185, 129, 0.2);
    border-color: #ecfdf5;
    transform: scale(1.05);
}

.cat-card-horizontal h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
    line-height: 1.3;
    transition: color 0.3s;
}

.cat-card-horizontal:hover h4 {
    color: var(--color-primary);
}

.category-strip {
    padding: 60px 0;
    text-align: center;
}

.cat-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.cat-card:hover {
    transform: translateY(-5px);
}

.cat-icon-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: all 0.3s ease;
}

.cat-card:hover .cat-icon-wrapper {
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
}

.cat-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cat-card:hover .cat-icon-wrapper img {
    transform: scale(1.1);
}

.cat-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.cat-card:hover h4 {
    color: var(--color-primary);
}

/* Scrollable History Grid & Custom Scrollbar */
.history-grid.scrollable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-height: 450px;
    /* Reduced to force scrollbar with fewer items */
    overflow-y: auto;
    padding-right: 5px;
    /* Space for scrollbar */
}

/* 4. PRODUCTS (Nerve Style Grid) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.product-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #f1f5f9;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
    /* Zoom effect */
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-cat {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-price {
    color: var(--color-primary);
    font-weight: 700;
    font-family: var(--font-heading);
}

/* 5. FOOTER */
.site-footer {
    background: #1a202c;
    color: #cbd5e0;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.aj-footer-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.aj-footer-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    text-align: center;
    font-weight: 600;
}

.aj-footer-trust-item .dashicons {
    color: #9ae6b4;
}

.aj-footer-proof {
    margin-bottom: 14px;
    color: #e2e8f0;
}

.aj-footer-proof strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        height: 400px;
        margin: 0;
        border-radius: 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .product-img {
        height: 200px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .aj-footer-trust-strip {
        grid-template-columns: 1fr 1fr;
    }
}

/* 6. SINGLE PRODUCT PAGE ENHANCEMENTS */
.single-product .container {
    padding-top: 40px;
    padding-bottom: 60px;
    max-width: 1100px;
    /* Slightly narrower for readability */
}

.single-product div.product {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    /* Space between image and details */
}

/* Image Column */
.single-product .woocommerce-product-gallery {
    flex: 1;
    min-width: 300px;
}

/* Summary/Details Column */
.single-product .summary {
    flex: 1;
    min-width: 300px;
    padding-left: 20px;
}

.single-product h1.product_title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    line-height: 1.2;
}

.single-product .price {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
}

.single-product .woocommerce-product-details__short-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 2rem;
}

/* Add to Cart / Variations Area */
.single-product form.cart {
    margin-top: 2rem;
    padding: 20px;
    background: #f8fafc;
    /* Light distinct background */
    border-radius: var(--border-radius);
    border: 1px solid #e2e8f0;
}

.variations {
    width: 100%;
    margin-bottom: 1rem;
}

.variations td {
    padding-bottom: 10px;
    vertical-align: middle;
}

.variations label {
    font-weight: 600;
    margin-right: 15px;
    color: var(--color-text);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.variations select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
    cursor: pointer;
    color: var(--color-text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.single_variation_wrap {
    margin-top: 15px;
}

/* Tabs Section */
.woocommerce-tabs {
    margin-top: 60px;
    clear: both;
}

.woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 30px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    gap: 30px;
    list-style: none;
}

.woocommerce-tabs ul.tabs li {
    border: none;
    background: transparent;
    margin: 0;
}

.woocommerce-tabs ul.tabs li a {
    padding: 15px 0;
    font-weight: 600;
    color: #718096;
    font-size: 1.1rem;
    display: block;
    position: relative;
    text-transform: none;
    /* Modern look */
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--color-primary);
}

.woocommerce-tabs ul.tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    /* Overlap border */
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px 3px 0 0;
}

.woocommerce-Tabs-panel h2 {
    display: none;
    /* Hide redundant headers */
}

.shop_attributes th {
    width: 150px;
    font-weight: 600;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.shop_attributes td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-style: italic;
}

.shop_attributes tr:last-child th,
.shop_attributes tr:last-child td {
    border-bottom: none;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .single-product div.product {
        flex-direction: column;
        gap: 20px;
    }

    .single-product .summary {
        padding-left: 0;
    }
}


/* --- FIX: Global Margins & Typography --- */

/* Force horizontal padding on ALL container-like elements */
.container,
.site-main,
.content-area,
.woocommerce-page .site-content {
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Specific fix for Product Page Margins */
.single-product .product {
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Ensure mobile also has padding */
@media (max-width: 768px) {

    .container,
    .site-main,
    .content-area {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* --- FIX: Revert Tab Styling (Connected Look) --- */
.woocommerce-tabs ul.tabs {
    padding: 0;
    margin: 0 0 -1px;
    /* Connect to border */
    border-bottom: 1px solid #d3ced2;
    list-style: none;
    display: flex;
    gap: 0;
    /* No gaps */
}

.woocommerce-tabs ul.tabs li {
    background: #fbfbfb;
    border: 1px solid #d3ced2;
    border-bottom: none;
    margin: 0 -5px 0 0;
    /* Overlap slightly or connected */
    padding: 0;
    border-radius: 4px 4px 0 0;
    position: relative;
    z-index: 0;
}

.woocommerce-tabs ul.tabs li.active {
    background: #fff;
    z-index: 2;
    border-bottom-color: #fff;
    font-weight: 600;
}

.woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: #515151;
    font-size: 1rem;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--color-primary);
}

.woocommerce-Tabs-panel {
    border: 1px solid #d3ced2;
    /* The box container */
    padding: 30px;
    background: #fff;
    border-radius: 0 4px 4px 4px;
    margin-bottom: 40px;
}

/* Hiding MIDES row in Additional Info via CSS (Plan B if Script fails or for immediate effect) */
.shop_attributes .woocommerce-product-attributes-item--attribute_pa_med {
    display: none !important;
}


/* Split SKU and Categories into separate lines */
.product_meta>span {
    display: block;
    margin-bottom: 5px;
    /* Add some spacing between lines */
}

/* --- FIX: Prevent Tabs Shifting & Archive Margins --- */

/* 1. Stabilize Tabs in Flex Layout */
.woocommerce-tabs {
    width: 100% !important;
    flex-basis: 100% !important;
    max-width: 100% !important;
    display: block !important;
    /* Force block behavior within flex item */
    margin-top: 40px;
    clear: both;
}

/* Ensure the panel content doesn't cause shifts */
.woocommerce-Tabs-panel {
    width: 100%;
    box-sizing: border-box;
}

/* 2. Reinforce Archive/Category Margins */
/* Target the specific WooCommerce wrappers often used in Archives */
.archive.woocommerce .container,
.tax-product_cat .container,
.post-type-archive-product .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100%;
    max-width: 1200px;
    /* Standardize width */
    margin: 0 auto;
}

/* Ensure body doesn't overflow horizontally */
body {
    overflow-x: hidden;
}

/* --- FIX: NUCLEAR MARGINS & TABS STABILITY --- */

/* 1. Global Padding (Nuclear Option) */
/* Apply directly to main wrappers to ensure breathing room everywhere */
div#page,
.site-content,
.site-main,
body.woocommerce-page {
    padding-left: 0;
    /* Reset generic, handle via container */
    padding-right: 0;
}

/* The real constraint */
.container,
.site-header .header-inner,
.site-footer .container,
.single-product .product,
.archive .product-grid {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box;
}

/* 2. Fix Tab Shifting (The 'Jump') */
/* Problem: changing font-weight or borders changes size. */
.woocommerce-tabs ul.tabs li {
    /* Stabilize dimensions */
    margin: 0 !important;
    border: 1px solid #d3ced2 !important;
    border-bottom: 1px solid #d3ced2 !important;
    /* Keep border consistent */
    background: #fbfbfb;
    flex-grow: 1;
    /* Distribute evenly */
    text-align: center;
}

.woocommerce-tabs ul.tabs li.active {
    background: #fff;
    border-bottom: 1px solid #fff !important;
    /* Hide bottom border for active */
    font-weight: normal !important;
    /* STOP BOLD JUMP */
    /* Use text-shadow to simulate bold without changing width */
    text-shadow: 0 0 0.5px var(--color-primary);
    color: var(--color-primary);
}

.woocommerce-tabs ul.tabs li a {
    font-weight: normal !important;
    /* Override default */
}

/* Force Static Layout for Tabs Container */
.single-product div.product .woocommerce-tabs {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    float: none !important;
    clear: both !important;
}

/* 3. Cart Link Visibility - Ensure it's clickable */
.header-actions a.cart-link {
    display: inline-flex;
    position: relative;
    overflow: visible;
    z-index: 1000;
}

/* --- FIX: Final Tab Adjustments --- */

/* 1. Description Text Padding (User Request) */
/* Apply 20px padding specifically to the description content box */
#tab-description,
.woocommerce-Tabs-panel--description {
    padding: 20px !important;
}

/* 2. Static Tabs Container (Prevent Shifting) */
/* Ensure the tabs container is a solid block that takes full width */
.woocommerce-tabs {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    margin-top: 40px !important;
}

/* 3. Restore Tab Size & Look (Classic, Stable) */
/* Revert to simple, stable sizing without flex-grow if that caused issues */
.woocommerce-tabs ul.tabs li {
    padding: 0 20px !important;
    /* Fixed horizontal padding */
    margin: 0 !important;
    border: 1px solid #d3ced2 !important;
    border-bottom: 1px solid #d3ced2 !important;
    display: inline-block !important;
    /* Classic behavior */
    flex: 0 0 auto !important;
    /* Don't grow/shrink unpredictably */
}

/* Ensure active tab covers the bottom border to look connected */
.woocommerce-tabs ul.tabs li.active {
    background: #fff !important;
    border-bottom-color: #fff !important;
    position: relative;
    z-index: 5;
    /* Font weight stabilizer again just in case */
    font-weight: 600 !important;
}

/* Ensure text inside tab doesn't break layout */
.woocommerce-tabs ul.tabs li a {
    display: inline-block !important;
    padding: 10px 0 !important;
}

/* --- SEARCH OVERLAY STYLES --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 99999;
    padding: 0;
    display: none;
    /* Toggled via JS */
    animation: fadeIn 0.2s ease-out;
}

.search-container {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    text-align: center;
}

.search-form {
    position: relative;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

.search-field {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    outline: none !important;
    padding-right: 50px;
    /* Space for button */
    font-family: 'Outfit', sans-serif;
}

.search-submit {
    position: absolute;
    right: 0;
    bottom: 0;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: transform 0.2s;
}

.search-submit:hover {
    transform: translateX(5px);
}

.close-search {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
    line-height: 1;
}

.close-search:hover {
    color: red;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile Adjustments for Search */
@media (max-width: 768px) {
    .close-search {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }

    .search-field {
        font-size: 1.5rem;
    }
}

/* --- HEADER REFINEMENTS (Search & Icons) --- */

/* 1. Header Actions Container */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    /* Increased space as requested */
}

/* 2. Icons Sizing & Style */
.header-actions .dashicons {
    font-size: 28px !important;
    /* Bigger icons (was ~20px) */
    width: 28px;
    height: 28px;
    color: #2d3748;
    transition: color 0.3s;
}

.header-actions a:hover .dashicons {
    color: var(--color-primary);
}

/* 3. Inline Search Bar (Elegant Capsule) */
.header-search-inline {
    display: flex;
    align-items: center;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    /* Pill shape */
    padding: 5px 15px;
    transition: all 0.3s ease;
    width: 250px;
    /* Explicit width for desktop */
}

.header-search-inline:focus-within {
    background: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
}

.header-search-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 0.95rem;
    color: #4a5568;
    width: 100%;
    padding: 0 5px;
    font-family: 'Inter', sans-serif;
}

/* Remove default WP/Search input styling overrides */
.header-search-input::placeholder {
    color: #a0aec0;
}

.header-search-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search-btn .dashicons {
    font-size: 20px !important;
    /* Keep search icon inside bar slightly smaller for proportion */
    color: #718096;
}

.header-search-inline:focus-within .header-search-btn .dashicons {
    color: var(--color-primary);
}

/* 4. Tooltip for User Icon ("Mi Espacio") */
.tooltipped {
    position: relative;
}

.tooltipped::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    /* Position below */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #2d3748;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
}

.tooltipped::before {
    /* Little arrow */
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #2d3748 transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.tooltipped:hover::after,
.tooltipped:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 5. Cart Count Adjustment */
.cart-link {
    position: relative;
}

.cart-count {
    background: var(--color-accent) !important;
    color: #fff !important;
    border-radius: 50% !important;
    padding: 3px 6px !important;
    font-size: 0.7rem !important;
    position: absolute;
    top: -5px;
    right: -8px;
    font-weight: 700;
    line-height: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-search-inline {
        width: 160px;
        /* Smaller on mobile */
        padding: 5px 10px;
    }

    .header-actions {
        gap: 15px;
    }

    .header-actions .dashicons {
        font-size: 24px !important;
    }
}

/* --- MY ACCOUNT DASHBOARD (CUSTOM) --- */
.my-account-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 20px;
}

.dashboard-welcome {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0f5c2e 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.dashboard-welcome h2 {
    color: #fff !important;
    margin-bottom: 10px;
    font-size: 2rem;
}

.dashboard-section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2d3748;
    border-left: 5px solid var(--color-accent);
    padding-left: 15px;
}

/* Buy Again / Reorder Slider */
.buy-again-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.product-mini-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.product-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-mini-img img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    /* or cover depending on prefs */
    border-radius: 6px;
    margin-bottom: 10px;
}

.product-mini-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.product-mini-card .btn-add {
    display: block;
    /* Make generic 'a' tag block */
    background: var(--color-primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 10px;
    font-weight: 600;
}

.product-mini-card .btn-add:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Offers Section */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Contact Widget */
.contact-widget-box {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.contact-widget-box textarea {
    width: 100%;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 15px;
    min-height: 100px;
}

.contact-btn {
    background: #4a5568;
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.contact-btn:hover {
    background: #2d3748;
}

@media (max-width: 768px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FIX: Search Results Margins --- */
body.search .site-content,
body.search .site-main,
body.search #primary {
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure title doesn't stick either */
body.search .page-header,
body.search .woocommerce-products-header {
    margin-top: 40px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* --- MY ACCOUNT PRO DASHBOARD (TABS & MODAL) --- */

.ma-dashboard-wrapper {
    margin-top: 20px;
}

/* Tabs Navigation */
.ma-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.ma-tab-link {
    background: #f7fafc;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ma-tab-link:hover {
    background: #edf2f7;
    color: #2d3748;
}

.ma-tab-link.active {
    background: var(--color-primary);
    /* Use main theme green */
    color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ma-tab-link.contact-trigger {
    margin-left: auto;
    /* Push to right */
    background: #ebf8ff;
    color: #2b6cb0;
}

.ma-tab-link.contact-trigger:hover {
    background: #bee3f8;
}

/* Tab Content Animation */
.ma-tab-content {
    animation: fadeInTab 0.4s ease-out;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Welcome Card Refined */
.dashboard-welcome-card {
    background: linear-gradient(120deg, #d4edda 0%, #c3e6cb 100%);
    /* Pastel Green */
    padding: 40px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #155724;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.dashboard-welcome-card h2 {
    color: #155724 !important;
    font-size: 2rem;
    margin: 0;
}

.welcome-icon .dashicons {
    font-size: 60px;
    width: 60px;
    height: 60px;
    opacity: 0.2;
}

/* Modal Styling */
.ma-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    /* Dim backdrop */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s;
}

.ma-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
    border: 1px solid #f0f0f0;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: #a0aec0;
    line-height: 1;
}

.close-modal:hover {
    color: #e53e3e;
}

.ma-contact-form input,
.ma-contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0 20px 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
    font-family: inherit;
    transition: border-color 0.2s;
}

.ma-contact-form input:focus,
.ma-contact-form textarea:focus {
    border-color: var(--color-primary);
    background: #fff;
    outline: none;
}

.ma-contact-form label {
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}


/* ---------------------------------------------------------
   7. MY ACCOUNT (Classic Modern Tabs)
   Description: Connected tabs design, clean and professional.
--------------------------------------------------------- */

/* Container Layout */
.woocommerce-account .woocommerce {
    display: flex;
    flex-direction: column;
}

/* NAVIGATION (Tabs Row) */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100% !important;
    margin: 0 !important;
    border-bottom: 2px solid #e2e8f0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    /* Connected */
}

/* Tab Items */
.woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0 !important;
    flex: 1;
    /* Distribute evenly */
    text-align: center;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 15px 20px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-top: 3px solid transparent;
    /* Top highlight indicator */
    transition: all 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    background: #fff;
    color: var(--color-primary);
}

/* Active State - Connected to Content */
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: #fff;
    /* Match content bg */
    color: var(--color-primary);
    border-top-color: var(--color-primary);
    position: relative;
    font-weight: 700;
}

/* Hide Pseudo Icons if text is clear, or keep small next to text */
.woocommerce-account .woocommerce-MyAccount-navigation a::before {
    display: none;
    /* Cleaner text-only look by default, or: */
    /* content: ''; display: inline-block; margin-right: 5px; ... */
}

/* Logout Style */
.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #ef4444;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: #fef2f2;
}


/* CONTENT AREA */
.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff;
    padding: 40px;
    min-height: 500px;
    border: none;
    animation: none;
    /* Remove big entrance animation */
}

/* Headings */
.woocommerce-MyAccount-content h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Orders Table */
.woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 0;
    box-shadow: none;
}

.woocommerce-MyAccount-content table.shop_table th {
    background: #f1f5f9;
    padding: 15px;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #475569;
}

.woocommerce-MyAccount-content table.shop_table td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li {
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation a {
        border-top: none;
        border-left: 4px solid transparent;
        text-align: left;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
        border-left-color: var(--color-primary);
        border-top: none;
    }

}

/* ---------------------------------------------------------
   8. COMPONENTS & DATA (Legible Tables, Addresses, Clear Loader)
--------------------------------------------------------- */

/* LOADER (Enhanced Visibility) */
.woocommerce-MyAccount-content {
    position: relative;
    min-height: 400px;
}

.section-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.woocommerce-MyAccount-content.loading .section-loader {
    opacity: 1;
    visibility: visible;
}

/* Ring Spinner */
.spinner-ring {
    display: inline-block;
    width: 50px;
    height: 50px;
}

.spinner-ring:after {
    content: " ";
    display: block;
    width: 44px;
    height: 44px;
    margin: 3px;
    border-radius: 50%;
    border: 4px solid var(--color-primary);
    border-color: var(--color-primary) transparent var(--color-primary) transparent;
    animation: ring-spin 1.2s linear infinite;
}

@keyframes ring-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.woocommerce-MyAccount-content.loading>*:not(.section-loader) {
    opacity: 0.2;
    pointer-events: none;
    transition: opacity 0.2s;
}


/* ORDERS TABLE (Clean & Legible) */
.woocommerce-MyAccount-content table.shop_table {
    width: 100%;
    border-collapse: collapse;
    /* Standard rows */
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-MyAccount-content table.shop_table thead {
    display: table-header-group;
    background: #f8fafc;
}

.woocommerce-MyAccount-content table.shop_table th {
    padding: 18px 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
}

.woocommerce-MyAccount-content table.shop_table tbody tr {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    /* Clear separator */
    transition: background 0.2s;
}

/* No shadow on rows for cleaner look */

.woocommerce-MyAccount-content table.shop_table tbody tr:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-content table.shop_table tbody tr:hover {
    background: #f1f5f9;
    /* Highlight row */
}

.woocommerce-MyAccount-content table.shop_table td {
    padding: 20px;
    vertical-align: middle;
    font-size: 1rem;
    /* Larger text */
    color: #334155;
    /* Darker text */
}

/* Column Specifics */
.woocommerce-orders-table__cell-order-number a {
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: 0.2s;
}

.woocommerce-orders-table__cell-order-number a:hover {
    text-decoration-color: var(--color-primary);
}

.woocommerce-orders-table__cell-order-actions {
    text-align: right;
}

.woocommerce-orders-table__cell-order-actions a.button {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    border-radius: 6px;
    /* Standard button radius */
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    font-weight: 600;
    box-shadow: none;
    margin-left: 8px;
    text-transform: capitalize;
}

.woocommerce-orders-table__cell-order-actions a.button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #fff;
}

.woocommerce-orders-table__cell-order-actions a.button.view {
    /* Primary Action */
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.woocommerce-orders-table__cell-order-actions a.button.view:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* ADDRESSES (Card Grid - Fixed Layout) */
.woocommerce-Address {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s;
    /* Ensure it takes height */
    height: 100%;
    box-sizing: border-box;
}

.woocommerce-Address:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.woocommerce-Address-title h3 {
    font-size: 1.3rem !important;
    margin-bottom: 15px !important;
    border: none !important;
    color: #1e293b;
    font-weight: 700;
}

.woocommerce-Address-title .edit {
    float: right;
    font-size: 0.85rem;
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
    background: transparent;
    padding: 0;
}

/* Fix Col2-set Grid */
.col2-set.addresses {
    display: flex;
    /* Use flex instead of grid for better compatibility with WC floats */
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    margin: 0;
}

.col2-set.addresses .col-1,
.col2-set.addresses .col-2 {
    float: none;
    /* Override WC float */
    flex: 1 1 45%;
    /* Take almost half width */
    max-width: 100%;
    width: auto;
}


/* FORMS & INPUTS (Force Full Width) */
.woocommerce-MyAccount-content form .form-row {
    width: 100%;
    display: block;
    margin-bottom: 20px;
}

.woocommerce-MyAccount-content form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
}

.woocommerce-MyAccount-content input.input-text,
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
    width: 100%;
    /* Force full width inside container */
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    box-sizing: border-box;
    /* Critical for padding */
}

/* ACCOUNT DETAILS Adjustments */
.woocommerce-EditAccountForm fieldset {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.woocommerce-EditAccountForm legend {
    font-weight: 700;
    color: #1e293b;
    padding: 0 10px;
}


/* RESPONSIVE OVERRIDES */
/* ---------------------------------------------------------
   9. FINAL RESPONSIVE & LAYOUT RULES
   (Consolidated to fix overflow and width consistency)
--------------------------------------------------------- */

/* [DESKTOP] Main Container: 90% Width, Center */
.woocommerce-account .woocommerce {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    /* [DESKTOP] Inner Content: 95% of area (via padding) */
    padding-left: 2.5%;
    padding-right: 2.5%;
    box-sizing: border-box;
    overflow-x: visible;
    /* Avoid clipping unless necessary */
}

/* Ensure ALL internal box models are safe */
.woocommerce-account .woocommerce *,
.woocommerce-account .woocommerce *::before,
.woocommerce-account .woocommerce *::after {
    box-sizing: border-box;
}

/* [DESKTOP] Address Grid (Flexbox) */
.col2-set.addresses {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    margin: 0;
    padding: 0;
    justify-content: space-between;
}

.col2-set.addresses .col-1,
.col2-set.addresses .col-2 {
    float: none;
    flex: 1 1 calc(50% - 20px);
    /* Adjust for gap */
    width: auto;
    max-width: 100%;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Ensure Inner Content fills space */
.woocommerce-MyAccount-content {
    width: 100%;
    max-width: 100%;
}

/* ---------------------------------------------------------
   [MOBILE] Responsive Overrides (max-width: 768px)
--------------------------------------------------------- */
@media (max-width: 768px) {

    /* 1. Container: Full width with tiny margins */
    .woocommerce-account .woocommerce {
        width: auto;
        margin: 0 4px;
        /* Slightly more than 2px to prevent edge touch */
        padding-left: 0;
        padding-right: 0;
    }

    /* 2. Addresses: Stack vertically */
    .col2-set.addresses {
        flex-direction: column;
        gap: 20px;
    }

    .col2-set.addresses .col-1,
    .col2-set.addresses .col-2 {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    /* ---------------------------------------------------------
   11. BRUTE FORCE LAYOUT OVERRIDES (User Request)
   These rules use !important to override inline PHP styles.
--------------------------------------------------------- */

    /* 1. Force Main Container to 90% */
    body.woocommerce-account .content-wrapper {
        width: 90% !important;
        max-width: none !important;
        padding-left: 20px !important;
        /* Safe padding */
        padding-right: 20px !important;
        box-sizing: border-box !important;
    }

    /* 2. Force WooCommerce    /* Separator Lines for main dashboard sections */
    body.woocommerce-account .dashboard-welcome-card {
        border-bottom: 1px solid #e0e0e0 !important;
        padding-bottom: 40px !important;
        margin-bottom: 40px !important;
    }

    /* Remove separator from the very last section to look clean */
    body.woocommerce-account .dashboard-summary-layout> :last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    /* 14. PURCHASE HISTORY SCROLLABLE GRID */
    body.woocommerce-account .history-grid.scrollable-grid {
        max-height: 600px !important;
        /* Approx height of 2 rows */
        overflow-y: auto !important;
        padding-right: 10px !important;
        /* Space for scrollbar */
        /* Custom Scrollbar Styling */
        scrollbar-width: thin;
        scrollbar-color: #cbd5e0 #f1f5f9;
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 20px !important;
    }

    /* Webkit Scrollbar */
    body.woocommerce-account .history-grid.scrollable-grid::-webkit-scrollbar {
        width: 8px;
    }

    body.woocommerce-account .history-grid.scrollable-grid::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }

    body.woocommerce-account .history-grid.scrollable-grid::-webkit-scrollbar-thumb {
        background-color: #cbd5e0;
        border-radius: 4px;
        border: 2px solid #f1f5f9;
    }

    gap: 30px !important;
    justify-content: space-between !important;
}

body.woocommerce-account .col2-set.addresses .col-1,
body.woocommerce-account .col2-set.addresses .col-2 {
    flex: 0 0 calc(50% - 15px) !important;
    /* Force strict 50% minus gap */
    max-width: calc(50% - 15px) !important;
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* 4. Force Cards and Forms to 100% of their slots */
body.woocommerce-account .woocommerce-Address {
    width: 100% !important;
    box-sizing: border-box !important;
}

body.woocommerce-account form {
    width: 100% !important;
}

/* 5. Mobile Overrides */
@media (max-width: 768px) {
    body.woocommerce-account .content-wrapper {
        width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body.woocommerce-account .col2-set.addresses .col-1,
    body.woocommerce-account .col2-set.addresses .col-2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.woocommerce-Address {
    padding: 20px;
    /* Reduce padding on mobile */
    margin-bottom: 15px;
}

/* 4. Table: Card View (No Horizontal Scroll) */
.woocommerce-MyAccount-content table.shop_table,
.woocommerce-MyAccount-content table.shop_table tbody,
.woocommerce-MyAccount-content table.shop_table tr,
.woocommerce-MyAccount-content table.shop_table td {
    display: block;
    width: 100%;
}

.woocommerce-MyAccount-content table.shop_table thead {
    display: none;
}

.woocommerce-MyAccount-content table.shop_table tr {
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.woocommerce-MyAccount-content table.shop_table td {
    text-align: right;
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 50%;
    /* Space for label */
    min-height: 40px;
    /* Ensure clickability */
}

.woocommerce-MyAccount-content table.shop_table td::before {
    content: attr(data-title);
    position: absolute;
    left: 15px;
    top: 12px;
    /* Center with padding */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #64748b;
    text-align: left;
}

.woocommerce-MyAccount-content table.shop_table td:last-child {
    border-bottom: none;
    padding-left: 15px;
    /* Center content */
    text-align: center;
    background: #f8fafc;
}
}

/* --------------------------------------------------------------------------------------------------------------------
   12. STRICT WIDTH ENFORCEMENT (Requested Fix) - My Account Page: 90% Width - Inner Sections: 95% Width
-------------------------------------------------------------------------------------------------------------------- */
/* Helper to ensure the main wrapper allows full 90% expansion */
body.woocommerce-account .site-content,
body.woocommerce-account .content-area,
body.woocommerce-account .site-main,
body.woocommerce-account .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    /* Let specific containers handle padding */
    padding-right: 0 !important;

}

/* 1. Main Client Area Container -> 90% of Page */
body.woocommerce-account .woocommerce,
body.woocommerce-account .woocommerce-container,
body.woocommerce-account div.woocommerce {
    width: 90% !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;

}

/* 2. Inner Section Content -> 100% of the Section */
/* Target content wrapper */
/* 2. Inner Section Content -> 100% of the Section */
/* Target content wrapper */
body.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    /* Disable standard WooCommerce float */
    float: none !important;
    display: block !important;
}

/* Target specific inner elements to ensure they fill that 100% */
body.woocommerce-account .woocommerce-MyAccount-content form,
body.woocommerce-account .woocommerce-MyAccount-content address,
body.woocommerce-account .woocommerce-MyAccount-content .col2-set,
body.woocommerce-account .woocommerce-MyAccount-content table.shop_table,
body.woocommerce-account .woocommerce-MyAccount-content .form-row,
body.woocommerce-account .woocommerce-MyAccount-content .form-row-first,
body.woocommerce-account .woocommerce-MyAccount-content .form-row-last,
body.woocommerce-account .woocommerce-MyAccount-content input.input-text,
body.woocommerce-account .woocommerce-MyAccount-content input,
body.woocommerce-account .woocommerce-MyAccount-content textarea,
body.woocommerce-account .woocommerce-MyAccount-content select,
body.woocommerce-account .woocommerce-MyAccount-content label {
    width: 100% !important;
    /* Fill the 100% parent */
    max-width: 100% !important;
    box-sizing: border-box !important;
    /* Disable native columns */
    float: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    clear: both !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .form-row {
    display: block !important;
    margin-bottom: 20px !important;
}

/* Specific fix for Address Grid (Side-by-Side Flex) */
body.woocommerce-account .col2-set.addresses,
body.woocommerce-account .u-columns.woocommerce-Addresses {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    /* Force side-by-side */
    gap: 4% !important;
    /* Gap between columns */
    justify-content: space-between !important;
}

/* Remove classic clearfix content that breaks flex layout */
body.woocommerce-account .u-columns.woocommerce-Addresses.col2-set.addresses::before,
body.woocommerce-account .u-columns.woocommerce-Addresses.col2-set.addresses::after,
body.woocommerce-account .u-columns.woocommerce-Addresses::before,
body.woocommerce-account .u-columns.woocommerce-Addresses::after,
.woocommerce .col2-set::after,
.woocommerce .col2-set::before,
.woocommerce-page .col2-set::after,
.woocommerce-page .col2-set::before,
body.woocommerce-account .col2-set::after,
body.woocommerce-account .col2-set::before {
    content: none !important;
    display: none !important;
}

body.woocommerce-account .col2-set.addresses .col-1,
body.woocommerce-account .col2-set.addresses .col-2,
body.woocommerce-account .u-column1,
body.woocommerce-account .u-column2 {
    width: 48% !important;
    float: none !important;
    flex: 0 0 48% !important;
    max-width: 48% !important;
    margin: 0 !important;
}

/* On mobile, revert to stack */
@media (max-width: 768px) {

    body.woocommerce-account .col2-set.addresses,
    body.woocommerce-account .u-columns.woocommerce-Addresses {
        flex-direction: column !important;
    }

    body.woocommerce-account .col2-set.addresses .col-1,
    body.woocommerce-account .col2-set.addresses .col-2,
    body.woocommerce-account .u-column1,
    body.woocommerce-account .u-column2 {
        width: 100% !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* Mobile product grid hardening: force 1 column */
@media (max-width: 768px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    .wc-block-grid__products {
        gap: 0 !important;
    }

    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    .woocommerce .related ul.products li.product,
    .woocommerce .upsells ul.products li.product,
    .woocommerce .cross-sells ul.products li.product,
    .wc-block-grid__products .wc-block-grid__product {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Shop archive hardening: force 1 column on tablet/mobile */
@media (max-width: 1024px) {
    #main-product-grid.product-grid,
    .archive #main-product-grid.product-grid,
    .woocommerce-page #main-product-grid.product-grid,
    .archive .product-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    #main-product-grid.product-grid > *,
    .archive #main-product-grid.product-grid > *,
    .archive .product-grid > * {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex: 0 0 100% !important;
        float: none !important;
    }
}

/* Shop archive desktop: force 2 columns only on PC */
@media (min-width: 1025px) {
    #main-product-grid.product-grid,
    .archive #main-product-grid.product-grid,
    .woocommerce-page #main-product-grid.product-grid,
    .archive .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px !important;
    }

    #main-product-grid.product-grid > *,
    .archive #main-product-grid.product-grid > *,
    .archive .product-grid > * {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex: 0 0 100% !important;
        float: none !important;
    }
}

/* Legal cookie table: keep wide data inside the content area without clipping */
.aloejoy-cookie-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.aloejoy-cookie-table {
    width: 100%;
    min-width: 960px;
    table-layout: fixed;
    border-collapse: collapse;
}

.aloejoy-cookie-table th,
.aloejoy-cookie-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
}

.aloejoy-cookie-table th:nth-child(1),
.aloejoy-cookie-table td:nth-child(1) {
    width: 26%;
}

.aloejoy-cookie-table th:nth-child(2),
.aloejoy-cookie-table td:nth-child(2) {
    width: 14%;
}

.aloejoy-cookie-table th:nth-child(3),
.aloejoy-cookie-table td:nth-child(3) {
    width: 12%;
}

.aloejoy-cookie-table th:nth-child(4),
.aloejoy-cookie-table td:nth-child(4) {
    width: 10%;
}

.aloejoy-cookie-table th:nth-child(5),
.aloejoy-cookie-table td:nth-child(5) {
    width: 38%;
}

.aj-single-post-shell {
    padding-top: 60px;
    padding-bottom: 80px;
}

.aj-single-post {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    padding: 48px;
}

.aj-single-post-header {
    text-align: center;
    margin-bottom: 36px;
}

.aj-single-post-meta {
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7e6f63;
    margin-bottom: 14px;
}

.aj-single-post-title {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 16px;
}

.aj-single-post-excerpt {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.08rem;
    color: #4e4a45;
}

.aj-single-post-body {
    color: #2d3238;
    font-size: 1.05rem;
    line-height: 1.82;
}

.aj-single-post-body h2,
.aj-single-post-body h3 {
    scroll-margin-top: 100px;
}

.aj-oriental-article {
    --aj-paper: #fffaf4;
    --aj-ink: #2f3640;
    --aj-muted: #665a4e;
    --aj-line: #ddc7ae;
    --aj-saffron: #bc5b2c;
    --aj-jade: #4f7b68;
    --aj-plum: #6f5677;
    display: grid;
    gap: 28px;
}

.aj-oriental-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(223, 174, 101, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(95, 133, 110, 0.16), transparent 26%),
        linear-gradient(135deg, #fbf4e7 0%, #fffdf9 100%);
    border: 1px solid #ecdcc8;
}

.aj-oriental-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(188, 91, 44, 0.09);
    color: var(--aj-saffron);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aj-oriental-hero-copy h2 {
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1.08;
    margin-bottom: 18px;
}

.aj-oriental-hero-copy p {
    margin: 0 0 14px;
    color: var(--aj-muted);
    font-size: 1.05rem;
}

.aj-oriental-hero-media {
    margin: 0;
}

.aj-oriental-hero-media img,
.aj-oriental-inline-media img {
    width: 100%;
    height: auto;
    border-radius: 22px;
    display: block;
    box-shadow: 0 18px 38px rgba(97, 74, 49, 0.12);
}

.aj-oriental-intro-callout,
.aj-oriental-quote,
.aj-oriental-disclaimer {
    position: relative;
    padding: 24px 26px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdf9 0%, #fbf5ee 100%);
    border: 1px solid var(--aj-line);
}

.aj-oriental-intro-callout::before,
.aj-oriental-quote::before,
.aj-oriental-disclaimer::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 24px;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--aj-saffron), #e2b56f);
}

.aj-oriental-quote p,
.aj-oriental-intro-callout p,
.aj-oriental-disclaimer p {
    margin: 0;
}

.aj-oriental-grid {
    display: grid;
    gap: 18px;
}

.aj-oriental-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aj-oriental-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aj-oriental-card,
.aj-oriental-info {
    padding: 22px 20px;
    border-radius: 20px;
    background: var(--aj-paper);
    border: 1px solid #ead8c5;
    box-shadow: 0 10px 25px rgba(103, 77, 50, 0.06);
}

.aj-oriental-card h3,
.aj-oriental-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.aj-oriental-card p,
.aj-oriental-info p {
    margin: 0;
    color: var(--aj-muted);
}

.aj-oriental-section-break {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

.aj-oriental-section-break span {
    width: 160px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c99d70, transparent);
}

.aj-oriental-list {
    margin: 0;
    padding-left: 1.3rem;
}

.aj-oriental-list li {
    margin-bottom: 12px;
}

.aj-oriental-inline-media {
    margin: 10px 0 0;
}

.aj-oriental-inline-media figcaption {
    text-align: center;
    color: #736658;
    margin-top: 12px;
    font-size: 0.96rem;
}

.aj-oriental-disclaimer h3 {
    margin-bottom: 10px;
}

.aj-plant-library-article {
    --aj-plant-paper: #fffdfa;
    --aj-plant-line: #e6d8c6;
    --aj-plant-ink: #24313a;
    --aj-plant-muted: #5e665f;
    --aj-plant-moss: #2f6d57;
    --aj-plant-amber: #b97932;
    display: grid;
    gap: 26px;
}

.aj-plant-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(191, 158, 111, 0.16), transparent 30%),
        radial-gradient(circle at bottom right, rgba(64, 116, 92, 0.14), transparent 28%),
        linear-gradient(135deg, #fffaf3 0%, #f8f5ee 100%);
    border: 1px solid var(--aj-plant-line);
}

.aj-plant-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(47, 109, 87, 0.08);
    color: var(--aj-plant-moss);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aj-plant-hero-copy h2 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.1;
    margin-bottom: 16px;
}

.aj-plant-hero-copy p,
.aj-plant-library-article p {
    color: var(--aj-plant-muted);
}

.aj-plant-hero-media,
.aj-plant-inline-media {
    margin: 0;
}

.aj-plant-hero-media img,
.aj-plant-inline-media img {
    width: 100%;
    height: auto;
    border-radius: 22px;
    display: block;
    box-shadow: 0 18px 38px rgba(97, 74, 49, 0.12);
}

.aj-plant-callout,
.aj-plant-usage-note {
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdf9 0%, #faf4eb 100%);
    border: 1px solid var(--aj-plant-line);
}

.aj-plant-grid {
    display: grid;
    gap: 18px;
}

.aj-plant-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aj-plant-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.aj-plant-card {
    padding: 20px;
    border-radius: 18px;
    background: var(--aj-plant-paper);
    border: 1px solid var(--aj-plant-line);
    box-shadow: 0 10px 24px rgba(103, 77, 50, 0.05);
}

.aj-plant-card h3,
.aj-plant-usage-note h3 {
    margin-bottom: 10px;
}

.aj-plant-inline-media figcaption {
    text-align: center;
    color: #736658;
    margin-top: 12px;
    font-size: 0.96rem;
}

.aj-blog-post-taxonomy-badge {
    display: inline-flex;
    align-items: center;
    margin: 6px 0 10px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(45, 106, 79, 0.1);
    color: #205c3a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .aj-single-post {
        padding: 34px 22px;
    }

    .aj-oriental-hero,
    .aj-oriental-grid-4,
    .aj-oriental-grid-2,
    .aj-plant-hero,
    .aj-plant-grid-3,
    .aj-plant-grid-2 {
        grid-template-columns: 1fr;
    }
}

.aj-blog-landing-shell {
    padding-top: 60px;
    padding-bottom: 84px;
}

.aj-blog-landing-header {
    text-align: center;
    margin-bottom: 42px;
}

.aj-blog-landing-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.aj-blog-landing-rule {
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    margin: 0 auto 18px;
}

.aj-blog-landing-intro,
.aj-blog-landing-jump {
    max-width: 860px;
    margin: 0 auto;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.75;
}

.aj-blog-landing-jump {
    margin-top: 16px;
}

.aj-blog-track-overview,
.aj-blog-tracks-content {
    max-width: 1140px;
    margin: 0 auto;
}

.aj-blog-track-overview-wrap {
    margin-bottom: 46px;
}

.aj-blog-track-chooser-hint {
    margin: 0 0 18px;
    text-align: center;
    color: #5f6f7e;
    font-size: 1rem;
}

.aj-blog-track-chooser-prompt {
    margin: 0 auto 24px;
    max-width: 760px;
    text-align: center;
    color: #344256;
    font-size: 1.08rem;
    line-height: 1.7;
}

.aj-blog-track-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.aj-blog-track-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(45, 106, 79, 0.1);
    box-shadow: 0 20px 40px rgba(81, 64, 43, 0.08);
}

.aj-blog-track-media,
.aj-blog-track-section-banner {
    display: block;
}

.aj-blog-track-section-banner {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 20px;
    min-height: 240px;
}

.aj-blog-track-media {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.aj-blog-track-media img,
.aj-blog-track-section-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.aj-blog-track-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(9, 14, 18, 0.06) 0%, rgba(9, 14, 18, 0.74) 100%);
}

.aj-blog-track-overlay-eyebrow,
.aj-blog-track-overlay-title,
.aj-blog-post-thumb-title {
    color: #fff;
    text-shadow:
        -0.7px -0.7px 0 rgba(0, 0, 0, 0.82),
        0.7px -0.7px 0 rgba(0, 0, 0, 0.82),
        -0.7px 0.7px 0 rgba(0, 0, 0, 0.82),
        0.7px 0.7px 0 rgba(0, 0, 0, 0.82),
        0 8px 18px rgba(0, 0, 0, 0.3);
}

.aj-blog-track-overlay-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.aj-blog-track-overlay-title {
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
    max-width: 16ch;
}

.aj-blog-track-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 30px;
}

.aj-blog-track-eyebrow {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(45, 106, 79, 0.09);
    color: #2d6a4f;
    font-weight: 700;
}

.aj-blog-track-copy h2,
.aj-blog-track-section-head h2 {
    margin-bottom: 12px;
    font-size: 1.7rem;
    line-height: 1.2;
}

.aj-blog-track-copy p,
.aj-blog-track-section-head p {
    margin: 0;
    color: #5f6f7e;
    line-height: 1.7;
}

.aj-blog-track-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
}

.aj-blog-track-count {
    font-weight: 700;
    color: #2d6a4f;
}

.aj-blog-track-meta a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.aj-blog-track-action {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.aj-blog-track-section {
    display: none;
    margin-bottom: 54px;
    padding: 26px;
    border-radius: 28px;
    background: linear-gradient(180deg, #fffefa 0%, #fbf7f0 100%);
    border: 1px solid #eee3d3;
    box-shadow: 0 20px 38px rgba(94, 75, 54, 0.07);
}

.aj-blog-track-section:target {
    display: block;
    animation: ajBlogSectionReveal 240ms ease-out;
}

.aj-blog-track-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 197, 178, 0.7);
}

.aj-blog-track-section-count {
    color: #5f6f7e;
    font-weight: 700;
}

.aj-blog-track-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.aj-blog-post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.aj-blog-post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(45, 106, 79, 0.08);
    box-shadow: 0 14px 28px rgba(91, 72, 48, 0.08);
}

.aj-blog-post-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.aj-blog-post-thumb {
    position: relative;
    display: block;
    min-height: 250px;
}

.aj-blog-post-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 15, 17, 0.04) 0%, rgba(11, 15, 17, 0.78) 100%);
}

.aj-blog-post-thumb-title {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 1;
    font-size: 1.55rem;
    line-height: 1.18;
    font-weight: 800;
}

.aj-blog-post-body {
    padding: 24px;
}

.aj-blog-post-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    color: #718096;
    font-size: 0.86rem;
}

.aj-blog-post-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: #f1f6f2;
    color: #2d6a4f;
    font-weight: 700;
}

.aj-blog-post-card h3 {
    margin-bottom: 12px;
    font-size: 1.32rem;
    line-height: 1.25;
}

.aj-blog-post-card h3 a,
.aj-blog-post-link {
    color: var(--color-primary);
    text-decoration: none;
}

.aj-blog-post-card p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
}

.aj-blog-post-link {
    font-weight: 700;
}

.aj-blog-track-empty {
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px dashed #d4c5b2;
    color: #64748b;
}

.aj-blog-track-empty-global {
    max-width: 800px;
    margin: 0 auto;
}

@keyframes ajBlogSectionReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@media (max-width: 1080px) {
    .aj-blog-track-card {
        grid-template-columns: 1fr;
    }

    .aj-blog-post-grid {
        grid-template-columns: 1fr;
    }

    .aj-blog-track-section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .aj-blog-track-section-banner {
        min-height: 200px;
    }
}

@media (max-width: 820px) {
    .aj-blog-track-overview {
        grid-template-columns: 1fr;
    }

    .aj-blog-track-section {
        padding: 20px;
    }

    .aj-blog-landing-title {
        font-size: 2rem;
    }
}

.aj-cuento-reading-guide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 28px 0 30px;
}

.aj-cuento-guide-card {
    padding: 22px 22px 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fffdf8 0%, #f8f3ec 100%);
    border: 1px solid #eadbc9;
    box-shadow: 0 14px 34px rgba(92, 72, 49, 0.08);
}

.aj-cuento-guide-kicker {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(56, 119, 96, 0.09);
    color: #2f745c;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aj-cuento-guide-card h2 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #2d3238;
}

.aj-cuento-guide-card p,
.aj-para-padres-intro {
    margin: 0;
    color: #5d554d;
    line-height: 1.7;
}

@media (max-width: 860px) {
    .aj-cuento-reading-guide {
        grid-template-columns: 1fr;
    }
}
