/*
 * SAVINA mobile app view.
 *
 * This file is intentionally scoped to mobile breakpoints and mobile-only
 * class names so it cannot affect the existing desktop Flatsome/UX layout.
 */

@media (min-width: 850px) {
  .savina-mobile-app,
  .savina-mobile-only {
    display: none !important;
  }
}

@media (max-width: 849px) {
  .savina-desktop-only {
    display: none !important;
  }

  .savina-mobile-app {
    --savina-mobile-brown: #553a3d;
    --savina-mobile-cream: #fffaf2;
    --savina-mobile-card: #ffffff;
    --savina-mobile-text: #33272a;
    --savina-mobile-muted: #7d6c6f;
    --savina-mobile-accent: #dd9933;
    --savina-mobile-red: #df3f34;
    background: linear-gradient(180deg, #fffaf2 0%, #ffffff 42%, #fff8ef 100%);
    color: var(--savina-mobile-text);
    overflow: hidden;
  }

  .savina-mobile-app img {
    max-width: 100%;
    height: auto;
  }

  .savina-mobile-section {
    padding: 18px 16px;
  }

  .savina-mobile-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--savina-mobile-text);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
  }

  .savina-mobile-hero {
    margin: 14px 14px 8px;
    border-radius: 26px;
    overflow: hidden;
    background: var(--savina-mobile-brown);
    box-shadow: 0 18px 36px rgba(85, 58, 61, 0.18);
  }

  .savina-mobile-hero img,
  .savina-mobile-hero .bg {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .savina-mobile-chip-row,
  .savina-mobile-category-strip,
  .savina-mobile-product-rail,
  .savina-mobile-news-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 16px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .savina-mobile-chip-row::-webkit-scrollbar,
  .savina-mobile-category-strip::-webkit-scrollbar,
  .savina-mobile-product-rail::-webkit-scrollbar,
  .savina-mobile-news-rail::-webkit-scrollbar {
    display: none;
  }

  .savina-mobile-category-card {
    flex: 0 0 92px;
    scroll-snap-align: start;
    text-align: center;
    color: var(--savina-mobile-text);
  }

  .savina-mobile-category-card__image {
    width: 76px;
    height: 76px;
    margin: 0 auto 8px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: var(--savina-mobile-card);
    box-shadow: 0 12px 26px rgba(85, 58, 61, 0.12);
    overflow: hidden;
  }

  .savina-mobile-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .savina-mobile-category-card__title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
  }

  .savina-mobile-product-card {
    flex: 0 0 168px;
    scroll-snap-align: start;
    border-radius: 22px;
    background: var(--savina-mobile-card);
    box-shadow: 0 16px 34px rgba(85, 58, 61, 0.12);
    overflow: hidden;
  }

  .savina-mobile-product-card__image {
    width: 100%;
    height: 156px;
    display: grid;
    place-items: center;
    background: #fff;
    overflow: hidden;
  }

  .savina-mobile-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .savina-mobile-product-card__body {
    padding: 12px;
    text-align: center;
  }

  .savina-mobile-product-card__title {
    min-height: 38px;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
  }

  .savina-mobile-product-card__price {
    min-height: 24px;
    color: var(--savina-mobile-red);
    font-size: 13px;
    font-weight: 800;
  }

  .savina-mobile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--savina-mobile-brown);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
  }

  .savina-mobile-banner-card {
    position: relative;
    margin: 0 16px 14px;
    min-height: 132px;
    border-radius: 26px;
    overflow: hidden;
    background: var(--savina-mobile-brown);
    box-shadow: 0 18px 36px rgba(85, 58, 61, 0.16);
  }

  .savina-mobile-banner-card img {
    width: 100%;
    height: 100%;
    min-height: 132px;
    object-fit: cover;
    opacity: 0.9;
  }

  .savina-mobile-banner-card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    color: #fff;
    background: linear-gradient(90deg, rgba(85, 58, 61, 0.76), rgba(85, 58, 61, 0.08));
  }

  .savina-mobile-banner-card__title {
    max-width: 62%;
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.15;
  }

  .savina-mobile-news-featured {
    margin: 0 16px 12px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--savina-mobile-card);
    box-shadow: 0 16px 34px rgba(85, 58, 61, 0.12);
  }

  .savina-mobile-news-featured img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }

  .savina-mobile-news-featured__body {
    padding: 14px;
  }

  .savina-mobile-news-item {
    flex: 0 0 82%;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: center;
    scroll-snap-align: start;
    padding: 10px;
    border-radius: 20px;
    background: var(--savina-mobile-card);
    box-shadow: 0 12px 26px rgba(85, 58, 61, 0.1);
  }

  .savina-mobile-news-item img {
    width: 96px;
    height: 78px;
    border-radius: 16px;
    object-fit: cover;
  }

  .savina-mobile-footer {
    margin-top: 18px;
    padding: 28px 18px 34px;
    background: var(--savina-mobile-brown);
    color: #fff;
    text-align: center;
  }
}
