/*
 Theme Name:     Divi Child
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    Divi Child Theme for Store.Winsale.net
 Author:         Elegant Themes
 Author URI:     https://www.elegantthemes.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */
.woocommerce-notices-wrapper > .woocommerce-info { display:none; }
.loginlink { text-decoration:underline;font-weight:bold;}
.searchandfilter > ul > li {
	display: inline-block;
	vertical-align: top;
	padding: 0 20px;
}
.searchandfilter > ul {
	text-align:center;
}
.searchandfilter select::-ms-expand {
  display: none;
}
.searchandfilter select {
  max-width:150px;
  width:100%;
  margin:5px;
  display: inline-block;
  box-sizing: border-box;
  padding: 0.5em 2em 0.5em 1em;
  border: 1px solid #666;
  font: inherit;
  line-height: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  -ms-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 15px top 1.3em, right 10px top 1.3em;
  background-size: 5px 5px, 5px 5px;
}

.g-grid {
  display: grid;
  grid-template-columns: calc(33% - 1rem * 1/2) calc(33% - 1rem * 1/2) calc(33% - 1rem * 1/2);
  grid-column-gap: 1rem;
}

.g-grid-cell {
  padding: 1rem;
  margin: 10px;
  text-align:center;
}

.g-grid-cell .pinfo h2 {
  min-height:64px
}
.g-grid-cell .pimg img {
    height:100%;
	max-height:200px;
	width:auto;
}
.g-grid-cell .pimg {
	text-align:center;
	position: relative;
	top: 31%;
	transform: translateY(-50%);
}

.pagination {
    text-align: center;
    font-size: 16px;
    border-top: 1px solid #666;
}


.g-grid .card {
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  width: 100%;
  border-radius: 5px;
}

.g-grid .card:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.g-grid img {
  border-radius: 5px 5px 0 0;
}

.g-grid .pinfo {
  padding: 2px 16px;
  margin-top: 50%;
}
.g-grid .et_pb_button {
	margin-top:15px;
	margin-bottom:30px;
	display: inline-block;
}

@media only screen and (max-width: 960px) {
	.g-grid {
	  display: grid;
	  grid-template-columns: calc(50% - 1rem * 1/2) calc(50% - 1rem * 1/2);
	  grid-column-gap: 1rem;
	}
}
@media only screen and (max-width: 600px) {
	.g-grid {
	  display: grid;
	  grid-template-columns: calc(100% - 1rem * 1/2);
	  grid-column-gap: 1rem;
	}
}

/* woo css fixes */
.pinfo a, .product_meta a, .woocommerce-Price-amount, a.woocommerce-privacy-policy-link, .product-name a, .woocommerce a.button.alt, .woocommerce-page a.button.alt, .woocommerce button.button.alt, .woocommerce button.button.alt.disabled, .woocommerce-page button.button.alt, .woocommerce-page button.button.alt.disabled, .woocommerce input.button.alt, .woocommerce-page input.button.alt, .woocommerce #respond input#submit.alt, .woocommerce-page #respond input#submit.alt, .woocommerce #content input.button.alt, .woocommerce-page #content input.button.alt, .woocommerce a.button, .woocommerce-page a.button, .woocommerce button.button, .woocommerce-page button.button, .woocommerce input.button, .woocommerce-page input.button, .woocommerce #respond input#submit, .woocommerce-page #respond input#submit, .woocommerce #content input.button, .woocommerce-page #content input.button {
    text-decoration: none;
    color: #1d140b;
}
.pinfo a:hover, .product_meta a:hover, .woocommerce-Price-amount:hover, a.woocommerce-privacy-policy-link:hover, .product-name a:hover, .woocommerce a.button.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce button.button.alt.disabled:hover, .woocommerce-page button.button.alt:hover, .woocommerce-page button.button.alt.disabled:hover, .woocommerce input.button.alt:hover, .woocommerce-page input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce #content input.button.alt:hover, .woocommerce-page #content input.button.alt:hover, .woocommerce a.button:hover, .woocommerce-page a.button:hover, .woocommerce button.button:hover, .woocommerce-page button.button:hover, .woocommerce input.button:hover, .woocommerce-page input.button:hover, .woocommerce #respond input#submit:hover, .woocommerce-page #respond input#submit:hover, .woocommerce #content input.button:hover, .woocommerce-page #content input.button:hover {
    text-decoration: none;
    color: #1d140b;
}
.return-to-shop, .woocommerce-billing-fields {
	margin-top:30px;
}
.woocommerce-privacy-policy-text {
	padding:10px 10px 20px 10px;
}
.et_pb_button, .woocommerce div.product form.cart .button, .woocommerce a.button, .woocommerce-page a.button {
    border-color:#1d140b;
	color:#1d140b;
}
.woocommerce .woocommerce-error, .woocommerce .woocommerce-info, .woocommerce .woocommerce-message {
    background: #1d140b;
}
.woocommerce-error, .woocommerce-info, .woocommerce-message {
    margin: 0;
}
.woocommerce .woocommerce-checkout .col2-set .col-1,
.woocommerce .woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
}

