/* ============================================================
   TR Organic Seeds Natural – Global Updates v2.0
   Anveshan-style buttons, logo, mobile fixes, new sections
   ============================================================ */

/* ---- Logo Image ---- */
.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.logo-text .logo-name {
  background: linear-gradient(135deg, #14421f, #2d8a40);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-head, 'Playfair Display', serif);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}
.logo-text .logo-tagline {
  font-size: .68rem;
  color: #888;
  letter-spacing: .05em;
}

/* ---- Anveshan-style ADD TO CART button ---- */
.atc-wrap {
  display: flex;
  align-items: stretch;
  border: 2px solid #1e6b2e;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  transition: all .2s;
}
.atc-wrap:hover { border-color: #14421f; box-shadow: 0 4px 16px rgba(30,107,46,.2); }

.atc-wrap .qty-minus,
.atc-wrap .qty-plus {
  width: 40px;
  min-height: 44px;
  background: #1e6b2e;
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
  user-select: none;
}
.atc-wrap .qty-minus:hover,
.atc-wrap .qty-plus:hover { background: #14421f; }

.atc-wrap .qty-num {
  width: 36px;
  min-height: 44px;
  background: white;
  border-left: 1.5px solid #c8ddb8;
  border-right: 1.5px solid #c8ddb8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: #1e6b2e;
  flex-shrink: 0;
}

.atc-wrap .add-label,
.atc-wrap .atc-label {
  flex: 1;
  background: white;
  color: #1e6b2e;
  font-weight: 700;
  font-size: .88rem;
  text-align: center;
  padding: 12px 8px;
  cursor: pointer;
  border: none;
  transition: all .2s;
  letter-spacing: .04em;
  font-family: inherit;
  text-transform: uppercase;
}
.atc-wrap .add-label:hover,
.atc-wrap .atc-label:hover { background: #e6f4ea; }
.atc-wrap.added .add-label,
.atc-wrap.added .atc-label {
  background: #1e6b2e;
  color: white;
}

/* Hide old-style buttons — replace with atc-wrap */
.btn-add-cart:not(.keep), .btn-cart:not(.keep) {
  /* Keep legacy buttons but make them match new style */
  border-radius: 8px !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  font-size: .88rem !important;
}

/* ---- Product Card: Real Image Support ---- */
.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f9f2, #fffbf0);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.product-img-wrap .emoji-fallback {
  font-size: 5rem;
  display: none;
}
.product-img-wrap img[src=""],
.product-img-wrap img:not([src]) {
  display: none;
}
.product-img-wrap img[src=""] + .emoji-fallback,
.product-img-wrap img:not([src]) + .emoji-fallback {
  display: flex;
}

/* ---- Product Card Image Zoom ---- */
.product-card:hover .product-img-wrap img { transform: scale(1.07); }

/* ---- Mobile Responsive Fixes ---- */
@media (max-width: 768px) {
  .logo-img { width: 48px; height: 48px; }
  .logo-text .logo-name { font-size: .9rem; }

  .header-inner { height: 64px; gap: 12px; padding: 0 12px; }

  .atc-wrap .qty-minus,
  .atc-wrap .qty-plus { width: 36px; }
  .atc-wrap .qty-num  { width: 32px; }

  .product-body { padding: 12px; }
  .price-now { font-size: 1.1rem; }
  .variant-row { gap: 4px; }
  .variant-btn { padding: 4px 9px; font-size: .72rem; }
}

@media (max-width: 360px) {
  .logo-text .logo-tagline { display: none; }
  .logo-text .logo-name { font-size: .82rem; }
}

/* ---- New Category Nav Pills ---- */
.category-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-pills::-webkit-scrollbar { display: none; }
.category-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid #e0e0d8;
  background: white;
  font-size: .84rem;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  text-decoration: none;
  transition: all .2s;
  flex-shrink: 0;
}
.category-pill:hover, .category-pill.active {
  background: #1e6b2e;
  color: white;
  border-color: #1e6b2e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,107,46,.25);
}
.category-pill-icon { font-size: 1.1rem; }

/* ---- Honey Section ---- */
.honey-card {
  background: linear-gradient(135deg, #fff9ed, #fffdf5);
  border: 1px solid #f0d98a;
  border-radius: 16px;
  overflow: hidden;
  transition: all .25s;
  position: relative;
}
.honey-card:hover { box-shadow: 0 8px 28px rgba(200,136,26,.2); transform: translateY(-4px); }
.honey-img { aspect-ratio: 1; background: linear-gradient(135deg,#fffaec,#fff3cc); display:flex; align-items:center; justify-content:center; font-size:5rem; overflow:hidden; }
.honey-img img { width:100%; height:100%; object-fit:cover; }
.honey-type-badge { position:absolute; top:10px; left:10px; background:#c8881a; color:white; padding:3px 10px; border-radius:50px; font-size:.7rem; font-weight:700; }
.honey-body { padding: 16px; }
.honey-size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.honey-size-btn { padding:6px 4px; border:1.5px solid #e0d4a0; border-radius:6px; text-align:center; cursor:pointer; font-size:.74rem; font-weight:600; color:#7a5c2e; background:white; transition:all .2s; }
.honey-size-btn:hover, .honey-size-btn.active { border-color:#c8881a; background:#fdf6e3; color:#c8881a; }
.honey-size-btn .size-price { display:block; font-size:.8rem; font-weight:800; color:#1e6b2e; }

/* ---- Masala Section ---- */
.masala-card {
  background: linear-gradient(135deg, #fff8f0, #fffaf5);
  border: 1px solid #f0c8a0;
  border-radius: 16px;
  overflow: hidden;
  transition: all .25s;
}
.masala-card:hover { box-shadow: 0 8px 28px rgba(180,80,20,.18); transform: translateY(-4px); }

/* ---- Ghee Section ---- */
.ghee-card {
  background: linear-gradient(135deg, #fffdf0, #fffbea);
  border: 1px solid #e8d48a;
  border-radius: 16px;
  overflow: hidden;
  transition: all .25s;
}
.ghee-card:hover { box-shadow: 0 8px 28px rgba(200,136,26,.22); transform: translateY(-4px); }

/* ---- Jaggery Section ---- */
.jaggery-card {
  background: linear-gradient(135deg, #f5f0e8, #fdf8f0);
  border: 1px solid #c8a870;
  border-radius: 16px;
  overflow: hidden;
  transition: all .25s;
}
.jaggery-card:hover { box-shadow: 0 8px 28px rgba(122,92,46,.2); transform: translateY(-4px); }

/* ---- Section Banners for new categories ---- */
.new-category-banner {
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  overflow: hidden;
  position: relative;
}
.new-category-banner .nb-text h2 { font-family: var(--font-head); font-size: clamp(1.4rem,2.5vw,2rem); margin-bottom: 8px; }
.new-category-banner .nb-text p  { font-size: .95rem; opacity: .88; max-width: 480px; margin-bottom: 16px; }
.new-category-banner .nb-emoji   { font-size: 5rem; flex-shrink: 0; }

.banner-honey   { background: linear-gradient(135deg, #c8881a, #e09b20); color: white; }
.banner-ghee    { background: linear-gradient(135deg, #7a5c2e, #c8881a); color: white; }
.banner-masala  { background: linear-gradient(135deg, #8b2020, #c84020); color: white; }
.banner-jaggery { background: linear-gradient(135deg, #5c4010, #8b6020); color: white; }

/* ---- Mobile nav improvements ---- */
.mobile-nav { width: 280px; }
@media (max-width:360px) { .mobile-nav { width:260px; } }

/* ---- QR Code fix ---- */
#qr-canvas { max-width: 220px; max-height: 220px; border-radius: 12px; }

/* ---- Star ratings ---- */
.stars { color: #f59e0b; letter-spacing: -1px; }

/* ---- Trust badges for product pages ---- */
.product-trust-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
  padding: 12px;
  background: #f0f9f2;
  border-radius: 10px;
  border: 1px solid #c8ddb8;
}
.pt-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 600;
  color: #1e6b2e;
  background: white;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid #c8ddb8;
}

/* ---- Mobile-first product grid ---- */
@media (max-width:480px) {
  .products-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .honey-size-grid { grid-template-columns: repeat(2, 1fr); }
  .new-category-banner { padding: 24px; }
  .new-category-banner .nb-emoji { font-size: 3rem; }
}

/* ---- Footer logo fix ---- */
.footer-logo-img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; }
