/* Trove Custom Layout - Elite Store Pro-style, compact single-viewport, FULL WIDTH */

/* --- COUNTRY COLOURS --- */
/* US: red #B22234, navy #3C3B6E | AU: green #1F5C3D, gold #C9A227 */
body.tcl-country-us {
    --tcl-primary: #B22234;
    --tcl-primary-dark: #8f1a29;
    --tcl-secondary: #3C3B6E;
    --tcl-secondary-dark: #2e2d56;
    --tcl-accent: #3C3B6E;
}
body.tcl-country-au {
    --tcl-primary: #1F5C3D;
    --tcl-primary-dark: #163f2a;
    --tcl-secondary: #C9A227;
    --tcl-secondary-dark: #a8861e;
    --tcl-accent: #C9A227;
}
/* Fallback defaults (US) */
body:not(.tcl-country-au):not(.tcl-country-us) {
    --tcl-primary: #B22234;
    --tcl-primary-dark: #8f1a29;
    --tcl-secondary: #3C3B6E;
    --tcl-secondary-dark: #2e2d56;
    --tcl-accent: #3C3B6E;
}

.tcl-container { max-width: 100%; margin: 0 auto; padding: 0 24px; }

/* --- Top utility row (hamburger + icons, no search) --- */
.tcl-search-row { background: #fff; border-bottom: 3px solid var(--tcl-primary); padding: 10px 0; }
.tcl-search-row .tcl-container { display: flex; align-items: center; gap: 20px; }
.tcl-cat-toggle { display: flex; align-items: center; gap: 10px; background: none; border: none; font-size: 17px; font-weight: 700; cursor: pointer; white-space: nowrap; color: var(--tcl-secondary); }
.tcl-hamburger { display: inline-flex; flex-direction: column; gap: 4px; }
.tcl-hamburger span { display: block; width: 22px; height: 2.5px; background: var(--tcl-secondary); border-radius: 2px; }
.tcl-header-icons { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.tcl-icon { position: relative; color: var(--tcl-secondary); }
.tcl-cart-count { position: absolute; top: -8px; right: -8px; background: var(--tcl-primary); color: #fff; font-size: 10px; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tcl-cart-total { background: var(--tcl-secondary); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 6px; }

/* --- Sidebar search (below categories) --- */
.tcl-sidebar-search { padding: 12px 14px; border-top: 1px solid #f0f0f0; }
.tcl-sidebar-search form { display: flex; flex-direction: column; gap: 8px; }
.tcl-sidebar-search input[type="search"] { border: 1px solid #ddd; border-radius: 6px; padding: 9px 12px; font-size: 13px; width: 100%; outline: none; }
.tcl-sidebar-search input[type="search"]:focus { border-color: var(--tcl-primary); }
.tcl-sidebar-search select { border: 1px solid #ddd; border-radius: 6px; padding: 8px; font-size: 13px; width: 100%; outline: none; background: #f8f8f8; }
.tcl-sidebar-search .tcl-search-btn { background: var(--tcl-primary); color: #fff; border: none; border-radius: 6px; padding: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tcl-sidebar-search .tcl-search-btn:hover { background: var(--tcl-primary-dark); }

/* --- Hero with sidebar - FULL WIDTH, sidebar full height --- */
.tcl-hero-section { padding: 12px 0 8px !important; }
.tcl-hero-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.tcl-category-sidebar { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; position: sticky; top: 20px; }
.tcl-main-column { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* --- Products in right column (beside sidebar) --- */
.tcl-products-wrap { background: transparent; }
.tcl-products-title { font-size: 22px; font-weight: 700; margin: 0 0 12px 0; }
.tcl-products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tcl-product-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 12px; text-align: center; }
.tcl-product-card .tcl-product-img img { width: 100%; height: auto; border-radius: 8px; }
.tcl-product-name { font-size: 13px; font-weight: 600; margin: 8px 0 4px; line-height: 1.3; }
.tcl-product-name a { color: #222; text-decoration: none; }
.tcl-product-price { font-size: 15px; font-weight: 700; color: var(--tcl-primary); margin: 4px 0 8px; }
.tcl-add-cart { display: inline-block; background: var(--tcl-primary); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 20px; border-radius: 6px; text-decoration: none; }
.tcl-add-cart:hover { background: var(--tcl-primary-dark); color: #fff; }

/* Hide theme's own homepage product output (we render our own beside sidebar) */
.home .theme-products, .home .woocommerce-products-header { display: none !important; }

/* Hide theme's blog "Nothing Found" area on homepage - plugin provides all content */
/* Nuclear option: hide everything in the theme content area except our plugin output */
.home #primary .site-main > *:not(.tcl-hero-section):not(.tcl-search-row),
.home #main .entry-content > *:not(.tcl-hero-section):not(.tcl-search-row),
.home .content-area .site-main > div:not([class*="tcl"]),
.home .content-area aside:not([class*="tcl"]),
.home #secondary,
.home .widget-area {
    display: none !important;
}
/* Specifically target "Nothing Found" text and no-results */
.home .no-results,
.home .not-found,
.home article.no-results,
.home section.no-results {
    display: none !important;
}
.tcl-category-sidebar { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 8px 0; }
.tcl-cat-list { list-style: none; margin: 0; padding: 0; }
.tcl-cat-list li a { display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: #333; font-size: 14.5px; text-decoration: none; border-bottom: 1px solid #f5f5f5; }
.tcl-cat-list li:last-child a { border-bottom: none; }
.tcl-cat-list li a:hover { background: #f9f9f9; color: var(--tcl-primary); }
.tcl-cat-icon { font-size: 18px; width: 24px; text-align: center; }
.tcl-badge { font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 4px; color: #fff; }
.tcl-badge.hot { background: #e5484d; }
.tcl-badge.new { background: #22a06b; }
.tcl-arrow { margin-left: auto; color: #bbb; }

/* Sale banner - country colours */
.tcl-banner-wrap { display: flex; flex-direction: column; }
.tcl-sale-banner { position: relative; flex: 1; min-height: 240px; max-height: 280px; border-radius: 14px; overflow: hidden;
    background: linear-gradient(120deg, var(--tcl-primary) 0%, var(--tcl-secondary) 100%);
    display: flex; align-items: center; padding: 20px 30px; }
body.tcl-country-us .tcl-sale-banner { background: linear-gradient(120deg, #B22234 0%, #3C3B6E 100%); }
body.tcl-country-au .tcl-sale-banner { background: linear-gradient(120deg, #1F5C3D 0%, #C9A227 100%); }
.tcl-banner-content { position: relative; z-index: 2; }
.tcl-banner-hello { font-family: Georgia, serif; font-style: italic; font-size: 22px; color: #fff; opacity: 0.9; }
.tcl-banner-title { font-size: 48px; font-weight: 900; line-height: 1; margin: 2px 0; color: #fff; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.tcl-banner-offer { display: inline-block; background: rgba(255,255,255,0.95); color: var(--tcl-primary); font-weight: 800; font-size: 16px; padding: 6px 18px; border-radius: 4px; margin: 8px 0 12px; }
.tcl-banner-btn { display: inline-block; background: #fff; color: var(--tcl-primary); font-weight: 700; padding: 10px 28px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.tcl-banner-btn:hover { background: var(--tcl-secondary); color: #fff; }
.tcl-banner-tag { position: absolute; top: 18px; right: 30px; background: var(--tcl-secondary); border-radius: 50%; width: 120px; height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.tcl-banner-tag strong { font-size: 13px; color: #fff; }
.tcl-banner-tag em { font-size: 12px; color: #fff; font-style: italic; opacity: 0.9; }

/* Trust badges - country accent */
.tcl-trust-badges { display: flex; justify-content: center; gap: 30px; background: #fff; border: 1px solid #eee; border-top: 3px solid var(--tcl-secondary); border-radius: 0 0 14px 14px; padding: 8px; font-size: 12px; font-weight: 700; color: var(--tcl-secondary); }

/* --- COMPACT SINGLE-VIEWPORT: everything must fit one screen, no scrolling --- */
.tcl-hero-section { padding: 12px 0 8px !important; }
/* Tighten theme homepage sections */
.home .tcl-hero-section + * { margin-top: 0 !important; }
/* Product cards ultra-compact */
.home .woocommerce ul.products { margin: 0 !important; }
.home .woocommerce ul.products li.product { margin-bottom: 12px !important; }
.home .woocommerce ul.products li.product img, .home .woocommerce ul.products li.product .attachment-woocommerce_thumbnail { max-height: 120px !important; object-fit: contain; }
.home .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 13px !important; margin: 6px 0 2px !important; }
.home .woocommerce ul.products li.product .price { font-size: 13px !important; margin-bottom: 6px !important; }
.home .woocommerce ul.products li.product .button { padding: 6px 12px !important; font-size: 12px !important; }
/* Section titles compact */
.home .section-title, .home h2.widget-title, .home .home-section-title { font-size: 20px !important; margin: 10px 0 8px !important; }
/* Reduce section padding globally on homepage */
.home .home-section, .home section.widget { padding: 10px 0 !important; margin: 0 !important; }

@media (max-width: 900px) {
    .tcl-hero-grid { grid-template-columns: 1fr; }
    .tcl-category-sidebar { display: none; }
    .tcl-category-sidebar.tcl-open { display: block; }
    .tcl-banner-title { font-size: 40px; }
    .tcl-search-row .tcl-container { flex-wrap: wrap; }
}
