
/* ULTRA-COMPACT MOBILE CSS FOR INDIAN USERS */
/* Primary focus on maximum space efficiency and touch-friendly design */

/* Mobile-First Base Optimizations */
@media (max-width: 768px) {
  :root {
    --spacing-xs: 0.125rem; /* 2px - Ultra tight */
    --spacing-sm: 0.25rem;  /* 4px - Very tight */
    --spacing-md: 0.5rem;   /* 8px - Compact */
    --spacing-lg: 0.75rem;  /* 12px - Moderate */
    --spacing-xl: 1rem;     /* 16px - Standard */
    --spacing-2xl: 1.25rem; /* 20px - Loose */

    /* Optimized button sizing */
    --btn-height-sm: 36px;  /* Small buttons */
    --btn-height-md: 42px;  /* Medium buttons */
    --btn-height-lg: 48px;  /* Large buttons */

    /* Touch target optimization */
    --touch-target: 44px;   /* Minimum touch target */
  }

  /* Global container optimization */
  .container {
    padding: 0 8px !important; /* Ultra-minimal side padding */
    max-width: 100% !important;
  }

  /* Section spacing ultra-compact */
  section {
    padding: 12px 0 !important; /* Minimal vertical spacing */
    margin: 0 !important;
  }

  /* Remove all section gaps */
  .hero + .categories,
  .categories + .deals,
  .deals + .loot-deals,
  .loot-deals + .testimonials {
    margin-top: 0 !important;
  }
}

/* HEADER MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .header {
    padding: 8px 0 !important;
    min-height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .header .container {
    padding: 0 10px !important;
    gap: 8px !important;
  }

  /* Logo ultra-compact */
  .logo-text h1 {
    font-size: 1.1rem !important;
    margin: 0 !important;
  }

  .tagline {
    display: none !important;
  }

  /* Search optimization */
  .search-container {
    flex: 1;
    max-width: none !important;
    margin: 0 !important;
  }

  .search-box {
    height: 38px !important;
  }

  .search-input {
    padding: 6px 10px !important;
    font-size: 0.85rem !important;
  }

  .search-btn {
    padding: 6px 12px !important;
    min-width: 40px !important;
  }

  /* Auth buttons compact */
  .auth-btn {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
    min-width: 40px !important;
    height: 36px !important;
  }

  .btn-text {
    display: none !important; /* Hide text, show only icons */
  }
}

/* BANNER SECTION ULTRA-COMPACT */
@media (max-width: 768px) {
  .hero {
    height: 180px !important; /* Reduced from 200px */
    margin: 0 !important;
    padding: 0 !important;
  }

  .banner-content {
    padding: 0 12px !important;
  }

  .banner-title {
    font-size: 1.3rem !important;
    margin-bottom: 6px !important;
    line-height: 1.2 !important;
  }

  .banner-subtitle {
    font-size: 0.8rem !important;
    margin-bottom: 8px !important;
  }

  .banner-stats {
    gap: 6px !important;
    margin-bottom: 8px !important;
  }

  .stat-item {
    padding: 4px 8px !important;
    min-width: 50px !important;
  }

  .stat-number {
    font-size: 0.85rem !important;
  }

  .stat-label {
    font-size: 0.6rem !important;
  }

  .banner-cta {
    gap: 6px !important;
  }

  .banner-cta .btn-primary,
  .banner-cta .btn-secondary {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    height: 32px !important;
  }

  /* Navigation arrows compact */
  .banner-nav {
    width: 30px !important;
    height: 30px !important;
  }

  .banner-nav i {
    font-size: 0.8rem !important;
  }
}

/* CATEGORIES ULTRA-COMPACT */
@media (max-width: 768px) {
  .categories {
    padding: 10px 0 !important;
  }

  .categories-container {
    padding: 0 10px !important;
  }

  .categories-header {
    margin-bottom: 8px !important;
  }

  .categories-title {
    font-size: 1.2rem !important;
    margin: 0 !important;
  }

  .category-grid {
    gap: 25px !important;
    padding: 6px 0 !important;
  }

  .category-wrapper {
    width: 85px !important; /* Ultra-compact */
  }

  .category-card {
    width: 85px !important;
    height: 85px !important;
    padding: 0 !important;
  }

  .category-icon {
    width: 28px !important;
    height: 28px !important;
    margin-bottom: 4px !important;
  }

  .category-icon i {
    font-size: 0.85rem !important;
  }

  .category-name {
    font-size: 0.7rem !important;
    line-height: 1.1 !important;
  }

  .category-label {
    font-size: 0.7rem !important;
    margin-top: 2px !important;
    line-height: 1.1 !important;
  }

  /* Hide navigation arrows on mobile */
  .nav-arrow {
    display: none !important;
  }
}

