/*
Theme Name:   Sinatra Child
Theme URI:    https://qmr.com
Description:  Child theme for the Sinatra theme
Author:       Sinatra Team
Author URI:   https://try.sinatrawp.com
Template:     sinatra
Version:      1.0.0
Text Domain:  sinatra-child
*/
.sinatra-header-layout-1 .si-header-container .sinatra-nav{
	margin-bottom: 20px;
}
#sinatra-topbar{font-size: 14px !important;
    font-weight: 600;}
    
#sinatra-topbar>.si-container>.si-flex-row>div{
  justify-content:center;
}

header #sinatra-header .si-header-container .si-header-widgets,
header #sinatra-header .si-header-container .si-header-widgets .si-header-widget__search{flex-grow:1}
header #sinatra-header .si-header-widget__search>.si-widget-wrapper{
  width:calc(100% - 15px); justify-content: flex-end; padding-right: 10px;
}
header #sinatra-header .si-header-widget__search>.si-widget-wrapper>div{width:80%}

body .is-form-style.is-form-style-3 input.is-search-input{
  border-color:#fff !important;height:44px;font-weight:600;
}
body .is-form-style.is-form-style-3 label{width: calc(100% - 44px) !important}
body .is-form-style button.is-search-submit{width:44px;height:44px;}
body button .is-search-icon{border-color:#ec1b1c}

.si-header-widget__button .si-btn{flex-direction:column;background:transparent;padding:0 10px}
.si-header-widget__button .si-btn span{font-weight:700}
.si-header-widget__button .si-btn::before{
  content: 'Login / Signup'; font-weight: 400;
  font-size: 12px; line-height: 1;
}
.si-header-widget__cart a.si-cart::after{content:'Cart';margin-left:10px}
.sinatra-nav .sub-menu li a{text-transform:capitalize}

div .fps-item a.button{line-height:29px}

@media (max-width:1370px){
  header #sinatra-header-inner .sinatra-nav>ul>li{margin-left:20px}
}
@media screen and (min-width:961px){
  header .sinatra-nav .sub-menu{ padding:5px 0;}
  body .sinatra-nav .sub-menu li a{padding:.371em 1.785em}	
  body .sinatra-nav .sub-menu .sub-menu{top: -48px;}
  body .sinatra-nav .sub-menu .sub-menu li:last-child .sub-menu{top:unset;bottom:-6px}
}

.woocommerce #content div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary,
.woocommerce-page div.product div.summary{
  background: white;
  border: 1px solid;
  padding: 20px;
}
#wpgs-gallery.wcgs-woocommerce-product-gallery:has( + .summary ){
  background: white;
  border: 1px solid;
  padding: 20px;
}

/* === Variation Buttons Styling === */
.wcs-variation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
}

.wcs-variation-btn {
  background: #f6f6f6;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.wcs-variation-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.wcs-variation-btn.selected {
  background: #000;
  color: #fff;
  border-color: #000;
}
/* === Custom Description Box (below image) === */
.custom-product-description-box {
  background-color: #fff;
  border: 1px solid #eee;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  padding: 25px;
  margin-top: 30px;
}

.custom-desc-heading {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #222;
  border-bottom: 2px solid #f88703;
  display: inline-block;
  padding-bottom: 5px;
}

