/* ==========================================================================
   COMPONENTS.CSS
   Reusable UI pieces shared across every page: buttons, form fields,
   cards, toast notifications, loader, badges/stamps.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-secondary:hover {
  background-color: var(--color-primary-dark);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  padding: var(--space-2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   Form fields
   -------------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary-dark);
}

.field input,
.field textarea,
.field select {
  padding: var(--space-3);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  font-size: var(--fs-base);
  transition: border-color var(--transition-fast);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--color-primary);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field-error {
  font-size: var(--fs-xs);
  color: var(--color-danger);
  display: none;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--color-danger);
}

.field.has-error .field-error {
  display: block;
}

/* --------------------------------------------------------------------------
   Card (base shared shell used by product cards, category cards, etc.)
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

/* --------------------------------------------------------------------------
   Stamp badge — signature detail: a rotated, hand-stamped market ticket
   used for "Fresh", "% Off", "Out of Stock" etc.
   -------------------------------------------------------------------------- */
.stamp {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  padding: var(--space-1) var(--space-3);
  border: 1.5px dashed currentColor;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transform: rotate(-4deg);
  background-color: var(--color-surface);
}

.stamp-fresh {
  color: var(--color-success);
}

.stamp-offer {
  color: var(--color-accent);
}

.stamp-out {
  color: var(--color-danger);
}

/* --------------------------------------------------------------------------
   Stock status text
   -------------------------------------------------------------------------- */
.stock-status {
  font-size: var(--fs-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.stock-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: currentColor;
}

.stock-status.in-stock {
  color: var(--color-success);
}

.stock-status.low-stock {
  color: var(--color-warning);
}

.stock-status.out-of-stock {
  color: var(--color-danger);
}

/* --------------------------------------------------------------------------
   Quantity stepper (used in product details + cart)
   -------------------------------------------------------------------------- */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-stepper button {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-primary);
  background-color: var(--color-bg);
  transition: background-color var(--transition-fast);
}

.qty-stepper button:hover {
  background-color: var(--color-border);
}

.qty-stepper button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-stepper input {
  width: 40px;
  text-align: center;
  border: none;
  font-weight: 600;
  font-family: var(--font-mono);
  -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Toast notification
   -------------------------------------------------------------------------- */
#toast-container {
  position: fixed;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: min(90vw, 380px);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background-color: var(--color-primary-dark);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  animation: toast-in var(--transition-base) forwards, toast-out var(--transition-base) forwards 2.6s;
}

.toast.toast-success { background-color: var(--color-success); }
.toast.toast-error { background-color: var(--color-danger); }
.toast.toast-info { background-color: var(--color-primary-dark); }

@keyframes toast-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(-8px); }
}

/* --------------------------------------------------------------------------
   Loader / spinner
   -------------------------------------------------------------------------- */
#loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 248, 251, 0.88);
  backdrop-filter: blur(2px);
}

#loader-overlay.active {
  display: flex;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Inline skeleton loading blocks, used while product grids fetch */
.skeleton {
  background: linear-gradient(90deg, var(--color-border) 25%, #F6E8EF 37%, var(--color-border) 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.empty-state {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  color: var(--color-text-muted);
}

.empty-state h3 {
  margin-bottom: var(--space-2);
  font-family: var(--font-bengali);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-primary-dark);
}

