/*
Theme Name: Shoptimizer Child Theme
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: shoptimizer
Version: 1.2.2
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/

.wp-block-button__link.has-text-align-left { text-align: left; }
.wp-block-button__link { border: 1px solid transparent; }
.wp-block-button__link:hover { border: 1px solid rgba(255, 255, 255,.5); box-shadow: rgba(255, 255, 255,.5) 0 0 5px; }
#content { background-repeat: no-repeat; background-position: 50% 50%; background-color: rgba(0, 0, 0, .66); background-image: linear-gradient( 0deg, rgba(0, 0, 0, .66)), url('/wp-content/uploads/2026/03/barnwood.webp'); background-size: cover; padding-bottom: 1rem; }

/* header */
#menu-secondary-menu { display: flex; flex-wrap: wrap; align-items: center; margin: 4px 0; padding: 0; list-style: none; }
#menu-secondary-menu li { margin: 2px 0; padding: 0 8px; display: flex; align-items: center; }
#menu-secondary-menu li:last-child { position: relative; padding-left: 35px; }
#menu-secondary-menu li:last-child::before { content: "|"; position: absolute; left: 5px; color: inherit; opacity: 0.7; }
#menu-secondary-menu a { text-decoration: none; color: inherit; }
#menu-secondary-menu a:hover { text-decoration: underline; }
.top-bar-right.woocommerce.widget_product_search .search-field { background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.15); }
.top-bar-right.woocommerce.widget_product_search .search-field::placeholder { color: rgba(255, 255, 255, 0.6); }
.top-bar-right.woocommerce.widget_product_search .search-field:focus { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.4); }
.top-bar-right.woocommerce.widget_product_search button { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
.top-bar-right.woocommerce.widget_product_search button:hover { background: rgba(255, 255, 255, 0.25); }

/* main nav */
.menu-toggle .bar { background-color: #fff !important; }
.menu-toggle .bar-text { color: #fff !important; }
.main-navigation ul li.full-width > .sub-menu-wrapper { background-color: #191a20 !important; }
.main-navigation ul li#nav-menu-item-97.full-width > .sub-menu-wrapper > .container > ul.sub-menu { justify-content: left !important; flex-wrap: wrap; padding: 0; }
.main-navigation ul li#nav-menu-item-97.full-width > .sub-menu-wrapper > .container > ul.sub-menu > li { width: 25% !important; border-width: 0 !important; padding: 0; }
#nav-menu-item-97 .sub-menu-link { background-color: #303136; padding: 1rem; margin: .5rem; }
#nav-menu-item-97 .sub-menu-link span { display: block; color: #b8b8b8; text-transform: uppercase; font-size: .8rem; }
#nav-menu-item-97 .sub-menu-link:hover span { text-decoration: none; }
#nav-menu-item-97 .sub-menu-link span.sub { margin-top: 1rem; color: #fff; text-transform: none; font-size: 1rem; }
#nav-menu-item-97 .sub-menu-link:hover span.sub { color: var(--primary); }

/* sidebars */
#secondary { background: rgba(0,0,0,.75); padding: 1rem; }
#secondary .widget-title { color: #fff; }
#secondary a { color: #fff; }

/* blog */
.grid article { background: rgba(0,0,0,.75); padding: 1rem; }
.grid article, .grid article a { color: #fff !important; }
.post .entry-header .posted-on, .post-meta a { color: #ccc; }

/* woo */
option { color: #000000 !important; }
select { background-color: #fff; padding: .25rem !important; }
fieldset legend { color: var(--primary-subtle); }
.form-row label { color: #fff; }

.wc-block-components-form .wc-block-components-text-input label, .wc-block-components-text-input label { color: #777777; }
.woocommerce-MyAccount-navigation li a:hover, .woocommerce-MyAccount-navigation li.is-active a { color: #ccc !important; }
.woocommerce-pagination .page-numbers li .page-numbers.current { color: rgba(255,255,255,.5) !important; }
.woocommerce-pagination .page-numbers li .page-numbers { color: #fff; }
.woocommerce-result-count { color: #ccc; }
.page-numbers .prev:after, .woocommerce-pagination .prev:after, .page-numbers .next:after, .woocommerce-pagination .next:after { background-color: #fff; }
.woocommerce-message { background-color: var(--primary); }
.woocommerce-MyAccount-navigation ul li a { color: #fff !important; }
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { background: #fff !important; }

ul.products li.product::before { visibility: visible !important; opacity: 1 !important; }
/* body:not(.single-product) ul.products li.product:not(:hover) .woocommerce-LoopProduct-link, body:not(.single-product) li:not(:hover).menu-item-product p.product__categories a, */
/* body:not(.single-product) li:not(:hover).product p.product__categories a, body:not(.single-product) li:not(:hover).menu-item-product p.product__categories, */
/* li:not(:hover).product p.product__categories, ul.products li:not(:hover).product .price, .woocommerce-MyAccount-navigation ul li a { color: #fff !important; } */
.product-category .cat-image-wrapper { aspect-ratio: 1 / 1; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; height: auto !important; }
.product-category .cat-image-wrapper img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.wc-block-components-product-image { aspect-ratio: 1 / 1; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.wc-block-components-product-image a { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.wc-block-components-product-image img { width: 100%; height: 100%; object-fit: contain !important; object-position: center; }
.woocommerce div.product div.images a img { height: 400px !important; object-fit: contain; object-position: top; }
.call-back-feature button, .site-content div.call-back-feature button:hover { color: #fff !important; }
.wc-block-product { display: flex; flex-direction: column; height: 100%; }
.wc-block-product-template__responsive li { display: flex; }
.wc-block-product .wp-block-woocommerce-product-button { margin-top: auto; }
.price ins { padding: 3px 15px; background-image: radial-gradient(ellipse, rgba(255, 255, 255, 1.95) 66%, transparent 100%); }
ul.products li.product { background: #fff; padding: .5rem; }

.shoptimizer-plp-image-wrapper { aspect-ratio: 1 / 1; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; height: auto !important; }
.shoptimizer-plp-image-wrapper img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
body.single-product .product, body.single-product .product p, body.single-product .product span, body.single-product .product li, body.single-product .product label, input, select, option, textarea { color: #000 !important; }
.onsale, .product-label, .wc-block-grid__product-onsale, body.single-product .product span.product-label { background-color: var(--primary) !important; color: #ffffff !important; }
body.single-product .product span.onsale { padding: 5px; color: #ffffff !important; }
.widget_product_search input { color: #b8b8b8 !important; }
body.single-product ul.products li.product .button { opacity: 1; }
body.single-product ul.products li.product::before { visibility: visible; opacity: 1; }
.single-product a, .single-product h1 { color: var(--primary); }
.related ul.products { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.related ul.products li.product { width: auto; height: 100%; }

.wp-block-woocommerce-checkout-order-summary-block, .wc-block-components-address-card, .woocommerce-order-details { background: rgba(0,0,0,.75); }
.wc-block-components-address-card address *, .woocommerce-order-details *  { color: #fff !important; }
.price del { color: #dedede; }
.wpg-paypal-cc-field label { color: #ffffff !important; }

/* cf7 forms */
.wpcf7-form-control-wrap { margin-bottom: .5rem; display: block; }
.wpcf7-form-control-wrap input, .wpcf7-form-control-wrap select { display: block; width: 100%; background-color: #fff; }

/* footer */
.site-footer { padding: 3rem 0; }
.site-footer .col-full { display: block !important; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.site-footer .footer-logo { width: 100%; max-width: 300px; height: auto; }
.site-footer .footer-logo-divider { display: flex; align-items: center; margin-bottom: 2.5rem; }
.site-footer .footer-logo-divider .line { flex-grow: 1; height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.9), transparent); }
.site-footer .logo-link { padding: 0 2rem; display: inline-block; }
.site-footer .widget li, .site-footer .widget p { font-size: 1rem; }
.site-footer .footer-nav-grid { display: grid; gap: 2rem; text-align: center; margin-bottom: 3rem; }
.site-footer .widget .widget-title { margin-bottom: 1rem; font-size: .85rem; font-weight: 600; }
.site-footer .menu { list-style: none; padding: 0; margin: 0; }
.site-footer .menu li { margin-bottom: 0.75rem; }
.site-footer .footer-link { color: inherit; text-decoration: none; }
.site-footer .footer-link:hover { text-decoration: underline; }
.site-footer .footer-bottom { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 1rem; font-size: 0.90rem; }
.site-footer .footer-copy a { margin-left: 0.5rem; }

@media (min-width: 768px) {
  .site-footer .footer-nav-grid { grid-template-columns: repeat(4, 1fr); text-align: left; gap: 2rem 3rem; }
  .site-footer .footer-bottom { justify-content: space-between; text-align: left; }
}

@media (min-width: 992px) {
  .main-navigation ul.menu > li:not(.full-width) ul.sub-menu { width: max-content; padding-right: 5px;}
  .main-navigation ul.menu > li:not(.full-width) ul.sub-menu > li > a { padding-right: 30px;}
  .main-navigation ul.menu > li:not(.full-width) ul > li:focus-within > .sub-menu-wrapper, .main-navigation ul.menu > li:not(.full-width) ul > li:hover > .sub-menu-wrapper { left: 310px !important; }
  .main-navigation ul.menu > li:not(.full-width) ul li.menu-item-has-children > a:after { background-color: #fff; }
}

@media (min-width: 1200px) {
  .site-footer .footer-nav-grid { grid-template-columns: repeat(5, 1fr); }
  .site-footer .footer-nav-grid .span-2 { grid-column: span 2; }
  .site-footer .widget_products .menu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 2rem; }
}

/* utility classes for var(--primary) */
:root {
  --primary: #800000;
  --primary-rgb: 128, 0, 0;
  --primary-subtle: #ee0000;
  --primary-text-on-dark: #fff;
  --primary-text-on-subtle: #000;
}
/* *** backgrounds *** */
.bg-primary { background-color: var(--primary) !important; color: var(--primary-text-on-dark) !important; }
.bg-primary-subtle { background-color: var(--primary-subtle) !important; color: var(--primary-text-on-subtle) !important; }

/* *** opacity variants *** */
.bg-primary-10  { background-color: rgba(var(--primary-rgb), 0.10) !important; }
.bg-primary-20  { background-color: rgba(var(--primary-rgb), 0.20) !important; }
.bg-primary-30  { background-color: rgba(var(--primary-rgb), 0.30) !important; }
.bg-primary-40  { background-color: rgba(var(--primary-rgb), 0.40) !important; }
.bg-primary-50  { background-color: rgba(var(--primary-rgb), 0.50) !important; }
.bg-primary-60  { background-color: rgba(var(--primary-rgb), 0.60) !important; }
.bg-primary-70  { background-color: rgba(var(--primary-rgb), 0.70) !important; }
.bg-primary-80  { background-color: rgba(var(--primary-rgb), 0.80) !important; }
.bg-primary-90  { background-color: rgba(var(--primary-rgb), 0.90) !important; }

/* *** text *** */
.text-white { color: #fff !important; }
.text-primary { color: var(--primary) !important; }
.text-primary-subtle { color: var(--primary-subtle) !important; }

/* *** hover helpers *** */
.hover-text-primary:hover { color: var(--primary) !important; }
.hover-text-primary-subtle:hover { color: var(--primary-subtle) !important; }

/* *** border *** */
.border-primary { border-color: var(--primary) !important; }
.border-primary-subtle { border-color: var(--primary-subtle) !important; }

/* *** opacity borders *** */
.border-primary-10  { border-color: rgba(var(--primary-rgb), 0.10) !important; }
.border-primary-20  { border-color: rgba(var(--primary-rgb), 0.20) !important; }
.border-primary-30  { border-color: rgba(var(--primary-rgb), 0.30) !important; }
.border-primary-40  { border-color: rgba(var(--primary-rgb), 0.40) !important; }
.border-primary-50  { border-color: rgba(var(--primary-rgb), 0.50) !important; }
.border-primary-60  { border-color: rgba(var(--primary-rgb), 0.60) !important; }
.border-primary-70  { border-color: rgba(var(--primary-rgb), 0.70) !important; }
.border-primary-80  { border-color: rgba(var(--primary-rgb), 0.80) !important; }
.border-primary-90  { border-color: rgba(var(--primary-rgb), 0.90) !important; }

/* *** button *** */
.btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; color: var(--primary-text-on-dark) !important; }
.btn-primary:hover, .btn-primary:focus { background-color: var(--primary-subtle) !important; border-color: var(--primary) !important; color: var(--primary-text-on-subtle) !important; }
.btn-primary:disabled, .btn-primary.disabled { background-color: rgba(var(--primary-rgb), 0.40) !important; border-color: rgba(var(--primary-rgb), 0.40) !important; color: #fff !important; }

/* *** utility hover *** */
.hover-bg-primary:hover { background-color: var(--primary) !important; color: var(--primary-text-on-dark) !important; }
.hover-bg-primary-subtle:hover { background-color: var(--primary-subtle) !important; color: var(--primary-text-on-subtle) !important; }
.hover-border-primary:hover { border-color: var(--primary) !important; }
