/* ============================================================
   SULAYMAN COFFEE — featured.css
   سيكشن الأكثر مبيعاً والجديد + WhatsApp float
   ملف مستقل تماماً — لا يلمس أي كود أصلي
   ============================================================ */

/* ══ SECTION ══ */
.feat-sec {
  background: var(--dark);
  padding: 5rem 0 5rem 5%;
  overflow: hidden;
}

/* ══ HEADER ══ */
.feat-hdr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-right: 5%;
  margin-bottom: 2.5rem;
}
.feat-lbl {
  font-family: 'ObjectSans', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--org);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}
.feat-lbl::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--org);
}
.feat-title {
  font-family: 'Handicrafts', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--cream);
  line-height: 1.15;
  white-space: nowrap;
}

/* أسهم */
.feat-arrows {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.feat-arr {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(249, 230, 192, 0.2);
  background: transparent;
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.feat-arr:hover {
  background: var(--org);
  border-color: var(--org);
  transform: scale(1.08);
}
.feat-arr svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ══ TRACK ══ */
.feat-track-wrap {
  position: relative;
}
.feat-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(to right, var(--dark), transparent);
  pointer-events: none;
  z-index: 2;
}
.feat-track {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  padding-right: 5%;
}
.feat-track::-webkit-scrollbar {
  display: none;
}
.feat-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

/* ══ CARD ══ */
.fcard {
  flex: 0 0 240px;
  background: #1a2028;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}
.fcard.vis {
  opacity: 1;
  transform: translateY(0);
}
.fcard:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  z-index: 3;
}
@media (max-width: 768px) {
  .fcard {
    flex: 0 0 188px;
  }
}

/* Badge */
.fcard-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  font-family: 'ObjectSans', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 2px;
  font-weight: 700;
}
.fcard-badge.bs {
  background: var(--org);
  color: white;
}
.fcard-badge.nw {
  background: #2a9d5c;
  color: white;
}

/* صورة */
.fcard-img {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #131920;
  position: relative;
  cursor: zoom-in;
}
.fcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.fcard:hover .fcard-img img {
  transform: scale(1.07);
}
.fcard-img .pimg-zoom {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  background: rgba(34, 40, 51, 0.75);
  color: white;
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.fcard:hover .fcard-img .pimg-zoom {
  opacity: 1;
}
.fcard-img-ph {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: #131920;
}

/* body */
.fcard-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.25rem;
}
.fcard-cat {
  font-family: 'ObjectSans', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--org);
  opacity: 0.75;
}
.fcard-name {
  font-family: 'IranSansX', sans-serif;
  font-size: 0.88rem;
  color: var(--cream);
  line-height: 1.4;
  flex: 1;
}
.fcard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  gap: 0.4rem;
}
/* ══ WEIGHT BUTTONS ══ */
.fcard-weights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-bottom: 0.7rem;
}
.fcard-wbtn {
  font-family: 'IranSansX', sans-serif;
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(249, 230, 192, 0.25);
  background: transparent;
  color: rgba(249, 230, 192, 0.6);
  cursor: pointer;
  transition: all 0.18s;
  border-radius: 2px;
}
.fcard-wbtn:hover {
  border-color: var(--org);
  color: var(--cream);
}
.fcard-wbtn.active {
  background: var(--org);
  border-color: var(--org);
  color: white;
}
.fcard-price {
  font-family: 'Handicrafts', serif;
  font-size: 1.1rem;
  color: white;
}
.fcard-price small {
  font-family: 'IranSansX', sans-serif;
  font-size: 0.52rem;
  opacity: 0.45;
}
.feat-add {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--org);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.feat-add:hover {
  background: var(--org2);
  transform: scale(1.12);
}
.feat-add svg {
  width: 14px;
  height: 14px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ══ DOTS ══ */
.feat-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 1.6rem;
  padding-right: 5%;
}
.feat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(249, 230, 192, 0.2);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
}
.feat-dot.active {
  background: var(--org);
  transform: scale(1.35);
}

/* ══ WhatsApp Floating Button ══ */
#wab-float {
  position: fixed;
  bottom: 5.5rem;
  right: 1.2rem;
  z-index: 888;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25d366;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s;
  text-decoration: none;
}
#wab-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 26px rgba(37, 211, 102, 0.55);
}
#wab-float:active {
  transform: scale(0.95);
}
#wab-float svg {
  width: 26px;
  height: 26px;
  fill: white;
}
#wab-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.35);
  animation: wab-ring 2.2s ease-out infinite;
}
@keyframes wab-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  #wab-float {
    bottom: calc(60px + env(safe-area-inset-bottom) + 0.8rem);
    left: auto;
    right: 0.8rem;
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fcard,
  #wab-float::before {
    animation: none !important;
  }
}
/* ══ PWA Install Button ══ */
#pwa-install-btn {
  position: fixed;
  bottom: calc(5.5rem + 50px + 0.6rem); /* تحت الواتساب */
  right: 1.2rem;
  z-index: 887;
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: var(--dark);
  border: 1px solid rgba(249, 230, 192, 0.2);
  color: var(--cream);
  border-radius: 20px;
  padding: 0.4rem 0.8rem 0.4rem 0.6rem;
  font-family: 'IranSansX', sans-serif;
  font-size: 0.72rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
#pwa-install-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
#pwa-install-btn svg {
  width: 15px;
  height: 15px;
  stroke: var(--org);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  #pwa-install-btn {
    bottom: calc(60px + env(safe-area-inset-bottom) + 46px + 1.4rem);
    left: auto;
    right: 0.8rem;
    font-size: 0.68rem;
    padding: 0.35rem 0.7rem 0.35rem 0.55rem;
  }
}