/*
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: #0A1A2F;   /* 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: 50px; /* 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;
}



/* Fix WooCommerce Related Products Grid Alignment */
.related.products ul.products,
.upsells.products ul.products,
.cross-sells ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
}

.related.products ul.products li.product,
.upsells.products ul.products li.product,
.cross-sells ul.products li.product {
    flex: 1 1 calc(33.333% - 20px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Tablet */
@media (max-width: 768px) {
    .related.products ul.products li.product {
        flex: 1 1 calc(50% - 20px) !important;
    }
}

/* Mobile Single Row */
@media (max-width: 480px) {
    .related.products ul.products li.product {
        flex: 1 1 100% !important;
    }
}





.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 Responsive Slider === */
.home-slider {
  width: 100%;
    height: 60vh; /* controls mobile height */
    max-height: 450px;
    overflow: hidden;
    position: relative;
}

.home-slider .slide {
   position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;       /* FULL Responsive */
    background-position: center;  /* Fix cropping problem */
    background-repeat: no-repeat;
    animation: slideShow 15s infinite;
    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;
  }
}

/* MAIN BLOG CONTAINER */
.blog-container {
    max-width: 90%;
    margin: 10px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* SINGLE BLOG CARD */
.blog-container .blog-post {
    background: #ffffff;
    border-radius: 14px;
	border: 2px solid #ddd;
	border-color: #b56767;
	padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.48);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

/* BLOG IMAGE */
.blog-container .blog-post img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* BLOG CONTENT */
.blog-container .blog-post .content {
    padding: 18px;
}

/* BLOG TITLE */
.blog-container .blog-post h2 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px;
}

/* BLOG EXCERPT */
.blog-container .blog-post p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* READ MORE BUTTON */
.blog-container .blog-post .read-more {
    padding: 10px 16px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    transition: background 0.3s ease;
}

.blog-container .blog-post .read-more:hover {
    background: #ddd;
}

/* HOVER EFFECT */
.blog-container .blog-post:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .blog-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .blog-container .blog-post img {
        height: 180px;
    }
}
.zatpat-usp{
  background:#fff;
  padding:20px 0;
}

.usp-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:15px;
  text-align:center;
}

.usp-box{
  background:#fffaf6;
  border-radius:14px;
  padding:15px 15px;
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}

.usp-box span{
  font-size:34px;
  display:block;
  margin-bottom:10px;
}

.usp-box h4{
  margin:8px 0;
  color:var(--zatpat-primary);
}

.usp-box p{
  font-size:14px;
  color:#555;
}

/* ================= SMALL PRODUCT CARDS (SHOP PAGE) ================= */

/* Product grid tighter */
.woocommerce ul.products {
    gap: 12px;
}

/* Product card */
.woocommerce ul.products li.product {
    padding: 8px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    margin: 0;
}

/* Product image smaller */
.woocommerce ul.products li.product img {
    max-height: 140px;
    object-fit: contain;
    margin-bottom: 6px;
}

/* Product title smaller */
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

/* Price compact */
.woocommerce ul.products li.product .price {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Add to cart button smaller */
.woocommerce ul.products li.product .button {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 20px;
}

/* Hide unnecessary spacing */
.woocommerce ul.products li.product .star-rating {
    display: none;
}

@media (max-width: 768px) {
    .woocommerce ul.products li.product img {
        max-height: 110px;
    }

    .woocommerce ul.products li.product h2 {
        font-size: 12px;
    }

    .woocommerce ul.products li.product .price {
        font-size: 12px;
    }

    .woocommerce ul.products li.product .button {
        font-size: 11px;
        padding: 5px 8px;
    }
}

.zatpat-pincode-box {
    margin-top: 15px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}

.zatpat-pincode-inner {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.zatpat-pincode-inner input {
    flex: 1;
    padding: 7px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.zatpat-pincode-inner button {
    padding: 7px 14px;
    background: #1c7c54;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#zatpat_pincode_result {
    margin-top: 6px;
    font-weight: 600;
}

.zatpat-delivery-notice {
background:#fff3cd; padding:10px; border-left:4px solid #ff9800; margin-top:10px; font-weight:600;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 320px;
  overflow: hidden;
}

/* Slide */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s ease, transform 1.5s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Dark overlay layer */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.25)
  );
}

