/* ========== SECTION HEADER ========== */

.prx-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.prx-section-title {
  font-size: 18px;
  font-weight: 700;
  color: #3c2415;
}

.prx-section-view-all {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #4b5563;
  background: #ffffff;
}

/* ========== OFFER BAR ========== */

.prx-grid-wrapper {
  width: 100%;
}

.prx-offer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background-color: #f97316;
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.prx-offer-main {
  flex: 1 1 auto;
  min-width: 0;
}

.prx-offer-title {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prx-offer-subtitle {
  font-size: 12px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prx-offer-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.prx-offer-tag {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
}

.prx-offer-tag.free {
  background: rgba(16, 185, 129, 0.2);
}
.prx-offer-tag.discount {
  background: rgba(248, 250, 252, 0.25);
}

.prx-offer-count-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
}

.prx-offer-count-label {
  opacity: 0.9;
}

.prx-offer-timer {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ========== GRID LAYOUT ========== */

.prx-grid {
  display: grid;
  gap: 24px;
}

/* Desktop */
.prx-grid.prx-cols-desktop-1 { grid-template-columns: repeat(1, minmax(0,1fr)); }
.prx-grid.prx-cols-desktop-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.prx-grid.prx-cols-desktop-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.prx-grid.prx-cols-desktop-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.prx-grid.prx-cols-desktop-5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.prx-grid.prx-cols-desktop-6 { grid-template-columns: repeat(6, minmax(0,1fr)); }

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
  .prx-grid.prx-cols-tablet-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .prx-grid.prx-cols-tablet-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prx-grid.prx-cols-tablet-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prx-grid.prx-cols-tablet-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Mobile */
@media (max-width: 767px) {
  .prx-offer-bar {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 18px;
  }

  .prx-grid {
    gap: 12px;
  }

  .prx-grid.prx-cols-mobile-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .prx-grid.prx-cols-mobile-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prx-grid.prx-cols-mobile-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .prx-card-inner {
    border-radius: 16px;
  }

  .prx-thumb-wrap {
    padding: 10px 10px 0;
  }

  .prx-thumb {
    padding: 6px;
  }
}

/* ========== CARD ========== */

.prx-card {
  position: relative;
}

.prx-card-inner {
  display: flex;
  flex-direction: column;
  background: #fff5eb;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.prx-card-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

/* Image tile */
.prx-thumb-wrap {
  position: relative;
  padding: 14px 14px 0;
}

.prx-thumb {
  display: block;
  background: #ffffff;
  border-radius: 14px;
  padding: 8px;
}

.prx-thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Discount badge on image */
.prx-badge {
  position: absolute;
  top: 10px;
  left: 20px;
  background: #b91c1c;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
}

/* BODY TEXT */
.prx-body {
  padding: 10px 16px 6px;
  text-align: left;
}

/* clamp product name to 2 lines */
.prx-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prx-title a {
  text-decoration: none;
  color: #1f2933;
}

.prx-cat {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 6px;
}

/* price + chip row */
.prx-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 4px;
}

.prx-price {
  font-weight: 700;
  font-size: 16px;
  color: #111827;
  margin-bottom: 2px;
}

.prx-price-discount-chip {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 7px;
  border-radius: 999px;
}

/* RATING */
.prx-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  margin-bottom: 4px;
}

.prx-stars {
  color: #f59e0b;
  letter-spacing: 1px;
}

.prx-rating-num {
  color: #6b7280;
}

/* STOCK TEXT */
.prx-stock {
  font-size: 11px;
}
.prx-stock.in  { color: #16a34a; }
.prx-stock.out { color: #b91c1c; }

/* FOOTER BUTTONS */
.prx-footer {
  padding: 10px 16px 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.prx-btn {
  flex: 1 1 auto;
  text-align: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  background: #ffffff;
  transition: box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.prx-btn-primary {
  background: #542318;
  border-color: #542318;
  color: #ffffff;
}

.prx-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.prx-btn-secondary {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

.prx-btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* hide Woo "View cart" text */
.prx-footer .added_to_cart {
  display: none !important;
}

/* neutralize Woo default .button style inside this widget */
.prx-footer .button {
  box-shadow: none;
}
