/*
Theme Name: Circuits
Template: shoptimizer
Description: Circuits Child Theme for Shoptimizer
Author: Jules
Version: 1.0.0
*/
:root {
	--tb-theme-body: #f5f5f5;
	--tb-theme-color: #fa4f26;
	--tb-theme-color-hover: #e63b12; /* darkened fa4f26 */
	--tb-theme-second-color: #fcd537;
	--tb-theme-second-color-hover: #e8c123; /* darkened fcd537 */
	--tb-header-mobile-bg: #fa4f26;
	--tb-header-mobile-color: #fff;
	--tb-bg-buy-now: #fcd537;

	/* Shoptimizer overrides based on Besa colors */
	--shopt-color-primary: var(--tb-theme-color);
	--shopt-color-primary-hover: var(--tb-theme-color-hover);
	--shopt-color-secondary: var(--tb-theme-second-color);
	--shopt-color-secondary-hover: var(--tb-theme-second-color-hover);
	--shopt-color-body-bg: var(--tb-theme-body);
}

body {
    background-color: var(--tb-theme-body);
}

/* Header & Navigation */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.main-navigation ul li a {
    color: #333;
    font-weight: 600;
}

.main-navigation ul li a:hover {
    color: var(--tb-theme-color);
}

/* Buttons */
button, input[type="button"], input[type="reset"], input[type="submit"], .button, .added_to_cart {
    background-color: var(--tb-theme-color);
    color: #fff;
    border-radius: 4px;
}

button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, .button:hover, .added_to_cart:hover {
    background-color: var(--tb-theme-color-hover);
    color: #fff;
}

/* Product Grid */
.products .product {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    transition: all 0.3s ease;
}

.products .product:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.woocommerce-loop-product__title {
    font-size: 14px;
    color: #333;
}

.price {
    color: var(--tb-theme-color);
    font-weight: 700;
}

/* Structural overrides for Home 1 Layout */
.circuits-home-1 .circuits-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.circuits-hero-section {
    background-color: var(--tb-theme-color);
    padding: 60px 0;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.circuits-hero-section h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 10px;
}

.circuits-categories {
    margin-bottom: 50px;
}

.circuits-categories h3,
.circuits-flash-sale h3,
.circuits-recent-products h3 {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #333;
}

.circuits-categories h3::after,
.circuits-flash-sale h3::after,
.circuits-recent-products h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--tb-theme-color);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.section-heading h3 {
    margin-bottom: 0;
    border-bottom: none;
}

.section-heading h3::after {
    bottom: -1px;
}

.section-heading .view-all {
    color: var(--tb-theme-color);
    font-weight: 600;
}

/* Make WooCommerce native grid look like Besa */
.circuits-home-1 ul.products li.product {
    text-align: center;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.circuits-home-1 ul.products li.product:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: var(--tb-theme-color);
}

.circuits-home-1 ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    padding: 10px 0;
}

.circuits-home-1 ul.products li.product .price {
    color: var(--tb-theme-color);
    font-size: 16px;
    font-weight: bold;
}

/* Besa Header Layout CSS */
.circuits-besa-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.circuits-top-bar {
    background-color: var(--tb-theme-color);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}
.circuits-top-bar .col-full {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.circuits-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}
.circuits-search-box {
    flex: 1;
    margin: 0 50px;
}
.circuits-search-box form {
    display: flex;
    border: 2px solid var(--tb-theme-color);
    border-radius: 4px;
    overflow: hidden;
}
.circuits-search-box input[type="search"] {
    border: none;
    padding: 10px 15px;
    width: 100%;
}
.circuits-search-box button[type="submit"] {
    border-radius: 0;
}
.circuits-header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 24px;
}
.circuits-header-icons a {
    color: #333;
    position: relative;
}
.circuits-header-icons a:hover {
    color: var(--tb-theme-color);
}
.circuits-header-icons .count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--tb-theme-color);
    color: #fff;
    font-size: 11px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.circuits-nav-bar {
    background: #222;
}
.circuits-nav-bar .primary-navigation a {
    color: #fff;
    padding: 15px 20px;
    display: inline-block;
    font-weight: 600;
}
.circuits-nav-bar .primary-navigation a:hover {
    background: var(--tb-theme-color);
}
/* Fix header overrides to ensure icon fonts load via proper @font-face from local directory if not enqueued by Besa CSS correctly */
@font-face {
  font-family: 'FontAwesome';
  src: url('./assets/fonts/fontawesome/fa-solid-900.eot');
  src: url('./assets/fonts/fontawesome/fa-solid-900.eot?#iefix') format('embedded-opentype'),
       url('./assets/fonts/fontawesome/fa-solid-900.woff2') format('woff2'),
       url('./assets/fonts/fontawesome/fa-solid-900.woff') format('woff'),
       url('./assets/fonts/fontawesome/fa-solid-900.ttf') format('truetype'),
       url('./assets/fonts/fontawesome/fa-solid-900.svg#fontawesome') format('svg');
  font-weight: normal;
  font-style: normal;
}
