/* =================================================================
   GOLDENWOOD AGRO — Cards & Content Blocks
   ================================================================= */

/* ── Base Card ─────────────────────────────────────────────────── */
.gw-card {
  background: var(--gw-bg-white);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-lg);
  overflow: hidden;
  transition: transform var(--gw-transition), box-shadow var(--gw-transition), border-color var(--gw-transition);
}

.gw-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gw-shadow-md);
  border-color: var(--gw-border-dark);
}

.gw-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gw-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--gw-transition-slow);
}

.gw-card:hover .gw-card__image img {
  transform: scale(1.05);
}

.gw-card__body {
  padding: var(--gw-space-5) var(--gw-space-5) var(--gw-space-6);
}

.gw-card__label {
  font-size: var(--gw-text-xs);
  font-weight: var(--gw-fw-semibold);
  letter-spacing: var(--gw-ls-wider);
  text-transform: uppercase;
  color: var(--gw-accent);
  margin-bottom: var(--gw-space-2);
}

.gw-card__title {
  font-family: var(--gw-font-heading);
  font-size: var(--gw-text-xl);
  font-weight: var(--gw-fw-semibold);
  color: var(--gw-text-primary);
  margin-bottom: var(--gw-space-3);
  line-height: var(--gw-lh-snug);
}

.gw-card__title a {
  color: inherit;
  transition: color var(--gw-transition-fast);
}

.gw-card__title a:hover {
  color: var(--gw-primary);
}

.gw-card__text {
  font-size: var(--gw-text-sm);
  color: var(--gw-text-muted);
  line-height: var(--gw-lh-relaxed);
  margin-bottom: var(--gw-space-5);
}

.gw-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--gw-space-4);
  border-top: 1px solid var(--gw-border);
  margin-top: auto;
}

/* ── Product Card ──────────────────────────────────────────────── */
.gw-product-card,
.woocommerce ul.products li.product {
  background: var(--gw-bg-white);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-lg);
  overflow: hidden;
  transition: transform var(--gw-transition), box-shadow var(--gw-transition), border-color var(--gw-transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.woocommerce ul.products li.product:hover,
.gw-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gw-shadow-lg);
  border-color: var(--gw-green-200);
}

/* Product image wrapper */
.gw-product-card__image,
.woocommerce ul.products li.product a img {
  position: relative;
  overflow: hidden;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform var(--gw-transition-slow) !important;
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.06) !important;
}

/* Badge / Label */
.gw-product-badge {
  position: absolute;
  top: var(--gw-space-3);
  left: var(--gw-space-3);
  z-index: 2;
}

.gw-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--gw-fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--gw-radius-full);
  line-height: 1;
}

.gw-badge--new      { background: var(--gw-primary); color: #ffffff; }
.gw-badge--sale     { background: #e74c3c; color: #ffffff; }
.gw-badge--hot      { background: var(--gw-accent); color: #ffffff; }
.gw-badge--organic  { background: var(--gw-green-50); color: var(--gw-primary); border: 1px solid var(--gw-border); }

/* WooCommerce sale badge */
.woocommerce span.onsale {
  background: #e74c3c !important;
  color: #ffffff !important;
  border-radius: var(--gw-radius-full) !important;
  font-size: 11px !important;
  font-weight: var(--gw-fw-bold) !important;
  min-width: auto !important;
  min-height: auto !important;
  padding: 4px 10px !important;
  line-height: 1.2 !important;
  top: var(--gw-space-3) !important;
  left: var(--gw-space-3) !important;
}

/* Product body */
.gw-product-card__body,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
  padding: var(--gw-space-4) var(--gw-space-5) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--gw-font-heading) !important;
  font-size: var(--gw-text-base) !important;
  font-weight: var(--gw-fw-semibold) !important;
  color: var(--gw-text-primary) !important;
  margin-bottom: var(--gw-space-2) !important;
  padding: var(--gw-space-4) var(--gw-space-5) var(--gw-space-2) !important;
  line-height: var(--gw-lh-snug) !important;
}

.woocommerce ul.products li.product .price {
  color: var(--gw-primary) !important;
  font-size: var(--gw-text-xl) !important;
  font-weight: var(--gw-fw-bold) !important;
  font-family: var(--gw-font-heading) !important;
  padding-top: 0 !important;
  padding-bottom: var(--gw-space-4) !important;
}

.woocommerce ul.products li.product .price del {
  color: var(--gw-text-muted) !important;
  font-size: var(--gw-text-sm) !important;
  font-weight: var(--gw-fw-normal) !important;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none !important;
  color: #e74c3c !important;
}

/* Product card – category */
.woocommerce ul.products li.product .ast-woo-product-category {
  font-size: var(--gw-text-xs) !important;
  color: var(--gw-accent) !important;
  text-transform: uppercase;
  letter-spacing: var(--gw-ls-wide);
  font-weight: var(--gw-fw-semibold) !important;
  padding: var(--gw-space-4) var(--gw-space-5) 0 !important;
}

/* Rating */
.woocommerce .star-rating {
  color: var(--gw-accent) !important;
  font-size: 14px !important;
}

/* ── Feature Card ──────────────────────────────────────────────── */
.gw-feature-card {
  background: var(--gw-bg-white);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-lg);
  padding: var(--gw-space-8);
  transition: transform var(--gw-transition), box-shadow var(--gw-transition);
}

