/* ============================================================
   DANKEL CONNECT - MASTER STYLESHEET
   Consistent styling across all pages
   ============================================================ */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f3f4f6;
  color: #1f2937;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
.font-rajdhani {
  font-family: 'Rajdhani', sans-serif;
}

/* ===== CONTAINER ===== */
.container-custom {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container-custom {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ===== BUTTONS & ACCESSIBLE TOUCH TARGETS ===== */
button,
.clickable,
a.btn,
.floating-draggable {
  min-height: 44px;
  min-width: 44px;
}

/* ===== DROPDOWN ===== */
.dropdown-container {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 0.75rem 0.75rem;
  z-index: 9999;
  padding: 0.25rem 0;
}

/* Show dropdown on hover (desktop) & active toggle (mobile/click) */
.dropdown-container:hover .dropdown-menu,
.dropdown-container.active .dropdown-menu {
  display: block !important;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f3f4f6;
  color: #0b3c5d;
}

/* Chevron rotation on hover/active */
.dropdown-container:hover .fa-chevron-down,
.dropdown-container.active .fa-chevron-down {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

/* ===== NAVIGATION ===== */
.nav-active {
  color: #0b3c5d;
  font-weight: 800;
  border-bottom: 2px solid #0b3c5d;
}

/* ===== SCROLLBAR HIDE ===== */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===== GLASS LIGHTBOX ===== */
.glass-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
}

.glass-overlay.active {
  display: flex;
}

.glass-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
  cursor: default;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: box-shadow 0.3s ease;
}

.glass-overlay img:hover {
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6), 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.glass-close {
  position: fixed;
  top: 24px;
  right: 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 36px;
  cursor: pointer;
  z-index: 100000;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-weight: 300;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.glass-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.35);
}

/* ===== DRAGGABLE FLOATING BUTTONS ===== */
.floating-draggable {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, top, left;
  transition: box-shadow 0.2s ease;
  z-index: 9999 !important;
}

.floating-draggable:active {
  cursor: grabbing;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
}

.floating-draggable.dragging {
  transition: none !important;
}

/* ===== MODALS ===== */
.mirror-modal-backdrop {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.mirror-card-sunlight {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.88) 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7) !important;
}

.mirror-input-sunlight {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

.mirror-input-sunlight:focus {
  background: #ffffff !important;
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.25) !important;
}

.mirror-input-sunlight::placeholder {
  color: #475569 !important;
  font-weight: 600 !important;
}

/* ===== AUTOCOMPLETE & SEARCH ===== */
.search-wrapper {
  position: relative;
  width: 100%;
}

.suggestions-container {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-height: 280px;
  overflow-y: auto;
  z-index: 9999 !important;
  display: none;
}

.suggestions-container.visible {
  display: block;
}

.suggestion-item {
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  border-bottom: 1px solid #f3f4f6;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: #f1f5f9;
}

.suggestion-item .suggestion-icon {
  color: #6b7280;
  font-size: 14px;
  width: 20px;
  text-align: center;
}

.suggestion-item .suggestion-label {
  flex: 1;
  color: #1a202c !important;
  font-weight: 500 !important;
}

.suggestion-item .suggestion-type {
  font-size: 10px;
  background: #e5e7eb !important;
  padding: 2px 8px;
  border-radius: 12px;
  color: #4a5568 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.suggestions-container .no-suggestions {
  padding: 16px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Mobile First (Default) */
@media (max-width: 640px) {
  .category-link {
    padding: 10px 12px !important;
    font-size: 10px !important;
  }

  .floating-draggable {
    padding: 8px 14px !important;
    font-size: 10px !important;
  }

  .floating-draggable i {
    font-size: 14px !important;
  }

  .hero-title {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }

  .product-card {
    padding: 12px !important;
  }

  .product-card .product-image {
    height: 120px !important;
  }

  .mirror-card-sunlight {
    max-width: 100% !important;
    margin: 10px !important;
  }

  .glass-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1024px) {
  .floating-draggable {
    padding: 10px 18px !important;
    font-size: 12px !important;
  }

  .product-card .product-image {
    height: 160px !important;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .floating-draggable {
    padding: 12px 24px !important;
    font-size: 14px !important;
  }
}

/* ===== UTILITY HELPERS ===== */
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.pulse {
  animation: pulse 1.5s ease-in-out infinite;
}