/* ==========================================================================
   Fahavi Computers - design system + WooCommerce product card
   Tokens extracted from the original site (not guessed).
   ========================================================================== */

:root {
  --fh-navy:        #172982;
  --fh-navy-dark:   #0B1152;
  --fh-navy-mid:    #2B45AB;
  --fh-cart:        #0C447C;
  --fh-red:         #EB2424;
  --fh-green:       #25D366;
  --fh-gold:        #FCC419;
  --fh-surface:     #F6F7F9;
  --fh-ink:         #151A28;
  --fh-muted:       #6E7382;
  --fh-border:      #E2E5EC;
  --fh-chip-bg:     #F1F3F7;
  --fh-tag-new:     #0E7A5F;
  --fh-tag-gaming:  #9A4A21;
  --fh-footer:      #111827;
  --fh-radius-card: 14px;
  --fh-radius-btn:  10px;
  --fh-shadow-lg:   0 10px 40px rgba(16,24,64,.12);
  --fh-maxw:        1240px;
}

.fh-wrap { max-width: var(--fh-maxw); margin-inline: auto; padding-inline: 20px; }

/* ---------- Section headers ---------- */
.fh-sec { padding: 44px 0; }
.fh-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.fh-sec__title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; color: var(--fh-ink); margin: 0 0 4px; line-height: 1.2; letter-spacing: -.01em; }
.fh-sec__sub { font-size: 14px; color: var(--fh-muted); margin: 0; }
.fh-sec__link { font-size: 14px; font-weight: 700; color: var(--fh-navy); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.fh-sec__link:hover { text-decoration: underline; }

/* ---------- Product grid ---------- */
.fh-grid { display: grid; gap: 18px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1180px) { .fh-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 940px)  { .fh-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 700px)  { .fh-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; } }

/* ---------- Product card ---------- */
.fh-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--fh-border); border-radius: var(--fh-radius-card); overflow: hidden; transition: box-shadow .18s ease, transform .18s ease; height: 100%; }
.fh-card:hover { box-shadow: var(--fh-shadow-lg); transform: translateY(-2px); }

.fh-card__media { position: relative; display: block; background: #fff; }
.fh-card__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

.fh-card__tag { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; font-weight: 700; line-height: 1; color: #fff; padding: 6px 9px; border-radius: 6px; background: var(--fh-navy); letter-spacing: .01em; }
.fh-card__tag--new    { background: var(--fh-tag-new); }
.fh-card__tag--gaming { background: var(--fh-tag-gaming); }

.fh-card__wish { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--fh-border); background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; color: var(--fh-muted); transition: color .15s, border-color .15s; padding: 0; }
.fh-card__wish:hover { color: var(--fh-red); border-color: var(--fh-red); }
.fh-card__wish svg { width: 17px; height: 17px; }

.fh-card__body { padding: 12px 12px 14px; display: flex; flex-direction: column; flex: 1 1 auto; gap: 8px; }
.fh-card__brand { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fh-muted); }
.fh-card__title { font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--fh-ink); margin: 0; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
a.fh-card__title:hover { color: var(--fh-navy); }

.fh-card__specs { display: flex; flex-direction: column; gap: 4px; margin: 2px 0; }
.fh-card__spec { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--fh-muted); background: var(--fh-chip-bg); border-radius: 5px; padding: 4px 7px; line-height: 1.3; }
.fh-card__spec svg { width: 11px; height: 11px; flex: none; opacity: .65; }
.fh-card__spec span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fh-card__rating { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--fh-muted); }
.fh-card__stars { display: inline-flex; gap: 1px; color: var(--fh-red); }
.fh-card__stars svg { width: 12px; height: 12px; }

.fh-card__price { font-size: 19px; font-weight: 800; color: var(--fh-navy); line-height: 1.2; margin-top: auto; padding-top: 4px; }
.fh-card__price del { font-size: 13px; font-weight: 600; color: var(--fh-muted); margin-right: 6px; }

.fh-card__actions { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.fh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 12.5px; font-weight: 700; line-height: 1; text-decoration: none; padding: 11px 12px; border-radius: var(--fh-radius-btn); border: 0; cursor: pointer; transition: filter .15s ease; width: 100%; text-align: center; }
.fh-btn svg { width: 14px; height: 14px; flex: none; }
.fh-btn:hover { filter: brightness(1.08); }
.fh-btn--cart { background: var(--fh-cart); color: #fff; }
.fh-btn--wa   { background: var(--fh-green); color: #fff; }
.fh-btn--cart.loading { opacity: .7; pointer-events: none; }
.fh-card--oos .fh-card__media img { opacity: .55; }
.fh-btn--cart[disabled] { background: #9AA1B4; cursor: not-allowed; }

/* ---------- Floating WhatsApp bubble ---------- */
.fh-wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 56px; height: 56px; border-radius: 50%; background: var(--fh-green); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(37,211,102,.45); color: #fff; text-decoration: none; }
.fh-wa-float svg { width: 30px; height: 30px; }
.fh-wa-float:hover { filter: brightness(1.06); color: #fff; }
@media (max-width: 700px) { .fh-wa-float { right: 14px; bottom: 14px; width: 50px; height: 50px; } }
