@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

@media(max-width:767px){
  body { 
    background: #ffffff !important; 
    overscroll-behavior-y: none;
  }
  .aiwox-modern-app, .aiwox-modern-app * { box-sizing: border-box; }
  
  .aiwox-modern-app {
    font-family: 'Outfit', sans-serif;
    background: #ffffff;
    color: #0f172a;
    padding: 16px 16px 100px 16px;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Typography matching desktop */
  .m-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    margin-top: 32px;
  }
  .m-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    letter-spacing: -0.5px;
  }
  
  /* Top Banners Section */
  .m-hero-banner {
    background: #0f172a;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding: 24px;
    color: #fff;
    margin-bottom: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  .m-hero-banner img {
    position: absolute;
    right: -20px;
    bottom: -10px;
    height: 110%;
    object-fit: contain;
    z-index: 1;
  }
  .m-hero-content {
    position: relative;
    z-index: 2;
    max-width: 65%;
  }
  .m-hero-tag {
    background: var(--aiwox-accent);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
  }
  .m-hero-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 16px 0;
    line-height: 1.1;
  }
  .m-hero-btn {
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 100px;
    text-decoration: none;
    display: inline-block;
  }

  /* Sub Banners Grid */
  .m-sub-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  .m-sub-banner {
    background: #1e1b4b; /* Dark purple/blue from desktop */
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    color: #fff;
    height: 140px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .m-sub-banner img {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 70%;
    object-fit: contain;
    z-index: 1;
  }
  .m-sub-banner-content {
    position: relative;
    z-index: 2;
  }
  .m-sub-banner-content span {
    background: #3b82f6;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    display: inline-block;
  }
  .m-sub-banner-content h3 {
    font-size: 14px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
  }

  /* Brands Scroller */
  .m-brands {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 8px;
    scrollbar-width: none;
    align-items: center;
  }
  .m-brands::-webkit-scrollbar { display: none; }
  .m-brands img {
    height: 32px;
    opacity: 0.6;
    filter: grayscale(100%);
  }

  /* Features List matching desktop */
  .m-features {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    margin-bottom: 32px;
    scrollbar-width: none;
  }
  .m-features::-webkit-scrollbar { display: none; }
  .m-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    padding: 8px 16px;
    border-radius: 100px;
    white-space: nowrap;
    border: 1px solid #e2e8f0;
  }
  .m-feature-item i {
    font-size: 16px;
  }
  .m-feature-item span {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
  }

  /* Products Scroller / Grid */
  .m-products-scroller {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .m-products-scroller::-webkit-scrollbar { display: none; }

  .m-product-card {
    min-width: 150px;
    width: 150px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    text-decoration: none;
  }
  .m-product-img {
    aspect-ratio: 1;
    background: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
  }
  .m-product-img img {
    width: 85%;
    height: 85%;
    object-fit: contain;
  }
  .m-discount-tag {
    position: absolute;
    top: 8px; left: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
  }
  .m-product-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .m-product-price {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
  }
  
  /* Highlighting Section (Aiwox Special) */
  .m-special-section {
    background: #f8fafc;
    border-radius: 24px;
    padding: 24px 16px;
    margin: 40px -16px;
    position: relative;
  }
  .m-special-section .m-section-header {
    margin-top: 0;
  }
  .m-special-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    text-decoration: none;
    border: 1px solid #f1f5f9;
  }
  .m-special-card.dark {
    background: #0f172a;
    color: #fff;
    border: none;
  }
  .m-special-card.dark .m-special-title { color: #fff; }
  .m-special-card.dark .m-special-price { color: #fff; }

  .m-special-card-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
  }
  .m-special-card-img img {
    width: 90%;
    height: 90%;
    object-fit: contain;
  }
  .m-special-card-body {
    flex: 1;
  }
  .m-special-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    line-height: 1.2;
  }
  .m-special-price {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
  }
  .m-special-btn {
    background: #1e293b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 100px;
    display: inline-block;
  }
  .m-special-card.dark .m-special-btn {
    background: #fff;
    color: #0f172a;
  }

  /* Bottom Hero Banner */
  .m-bottom-hero {
    background: #000;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    color: #fff;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
  }
  .m-bottom-hero h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px 0;
    position: relative;
    z-index: 2;
  }
  .m-bottom-hero p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 16px 0;
    position: relative;
    z-index: 2;
  }

  /* Skeleton Loading */
  .m-skel-card {
    background: #f1f5f9;
    border-radius: 16px;
    height: 150px;
    animation: pulse 1s infinite alternate;
  }
  @keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
  }

  .m-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .m-grid-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
  }
}
