/*
Theme Name: Zatpat Premix
Theme URI: https://zatpatpremix.com/
Author: Kapil Patil
Description: A colorful WooCommerce-compatible theme for Food Premix products.
Version: 1.0
*/

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff8f2;
  color: #333;
  text-align: justify;
}

a {
  color: #d35400;
  text-decoration: none;
}

header {
  background: linear-gradient(90deg, #f7b731, #ff6b81);
  color: white;
  padding: 20px;
  text-align: center;
}

nav a {
  margin: 0 15px;
  color: white;
  font-weight: bold;
}

/* Normal link color */
a {
  color: #0073e6;   /* Blue */
  text-decoration: none; /* Remove underline (optional) */
}

/* Hover link color */
a:hover {
  color: #ff6600;   /* Orange on hover */
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px 0 20px;
  box-sizing: border-box;
}

/* Active link color (when clicked) */
a:active {
  color: #ff0000;   /* Red */
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  padding: 15px;
  text-align: center;
}


/* ==== HEADER TWO-COLUMN (Taller Version) === */
.site-header {
  background: linear-gradient(to right, #f0932b, #eb4d4b);
  padding: 10px 10px; /* Increased height */
  color: white;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  margin: auto;
}

.header-col.logo img {
  height: 70px; /* Taller logo */
  max-width: 100%;
}

.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  font-size: 32px;
  cursor: pointer;
  color: white;
}

.main-nav .nav-links {
  list-style: none;
  display: flex;
  gap: 30px; /* more spacing between items */
  margin: 0;
  padding: 0;
}

.main-nav .nav-links li a {
  color: white;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 16px; /* Bigger clickable area */
  font-size: 18px;
  transition: 0.3s ease;
}

.main-nav .nav-links li a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

/* === Mobile Style === */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin-left: auto;
  }

  .main-nav .nav-links {
    display: none;
    flex-direction: column;
    background-color: #eb4d4b;
    padding: 10px 0;
  }

  .menu-toggle:checked + .hamburger + .main-nav .nav-links {
    display: flex;
  }

  .header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-col.nav {
    width: 100%;
  }

  .main-nav .nav-links li {
    padding: 12px 20px;
  }
}
.home-banner {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
}

.shop-page-container {
  max-width: 100%;
  margin: auto;
  padding: 0 20px 0 20px;
}

.shop-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
}

.product-grid {
  display: grid;
}

.custom-product-card {
  border: 1px solid #c4c2c2;
  padding: 5px;
  text-align: center;
  transition: box-shadow 0.3s;
  background: #fff;
  border-radius: 10px;
}

.custom-product-card:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.product-thumb img {
  max-width: 100%;
  height: 100px;
}



.single-product-page {
  max-width: 90%;
  margin: auto;
}

.custom-single-product {
  display: grid;

}

.product-gallery img {
  width: 100%;
  border-radius: 10px;
}

.product-summary h1.product_title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.product-summary .price {
  font-size: 1.5rem;
  color: #d14124;
  margin: 10px 0;
}

.product-summary .woocommerce-product-details__short-description {
  margin-bottom: 20px;
}

ul.products {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

ul.products li.product {
  flex: 0 20%;
  border: 1px solid #ccc;
  padding: 30px 30px;
  box-sizing: border-box;
  background: #fff;
}

.woocommerce div.product div.images img {
    max-width: 400px;
    height: 300;
}



/* Style the Related Products section */
.related.products {
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9; /* Light background */
    border-top: 2px solid #eee;
}

/* Related Products Heading */
.related.products h2 {
    font-size: 18px;
    font-weight: 300;
    color: #333;
    margin-bottom: 25px;
    text-transform: uppercase;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

/* Product Grid Layout */
.related.products ul.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

/* Individual Product Box */
.related.products ul.products li.product {
    width: 22%; /* 4 items in a row */
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 10px;
    transition: all 0.3s ease;
}

/* Hover Effect */
.related.products ul.products li.product:hover {
    border-color: #ccc;
    box-shadow: 0 0 8px rgba(0,0,0,0.08);
}

/* Product Title */
.related.products ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 16px;
    color: #222;
}

/* Product Price */
.related.products ul.products li.product .price {
    color: #d35400; /* Orange price */
    font-weight: bold;
    font-size: 15px;
    margin-top: 5px;
}

/* Add to Cart Button */
.related.products ul.products li.product .button {
    background-color: #27ae60;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s;
}

.related.products ul.products li.product .button:hover {
    background-color: #219150;
}




.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px 20px;
    color: white;
    background: #5d4037;
}

