/* ==========================================================================
   Terea Express — Responsive
   ========================================================================== */

/* ── Global mobile overflow fix ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Header / category drawer breakpoints ─────────────────────────────── */
@media (max-width: 1100px) {
    .terea-header-location,
    .terea-header-ship { display: none; }
    .terea-header-main-inner,
    .terea-header-nav-inner { padding: 10px 20px; }
    .terea-nav-menu > li > a { padding: 10px 8px; font-size: 13px; }
    .terea-cart-total { display: none; }
}

@media (max-width: 992px) {
    .terea-header-call-text,
    .terea-header-mail .terea-header-call-text { display: none; }
    .terea-header-call,
    .terea-header-mail {
        display: inline-flex;
        width: 42px;
        padding: 0;
        justify-content: center;
    }
    .terea-header-nav { display: none !important; }
    .site-header {
        position: sticky !important;
        top: 0;
        z-index: 10001;
        background: #fff;
    }
    /* Only offset sticky headers for the admin bar — never relative ones. */
    body.admin-bar .site-header { top: 32px; }
    .terea-menu-toggle--mobile { display: inline-flex !important; }
    .terea-header-actions,
    .terea-header-actions--compact { display: none !important; }
    .terea-header-cart-btn { display: inline-flex !important; }
    .terea-header-main { background: #fff !important; }
    .terea-header-main-inner {
        padding: 10px 16px !important;
        gap: 10px !important;
    }
    .terea-header-logo { flex: 1; justify-content: center; display: flex; min-width: 0; }
    .terea-header-logo .terea-logo-img { max-height: 36px !important; }
    .terea-header-search { display: none !important; }
    .terea-header-mobile-search {
        display: block !important;
        padding: 0 16px 12px;
        background: #fff;
        border-bottom: 1px solid #f1f5f9;
    }
    .terea-header-mobile-search .terea-search-form { width: 100%; }
    .terea-menu-toggle--mobile {
        width: 42px;
        height: 42px;
        background: #fff;
        border: 1.5px solid #e5e7eb;
        border-radius: 50%;
    }
    .terea-menu-toggle--mobile .terea-menu-icon span { background: #0f172a; }
    .terea-category-nav { display: none !important; }
    .terea-sidebar-toggle { display: flex !important; }
    .terea-header-right { gap: 4px; }
    .terea-header-icon-btn { width: 38px; height: 38px; }
    .terea-header-bar-inner { gap: 12px; }

    /* My Account — tablet: collapse sidebar, show horizontal nav */
    .terea-myaccount-grid {
        grid-template-columns: 1fr;
    }
    .terea-account-sidebar {
        margin-bottom: 16px;
    }
    .woocommerce-MyAccount-navigation {
        display: flex !important;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 0 !important;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .woocommerce-MyAccount-navigation::-webkit-scrollbar { display: none; }
    .terea-account-menu { display: flex; gap: 0; }
    .terea-account-menu-item a {
        padding: 11px 16px !important;
        border-left: none !important;
        border-bottom: 3px solid transparent !important;
        white-space: nowrap;
    }
    .terea-account-menu-item.is-active a,
    .terea-account-menu-item a[aria-current="page"] {
        border-bottom-color: var(--tx-accent) !important;
    }

    /* Auth / Login — tablet */
    .terea-auth-wrap--split {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 10001 !important;
    }
    body.admin-bar .site-header { top: 46px !important; }
    .terea-announcement-bar { padding: 6px 12px; }
    .terea-announcement-text { font-size: 12px; }
    .terea-header-bar { border-bottom: none; }
    .terea-header-bar-inner {
        padding: 10px 16px;
        height: 60px;
        gap: 8px;
    }
    .terea-logo-img { max-height: 34px !important; }
    .terea-header-search-bar { display: none !important; }
    .terea-mobile-search { display: block !important; }
    .terea-header-right { gap: 2px; }
    .terea-header-icon-btn { width: 36px; height: 36px; }
    .terea-sidebar-toggle { width: 36px; height: 36px; }
    .terea-drawer-backdrop { display: block; }

    /* Sidebar drawer: TRUE full-screen on mobile — no width constraints */
    .terea-sidebar-drawer {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh;
        transform: translateY(-100%);
        border-radius: 0;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        box-shadow: none;
    }
    .terea-sidebar-drawer.is-open {
        transform: translateY(0) !important;
    }

    /* Drawer header: compact mobile header */
    .terea-sidebar-head {
        padding: 12px 16px;
        background: #fff;
    }
    .terea-sidebar-brand .terea-logo-img { max-height: 30px; }
    .terea-sidebar-close {
        width: 32px;
        height: 32px;
        background: #f1f5f9;
    }

    /* Drawer tabs: full-width tabs */
    .terea-sidebar-tabs {
        background: #fff;
        border-bottom: 2px solid #f1f5f9;
    }
    .terea-sidebar-tab {
        padding: 12px 8px;
        font-size: 13px;
    }
    .terea-sidebar-tab.is-active {
        border-bottom-width: 2px;
        color: #111111;
    }

    /* Drawer body & list: cleaner mobile spacing */
    .terea-sidebar-body { padding-bottom: 32px; }
    .terea-sidebar-list { padding: 4px 0; }

    /* Drawer items: touch-friendly */
    .terea-sidebar-link {
        padding: 13px 16px;
        font-size: 15px;
        color: #1e293b;
        font-weight: 500;
    }
    .terea-sidebar-link--all {
        margin: 6px 12px;
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 15px;
    }
    .terea-sidebar-link-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .terea-sidebar-chevron { width: 36px; height: 36px; }

    /* Sub-menu: deeper indent for mobile */
    .terea-sidebar-sub {
        padding-left: 64px;
    }
    .terea-sidebar-sub li a { padding: 12px 16px 12px 0; }

    /* Empty state */
    .terea-sidebar-empty { padding: 24px 16px; font-size: 14px; color: #94a3b8; }

    /* Drawer footer actions (menu panel) */
    .terea-sidebar-footer-actions {
        display: flex;
        gap: 10px;
        padding: 16px;
        border-top: 1px solid #f1f5f9;
    }
    .terea-sidebar-footer-actions a {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 11px 14px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    .terea-sidebar-footer-actions .sidebar-action--account {
        background: #f6f6f6;
        color: #111111;
        border: 1px solid #f0f0f0;
    }
    .terea-sidebar-footer-actions .sidebar-action--account:hover {
        background: #f0f0f0;
    }
    .terea-sidebar-footer-actions .sidebar-action--wishlist {
        background: #fffbeb;
        color: var(--tx-accent-2);
        border: 1px solid #fde68a;
    }
    .terea-sidebar-footer-actions .sidebar-action--wishlist:hover {
        background: #fde8ea;
    }

    /* Drawer foot: phone contact */
    .terea-sidebar-foot {
        padding: 12px 16px;
        background: #f8fafc;
    }
    .terea-sidebar-contact {
        font-size: 12px;
        padding: 8px 10px;
    }

    /* Quick actions: larger touch targets on mobile */
    .terea-sidebar-quick-actions {
        padding: 12px 16px;
    }
    .terea-sidebar-quick-btn {
        padding: 10px 14px;
        font-size: 12px;
        border-radius: 10px;
    }

    /* Layout 3: hide mega menu and nav on mobile, standard hamburger+logo+icons */
    .terea-mega-menu { display: none !important; }
    .terea-layout-3 .terea-category-trigger { display: none !important; }
    .terea-layout-3 .terea-header-nav { display: none !important; }
    .terea-layout-3 .terea-sidebar-toggle { display: flex !important; }
    .terea-layout-3 .terea-header-left { flex-shrink: 0; }
    .terea-layout-3 .terea-header-logo { padding: 0 10px !important; border: none !important; }

    /* Layout 2: hide nav bar, show logo normally */
    .terea-layout-2 .terea-header-logo { position: static !important; transform: none !important; }
    .terea-header-nav-bar { display: none !important; }
}

/* Prevent iOS from auto-zooming form fields by forcing 16px inputs on mobile */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    input[type="password"],
    input[type="url"],
    select,
    textarea,
    .input-text,
    .form-row input.input-text,
    .terea-search-form-input,
    .terea-price-range input,
    .quantity input.qty,
    .cart-collaterals input,
    .checkout input.input-text,
    .woocommerce-form-row input.input-text {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
}

/* Fix any element overflowing on mobile */
@media (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
    }

    /* Keep overflow off #page / .site so the sticky header can pin to the viewport. */
    .site,
    #page {
        overflow: visible !important;
        max-width: 100% !important;
    }
    #content,
    .site-content,
    .front-page-main {
        overflow-x: clip;
        max-width: 100%;
    }

    /* Constrain theme layouts on mobile — do not clip Elementor */
    .terea-shop-layout,
    .terea-products-grid,
    .footer-grid {
        max-width: 100% !important;
    }

    #content,
    .site-content,
    .front-page-main {
        overflow-x: clip;
        max-width: 100%;
    }

    /* Elementor: allow stretched sections / horizontal widgets */
    body:not(.elementor-editor-active) .elementor-section.elementor-section-boxed > .elementor-container {
        max-width: 100%;
    }
}

/* Large screens (max 1200px) */
@media (max-width: 1200px) {
    .terea-product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets (max 992px) */
@media (max-width: 992px) {
    .footer-grid,
    .footer-grid--2,
    .footer-grid--3,
    .footer-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .footer-grid--1 { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .terea-testimonials { grid-template-columns: 1fr; }
    .terea-product-grid { grid-template-columns: repeat(3, 1fr); }
    .terea-cols-4 { grid-template-columns: repeat(3, 1fr); }
    .terea-cols-5, .terea-cols-6 { grid-template-columns: repeat(3, 1fr); }
    .terea-single-product-grid { grid-template-columns: 1fr; }
    .terea-cart-grid, .terea-checkout-grid, .terea-myaccount-grid { grid-template-columns: 1fr; }
    .terea-shop-grid { grid-template-columns: 200px 1fr; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .has-sidebar .site-main {
        grid-template-columns: 1fr;
    }
    .post-card-image { aspect-ratio: 16 / 10; }
}

/* Mobile landscape & smaller (max 768px) */
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    /* ── Hamburger button ───────────────────────────────────── */
    .mobile-menu-toggle {
        display: inline-flex !important;
        background: transparent;
        border: none;
        padding: 8px;
        cursor: pointer;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        border-radius: 8px;
        transition: background 0.2s ease;
        position: relative;
        z-index: 100;
    }
    .mobile-menu-toggle:hover { background: rgba(255, 255, 255, 0.12); }
    .mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 2.5px;
        background: #ffffff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* ── Mobile nav overlay ───────────────────────────────────── */
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, var(--tx-primary) 0%, var(--tx-primary-3) 100%);
        padding: 0;
        transform: translateX(105%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        overflow-y: auto;
        overscroll-behavior: contain;
        display: flex;
        flex-direction: column;
    }

    /* Mobile nav backdrop */
    .mobile-nav-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .mobile-nav-backdrop.is-open {
        display: block;
        opacity: 1;
    }
    body.mobile-nav-open {
        overflow: hidden;
    }
    body.mobile-nav-open .mobile-nav-backdrop {
        display: block;
        opacity: 1;
    }

    /* Slide in when open */
    .main-navigation.is-open {
        transform: translateX(0);
    }

    /* Mobile nav header bar */
    .main-navigation::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.28) 0%, transparent 45%),
            radial-gradient(circle at 85% 80%, rgba(200, 16, 46, 0.15) 0%, transparent 45%);
        pointer-events: none;
    }

    .main-navigation .menu {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 80px 0 32px;
        margin: 0;
        list-style: none;
        position: relative;
        z-index: 1;
    }

    .main-navigation .menu-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .main-navigation .menu-item:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-navigation .menu-item > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 24px;
        font-size: 16px;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.95);
        text-decoration: none;
        transition: background 0.15s ease, color 0.15s ease;
        letter-spacing: 0.01em;
    }
    .main-navigation .menu-item > a::after { display: none; }
    .main-navigation .menu-item > a:hover,
    .main-navigation .menu-item.current-menu-item > a {
        background: rgba(255, 255, 255, 0.08);
        color: var(--tx-accent);
    }

    /* Dropdown sub-menus — expand inline */
    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 8px 0;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 0;
        margin: 0;
        display: none;
    }
    .main-navigation .menu-item:hover > .sub-menu { display: none; }
    .main-navigation .menu-item.menu-active > .sub-menu { display: block; }

    .main-navigation .sub-menu .menu-item a {
        padding: 12px 24px 12px 36px;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.78);
        font-weight: 500;
    }
    .main-navigation .sub-menu .menu-item a:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.06);
    }

    /* Mobile nav header bar (logo + close button) */
    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: sticky;
        top: 0;
        background: linear-gradient(90deg, var(--tx-primary) 0%, var(--tx-primary-2) 100%);
        z-index: 2;
    }
    .mobile-nav-brand img {
        max-height: 36px;
        width: auto;
    }
    .mobile-nav-close {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s ease;
    }
    .mobile-nav-close:hover { background: rgba(255, 255, 255, 0.18); }

    /* Chevron for items with children */
    .main-navigation .menu-item-has-children > a .nav-arrow {
        display: inline-flex;
        width: 20px;
        height: 20px;
        align-items: center;
        justify-content: center;
        transition: transform 0.25s ease;
    }
    .main-navigation .menu-item-has-children > a .nav-arrow svg {
        width: 14px;
        height: 14px;
        stroke: rgba(255, 255, 255, 0.5);
    }
    .main-navigation .menu-item.menu-active > a .nav-arrow {
        transform: rotate(180deg);
    }

    /* Mobile nav footer actions */
    .main-navigation::after {
        content: "";
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px 24px;
        margin-top: auto;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        z-index: 1;
    }
    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0 24px 24px;
    }
    .mobile-nav-actions a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px 16px;
        border-radius: var(--tx-radius-sm);
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    .mobile-nav-actions .mobile-nav-cart {
        background: var(--tx-accent);
        color: #0f172a;
        justify-content: center;
    }
    .mobile-nav-actions .mobile-nav-cart:hover {
        background: var(--tx-accent-2);
        color: #fff;
    }
    .mobile-nav-actions .mobile-nav-phone {
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.18);
        justify-content: center;
    }
    .mobile-nav-actions .mobile-nav-phone:hover {
        background: rgba(255, 255, 255, 0.16);
    }

    /* Header action icons — show search on mobile */
    .header-search-toggle { display: inline-flex !important; }
    .header-phone-text { display: none; }
    .header-phone { width: 40px; padding: 0; justify-content: center; }
    .header-inner {
        min-height: 60px;
        padding: 8px 16px;
        gap: 8px;
    }
    .header-search-overlay.is-open { padding: 14px 16px; }

    /* Tighter, balanced mobile header */
    .site-header { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 16px -8px rgba(15, 23, 42, 0.45); }
    .site-branding img,
    .site-branding .site-logo,
    .site-branding svg {
        max-height: 36px;
        height: 36px;
        width: auto;
    }
    .header-actions { gap: 6px; }
    .header-action {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }
    .header-action--cart { width: 44px; height: 44px; }
    .header-action--search { width: 44px; height: 44px; }
    .header-action--phone { width: 40px; height: 40px; }
    .cart-count {
        font-size: 9px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        top: -2px;
        right: -3px;
    }
    .mobile-menu-toggle { width: 44px; height: 44px; }
    .mobile-menu-toggle span { width: 22px; }
    .header-utility-left,
    .header-utility-right { display: none; }
    .header-search-overlay { padding: 14px 16px; }
    .header-search-overlay-inner { gap: 10px; }
    .header-search-overlay-label { font-size: 13px; }
    .terea-search-form-inner { padding: 6px; gap: 6px; }
    .terea-search-form-input { font-size: 16px !important; padding: 10px 12px; min-width: 0; }
    .terea-search-form-submit { padding: 10px 14px; font-size: 14px; }

    /* ── Hero mobile ──────────────────────────────────────── */
    .tx-hero {
        padding: 60px 0 70px;
    }
    .tx-hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }
    .tx-hero-perks {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .tx-hero-perks li {
        flex-direction: row;
        padding: 12px 14px;
    }
    .tx-hero-actions {
        flex-direction: column !important;
        gap: 12px;
    }
    .tx-hero-actions .tx-btn {
        width: 100% !important;
        justify-content: center;
    }

    .tx-section,
    .terea-section { padding: 60px 0; }

    /* ── Newsletter / CTA ──────────────────────────────────────── */
    .tx-cta { padding: 60px 0; }
    .tx-cta-card { padding: 40px 32px; }
    .tx-cta-inner { gap: 32px; }

    /* ── Products ──────────────────────────────────────────── */
    .terea-product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .terea-cols-3, .terea-cols-4, .terea-cols-5, .terea-cols-6 { grid-template-columns: repeat(2, 1fr); }
    .terea-category-tiles { grid-template-columns: repeat(2, 1fr); }
    .posts-grid { grid-template-columns: 1fr; }
    .terea-featured-banner { padding: 40px 16px; }
    .archive-header { padding: 20px 0; }
    .terea-shop-grid { grid-template-columns: 1fr; }
    .terea-archive-banner-title { font-size: 1.4rem; }

    /* ── Footer tablet ──────────────────────────────────────────── */
    .site-footer { padding: 40px 0 0; }
    .footer-col h3.footer-title { font-size: 13px; }
    .footer-col a { font-size: 16px; }
    .footer-bottom { padding: 16px 0; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .footer-legal { text-align: left; font-size: 14px; }

    /* ── Scroll top ────────────────────────────────────────── */
    .terea-scroll-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }

    /* ── Single Product Page ─────────────────────────────── */
    .single-product .site-header {
        position: sticky !important;
        top: 0;
    }
    .single-product #content {
        padding-top: 0 !important;
    }
    .terea-product-container {
        padding: 16px 16px 60px !important;
    }
    .terea-product-layout {
        gap: 24px !important;
    }
    .terea-gallery-thumbnails {
        gap: 8px;
    }
    .terea-thumb {
        width: 64px;
        height: 64px;
    }
    .terea-product-title {
        font-size: 1.5rem !important;
    }
    .terea-add-to-cart-form {
        padding: 20px !important;
    }
    .terea-tabs-nav {
        gap: 0;
    }
    .terea-tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* ==========================================================================
       SHOP & CATEGORY PAGE — Mobile (< 768px)
       Applied last so it overrides all woocommerce.css base styles.
       ========================================================================== */

    /* ── Shop hero ── */
    .terea-shop-hero {
        padding: 28px 16px 22px !important;
    }
    .terea-shop-hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
    }
    .terea-shop-hero-desc {
        font-size: 13.5px !important;
        line-height: 1.55 !important;
    }
    .terea-shop-hero-perks {
        gap: 10px !important;
        padding-top: 16px !important;
        flex-wrap: wrap !important;
    }
    .terea-perk-item { font-size: 12px !important; color: rgba(255,255,255,0.85) !important; }

    /* ── Shop container ── */
    .terea-shop-container {
        padding: 0 14px 56px !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* ── Breadcrumb ── */
    .woocommerce-breadcrumb,
    .terea-woocommerce-breadcrumb {
        font-size: 12px !important;
        gap: 4px !important;
        padding: 10px 0 6px !important;
        color: #94a3b8 !important;
    }
    .woocommerce-breadcrumb a,
    .terea-woocommerce-breadcrumb a { font-size: 12px !important; color: #111111 !important; }
    .woocommerce-breadcrumb a:hover { color: #c8102e !important; }

    /* ── Category chips — horizontal swipe row ── */
    .terea-category-chips-wrap {
        margin: 0 -14px !important;
        width: calc(100% + 28px) !important;
        max-width: none !important;
    }
    .terea-category-chips {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 8px !important;
        padding: 12px 14px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .terea-category-chips::-webkit-scrollbar { display: none !important; }
    .terea-category-chips .terea-chip {
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 7px 14px !important;
        background: #fff !important;
        border: 1.5px solid #e2e8f0 !important;
        border-radius: 999px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #334155 !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }
    .terea-category-chips .terea-chip:hover,
    .terea-category-chips .terea-chip.active {
        background: var(--tx-primary, #111111) !important;
        border-color: transparent !important;
        color: #fff !important;
        box-shadow: 0 4px 12px color-mix(in srgb, var(--tx-primary, #111111) 30%, transparent) !important;
    }
    .terea-chip-count {
        font-size: 10px !important;
        padding: 1px 6px !important;
        background: rgba(0,0,0,0.08) !important;
        border-radius: 999px !important;
        color: inherit !important;
        font-weight: 700 !important;
    }
    .terea-chip.active .terea-chip-count {
        background: rgba(255,255,255,0.25) !important;
        color: #fff !important;
    }

    /* ── Shop layout — stack sidebar above content ── */
    .terea-shop-layout,
    .terea-shop-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .terea-shop-sidebar { order: -1; }

    /* ── Products toolbar — compact pill-style ── */
    .terea-products-toolbar {
        padding: 12px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
        margin-bottom: 14px !important;
    }
    .terea-filter-toggle {
        display: inline-flex !important;
        padding: 8px 14px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        border-radius: 999px !important;
        border: 1.5px solid #e2e8f0 !important;
        background: #fff !important;
        color: #334155 !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
    }
    .terea-filter-toggle:hover {
        border-color: #e11d2e !important;
        color: #111111 !important;
        background: rgba(17,17,17,0.04) !important;
    }
    .terea-filter-toggle svg { width: 14px !important; height: 14px !important; }
    .terea-toolbar-info {
        font-size: 12px !important;
        color: #94a3b8 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .terea-toolbar-actions { flex-shrink: 0 !important; }
    .terea-toolbar-actions .woocommerce-ordering { display: none !important; }

    /* ── Product grid — shop/category archive: single column on phones ── */
    .wh-archive-main ul.products,
    .wh-archive-main .terea-products-list,
    .i3d-archive ul.products,
    .archive-product-main ul.products,
    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        width: 100% !important;
        align-items: stretch !important;
    }

    /* Other product loops — 2 columns where space allows */
    .terea-products-grid ul.products,
    .terea-products-grid ul.products.columns-2,
    .terea-products-grid ul.products.columns-3,
    .terea-products-grid ul.products.columns-4,
    .terea-products-area ul.products,
    .woocommerce ul.products,
    ul.products,
    .terea-shop-content ul.products,
    .terea-wc-container ul.products,
    .terea-product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px 12px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        width: 100% !important;
        align-items: stretch !important;
    }

    /* Products wrapper — transparent to grid so the ul is the grid container */
    .terea-products-grid,
    .terea-products-area {
        display: contents !important;
        grid-template-columns: none !important;
    }

    /* Full-width article cards */
    ul.products > article.terea-product-card,
    ul.products > article {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }

    /* Fallback for li-wrapped products */
    ul.products > li,
    ul.products > li.product {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        clear: none !important;
    }

    /* ── Product card — square media on mobile ── */
    ul.products > li,
    ul.products > li.product,
    ul.products > article.terea-product-card,
    .terea-product-card,
    .terea-product-card-wrap {
        border-radius: 16px !important;
        border: 1px solid var(--tx-border, #e8eaed) !important;
        overflow: hidden !important;
        box-shadow: var(--tx-shadow-sm, 0 1px 4px rgba(15,23,42,0.06)) !important;
        min-width: 0 !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        margin: 0 !important;
        height: 100% !important;
    }
    ul.products > li:hover,
    .terea-product-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: var(--tx-shadow-lg, 0 8px 20px rgba(17,17,17,0.12)) !important;
        border-color: color-mix(in srgb, var(--tx-primary) 35%, var(--tx-border, #e8eaed)) !important;
    }

    /* Keep media square on mobile — full product visible */
    ul.products .terea-product-card-media,
    .terea-products-grid .terea-product-card-media {
        aspect-ratio: 1 / 1 !important;
        width: 100% !important;
        height: auto !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 14px !important;
        box-sizing: border-box !important;
        background: #f4f4f2 !important;
        border-radius: 16px 16px 0 0 !important;
    }
    ul.products .terea-product-card-media img,
    ul.products > li .terea-product-card-media img,
    ul.products li.product .terea-product-card-media img {
        aspect-ratio: auto !important;
        height: 100% !important;
        width: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        border-radius: 12px !important;
        display: block !important;
        margin: 0 !important;
        float: none !important;
        padding: 16px !important;
        background: #fff !important;
        box-sizing: border-box !important;
        transform: none !important;
    }

    /* Shop archive: show full chair, never crop */
    .wh-archive-main--cards ul.products .terea-product-card-media img,
    .wh-archive-main--cards ul.products > li .terea-product-card-media img,
    .i3d-archive ul.products .terea-product-card-media img,
    .terea-product-card .terea-product-card-media img {
        object-fit: contain !important;
        padding: 16px !important;
        background: #fff !important;
        border-radius: 12px !important;
        transform: none !important;
    }

    .wh-archive-main--cards ul.products .terea-product-card-media,
    .i3d-archive ul.products .terea-product-card-media,
    .terea-product-card .terea-product-card-media {
        padding: 14px !important;
        border-radius: 16px 16px 0 0 !important;
        background: #f4f4f2 !important;
    }

    /* Card body */
    ul.products .terea-product-card-body {
        padding: 12px 12px 14px !important;
        gap: 6px !important;
    }

    /* Category chip */
    ul.products .terea-product-card-category {
        font-size: 10px !important;
        font-weight: 800 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        padding: 3px 8px !important;
        border-radius: 999px !important;
        background: var(--tx-primary-50, rgba(17,17,17,0.08)) !important;
        color: var(--tx-primary, #111111) !important;
        margin-bottom: 0 !important;
    }

    /* Product title */
    ul.products .terea-product-card-title {
        font-size: max(1.0625rem, 17px) !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin: 0 !important;
        color: #0f172a !important;
        font-family: var(--tx-font-heading) !important;
        min-height: 0 !important;
    }
    ul.products .terea-product-card-title a {
        color: inherit !important;
        font-size: inherit !important;
    }

    ul.products .terea-product-card-excerpt {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        color: #64748b !important;
    }

    /* Price */
    ul.products .terea-product-card-price {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        margin-top: auto !important;
        width: 100% !important;
    }
    ul.products .terea-product-card-price-row {
        display: flex !important;
        align-items: baseline !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }
    ul.products .terea-product-card-price .price,
    ul.products .terea-product-card-price .price-sale,
    ul.products .price-sale .price,
    ul.products .price-sale {
        font-size: 14px !important;
        font-weight: 800 !important;
        color: var(--tx-primary, #111111) !important;
        line-height: 1.25 !important;
    }
    ul.products .terea-product-card-price del,
    ul.products .terea-product-card-price del .amount {
        font-size: 11px !important;
        color: #94a3b8 !important;
        font-weight: 500 !important;
    }
    ul.products .price-save {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        max-width: 100% !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        padding: 4px 8px !important;
        background: #f0fdf4 !important;
        color: #15803d !important;
        border: 1px solid #bbf7d0 !important;
        border-radius: 999px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    ul.products .price-save-label {
        font-size: 9px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.03em !important;
        flex-shrink: 0 !important;
    }
    ul.products .price-save-amount,
    ul.products .price-save-amount .amount,
    ul.products .price-save-amount .woocommerce-Price-amount {
        font-size: 10px !important;
        font-weight: 800 !important;
        color: inherit !important;
        white-space: nowrap !important;
    }

    /* Rating */
    ul.products .terea-product-rating { gap: 3px !important; font-size: 11px !important; }
    ul.products .terea-star { width: 11px !important; height: 11px !important; }

    /* Add to cart button */
    ul.products .terea-quick-add-btn {
        width: 100% !important;
        padding: 11px 12px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
        gap: 6px !important;
        background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%) !important;
        color: #fff !important;
        border: none !important;
        box-shadow: 0 3px 10px rgba(17,17,17,0.3) !important;
        margin-top: 4px !important;
    }
    ul.products .terea-quick-add-btn:hover {
        background: linear-gradient(135deg, #e11d2e 0%, var(--tx-accent) 100%) !important;
        box-shadow: 0 4px 14px rgba(20,184,166,0.4) !important;
    }
    ul.products .terea-quick-add-btn svg {
        width: 15px !important;
        height: 15px !important;
        flex-shrink: 0 !important;
    }

    /* Sale / OOS badges — keep compact pill, never stretch */
    ul.products .terea-product-badge {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        top: 8px !important;
        left: 8px !important;
        right: auto !important;
        width: auto !important;
        max-width: calc(100% - 16px) !important;
        height: auto !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        padding: 5px 8px !important;
        border-radius: 999px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        z-index: 3 !important;
        box-sizing: border-box !important;
        pointer-events: none !important;
    }
    ul.products .terea-product-badge--sale {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
        color: #fff !important;
        box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35) !important;
    }
    ul.products .terea-product-badge--oos {
        background: rgba(15,23,42,0.78) !important;
        color: #fff !important;
        backdrop-filter: blur(4px);
    }

    /* No-products state */
    .terea-no-products { padding: 48px 16px !important; text-align: center !important; }
    .terea-no-products svg { width: 48px !important; height: 48px !important; margin-bottom: 16px !important; }
    .terea-no-products h3 { font-size: 16px !important; margin-bottom: 8px !important; }
    .terea-no-products p { font-size: 13px !important; color: #64748b !important; }

    /* ── Category tiles grid ── */
    .terea-category-grid,
    .terea-category-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .terea-category-card,
    .terea-category-tile { border-radius: 14px !important; }
    .terea-category-card-body { padding: 12px !important; }
    .terea-category-card-title { font-size: 13px !important; }

    /* ── Mobile filter sidebar ── */
    .terea-filters-sidebar {
        position: fixed !important;
        top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
        width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        z-index: 999 !important;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: 56px 16px 28px !important;
    }
    .terea-filters-sidebar.is-open { transform: translateY(0) !important; }
    .terea-filters-header { padding: 16px !important; }
    .terea-filter-section { padding: 0 16px !important; }
    .terea-filters-close { display: inline-flex !important; }
    .terea-filters-backdrop { display: block; opacity: 1; }
    .terea-filters-backdrop.is-open { display: block !important; opacity: 1 !important; }
    body.terea-filters-open { overflow: hidden; }

    /* ==========================================================================
       CART PAGE — Mobile
       ========================================================================== */
    .terea-cart-grid { grid-template-columns: 1fr !important; }
    .terea-cart-form,
    .terea-cart-totals { padding: 0 !important; background: transparent !important; border: none !important; box-shadow: none !important; }
    .terea-cart-totals { position: static !important; }

    .woocommerce-cart-form__contents {
        display: block !important;
        width: 100% !important;
    }
    .woocommerce-cart-form__contents thead,
    .woocommerce-cart-form__contents > colgroup { display: none !important; }
    .woocommerce-cart-form__contents tbody { display: flex; flex-direction: column; gap: 12px; }
    .woocommerce-cart-form__contents tbody tr {
        display: flex !important;
        flex-wrap: wrap;
        align-items: flex-start;
        background: #fff;
        border: 1px solid var(--tx-border);
        border-radius: 14px;
        padding: 14px;
        position: relative;
        gap: 0;
    }
    .woocommerce-cart-form__contents tbody td {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 4px 0 !important;
        border-bottom: none !important;
        font-size: 13px;
        vertical-align: middle;
    }
    .woocommerce-cart-form__contents tbody td::before {
        content: attr(data-title) ": ";
        font-size: 11px;
        font-weight: 700;
        color: var(--tx-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        flex-shrink: 0;
        margin-right: 8px;
        min-width: 65px;
    }
    .woocommerce-cart-form__contents td.product-thumbnail {
        position: absolute;
        top: 14px; left: 14px;
        width: 80px !important;
        padding: 0 !important;
    }
    .woocommerce-cart-form__contents td.product-thumbnail::before { display: none; }
    .woocommerce-cart-form__contents td.product-thumbnail a {
        display: block; width: 72px; height: 72px;
        border-radius: 10px; overflow: hidden;
        background: var(--tx-bg-soft); border: 1px solid var(--tx-border);
    }
    .woocommerce-cart-form__contents td.product-thumbnail img {
        width: 72px !important; height: 72px !important;
        object-fit: cover !important;
        padding: 0 !important; border-radius: 10px;
    }
    .woocommerce-cart-form__contents td.product-name {
        flex: 1;
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0 0 0 84px !important;
        min-height: 72px;
    }
    .woocommerce-cart-form__contents td.product-name::before { display: none; }
    .woocommerce-cart-form__contents td.product-name a { font-size: 14px !important; font-weight: 700; color: var(--tx-text); line-height: 1.3; }
    .woocommerce-cart-form__contents td.product-remove {
        position: absolute; top: 10px; right: 10px;
        width: auto !important; padding: 0 !important;
    }
    .woocommerce-cart-form__contents td.product-remove::before { display: none; }
    .product-remove .remove {
        width: 26px !important; height: 26px !important; font-size: 16px !important;
        display: flex !important; align-items: center !important; justify-content: center !important;
        background: rgba(220,38,38,0.08) !important; border-radius: 50% !important;
        color: var(--tx-danger) !important;
    }
    .woocommerce-cart-form__contents td.product-price { font-weight: 700; color: var(--tx-text); font-size: 14px; flex: 1; }
    .woocommerce-cart-form__contents td.product-quantity { flex: 1; justify-content: flex-start; }
    .woocommerce-cart-form__contents td.product-subtotal { font-weight: 800; color: #111111; font-size: 15px; }
    .woocommerce-cart-form__contents td.product-subtotal::before { display: none; }
    .woocommerce-cart-form__contents tr:last-child { background: transparent !important; border: none !important; padding: 0 !important; }
    .woocommerce-cart-form__contents .actions { background: transparent !important; padding: 0 !important; border: none !important; }
    .woocommerce-cart-form__contents .actions td[colspan="6"] { display: block !important; padding: 0 !important; }
    .terea-cart-actions { flex-direction: column !important; align-items: stretch !important; gap: 10px !important; }
    .terea-cart-actions-right { flex-direction: column !important; margin-left: 0 !important; gap: 8px !important; }
    .coupon { display: flex !important; flex-wrap: wrap; gap: 8px; }
    .coupon #coupon_code { flex: 1 !important; min-width: 0 !important; }
    .woocommerce-cart-form__contents .actions button[name="update_cart"] { width: 100% !important; }
    .terea-cart-hero { padding: 18px 14px !important; margin-bottom: 16px !important; }
    .terea-cart-hero h1 { font-size: 18px !important; }

    /* ==========================================================================
       CHECKOUT PAGE — Mobile
       ========================================================================== */
    .terea-checkout-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .terea-checkout-sidebar { order: 0; position: static !important; }
    .terea-checkout-hero { padding: 16px 14px !important; }
    .terea-step-indicator { padding: 10px !important; gap: 8px !important; flex-wrap: wrap !important; }
    .terea-step-indicator li { font-size: 11px !important; padding: 6px 10px !important; }
    .terea-checkout-panel { padding: 16px !important; }
    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td { font-size: 12px !important; padding: 8px 0 !important; }
    .woocommerce-checkout-review-order-table .order-total td { font-size: 16px !important; }
    .woocommerce-checkout-review-order-table .terea-shipping-totals td,
    .woocommerce-checkout-review-order-table tr.shipping td {
        font-size: 14px !important;
        padding: 12px 0 8px !important;
        text-align: left !important;
    }
    .woocommerce ul#shipping_method.terea-shipping-methods,
    ul#shipping_method.terea-shipping-methods {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .woocommerce ul#shipping_method.terea-shipping-methods li {
        padding: 0 !important;
        text-indent: 0 !important;
        margin: 0 !important;
    }
    .woocommerce ul#shipping_method.terea-shipping-methods label {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 12px 10px 12px 12px !important;
    }
    .woocommerce ul#shipping_method.terea-shipping-methods .terea-shipping-radio {
        display: block !important;
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        flex: 0 0 20px !important;
    }
    .woocommerce ul#shipping_method.terea-shipping-methods .terea-shipping-price {
        min-width: 0 !important;
        max-width: none !important;
        padding: 6px 8px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
    .terea-shipping-recap {
        font-size: 12px;
        padding: 8px 0 0;
    }

    /* ==========================================================================
       MY ACCOUNT PAGE — Mobile
       ========================================================================== */
    .terea-myaccount-grid { grid-template-columns: 1fr !important; }
    .terea-account-sidebar { margin-bottom: 16px; }
    .woocommerce-MyAccount-navigation { display: flex !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 !important; }
    .woocommerce-MyAccount-navigation::-webkit-scrollbar { display: none; }
    .woocommerce-MyAccount-content { padding: 16px !important; }
    .woocommerce-orders-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .woocommerce-orders-table table { min-width: 500px; font-size: 12px; }
    .woocommerce-orders-table th,
    .woocommerce-orders-table td { padding: 10px 8px !important; }

    /* Auth / Login / Register page — Mobile */
    .terea-auth-wrap { grid-template-columns: 1fr !important; }
    .terea-auth-wrap--split { grid-template-columns: 1fr !important; }
    .terea-auth-card form { padding: 20px 16px !important; }
    .terea-form-grid--2 { grid-template-columns: 1fr !important; }

    /* ==========================================================================
       CART DRAWER — Mobile
       ========================================================================== */
    .terea-drawer { width: 100vw !important; max-width: 100vw !important; }
    .terea-drawer-body { padding: 16px !important; touch-action: pan-y; }
    .terea-drawer-header { padding: 16px !important; }
    .terea-drawer-footer { padding: 16px !important; }
    .terea-drawer-actions { flex-direction: column !important; gap: 8px !important; }
    .terea-drawer-btn--cart,
    .terea-drawer-btn--checkout {
        width: 100% !important;
        justify-content: center !important;
        padding: 13px 20px !important;
        border-radius: 10px !important;
    }

    /* ==========================================================================
       SINGLE PRODUCT PAGE — Mobile
       ========================================================================== */
    .terea-single-product-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
    .terea-single-product-summary .cart { flex-direction: column !important; align-items: stretch !important; }
    .terea-single-product-summary .quantity { width: 100%; }
    .terea-single-product-summary .single_add_to_cart_button { width: 100%; }
    .woocommerce-tabs { margin-top: 24px !important; }
    .terea-product-tabs .woocommerce-tabs ul.tabs,
    body:not(.elementor-page) .woocommerce-tabs ul.tabs { padding: 6px !important; gap: 4px !important; }
    .terea-product-tabs .woocommerce-tabs ul.tabs li a,
    body:not(.elementor-page) .woocommerce-tabs ul.tabs li a { padding: 10px 12px !important; font-size: 13px !important; }

    /* ==========================================================================
       CATEGORY BAR — Hide on mobile (shown in sidebar drawer instead)
       ========================================================================== */
    .terea-category-bar { display: none !important; }
    .terea-mega-menu { display: none !important; }

    /* ==========================================================================
       PAGE / ARCHIVE HEADERS & FOOTER — Mobile
       ========================================================================== */
    .terea-page-header { padding: 32px 0 28px !important; margin-bottom: 24px !important; }
    .terea-archive-banner { padding: 24px 18px !important; border-radius: 0 !important; }
    .terea-archive-banner-title { font-size: 22px !important; }
    .terea-archive-banner-subtitle { font-size: 14px !important; }
    .terea-archive-banner-meta { flex-wrap: wrap !important; gap: 6px !important; }
    .terea-archive-banner-chip { font-size: 11px !important; padding: 4px 10px !important; }
    .site-footer { padding: 32px 0 0 !important; margin-top: 0 !important; }
    .footer-top { padding: 32px 0 24px !important; }
    .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
    .footer-newsletter-form { flex-direction: column !important; }
    .footer-newsletter-form input { width: 100% !important; }
    .footer-bottom { padding: 14px 0 !important; }
    .footer-bottom-inner { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
    .footer-bottom-widgets .footer-bottom-widget,
    .footer-bottom-widgets .widget { flex-direction: column; align-items: flex-start; }
    .footer-legal { text-align: left !important; }
    .footer-payment { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; }
    .footer-payment-label { font-size: 12px !important; }
    .footer-payment-icons { gap: 6px !important; }
    .footer-payment-icons img { height: 26px !important; }

    /* ==========================================================================
       BLOG / POSTS — Mobile
       ========================================================================== */
    .posts-grid { grid-template-columns: 1fr !important; }
    .post-card-body { padding: 14px !important; }
    .post-card-title { font-size: 16px !important; }
    .post-navigation { grid-template-columns: 1fr !important; }
    .comment-list { padding-left: 0 !important; }
    .comment-body { padding: 14px !important; }
    .comment-form input,
    .comment-form textarea { padding: 10px 12px !important; font-size: 16px !important; }

    /* ==========================================================================
       NEWSLETTER / CTA — Mobile
       ========================================================================== */
    .tx-cta { padding: 48px 0; }
    .tx-cta-card { padding: 32px 20px; border-radius: 18px; }
    .tx-cta-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .tx-cta-left { text-align: center; }
    .tx-cta-eyebrow { justify-content: center; }
    .tx-cta-title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .tx-cta-subtitle { font-size: 14px; }
    .tx-cta-form { max-width: 100%; }
    .tx-cta-form-group {
        flex-wrap: wrap;
        border-radius: 12px;
        padding: 10px;
    }
    .tx-cta-form-icon { display: none; }
    .tx-cta-form input[type="email"],
    .tx-cta-form input[type="text"] {
        width: 100%;
        padding: 10px 12px;
        text-align: center;
    }
    .tx-cta-submit {
        width: 100%;
        justify-content: center;
        border-radius: 9px;
        padding: 12px;
    }
    .tx-cta-note { justify-content: center; text-align: center; }
    .tx-cta-right { width: 100%; }
    .tx-cta-wa-card {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 20px;
        gap: 14px;
        text-align: left;
    }
    .tx-cta-wa-icon { width: 44px; height: 44px; }
    .tx-cta-wa-icon svg { width: 24px; height: 24px; }
    .tx-cta-wa-text { flex: 1; }
    .tx-cta-wa-btn { width: 100%; justify-content: center; }

    /* ==========================================================================
       DRAWER — Show active panel only; tabs always visible
       ========================================================================== */
    .terea-sidebar-drawer.is-open .terea-sidebar-panel:not(.is-active) { display: none; }
    .terea-sidebar-drawer.is-open .terea-sidebar-panel.is-active { display: block; position: relative; z-index: 1; }

    /* Tabs: compact mobile tabs — always visible */
    .terea-sidebar-tabs {
        display: flex !important;
        background: #fff;
        border-bottom: 2px solid #e2e8f0;
        flex-shrink: 0;
    }
    .terea-sidebar-tab {
        flex: 1;
        padding: 11px 8px;
        font-size: 13px;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
    }
    .terea-sidebar-tab.is-active {
        color: #111111;
        border-bottom-color: #111111;
    }

    /* Menu items: bigger touch targets, visible text */
    .terea-sidebar-nav {
        list-style: none;
        margin: 0;
        padding: 6px 0;
    }
    .terea-sidebar-nav li a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        font-size: 15px;
        font-weight: 500;
        color: #1e293b;
        text-decoration: none;
        border-bottom: 1px solid #f8fafc;
        transition: background 0.15s ease;
    }
    .terea-sidebar-nav li a:hover {
        background: #f6f6f6;
        color: #111111;
    }
    .terea-sidebar-nav .sub-menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .terea-sidebar-nav .sub-menu li a {
        padding: 12px 16px 12px 40px;
        font-size: 14px;
        font-weight: 400;
        color: #64748b;
    }

    /* Account nav inside menu panel */
    .terea-sidebar-account-nav {
        display: flex;
        flex-direction: column;
        padding: 8px 0;
    }
    .terea-sidebar-account-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 13px 16px;
        font-size: 15px;
        font-weight: 500;
        color: #1e293b;
        text-decoration: none;
        border-bottom: 1px solid #f8fafc;
    }
    .terea-sidebar-account-link:hover { background: #f6f6f6; color: #111111; }

    /* Quick actions: larger touch targets on mobile */
    .terea-sidebar-quick-actions {
        padding: 12px 16px;
        border-top: 1px solid #f1f5f9;
    }
    .terea-sidebar-quick-btn {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 10px;
    }

    /* ==========================================================================
       GENERAL — Prevent horizontal overflow (targeted, not global)
       ========================================================================== */
    #content, .site-content, .front-page-main, #primary { overflow-x: clip; max-width: 100%; }
    .container { padding: 0 16px !important; }
}

/* Small phones (max 576px) */
@media (max-width: 576px) {
    .terea-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .terea-cols-2, .terea-cols-3, .terea-cols-4, .terea-cols-5, .terea-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .terea-category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-grid { grid-template-columns: 1fr; }
    .announcement-bar { font-size: 12px; }
    .terea-product-card-title { font-size: 14px; }
    .price-sale, .price-regular { font-size: 15px; }
    .terea-toast { font-size: 13px; padding: 12px 18px; }
    .terea-hero h1 { font-size: 2rem; }
    .terea-search-form-inner { flex-wrap: wrap; padding: 8px; }
    .terea-search-form-input { padding: 8px 12px; min-width: 120px; }
    .terea-search-form-submit { width: 100%; }
    .post-navigation { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
    .footer-legal { text-align: left; }
    .terea-scroll-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }

    /* Mobile Cart Toast */
    .terea-cart-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        min-width: auto;
        max-width: none;
    }
}

/* Ensure the search overlay sits below the sticky header on desktop */
@media (min-width: 769px) {
    .header-search-overlay { position: relative; z-index: 49; }
}

/* Pagination Responsive Styles — compact pill track */
@media (max-width: 576px) {
    .woocommerce-pagination,
    .pagination,
    .posts-pagination {
        margin-top: 24px !important;
        margin-bottom: 32px !important;
    }
    .woocommerce-pagination ul,
    .pagination ul,
    .posts-pagination ul {
        gap: 6px;
        padding: 0;
        background: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .woocommerce-pagination .page-numbers,
    .pagination .page-numbers,
    .posts-pagination .page-numbers,
    .nav-links .page-numbers {
        min-width: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
        padding: 0 8px !important;
        border-radius: 12px !important;
        background: #fff !important;
        color: #0f172a !important;
        border: 1.5px solid #e2e8f0 !important;
        box-shadow: none !important;
    }
    .woocommerce-pagination .page-numbers:hover,
    .pagination .page-numbers:hover {
        background: var(--tx-primary-50, #f6f6f6) !important;
        color: var(--tx-primary, #111111) !important;
        border-color: var(--tx-primary, #111111) !important;
    }
    .woocommerce-pagination .page-numbers.current {
        background: var(--tx-primary, #111111) !important;
        border-color: var(--tx-primary, #111111) !important;
        color: #fff !important;
        box-shadow: 0 6px 14px color-mix(in srgb, var(--tx-primary, #111111) 30%, transparent) !important;
    }
    .woocommerce-pagination .page-numbers.prev,
    .woocommerce-pagination .page-numbers.next,
    .pagination .page-numbers.prev,
    .pagination .page-numbers.next {
        min-width: 36px !important;
        padding: 0 8px !important;
        background: #fff !important;
        color: var(--tx-primary, #111111) !important;
        border: 1.5px solid #e2e8f0 !important;
        font-weight: 700 !important;
    }
    .woocommerce-pagination .page-numbers.prev:hover,
    .woocommerce-pagination .page-numbers.next:hover {
        background: var(--tx-primary-50, #f6f6f6) !important;
        border-color: var(--tx-primary, #111111) !important;
    }
    .woocommerce-pagination .page-numbers.dots {
        background: transparent !important;
        border: 0 !important;
        color: #94a3b8 !important;
        min-width: 16px !important;
        padding: 0 !important;
    }
}

@media (max-width: 375px) {
    .woocommerce-pagination .page-numbers,
    .pagination .page-numbers {
        min-width: 34px !important;
        height: 34px !important;
        font-size: 12px !important;
        padding: 0 6px !important;
        margin: 0 !important;
    }
}
