/*
Theme Name: Tuttireal Child
Theme URI: https://tuttireal.com
Author: Appledill
Author URI: https://zencoder.ai
Description: Ultra-performance high-fidelity marketplace theme.
Version: 2.0.48
Template: tuttireal
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tuttireal-child
*/

/* ============================================================
   § 1 — LIGHT THEME ENFORCEMENT
   Override CSS variables and disable the dark-mode media query
   so the site is always light, regardless of OS preference.
   ============================================================ */

:root {
    /* Surfaces */
    --tr-color-surface:         #ffffff;
    --tr-color-surface-alt:     #f5f6f8;
    --tr-color-surface-raised:  #ffffff;

    /* Text */
    --tr-color-text:            #1a1a2e;
    --tr-color-text-muted:      #6b7280;
    --tr-color-text-inverse:    #ffffff;

    /* Borders */
    --tr-color-border:          #e5e7eb;
    --tr-color-border-light:    #f0f1f3;

    /* Brand stays as-is from parent / customizer */
}

/* Force light values even when OS is in dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --tr-color-surface:         #ffffff;
        --tr-color-surface-alt:     #f5f6f8;
        --tr-color-surface-raised:  #ffffff;
        --tr-color-text:            #1a1a2e;
        --tr-color-text-muted:      #6b7280;
        --tr-color-text-inverse:    #ffffff;
        --tr-color-border:          #e5e7eb;
        --tr-color-border-light:    #f0f1f3;
    }
}

/* Body always on white */
body {
    background-color: #ffffff !important;
    color: #1a1a2e !important;
}


/* ============================================================
   § 2 — HOMEPAGE SECTIONS — White-to-gray gradient backgrounds
   ============================================================ */

/* Standard section: pure white → very light gray */
.tr-home-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

