/**
 * Mobile Mockup UI — matches Sanju Pansari reference design
 * Header: menu | logo | search+cart + search bar + category rail
 * Bottom: 5 tabs with center Shop FAB
 * Home: cream hero, service grid, top categories, promo strip
 */

@media (max-width: 991px) {
  :root {
    --mock-green: #2E7D32;
    --mock-green-dark: #1B5E20;
    --mock-green-light: #66BB6A;
    --mock-cream: #F5F5F5;
    --mock-yellow: #FFD54F;
    --bottom-nav-h: 72px;
  }

  /* ── Promo bar ── */
  body.pd-layout .pd-savings-bar {
    background: linear-gradient(90deg, #1B5E20, #2E7D32);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 7px 12px;
    text-align: center;
    line-height: 1.35;
  }

  body.pd-layout .pd-savings-bar strong {
    color: #c5f052;
  }

  /* ── Mobile chrome ── */
  body.pd-layout .sp-mobile-chrome {
    background: #fff;
    border-bottom: 1px solid #eef3e8;
    padding: 8px 14px 10px;
  }

  body.pd-layout .sp-mobile-topbar {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
  }

  body.pd-layout .sp-mobile-logo {
    justify-self: center;
    display: flex;
    align-items: center;
  }

  body.pd-layout .sp-mobile-logo img {
    height: 42px;
    width: auto;
    display: block;
  }

  body.pd-layout .sp-mobile-topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  body.pd-layout .sp-mob-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  body.pd-layout .sp-mob-btn:active {
    background: #e8f5e9;
  }

  body.pd-layout .sp-mob-btn i {
    color: #1B5E20;
  }

  body.pd-layout .sp-mob-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #fff;
  }

  /* Search bar */
  body.pd-layout .sp-mobile-searchbar {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
    margin-bottom: 12px;
  }

  body.pd-layout .sp-mobile-searchbar input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 12px 14px;
    font-size: 0.875rem;
    color: #111827;
  }

  body.pd-layout .sp-mobile-searchbar input::placeholder {
    color: #9ca3af;
  }

  body.pd-layout .sp-mobile-searchbar input:focus {
    outline: none;
  }

  body.pd-layout .sp-mobile-searchbar button {
    width: 48px;
    border: none;
    background: linear-gradient(145deg, var(--mock-green-light), var(--mock-green-dark));
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
  }

  /* Category rail */
  body.pd-layout .sp-mobile-cat-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  body.pd-layout .sp-mobile-cat-rail::-webkit-scrollbar {
    display: none;
  }

  body.pd-layout .sp-cat-rail-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 64px;
    border: none;
    background: transparent;
    padding: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  body.pd-layout .sp-cat-rail-photo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(61, 107, 30, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  body.pd-layout .sp-cat-rail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.pd-layout .sp-cat-rail-photo i {
    font-size: 1.25rem;
    color: var(--mock-green-dark);
  }

  body.pd-layout .sp-cat-rail-photo-all {
    border-radius: 14px;
    background: linear-gradient(145deg, #ecfccb, #d9f99d);
    border-color: #dce8d0;
  }

  body.pd-layout .sp-cat-rail-photo-more {
    background: #f3f4f6;
  }

  body.pd-layout .sp-cat-rail-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #374151;
    text-align: center;
    line-height: 1.2;
    max-width: 64px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ── Bottom nav — 5 tab + center FAB ── */
  body.pd-layout .sp-mock-bottom-nav.sanju-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    min-height: var(--bottom-nav-h) !important;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid #e8f0df !important;
    box-shadow: 0 -4px 24px rgba(17, 24, 39, 0.08) !important;
    backdrop-filter: blur(16px) !important;
    align-items: flex-end !important;
    justify-content: space-around !important;
    border-radius: 0 !important;
  }

  body.pd-layout .sp-mock-bottom-nav .bottom-nav-item {
    flex: 1 1 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 3px !important;
    padding: 2px 4px 4px !important;
    min-height: 48px !important;
    color: #94a3b8 !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    position: relative !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  body.pd-layout .sp-mock-bottom-nav .bottom-nav-icon-wrap {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative !important;
  }

  body.pd-layout .sp-mock-bottom-nav .bottom-nav-item i {
    font-size: 1.15rem !important;
    color: #64748b !important;
  }

  body.pd-layout .sp-mock-bottom-nav .bottom-nav-item.active {
    color: var(--mock-green-dark) !important;
  }

  body.pd-layout .sp-mock-bottom-nav .bottom-nav-item.active i {
    color: var(--mock-green-dark) !important;
  }

  body.pd-layout .sp-mock-bottom-nav .bottom-nav-item.active .bottom-nav-icon-wrap {
    background: transparent !important;
    box-shadow: none !important;
  }

  body.pd-layout .sp-mock-bottom-nav .bottom-nav-label {
    font-size: 0.625rem !important;
    font-weight: 700 !important;
    color: inherit !important;
    line-height: 1.1 !important;
  }

  body.pd-layout .sp-mock-bottom-nav .bottom-nav-shop {
    position: relative;
    z-index: 2;
  }

  body.pd-layout .sp-mock-bottom-nav .bottom-nav-shop .bottom-nav-icon-shop {
    width: 44px !important;
    height: 44px !important;
    margin-top: -18px !important;
    margin-bottom: 2px !important;
    border-radius: 50% !important;
    background: linear-gradient(145deg, var(--mock-green-light) 0%, var(--mock-green-dark) 100%) !important;
    box-shadow: 0 8px 22px rgba(61, 107, 30, 0.38), 0 0 0 4px #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.pd-layout .sp-mock-bottom-nav .bottom-nav-shop .bottom-nav-icon-shop i {
    color: #fff !important;
    font-size: 1.05rem !important;
  }

  body.pd-layout .sp-mock-bottom-nav .bottom-nav-cart-count {
    top: -4px !important;
    right: -8px !important;
    min-width: 17px !important;
    height: 17px !important;
    font-size: 0.58rem !important;
    background: #ef4444 !important;
    border: 2px solid #fff !important;
  }

  body.pd-layout .sp-mock-bottom-nav button.bottom-nav-item {
    font-family: inherit;
    cursor: pointer;
  }

  /* Hide theme toggle on mobile mockup */
  body.pd-layout .sp-theme-toggle {
    display: none;
  }

  body.pd-layout .page-wrapper {
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 8px);
    background: #F5F5F5;
  }

  body.pd-layout .wa-float {
    bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 12px) !important;
    left: 14px !important;
    right: auto !important;
  }

  /* ── Homepage mockup sections ── */
  body.page-mock-mobile .hp-mock-hero {
    padding: 0 14px 8px;
  }

  body.page-mock-mobile .hp-mock-swiper {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(61, 107, 30, 0.1);
  }

  body.page-mock-mobile .hp-mock-slide {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 8px;
    align-items: center;
    min-height: 220px;
    padding: 18px 16px 36px;
    background: linear-gradient(135deg, #f4faeb 0%, #e8f5d6 45%, #dcefc4 100%);
    position: relative;
    overflow: hidden;
  }

  body.page-mock-mobile .hp-mock-slide-copy {
    min-width: 0;
  }

  body.page-mock-mobile .hp-mock-slide-art {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    height: 100%;
  }

  body.page-mock-mobile .hp-mock-art-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--mock-green-dark);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 14px rgba(61, 107, 30, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.9);
  }

  body.page-mock-mobile .hp-mock-art-1 {
    align-self: flex-end;
  }

  body.page-mock-mobile .hp-mock-art-2 {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }

  body.page-mock-mobile .hp-mock-art-3 {
    align-self: flex-start;
  }

  body.page-mock-mobile .hp-mock-slide-alt {
    background: linear-gradient(135deg, #eef8e3 0%, #f4faeb 100%);
  }

  body.page-mock-mobile .hp-mock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(61, 107, 30, 0.15);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mock-green-dark);
    margin-bottom: 10px;
  }

  body.page-mock-mobile .hp-mock-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--mock-green-dark);
    margin: 0 0 6px;
  }

  body.page-mock-mobile .hp-mock-sub {
    font-size: 0.8125rem;
    color: #4b5563;
    margin: 0 0 12px;
    line-height: 1.5;
  }

  body.page-mock-mobile .hp-mock-features {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  body.page-mock-mobile .hp-mock-features li {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  body.page-mock-mobile .hp-mock-features li i {
    color: var(--mock-green);
    font-size: 0.75rem;
    width: 14px;
  }

  body.page-mock-mobile .hp-mock-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--mock-green-light), var(--mock-green-dark));
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(61, 107, 30, 0.28);
    min-height: 44px;
  }


  body.page-mock-mobile .hp-mock-pagination {
    bottom: 10px !important;
  }

  body.page-mock-mobile .hp-mock-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    background: rgba(61, 107, 30, 0.25);
    opacity: 1;
  }

  body.page-mock-mobile .hp-mock-pagination .swiper-pagination-bullet-active {
    background: var(--mock-green-dark);
    width: 20px;
    border-radius: 8px;
  }

  /* Service grid */
  body.page-mock-mobile .hp-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 12px 14px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef3e8;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(17, 24, 39, 0.04);
  }

  body.page-mock-mobile .hp-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    text-align: center;
    border-right: 1px solid #f0f4ea;
  }

  body.page-mock-mobile .hp-service-item:last-child {
    border-right: none;
  }

  body.page-mock-mobile .hp-service-item i {
    font-size: 1.1rem;
    color: var(--mock-green-dark);
  }

  body.page-mock-mobile .hp-service-item span {
    font-size: 0.5625rem;
    font-weight: 700;
    color: #374151;
    line-height: 1.35;
  }

  /* Top categories */
  body.page-mock-mobile .hp-top-cats {
    padding: 8px 0 16px;
  }

  body.page-mock-mobile .hp-top-cats-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 10px;
  }

  body.page-mock-mobile .hp-top-cats-head h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
  }

  body.page-mock-mobile .hp-top-cats-head a {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--mock-green-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  body.page-mock-mobile .hp-top-cats-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 14px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.page-mock-mobile .hp-top-cats-scroll::-webkit-scrollbar {
    display: none;
  }

  body.page-mock-mobile .hp-top-cat-card {
    flex: 0 0 100px;
    text-decoration: none;
    color: inherit;
  }

  body.page-mock-mobile .hp-top-cat-img {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eef3e8;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
    margin-bottom: 6px;
  }

  body.page-mock-mobile .hp-top-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.page-mock-mobile .hp-top-cat-img i {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--mock-green-dark);
    background: linear-gradient(145deg, #f4faeb, #e8f5d6);
  }

  body.page-mock-mobile .hp-top-cat-name {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-align: center;
    color: #374151;
    line-height: 1.25;
  }

  /* Promo strip */
  body.page-mock-mobile .hp-promo-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 14px 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.25);
  }

  body.page-mock-mobile .hp-promo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--mock-yellow);
    flex-shrink: 0;
  }

  body.page-mock-mobile .hp-promo-text {
    flex: 1;
    min-width: 0;
  }

  body.page-mock-mobile .hp-promo-text strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1.2;
  }

  body.page-mock-mobile .hp-promo-text span {
    font-size: 0.6875rem;
    opacity: 0.9;
  }

  body.page-mock-mobile .hp-promo-text em {
    font-style: normal;
    color: var(--mock-yellow);
    font-weight: 800;
  }

  body.page-mock-mobile .hp-promo-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 8px;
    background: var(--mock-yellow);
    color: #1f2937;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  /* Products sections */
  body.page-mock-mobile .hp-products-section {
    padding: 16px 0 !important;
  }

  body.page-mock-mobile .hp-products-section .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.page-mock-mobile .hp-section-muted {
    background: #fff;
  }

  body.page-mock-mobile .hp-sec-title-left {
    text-align: left !important;
    font-size: 1.05rem !important;
    margin: 0 !important;
  }

  body.page-mock-mobile .hp-sec-title-left::after {
    display: none !important;
  }

  body.page-mock-mobile .hp-desktop-only {
    display: none;
  }

  body.page-mock-mobile .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 992px) {
  body.pd-layout .sp-mobile-chrome {
    display: none;
  }

  body.page-mock-mobile .hp-mock-hero,
  body.page-mock-mobile .hp-service-grid,
  body.page-mock-mobile .hp-top-cats,
  body.page-mock-mobile .hp-promo-strip {
    display: none;
  }

  body.page-grocery-kit .hp-kit-hero,
  body.page-grocery-kit .hp-kit-services,
  body.page-grocery-kit .hp-kit-top-cats,
  body.page-grocery-kit .hp-kit-sanju-strip,
  body.page-grocery-kit .hp-kit-promos {
    display: block;
  }

  body.page-mock-mobile .hp-desktop-only {
    display: block;
  }
}

@media (max-width: 380px) {
  body.page-mock-mobile .hp-service-item span {
    font-size: 0.5rem;
  }

  body.page-mock-mobile .hp-mock-title {
    font-size: 1.45rem;
  }

  body.pd-layout .sp-mock-bottom-nav .bottom-nav-label {
    font-size: 0.58rem !important;
  }
}
