/* Mobile app style enhancements for Shisu site */

:root {
  --app-bg: #f4f5f7;
  --app-primary: #d11a2a;
  --app-text: #111827;
  --app-primary-2: #a80f1c;
}

body {
  background-color: var(--app-bg);
  color: var(--app-text);
}

/* New mobile header is hidden on desktop by default */
.mobile-app-header {
  display: none;
}

@media (max-width: 768px) {
  .page-wrapper {
    min-height: 100vh;
    background-color: var(--app-bg);
    padding-bottom: 72px; /* space for sticky footer nav */
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Hide existing desktop header on small screens */
  .header {
    display: none;
  }

  /* Show new mobile header */
  .mobile-app-header {
    display: block;
    background: linear-gradient(180deg, var(--app-primary) 0%, var(--app-primary-2) 100%);
    color: #ffffff;
    padding-bottom: 8px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.25);
  }

  .mobile-app-header-inner {
    padding: 8px 12px 4px;
  }

  .mobile-app-header-top {
    display: grid;
    grid-template-columns: 32px 1fr 32px 32px;
    align-items: center;
    column-gap: 8px;
    margin-bottom: 8px;
  }

  .mobile-app-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
  }

  .mobile-app-icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    background-color: #ff4b4b;
    color: #ffffff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-app-icon-wrapper {
    position: relative;
    display: inline-flex;
  }

  .mobile-app-search {
    background-color: #ffffff;
    border-radius: 999px;
    padding: 2px 4px 2px 10px;
    display: flex;
    align-items: center;
  }

  .mobile-app-search input[type="text"] {
    border: none;
    outline: none;
    font-size: 13px;
    width: 100%;
  }

  .mobile-app-search button {
    border-radius: 999px;
    padding: 6px 10px;
    background-color: var(--app-primary);
    border: none;
  }

  .mobile-app-search button i {
    font-size: 14px;
  }

  .mobile-app-header-nav {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 12px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
  }

  .mobile-app-header-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .mobile-app-nav-item {
    flex: 0 0 auto;
        min-width: 78px;
        max-width: 110px;
        text-align: center;
        color: #ffffff;
        font-size: 11px;
        scroll-snap-align: start;
        backdrop-filter: blur(8px);
        text-decoration: none;
  }

  .mobile-app-nav-item i {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
  }

  .mobile-app-nav-item span {
    display: block;
    white-space: normal;
    line-height: 1.15;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .mobile-app-nav-item:hover,
  .mobile-app-nav-item:focus {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.30);
    transform: translateY(-1px);
  }

  .main {
    padding-top: 8px;
  }

  /* Home page hero slider: show full image on mobile (no crop) */
  .intro-wrapper .animation-slider .swiper-slide.banner {
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
  }

  .intro-wrapper .animation-slider .swiper-slide.intro-slide {
    min-height: 0 !important;
    aspect-ratio: 26 / 9;
  }

  /* Card-style look for content blocks */
  .banner-fixed,
  .product.product-simple,
  .category-ellipse,
  .icon-box,
  .instagram {
    border-radius: 18px;
    overflow: hidden;
    background-color: #ffffff;
  }

  /* App-like buttons */
  .btn,
  .btn-primary,
  .btn-dark {
    border-radius: 999px;
  }

  /* Bottom navigation bar styling */
  .sticky-footer.sticky-content.fix-bottom {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.12);
    height: 64px;
  }

  .sticky-footer .sticky-link,
  .sticky-footer .cart-dropdown > .sticky-link {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    gap: 2px;
  }

  .sticky-footer .sticky-link i,
  .sticky-footer .cart-dropdown .sticky-link i {
    font-size: 20px;
  }

  .sticky-footer .sticky-link.active,
  .sticky-footer .sticky-link:hover {
    color: var(--app-primary);
  }

  /* Reduce visual noise on small screens */
  .swiper-container .swiper-button-next,
  .swiper-container .swiper-button-prev {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .mobile-category-section {
    padding: 9px 12px;
    background: #ab101d;
  }

  .mobile-category-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 2px 10px;
  }

  .mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .mobile-category-section .mobile-category-card {
    background: linear-gradient(180deg, #b51321 0%, #d68225 100%);
    border-radius: 16px;
    padding: 16px 10px 14px;
    text-align: center;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
  }

  .mobile-category-section .mobile-category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120px 80px at 20% 20%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 60%),
      radial-gradient(120px 80px at 85% 10%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
  }

  .mobile-category-section .mobile-category-card:hover,
  .mobile-category-section .mobile-category-card:focus {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.22);
    filter: saturate(1.05);
  }

  .mobile-category-icon {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 20px;
    position: relative;
    z-index: 1;
  }

  .mobile-category-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 1;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }
}

.intro-banner img, .category-accessories img {
  min-height: 10rem !important;
}


