 @import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

/* --- Global Styles & Reset --- */
* { 
  font-family: 'Inter', system-ui, -apple-system, sans-serif; 
  box-sizing: border-box;
}

body { 
  background-color: #03050b;
  background-image: radial-gradient(ellipse at 50% 100%, rgba(79, 70, 229, 0.28) 0%, rgba(2, 6, 23, 0.95) 70%);
  min-height: 100vh;
  scroll-behavior: smooth; 
  margin: 0;
}

/* --- Volumetric Torch Light Layers --- */
.torch-glow {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 100%, 
              rgba(99, 102, 241, 0.35) 0%, 
              rgba(79, 70, 229, 0.22) 25%,
              rgba(0, 0, 0, 0.65) 70%);
  mask-image: linear-gradient(to top, black 20%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, black 20%, transparent 90%);
}

.torch-core {
  position: fixed;
  bottom: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 180%;
  max-width: 1200px;
  height: 480px;
  background: radial-gradient(ellipse at center, 
              rgba(139, 92, 246, 0.55) 0%, 
              rgba(59, 130, 246, 0.3) 35%,
              transparent 75%);
  filter: blur(32px);
  border-radius: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  animation: torchPulse 3.5s infinite alternate ease-in-out;
}

.light-dust {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 50% 95%, rgba(165, 180, 252, 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.relative-z-above {
  position: relative;
  z-index: 10;
}

.glow-text-shadow {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* --- Cards & UI Grids --- */
.glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.25s ease;
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-4px);
}

.product-card-grid {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card-grid:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.5);
  border-color: rgba(139, 92, 246, 0.5);
}

/* --- Badges, Typography & Utilities --- */
.tag {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.25rem 0.85rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #c4b5fd;
  display: inline-block;
}

.product-price { font-size: 1.6rem; font-weight: 800; color: #facc15; letter-spacing: -0.02em; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Form Fields --- */
.input-custom {
  background: #1a1a20;
  border: 1px solid #2a2a35;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  color: white;
  width: 100%;
  transition: border-color 0.2s;
}
.input-custom:focus { outline: none; border-color: #8b5cf6; }

/* --- Interactive Elements & Buttons --- */
.btn-outline, .btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.2rem; border-radius: 2rem; font-weight: 600; font-size: 0.8rem;
  transition: all 0.2s; text-decoration: none; cursor: pointer;
}
.btn-primary { background: #8b5cf6; color: white; box-shadow: 0 4px 12px rgba(139,92,246,0.3); }
.btn-primary:hover { background: #7c3aed; transform: translateY(-2px); }

.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.25); color: #e5e7eb; }
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: #8b5cf6; }

.bkash-btn {
  background: linear-gradient(135deg, #E2136E, #C2105A);
  box-shadow: 0 8px 20px rgba(226,19,110,0.3);
}

/* --- Modal Architecture --- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.payment-modal {
  background: linear-gradient(145deg, #111115, #0a0a0c);
  border: 1px solid rgba(139,92,246,0.4);
  border-radius: 2rem;
  max-width: 500px; width: 90%; padding: 2rem;
  box-shadow: 0 30px 50px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}
.modal-overlay.active .payment-modal { transform: scale(1); }

/* --- Dynamic Animations --- */
@keyframes torchPulse {
  0% { opacity: 0.7; filter: blur(36px); transform: translateX(-50%) scale(1); }
  100% { opacity: 1; filter: blur(44px); transform: translateX(-50%) scale(1.08); }
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

html,
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* ===== CLEAN SEARCH SYSTEM ===== */

/* Search Container - Centered */
.search-container {
    padding: 20px 16px 24px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.search-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Input */
.filter-search {
    position: relative;
    width: 100%;
}

.filter-search input {
    width: 100%;
    padding: 12px 48px 12px 48px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 400;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    outline: none;
}

.filter-search input::placeholder {
    color: #64748b;
}

.filter-search input:focus {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.06);
}

.filter-search .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    width: 18px;
    height: 18px;
    pointer-events: none;
    transition: color 0.3s;
}

.filter-search input:focus ~ .search-icon {
    color: #a78bfa;
}

/* Clear Button - Inside Input */
.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.search-clear.visible {
    display: flex;
}

.search-clear:hover {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
}

.search-clear svg {
    width: 14px;
    height: 14px;
}

/* Results Count */
.search-count {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    text-align: center;
    letter-spacing: 0.3px;
}

.search-count strong {
    color: #a78bfa;
    font-weight: 600;
}

/* Empty State - Centered */
.filter-empty {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.filter-empty .empty-icon {
    width: 64px;
    height: 64px;
    color: #64748b;
    margin: 0 auto 20px;
    opacity: 0.3;
    display: block;
}

.filter-empty h3 {
    color: #e2e8f0;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.filter-empty p {
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.filter-empty .reset-btn {
    padding: 10px 28px;
    border-radius: 50px;
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-empty .reset-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateY(-2px);
}

.filter-empty .reset-btn svg {
    width: 16px;
    height: 16px;
}

/* Animation */
@keyframes filterFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-result-enter {
    animation: filterFadeIn 0.3s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .search-container {
        padding: 16px 16px 20px;
    }
    
    .search-wrapper {
        max-width: 100%;
        gap: 10px;
    }
    
    .filter-search input {
        padding: 10px 44px 10px 42px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .filter-search .search-icon {
        left: 14px;
        width: 16px;
        height: 16px;
    }
    
    .search-clear {
        right: 10px;
        width: 24px;
        height: 24px;
    }
    
    .search-count {
        font-size: 12px;
    }
    
    .filter-empty {
        padding: 60px 16px;
    }
    
    .filter-empty .empty-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .filter-empty h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .search-container {
        padding: 12px 12px 16px;
    }
    
    .filter-search input {
        padding: 8px 38px 8px 36px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .filter-search .search-icon {
        left: 12px;
        width: 14px;
        height: 14px;
    }
    
    .search-clear {
        right: 8px;
        width: 22px;
        height: 22px;
    }
    
    .search-clear svg {
        width: 12px;
        height: 12px;
    }
}