/* ═══════════════════════════════════════════════════════════════════
   WELLNES GURU — PRODUCT CARD
   ═══════════════════════════════════════════════════════════════════ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
}
.shop-layout .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.8vw, 1.35rem);
  width: 100%;
}
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-layout .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .product-grid,
  .shop-layout .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }
}
@media (max-width: 340px) {
  .product-grid,
  .shop-layout .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.product-card {
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast), border-color var(--trans-fast);
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  border-color: #D1D5DB;
}
.product-card:focus-within {
  box-shadow: 0 0 0 2px var(--c-primary);
}

/* Image Area */
.product-card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F9FAFB;
  display: block;
  width: 100%;
}
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.product-card:hover .product-card-img {
  transform: scale(1.04);
}
.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}
.badge-bestseller {
  background: var(--c-primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.badge-sale {
  background: #217843;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.card-wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--trans-fast);
  color: #9CA3AF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.card-wishlist:hover {
  background: #fff;
  color: var(--c-error);
  transform: scale(1.1);
}
.card-wishlist.active {
  color: var(--c-error);
}

/* Card Body */
.product-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  min-width: 0;
  box-sizing: border-box;
}

/* Rating Row — Teal Star & Counter (Vaidban Style) */
.product-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-teal);
  min-height: 18px;
}
.vaidban-star {
  color: var(--c-teal);
  font-size: 13px;
  line-height: 1;
}
.vaidban-rating-val {
  color: #121212;
  font-weight: 700;
}
.vaidban-review-count {
  color: #718096;
  font-size: 12px;
  font-weight: 400;
}

/* Product Title */
.product-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #121212;
  line-height: 1.35;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  margin: 2px 0 4px;
}
.product-card-name a {
  text-decoration: none;
  color: #121212;
  transition: color var(--trans-fast);
}
.product-card-name a:hover {
  color: var(--c-primary);
}

/* Price Row (From ₹ X,XXX) */
.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
  min-height: 24px;
  font-size: 15px;
}
.price-prefix {
  font-size: 13px;
  font-weight: 400;
  color: #718096;
}
.price-sale {
  font-size: 16px;
  font-weight: 800;
  color: #121212;
}
.price-mrp {
  font-size: 13px;
  color: #9CA3AF;
  text-decoration: line-through;
}

/* Card Actions: Full-Width Vibrant Orange Add To Cart CTA */
.product-card-actions {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 8px;
  width: 100%;
}
.btn-vaidban-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  color: #FFFFFF !important;
  background: var(--c-accent);
  cursor: pointer;
  transition: all var(--trans-fast);
  text-align: center;
  min-height: 42px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  letter-spacing: 0.01em;
}
.btn-vaidban-cart:hover {
  background: var(--c-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 141, 50, 0.35);
}
.btn-vaidban-cart:active {
  transform: translateY(0);
}
.btn-vaidban-cart:disabled,
.btn-vaidban-cart[disabled] {
  background: #cbd5e1 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
}
.btn-vaidban-cart .btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  line-height: 1;
  width: 100%;
}
.btn-vaidban-cart.loading .btn-text {
  opacity: 0;
}
.btn-vaidban-cart .btn-spinner {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
}
.btn-vaidban-cart.loading .btn-spinner {
  display: flex;
}

/* ── 2-Column Mobile Optimization (Up to 768px) ─────────────────── */
@media (max-width: 768px) {
  .product-card {
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
  }
  .product-card-body {
    padding: 0.65rem 0.55rem 0.65rem;
    gap: 0.3rem;
    min-width: 0;
  }
  .product-card-category {
    font-size: 0.62rem;
  }
  .product-card-name {
    font-size: 0.8rem;
    line-height: 1.25;
    min-height: 2.5em;
    margin-bottom: 0.1rem;
  }
  .product-card-desc {
    display: none;
  }
  .product-card-rating {
    gap: 2px;
    min-height: 14px;
  }
  .rating-stars .star {
    font-size: 0.68rem;
  }
  .rating-count {
    font-size: 0.62rem;
  }
  .product-card-price {
    gap: 0.2rem;
    min-height: 26px;
    align-items: center;
  }
  .price-sale {
    font-size: 0.95rem;
  }
  .price-mrp {
    font-size: 0.68rem;
  }
  .price-off {
    font-size: 0.58rem;
    padding: 1px 4px;
  }
  .product-card-avail {
    display: none;
  }
  .product-card-actions {
    gap: 0.25rem;
    margin-top: auto;
  }
  /* On mobile, keep clean single Add to Cart or compact stack */
  .btn-view-more {
    display: none; /* Clicking card/image directly opens product page */
  }
  .btn-buy-now {
    font-size: 0.76rem;
    padding: 0.45rem 0.5rem;
    min-height: 36px;
    border-radius: var(--radius-full);
  }
  .btn-buy-now .btn-text {
    gap: 0.25rem;
  }
  .btn-buy-now .btn-text svg {
    width: 13px;
    height: 13px;
  }
  .card-badges {
    top: 0.35rem;
    left: 0.35rem;
    gap: 2px;
  }
  .card-badges .badge {
    font-size: 0.55rem;
    padding: 0.15rem 0.35rem;
  }
  .card-wishlist {
    top: 0.35rem;
    right: 0.35rem;
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }
}

/* ── Footer Bar Styles ───────────────────────────────────────────── */
.site-footer {
  background: var(--c-primary-dark); color: rgba(255,255,255,.85);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.75rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col-contact {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem clamp(0.75rem, 3.5vw, 1.25rem);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col-links {
    grid-column: 1;
  }
  .footer-col-service {
    grid-column: 2;
  }
  .footer-col-contact {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
  }
  .footer-col h4 {
    font-size: clamp(0.82rem, 3.2vw, 0.92rem);
    margin-bottom: var(--sp-3);
  }
  .footer-links {
    gap: 0.65rem;
  }
  .footer-links a {
    font-size: clamp(0.8rem, 3vw, 0.88rem);
    line-height: 1.4;
  }
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.footer-logo .logo-name { color: #fff; }
.footer-logo .logo-tagline { color: rgba(255,255,255,.6); }
.footer-brand p { font-size: var(--fs-sm); line-height: 1.7; margin-bottom: var(--sp-5); color: rgba(255,255,255,.7); }
.social-links { display: flex; gap: var(--sp-3); }
.social-link {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: all var(--trans-fast); color: rgba(255,255,255,.8);
}
.social-link:hover { background: var(--c-accent); color: #fff; transform: translateY(-2px); }
.footer-col h4 { font-size: var(--fs-sm); font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-5); }
.footer-links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-links a { font-size: var(--fs-sm); color: rgba(255,255,255,.65); transition: color var(--trans-fast); }
.footer-links a:hover { color: var(--c-accent-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-sm); color: rgba(255,255,255,.65); margin-bottom: var(--sp-3); }
.footer-contact-item .icon { color: var(--c-accent); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--sp-8);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4);
}
.footer-bottom p { font-size: var(--fs-xs); color: rgba(255,255,255,.5); }
.payment-methods-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: wrap;
}
.payment-card {
  background: #FFFFFF;
  border-radius: 6px;
  padding: 4px 10px;
  height: 32px;
  min-width: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
.payment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.28);
}
.payment-logo-img {
  height: 20px;
  max-width: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-4);
  }
  .payment-methods-row {
    justify-content: center;
  }
  /* Center footer logo on mobile */
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-brand .footer-logo {
    justify-content: center;
  }
  .footer-brand p {
    text-align: center;
  }
  .social-links {
    justify-content: center;
  }
}