/* DEALS SECTION ULTRA-COMPACT */
@media (max-width: 768px) {
  .deals, .loot-deals {
    padding: 30px 0 !important;
  }

  .section-header {
    margin-bottom: 8px !important;
    padding: 0 10px !important;
  }

  .section-title {
    font-size: 1.2rem !important;
    margin-bottom: 1.5px !important;
  }

  .section-subtitle {
    font-size: 0.75rem !important;
    margin: 0 !important;
  }

  /* Header view all button compact */
  .header-view-all-btn {
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    height: 32px !important;
  }

  /* Horizontal scroll optimization */
  .horizontal-products-scroll,
  .horizontal-loot-scroll {
    padding: 4px 10px !important;
    gap: 8px !important;
    margin: 0 -10px !important;
  }

  /* Product cards ultra-compact */
  .product-card {
    flex: 0 0 200px !important; /* Smaller width */
    max-width: 200px !important;
    height: 280px !important; /* Reduced height */
    margin-bottom: 0 !important;
  }

  .product-image {
    height: 110px !important; /* Reduced image height */
  }

  .product-info {
    padding: 6px !important;
  }

  .product-title {
    font-size: 0.75rem !important;
    line-height: 1.1 !important;
    margin-bottom: 4px !important;
    -webkit-line-clamp: 2 !important;
  }

  .product-price {
    font-size: 0.9rem !important;
    margin-bottom: 4px !important;
  }

  .product-original-price {
    font-size: 0.7rem !important;
  }

  .product-rating {
    font-size: 0.65rem !important;
    margin-bottom: 4px !important;
  }

  .product-actions {
    gap: 4px !important;
    padding-top: 4px !important;
  }

  .deal-btn,
  .wishlist-btn {
    padding: 4px 8px !important;
    font-size: 0.7rem !important;
    height: 28px !important;
  }

  /* Hide scroll buttons on mobile */
  .scroll-btn {
    display: none !important;
  }
}

/* TESTIMONIALS COMPACT */
@media (max-width: 768px) {
  .testimonials {
    padding: 10px 0 !important;
  }

  .testimonials-header {
    margin-bottom: 10px !important;
    padding: 0 10px !important;
  }

  .testimonials-header .section-title {
    font-size: 1.1rem !important;
  }

  .testimonials-grid {
    padding: 10px 10px !important;
    gap: 8px !important;
  }

  .testimonial-card {
    flex: 0 0 260px !important;
    max-width: 260px !important;
    padding: 10px !important;
  }

  .testimonial-avatar {
    width: 40px !important;
    height: 40px !important;
  }

  .testimonial-name {
    font-size: 0.85rem !important;
  }

  .testimonial-location {
    font-size: 0.7rem !important;
  }

  .testimonial-text {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 3 !important;
  }

  .testimonial-savings {
    font-size: 0.7rem !important;
    padding: 3px 8px !important;
  }
}

/* BUTTON OPTIMIZATION FOR INDIAN MOBILE USERS */
@media (max-width: 768px) {
  /* Ensure all buttons are touch-friendly */
  .btn, button, [role="button"] {
    min-height: var(--btn-height-md) !important;
    min-width: var(--touch-target) !important;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Primary buttons */
  .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(40, 116, 240, 0.3) !important;
  }

  .btn-primary:hover,
  .btn-primary:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(40, 116, 240, 0.4) !important;
  }

  /* Secondary buttons */
  .btn-secondary {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
  }

  /* Small buttons */
  .btn-sm {
    min-height: var(--btn-height-sm) !important;
    padding: 6px 10px !important;
    font-size: 0.7rem !important;
  }

  /* Large buttons */
  .btn-lg {
    min-height: var(--btn-height-lg) !important;
    padding: 12px 20px !important;
    font-size: 0.9rem !important;
  }
}

/* FOOTER COMPACT */
@media (max-width: 768px) {
  .footer {
    padding: 15px 0 10px !important;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    padding: 0 10px !important;
  }

  .footer-section h4 {
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
  }

  .footer-section ul li {
    margin-bottom: 4px !important;
  }

  .footer-section ul li a {
    font-size: 0.75rem !important;
  }

  .footer-bottom {
    padding-top: 10px !important;
    text-align: center !important;
  }

  .footer-disclaimer p,
  .affiliate-disclosure {
    font-size: 0.7rem !important;
    margin-bottom: 4px !important;
  }
}