.woocommerce .woocommerce-checkout .col2-set .col-1 {
    margin-bottom: 30px;
}
/****************CHECKOUT***************/
.woocommerce form .form-row {
    width: 100% !important;
}
.woocommerce-checkout #payment div.payment_box input.input-text, .woocommerce-checkout #payment div.payment_box textarea {
    width: 100% !important;
    padding: 8px;
}
.woocommerce #payment .form-row select, .woocommerce-page #payment .form-row select {
    width: 100%;
    height: 30px;
}
.woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1,.woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2 {
    float: left;
    width: 100%;
}
.custom-checkout h3 {
    background-color: #165f1c;  /****CHANGE TO COLOR YOU WANT TO USE FOR TITLE BACKGROUND ****/
    width: 45%;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-top: 50px;
    color: #FFF;
    float: right;
}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea {
    padding: .6180469716em;
    background-color: #f2f2f2;
    color: #43454b;
    outline: 0;
    border: 0;
    -webkit-appearance: none;
    border-radius: 2px;
    box-sizing: border-box;
    font-weight: 400;
   border:solid 2px #e4e4e4;
}

.woocommerce-checkout .select2-container .select2-selection--single {
    height: 40px;
}

/* To make the options vertically centered */
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
}

/* To make the dropdown icon vertically centered */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

/* fix the readmore link on search results page */
.et_pb_blog_0_tb_body .et_pb_post div.post-content a.more-link {
	font-size: 20px;
	font-weight: 500;
	padding: 0.3em 1em;
	line-height: 1.7em !important;
	background-color: transparent;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	border: 2px solid;
	border-radius: 3px;
	-webkit-transition-duration: 0.2s;
	transition-duration: 0.2s;
	-webkit-transition-property: all !important;
	transition-property: all !important;
	margin:20px 0 10px 0;
	display:block;
	text-transform: capitalize;
}
.et_pb_blog_0_tb_body .et_pb_post div.post-content a.more-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
	border: 2px solid transparent;
	padding: 0.3em 2em 0.3em 0.7em;
}
.woocommerce div.product form.cart .variations td select {
    color: #000 !important;
    font-size: 13px;
}
option:disabled {
  background:#f2f2f2;
  color:gray;
}

#product_total_price {
  	font-size: 20px;
	font-weight:bold;
}

#main-header {
  background-color: #1d140b;
}

#top-menu a {
  color: #fff;
	font-size: 17px;
}
/* FORCE 3 LINES FOR PRODUCT TITLES ON MOBILE (Divi/Woo override) */
@media (max-width: 768px) {
  /* Target both the H2 and the link inside it */
  .woocommerce ul.products li.product h2.woocommerce-loop-product__title,
  .woocommerce-page ul.products li.product h2.woocommerce-loop-product__title,
  .et_pb_shop .woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;   /* show up to 3 lines */
    overflow: hidden !important;

    line-height: 1.3 !important;
    height: auto !important;
    max-height: none !important;         /* kill fixed heights from theme */
    min-height: calc(1.3em * 3) !important; /* reserve space for 3 lines */
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  /* Ensure the anchor doesn’t re-apply ellipsis/whitespace rules */
  .woocommerce ul.products li.product h2.woocommerce-loop-product__title a,
  .woocommerce-page ul.products li.product h2.woocommerce-loop-product__title a,
  .et_pb_shop .woocommerce ul.products li.product h2.woocommerce-loop-product__title a {
    display: inline !important;
    white-space: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
  }
}
/* SALE badge color */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce-page ul.products li.product .onsale,
.et_pb_shop .woocommerce ul.products li.product .onsale,
.single-product .woocommerce span.onsale {
  background: #E40A2D !important;   /* your red */
  color: #fff !important;            /* keep text readable */
  border-color: #E40A2D !important;  /* for themes that use a border */
}
/* --- FORCE PRICE COLORS (global) --- */

