/**
 * Nepalstore - Premium Digital Product Marketplace
 * Custom Stylesheet
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Global Styles */
:root {
    --primary-color: #1a1a1a;
    --primary-dark: #000000;
    --primary-light: #2d2d2d;
    --secondary-color: #b8d8f0;
    --accent-color: #e63946;
    --accent-red: #e63946;
    --accent-gold: #f4a261;
    --success-color: #10b981;
    --danger-color: #e63946;
    --warning-color: #f4a261;
    --info-color: #60a5fa;
    --sky-blue: #b8d8f0;
    --sky-blue-light: #d4e8f7;
    --sky-blue-soft: #e8f4fb;
    --light-bg: #e8f4fb;
    --dark-bg: #1a1a1a;
    --surface-bg: rgba(255, 255, 255, 0.95);
    --surface-bg-soft: rgba(255, 255, 255, 0.85);
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --border-color: rgba(184, 216, 240, 0.3);
    --shadow-sm: 0 8px 20px rgba(26, 26, 26, 0.06);
    --shadow-md: 0 14px 34px rgba(26, 26, 26, 0.08);
    --shadow-lg: 0 20px 44px rgba(26, 26, 26, 0.1);
    --shadow-xl: 0 28px 60px rgba(26, 26, 26, 0.12);
    --glow-blue: 0 0 20px rgba(184, 216, 240, 0.4);
    --glow-red: 0 0 20px rgba(230, 57, 70, 0.3);
    --glow-gold: 0 0 15px rgba(244, 162, 97, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--accent-red) 0%, #d62839 100%);
    --gradient-secondary: linear-gradient(135deg, var(--sky-blue) 0%, var(--sky-blue-light) 50%, #9ec8e0 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: linear-gradient(135deg, #d4e8f7 0%, #b8d8f0 50%, #a8cce5 100%);
    background-attachment: fixed;
    min-height: 100%;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(184, 216, 240, 0.4) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px);
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: 6px;
    padding: 8px 16px;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent-red);
    border: 1px solid var(--accent-red);
    color: white;
    box-shadow: 0 2px 4px rgba(230, 57, 70, 0.1);
}

.btn-primary:hover {
    background: #d62839;
    border-color: #d62839;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(230, 57, 70, 0.2);
}

.btn-outline-primary {
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(230, 57, 70, 0.2);
}