/* ULTRA-SMALL MOBILE (320px-480px) */
@media (max-width: 480px) {
  :root {
    --spacing-xs: 0.1rem !important;   /* 1.6px */
    --spacing-sm: 0.2rem !important;   /* 3.2px */
    --spacing-md: 0.4rem !important;   /* 6.4px */
    --spacing-lg: 0.6rem !important;   /* 9.6px */
    --spacing-xl: 0.8rem !important;   /* 12.8px */
  }

  .container {
    padding: 0 6px !important;
  }

  /* Header ultra-compact */
  .header .container {
    padding: 0 8px !important;
    gap: 6px !important;
  }

  .logo-text h1 {
    font-size: 1rem !important;
  }

  .auth-btn {
    padding: 4px 8px !important;
    font-size: 0.7rem !important;
    min-width: 36px !important;
  }

  /* Banner even more compact */
  .hero {
    height: 160px !important;
  }

  .banner-content {
    padding: 0 8px !important;
  }

  .banner-title {
    font-size: 1.1rem !important;
  }

  /* Categories super compact */
  .category-wrapper {
    width: 75px !important;
  }

  .category-card {
    width: 100px !important;
    height: 100px !important;
  }

  .category-label {
    font-size: 0.65rem !important;
  }

  /* Products super compact */
  .product-card {
    flex: 0 0 180px !important;
    max-width: 180px !important;
    height: 260px !important;
  }

  .product-image {
    height: 100px !important;
  }

  .product-info {
    padding: 4px !important;
  }

  .product-title {
    font-size: 0.7rem !important;
  }

  .product-price {
    font-size: 0.8rem !important;
  }

  .deal-btn, .wishlist-btn {
    padding: 3px 6px !important;
    font-size: 0.65rem !important;
    height: 24px !important;
  }
}

/* FEATURE SPACING OPTIMIZATIONS */
@media (max-width: 768px) {
  /* Why Choose Us section compact */
  .thrift-why-choose-section {
    padding: 10px 0 !important;
  }

  .thrift-why-section-title {
    font-size: 1.2rem !important;
  }

  .thrift-why-feature-banner {
    min-width: 240px !important;
    height: 140px !important;
  }

  /* Brand offers compact */
  .thrift-brand-offers-section {
    padding: 10px 0 !important;
  }

  .thrift-brand-section-title {
    font-size: 1.2rem !important;
  }

  .thrift-brand-banner-slide {
    width: 240px !important;
    height: 130px !important;
  }

  /* Promo banner compact */
  .live-promo-banner {
    padding: 6px 10px !important;
  }

  .promo-title {
    font-size: 0.85rem !important;
  }

  .promo-subtitle {
    font-size: 0.7rem !important;
  }

  .shop-now-btn {
    padding: 6px 12px !important;
    font-size: 0.7rem !important;
  }
}

/* PERFORMANCE OPTIMIZATIONS */
@media (max-width: 768px) {
  /* Reduce animations for better performance */
  * {
    transition-duration: 0.2s !important;
  }

  /* Optimize scrolling */
  .horizontal-products-scroll,
  .horizontal-loot-scroll,
  .category-grid,
  .testimonials-grid {
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
  }

  /* Hide non-essential animations */
  .fire-emoji,
  .pulse,
  .bounce {
    animation: none !important;
  }

  /* Optimize images */
  img {
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
  }
}

/* ACCESSIBILITY FOR MOBILE */
@media (max-width: 768px) {
  /* Focus states */
  button:focus,
  .btn:focus,
  [role="button"]:focus {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
  }

  /* Text readability */
  .product-title,
  .category-label,
  .section-title {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
  }

  /* Touch target sizes */
  .category-card,
  .product-card,
  .testimonial-card {
    cursor: pointer !important;
    touch-action: manipulation !important;
  }
}

/* CONTENT DENSITY OPTIMIZATION */
@media (max-width: 768px) {
  /* Remove excessive whitespace */
  h1, h2, h3, h4, h5, h6 {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
  }

  p {
    margin-bottom: 6px !important;
    line-height: 1.3 !important;
  }

  /* Compact list items */
  ul, ol {
    margin: 0 !important;
    padding-left: 16px !important;
  }

  li {
    margin-bottom: 2px !important;
  }
}
