/* ==============================================
   ✨ MOBILE & RESPONSIVE FIXES - CLEAN VERSION
   ============================================== */

/* ===== Animations ===== */
@keyframes bb-shine {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes bb-pulse {
  0%, 100% {
    box-shadow: 0 10px 25px rgba(99,102,241,.25), 0 0 0 0 rgba(37,99,235,.35);
  }
  50% {
    box-shadow: 0 18px 40px rgba(99,102,241,.4), 0 0 0 10px rgba(37,99,235,0);
  }
}

.btn-cta {
  animation: bb-pulse 1.6s ease-in-out infinite;
}
.btn-cta .shine {
  animation: bb-shine 1.2s ease-in-out infinite;
}

/* Accessibility – disable animations for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn-cta { animation: none; }
  .btn-cta .shine { display: none; }
}

/* ==============================================
   📱 Extra Small Devices (≤480px)
   ============================================== */
@media (max-width: 480px) {
  .px-\[12px\] {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .mb-\[24px\] {
    margin-bottom: 16px !important;
  }
  .bb-pro-box {
    margin: 0 auto;
    max-width: 100%;
  }
  .bb-pro-contact {
    padding: 15px !important;
  }
  .bb-pro-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }
}

/* ==============================================
   📲 Small Devices (≤767px)
   ============================================== */
@media (max-width: 767px) {
  /* Services */
  .min-\[992px\]:w-\[25\%\],
  .min-\[768px\]:w-\[45\%\] {
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  .bb-services-box {
    padding: 2rem 1rem !important;
    margin: 0 10px;
  }
  .section-services {
    padding: 30px 0 !important;
  }

  /* Hero */
  .min-h-\[40vh\] { min-height: 50vh !important; }
  .text-2xl { font-size: 1.5rem !important; line-height: 1.3 !important; }
  .text-base { font-size: 0.9rem !important; }

  .flex.gap-4 {
    flex-direction: column;
    gap: 0.75rem !important;
  }
  .flex.gap-4 a {
    width: 100%;
    text-align: center;
    padding: 12px !important;
  }
}

/* ==============================================
   📳 Medium Devices (≤991px)
   ============================================== */
@media (max-width: 991px) {
  /* Header */
  .bb-toggle-menu { display: flex !important; }
  .bb-header-btn { margin-left: 15px !important; }
  .header-icon svg { width: 22px !important; height: 22px !important; }
  .bb-btn-desc { display: none !important; }
  .bottom-header { padding: 12px 0 !important; }
  .header-search {
    width: 100% !important;
    margin: 10px 0;
  }
  #search-form { margin: 0 !important; }
  .bb-search-bar {
    padding: 10px !important;
    font-size: 14px !important;
  }

  /* Dropdowns */
  .bb-dropdown-menu,
  .bb-mega-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 10px !important;
    box-shadow: none !important;
    border: 1px solid #eee !important;
  }

  .bb-mega-menu {
    left: 0 !important;
    top: 0 !important;
  }
}

/* ==============================================
   💡 Filter + Footer + Layout Fixes (≤768px)
   ============================================== */
@media (max-width: 768px) {
  /* Filter Form */
  .filter-form .grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  .filter-form .grid > div { margin-bottom: 0.5rem; }
  .filter-form .flex.gap-2 {
    flex-direction: column;
    gap: 0.5rem !important;
  }
  .filter-form button,
  .filter-form a {
    width: 100%;
    text-align: center;
    padding: 12px !important;
  }

  /* Footer */
  .bb-footer .grid-cols-12 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .bb-footer-widget {
    text-align: center;
    margin-bottom: 2rem;
  }
  .bb-app-store,
  .bb-footer-social ul {
    justify-content: center;
  }

  /* Header Layout */
  .inner-bottom-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .bb-logo-detail,
  .bb-icons,
  .bb-flex-justify {
    width: 100%;
    justify-content: center;
  }

  /* Touch targets */
  .bb-header-btn,
  .bb-btn-group,
  .favorite-icon,
  .bb-pro-actions li {
    min-height: 44px;
    min-width: 44px;
  }
  .bb-pro-actions li {
    width: 44px !important;
    height: 44px !important;
  }
  .submit {
    width: 50px !important;
    height: 45px !important;
  }

  /* Loading state */
  .bb-pro-img img {
    transition: opacity 0.3s ease;
  }
  .bb-pro-img.loading img {
    opacity: 0.7;
  }

  /* RTL Fixes */
  [dir="rtl"] .bb-header-btn {
    margin-left: 0 !important;
    margin-right: 15px !important;
  }
  [dir="rtl"] .bb-pro-rating i {
    margin-left: 3px !important;
    margin-right: 0 !important;
  }
}

/* ==============================================
   📞 Small Phones (≤575px)
   ============================================== */
@media (max-width: 575px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .bb-pro-actions {
    position: relative !important;
    opacity: 1 !important;
    margin-top: 10px;
    justify-content: center;
  }
  .flags, .discount-badge {
    font-size: 10px !important;
    padding: 3px 6px !important;
  }
  .favorite-icon {
    top: 5px !important;
    right: 5px !important;
  }
  .bb-price {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .inner-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
}