.btn-light {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-light:hover {
    background: var(--light-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    overflow: hidden;
    background: var(--surface-bg);
    color: var(--text-primary);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-header,
.card-footer {
    background: var(--sky-blue-soft);
    border-color: var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
}

/* Product Cards */
.product-card {
    background: var(--surface-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Unified Premium Product Display System */
.ns-product-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.ns-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.ns-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f8fafc;
}

.ns-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ns-product-card:hover .ns-product-image img {
    transform: scale(1.03);
}

.ns-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #1e40af;
    color: #ffffff;
}

.ns-product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ns-product-title {
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    min-height: 46px;
}

.ns-product-title a {
    color: inherit;
    text-decoration: none;
}

.ns-product-title a:hover {
    color: #1e40af;
}

.ns-product-meta {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.ns-product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.ns-price-current {
    font-size: 1.2rem;
    color: #1e40af;
    font-weight: 800;
}

.ns-price-old {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.ns-product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}

.ns-btn {
    flex: 1;
    min-height: 40px;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
}

.ns-btn-secondary {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #e2e8f0;
}

.ns-btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ns-btn-primary {
    background: #25D366;
    color: #ffffff;
}

.ns-btn-primary:hover {
    background: #1da851;
    color: #ffffff;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--sky-blue);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Category Cards */
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    background: var(--light-bg);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--sky-blue-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--surface-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent-red);
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.testimonial-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin: 0 0.25rem;
    transition: all 0.2s ease;
    border-radius: 6px;
    padding: 6px 12px !important;
    font-size: 0.9rem;
}

.navbar-nav .nav-link:hover {
    background: var(--sky-blue-soft);
    color: var(--accent-red) !important;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    background: transparent;
    color: var(--text-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Sections */
.section-padding {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

/* Forms */
.form-control {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    color: #111111 !important;
    box-shadow: none !important;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-secondary) !important;
}

.form-control:focus {
    border-color: #111111 !important;
    box-shadow: 0 0 0 0.2rem rgba(17, 17, 17, 0.08) !important;
    background-color: #ffffff !important;
    color: #111111 !important;
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #111111;
    margin-bottom: 0.5rem;
}

.form-select {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    color: #111111 !important;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #111111 !important;
    box-shadow: 0 0 0 0.2rem rgba(17, 17, 17, 0.08) !important;
    background-color: #ffffff !important;
    color: #111111 !important;
    outline: none;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-left-color: var(--danger-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border-left-color: var(--warning-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
    border-left-color: var(--info-color);
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.5em 0.75em;
    border-radius: 6px;
}

.badge-cart {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 3px solid var(--accent-red);
}

.footer h5 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--sky-blue-light);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-red);
    transform: translateY(-2px);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-top: 2px solid var(--sky-blue);
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(26, 26, 26, 0.1);
    backdrop-filter: blur(10px);
}

.mobile-bottom-nav .nav-link {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding: 0.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-bottom-nav .nav-link.active {
    color: var(--accent-red);
}

.mobile-bottom-nav .nav-link i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.loading-spinner-dark {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-in;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-in;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Rating Stars */
.rating {
    color: #fbbf24;
    font-size: 0.875rem;
}

.rating .text-muted {
    color: var(--text-secondary) !important;
}

/* Accordion */
.accordion-button {
    font-weight: 600;
    background: var(--surface-bg);
    border: none;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
}

.accordion-button:not(.collapsed) {
    background: var(--sky-blue-soft);
    color: var(--text-primary);
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
    overflow: hidden;
    background: var(--surface-bg);
}

.accordion-item .accordion-button {
    border-radius: 8px;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: hidden;
    color: #111111;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(0, 0, 0, 0.02);
    --bs-table-hover-bg: rgba(0, 0, 0, 0.03);
    --bs-table-border-color: var(--border-color);
}

.table thead th {
    background: var(--sky-blue-soft);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
}

.table tbody tr:hover {
    background: rgba(184, 216, 240, 0.1);
}

/* Pagination */
.pagination .page-link {
    border: none;
    color: var(--accent-red);
    padding: 8px 16px;
    margin: 0 2px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--accent-red);
    color: white;
}

.pagination .page-item.active .page-link {
    background: var(--accent-red);
    border-color: var(--accent-red);
}



/* Responsive Design */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .product-card .card-img-top {
        height: 150px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
        padding-bottom: 80px; /* Space for mobile nav */
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .section-padding {
        padding: 30px 0;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .btn-lg {
        padding: 12px 24px;
    }
}

/* Utility Classes */
.w-fit {
    width: fit-content;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.1);
}

.border-custom {
    border: 2px solid var(--border-color);
}

.rounded-custom {
    border-radius: 12px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--sky-blue-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--sky-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Print Styles */
@media print {
    .navbar,
    .mobile-bottom-nav,
    .footer,
    .btn,
    .back-to-top {
        display: none !important;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
.product-grid {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-title {
  font-size: 14px;
  line-height: 1.3;
  height: 38px;
  overflow: hidden;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: #2563eb;
}

.product-card .btn,
.product-card button,
.product-actions {
  display: none !important;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  /* Header */
  .navbar .container,
  .header .container,
  header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .navbar-toggler,
  .mobile-menu-toggle,
  .menu-toggle {
    margin-left: auto !important;
  }

  /* Hero video */
  .hero-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    pointer-events: none !important;
  }

  .hero-video::-webkit-media-controls {
    display: none !important;
  }

  .sound-toggle-btn {
    display: none !important;
  }

  /* Bottom nav */
  .mobile-bottom-nav span {
    white-space: nowrap !important;
    font-size: 12px !important;
  }

  .mobile-bottom-nav a:nth-child(2) span {
    font-size: 0 !important;
  }

  .mobile-bottom-nav a:nth-child(2) span::after {
    content: "Products";
    font-size: 12px;
  }

  /* Compact footer */
  footer {
    padding: 18px 0 !important;
  }


  footer p,
  footer a,
  footer li {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  footer h4,
  footer h5 {
    font-size: 15px !important;
    margin-bottom: 8px !important;
  }
}
.track-order-nav-btn {
    background: #e63946 !important;
    color: #ffffff !important;   /* ✅ WHITE TEXT */
}

.track-order-nav-btn i {
    color: #ffffff !important;   /* ✅ ICON WHITE */
}

.track-order-nav-btn:hover {
    background: #d62839 !important;
    color: #ffffff !important;
}

/* ===== Nepalstore Mobile Footer Final Fixed ===== */
@media (max-width: 768px) {
  footer.footer,
  .footer {
    padding-top: 28px !important;
    padding-bottom: 92px !important;
  }

  footer.footer .row > div,
  .footer .row > div,
  footer .row > div:not(:first-child) {
    display: block !important;
  }

  .footer .row > [class*="col-"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 10px !important;
  }

  .footer-brand {
    font-size: 1.32rem !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
  }

  .footer-brand-logo {
    width: 46px !important;
    height: 46px !important;
    margin-right: 10px !important;
  }

  .footer > .container > .row > div:first-child .footer-text {
    font-size: 1rem !important;
    line-height: 1.65 !important;
    margin-bottom: 8px !important;
  }

  .footer-mobile-toggle {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
    font-size: 1.02rem !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.12) !important;
  }

  .footer-mobile-toggle .footer-arrow {
    font-size: 0.9rem !important;
    transition: transform 0.25s ease !important;
  }

  .footer-mobile-toggle.active .footer-arrow {
    transform: rotate(90deg) !important;
  }

  .footer-mobile-content {
    display: none !important;
    margin: 5px 0 10px !important;
    padding-left: 0 !important;
  }

  .footer-mobile-content.active {
    display: block !important;
  }

  .footer-mobile-content li {
    margin-bottom: 7px !important;
  }

  .footer-mobile-content a,
  .footer-mobile-content li,
  .footer-link {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
  }

  .footer .social-links {
    display: none !important;
    gap: 9px !important;
    margin-top: 8px !important;
  }

  .footer .social-links.active {
    display: flex !important;
    align-items: center !important;
  }

  .footer .social-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    font-size: 0.8rem !important;
    line-height: 30px !important;
  }

  .footer .social-icon i,
  .footer .social-icon svg {
    font-size: 0.84rem !important;
    width: 0.84rem !important;
    height: 0.84rem !important;
  }

  .footer-bottom {
    margin-top: 14px !important;
    padding-top: 14px !important;
  }

  .footer-bottom .footer-text,
  .footer-bottom .footer-link {
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
  }
}


/* ===== FINAL MOBILE HOMEPAGE COMPACT + NO SEARCH ZOOM ===== */
@media (max-width: 768px) {

  /* iPhone input zoom fix: all inputs must be >=16px */
  input,
  select,
  textarea,
  .form-control,
  .form-select,
  .header-search-input,
  .header-search-form input,
  .navbar input[type="search"],
  input[type="search"],
  input[type="text"] {
    font-size: 16px !important;
    line-height: 1.2 !important;
    -webkit-text-size-adjust: 100% !important;
  }

  .header-search-wrapper,
  .mobile-search-wrapper,
  .navbar .header-search-wrapper {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
  }

  .header-search-input,
  .header-search-form input,
  .navbar input[type="search"] {
    height: 38px !important;
    min-height: 38px !important;
    padding: 8px 36px 8px 12px !important;
    border-radius: 10px !important;
  }

  /* Whole homepage below video: reduce spacing and text */
  .homepage-premium section,
  .homepage-premium .premium-section,
  .homepage-premium .section-dark-block,
  .homepage-premium .hp-section-services,
  .homepage-premium .hp-section-products,
  section.hp-section-services,
  section.hp-section-products {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .homepage-premium .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .homepage-premium .row {
    --bs-gutter-x: 0.7rem !important;
    --bs-gutter-y: 0.7rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .homepage-premium .mb-5 { margin-bottom: 0.8rem !important; }
  .homepage-premium .mb-4 { margin-bottom: 0.65rem !important; }
  .homepage-premium .mb-3 { margin-bottom: 0.5rem !important; }
  .homepage-premium .mt-5 { margin-top: 0.9rem !important; }
  .homepage-premium .mt-4 { margin-top: 0.7rem !important; }
  .homepage-premium .py-5 { padding-top: 1.15rem !important; padding-bottom: 1.15rem !important; }

  .homepage-premium .section-heading,
  .homepage-premium .section-title,
  .homepage-premium .order-title,
  .section-heading,
  .section-title {
    font-size: 1.35rem !important;
    line-height: 1.1 !important;
    margin-bottom: 5px !important;
    letter-spacing: -0.025em !important;
  }

  .homepage-premium .section-subtitle-premium,
  .homepage-premium .section-subtitle,
  .homepage-premium .order-subtitle,
  .homepage-premium .lead,
  .section-subtitle-premium,
  .section-subtitle {
    font-size: 0.78rem !important;
    line-height: 1.32 !important;
    margin-bottom: 10px !important;
  }

  /* Hero/video area compact */
  .hero-premium,
  .hero-section {
    min-height: 280px !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  .hero-content-shell {
    padding: 24px 0 !important;
  }

  .hero-display-title {
    font-size: 1.15rem !important;
    line-height: 1.12 !important;
    margin-bottom: 6px !important;
    white-space: normal !important;
  }

  .hero-display-text {
    font-size: 0.76rem !important;
    line-height: 1.3 !important;
    margin: 7px 0 !important;
  }

  .hero-cta-row {
    margin-top: 10px !important;
    gap: 8px !important;
  }

  .hero-primary-btn,
  .hero-secondary-btn,
  .premium-btn-outline-view-all,
  .btn {
    min-height: 34px !important;
    padding: 7px 12px !important;
    font-size: 0.78rem !important;
    border-radius: 9px !important;
  }

  /* Service boxes: small square style */
  .main-service-card {
    height: 128px !important;
    min-height: 128px !important;
    padding: 10px 6px !important;
    border-radius: 13px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .main-service-card .service-icon,
  .service-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    margin-bottom: 7px !important;
  }

  .main-service-card h5 {
    font-size: 0.75rem !important;
    line-height: 1.13 !important;
    margin-bottom: 4px !important;
    font-weight: 800 !important;
    max-width: 125px !important;
  }

  .main-service-card p {
    font-size: 0.64rem !important;
    line-height: 1.22 !important;
    margin-bottom: 0 !important;
    max-width: 118px !important;
  }

  /* Product cards smaller */
  .product-grid {
    gap: 8px !important;
  }

  .product-card,
  .product-dark-card,
  .ns-product-card,
  .card {
    border-radius: 11px !important;
  }

  .product-card .card-body,
  .product-dark-card .card-body,
  .ns-product-body {
    padding: 8px !important;
    gap: 4px !important;
  }

  .product-title,
  .product-title-link,
  .product-dark-card .card-body h5,
  .ns-product-title {
    font-size: 0.76rem !important;
    line-height: 1.18 !important;
    margin-bottom: 4px !important;
    min-height: auto !important;
    height: auto !important;
  }

  .product-dark-card .card-body .small,
  .ns-product-meta,
  .product-card p {
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
  }

  .product-price,
  .price-sale-wrapper,
  .ns-product-price {
    margin-bottom: 0 !important;
    gap: 4px !important;
  }

  .product-price,
  .price-sale,
  .price-regular,
  .price-discount,
  .ns-price-current {
    font-size: 0.86rem !important;
    line-height: 1.15 !important;
  }

  .price-original,
  .ns-price-old {
    font-size: 0.68rem !important;
  }

  .image-shell img {
    padding: 8px !important;
  }

  /* General mobile text compact */
  body,
  p,
  li,
  a,
  span {
    line-height: 1.35 !important;
  }
}
/* ===== END FINAL MOBILE HOMEPAGE COMPACT + NO SEARCH ZOOM ===== */


/* Removed broken FORCE HIDE TOP SECTION mobile block. */


/* =========================================================
   NEPALSTORE FINAL CSS MOBILE BLANK FIX
   Same laptop logic; CSS-only mobile visibility/layout fix.
   ========================================================= */
@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    -webkit-text-size-adjust: 100% !important;
  }

  body::before {
    display: none !important;
  }

  /* Never hide real page content on mobile */
  body .container:first-of-type,
  body section:first-of-type,
  main,
  section,
  form,
  h1,
  .lead,
  .filter-card,
  .card,
  .homepage-premium,
  .premium-main-content,
  .premium-section,
  .section-padding,
  .product-detail-section,
  .product-detail-container,
  .product-info-section,
  .product-image-section,
  .product-grid,
  .products-grid,
  .ns-market-grid,
  .ns-market-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
  }

  main,
  section,
  .homepage-premium,
  .premium-main-content,
  .premium-main-content > section,
  .premium-section,
  .section-padding,
  .product-detail-section {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  form,
  h1,
  .lead {
    display: block !important;
  }

  /* Header/search */
  .navbar .container,
  .header .container,
  header .container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  .header-search-wrapper,
  .mobile-search-wrapper,
  .navbar .header-search-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 8px !important;
  }

  input,
  select,
  textarea,
  .form-control,
  .form-select,
  .header-search-input,
  input[type="search"],
  input[type="text"] {
    font-size: 16px !important;
  }

  /* Hero/video mobile: keep same HTML logic but prevent blank/yellow area */
  .hero-premium,
  .hero-section {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 300px !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
  }

  .hero-video-wrap {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    overflow: hidden !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  .hero-video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    pointer-events: none !important;
  }

  .hero-video::-webkit-media-controls,
  .hero-video::-webkit-media-controls-enclosure,
  .hero-video::-webkit-media-controls-panel,
  .hero-video::-webkit-media-controls-play-button,
  .hero-video::-webkit-media-controls-start-playback-button,
  .hero-video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    opacity: 0 !important;
    -webkit-appearance: none !important;
  }

  .sound-toggle-btn,
  #soundToggle {
    display: none !important;
  }

  .hero-content-shell {
    display: block !important;
    width: 100% !important;
    max-width: 390px !important;
    margin: 0 auto !important;
    text-align: center !important;
    position: relative !important;
    z-index: 3 !important;
  }

  .hero-display-title {
    font-size: 1.62rem !important;
    line-height: 1.16 !important;
    font-weight: 900 !important;
    white-space: normal !important;
    margin-bottom: 10px !important;
  }

  .hero-display-text {
    font-size: .92rem !important;
    line-height: 1.45 !important;
    margin: 0 auto 16px !important;
    max-width: 330px !important;
  }

  .hero-cta-row {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  /* Product grid */
  .product-grid,
  .products-grid,
  .ns-market-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-top: 0 !important;
  }

  .product-card,
  .product-dark-card,
  .ns-product-card,
  .ns-market-card {
    display: block !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .ns-market-image img,
  .product-card img,
  .ns-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* Product detail */
  .product-detail-section {
    padding: 14px 0 24px !important;
  }

  .product-detail-section .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .product-detail-container {
    display: block !important;
    border-radius: 16px !important;
    overflow: visible !important;
  }

  .product-image-section,
  .product-info-section {
    display: block !important;
    padding: 14px !important;
    border-right: none !important;
  }

  .main-image-container {
    aspect-ratio: 1 / 1 !important;
    max-height: none !important;
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  h1.product-title,
  .product-title {
    display: block !important;
    font-size: 1.5rem !important;
    line-height: 1.18 !important;
    font-weight: 900 !important;
  }
}
/* End Nepalstore Final CSS Mobile Blank Fix */
@media (max-width:768px){

.hero-premium{
height:100vh !important;
min-height:100vh !important;
aspect-ratio:auto !important;
overflow:hidden !important;
}

.hero-video-wrap{
position:absolute !important;
inset:0 !important;
width:100% !important;
height:100% !important;
}

.hero-video{
width:100% !important;
height:100% !important;
object-fit:cover !important;
display:block !important;
background:#000 !important;
}

.hero-content-shell{
position:relative !important;
z-index:5 !important;
}

}