/*
Theme Name: Tuttireal Child
Theme URI: https://tuttireal.com
Author: Appledill
Author URI: https://tuttireal.com
Description: Ultra-performance high-fidelity marketplace theme.
Version: 2.3.8
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): dark professional wash */
.tr-home-section--alt {
    background: #0f172a !important; /* Deep navy/black */
    padding: 80px 0 !important;
}

.tr-home-section--alt .tr-section-header__title {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.tr-home-section--alt .tr-section-header__eyebrow {
    color: #ef7a5c !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
}

.tr-home-section--alt .tr-btn--outline {
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: #ffffff !important;
}

.tr-home-section--alt .tr-btn--outline:hover {
    background: rgba(255,255,255,0.1) !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
   ============================================================ */

/* Scoped Homepage Category Grid (Prevents breaking other banners) */
.tr-shop-by-category .tr-cat-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
}
@media (min-width: 480px) {
    .tr-shop-by-category .tr-cat-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (min-width: 768px) {
    .tr-shop-by-category .tr-cat-grid { grid-template-columns: repeat(5, 1fr) !important; }
}
@media (min-width: 1024px) {
    .tr-shop-by-category .tr-cat-grid { grid-template-columns: repeat(6, 1fr) !important; }
}

/* Homepage Category Cards — Dark Rectangles */
.tr-shop-by-category .tr-cat-card {
    aspect-ratio: 1.1 / 1 !important;
    border-radius: 12px !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    overflow: hidden !important;
    transition: transform 0.3s ease !important;
    position: relative !important;
    background-size: cover !important;
    background-position: center !important;
}

.tr-home-section--alt .tr-cat-card:hover {
    transform: translateY(-8px) !important;
}

.tr-home-section--alt .tr-cat-card__name {
    position: relative !important;
    z-index: 5 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    padding: 10px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,0,0,0.4) !important;
    margin: 0 !important;
}

.tr-home-section--alt .tr-cat-card::after {
    display: none !important;
}


/* ============================================================
   § 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: 1000 !important;
    min-height: 80px !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
}

#tr-header .tr-header__inner {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    gap: 15px !important;
    justify-content: space-between !important;
    padding: 0 20px !important;
}

/* Search Bar (Centered & Rounded) */
.tr-header__search-form {
    flex: 1 !important;
    max-width: 500px !important;
    background: #f1f3f5 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 15px !important;
    height: 44px !important;
}

.tr-header__search-input {
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 0.95rem !important;
    color: #1a202c !important;
}

.tr-header__search-submit {
    background: transparent !important;
    color: #4a5568 !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
}

/* Nav Buttons */
.tr-header__sell-btn,
.tr-header__influencer-btn {
    color: #000000 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
}

.tr-header__register-btn {
    background: #ef7a5c !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Categories Toggle Button */
.tr-header__cat-btn {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0 15px !important;
    height: 44px !important;
    cursor: pointer !important;
    color: #1a202c !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
}

.tr-header__cat-btn:hover {
    background: #f7fafc !important;
    border-color: #cbd5e0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

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

/* Logo Styling */
.tr-logo-text {
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    letter-spacing: -0.02em !important;
}
.tr-logo-text__tutti { color: var(--tr-color-primary, #ef6b4d) !important; }
.tr-logo-text__real  { color: #000000 !important; }

/* ══════════════════════════════════════════════════════════
   § 7 — INTERACTIVE MEGA MENU (Professional Design)
   ══════════════════════════════════════════════════════════ */

.tr-cat-mega {
    position: absolute !important;
    top: 100% !important; /* FIXED: Correct dropdown position */
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.12) !important;
    border-top: 1px solid #edf2f7 !important;
    height: 650px !important; 
    max-height: 85vh !important;
    z-index: 9999 !important;
    display: none !important;
}

.tr-cat-mega.is-active {
    display: block !important;
    animation: tr-slide-down 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes tr-slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Sidebar */
.tr-cat-mega__sidebar {
    width: 260px !important;
    background: #ffffff !important;
    padding: 10px 0 !important;
    border-right: 1px solid #f1f5f9 !important;
    flex-shrink: 0 !important;
    overflow-y: auto !important;
    height: 100% !important;
}

.tr-cat-mega__sidebar::-webkit-scrollbar { width: 5px; }
.tr-cat-mega__sidebar::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

.tr-cat-mega__sidebar-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px 24px !important;
    color: #4a5568 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important; 
    transition: all 0.2s !important;
    border-left: 3px solid transparent !important;
}

.tr-cat-mega__sidebar-link:hover,
.tr-cat-mega__sidebar-link.is-active {
    background: #ffffff !important;
    color: var(--tr-color-primary, #ef6b4d) !important;
    border-left-color: var(--tr-color-primary, #ef6b4d) !important;
}

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

.tr-cat-mega__grid-content {
    display: none !important;
    padding: 40px 50px !important;
}

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

.tr-cat-mega__grid-header {
    margin-bottom: 40px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.tr-cat-mega__all-link {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #1a202c !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: color 0.2s !important;
}

.tr-cat-mega__all-link:hover {
    color: var(--tr-color-primary, #ef6b4d) !important;
}

/* 5-Column Grid */
.tr-cat-mega__grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 40px 25px !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: 15px !important;
}

.tr-cat-mega__item-img {
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    object-fit: cover !important; /* FIXED: Fill the circle */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
    background: #f8fafc !important;
    border: 1px solid #edf2f7 !important;
}

.tr-cat-mega__item:hover .tr-cat-mega__item-img {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}

.tr-cat-mega__item-name {
    font-size: 0.9rem !important;
    color: #2d3748 !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    transition: color 0.2s !important;
}

.tr-cat-mega__item:hover .tr-cat-mega__item-name {
    color: var(--tr-color-primary, #ef6b4d) !important;
}

.tr-cat-mega__badge {
    position: absolute !important;
    top: 5px !important;
    right: 15px !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;
}

/* ============================================================
   § 11 — SUMMER COLLECTION HERO (High Fidelity)
   ============================================================ */

.tr-hero-summer {
    background: linear-gradient(135deg, #f3a683 0%, #f7d794 100%) !important;
    padding: 60px 0 !important;
    overflow: hidden !important;
    position: relative !important;
}

.tr-hero-summer__inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 40px !important;
    position: relative !important;
    z-index: 2 !important;
}

.tr-hero-summer__content {
    flex: 1 !important;
    max-width: 500px !important;
}

.tr-hero-summer__title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.1 !important;
    margin-bottom: 20px !important;
}

.tr-hero-summer__title-large {
    font-size: 5rem !important;
    display: block !important;
}

.tr-hero-summer__text {
    font-size: 1.2rem !important;
    color: #ffffff !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
}

.tr-hero-summer__location {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(0,0,0,0.3) !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    font-size: 0.9rem !important;
    margin-bottom: 30px !important;
}

.tr-hero-summer__btns {
    display: flex !important;
    gap: 15px !important;
}

.tr-btn-summer {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
}

.tr-btn-summer--white {
    background: #ffffff !important;
    color: #f3a683 !important;
}

.tr-btn-summer--outline {
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
}

.tr-hero-summer__visual {
    flex: 1 !important;
    position: relative !important;
    height: 400px !important;
}

.tr-hero-summer__collage {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

.tr-collage-item {
    position: absolute !important;
    background: #ffffff !important;
    padding: 8px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    overflow: hidden !important;
    transition: transform 0.3s ease !important;
}

.tr-collage-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

.tr-collage-item.item-1 { width: 180px; height: 240px; top: 0; right: 0; transform: rotate(5deg); z-index: 5; }
.tr-collage-item.item-2 { width: 160px; height: 200px; top: 20px; right: 200px; transform: rotate(-8deg); z-index: 4; }
.tr-collage-item.item-3 { width: 200px; height: 150px; bottom: 0; right: 50px; transform: rotate(-3deg); z-index: 3; }
.tr-collage-item.item-4 { width: 140px; height: 180px; bottom: 50px; right: 280px; transform: rotate(10deg); z-index: 2; }
.tr-collage-item.item-5 { width: 150px; height: 150px; top: 150px; right: 120px; transform: rotate(-12deg); z-index: 6; }
.tr-collage-item.item-6 { width: 120px; height: 160px; top: -20px; right: 350px; transform: rotate(-5deg); z-index: 1; }

@media (max-width: 991px) {
    .tr-hero-summer__inner { flex-direction: column; text-align: center; }
    .tr-hero-summer__visual { display: none; }
    .tr-hero-summer__btns { justify-content: center; }
}

.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;
    }
}

@media (min-width: 1025px) {
    .tr-main-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    /* Reset banner padding to default plugin behavior */
    .tr-mh {
        margin-top: 0 !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;
}

/* ============================================================
   § 12 — MOBILE RESPONSIVE HEADER & MEGA MENU
   ============================================================ */

/* ── Desktop: hide mobile-only elements ────────────────────── */
@media (min-width: 769px) {
    .tr-header__menu-toggle      { display: none !important; }
    .tr-header__search-toggle    { display: none !important; }
    .tr-cat-mega__mobile-bar     { display: none !important; }
    .tr-mobile-mega-overlay      { display: none !important; }
}

/* ── Mobile overlay backdrop ───────────────────────────────── */
.tr-mobile-mega-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    cursor: pointer;
}
.tr-mobile-mega-overlay.is-active { display: block !important; }

/* ── Mobile header: 2-row layout ──────────────────────────── */
@media (max-width: 768px) {

    /* Row 1: hamburger | logo (center) | icons */
    #tr-header.tr-header {
        min-height: auto !important;
    }

    #tr-header .tr-header__inner {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        padding: 10px 14px !important;
        gap: 0 !important;
    }

    /* Hamburger — leftmost */
    .tr-header__menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        order: 1 !important;
        flex: 0 0 auto !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        padding: 6px 8px 6px 0 !important;
        color: #1a1a2e !important;
    }

    /* Logo — centered */
    .tr-header__logo {
        order: 2 !important;
        flex: 1 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* Actions (wishlist + account + cart) — rightmost */
    .tr-header__actions {
        order: 3 !important;
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

    /* Search bar — second row, full width */
    .tr-header__search-form {
        order: 10 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin: 8px 0 2px !important;
        height: 44px !important;
        background: #f1f3f5 !important;
        border-radius: 8px !important;
        padding: 0 0 0 15px !important;
        display: flex !important;
    }

    .tr-header__search-submit {
        background: var(--tr-color-primary, #ef6b4d) !important;
        color: #fff !important;
        border: none !important;
        border-radius: 0 8px 8px 0 !important;
        padding: 0 16px !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
    }

    /* Hide desktop-only header elements */
    .tr-header__cat-btn          { display: none !important; }
    .tr-header__sell-btn         { display: none !important; }
    .tr-header__influencer-btn   { display: none !important; }
    .tr-header__register-btn     { display: none !important; }
    .tr-header__search-toggle    { display: none !important; }

    /* Wishlist icon: always show on mobile */
    .tr-header__wishlist-btn {
        display: inline-flex !important;
    }

    /* ── Mobile Hero: full-width buttons, centered ─────────── */
    .tr-hero-summer__btns {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
    }
    .tr-btn-summer {
        width: 100% !important;
        justify-content: center !important;
    }
    .tr-hero-summer__location {
        justify-content: center !important;
    }
    .tr-hero-summer__content {
        padding: 0 8px !important;
    }
}

/* ── Desktop-only: hide mobile drawer on screens wider than 768px ── */
@media (min-width: 769px) {
    #tr-mobile-drawer { display: none !important; }
}

/* ── Mobile-only: hide desktop mega menu on phones ── */
@media (max-width: 768px) {
    #tr-cat-mega.tr-cat-mega { display: none !important; }
}

/* ── Influencer icon — orange star in actions bar ── */
.tr-header__influencer-icon         { color: var(--tr-color-primary, #ef6b4d) !important; }
.tr-header__influencer-icon svg     { fill: var(--tr-color-primary, #ef6b4d) !important; stroke: var(--tr-color-primary, #ef6b4d) !important; }

/* ═══════════════════════════════════════════════════════════
   MOBILE NAVIGATION DRAWER  (#tr-mobile-drawer)
   ═══════════════════════════════════════════════════════════ */

/* Hidden by default; shown via JS on hamburger tap */
#tr-mobile-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff;
    flex-direction: column;
}

#tr-mobile-drawer.is-active { display: flex !important; }

/* ── Top bar: Logo | ★ | 👤 | ✕ ── */
.tr-mobile-drawer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    min-height: 56px;
    border-bottom: 1px solid #ebebeb;
    background: #fff;
    flex-shrink: 0;
}

.tr-mobile-drawer__logo {
    font-size: 1.35rem;
    font-weight: 900;
    text-decoration: none;
    line-height: 1;
}

.tr-mobile-drawer__bar-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.tr-mobile-drawer__bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 7px;
    color: #1a1a2e;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}

.tr-mobile-drawer__bar-btn:hover { background: #f5f6f8; }

.tr-mobile-drawer__influencer-btn       { color: #ef6b4d; }
.tr-mobile-drawer__influencer-btn svg   { fill: #ef6b4d; }

/* ── Two-panel body ── */
.tr-mobile-drawer__body {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
}

/* ── LEFT: Category list sidebar ── */
.tr-mobile-drawer__sidebar {
    width: 44%;
    max-width: 175px;
    min-width: 125px;
    overflow-y: auto;
    background: #f8f9fa;
    border-right: 1px solid #ebebeb;
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
}

.tr-mobile-drawer__cat-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 10px 13px 14px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    text-align: left;
    font-size: 0.81rem;
    font-weight: 500;
    color: #555;
    line-height: 1.3;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.tr-mobile-drawer__cat-btn.is-active {
    background: #fff;
    border-left-color: #ef6b4d;
    color: #1a1a2e;
    font-weight: 700;
}

.tr-mobile-drawer__cat-arrow {
    flex-shrink: 0;
    opacity: 0.35;
    transition: opacity 0.12s;
}

.tr-mobile-drawer__cat-btn.is-active .tr-mobile-drawer__cat-arrow {
    opacity: 1;
    stroke: #ef6b4d;
}

/* ── RIGHT: Subcategory grid panels ── */
.tr-mobile-drawer__panels {
    flex: 1;
    overflow-y: auto;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.tr-mobile-drawer__panel {
    display: none;
    flex-direction: column;
    padding: 14px 10px 24px;
}

.tr-mobile-drawer__panel.is-active { display: flex; }

.tr-mobile-drawer__panel-title {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.tr-mobile-drawer__panel-title:hover { color: #ef6b4d; }

/* 2-column subcategory grid */
.tr-mobile-drawer__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 6px;
}

.tr-mobile-drawer__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 6px;
}

/* Circular image */
.tr-mobile-drawer__item-circle {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f6f8;
    border: 2px solid #ebebeb;
    flex-shrink: 0;
    transition: border-color 0.15s;
}

.tr-mobile-drawer__item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tr-mobile-drawer__item-name {
    font-size: 0.72rem;
    font-weight: 500;
    color: #555;
    text-align: center;
    line-height: 1.25;
    max-width: 78px;
}

.tr-mobile-drawer__item:hover .tr-mobile-drawer__item-circle { border-color: #ef6b4d; }
.tr-mobile-drawer__item:hover .tr-mobile-drawer__item-name   { color: #ef6b4d; }

/* ── Scroll lock when drawer is open ── */
body.tr-menu-open { overflow: hidden !important; }