/* Overlay content */
.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 20px;
  color: #fff;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 8%;
  animation: slideUp 1s ease forwards;
}

/* Text styles */
.hero-overlay h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-overlay p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 20px;
  opacity: 0.95;
}

.hero-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #ff7a00;
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-btn:hover {
  background: #e66d00;
  transform: translateY(-2px);
}

/* Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(-40%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* 📱 Mobile Optimization */
@media (max-width: 768px) {
  .hero-slider {
    height: 55vh;
  }

  .hero-overlay {
    margin-left: 0;
    padding: 16px;
    text-align: center;
    transform: translate(-50%, -50%);
  }

  .hero-slide::before {
    background: rgba(0,0,0,0.6);
  }
}

/* Section */
.zatpat-categories {
  padding: 0px 0px;
}

/* Heading */
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
}

/* Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
  max-width: 100%;
  margin: auto;
}

/* Card */
.category-card {
  text-decoration: none;
  color: #111;
  border-radius: 14px;
  overflow: hidden;
  background: #f8f8f8;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}

/* Image (SMALL SIZE) */
.category-img {
  height: 150px;
  background-size: cover;
  background-position: center;
}

/* Title */
.category-card h3 {
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
}

/* CTA */
.view-all-wrap {
  text-align: center;
  margin-top: 10px;
}

.view-all-btn {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 30px;
  background: #ff7a00;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.3s ease;
}

.view-all-btn:hover {
  background: #e56c00;
  color: #fff;
  transform: translateY(-2px);
}

/* Tablet */
@media (max-width: 991px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 📱 Mobile – 2 Columns */
@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .category-img {
    height: 100px;
  }

  .category-card h3 {
    font-size: 0.95rem;
    padding: 10px;
  }
}

/* ===== ZATPAT TWO COLUMN FIX ===== */
.zatpat-about {
  background: #fff8ee;
	align-content: justify;
}

.zatpat-container {
  max-width: 100%;
  display: flex;
  gap: 10px; /* controls space BETWEEN columns */
  align-items: flex-start;
}

.zatpat-col {
  flex: 1;
}

.zatpat-col h2,
.zatpat-col h3 {
  margin-bottom: 12px;
}

.zatpat-col p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.zatpat-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 15px;
}

.zatpat-list li {
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
}

.zatpat-list li::before {
  content: "✔";
  color: #2e7d32;
  position: absolute;
  left: 0;
  top: 0;
}

.zatpat-note {
  margin-top: 10px;
}

/* ===== MOBILE FIX (NO HUGE GAP) ===== */
@media (max-width: 768px) {
  .zatpat-container {
    flex-direction: column;
    gap: 15px; /* removes BIG GAP you are seeing */
  }

  .zatpat-about {
    padding: 25px 12px;
  }
}

/* On Sale Section */
.zatpat-sale {
  background: #fff6f0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 35px;
  font-weight: 700;
}

/* Grid */
.sale-grid {
  max-width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Card */
.sale-card {
  position: relative;
  border-radius: 14px;
  background: #6c734d;
  padding: 15px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sale-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* Sale Badge */
.sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e63946;
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* Image */
.sale-img img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

/* Title */
.sale-title {
  font-size: 1rem;
  margin: 12px 0 6px;
}

.sale-title a {
  text-decoration: none;
  color: #ffdd00;
}

/* Price */
.sale-price {
  display: block;
  color: #ffdd00;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Button */
.sale-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 30px;
  background: #ff7a00;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.sale-btn:hover {
  background: #914501;
  color: #fff;

}

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

/* 📱 Mobile – 2 Columns */
@media (max-width: 600px) {
  .sale-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sale-img img {
    height: 160px;
  }
	
/* Featured Image Responsive Fix */
.single-post .post-thumbnail img,
.single-post img.wp-post-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Container spacing */
.single-post .post-thumbnail {
    margin-bottom: 20px;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .single-post img.wp-post-image {
        max-height: 250px;
        border-radius: 8px;
    }
}