/*
Theme Name: BAMT Website
Theme URI: https://biharagro.co.in
Author: Bihar Agro Machines & Tools
Author URI: https://biharagro.co.in
Description: Custom WordPress theme for Bihar Agro Machines & Tools
Version: 1.0
*/
:root{
  --brand-red: #d81e06;
  --brand-yellow: #ffd100;
  --dark: #333;
  --muted: #777;
  --container: 1100px;
  --radius: 10px;
  --card-shadow: 0 6px 18px rgba(0,0,0,0.08);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset & container */
*{box-sizing:border-box}
body{margin:0;color:var(--dark);background:#f7f8a9;line-height:1.5}
.container{max-width:var(--container);margin:0 auto;padding:28px}



/* HERO slider */
.hero{position:relative;overflow:hidden}
.hero-slider{height:420px;position:relative}
.slide{position:absolute;inset:0;background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;padding:40px;transition:opacity .6s ease;opacity:0}
.slide.active{opacity:1}
.hero-content{background:rgba(255,255,255,0.9);padding:26px;border-radius:var(--radius);max-width:780px;text-align:center;box-shadow:var(--card-shadow)}
.hero-content h2{color:var(--brand-red);margin:0 0 8px;font-size:28px}
.hero-content p{margin:0 0 12px;color:var(--muted)}
.btn{display:inline-block;text-decoration:none;padding:10px 18px;border-radius:8px;cursor:pointer}
.btn-primary{background:var(--brand-red);color:#fff}
.btn-secondary{background:var(--brand-yellow);color:var(--dark);margin-left:8px}
.slider-controls{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:6px}
.slider-controls button{background:rgba(255,255,255,0.8);border:none;padding:8px 12px;border-radius:8px;font-size:20px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,0.08)}

/* categories */
.categories-section h2{margin-top:24px;color:var(--brand-red)}
.categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin-top:18px}
.category-card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--card-shadow);text-align:center;padding-bottom:14px}
.category-card img{width:100%;height:160px;object-fit:cover}
.category-card h3{margin:12px 8px 6px;color:var(--brand-red)}
.category-card p{margin:0 12px 12px;color:var(--muted)}

/* ==============================
   PRODUCT CARDS (IMPROVED)
   ============================== */

.featured h2,
.products-top h2 {
  color: var(--brand-red);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* Card */
.product-card {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.15);
}

/* Image */
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #fafafa;
  padding: 14px;
  transition: transform 0.35s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

/* Content */
.product-card .card-body {
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card h4 {
  margin: 6px 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-red);
}

.product-card p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}

/* Price */
.product-card .price {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 14px;
}

/* Buttons */
.card-actions {
  display: flex;
  gap: 10px;
}

.card-actions .btn {
  flex: 1;
  text-align: center;
  font-size: 14px;
  padding: 10px 0;
  border-radius: 6px;
}

