/* ==========================================================================
   AGARVEDAA — MOBILE APP-LIKE EXPERIENCE CSS
   Native mobile app feeling with bottom nav, sticky CTA, 2-column cards, & menu drawer
   Inspired by Akira luxury e-commerce mobile application design
   ========================================================================== */

/* Bottom Fixed Mobile App Bar */
.mobile-app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1500;
  padding: 0 6px env(safe-area-inset-bottom) 6px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
  .mobile-app-bottom-nav {
    display: none; /* Only visible on mobile/tablet */
  }
}

@media (max-width: 991px) {
  /* Cart is in bottom bar, so remove cart button from top header on mobile view */
  .cart-btn-pill {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  width: 20%;
  height: 100%;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-nav-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  transition: all 0.2s ease;
}

.mobile-nav-item.active {
  color: var(--green-primary);
}

.mobile-nav-item.active svg {
  color: var(--gold-brown);
  transform: translateY(-2px);
}

.mobile-nav-badge {
  position: absolute;
  top: 6px;
  right: calc(50% - 18px);
  background: var(--gold-brown);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid #FFFFFF;
}

/* Mobile Sticky Bottom Action Bar (Product Detail Pages) */
.mobile-sticky-action-bar {
  position: fixed;
  bottom: 64px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1400;
}

@media (min-width: 992px) {
  .mobile-sticky-action-bar {
    display: none;
  }
}

.sticky-bar-price {
  display: flex;
  flex-direction: column;
}

.sticky-bar-price-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green-primary);
  line-height: 1;
}

.sticky-bar-price-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sticky-bar-btn-group {
  display: flex;
  gap: 8px;
}

.btn-sticky-cart {
  background: var(--gold-brown);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(167, 109, 40, 0.3);
}

.btn-sticky-buy {
  background: var(--green-primary);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(12, 75, 51, 0.25);
}

/* ==========================================================================
   2-COLUMN MOBILE APPLICATION PRODUCT GRID (Home & Shop)
   Akira-inspired compact 2-column e-commerce mobile app experience
   ========================================================================== */
@media (max-width: 767px) {
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 2 products per row grid */
  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .product-card {
    border-radius: 12px !important;
    border: 1px solid var(--border-light) !important;
    display: flex !important;
    flex-direction: column !important;
    background: #FFFFFF !important;
    overflow: hidden !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .product-card-img-wrap {
    height: 135px !important;
    padding: 8px !important;
    background: #FAF7F2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }

  .product-card-img-wrap img {
    max-height: 118px !important;
    max-width: 90% !important;
    object-fit: contain !important;
  }

  .card-top-badge {
    font-size: 0.60rem !important;
    padding: 2px 6px !important;
    top: 6px !important;
    left: 6px !important;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 4px !important;
  }

  .card-discount-badge {
    font-size: 0.60rem !important;
    padding: 2px 5px !important;
    top: 6px !important;
    right: 6px !important;
    border-radius: 4px !important;
  }

  .product-card-body {
    padding: 8px 8px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    box-sizing: border-box !important;
  }

  .product-rating-row {
    font-size: 0.70rem !important;
    margin-bottom: 3px !important;
  }

  .rating-stars {
    font-size: 0.75rem !important;
  }

  .product-title {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin-bottom: 2px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 2.1em !important;
  }

  .product-weight-tag {
    font-size: 0.68rem !important;
    margin-bottom: 4px !important;
    color: var(--gold-brown-dark) !important;
    font-weight: 600 !important;
  }

  .product-short-desc {
    display: none !important; /* Hide long paragraph on compact 2-col cards */
  }

  .product-price-action-row {
    margin-top: auto !important;
    border-top: 1px solid var(--border-light) !important;
    padding-top: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: stretch !important;
  }

  .price-stack {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 4px !important;
  }

  .price-current {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: var(--green-primary) !important;
  }

  .price-mrp-row {
    margin-top: 0 !important;
    gap: 4px !important;
    display: inline-flex !important;
    align-items: baseline !important;
  }

  .price-mrp {
    font-size: 0.68rem !important;
  }

  .price-save {
    font-size: 0.62rem !important;
    color: #16A34A !important;
    font-weight: 700 !important;
  }

  /* Dual Action Buttons (Details + Add) */
  .product-actions-btn-group {
    display: grid !important;
    grid-template-columns: 1fr 1.25fr !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .btn-card-details {
    font-size: 0.72rem !important;
    padding: 6px 3px !important;
    text-align: center !important;
    border-radius: 6px !important;
    border: 1px solid var(--border-light) !important;
    background: #FFFFFF !important;
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    white-space: nowrap !important;
  }

  .btn-card-add {
    font-size: 0.72rem !important;
    padding: 6px 4px !important;
    justify-content: center !important;
    border-radius: 6px !important;
    width: 100% !important;
    background: var(--gold-brown) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
  }

  .btn-card-add svg, .btn-card-details svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* Akira Style Category Filter Pills on Mobile */
  #shopFilterPills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    padding: 4px 4px 12px !important;
    margin-bottom: 16px !important;
    scrollbar-width: none !important;
  }
  #shopFilterPills::-webkit-scrollbar {
    display: none !important;
  }
  #shopFilterPills button {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.78rem !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
  }

  /* Brand Values (4 Boxes -> 2 in a row on mobile) */
  .values-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .value-card {
    padding: 14px 8px !important;
    border-radius: 12px !important;
  }

  .value-icon-box {
    width: 42px !important;
    height: 42px !important;
    font-size: 1.25rem !important;
    margin: 0 auto 8px !important;
  }

  .value-title {
    font-size: 0.84rem !important;
    margin-bottom: 3px !important;
  }

  .value-desc {
    font-size: 0.70rem !important;
    line-height: 1.35 !important;
  }

  .hero-section {
    padding: 30px 0 45px;
  }

  .hero-heading {
    font-size: 2.15rem !important;
  }

  .hero-tagline-sub {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .btn-primary-tea, .btn-golden-outline {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }
}

/* Product Details Page (PDP) Mobile Flow - Natural Scroll & Compact Image */
@media (max-width: 991px) {
  body.pdp-page {
    padding-bottom: 140px !important;
  }
  .pdp-gallery-col {
    position: static !important;
    top: auto !important;
  }
  .pdp-main-img-box {
    min-height: 230px !important;
    max-height: 280px !important;
    padding: 12px !important;
  }
  .pdp-main-img-box img {
    max-height: 220px !important;
  }
}