.custom-desc-content {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.custom-desc-content p {
  margin-bottom: 10px;
}

/* === Remove the empty tabs wrapper if theme still outputs it === */
.woocommerce-tabs {
  display: none !important;
}

.rvp-slider {
    margin: 0; /* no margin around slider */
}

.rvp-slider .rvp-slide {
    background: #fff;            /* White background */
    border: 1px solid #ec1b1c;      /* Border around each box */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    height: 100%;
    padding: 10px !important;               /* adjust padding inside box */
    margin: 0 !important;        /* remove spacing between slides */
}

.rvp-slider .rvp-slide img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.rvp-brand {
    font-size: 12px;
    color: #555;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
}

.rvp-title {
    font-size: 14px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* adjust lines */
    -webkit-box-orient: vertical;
        letter-spacing: inherit;
    line-height: inherit;
    font-weight: 500;
}

.rvp-title a {
  color: #000 !important;
  font-size: 14px;
  text-decoration: none;
  display: block;
  min-height: 40px; /* equal height for titles */
}


.rvp-slider .price {
    font-size: 20px;
    color: #000;
}

/* Slick arrows */
.rvp-slider .slick-arrow {
    background: #f88703;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    z-index: 999;
}

.rvp-slider .slick-slide {
    height: 100%;
    padding: 0;       /* remove internal slide padding */
}

.rvp-slider .slick-list {
    margin: 0;  /* remove gap between slides */
}


div .leading_sec{
	display: flex; flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    background: #fff;
}
.leading_sec .wpb_single_image{margin-bottom:0}
div .leading_sec>.wpb_column{border: 1px solid #8a9297;display:flex; align-items:center;}
div .leading_sec .wpb_single_image img{max-width:100px;padding:20px 0;}

.quick_links .wpb_wrapper ul{
  display: flex; flex-wrap: wrap;
  text-align: center; border-radius: 3px;
  list-style: none; background: #fff;
  border: 1px solid #8a9297; margin:0
}
.quick_links .wpb_wrapper ul li{
  width: calc(100% / 6);
  margin-bottom:0; padding:24px;
  box-shadow: 1px 0 #8a9297, 0 1px #8a9297;
  display: flex; word-break: break-word;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
}
.quick_links .wpb_wrapper ul li a{
  font-weight:600; color:#01030d !important
}

.footer-top .wpb-content-wrapper{width:100%}
.footer-top .vc_column-inner > .wpb_wrapper{display:flex}
.footer-top .wpb_text_column, .footer-top .vc_icon_element {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}
.footer-top .wpb_text_column strong{color:#01030d;}
.spswiper-slide-active{margin-top:0px !important;}

.custom-product-description-box{width:100%}

.wc-cart-widget-content .si-remove-cart-item svg,
body div .wc-cart-widget-content .si-cart-item-title a{color:#01030d;}
.wc-cart-widget-content .woocommerce-Price-amount bdi{font-size:14px}

body div .rvp-slider .slick-arrow{background:#585f63;width:40px;height:40px;}
body div .rvp-slider .slick-arrow:hover{background:#01030d}
body div .rvp-slider .slick-prev:before{content:'❮';font-size: 22px;}
body div .rvp-slider .slick-next:before{content:'❯';font-size: 22px;}

.single-product.woocommerce div.product form.cart .group_table td:first-child{min-width:100px}
.single-product form.cart .woocommerce-grouped-product-list-item__price{white-space:nowrap}
.single-product form.cart .woocommerce-grouped-product-list-item__price bdi{font-size:18px}

body .si-page-header-title .page-title{text-transform:capitalize}

.sinatra-core-social-links-widget-2 .widget-title{margin-bottom:5px}
.sinatra-core-social-links-widget-2 .menu-ft-socials{margin-top:0}

/* Related Products Boxes */
.related.products ul.products {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Each product box: 1/6 width for 6 columns */
.related.products ul.products li.product {
    background-color: #fff; /* White background */
    border: 1px solid #ec1b1c; /* 1px black border */
    box-sizing: border-box;
    flex: 0 0 16.6667%; /* 100% / 6 = 16.6667% */
    display: flex;
    flex-direction: column;
    margin: 0; /* remove default spacing */
    padding: 10px;
}

/* Keep image and meta content properly aligned */
.related.products ul.products li.product .si-product-thumb,
.related.products ul.products li.product .meta-wrap {
    flex-shrink: 0;
}

/* Make product title black and limit lines */
.related.products ul.products li.product h2.woocommerce-loop-product__title {
    color: #000;
    font-size: 16px;
    margin: 10px 0 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* limit to 2 lines */
    -webkit-box-orient: vertical;
}

/* Make all boxes same height */
.related.products ul.products li.product .meta-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* Images fit nicely */
.related.products ul.products li.product img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}
.woocommerce-Price-amount{
	color: #000;
	font-size:20px;
}

.related.products .si-loop-product__category{
	font-size: 12px;
    color: #555;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
}

/* Category and price spacing */
.related.products ul.products li.product .si-loop-product__category-wrap,
.related.products ul.products li.product .price {
    display: block;
    margin-bottom: 5px;
}


/* ==== Michelin Product Grid - Same as Related Products ==== */
ul.products.columns-4 {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Each product box */
ul.products.columns-4 li.product {
    background-color: #fff; /* White background */
    border: 1px solid #000; /* Black border */
    box-sizing: border-box;
    flex: 0 0 25%; /* 4 per row */
    display: flex;
    flex-direction: column;
    margin: 0; /* Remove spacing */
    padding: 10px;
}

/* Keep product image and meta area properly aligned */
ul.products.columns-4 li.product .si-product-thumb,
ul.products.columns-4 li.product .meta-wrap {
    flex-shrink: 0;
}

/* Make product titles black and neat */
ul.products.columns-4 li.product h2.woocommerce-loop-product__title {
    color: #000;
    font-size: 16px;
    margin: 10px 0 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
}

/* Ensure equal height */
ul.products.columns-4 li.product .meta-wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

/* Image styling */
ul.products.columns-4 li.product img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

ul.products .si-loop-product__category{
	font-size: 12px;
    color: #555;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
}

/* Category and price spacing */
ul.products.columns-4 li.product .si-loop-product__category-wrap,
ul.products.columns-4 li.product .price {
    display: block;
    margin-bottom: 5px;
}

/* Optional: make responsive for smaller screens */
@media (max-width: 1024px) {
    ul.products.columns-4 li.product {
        flex: 0 0 25%; /* 4 per row */
    }
	body .related.products ul.products li.product{flex: 0 0 25%}
}
@media (max-width:820px) {
	body .related.products ul.products li.product{flex: 0 0 33.33%}
}

@media (max-width: 768px) {
    ul.products.columns-4 li.product {
        flex: 0 0 50%; /* 2 per row on tablet/mobile */
    }
	body .sinatra-logo img{max-height:74px}
	.single-product div.product .si-wc-product-wrap #wpgs-gallery{
	  max-width:100% !important; margin-right:0;
	}
	.single-product div.product .si-wc-product-wrap #wpgs-gallery + .summary.entry-summary{
	  max-width:100% !important;
	}
}

@media (max-width: 480px) {
    ul.products.columns-4 li.product {
        flex: 0 0 100%; /* 1 per row on small screens */
    }
	body .quick_links .wpb_wrapper ul li{width:calc(100% / 2)}
	body .related.products ul.products li.product{flex: 0 0 100%;margin-bottom:15px}
	.woocommerce div.product form.cart .group_table td{
		display:block;padding-left:15px !important
	}
	.single-product div.product .si-wc-product-wrap{flex-direction:column;}
	body div div[data-block-name="woocommerce/cart"].alignwide{margin:0 !important}
}
#text-3.si-footer-widget .h4.widget-title{margin-bottom:5px}
#text-3.si-footer-widget .textwidget img{max-width:30px;margin-right:10px}
textarea.wpcf7-textarea{min-height:7em;}
.wpcf7-form{background:#fff;padding:2px 20px;}

.wc-block-checkout__main .wc-block-checkout__form{ padding:10px 20px 0; background:#fff; border-radius:5px;
  border:1px solid hsla(0,0%,7%,.11);
}
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block{background:#fff}
body .si-input-supported input[type=checkbox]:checked:before{transition:none}
body div .wc-block-checkout__form label.wc-block-components-radio-control__option{
  display:flex;gap:15px;padding-left:.875em
}
body div .wc-block-checkout__form .wc-block-components-radio-control__input{ width:26px; height:24px;
  transition:unset; top:10px; left:0 !important; margin-right:0;
}

@media (min-width:768px){
  body div .wd66{ max-width: 66.66%; overflow: hidden; margin: 30px auto; }
  body div .wd66 .wpb_raw_code > .wpb_wrapper{height:317px}
}
@media (max-width:767px){
  .mob-reverse > .vc_col-sm-6:first-child{order:2}
  .mob-reverse > .vc_col-sm-6:last-child{order:1}
}

.products .meta-wrap .si-loop-product__category-wrap{
  display:flex !important; flex-wrap:wrap;
}
.category-image img {
    width:auto;
    max-height:fit-content;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.tax-product_cat .site-content .woocommerce-products-header{
  display:flex; gap:40px; padding:20px 0;
}
.tax-product_cat .site-content .woocommerce-products-header .category-image{
  flex:0 0 50%;
}