/*
Theme Name: Storefront Child
Description: Storefront Child Theme with Custom Header, Footer, Shop, and Product templates.
Author: Raj Karan
Template: storefront
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: storefront-child
*/
/* Close button inside compare popup */
.compare-close-btn {
/*     position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 22px;
    line-height: 26px;
    cursor: pointer;
    z-index: 9999; */
    display: none; 
}

/* Preview bar styling */
#yith-woocompare-preview-bar {
    display: none; /* initially hidden, JS will show if products exist */
}

#yith-woocompare-preview-bar.shown {
    display: block;
}

/* -------------------------------
   Global Styles
--------------------------------*/
body {
  background-color: #ffffff;
}
*{  
  font-family: "Arial" !important;	
  color: #000;
}
/* a, p, span, div, b, strong, h1, h2, h3, h4, h5, h6{
  font-family: "Arial" !important;	
} */
.product-sku{
  display: none !important;
}
.home a, .home p,.home span{
  font-size: 14px !important;
  font-weight: 400;
}
.home b,.home strong{
  font-size: 14px !important;
  font-weight: 700;
}
.product-rating span:before {
  display: none;
}
div#content {
  display: flex !important;
  flex-direction: column;
}
.shop-banners, .custom-shop{
  width: 90%;
  margin: 0 auto;
}
.home main#main {
  width: 100%;
  margin: 30px auto;
}
i {
  font-family: 'Font Awesome 5 Free' !important;
}
.header-icons i, .header-icons .total-price{
  color: #333e48;
  font-size:20px;
}

/* Center Search */
.header-center form {
  display: flex;
  width: 100%;
}

.header-center input[type="search"] {
  flex: 1;
  border: 2px solid #f7931e;
  border-right: none;
  padding: 10px 15px;
  border-radius: 30px 0 0 30px;
  outline: none;
}

.header-center button {
  background: #f7931e;
  border: none;
  color: #fff;
  padding: 0 18px;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
}

/* Right Icons */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-icon {
  position: relative;
  color: #333;
  font-size: 1.3rem;
  text-decoration: none;
}

.header-icon .count {
  position: absolute;
  bottom: 5px;
  left: 20px;
  background: #f7931e;
  color: #fff;
  font-size: 10px;
  padding: 0px 6px;
  border-radius: 50%; 
  width: 20px;
  height: 20px;
}

.header-icon.cart .amount {
  margin-left: 5px;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

/* Navigation Bar */
.main-navigation {
  background: #f7931e;
}

.main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.main-menu a {
  color: #fff;
  padding: 14px 20px;
  display: block;
  font-weight: 600;
  text-decoration: none;
}

.main-menu a:hover {
  background: #e67e00;
}

/* Responsive Tweaks */
@media (max-width: 1024px) {
  .container.d-flex {
    flex-direction: column;
    text-align: center;
  }
  .header-center {
    margin: 15px 0;
  }
  .header-right {
    justify-content: center;
  }
}

/* ============================
   Custom WooCommerce Shop Page
============================ */

body.woocommerce-shop {
  background-color: #fff !important;
}

/* No sidebar layout */
.woocommerce-page #primary,
.woocommerce #primary {
  width: 100% !important;
  float: none !important;
  margin: 0 auto !important;
}
#secondary {
  display: none !important;
}

/* Banners */
@media (max-width: 1024px){
  .shop-banner1, .shop-banner2 {
  display: flex;
  flex-direction: column;
}
.banner-text {
  text-align: center;
  width: 95% !important;
}
}
.shop-banner1, .shop-banner2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
}
.banner-image img { 
  width: 100%; 
  border-radius: 0px;
}
.banner-text {
  text-align: center;
  width: 50%;
}
.banner-text p span{ 
  margin: 10px 0; 
  font-size: 16px !important; 
  font-weight: 400;
  color: #333e48; 
}
.banner-text p { 
  margin: 10px 0; 
  font-size: 14px !important; 
  font-weight: 700;
  color: #333e48; 
}
.banner-btn1 {
  background-color: #57be40 !important;
  color: #ffffff;
  padding: 8px 25px;
  display: inline-table;
  border-radius: 5px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}
.banner-btn2 {
  background-color: #d837ce !important;
  color: #ffffff;
  padding: 4px 25px;
  display: inline-table;
  border-radius: 5px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}