/* Old price: black text + light-black strike */
.woocommerce .price del,
.woocommerce ul.products li.product .price del,
.woocommerce div.product .summary .price del {
  color: #000000 !important;
  opacity: 1 !important;
  text-decoration: line-through;
  text-decoration-color: #444444 !important;
  text-decoration-thickness: 2px;
}
/* ensure all children inside <del> inherit black */
.woocommerce .price del *,
.woocommerce ul.products li.product .price del *,
.woocommerce div.product .summary .price del * {
  color: #000000 !important;
}

/* Sale price: #E40A2D (crimson/red) */
.woocommerce .price ins,
.woocommerce ul.products li.product .price ins,
.woocommerce div.product .summary .price ins {
  color: #E40A2D !important;
  text-decoration: none !important;
  font-weight: 700;
}
/* ensure all children inside <ins> inherit the red */
.woocommerce .price ins *,
.woocommerce ul.products li.product .price ins *,
.woocommerce div.product .summary .price ins * {
  color: #E40A2D !important;
}

/* Neutralize any parent color set on .price that could reapply green */
.woocommerce .price,
.woocommerce ul.products li.product .price,
.woocommerce div.product .summary .price {
  color: inherit !important;
}
/* Sale price weight — make it a bit lighter for sharper rendering */
.woocommerce .price ins,
.woocommerce .price ins *,
.woocommerce ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins *,
.woocommerce div.product .summary .price ins,
.woocommerce div.product .summary .price ins * {
  font-weight: 500 !important;   /* was 700 */
  text-shadow: none !important;   /* avoid fuzzy look on some fonts */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;         /* tiny spacing helps readability */
}
/* Match Featured/Related product thumb text to normal shop/search thumbs */

/* Product titles */
.woocommerce .related.products ul.products li.product .woocommerce-loop-product__title,
.woocommerce .upsells.products ul.products li.product .woocommerce-loop-product__title,
.woocommerce .cross-sells ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product.product-type-simple .woocommerce-loop-product__title,
.et_pb_module .woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: clamp(13px, 2.7vw, 16px) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  margin: 10px 0 6px !important;
}

/* If your theme outputs titles as H2 instead of the class above */
.woocommerce .related.products ul.products li.product h2,
.woocommerce .upsells.products ul.products li.product h2,
.woocommerce .cross-sells ul.products li.product h2 {
  font-size: clamp(13px, 2.7vw, 16px) !important;
  line-height: 1.2 !important;
  margin: 10px 0 6px !important;
}

/* Prices */
.woocommerce .related.products ul.products li.product .price,
.woocommerce .upsells.products ul.products li.product .price,
.woocommerce .cross-sells ul.products li.product .price {
  font-size: clamp(13px, 2.6vw, 16px) !important;
  line-height: 1.2 !important;
  margin-top: 0 !important;
}
/* Fix scrunched 4th line in Featured/Related titles (remove clamping + loosen leading) */
.woocommerce .related.products ul.products li.product .woocommerce-loop-product__title,
.woocommerce .upsells.products ul.products li.product .woocommerce-loop-product__title,
.woocommerce .cross-sells ul.products li.product .woocommerce-loop-product__title,
.woocommerce .related.products ul.products li.product h2,
.woocommerce .upsells.products ul.products li.product h2,
.woocommerce .cross-sells ul.products li.product h2{
  line-height: 1.35 !important;
  padding-bottom: 2px !important;

  /* Prevent “clamped” / squished lines */
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  word-break: normal !important;
  hyphens: auto !important;
}

