/*
Theme Name: Flatsome GrabbaGun
Template: flatsome
Version: 1.0
Description: GrabbaGun.com inspired design for PRK Arms
*/

/* ═══ GRABBAGUN COLOR SYSTEM ═══ */
:root {
  --gb-dark:    #1c2b39;
  --gb-red:     #c8102e;
  --gb-orange:  #f26522;
  --gb-black:   #111111;
  --gb-gray:    #333333;
  --gb-light:   #f5f5f5;
  --gb-border:  #e0e0e0;
  --gb-white:   #ffffff;
}

/* ═══ FONTS ═══ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Open+Sans:wght@300;400;600;700&display=swap');

body {
  font-family: 'Open Sans', Helvetica Neue, Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
}

h1,h2,h3,h4,h5,h6,
.product-title,
.entry-title,
.woocommerce-loop-product__title,
.widget-title {
  font-family: 'Oswald', Helvetica Neue, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .5px;
}

/* ═══ PROMO TOP BAR ═══ */
#top-bar, .top-bar, .ast-above-header {
  background: #111 !important;
  color: #ccc !important;
  font-size: 12px;
  text-align: center;
  padding: 6px 0;
  font-family: 'Open Sans', sans-serif;
}

/* ═══ HEADER ═══ */
#header,
.header-wrapper,
.flatsome-header,
.site-header,
#masthead {
  background: var(--gb-dark) !important;
  border-bottom: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.5) !important;
  padding: 10px 0 !important;
}

/* Logo */
#logo a, .logo a, .site-title a {
  color: #ffffff !important;
  font-family: 'Oswald', sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

/* Header cart/account icons */
.header-icon, .nav-icon, .cart-icon {
  color: #fff !important;
}
.header-cart-icon .cart-count {
  background: var(--gb-red) !important;
  color: #fff !important;
}

/* ═══ SEARCH BAR (GrabbaGun style — prominent center) ═══ */
.search-form input[type=search],
.flatsome-searchbar input,
#search-input {
  border: 2px solid var(--gb-red) !important;
  border-radius: 3px 0 0 3px !important;
  padding: 10px 15px !important;
  font-size: 14px !important;
  width: 100% !important;
}

.search-submit, button[type=submit].search-submit {
  background: var(--gb-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 3px 3px 0 !important;
  padding: 10px 20px !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  text-transform: uppercase !important;
}

/* ═══ RED NAVIGATION BAR (GrabbaGun's signature) ═══ */
#nav,
.main-nav,
.flatsome-nav,
.navigation-wrapper,
.main-navigation,
nav#site-navigation {
  background: var(--gb-red) !important;
}

.main-nav ul li > a,
.main-navigation ul li a,
nav#site-navigation ul li a,
.nav-menu > li > a {
  color: #ffffff !important;
  font-family: 'Oswald', sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  padding: 12px 16px !important;
  transition: background .2s !important;
}

.main-nav ul li > a:hover,
.main-navigation ul li a:hover,
nav#site-navigation ul li a:hover {
  background: rgba(0,0,0,.15) !important;
  color: #fff !important;
}

/* Dropdown */
.main-nav ul ul,
.main-navigation ul ul {
  background: var(--gb-dark) !important;
  border-top: 2px solid var(--gb-red) !important;
}

/* ═══ HERO BANNER ═══ */
.home .banner, .home .wp-block-cover {
  background: var(--gb-dark);
}

/* ═══ TRUST BAR ═══ */
.gb-trust-bar {
  background: var(--gb-light);
  border-bottom: 1px solid var(--gb-border);
  padding: 10px 0;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gb-gray);
}

/* ═══ PRODUCT CARDS ═══ */
.woocommerce ul.products li.product {
  border: 1px solid var(--gb-border) !important;
  border-radius: 2px !important;
  padding: 12px !important;
  background: #fff !important;
  transition: box-shadow .2s !important;
}

.woocommerce ul.products li.product:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,.1) !important;
}