.gw-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gw-shadow-md);
}

.gw-feature-card--accent {
  background: linear-gradient(135deg, var(--gw-bg-green-light), var(--gw-bg-white));
  border-color: var(--gw-green-200);
}

.gw-feature-card__icon {
  width: 56px;
  height: 56px;
  background: var(--gw-bg-green-light);
  border-radius: var(--gw-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--gw-space-5);
  color: var(--gw-primary);
}

.gw-feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.gw-feature-card--gold .gw-feature-card__icon {
  background: var(--gw-bg-gold-light);
  color: var(--gw-accent);
}

.gw-feature-card__title {
  font-size: var(--gw-text-xl);
  font-weight: var(--gw-fw-semibold);
  color: var(--gw-text-primary);
  margin-bottom: var(--gw-space-3);
}

.gw-feature-card__text {
  font-size: var(--gw-text-sm);
  color: var(--gw-text-muted);
  line-height: var(--gw-lh-relaxed);
}

/* ── Stat Card ─────────────────────────────────────────────────── */
.gw-stat-card {
  text-align: center;
  padding: var(--gw-space-8) var(--gw-space-6);
}

.gw-stat-card__number {
  font-family: var(--gw-font-heading);
  font-size: clamp(var(--gw-text-4xl), 5vw, var(--gw-text-6xl));
  font-weight: var(--gw-fw-extrabold);
  color: var(--gw-primary);
  line-height: 1;
  margin-bottom: var(--gw-space-2);
}

.gw-stat-card--dark .gw-stat-card__number {
  color: var(--gw-gold-300);
}

.gw-stat-card__number span.unit {
  font-size: 0.5em;
  font-weight: var(--gw-fw-bold);
  color: var(--gw-accent);
  vertical-align: super;
}

.gw-stat-card__label {
  font-size: var(--gw-text-base);
  font-weight: var(--gw-fw-semibold);
  color: var(--gw-text-primary);
  margin-bottom: var(--gw-space-2);
}

.gw-stat-card--dark .gw-stat-card__label {
  color: rgba(255,255,255,0.9);
}

.gw-stat-card__desc {
  font-size: var(--gw-text-sm);
  color: var(--gw-text-muted);
}

.gw-stat-card--dark .gw-stat-card__desc {
  color: rgba(255,255,255,0.55);
}

/* ── Blog Post Card ────────────────────────────────────────────── */
.gw-blog-card {
  background: var(--gw-bg-white);
  border-radius: var(--gw-radius-lg);
  overflow: hidden;
  border: 1px solid var(--gw-border);
  transition: transform var(--gw-transition), box-shadow var(--gw-transition);
}

.gw-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gw-shadow-md);
}

.gw-blog-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.gw-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--gw-transition-slow);
}

.gw-blog-card:hover .gw-blog-card__image img {
  transform: scale(1.06);
}

.gw-blog-card__body {
  padding: var(--gw-space-5) var(--gw-space-6);
}

.gw-blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--gw-space-3);
  font-size: var(--gw-text-xs);
  color: var(--gw-text-muted);
  margin-bottom: var(--gw-space-3);
}

.gw-blog-card__meta-dot {
  width: 3px;
  height: 3px;
  background: var(--gw-text-100);
  border-radius: var(--gw-radius-full);
}

.gw-blog-card__title {
  font-family: var(--gw-font-heading);
  font-size: var(--gw-text-xl);
  font-weight: var(--gw-fw-semibold);
  color: var(--gw-text-primary);
  margin-bottom: var(--gw-space-3);
  line-height: var(--gw-lh-snug);
}

.gw-blog-card__title a {
  color: inherit;
}

.gw-blog-card__title a:hover {
  color: var(--gw-primary);
}

.gw-blog-card__excerpt {
  font-size: var(--gw-text-sm);
  color: var(--gw-text-muted);
  line-height: var(--gw-lh-relaxed);
  margin-bottom: var(--gw-space-4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Advantage Item ────────────────────────────────────────────── */
.gw-advantage {
  display: flex;
  align-items: flex-start;
  gap: var(--gw-space-4);
}

.gw-advantage__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--gw-bg-green-light);
  border-radius: var(--gw-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gw-primary);
}

.gw-advantage__content {
  flex: 1;
}

.gw-advantage__title {
  font-weight: var(--gw-fw-semibold);
  font-size: var(--gw-text-base);
  color: var(--gw-text-primary);
  margin-bottom: var(--gw-space-1);
}

.gw-advantage__text {
  font-size: var(--gw-text-sm);
  color: var(--gw-text-muted);
  line-height: var(--gw-lh-relaxed);
}