/* Give the price a little breathing room under long titles */
.woocommerce .related.products ul.products li.product .price,
.woocommerce .upsells.products ul.products li.product .price,
.woocommerce .cross-sells ul.products li.product .price{
  margin-top: 6px !important;
}
/* RELATED/UPSELL/CROSS-SELL: left align + give titles more breathing room */
.woocommerce .related.products ul.products li.product,
.woocommerce .upsells.products ul.products li.product,
.woocommerce .cross-sells ul.products li.product{
  text-align: left !important;
}

/* RELATED PRODUCTS: stop price from overlapping the last title line */
.woocommerce .related.products ul.products li.product .woocommerce-loop-product__title,
.woocommerce .related.products ul.products li.product h2{
  line-height: 1.45 !important;
  margin-bottom: 12px !important;   /* space before price */
  padding-bottom: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
}

/* Force price to sit UNDER the title (no overlap / no negative pull-up) */
.woocommerce .related.products ul.products li.product .price{
  position: static !important;
  display: block !important;
  clear: both !important;
  margin-top: 0 !important;
  padding-top: 2px !important;
}

/* If Divi is applying a negative margin to the price in grids, neutralize it */
.woocommerce .related.products ul.products li.product .price *{
  position: static !important;
}
.woocommerce .related.products ul.products li.product .woocommerce-loop-product__link{
  display: block !important;
}
/* RELATED PRODUCTS: force extra separation between title and price */
.woocommerce .related.products ul.products li.product .woocommerce-loop-product__title,
.woocommerce .related.products ul.products li.product h2{
  line-height: 1.5 !important;
  margin-bottom: 0 !important;       /* don’t rely on margin */
  padding-bottom: 16px !important;   /* hard space before price */
}

.woocommerce .related.products ul.products li.product .price{
  margin-top: 0 !important;
  padding-top: 8px !important;       /* hard space after title */
}

/* Title: left align + more line spacing + more bottom space */
.woocommerce .related.products ul.products li.product .woocommerce-loop-product__title,
.woocommerce .upsells.products ul.products li.product .woocommerce-loop-product__title,
.woocommerce .cross-sells ul.products li.product .woocommerce-loop-product__title,
.woocommerce .related.products ul.products li.product h2,
.woocommerce .upsells.products ul.products li.product h2,
.woocommerce .cross-sells ul.products li.product h2{
  text-align: left !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;      /* helps reduce “scrunched” look */
  margin-bottom: 10px !important;    /* creates space before price */
  padding-bottom: 0 !important;

  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  word-break: break-word !important;
  hyphens: none !important;
}

/* Price: left align and keep it from creeping upward */
.woocommerce .related.products ul.products li.product .price,
.woocommerce .upsells.products ul.products li.product .price,
.woocommerce .cross-sells ul.products li.product .price{
  text-align: left !important;
  margin-top: 0 !important;
  line-height: 1.2 !important;
  display: block !important;
}
/* DIVI Featured Products module: match shop/search thumb styling + left align */
.et_pb_shop .products li.product,
.et_pb_woocommerce .products li.product,
.et_pb_wc_products .products li.product,
.et_pb_module .woocommerce ul.products li.product{
  text-align: left !important;
}

.et_pb_shop .products li.product .woocommerce-loop-product__title,
.et_pb_woocommerce .products li.product .woocommerce-loop-product__title,
.et_pb_wc_products .products li.product .woocommerce-loop-product__title,
.et_pb_shop .products li.product h2,
.et_pb_woocommerce .products li.product h2,
.et_pb_wc_products .products li.product h2{
  text-align: left !important;

  /* kill the “different font” look */
  font-family: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;

  /* match the sizing/weight you liked */
  font-size: clamp(13px, 2.7vw, 16px) !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;

  margin: 10px 0 10px !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
}

.et_pb_shop .products li.product .price,
.et_pb_woocommerce .products li.product .price,
.et_pb_wc_products .products li.product .price{
  text-align: left !important;
  font-family: inherit !important;
  font-size: clamp(13px, 2.6vw, 16px) !important;
  line-height: 1.2 !important;
  display: block !important;
}