/* Product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Oswald', sans-serif !important;
  font-size: 14px !important;
  color: var(--gb-gray) !important;
  line-height: 1.3 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
  color: var(--gb-red) !important;
}

/* Price */
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product span.price {
  color: var(--gb-gray) !important;
  font-family: 'Open Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.woocommerce ul.products li.product .price ins .amount {
  color: var(--gb-red) !important;
}

/* Sale badge */
.woocommerce ul.products li.product .onsale {
  background: var(--gb-red) !important;
  color: #fff !important;
  border-radius: 2px !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 700 !important;
  font-size: 11px !important;
}

/* Add to cart */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
  background: var(--gb-red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 2px !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: .5px !important;
  padding: 9px 16px !important;
  width: 100% !important;
  text-align: center !important;
  transition: background .2s !important;
}

.woocommerce ul.products li.product .button:hover {
  background: #a00d24 !important;
}

/* ═══ SINGLE PRODUCT ═══ */
.woocommerce div.product .product_title {
  font-family: 'Oswald', sans-serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: var(--gb-dark) !important;
}

.woocommerce div.product p.price .amount {
  color: var(--gb-red) !important;
  font-size: 26px !important;
  font-weight: 700 !important;
}

.woocommerce div.product .single_add_to_cart_button {
  background: var(--gb-red) !important;
  color: #fff !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  text-transform: uppercase !important;
  padding: 14px 32px !important;
  border-radius: 2px !important;
  border: none !important;
}

.woocommerce div.product .single_add_to_cart_button:hover {
  background: #a00d24 !important;
}

/* ═══ BUTTONS GLOBAL ═══ */
.ux-btn, .button, input[type=submit],
.woocommerce a.button, .woocommerce button.button {
  background: var(--gb-red) !important;
  color: #fff !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  border-radius: 2px !important;
}

/* ═══ FOOTER ═══ */
footer#footer, .site-footer, #colophon {
  background: var(--gb-dark) !important;
  color: #ccc !important;
  border-top: 3px solid var(--gb-red) !important;
  padding: 40px 0 20px !important;
}

footer a, .site-footer a { color: #ccc !important; }
footer a:hover, .site-footer a:hover { color: var(--gb-red) !important; }

.footer-widget-area .widget-title,
footer .widget-title {
  font-family: 'Oswald', sans-serif !important;
  color: #fff !important;
  font-size: 15px !important;
  text-transform: uppercase !important;
  border-bottom: 1px solid var(--gb-red) !important;
  padding-bottom: 8px !important;
  margin-bottom: 15px !important;
  background: transparent !important;
}

.footer-bottom, .ast-footer-copyright {
  background: #0e1c27 !important;
  color: #777 !important;
  text-align: center !important;
  padding: 12px 0 !important;
  font-size: 12px !important;
}

/* ═══ BREADCRUMBS ═══ */
.woocommerce .woocommerce-breadcrumb {
  background: var(--gb-light);
  border-bottom: 1px solid var(--gb-border);
  padding: 8px 20px;
  font-size: 12px;
  color: #888;
}

/* ═══ STOCK STATUS ═══ */
.in-stock { color: #2e7d32 !important; font-weight: 700 !important; }
.out-of-stock { color: var(--gb-red) !important; font-weight: 700 !important; }

/* ═══ GRABBAGUN PROMO STRIP ═══ */
.gb-promo-strip {
  background: var(--gb-red);
  color: #fff;
  text-align: center;
  padding: 8px 0;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* ═══ FORCE OVERRIDES (Flatsome specificity) ═══ */
.header-main { background-color: var(--gb-dark) !important; }
.header-top { background-color: #111 !important; }

.nav-bar { background-color: var(--gb-red) !important; }
.nav-bar .nav > li > a { 
  color: #fff !important; 
  font-family: 'Oswald', sans-serif !important;
}

#top-bar { background: #111 !important; }
.ux-offcanvas .nav > li > a { color: #333 !important; }

/* Product grid 4 col */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4,1fr) !important;
  gap: 14px !important;
}
@media(max-width:768px){
  .woocommerce ul.products { grid-template-columns: repeat(2,1fr) !important; }
}
