/*
 Theme Name:   Interspares
 Theme URI:    https://interspares.ormsy.co.za
 Description:  Astra child theme for Interspares - automotive spare parts store
 Author:       OpenRoad Media
 Template:     astra
 Version:      1.0.1
 Text Domain:  interspares
*/

:root {
    --is-lime: #a3dc13;
    --is-lime-dark: #86b80c;
    --is-black: #0b0b0b;
    --is-ink: #1c1c1c;
    --is-text: #3a3a3a;
    --is-muted: #6b6b6b;
    --is-line: #e6e6e6;
    --is-soft: #f5f6f2;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, .entry-title, .woocommerce-loop-product__title, .resto-hero-title {
    font-family: "Fredoka", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0;
}

/* ==========================================================================
   Top bar
   ========================================================================== */

.is-topbar {
    background: var(--is-black);
    color: #d6d6d6;
    font-size: 13px;
}
.is-topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 7px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    justify-content: space-between;
}
.is-topbar a { color: #fff; }
.is-topbar a:hover { color: var(--is-lime); }
.is-topbar strong { color: var(--is-lime); font-weight: 600; }

/* ==========================================================================
   Header
   ========================================================================== */

.ast-primary-header-bar { border-bottom: 3px solid var(--is-lime); }
.main-header-menu .menu-link { font-weight: 600; }
.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .current-menu-item > .menu-link { color: var(--is-lime-dark); }
.is-header-search { min-width: 280px; }
.is-header-search form { display: flex; }
.is-header-search input[type="search"] {
    flex: 1;
    border: 1px solid var(--is-line);
    border-right: 0;
    border-radius: 4px 0 0 4px;
    padding: 8px 12px;
    font-size: 14px;
}
.is-header-search button {
    background: var(--is-black);
    color: #fff;
    border: 0;
    border-radius: 0 4px 4px 0;
    padding: 0 16px;
    font-weight: 600;
}
.is-header-search button:hover { background: var(--is-lime); color: var(--is-black); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.wp-block-button__link, .ast-button, .button, .resto-hero-btn {
    background: var(--is-black);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover, .wp-block-button__link:hover, .resto-hero-btn:hover {
    background: var(--is-lime);
    color: var(--is-black);
}
.resto-hero-btn { background: var(--is-lime); color: var(--is-black) !important; }
.resto-hero-btn:hover { background: #fff; }

/* ==========================================================================
   Home
   ========================================================================== */

.is-hero .resto-hero {
    background-color: var(--is-black);
    background-image:
        radial-gradient(circle at 12px 0, transparent 9px, rgba(163, 220, 19, .28) 10px, rgba(163, 220, 19, .28) 11px, transparent 12px);
    background-size: 24px 14px;
}
.is-hero .resto-hero-overlay {
    background: linear-gradient(90deg, rgba(11, 11, 11, .2) 0%, var(--is-black) 22%, var(--is-black) 78%, rgba(11, 11, 11, .2) 100%);
}
.is-hero .resto-hero-title span, .is-lime { color: var(--is-lime); }

.is-tiles .wp-block-image { margin: 0; }
.is-tiles .wp-block-image img {
    border: 1px solid var(--is-line);
    border-radius: 10px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.is-tiles .wp-block-image a:hover img {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .1);
}

.is-chips { gap: 8px; }
.is-chips .wp-block-button__link {
    background: #fff;
    color: var(--is-ink);
    border: 1px solid var(--is-line);
    font-size: 14px;
    padding: 8px 16px;
}
.is-chips .wp-block-button__link:hover { background: var(--is-lime); border-color: var(--is-lime); }

.is-branches h3 { margin-bottom: 6px; font-size: 18px; }
.is-branches p { font-size: 14px; line-height: 1.6; margin-bottom: 0; }
.is-branch {
    background: #fff;
    border: 1px solid var(--is-line);
    border-top: 3px solid var(--is-lime);
    border-radius: 8px;
    padding: 18px 20px;
    height: 100%;
}

/* ==========================================================================
   Shop
   ========================================================================== */

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    line-height: 1.35;
    color: var(--is-ink);
    min-height: 3.9em;
}
.woocommerce ul.products li.product .price { color: var(--is-ink); font-weight: 700; }
.woocommerce ul.products li.product .is-loop-sku { font-size: 12px; color: var(--is-muted); margin: 2px 0 6px; }
.woocommerce ul.products li.product a img { background: #fff; border-radius: 6px; }
.woocommerce span.onsale { background: var(--is-lime); color: var(--is-black); }

.woocommerce div.product .product_title { font-size: 26px; line-height: 1.25; }
.woocommerce div.product p.price { color: var(--is-ink); font-weight: 700; }
.is-branch-note {
    margin: 18px 0;
    padding: 12px 16px;
    background: var(--is-soft);
    border-left: 3px solid var(--is-lime);
    font-size: 14px;
}

.widget_layered_nav select, .woocommerce-widget-layered-nav-dropdown { width: 100%; }
#secondary .widget-title { font-size: 16px; border-bottom: 2px solid var(--is-lime); padding-bottom: 6px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.is-footer { background: var(--is-black); color: #bdbdbd; font-size: 14px; line-height: 1.7; }
.is-footer a { color: #e6e6e6; }
.is-footer a:hover { color: var(--is-lime); }
.is-footer-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 20px 36px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
}
.is-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.is-footer ul { list-style: none; margin: 0; padding: 0; }
.is-footer li { margin-bottom: 6px; }
.is-footer-logo {
    display: inline-block;
    background: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 14px;
}
.is-footer-logo img { display: block; width: 170px; height: auto; }
.is-footer-bottom {
    border-top: 1px solid #262626;
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}

@media (max-width: 921px) {
    .is-footer-main { grid-template-columns: 1fr 1fr; }
    .is-header-search { min-width: 0; width: 100%; }
}
@media (max-width: 544px) {
    .is-footer-main { grid-template-columns: 1fr; }
    .is-topbar-inner { justify-content: center; text-align: center; }
}

/* ==========================================================================
   resto-layouts overrides
   ========================================================================== */

.is-hero .resto-hero { margin: 0; max-width: none; border-radius: 0; }
.resto-cta-dark { background: var(--is-black); }
.resto-cta-dark .resto-cta-title { color: #fff; }
.resto-cta-dark .resto-cta-subtitle { color: #cfcfcf; }
.resto-cta-btn.resto-cta-btn-primary { background: var(--is-lime); color: var(--is-black); border-color: var(--is-lime); border-radius: 999px; }
.resto-cta-btn.resto-cta-btn-primary:hover { background: #fff; border-color: #fff; color: var(--is-black); }
.resto-cta-btn.resto-cta-btn-secondary { border-radius: 999px; }
.resto-cta-btn.resto-cta-btn-secondary:hover { border-color: var(--is-lime); color: var(--is-lime); }
.resto-stats-bar .resto-stat-number { color: var(--is-lime); }
