/*
Theme Name: Budget Steel Divi Theme
Theme URI: http://www.elegantthemes.com/gallery/divi/
Template: Divi
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Version: 1.09

*/


/* ------------------------------------------- /
/         Search bar in header                /
/ ------------------------------------------- */

#header-product-search form {
	display: flex;
    justify-content: space-between;
    flex-direction: row;
	gap: 10px;
}
#header-product-search input {
	height: 40px;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 18px;
    font-weight: 500;
	border: none;
	border-radius: 40px;
	background-color: white;
}
#header-product-search label {
	flex: 1;
}
#header-product-search input.search-field {
	width: 100%;
}
#header-product-search input.search-submit {
	border-radius: 40px;
	text-transform: uppercase;
	font-weight: 700;
	color: #FFFFFF;
	background-color: #497637;
	cursor: pointer;
}

#header-product-search input.search-submit:hover {
	background-color: #FFFFFF;
	color: #497637;
}


/* ------------------------------------------- /
/         Gravity forms styles                /
/ ------------------------------------------- */

input.button[type=submit].gform_button  {
	font-family: 'Oswald', Helvetica, Arial, Lucida, sans-serif!important;
	font-size: 16px!important;
	border-radius: 40px!important;
	text-transform: uppercase!important;
	background-color: #95c93d!important;
	color: #00245d!important;
}

input.button[type=submit].gform_button:hover  {
	background-color: #497637!important;
	color: #FFFFFF!important;
}

/* ------------------------------------------- /
/         Related product styles               /
/ ------------------------------------------- */

.wc-prl-recommendations .woocommerce-loop-product__title {
	font-weight: 600!important;
	font-size: 12px!important;
	line-height: 1.2 !important;
	color: #00245D !important;
}

/* =========================================
   BUDGET STEEL SUB CATEGORY GRID
   Class used on row: fd-subcats
========================================= */

/* Main grid */
.fd-subcats ul.products {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 28px;
  row-gap: 28px;
  margin: 20px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Remove Woo clearing elements */
.fd-subcats ul.products:before,
.fd-subcats ul.products:after {
  display: none !important;
  content: none !important;
}

/* Reset Woo default floats and widths */
.fd-subcats ul.products li.product,
.fd-subcats ul.products li.product-category {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  clear: none !important;
  list-style: none !important;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #d9dee7;
  padding: 22px 22px 18px;
  text-align: center;
  transition: all 0.2s ease;
}

/* Hover */
.fd-subcats ul.products li.product-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(5, 32, 73, 0.10);
  border-color: #b9c6d8;
}

/* Link wrapper */
.fd-subcats ul.products li.product-category a {
  display: block;
  text-decoration: none !important;
}

/* Images */
.fd-subcats ul.products li.product-category img {
  display: block;
  width: 100%;
  max-width: 220px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto 16px;
}

/* Product category heading styling */
.fd-subcats ul.products li.product-category a,
.fd-subcats ul.products li.product-category a h2 {
  color: #00245d !important; /* BS navy */
  text-decoration: none !important;
}

.fd-subcats ul.products li.product-category h2 {
  font-size: 20px !important;   /* approx 15pt desktop */
  line-height: 1.15em;
  text-align: center;
  margin: 0;
}

/* Tablet */
@media only screen and (max-width: 1180px) {
  .fd-subcats ul.products li.product-category h2 {
    font-size: 17px !important;
    line-height: 1.15em;
  }
}

/* Mobile */
@media only screen and (max-width: 767px) {
  .fd-subcats ul.products li.product-category h2 {
    font-size: 15px !important;
    line-height: 1.2em;
  }
}

/* Count */
.fd-subcats ul.products li.product-category .count {
  display: block;
  margin-top: 8px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #082b66 !important;
  font-size: 15px;
  font-weight: 700;
}

/* Optional divider above heading */
.fd-subcats ul.products li.product-category h2:before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 0 auto 14px;
  background: #082b66;
  opacity: 0.18;
}

/* =========================================
   fd-subcats – force 2 columns on wide tablet
========================================= */
@media only screen and (min-width: 768px) and (max-width: 1180px) {

  .fd-subcats ul.products.columns-4,
  .fd-subcats ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
    width: 100% !important;
  }

  .fd-subcats ul.products li.product-category,
  .fd-subcats ul.products.columns-4 li.product-category,
  .fd-subcats ul.products[class*="columns-"] li.product-category {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px 20px 16px !important;
  }

  .fd-subcats ul.products li.product-category.first,
  .fd-subcats ul.products li.product-category.last,
  .fd-subcats ul.products li.product-category:nth-child(2n+1),
  .fd-subcats ul.products li.product-category:nth-child(2n),
  .fd-subcats ul.products li.product-category:nth-child(3n+1),
  .fd-subcats ul.products li.product-category:nth-child(4n+1) {
    clear: none !important;
    margin-right: 0 !important;
  }

  .fd-subcats ul.products li.product-category a {
    width: 100% !important;
  }

  .fd-subcats ul.products li.product-category h2 {
    font-size: 30px !important;
  }

  .fd-subcats ul.products li.product-category img {
    display: block !important;
    max-width: 190px !important;
    height: 180px !important;
    width: auto !important;
    margin: 0 auto 18px !important;
  }
}

/* -----------------------------------------
   Smaller tablets
   Switch to 1 column
----------------------------------------- */
@media (max-width: 980px) {
  .fd-subcats ul.products {
    grid-template-columns: 1fr !important;
    column-gap: 18px;
    row-gap: 18px;
  }

  .fd-subcats ul.products li.product-category {
    padding: 18px 18px 16px;
  }

  .fd-subcats ul.products li.product-category h2 {
    font-size: 28px !important;
  }

  .fd-subcats ul.products li.product-category img {
    max-width: 180px;
    height: 170px;
  }
}

/* -----------------------------------------
   Mobile
----------------------------------------- */
@media (max-width: 767px) {
  .fd-subcats ul.products {
    grid-template-columns: 1fr !important;
    column-gap: 16px;
    row-gap: 16px;
  }

  .fd-subcats ul.products li.product-category {
    padding: 16px 16px 14px;
  }

  .fd-subcats ul.products li.product-category h2 {
    font-size: 26px !important;
  }

  .fd-subcats ul.products li.product-category img {
    max-width: 160px;
    height: 150px;
  }

  .fd-subcats ul.products li.product-category .count {
    font-size: 14px;
  }
}
/* Centre sub-category images properly */
.fd-subcats ul.products li.product-category a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Ensure image is centred */
.fd-subcats ul.products li.product-category img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Centre heading and count */
.fd-subcats ul.products li.product-category h2,
.fd-subcats ul.products li.product-category .count {
  text-align: center;
}
.fd-subcats ul.products li.product-category img {
  max-width: 180px;
  height: 160px;
  object-fit: contain;
}
/* Ensure category tiles are clickable */
.fd-subcats ul.products li.product-category {
  position: relative;
  z-index: 1;
}

.fd-subcats ul.products li.product-category a {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.fd-subcats ul.products li.product-category:hover {
  transform: translateY(-4px);
  transition: all .25s ease;
}