/* ─── Mega Menu & Hero Slider Override ─── */
/* Loaded after output.css — do NOT modify tailwind.config.js */

/* ================================================================
   1. MEGA MENU — Panel Container
   ================================================================ */
.mega-menu {
  width: 78%;
  min-width: 800px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.7);
  border-radius: 10px;
  box-shadow:
    0 20px 50px -12px rgba(2, 6, 23, 0.12),
    0 4px 16px -4px rgba(2, 6, 23, 0.05);
  z-index: 60;
  overflow: visible;
  box-sizing: border-box;
}

/* ── Two-column grid ── */
.mega-menu-grid {
  display: grid;
  grid-template-columns: 220px 1fr;  /* categories | products */
  gap: 0;
  min-height: 300px;
}

/* ================================================================
   2. Categories Column (RIGHT side in RTL, LEFT in LTR)
   ================================================================ */
.mega-menu-categories {
  padding-inline-end: 1rem;
  border-inline-end: 1px solid rgba(229, 231, 235, 0.5);
}

/* Service button */
.mega-menu-svc-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: start;
  padding: 0.75rem 0.625rem;        /* py-3 px-2.5 */
  border-radius: 0.375rem;
  font-size: 0.8125rem;             /* ~13px */
  font-weight: 500;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  color: inherit;
}

.mega-menu-svc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  opacity: 0.6;
}

/* ================================================================
   3. Products Column (LEFT side in RTL, RIGHT in LTR)
   ================================================================ */
.mega-menu-products {
  padding-inline-start: 1.25rem;
  min-height: 260px;
}

/* ── Product Card ── */
.mega-menu-product-card {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  min-height: 52px;
}

.mega-menu-product-card:hover,
.mega-menu-product-card:focus-visible {
  background: #f9fafb;
  border-color: rgba(229, 231, 235, 0.5);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.mega-menu-product-card:focus-visible {
  outline: 2px solid rgba(20, 184, 166, 0.5);
  outline-offset: -2px;
}

/* Thumbnail */
.mega-menu-product-thumb {
  width: 52px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 0.375rem;
  overflow: hidden;
  background: #f8fafc;
}

.mega-menu-product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Title */
.mega-menu-product-title {
  font-size: 0.8125rem;             /* ~13px, compact */
  font-weight: 500;
  line-height: 1.35;
  color: #1e293b;                   /* gray-800 */
}

/* Price */
.mega-menu-product-price {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #0d9488;                   /* primary-600 */
  margin-top: 0.125rem;
  line-height: 1.25;
}

/* ================================================================
   4. HERO SLIDER
   ================================================================ */
.hero-slide {
  will-change: opacity;
}

.hero-slider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-slider-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(1.08);
}

.hero-slider-btn:focus-visible {
  outline: 2px solid rgba(20, 184, 166, 0.6);
  outline-offset: 2px;
}

.hero-slider-dot {
  height: 0.5rem;             /* 8px */
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.hero-slider-dot:focus-visible {
  outline: 2px solid rgba(20, 184, 166, 0.6);
  outline-offset: 2px;
}

/* ================================================================
   5. RESPONSIVE
   ================================================================ */

/* Mobile ≤ 1023px: hide desktop mega-menu entirely (accordion is used) */
@media (max-width: 1023px) {
  .mega-menu {
    display: none !important;
  }
}

/* Smaller desktops 1024–1200px */
@media (min-width: 1024px) and (max-width: 1200px) {
  .mega-menu {
    width: 92%;
    min-width: 0;
  }
  .mega-menu-grid {
    grid-template-columns: 190px 1fr;
  }
}

