/* =====================================================
FrameX — Zid Store UI v6.0 (FINAL • CLICK SAFE)
Fancy visuals WITHOUT blocking interaction
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;600;700;800&display=swap');

/* ─── VARIABLES ─── */
:root {
  --primary: #644EBB;
  --primary-soft: #91EEEB;
  --bg: #F5F2ED;
  --card: #FFFFFF;
  --text: #1C1917;
  --muted: #78716C;
}

/* ─── BASE ─── */
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Tajawal', sans-serif;
}

/* ─── PRODUCT CARDS (MAIN FOCUS) ─── */
.card-product {
  position: relative;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

/* ✅ Fancy but SAFE */
.card-product:hover,
.card-product:active {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(100,78,187,.18);
  border-color: rgba(100,78,187,.35);
}

/* ─── ATTENTION PULSE (NO OVERLAY) ─── */
.fx-attention {
  box-shadow: 0 0 0 0 rgba(100,78,187,.25);
  animation: fxPulse 2s ease-out infinite;
}
@keyframes fxPulse {
  0%   { box-shadow: 0 0 0 0 rgba(100,78,187,.25); }
  100% { box-shadow: 0 0 0 12px rgba(100,78,187,0); }
}

/* ─── IMAGE ─── */
.zooming {
  overflow: hidden;
}
.zooming img {
  transition: transform .5s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}

/* ─── TITLE ─── */
.card-product h2 a {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.card-product h2 a:hover {
  color: var(--primary);
}

/* ─── PRICE ─── */
.card-product strong {
  font-size: 16px;
  font-weight: 800;
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-soft);
  border-radius: 10px;
  font-weight: 600;
}
.btn-primary:hover {
  background: #7B64D0;
}

/* ─── MOBILE FIRST ─── */
@media (max-width: 768px) {
  button, .btn, .nav-link {
    min-height: 46px;
  }

  .card-product {
    border-radius: 14px;
  }

  .card-product h2 a {
    font-size: 13.8px;
  }

  .card-product .btn-primary {
    font-size: 15px;
    padding: 12px;
  }

  main {
    padding-bottom: 90px;
  }
}

/* ─── REMOVE DEAD HOVER ON TOUCH ─── */
@media (hover: none) {
  .card-product:hover {
    transform: none;
    box-shadow: none;
  }
}