/* VeeLora Shoes — UX/UI Preview Suite (feature/veelora-ux-preview) */
html, body {
  max-width: 100%;
  overflow-x: clip !important;
}

/* إبراز زر «تسوّقي المجموعة» وتحسين الأزرار على الهاتف */
a[href*="shop.html"].btn-primary,
.hero-cta,
.spatial-cta,
.btn-primary,
button[type="submit"] {
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
a[href*="shop.html"].btn-primary:hover,
.hero-cta:hover,
.spatial-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(240, 106, 10, 0.35);
}

/* شارة التوفر والخصم في صفحة المنتج */
.vl-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.vl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.vl-badge-stock {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.vl-badge-cod {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.vl-badge-save {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* شريط الطلب السريع الثابت على الهاتف في صفحة المنتج */
.vl-sticky-mobile-cta {
  display: none;
}
@media (max-width: 768px) {
  .vl-sticky-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    background: rgba(255, 252, 248, 0.96);
    border-top: 1px solid rgba(92, 54, 34, 0.14);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }
  .vl-sticky-mobile-cta.visible {
    transform: translateY(0);
  }
  .vl-sticky-price {
    font-weight: 800;
    font-size: 16px;
    color: #24150e;
  }
  .vl-sticky-btn {
    background: linear-gradient(135deg, #f06a0a, #b93c04);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    min-height: 46px;
  }
}

/* تحسين صفحات المعلومات والأسئلة الشائعة */
.vl-info-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  margin: 16px 0;
}

/* تحسين قابلية الوصول */
:focus-visible {
  outline: 2.5px solid #f06a0a;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Production Boutique Polish */
.shop-filters, .filters-bar, .catalog-filters, .filter-drawer, #shop-filters, #catalog-search, [data-shop-filters] {
  display: none !important;
}
section + section {
  scroll-margin-top: 72px;
}
.vl-phone-addr-note {
  margin: 10px 0 14px;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(240, 106, 10, 0.07);
  border: 1px solid rgba(240, 106, 10, 0.22);
  color: #5c3317;
  font-size: 13px;
  line-height: 1.55;
}
@media (max-width: 768px) {
  .hero, .hero-section {
    padding-top: clamp(24px, 5vw, 44px) !important;
    padding-bottom: clamp(24px, 5vw, 44px) !important;
  }
  .section, main > section {
    padding-top: clamp(28px, 6vw, 48px);
    padding-bottom: clamp(28px, 6vw, 48px);
  }
}

/* Final Audit Boutique Polish */
form[id*="filter"], form[class*="filter"], .filters-bar, .shop-filters, .catalog-filters {
  display: none !important;
}
.category-pills, .cat-pills, .category-nav, .shop-categories {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 8px;
  max-width: 100%;
}
.category-pills::-webkit-scrollbar, .cat-pills::-webkit-scrollbar, .category-nav::-webkit-scrollbar {
  display: none;
}
.vl-phone-addr-note {
  margin: 10px 0 14px;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(240, 106, 10, 0.07);
  border: 1px solid rgba(240, 106, 10, 0.22);
  color: #5c3317;
  font-size: 13px;
  line-height: 1.55;
}

/* حركة استعجالية وجذابة لزر تأكيد الطلب في الاستمارة */
@keyframes vlCtaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 22px rgba(240, 106, 10, 0.38), 0 0 0 0 rgba(240, 106, 10, 0.55);
  }
  50% {
    transform: scale(1.022);
    box-shadow: 0 12px 28px rgba(240, 106, 10, 0.52), 0 0 0 10px rgba(240, 106, 10, 0);
  }
}
@keyframes vlCtaSheen {
  0% { transform: translateX(-140%) skewX(-22deg); }
  38%, 100% { transform: translateX(260%) skewX(-22deg); }
}

form button[type="submit"],
.cod-submit,
.order-submit-btn,
.vl-sticky-btn {
  position: relative;
  overflow: hidden;
  animation: vlCtaPulse 2.1s ease-in-out infinite;
  will-change: transform, box-shadow;
}
form button[type="submit"]::after,
.cod-submit::after,
.order-submit-btn::after,
.vl-sticky-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  animation: vlCtaSheen 3.2s ease-in-out infinite;
  pointer-events: none;
}
form button[type="submit"]:hover,
.cod-submit:hover,
.order-submit-btn:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.02);
}

/* CRO Final Polish: Countdown + Unified CTA */
#vl-countdown {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2b1810, #462316);
  color: #fff5ec;
  border: 1px solid rgba(240, 106, 10, 0.45);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(43, 24, 16, 0.14);
  max-width: 100%;
  flex-wrap: wrap;
}
#vl-countdown span,
#vl-countdown strong,
#vl-countdown b {
  font-variant-numeric: tabular-nums;
}

/* Unified controlled CTA animation on .cod-submit (pauses when disabled/submitting) */
.cod-submit {
  background: linear-gradient(135deg, #f06a0a 0%, #c84405 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px;
  border-radius: 14px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.cod-submit:active {
  transform: scale(0.985) !important;
}
.cod-submit:disabled,
form button[type="submit"]:disabled {
  animation: none !important;
  opacity: 0.72;
  cursor: wait;
}
.cod-submit:disabled::after,
form button[type="submit"]:disabled::after {
  animation: none !important;
}

/* Prevent competing heavy animation on sticky mobile button */
.vl-sticky-order__btn,
#vl-sticky-go {
  animation: none !important;
  background: linear-gradient(135deg, #f06a0a, #b93c04) !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(240, 106, 10, 0.35);
}
.vl-sticky-order.keyboard-open {
  transform: translateY(120%) !important;
  pointer-events: none;
}

.vl-cta-reassurance {
  margin: 8px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: #5c3a21;
  font-weight: 600;
  line-height: 1.5;
}