.empty-state p {
  max-width: 440px;
  font-family: var(--font-bengali);
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Storefront product cards */
.product-card { position: relative; overflow: hidden; border: 1px solid var(--color-border); border-radius: 17px; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-fast); }
.product-card:hover { transform: translateY(-5px); border-color: #F2B9D1; box-shadow: var(--shadow-md); }
.product-card__media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #FFF2F7; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.discount-badge { position: absolute; z-index: 2; top: 10px; left: 10px; min-width: 45px; height: 28px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #dc2626; color: #fff; font-family: var(--font-body); font-size: .72rem; font-weight: 800; }
.product-card__popular { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 6px 9px; border-radius: 8px; background: rgba(17,16,24,.86); color: #fff; font-family: var(--font-body); font-size: .61rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.product-card__body { padding: 13px; display: flex; flex-direction: column; gap: 7px; }
.product-card__category { color: var(--color-primary); font-family: var(--font-body); font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.product-card__name h3 { min-height: 2.7em; color: var(--color-primary-dark); font-family: var(--font-body); font-size: .9rem; font-weight: 800; line-height: 1.35; }
.product-card__desc { min-height: 2.7em; color: var(--color-text-muted); font-size: .72rem; line-height: 1.45; }
.product-card__price-row { display: flex; align-items: baseline; gap: 7px; }
.product-card__price-row .price { color: var(--color-primary-dark); font-size: 1.02rem; font-weight: 800; }
.product-card__price-row del { color: #97929f; font-family: var(--font-body); font-size: .73rem; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-card__details { color: var(--color-primary); font-size: .72rem; font-weight: 700; }
.product-card__add { min-height: 42px; margin-top: 3px; border-radius: 11px; font-size: .79rem; font-weight: 700; }
.product-card__add svg { flex-shrink: 0; }
.product-card--skeleton { pointer-events: none; }

@media (min-width: 768px) {
  .product-card__body { padding: 16px; gap: 8px; }
  .product-card__name h3 { font-size: .98rem; }
  .product-card__desc { font-size: .78rem; }
  .product-card__price-row .price { font-size: 1.18rem; }
}
@media (max-width: 420px) {
  .product-card__body { padding: 11px; }
  .product-card__name h3 { font-size: .82rem; }
  .product-card__desc { display: none; }
  .product-card__footer { align-items: flex-end; }
  .stock-status { font-size: .64rem; }
  .product-card__add { padding-inline: 8px; font-size: .72rem; }
}

/* ===== Version 12: premium product cards ===== */
.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #DCE8D6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 79, 42, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(46, 157, 69, .34);
  box-shadow: 0 18px 38px rgba(31, 79, 42, .13);
}

.product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 12px;
  background:
    radial-gradient(circle at 72% 25%, rgba(46, 157, 69, .10), transparent 34%),
    linear-gradient(145deg, #FCFEFA, #F1F8ED);
}

.product-card__media::after {
  content: '';
  position: absolute;
  inset: auto 12% 7% 12%;
  height: 12%;
  border-radius: 50%;
  background: rgba(31, 79, 42, .12);
  filter: blur(12px);
  pointer-events: none;
}

.product-card__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}

.product-card:hover .product-card__media img { transform: scale(1.045); }

.discount-badge {
  top: 10px;
  left: 10px;
  min-width: 48px;
  height: 29px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef233c, #ff5a6e);
  box-shadow: 0 7px 16px rgba(239, 35, 60, .23);
  font-size: .7rem;
}

.product-card__popular {
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(31, 79, 42, .92);
  backdrop-filter: blur(8px);
  font-size: .6rem;
  letter-spacing: 0;
  text-transform: none;
}

.product-card__popular span { color: #ffb703; }

.product-card__body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.product-card__category {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #EEF8E9;
  color: #1F6E32;
  font-size: .61rem;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}

.product-card__name h3 {
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #243325;
  font-size: .94rem;
  line-height: 1.35;
}

.product-card__desc {
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #5F7162;
  font-size: .73rem;
  line-height: 1.45;
}

.product-card__price-row {
  min-height: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.product-card__price-row .price {
  color: #EA7A13;
  font-size: 1.08rem;
  font-weight: 800;
}

.product-card__price-row del {
  color: #a49aa5;
  font-size: .72rem;
}

.product-card__footer {
  min-height: 23px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-card__details {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #2E9D45;
  font-size: .7rem;
  font-weight: 800;
}

.product-card__details span { font-size: 1rem; line-height: 1; }

.product-card__actions {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 7px;
  margin-top: 4px;
}

.product-card__add,
.product-card__buy {
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 11px;
  font-size: .72rem;
  font-weight: 800;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.product-card__add {
  border: 1.5px solid #2E9D45;
  background: #fff;
  color: #1F6E32;
}

.product-card__buy {
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, #F59E0B, #EA7A13);
  color: #fff;
  box-shadow: 0 8px 18px rgba(234, 122, 19, .22);
}

.product-card__add:hover,
.product-card__buy:hover { transform: translateY(-1px); }
.product-card__add:hover { background: #F2FAEF; }
.product-card__buy:hover { box-shadow: 0 11px 22px rgba(234, 122, 19, .30); }
.product-card__add:disabled,
.product-card__buy:disabled { opacity: .48; cursor: not-allowed; transform: none; box-shadow: none; }

@media (min-width: 768px) {
  .product-card__body { padding: 16px; gap: 8px; }
  .product-card__name h3 { font-size: 1rem; }
  .product-card__desc { font-size: .78rem; }
  .product-card__price-row .price { font-size: 1.2rem; }
  .product-card__add,
  .product-card__buy { min-height: 43px; font-size: .78rem; }
}

@media (max-width: 520px) {
  .product-card { border-radius: 14px; box-shadow: 0 5px 15px rgba(31, 79, 42, .06); }
  .product-card:hover { transform: none; }
  .product-card__media { padding: 7px; }
  .discount-badge { top: 7px; left: 7px; min-width: 39px; height: 23px; padding: 0 7px; font-size: .6rem; }
  .product-card__popular { top: 7px; right: 7px; padding: 5px 7px; font-size: .52rem; }
  .product-card__body { padding: 9px; gap: 5px; }
  .product-card__category { padding: 3px 6px; font-size: .54rem; }
  .product-card__name h3 { min-height: 2.6em; font-size: .76rem; line-height: 1.3; }
  .product-card__desc { display: none; }
  .product-card__price-row { min-height: 24px; gap: 5px; }
  .product-card__price-row .price { font-size: .9rem; }
  .product-card__price-row del { font-size: .6rem; }
  .product-card__footer { min-height: 19px; }
  .stock-status { font-size: .56rem; }
  .stock-status::before { width: 5px; height: 5px; }
  .product-card__details { display: none; }
  .product-card__actions { grid-template-columns: 40px minmax(0, 1fr); gap: 5px; }
  .product-card__add,
  .product-card__buy { min-height: 35px; padding: 6px; border-radius: 9px; font-size: .62rem; }
  .product-card__add span { display: none; }
  .product-card__add svg { width: 16px; height: 16px; }
  .product-card__buy svg { display: none; }
}

/* ===== Version 33: Wishlist buttons ===== */
.product-card__wishlist {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(46, 157, 69, .22);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: #8d7382;
  box-shadow: 0 8px 20px rgba(31, 79, 42, .12);
  transition: transform .18s ease, color .18s ease, background .18s ease;
}
.product-card__wishlist:hover { transform: scale(1.06); color: #F59E0B; }
.product-card__wishlist.is-active { color: #fff; background: #F59E0B; border-color: #F59E0B; }
.product-card__wishlist.is-active svg { fill: currentColor; }
.product-card__popular { top: 55px; }

@media (max-width: 520px) {
  .product-card__wishlist { top: 7px; right: 7px; width: 32px; height: 32px; }
  .product-card__wishlist svg { width: 17px; height: 17px; }
  .product-card__popular { top: 43px; }
}

/* Build 58 performance loader: compact and less visually blocking. */
#loader-overlay { background-color: rgba(255, 248, 251, .56); backdrop-filter: blur(1px); }
#loader-overlay .loader-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-radius: 16px; background: rgba(255,255,255,.96);
  box-shadow: 0 16px 45px rgba(55, 10, 52, .16); color: #34102f;
  font-weight: 700; font-size: .88rem;
}
#loader-overlay .loader-card .spinner { width: 30px; height: 30px; border-width: 3px; }

/* ========================================================================
   Build 60 — Store maintenance and paused-order notices
   ======================================================================== */
.store-maintenance-screen{position:fixed;z-index:99999;inset:0;display:grid;place-items:center;padding:22px;background:radial-gradient(circle at 15% 15%,rgba(247,37,133,.15),transparent 32%),radial-gradient(circle at 85% 85%,rgba(255,183,0,.18),transparent 34%),#fff8fb;color:#281020}
.store-maintenance-card{width:min(620px,100%);padding:34px;border:1px solid #efcddd;border-radius:28px;background:rgba(255,255,255,.97);box-shadow:0 28px 80px rgba(78,19,58,.17);text-align:center}
.store-maintenance-icon{width:76px;height:76px;display:grid;place-items:center;margin:0 auto 16px;border-radius:24px;background:#fff0f6;font-size:2.1rem}
.store-maintenance-card h1{margin:0;color:#2b1024;font-size:clamp(1.55rem,4vw,2.45rem)}
.store-maintenance-card p{max-width:500px;margin:12px auto 0;color:#6f5968;font-size:.92rem;line-height:1.7}
.store-maintenance-back{display:inline-flex;margin-top:14px;padding:7px 12px;border-radius:999px;color:#805800;background:#fff2c9;font-size:.75rem;font-weight:800}
.store-maintenance-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:22px}
.store-maintenance-actions a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:10px 18px;border:1px solid #f72585;border-radius:13px;color:#f72585;background:#fff;font-weight:800;text-decoration:none}
.store-maintenance-actions a:first-child{color:#fff;background:#f72585}
.store-maintenance-support{margin-top:18px!important;font-size:.76rem!important}
.order-pause-alert{margin:0 0 18px;padding:15px 17px;border:1px solid #f0cf88;border-radius:15px;color:#704b00;background:#fff8e7;font-size:.78rem;line-height:1.55}
.order-pause-alert strong{display:block;margin-bottom:4px;color:#5e3d00;font-size:.86rem}
@media(max-width:520px){.store-maintenance-card{padding:25px 18px;border-radius:22px}.store-maintenance-actions{flex-direction:column}.store-maintenance-actions a{width:100%}}


/* ========================================================================
   Build 65 — Product comparison controls and floating compare tray
   ======================================================================== */
.product-card__compare{
  width:100%;min-height:34px;display:flex;align-items:center;justify-content:center;gap:6px;
  border:1px dashed #BFDDB8;border-radius:10px;background:#F8FCF5;color:#52705A;
  font-size:.68rem;font-weight:800;transition:.16s ease;
}
.product-card__compare:hover{border-color:#2E9D45;color:#1F6E32;background:#F2FAEF}
.product-card__compare.is-active{border-style:solid;border-color:#2E9D45;color:#fff;background:linear-gradient(135deg,#1F6E32,#2E9D45)}
.product-card__compare.is-active svg{stroke:#fff}
@media(max-width:520px){
  .product-card__compare{min-height:30px;border-radius:8px;font-size:.58rem}
  .product-card__compare svg{width:14px;height:14px}
}
.header-compare-link{position:relative}
.compare-tray{
  position:fixed;z-index:9200;left:50%;bottom:22px;transform:translateX(-50%);
  width:min(520px,calc(100vw - 32px));display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;
  padding:11px 12px;border:1px solid rgba(46,157,69,.28);border-radius:18px;
  background:rgba(31,79,42,.96);color:#fff;box-shadow:0 18px 45px rgba(31,79,42,.28);backdrop-filter:blur(12px)
}
.compare-tray__icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#F59E0B;font-size:1.25rem;font-weight:900}
.compare-tray__copy{display:flex;flex-direction:column;line-height:1.25}
.compare-tray__copy strong{font-size:.92rem}.compare-tray__copy small{color:#DCE8D6;font-size:.67rem}
.compare-tray a{min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:8px 13px;border-radius:11px;background:#F59E0B;color:#243325;font-size:.72rem;font-weight:900;text-decoration:none}
@media(max-width:720px){.compare-tray{bottom:78px;width:calc(100vw - 20px);gap:8px;padding:9px}.compare-tray__icon{width:34px;height:34px}.compare-tray a{padding-inline:10px;font-size:.65rem}}

/* Build 73: recently viewed product controls */
.link-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--primary, #d60062);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: .45rem .7rem;
  border-radius: 999px;
}
.link-button:hover,
.link-button:focus-visible {
  background: rgba(214, 0, 98, .08);
  outline: none;
}


/* Build 115 — mobile PlantNest color lock */
@media (max-width: 767px) {
  .product-card {
    border-color: #DCE8D6 !important;
    background: #FFFFFF !important;
    box-shadow: 0 5px 15px rgba(31,79,42,.07) !important;
  }
  .product-card__media {
    background: linear-gradient(145deg,#FCFEFA,#F1F8ED) !important;
  }
  .product-card__category {
    background: #EEF8E9 !important;
    color: #1F6E32 !important;
  }
  .product-card__price-row .price { color: #EA7A13 !important; }
  .product-card__details { color: #2E9D45 !important; }
  .product-card__compare {
    border-color: #BFDDB8 !important;
    background: #F8FCF5 !important;
    color: #52705A !important;
  }
  .product-card__compare.is-active {
    border-color: #2E9D45 !important;
    background: linear-gradient(135deg,#1F6E32,#2E9D45) !important;
    color: #FFFFFF !important;
  }
  .product-card__add {
    border-color: #2E9D45 !important;
    background: #FFFFFF !important;
    color: #1F6E32 !important;
  }
  .product-card__buy {
    border-color: transparent !important;
    background: linear-gradient(135deg,#F59E0B,#EA7A13) !important;
    color: #FFFFFF !important;
  }
  .product-card__wishlist:hover,
  .product-card__wishlist.is-active {
    border-color: #F59E0B !important;
    background: #F59E0B !important;
    color: #FFFFFF !important;
  }
}


/* Build 117: fix product card action button wrapping and spacing */
.product-card__actions {
  grid-template-columns: minmax(104px, .82fr) minmax(0, 1.18fr);
  gap: 10px;
}
.product-card__add,
.product-card__buy {
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
}
.product-card__add span,
.product-card__buy span {
  white-space: nowrap;
  line-height: 1;
}
.product-card__add svg,
.product-card__buy svg {
  flex-shrink: 0;
}
.product-card__add {
  gap: 8px;
}
.product-card__buy {
  gap: 8px;
  font-size: .84rem;
  font-weight: 900;
}
@media (min-width: 768px) {
  .product-card__add,
  .product-card__buy {
    min-height: 48px;
    font-size: .84rem;
  }
  .product-card__add { font-size: .78rem; }
}
@media (min-width: 1024px) {
  .product-card__actions {
    grid-template-columns: minmax(112px, .8fr) minmax(0, 1.2fr);
  }
}
@media (max-width: 520px) {
  .product-card__actions {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px;
  }
  .product-card__add,
  .product-card__buy {
    min-height: 37px;
    padding: 6px 8px;
    border-radius: 10px;
  }
  .product-card__buy {
    font-size: .66rem;
  }
}


/* Build 118: redesign product-card action buttons to prevent text clipping */
.product-card__actions {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}
.product-card__add,
.product-card__buy {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 16px;
  justify-content: center;
  gap: 10px;
  font-size: .86rem;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
}
.product-card__add {
  font-size: .84rem;
}
.product-card__add span,
.product-card__buy span {
  display: inline-block;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
.product-card__add svg,
.product-card__buy svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.product-card__buy svg {
  display: block;
}
@media (min-width: 1100px) {
  .product-card__add,
  .product-card__buy {
    min-height: 50px;
    font-size: .9rem;
  }
}
@media (max-width: 520px) {
  .product-card__actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .product-card__add,
  .product-card__buy {
    min-height: 41px;
    padding: 8px 12px;
    border-radius: 13px;
    font-size: .78rem;
    gap: 8px;
  }
  .product-card__add span,
  .product-card__buy span {
    display: inline-block;
    white-space: nowrap;
  }
  .product-card__buy svg {
    display: block;
  }
}


/* Build 120: tighten product card text spacing and reduce overall card height */
.product-card__body {
  padding: 11px;
  gap: 4px;
}
.product-card__category {
  padding: 3px 8px;
  font-size: .6rem;
}
.product-card__name h3 {
  min-height: 2.35em;
  margin: 0;
  font-size: .9rem;
  line-height: 1.24;
}
.product-card__desc {
  min-height: 2.2em;
  margin: 0;
  font-size: .71rem;
  line-height: 1.32;
}
.product-card__desc:empty {
  display: none;
  min-height: 0;
}
.product-card__price-row {
  min-height: 0;
  gap: 6px;
  margin-top: 1px;
}
.product-card__price-row .price {
  line-height: 1.05;
}
.product-card__footer {
  min-height: 0;
  margin-top: 2px;
  gap: 6px;
}
.product-card__details,
.product-card__stock,
.product-card__limited-stock {
  line-height: 1.15;
}
.product-card__actions {
  margin-top: 6px;
}
@media (min-width: 1024px) {
  .product-card__body {
    padding: 10px;
    gap: 4px;
  }
  .product-card__name h3 {
    min-height: 2.25em;
    font-size: .86rem;
  }
  .product-card__desc {
    min-height: 2.05em;
    font-size: .68rem;
  }
  .product-card__price-row .price {
    font-size: .98rem;
  }
}
@media (max-width: 520px) {
  .product-card__body {
    padding: 8px;
    gap: 4px;
  }
  .product-card__name h3 {
    min-height: 2.2em;
    font-size: .75rem;
  }
  .product-card__desc {
    min-height: 0;
    font-size: .65rem;
  }
}


/* Build 123: remove product-card wishlist icon and improve popular badge placement */
.product-card__wishlist {
  display: none !important;
}
.product-card__media {
  position: relative;
}
.product-card__popular {
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  min-height: 30px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(31,79,42,.96), rgba(46,157,69,.92));
  color: #fff;
  box-shadow: 0 10px 22px rgba(31,79,42,.20);
  backdrop-filter: blur(8px);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
.product-card__popular span {
  color: #F9C74F;
  font-size: .72rem;
  line-height: 1;
}
@media (max-width: 520px) {
  .product-card__popular {
    top: 8px !important;
    right: 8px !important;
    padding: 5px 8px;
    min-height: 24px;
    font-size: .56rem;
  }
  .product-card__popular span {
    font-size: .63rem;
  }
}