/* why section */
.why{margin-top:24px}
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.why-item{background:linear-gradient(180deg,#fff,#fff);padding:16px;border-radius:var(--radius);box-shadow:var(--card-shadow)}

/* product detail */
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:28px 0}
.product-detail img{width:100%;height:420px;object-fit:cover;border-radius:var(--radius)}
.specs{background:#fff;padding:18px;border-radius:var(--radius);box-shadow:var(--card-shadow)}
.specs table{width:100%;border-collapse:collapse}
.specs th{text-align:left;padding:6px;color:var(--muted);width:40%}
.specs td{padding:6px}

/* contact */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.contact-card{background:#fff;padding:18px;border-radius:var(--radius);box-shadow:var(--card-shadow)}
.contact-card form label{display:block;margin-bottom:8px}
.contact-card input, .contact-card textarea, select{width:100%;padding:8px;border-radius:8px;border:1px solid #ddd}

/* footer */
.site-footer{background:#f8f8f8;padding:18px 0;margin-top:30px;border-top:4px solid var(--brand-yellow)}
.footer-inner{display:flex;justify-content:space-between;gap:12px}
.center{text-align:center}
.small{font-size:13px;color:var(--muted)}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    height: 50vh;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    height: auto;
  }

  .hero-content {
    padding: 40px 20px;
    text-align: center;
  }

  .hero-content h2 {
    font-size: 1.9rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ==============================
   CATEGORY CARD HOVER EFFECT FOR PRODUCT.HTML
   ============================== */

.category-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.category-card img {
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.07);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.product-actions button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-enquiry { background: #2e7d32; color: #fff; }
.btn-spec { background: #1976d2; color: #fff; }
.btn-cart { background: #f9a825; }


.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: #fff;
  padding: 20px;
  width: 320px;
  border-radius: 10px;
}

/* PRODUCTS PAGE GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 cards in one line */
  gap: 24px;
}

/* Tablet */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* PRODUCT ACTION BUTTONS */
.product-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn-enquiry {
  flex: 1;
  background: #2e7d32;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-spec {
  flex: 1;
  background: #1976d2;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-cart {
  width: 50px;
  background: #f9a825;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
}

.product-actions button:hover {
  opacity: 0.9;
}

/* ENQUIRY MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  padding: 20px;
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
}

.modal-box input,
.modal-box textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}



/* ================= FILTER BAR ================= */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #eee;
}

.filter-btn.active {
  background: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
}

/* ================= PRODUCT GRID ================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* ================= PRODUCT CARD ================= */
.product-card {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}

/* BRAND LABELS */
.brand {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  margin: 8px 0;
  font-weight: 600;
}

.brand-kirloskar { background:#2e7d32; color:#fff; }
.brand-greaves   { background:#02b9d1; color:#000; }
.brand-vst       { background:#c42e23; color:#fff; }
.brand-sukala    { background:#bfe70b; color:#000; }


/* PRODUCT NAME (CLICKABLE) */
.product-name {
  font-size: 16px;
  font-weight: 600;
  color: #070707;
  text-decoration: none;
  margin-bottom: 6px;
}

.product-name:hover {
    color: darkred;
    text-decoration: underline;
}

/* PRICE + CART */
.action-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 18px;
  font-weight: bold;
}

.add-cart {
  background: #f9a825;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* HARD OVERRIDE WOO */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: none !important;
}

/* YOUR GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* KILL WOO DEFAULT GRID */
.woocommerce ul.products,
.woocommerce ul.products li.product {
  all: unset !important;
}

/* YOUR PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* ================= PRODUCT GRID FIX ================= */

ul.products.product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  padding: 0;
  list-style: none;
}

/* PRODUCT CARD */
ul.products.product-grid li.product-card {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 🔥 HOVER (THIS WILL WORK NOW) */
ul.products.product-grid li.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

/* IMAGE */
ul.products.product-grid li.product-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}

/* PRODUCT NAME */
ul.products.product-grid li.product-card .product-name {
  font-size: 16px;
  font-weight: 600;
  color: #070707;
  text-decoration: none;
  margin: 10px 0 6px;
  display: block;
}

ul.products.product-grid li.product-card .product-name:hover {
  color: darkred;
  text-decoration: underline;
}

/* PRICE */
ul.products.product-grid li.product-card .price {
  font-size: 18px;
  font-weight: bold;
  color: #000;
}

/* ADD TO CART */
ul.products.product-grid li.product-card .add-cart {
  background: #f9a825;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* =================================================
   FORCE CUSTOM PRODUCT CARD DESIGN (FINAL)
================================================= */

/* GRID */
.woocommerce ul.products.product-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

/* CARD */
.woocommerce ul.products.product-grid li.product {
  background: #fff !important;
  padding: 15px !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08) !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease !important;
  margin-left: 30px !important;
}

/* =========================================
   BAMT – FINAL PRODUCT CATEGORY CARD FIX
========================================= */

/* GRID */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 22px !important;
  margin-top: 20px;
}

/* CARD */

/* ✅ HOVER — NOW IT WILL WORK */
.woocommerce ul.products li.product:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25) !important;
}

/* IMAGE */
.woocommerce ul.products li.product img {
  height: 170px !important;
  object-fit: contain !important;
  margin-bottom: 10px;
}

/* PRODUCT NAME */
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #070707 !important;
  margin: 10px 0 6px !important;
  line-height: 1.4 !important;
}

/* TITLE HOVER */
.woocommerce ul.products li.product h2:hover {
  color: darkred !important;
  text-decoration: none !important;
}

/* PRICE */
.woocommerce ul.products li.product span.price {
  font-size: 18px !important;
  font-weight: bold !important;
  color: #000 !important;
}

/* BUTTON */
.woocommerce ul.products li.product a.button {
  background: #f9a825 !important;
  color: #000 !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
}

/* REMOVE DEFAULT BORDER/AFTER */
.woocommerce ul.products li.product::before,
.woocommerce ul.products li.product::after {
  display: none !important;
}

/* BAMT PRODUCT CARD – FINAL */
.woocommerce ul.products li.product {
  background: #fff !important;
  padding: 15px !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12) !important;
  transition: all 0.4s ease !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
}

.woocommerce ul.products li.product h2 {
  font-size: 16px !important;
  font-weight: 600 !important;
  text-align: center !important;
  margin: 10px 0 !important;
}

.woocommerce ul.products li.product span.price {
  display: inline-block !important;
  background:  #e6f4ea !important; /* light green */
  color: #8b0000 !important;        /* deep red text */
  padding: 6px 14px !important;
  border-radius: 18px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin-top: 8px !important;
}
/* CATEGORY TITLE */
.tax-product_cat .woocommerce-products-header__title,
.tax-product_cat h2 {
  text-align: center !important;
  color: #8b0000 !important;
  font-weight: 700 !important;
  margin-bottom: 15px !important;
}
/* RESULT COUNT */
.tax-product_cat .woocommerce-result-count {
  text-align: center !important;
  color: #555 !important;
  font-size: 14px !important;
  margin-bottom: 25px !important;
}
/* FORCE CATEGORY TITLE PERFECT CENTER */
.tax-product_cat .woocommerce-products-header {
  display: flex !important;
  justify-content: center !important;
}

.tax-product_cat .woocommerce-products-header__title {
  text-align: center !important;
  color: #8b0000 !important;
  font-weight: 700 !important;
  margin: 10px auto 20px auto !important;
}
/* CENTER WOOCOMMERCE PAGE TITLE */
.tax-product_cat h1 {
  text-align: center !important;
  color: #8b0000 !important;   /* deep red */
  font-weight: 700 !important;
  margin: 15px auto 25px auto !important;
}

.header-bottom,
.main-nav {
  position: relative;
  z-index: 1;
}

.cart-icon {
  position: relative;
  z-index: 9999;
  pointer-events: auto;
}

/* ===============================
   PARTNER LOGO SLIDER
   =============================== */

.partners-section {
  padding: 60px 20px;
  background: transparent;
  overflow: hidden;
}

.partners-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #b71c1c;
}

/* Slider wrapper */
.partners-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Moving track */
.partners-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: partners-scroll 25s linear infinite;
}

/* Individual logo */
.partner-logo {
  width: 120px;
  height: 120px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.partner-logo img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

/* Hover effect */
.partner-logo:hover {
  transform: scale(1.08);
}

/* Animation */
@keyframes partners-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===============================
   MOBILE ADJUSTMENTS
   =============================== */

@media (max-width: 768px) {
  .partner-logo {
    width: 90px;
    height: 90px;
  }

  .partners-title {
    font-size: 22px;
  }

  .partners-track {
    gap: 24px;
    animation-duration: 18s;
  }
}

