/* style.css */
/* =======================================================
   header padding for mobile
   ======================================================= */

@media (max-width: 768px) {
  body .inside-header {
    padding-top: 0;
    padding-bottom: 0;
  }
}
/* ============================================
GEW — WooCommerce Product Card (standalone)
============================================ */

/* Clean WooCommerce Grid Container */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin: 0 0 32px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}

/* Individual Product List Item Reset */
.woocommerce ul.products li.product.gew-product-card-item,
.woocommerce ul.products li.product {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  display: flex !important;
}

/* Card Container (Flush Full-Bleed Layout) */
.gew-product-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 0;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease;
}

.gew-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Product Thumbnail — zero margin/padding, touches card border directly */
.gew-product-card__thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #f8fafc;
  margin: 0;
  padding: 0;
}

.gew-product-card__thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.gew-product-card__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gew-product-card:hover .gew-product-card__img {
  transform: scale(1.05);
}

/* Star Rating Badge (top-right of image) */
.gew-product-card__rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(254, 243, 199, 0.95);
  backdrop-filter: blur(4px);
  color: #78350f;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Everything below the image lives in one padded wrapper */
.gew-product-card__body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Meta block (category + title) grows to push pricing/CTA to the bottom */
.gew-product-card__meta {
  flex-grow: 1;
}

.gew-product-card__category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #059669;
  display: block;
  margin: 0 0 2px;
}

/* !important overrides the theme's default WooCommerce loop rule
   (.woocommerce ul.products li.product h3 { padding: 0.3em 0; }) */
.gew-product-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 !important;
  padding: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gew-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.gew-product-card__title a:hover {
  color: #059669;
}

/* Bottom Actions & Price Row */
.gew-product-card__bottom {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.gew-product-card__pricing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.gew-product-card__price {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0c1f18;
  display: inline-flex;
  align-items: baseline;
}

.gew-product-card__price-old {
  font-size: 0.9rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.gew-product-card__discount {
  font-size: 0.8rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 1px 4px;
  border-radius: 4px;
  line-height: 1.2;
}

/* WhatsApp Buy Now Button */
.gew-product-card__cta {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  background: #0c1f18;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gew-product-card__cta:hover {
  background: #16382c;
  transform: translateY(-1px);
}

.gew-product-card__cta:active {
  transform: scale(0.98);
}

.gew-product-card__cta-icon {
  width: 14px;
  height: 14px;
  fill: #34d399;
  flex-shrink: 0;
}

/* ── Mobile (product-card rules only) ── */
@media (max-width: 768px) {
  .woocommerce ul.products,
  ul.products.columns-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .gew-product-card {
    padding: 0;
    border-radius: 12px;
  }

  .gew-product-card__body {
    padding: 8px;
  }

  .gew-product-card__category {
    font-size: 0.65rem;
  }

  .gew-product-card__title {
    font-size: 0.82rem;
  }

  .gew-product-card__price {
    font-size: 1.2rem;
  }

  .gew-product-card__cta {
    padding: 5px 6px;
    font-size: 1rem;
  }
}
