/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme
 Author:         Future Buffalo Web Design
 Author URI:     https://www.futurebuffalowebdesign.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

/* vertical align within columns */
.ds-vertical-align { 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
} 

/* column stacking order tweaks */

@media all and (max-width: 980px) {
	/*** wrap row in a flex box ***/
	.custom-row {
	  display: -webkit-box;
	  display: -moz-box;
	  display: -ms-flexbox;
	  display: -webkit-flex;
	  display: flex;
	-webkit-flex-wrap: wrap; /* Safari 6.1+ */
	flex-wrap: wrap;
	}
 
	/*** custom classes that will designate the order of columns in the flex box row ***/
	.first-on-mobile {
	-webkit-order: 1;
	order: 1;
	}
	 
	.second-on-mobile {
	-webkit-order: 2;
	order: 2;
	}
	 
	.third-on-mobile {
	-webkit-order: 3;
	order: 3;
	}
	 
	.fourth-on-mobile {
	-webkit-order: 4;
	order: 4;
	}
	/*** add margin to last column 
	.custom_row:last-child .et_pb_column:last-child {
	margin-bottom: 30px;
	}***/
	
	.hidden-on-mobile {
		display: none;
	}
 
}

/* 2 Columns Mobile */
@media all and (max-width: 767px) {
	html .et-db .two-col-mob .et_pb_column {
		width:47.25% !important;
	}
	
html .et-db .two-col-mob .et_pb_column:nth-last-child(-n+2) {
		margin-bottom:0;
	}

	html .et-db .two-col-mob .et_pb_column:not(:nth-child(2n)) {
			margin-right:5.5% !important;
	}
}

/* 3 Columns Mobile */
@media all and (max-width: 767px) {
	html .et-db .three-col-mob .et_pb_column {
		width:29.6667% !important;
	}

	html .et-db .three-col-mob .et_pb_column:nth-last-child(-n+3) {
		margin-bottom:0;
	}

	html .et-db .three-col-mob .et_pb_column:not(:nth-child(3n)) {
		margin-right:5.5% !important;
	}
}

/* 4 Columns Mobile */
@media all and (max-width: 767px) {
	html .et-db .four-col-mob .et_pb_column {
		width:20.875% !important;
	}

html .et-db .four-col-mob .et_pb_column:nth-last-child(-n+4) {
		margin-bottom:0;
	}

	html .et-db .four-col-mob .et_pb_column:not(:nth-child(4n)) {
		margin-right:5.5% !important;
	}
}

/* 5 Columns Mobile */
@media all and (max-width: 767px) {
	html .et-db .five-col-mob .et_pb_column {
		width:15.6% !important;
	}

	html .et-db .five-col-mob .et_pb_column:nth-last-child(-n+5) {
		margin-bottom:0;
	}

	html .et-db .five-col-mob .et_pb_column:not(:nth-child(5n)) {
		margin-right:5.5% !important;
	}
}

/* 6 Columns Mobile */
@media all and (max-width: 767px) {
	html .et-db .six-col-mob .et_pb_column {
		width:12.083% !important;
	}

	html .et-db .six-col-mob .et_pb_column:nth-last-child(-n+6) {
		margin-bottom:0;
	}

	html .et-db .six-col-mob .et_pb_column:not(:nth-child(6n)) {
		margin-right:5.5% !important;
	}
}

/*** Change Tablet Columns By DiviMundo.com ***/

/* 1 Column Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
	html .et-db .one-col-tab .et_pb_column {
		margin-right:0 !important;
		width:100% !important;
	}
	
		html .et-db .one-col-tab .et_pb_column:not(:last-child) {
		margin-bottom:30px !important;
	}
}

/* 2 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
	html .et-db .two-col-tab .et_pb_column {
		width:47.25% !important;
	}

.two-col-tab .et_pb_column:nth-last-child(-n+2) {
		margin-bottom:0;
	}

	html .et-db .two-col-tab .et_pb_column:not(:nth-child(2n)) {
		margin-right:5.5% !important;
	}
}

/* 3 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
	html .et-db .three-col-tab .et_pb_column {
		width:29.6667% !important;
	}

html .et-db .three-col-tab .et_pb_column:nth-last-child(-n+3) {
		margin-bottom:0;
	}

	html .et-db .three-col-tab .et_pb_column:not(:nth-child(3n)) {
		margin-right:5.5% !important;
	}
}

/* 4 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
	html .et-db .four-col-tab .et_pb_column {
		width:20.875% !important;
	}

html .et-db .four-col-tab .et_pb_column:nth-last-child(-n+4) {
		margin-bottom:0;
	}

	html .et-db .four-col-tab .et_pb_column:not(:nth-child(4n)) {
		margin-right:5.5% !important;
	}
}

/* 5 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
	html .et-db .five-col-tab .et_pb_column {
		width:15.6% !important;
	}

.five-col-mob .et_pb_column:nth-last-child(-n+5) {
		margin-bottom:0;
	}
	
	html .et-db .five-col-tab .et_pb_column:not(:nth-child(5n)) {
		margin-right:5.5% !important;
	}
}

/* 6 Columns Tablet */
@media all and (min-width: 768px) and (max-width: 980px) {
	html .et-db .six-col-tab .et_pb_column {
		width:12.083% !important;
	}

	html .et-db .six-col-tab .et_pb_column:nth-last-child(-n+6) {
		margin-bottom:0;
	}

	html .et-db .six-col-tab .et_pb_column:not(:nth-child(6n)) {
		margin-right:5.5% !important;
	}
}

/******************************************/
/* Grid & Facet Styles */
/* hide the artist page artist selector facet */
.wpgb-facet[data-id="1"] {
	display: none;
}

/* Nav menu tweaks */
#menu-main-menu ul.sub-menu {
  /* min-width: 240px; Or width: auto; */
  width: auto;
  width: fit-content
}

#menu-main-menu ul.sub-menu li a {
  width: auto; /* Or width: fit-content; */
  white-space: nowrap; /* Ensure names stay on a single line */
}

/* Artist Page tweaks */
.wpgb-facet-2 ul.wpgb-inline-list {
  display: flex;
  justify-content: center;
}

/* Shop All Page tweaks */

.wpgb-facet fieldset {
	margin-bottom: 0.5em !important;
}

nav.wpgb-pagination-facet ul.wpgb-pagination li a {
  display: inline-block; /* Make links behave like buttons */
  padding: 0.25em 0.75em;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  text-decoration: none; /* Remove underline */
  font-size: 1.1em;
}
nav.wpgb-pagination-facet ul.wpgb-pagination li a:hover {

  display: inline-block; /* Make links behave like buttons */
  padding: 0.25em 0.75em;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 1.1em;
  text-decoration: none; /* Prevent underline on hover state */

}

nav.wpgb-pagination-facet ul.wpgb-pagination {
  display: flex;
  justify-content: space-between; /* Distribute items with space between */
}

.wpgb-facet button.wpgb-reset {
  margin: 0 0 40px;
  padding: 0.5em;
  width: 100%;
  font-size: 0.9em;
}

.et_pb_wc_add_to_cart form.cart .button, .et_pb_wc_add_to_cart form.cart div.quantity {
	display: block !important;
	margin-bottom: 0.7em;
}

.single_add_to_cart_button {
	margin: 1em 0 1em 0 !important;
}


/* Product Page tweaks */

.pswp__caption { display: none; }
.woocommerce-variation-price { font-size: 1em; margin-bottom: 1em; }
.woocommerce-variation-price::before { content: 'Your total: '; }
.woocommerce .woocommerce-breadcrumb { margin: 0 !important; }