/* Alt section (Categories, Vendors): gentle gray wash */
.tr-home-section--alt {
    background: linear-gradient(180deg, #f5f6f8 0%, #eceef2 100%) !important;
}

/* Stats bar */
.tr-stats-bar {
    background: linear-gradient(90deg, #ffffff 0%, #f0f2f5 100%);
    border-top: 1px solid var(--tr-color-border, #e5e7eb);
    border-bottom: 1px solid var(--tr-color-border, #e5e7eb);
}
.tr-stats-bar__number { color: var(--tr-color-primary, #e76f51); }
.tr-stats-bar__label  { color: var(--tr-color-text-muted, #6b7280); }

/* Section headers */
.tr-section-header__title { color: #1a1a2e; }
.tr-section-header__eyebrow { color: var(--tr-color-primary, #e76f51); }

/* Footer — light background with dark readable text */
.tr-footer,
footer.tr-footer {
    background: linear-gradient(180deg, #f0f2f5 0%, #e4e6eb 100%);
    color: #1a1a2e !important;
    padding: 60px 0 0 !important;
}

/* Override all the white-on-dark text the parent set */
.tr-footer__brand,
.tr-footer__heading {
    color: #1a1a2e !important;
}
.tr-footer__tagline {
    color: #4a5568 !important;
}
.tr-footer__links a {
    color: #4a5568 !important;
}
.tr-footer__links a:hover {
    color: var(--tr-color-primary, #e76f51) !important;
}
.tr-footer__social-link {
    color: #4a5568 !important;
}
.tr-footer__social-link:hover {
    color: var(--tr-color-primary, #e76f51) !important;
}

/* Bottom bar (copyright) */
.tr-footer__bottom,
.tr-footer__copy {
    background: #dde0e6 !important;
    color: #4a5568 !important;
    border-top: 1px solid #c8ccd4 !important;
}
.tr-footer__bottom a,
.tr-footer__copy a {
    color: var(--tr-color-primary, #e76f51) !important;
}

/* Logo: remove the dark-mode brightness invert filter */
.tr-footer__logo img {
    filter: none !important;
}


/* ============================================================
   § 3 — MISC UTILITIES (tags, dashboard, breadcrumbs)
   ============================================================ */

.product_meta .tagged_as { display: none !important; }

.woocommerce-account .tr-container.tr-layout--no-sidebar {
    max-width: 100%;
    padding-inline: 0;
}
.woocommerce-account .tr-entry,
.woocommerce-account .tr-entry__content {
    padding: 0;
    margin: 0;
}

/* Single product breadcrumb */
#sticky-menu-bar { display: none !important; }

.tr-product-breadcrumb {
    padding: 14px 0 6px;
}
.tr-product-breadcrumb .tr-breadcrumbs,
.tr-product-breadcrumb .wc-breadcrumb {
    padding: 0;
    margin: 0;
}
.tr-product-breadcrumb .tr-bc__sep {
    margin-inline: 6px;
    color: var(--tr-color-text-muted, #6b7280);
    font-size: .8rem;
}


/* ============================================================
   § 4 — CART PAGE
   ============================================================ */

.tr-cart-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.tr-cart-items {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tr-cart-sidebar {
    width: 320px;
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .tr-cart-layout  { flex-direction: column; }
    .tr-cart-sidebar { width: 100%; }
}

/* Cart item card — light surface */
.tr-cart-item {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--tr-color-border, #e5e7eb);
    border-radius: 12px;
    padding: 16px;
    align-items: flex-start;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* Product image thumbnail */
.tr-cart-item__img {
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--tr-color-surface-alt, #f5f6f8);
}
.tr-cart-item__img a,
.tr-cart-item__img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details column */
.tr-cart-item__details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tr-cart-item__name a,
.tr-cart-item__name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--tr-color-text, #1a1a2e);
    text-decoration: none;
    line-height: 1.4;
}
.tr-cart-item__name a:hover { color: var(--tr-color-primary, #e53e3e); }
.tr-cart-item__price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tr-color-primary, #e53e3e);
}
.tr-cart-item__price .woocommerce-Price-amount { color: inherit; }

/* Controls: stepper + trash */
.tr-cart-item__controls {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Qty stepper */
.tr-qty {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    border: 1px solid var(--tr-color-border, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    height: 34px;
}
.tr-qty__btn {
    width: 30px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--tr-color-text, #1a1a2e);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.tr-qty__btn:hover {
    background: var(--tr-color-primary, #e53e3e);
    color: #fff;
}

/* Qty dropdown */
.tr-qty select.qty,
.tr-qty .tr-qty__select {
    width: 60px !important;
    height: 34px !important;
    border: none !important;
    border-left: 1px solid var(--tr-color-border, #e5e7eb) !important;
    border-right: 1px solid var(--tr-color-border, #e5e7eb) !important;
    background: #ffffff !important;
    color: var(--tr-color-text, #1a1a2e) !important;
    text-align: center;
    font-size: .88rem;
    font-weight: 600;
    padding: 0 4px !important;
    outline: none;
    flex-shrink: 0;
    box-shadow: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    -webkit-appearance: auto;
    appearance: auto;
}

/* Trash row */
.tr-qty-remove {
    display: flex;
    justify-content: center;
    width: 100%;
}
.tr-cart-item__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--tr-color-border, #e5e7eb);
    color: #9ca3af;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
    flex-shrink: 0;
}
.tr-cart-item__remove:hover {
    background: #fff1f1;
    border-color: #e53e3e;
    color: #e53e3e;
}

/* Cart footer */
.tr-cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.tr-cart-footer__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.tr-coupon {
    display: flex;
    gap: 6px;
}
.tr-coupon__input {
    padding: 8px 12px;
    border: 1px solid var(--tr-color-border, #e5e7eb);
    border-radius: 6px;
    background: #ffffff;
    color: var(--tr-color-text, #1a1a2e);
    font-size: .88rem;
    width: 180px;
}
.tr-cart-footer__update {
    font-size: .85rem;
    padding: 8px 16px;
}


/* ============================================================
   § 5 — PRODUCT CARDS (shop loop + homepage featured)
   ============================================================ */

/* Electronics skin card actions */
.product-block.inner .tr-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.product-block.inner .tr-card-actions .tr-card-atc,
.product-block.inner .tr-card-actions .add_to_cart_button,
.product-block.inner .tr-card-actions .button {
    flex: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
    background: var(--tr-color-primary, #e53e3e);
    color: #fff !important;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s;
    white-space: nowrap;
}

/* ============================================================
   § 6 — CIRCULAR CATEGORY ICONS
   ============================================================ */

/* Mobile-First Grid: 3 columns on small phones, 4 on tablets, 6 on desktop */
.tr-cat-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
}
@media (min-width: 480px) {
    .tr-cat-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (min-width: 768px) {
    .tr-cat-grid { grid-template-columns: repeat(5, 1fr) !important; }
}
@media (min-width: 1024px) {
    .tr-cat-grid { grid-template-columns: repeat(6, 1fr) !important; }
}

/* Homepage Category Cards — Rounded Rectangles */
.tr-cat-card {
    aspect-ratio: 1 / 1 !important;
    border-radius: 16px !important; /* Modern rounded rectangle */
    display: flex !important;
    align-items: flex-end !important; /* Move text to bottom */
    justify-content: center !important;
    text-align: center !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.tr-cat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* Name Label for Rounded Rectangles */
.tr-cat-card__name {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 15px 10px !important;
    font-size: clamp(0.75rem, 2.5vw, 0.9rem) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%) !important;
    z-index: 3 !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Ensure overlay matches the rounded rectangle shape */
.tr-cat-card::after {
    border-radius: 16px !important;
}


/* ══════════════════════════════════════════════════════════
   § 7 — INTERACTIVE MEGA MENU (Matches Photo)
   ══════════════════════════════════════════════════════════ */

.tr-cat-mega {
    background: #ffffff !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1) !important;
    border-top: 1px solid #eee !important;
    height: 600px !important; 
    max-height: 80vh !important;
}

.tr-cat-mega__inner {
    display: flex !important;
    padding: 0 !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
    height: 100% !important;
    align-items: stretch !important;
}

/* Sidebar with independent scroll */
.tr-cat-mega__sidebar {
    width: 250px !important;
    background: #f7f7f7 !important;
    padding: 10px 0 !important;
    border-right: 1px solid #e5e5e5 !important;
    flex-shrink: 0 !important;
    overflow-y: auto !important;
    height: 100% !important;
}

/* Hide scrollbar for sidebar while keeping functionality */
.tr-cat-mega__sidebar::-webkit-scrollbar { width: 4px; }
.tr-cat-mega__sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

.tr-cat-mega__sidebar-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 20px !important;
    color: #000000 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important; /* Bold as requested */
    transition: background 0.1s !important;
}

.tr-cat-mega__sidebar-link:hover,
.tr-cat-mega__sidebar-link.is-active {
    background: #ffffff !important;
    color: #000000 !important;
}

.tr-cat-mega__sidebar-link svg {
    color: #000000 !important; /* Black arrow */
    width: 14px !important;
    height: 14px !important;
}

/* Grid Wrapper with independent scroll */
.tr-cat-mega__grid-wrapper {
    flex: 1 !important;
    background: #ffffff !important;
    overflow-y: auto !important;
    height: 100% !important;
    position: relative !important;
}

.tr-cat-mega__grid-content {
    display: none !important;
    padding: 30px !important;
    animation: tr-fade-in 0.2s ease-out !important;
}

.tr-cat-mega__grid-content.is-visible {
    display: block !important;
}

@keyframes tr-fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Grid Header (All category name >) */
.tr-cat-mega__grid-header {
    margin-bottom: 25px !important;
}

.tr-cat-mega__all-link {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.tr-cat-mega__all-link:hover {
    text-decoration: underline !important;
}

/* The Grid */
.tr-cat-mega__grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 30px 15px !important;
}

.tr-cat-mega__item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    text-decoration: none !important;
    gap: 10px !important;
    position: relative !important;
}

.tr-cat-mega__item-img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    transition: transform 0.2s !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}

.tr-cat-mega__item:hover .tr-cat-mega__item-img {
    transform: scale(1.03) !important;
}

.tr-cat-mega__item-name {
    font-size: 0.88rem !important;
    color: #000000 !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    max-width: 130px !important;
}

.tr-cat-mega__badge {
    position: absolute !important;
    top: -5px !important;
    right: 5px !important;
    background: #ff4d4f !important;
    color: #ffffff !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    z-index: 2 !important;
}

/* Mega Menu Category Icons Override */
/* ══════════════════════════════════════════════════════════
   § 9 — HEADER & MEGA MENU REFINEMENTS
   ══════════════════════════════════════════════════════════ */

/* Header Layout Override */
#tr-header.tr-header {
    background: #ffffff !important;
    border-bottom: 1px solid #f0f0f0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
}

#tr-header .tr-header__inner {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    gap: 15px !important;
    justify-content: space-between !important;
}

/* Logo Styling */
.tr-logo-text {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
}
.tr-logo-text__tutti { color: var(--tr-color-primary, #e76f51) !important; }
.tr-logo-text__real  { color: #000000 !important; }

/* ── Search toggle btn unused — hidden ───────────────────────────────────── */
.tr-header__search-toggle { display: none !important; }
/* ── Separate mobile search bar div unused ───────────────────────────────── */
.tr-mobile-search-bar,
.tr-mobile-search-bar__form,
.tr-mobile-search-bar__input,
.tr-mobile-search-bar__btn { display: none !important; }

/* Hamburger Menu Toggle */
.tr-header__menu-toggle {
    display: none !important; /* Hidden on desktop */
    background: #f8f8f8 !important;
    border: 1px solid #eeeeee !important;
    border-radius: 8px !important;
    padding: 0 !important;
    cursor: pointer !important;
    width: 46px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    z-index: 1001 !important;
    color: #000000 !important;
}

@media (max-width: 1024px) {
    /* ── Header: auto height, single sticky row ── */
    #tr-header.tr-header {
        height: auto !important;
    }
    #tr-header .tr-header__inner {
        padding: 0 10px !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        height: 56px !important;
        flex-wrap: nowrap !important;
    }

    /* 1 — Hamburger */
    .tr-header__menu-toggle {
        display: flex !important;
        order: 1 !important;
        flex: 0 0 auto !important;
        width: 40px !important;
        height: 40px !important;
        margin: 0 !important;
    }

    /* 2 — Logo */
    .tr-header__logo {
        order: 2 !important;
        flex: 0 0 auto !important;
        margin: 0 !important;
    }

    /* 3 — Search form (stretches to fill middle) */
    #tr-header .tr-header__search-form {
        display: flex !important;
        order: 3 !important;
        flex: 1 1 0 !important;
        min-width: 0 !important;
        height: 38px !important;
        margin: 0 !important;
    }
    #tr-header .tr-header__search-input {
        height: 38px !important;
        font-size: 13px !important;
        padding: 0 10px !important;
        border-radius: 6px 0 0 6px !important;
    }
    #tr-header .tr-header__search-submit {
        height: 38px !important;
        width: 38px !important;
        border-radius: 0 6px 6px 0 !important;
        flex-shrink: 0 !important;
    }

    /* 4 — Account + Cart */
    #tr-header .tr-header__actions {
        display: flex !important;
        order: 4 !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        gap: 4px !important;
        margin: 0 !important;
    }
    .tr-header__action-btn {
        width: 34px !important;
        height: 34px !important;
        padding: 4px !important;
    }
    .tr-header__action-btn svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Hide unused elements on mobile */
    .tr-header__cat-btn,
    #tr-header .tr-header__sell-btn,
    .tr-header__register-btn,
    .tr-header__search-toggle {
        display: none !important;
    }
}

.tr-header__cat-btn {
    color: #000000 !important;
    font-weight: 700 !important;
}

.tr-header__cat-btn svg {
    color: #000000 !important;
}

/* Sell button styling */
.tr-header__sell-btn {
    color: #000000 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Mega Menu All Link */
.tr-cat-mega__all-link {
    color: #000000 !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
}

.tr-cat-mega__all-link svg {
    color: #000000 !important;
}

/* Subcategory Names */
.tr-cat-mega__item-name {
    color: #000000 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

/* Mobile Top Bar Adjustments */
@media (max-width: 767px) {
    .tr-header__cat-btn span {
        display: none !important; /* Icon only on small mobile to save space */
    }
    .tr-header__search-form {
        margin: 0 10px !important;
    }
}

/* ══════════════════════════════════════════════════════════
   § 11 — RESTORED HERO SLIDER (Centered Search + People)
   ══════════════════════════════════════════════════════════ */

.tr-hero--slider {
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    background: #0d0d0d !important;
    height: clamp(500px, 70vh, 700px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tr-hero__slides {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
}

.tr-hero__slide {
    position: absolute !important;
    inset: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    opacity: 0;
    animation: trHeroFade 60s infinite ease-in-out !important;
    visibility: hidden;
}

@keyframes trHeroFade {
    0%      { opacity: 0; visibility: visible; }
    0.83%   { opacity: 1; visibility: visible; }
    7.5%    { opacity: 1; visibility: visible; }
    8.33%   { opacity: 0; visibility: visible; }
    100%    { opacity: 0; visibility: hidden; }
}

.tr-hero__overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%) !important;
}

.tr-hero__content {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    text-align: center !important;
    color: #ffffff !important;
    padding: 20px !important;
}

.tr-hero__eyebrow {
    display: inline-block !important;
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    border-radius: 50px !important;
    padding: 5px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    margin-bottom: 20px !important;
}

.tr-hero__title {
    font-size: clamp(2rem, 6vw, 4rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
    color: #ffffff !important;
}

.tr-hero__title span {
    color: var(--tr-color-primary, #e76f51) !important;
}

.tr-hero__sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem) !important;
    line-height: 1.6 !important;
    max-width: 600px !important;
    margin: 0 auto 40px !important;
    opacity: 0.9 !important;
}

.tr-hero__search {
    display: flex !important;
    max-width: 600px !important;
    margin: 0 auto 30px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}

.tr-hero__search-input {
    flex: 1 !important;
    padding: 18px 25px !important;
    border: none !important;
    font-size: 1.1rem !important;
    outline: none !important;
    color: #333 !important;
}

.tr-hero__search-btn {
    padding: 0 30px !important;
    background: var(--tr-color-primary, #e76f51) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    border: none !important;
}

.tr-hero__ctas {
    display: flex !important;
    gap: 15px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.tr-hero__dots {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 40px !important;
}

.tr-hero__dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.3) !important;
    animation: trHeroDot 60s infinite ease-in-out !important;
}

@keyframes trHeroDot {
    0%      { background: rgba(255,255,255,0.3); transform: scale(1); }
    0.83%   { background: #ffffff; transform: scale(1.3); }
    7.5%    { background: #ffffff; transform: scale(1.3); }
    8.33%   { background: rgba(255,255,255,0.3); transform: scale(1); }
    100%    { background: rgba(255,255,255,0.3); transform: scale(1); }
}

@media (max-width: 767px) {
    .tr-hero--slider {
        height: 550px !important;
    }
    .tr-hero__title {
        font-size: 2.2rem !important;
    }
    .tr-hero__search {
        max-width: 90% !important;
    }
    .tr-hero__search-btn span {
        display: none !important;
    }
}

.tr-shop-card,
.tr-product-card {
    border: none !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    transition: all 0.3s ease !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.tr-shop-card:hover,
.tr-product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}

.tr-shop-card__img-wrap,
.tr-product-card__img-wrap {
    aspect-ratio: 1 / 1 !important; /* Square for clean grid */
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden !important;
    background: #f8f8f8 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tr-shop-card__img,
.tr-product-card__img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.tr-shop-card:hover .tr-shop-card__img,
.tr-product-card:hover .tr-product-card__img {
    transform: scale(1.08) !important;
}

.tr-shop-card__body,
.tr-product-card__body {
    padding: 18px !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.tr-shop-card__title,
.tr-product-card__title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
}

.tr-shop-card__title a,
.tr-product-card__title a {
    color: #111111 !important;
    text-decoration: none !important;
}

.tr-shop-card__price,
.tr-product-card__price {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--tr-color-primary) !important;
    margin-top: auto !important;
}

.tr-shop-card__badge,
.tr-product-card__badge {
    border-radius: 6px !important;
    padding: 3px 9px !important;
    font-size: 0.68rem !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 5 !important;
}

/* Ensure no overlap of text */
.tr-shop-card__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

/* ── Mobile Navigation Drawer Fixes (v1.9.5) ──────────────────────── */

/* Use the standard container but ensure it doesn't block scrolling */
.tr-mobile-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    z-index: 1000000 !important; 
    visibility: hidden !important;
    pointer-events: none !important;
    display: flex !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    background: transparent !important; /* Let parent overlay handle backdrop */
    overflow: hidden !important;
}

.tr-mobile-nav.is-open {
    visibility: visible !important;
    pointer-events: auto !important;
}

/* The actual scrollable drawer */
.tr-mobile-nav__inner {
    width: 290px !important;
    max-width: 85% !important;
    height: 100% !important;
    background: #ffffff !important;
    box-shadow: 10px 0 30px rgba(0,0,0,0.2) !important;
    overflow-y: scroll !important; /* FORCE SCROLL HERE */
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
    pointer-events: auto !important;
    display: block !important;
    padding: 0 !important;
}

.tr-mobile-nav.is-open .tr-mobile-nav__inner {
    transform: translateX(0) !important;
}

/* Close button - absolute inside the drawer */
.tr-mobile-nav__close {
    position: sticky !important;
    top: 0 !important;
    float: right !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    background: #ffffff !important;
    z-index: 100 !important;
    border: none !important;
    color: #000 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Mobile branding in drawer */
.tr-mobile-nav__header {
    padding: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.tr-mobile-nav__account-link {
    color: #000000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Category section */
.tr-mobile-nav__cats {
    padding: 20px !important;
    clear: both !important;
    display: block !important;
}

.tr-mobile-nav__section-title {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #999 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #f0f0f0 !important;
    padding-bottom: 10px !important;
    display: block !important;
}

.tr-mobile-nav__cat-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tr-mobile-nav__cat-link {
    display: flex !important;
    align-items: center !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid #f5f5f5 !important;
    color: #111 !important;
    text-decoration: none !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    width: 100% !important;
}

.tr-mobile-nav__cat-img {
    width: 36px !important;
    height: 36px !important;
    margin-right: 15px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}