.banner-btn1:hover, .banner-btn2:hover { color: #29323a; }

/* Controls (Sort + Show dropdown) */
.shop-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 10px;
  flex-wrap: wrap;
}
form.products-per-page-form {
  margin-bottom: 0px;
}
.shop-controls-left {
  font-size: 0.9rem;
  color: #555;
}
.shop-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.products-per-page-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.products-per-page-form label {
  font-size: 0.9rem;
  color: #333;
}
.products-per-page-form select,
.woocommerce-ordering select {
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 0.9rem;
  color: #333;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.products-per-page-form select:hover,
.woocommerce-ordering select:hover {
  border-color: #f7931e;
}

/* Product Grid */
ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 30px auto;
  list-style: none;
  padding: 0;
}
.custom-product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px;
  transition: all 0.3s ease;
}
.custom-product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}
.product-thumb img {
  border-radius: 6px;
  width: 100%;
}
.product-details {
  text-align: left;
  margin-top: 10px;
}
.woocommerce-LoopProduct-link h2 {
  font-size: 15px;
  text-align: center;
  color: #0062bd;
  font-weight: 700;
}
.price {
  font-weight: bold;
  color: #f7931e;
  font-size: 1.1rem;
}
.product-actions {
  margin-top: 10px;
}
.add_to_cart_button {
  background: #f7931e !important;
  border-radius: 30px !important;
  padding: 8px 18px !important;
  color: #fff !important;
  font-weight: 600 !important;
  transition: background 0.3s ease;
}
.add_to_cart_button:hover {
  background: #e67e00 !important;
}
.price-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.product-outer {
  display: flex;
}
.product-inner a{
  color:#768b9e;
  font-size: 12px;
}
.product-loop-footer ins .woocommerce-Price-amount.amount bdi, .product-loop-footer ins .woocommerce-Price-amount.amount bdi span{
  color: #dc3545 !important;
  font-size: 20px !important;
}
.product-loop-footer del .woocommerce-Price-amount.amount bdi, .product-loop-footer del .woocommerce-Price-amount.amount bdi span{
  color: #768b9e !important;
  font-size: 14px !important;
}
.product-loop-footer  .woocommerce-Price-amount.amount bdi, .product-loop-footer .woocommerce-Price-amount.amount bdi span{
  color: #768b9e !important;
  font-size: 14px !important;
}

/* Pagination */
.woocommerce-pagination {
  display: flex;
  justify-content: center;
  margin: 0px 0 20px;
}
.woocommerce-pagination ul.page-numbers {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;	
}
ul li a.page-numbers {
  border-radius: 50px !important;
  border: 1px solid #e7e7e7 !important;
}
ul li a.page-numbers:hover {
  border-radius: 50px !important;
  border: 1px solid #e7e7e7 !important;
  background: #e7e7e7;
}
ul li span.page-numbers.current {
  border-radius: 50px;
  background:#f89a20 !important;
  border:none !important;
  color: #fff !important;
}
.woocommerce-pagination a,
.woocommerce-pagination span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #f7931e;
  border-radius: 4px;
  color: #f7931e;
  text-decoration: none;
  transition: all 0.3s ease;
}
.woocommerce-pagination a:hover,
.woocommerce-pagination .current {
  background: #f7931e;
  color: #fff;
}
nav.woocommerce-pagination, .woocommerce-result-count, .woocommerce-ordering {
  width: 100%;
}
nav.woocommerce-pagination {
  justify-content: end;
}
.woocommerce-result-count{
  justify-content: center;
  display: flex;
  align-items: center;
}
.storefront-sorting {
  display: flex;
}

.product-outer {
    position: relative;
    overflow: hidden;
}

.hover-area {
    position: absolute;
    bottom: 65px;
    left: 0;
    right: 0;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
	background: #fff !important;
    border: 1px solid;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hover-area .action-buttons .yith-wcwl-add-to-wishlist{
	margin-top:0px;
}


.product-outer:hover .hover-area {
    opacity: 1;
    transform: translateY(0);
}

.action-buttons {
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.action-buttons .button,
.action-buttons .add_to_wishlist {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 10px;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.action-buttons .button:hover,
.action-buttons .add_to_wishlist:hover {
    background: #333;
    color: #fff;
}
.product-loop-body .product-rating .star-rating::before{
  opacity: 1 !important;
  color:#fed700 !important;
  font-family: "Font Awesome 5 Free" !important;
}
.hover-area a.add_to_wishlist.single_add_to_wishlist:hover, .hover-area a.compare.button:hover {
  background: #f7931e !important;
}
.hover-area a.add_to_wishlist.single_add_to_wishlist:hover svg{
  color: #ffffff;
}
/* ============================
   Custom Footer
============================ */
.custom-footer p{
  margin-bottom: 0px;
  padding: 10px 0px;
  font-size: 14px;
  font-weight: 400;
}
.custom-footer {
background-color: #eaeaea;
} 
.custom-footer .container{
  width: 85%;
  margin: 0 auto;
}



/* === Custom WooCommerce Product Grid === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 20px;
    margin-bottom: 30px;
}

/* Product card */
.product-outer {
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fff;
}

.product-outer:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

/* === Responsive Layouts === */

/* Tablet (<= 1024px): 3 columns */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile (<= 768px): 2 columns */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra small (<= 480px): 2 columns (still 2×6) */
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
}