.footer-widgets .footer-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: white;
}

.footer-widget {
    font-size: 14px;
    line-height: 1.6;
}

.footer-bottom {
    background: #5d4037;
    text-align: center;
    padding: 15px;
    color: white;
    font-size: 14px;
}

@media(max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* WooCommerce Product Grid Fix */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0;
}



/* Tablet */
@media (max-width: 1024px) {
    .woocommerce ul.products li.product {
        flex: 1 1 calc(33.33% - 15px);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        flex: 1 1 calc(50% - 15px);
    }
}


/* Pagination - Default Links */
.woocommerce nav.woocommerce-pagination ul li a {
    background: #fff7ed;
    color: #5d4037;
    border: 1px solid #f5cda1;
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

/* Hover */
.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: #ffcc80;
    color: #000;
    border-color: #ff9800;
}

/* Active Page */
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #ff7043;
    color: #fff;
    border: 1px solid #e64a19;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: bold;
}

/* Remove default list styling */
.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}


/* Style Quantity & Variation Dropdowns */
.woocommerce div.product form.cart .variations select,
.woocommerce div.product form.cart .quantity input.qty {
    font-size: 16px;          /* Bigger font */
    padding: 8px 12px;        /* Same padding */
    border: 1px solid #f5cda1;
    border-radius: 6px;
    background: #fff7ed;
    color: #5d4037;
    width: auto;
    max-width: 120px;         /* Quantity smaller */
    box-sizing: border-box;
}

/* Ensure variation dropdown stays wider */
.woocommerce div.product form.cart .variations select {
    width: 100%;
    max-width: 350px;
}

/* Label text (Choose an option, Quantity, etc.) */
.woocommerce div.product form.cart .variations label,
.woocommerce div.product form.cart .quantity label {
    font-size: 16px;
    font-weight: bold;
    color: #5d4037;
    margin-bottom: 5px;
    display: inline-block;
}

/* Focus effect */
.woocommerce div.product form.cart .variations select:focus,
.woocommerce div.product form.cart .quantity input.qty:focus {
    border-color: #ff7043;
    box-shadow: 0 0 5px rgba(255,112,67,0.5);
    outline: none;
}

#infinite-scroll-loader {
    color: #555;
    font-weight: 600;
    padding: 15px;
}

/* === Home Page Slider === */
.home-slider {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.home-slider .slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.home-slider .slide.active {
  opacity: 1;
}

/* Responsive Height */
@media (max-width: 768px) {
  .home-slider {
    height: 50vh;
  }
}

/* === Home Page Responsive Slider === */
.home-slider {
  position: relative;
  width: 100%;
  height: 75vh;
  overflow: hidden;
}

.home-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.home-slider .slide.active {
  opacity: 1;
  z-index: 1;
}

/* === Text Overlay === */
.slide-text {
  position: absolute;
  bottom: 20%;
  left: 10%;
  z-index: 2;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 20px 30px;
  border-radius: 10px;
  max-width: 80%;
  text-align: left;
}

.slide-text h2 {
  font-size: clamp(1.2rem, 4vw, 2.5rem); /* Adjusts with screen */
  margin: 0;
  line-height: 1.3;
}

.shop-now-btn {
  display: inline-block;
  margin-top: 12px;
  background: #ff9800;
  color: #fff;
  padding: 10px 22px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  z-index: 3;
  position: relative;
  transition: background 0.3s;
}

.shop-now-btn:hover {
  background: #e68900;
}

/* === Mobile Responsive Design === */

@media (max-width: 600px) {
  .home-slider {
    height: 30vh;
  }
  .slide-text {
    bottom: 10%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5);
  }
  .slide-text h2 {
    font-size: clamp(1rem, 5vw, 1.8rem);
  }
  .shop-now-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
  }
}
