/*
Theme Name: Stuff VS Things
Template: rehub-theme
Version: 1.0.0
Author: Unbroken Ads LLC
*/

/* Brand label in product loop */
.svt-brand {
    margin: 6px 0 10px 0;
    font-size: 16px;
    line-height: 1.3;
}
.svt-brand,
.svt-brand a {
    color: #1668c7;
    font-weight: 700;
    text-decoration: underline;
    text-transform: uppercase !important;
}
.svt-brand a:hover {
    color: #0d4a94;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Brand archive sidebar */
.svt-brand-archive-sidebar .svt-brand-archive-logo {
    margin-bottom: 16px;
}
.svt-brand-archive-sidebar .svt-brand-archive-shop-link {
    margin: 0 0 28px;
    text-align: center;
}
.svt-brand-archive-sidebar .term-description {
    margin-bottom: 20px;
}

.svt-brand-archive-title {
    text-align: left;
    margin: 0 0 20px;
}

.svt-brand-shop-btn {
    display: inline-block;
    padding: 0.65em 1.1em;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff !important;
    background: #f24040;
    border-radius: 4px;
}
.svt-brand-shop-btn:hover {
    color: #fff !important;
    opacity: 0.9;
}

/* Brand archive logo */
.svt-brand-archive-logo {
    text-align: center;
}
.svt-brand-archive-logo img {
    display: inline-block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* Product grid cards — Rehub uses div.products, not ul.products */
.woocommerce .products .product.col_item {
    border: 1px solid #888888 !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16) !important;
    background: #fff;
}
.woocommerce .products .product.col_item .border-top {
    border-top-color: #888888 !important;
}

/* Dynamic price filter (above attribute filters box) */
.svt-dynamic-price-filter {
    margin-bottom: 16px;
}
.svt-dynamic-price-filter .title {
    font-weight: 700;
    font-size: 16px;
    padding-bottom: 8px;
    margin-bottom: 6px;
}

/* Dynamic attribute filters box */
.svt-attribute-filters-box {
    border: 1px solid #888888;
    padding: 16px 14px;
    margin-bottom: 20px;
    background: #fff;
}
.svt-attribute-filters-box .svt-dynamic-layered-nav {
    margin-bottom: 18px;
}
.svt-attribute-filters-box .svt-dynamic-layered-nav:last-child {
    margin-bottom: 0;
}
.svt-attribute-filters-box .widget-title {
    font-weight: 700;
    font-size: 16px;
    padding-bottom: 8px;
    margin-bottom: 6px;
}

/* Scroll affordance for long attribute lists (e.g. Contaminant Removal) */
.svt-attribute-filters-box .woocommerce-widget-layered-nav-list {
    max-height: 150px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #888888 #f0f0f0;
    padding-right: 4px;
}
.svt-attribute-filters-box .woocommerce-widget-layered-nav-list::-webkit-scrollbar {
    width: 8px;
}
.svt-attribute-filters-box .woocommerce-widget-layered-nav-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}
.svt-attribute-filters-box .woocommerce-widget-layered-nav-list::-webkit-scrollbar-thumb {
    background: #888888;
    border-radius: 4px;
}
.svt-attribute-filters-box .svt-dynamic-layered-nav.svt-is-scrollable {
    position: relative;
    padding-bottom: 22px;
}
.svt-attribute-filters-box .svt-dynamic-layered-nav.svt-is-scrollable .woocommerce-widget-layered-nav-list {
    box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid #e0e0e0;
}
.svt-attribute-filters-box .svt-dynamic-layered-nav.svt-is-scrollable::after {
    content: 'Scroll for more';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #666666;
    text-align: center;
    pointer-events: none;
}

/* Shop archive toolbar: breadcrumbs, result count, sorting */
nav.woocommerce-breadcrumb,
nav.woocommerce-breadcrumb a {
    font-weight: 700;
    color: #111111 !important;
}

.woocommerce .woocommerce-result-count {
    font-weight: 700 !important;
    font-style: normal !important;
    color: #111111;
}

.woocommerce .woocommerce-ordering .nice-select,
.woocommerce .woocommerce-ordering select.orderby {
    border-color: #888888 !important;
}

.woocommerce .woocommerce-ordering .nice-select:hover,
.woocommerce .woocommerce-ordering select.orderby:hover {
    border-color: #666666 !important;
}

/* Tighter gap between sort bar and product grid */
.woocommerce .woocommerce-ordering {
    margin-bottom: 1em !important;
}

.woocommerce .products {
    margin-top: 0.5em !important;
}
