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

:root {
  /* Stitch Brand Design Colors */
  --primary: #0047C1;
  --primary-bright: #155EEF;
  --success: #006C47;
  --success-light: #6EFCB9;
  --accent: #AE4E00;
  --error: #BA1A1A;
  --bg: #F9F9FF;
  --card: #FFFFFF;
  --card-soft: #F1F3FF;
  --border: #DBE2F9;
  --text: #141B2C;
  --text-muted: #434655;
  --font-family: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  --shadow-sm: 0 2px 8px rgba(20, 27, 44, 0.03);
  --shadow-md: 0 6px 20px rgba(20, 27, 44, 0.05);
  --shadow-lg: 0 12px 35px rgba(20, 27, 44, 0.08);

  --header-height: 70px;
  --bottom-nav-height: 65px;
  --transition: all 0.2s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* -----------------------------------------
   A1PageShell Layout Structure
   ----------------------------------------- */
.a1-page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  background-color: var(--bg);
  overflow-x: hidden;
}

.a1-page-content {
  flex-grow: 1;
  margin-top: var(--header-height);
  margin-bottom: var(--bottom-nav-height);
  padding: 16px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive adjustments */
@media (min-width: 801px) {
  .a1-page-content {
    margin-top: calc(var(--header-height) + 16px);
    margin-bottom: 24px;
    max-width: 960px;
    padding: 24px 16px;
  }
}

/* -----------------------------------------
   A1Header (Mobile Fixed Header)
   ----------------------------------------- */
.a1-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: var(--shadow-sm);
}

.a1-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.a1-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.a1-location-selector {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  max-width: 140px;
}

.a1-location-selector .label {
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  font-weight: 700;
}

.a1-location-selector .value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.a1-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* -----------------------------------------
   A1DesktopHeader (Desktop Top Header)
   ----------------------------------------- */
.a1-desktop-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  z-index: 1001;
  align-items: center;
  padding: 0;
  box-shadow: var(--shadow-sm);
}

.a1-desktop-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
}

.a1-desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.a1-desktop-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.a1-desktop-nav-link:hover, .a1-desktop-nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Two-column responsive desktop layouts */
.a1-two-column-layout,
.product-detail-layout-grid {
  display: block;
}

.d-md-none {
  display: flex !important;
}
.d-none {
  display: none !important;
}
.d-md-block {
  display: none !important;
}
.d-md-flex {
  display: none !important;
}

@media (min-width: 801px) {
  .a1-header {
    display: none !important;
  }
  .a1-desktop-header {
    display: flex !important;
  }
  .a1-bottom-nav {
    display: none !important;
  }
  .a1-two-column-layout {
    display: grid !important;
    grid-template-columns: 1.6fr 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 24px;
  }
  .product-detail-layout-grid {
    display: grid !important;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 24px;
  }
  .d-md-none {
    display: none !important;
  }
  .d-md-block {
    display: block !important;
  }
  .d-md-flex {
    display: flex !important;
  }
}

/* -----------------------------------------
   A1BottomNav (Mobile Fixed Nav)
   ----------------------------------------- */
.a1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
}

.a1-bottom-nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.68rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 20%;
  height: 100%;
  cursor: pointer;
  transition: var(--transition);
}

.a1-bottom-nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

.a1-bottom-nav-item i, .a1-bottom-nav-item svg {
  width: 20px;
  height: 20px;
}

/* -----------------------------------------
   A1Card
   ----------------------------------------- */
.a1-card {
  background-color: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.a1-card.soft {
  background-color: var(--card-soft);
  box-shadow: none;
}

.a1-card.clickable {
  cursor: pointer;
}

.a1-card.clickable:active {
  transform: scale(0.98);
}

/* -----------------------------------------
   A1Button
   ----------------------------------------- */
.a1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
  padding: 12px 20px;
  text-decoration: none;
  line-height: 1;
}

.a1-btn.primary {
  background-color: var(--primary);
  color: #FFFFFF;
}

.a1-btn.primary:hover {
  background-color: var(--primary-bright);
  box-shadow: 0 4px 12px rgba(21, 94, 239, 0.2);
}

.a1-btn.secondary {
  background-color: var(--card-soft);
  color: var(--primary);
  border: 1px solid var(--border);
}

.a1-btn.secondary:hover {
  background-color: var(--border);
}

.a1-btn.outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.a1-btn.outline:hover {
  background-color: var(--card-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.a1-btn.block {
  width: 100%;
}

.a1-btn.danger {
  background-color: var(--error);
  color: #FFFFFF;
}

.a1-btn.danger:hover {
  background-color: #931313;
  box-shadow: 0 4px 12px rgba(186, 26, 26, 0.2);
}

.a1-btn.sm {
  padding: 8px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Icon Button */
.a1-icon-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.a1-icon-btn:hover {
  background-color: var(--card-soft);
  color: var(--primary-bright);
}

.a1-icon-btn .badge {
  position: absolute;
  top: 3px;
  right: 3px;
  background-color: var(--error);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 4px;
  min-width: 16px;
  text-align: center;
}

/* -----------------------------------------
   A1Input
   ----------------------------------------- */
.a1-input-group {
  margin-bottom: 16px;
  text-align: left;
}

.a1-input-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.a1-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--text);
  background-color: #FFFFFF;
  transition: var(--transition);
}

.a1-input:focus {
  outline: none;
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.1);
}

/* -----------------------------------------
   A1SearchBar
   ----------------------------------------- */
.a1-search-bar {
  position: relative;
  margin-bottom: 16px;
}

.a1-search-bar input {
  padding-left: 44px;
}

.a1-search-bar i, .a1-search-bar svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* -----------------------------------------
   A1CategoryCard
   ----------------------------------------- */
.a1-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  width: 100%;
  max-width: 72px;
}

.a1-category-card span {
  display: block;
  width: 100%;
  line-height: 1.25;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.a1-category-card .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--card-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: 1px solid var(--border);
  color: var(--primary);
}

.a1-category-card:hover .icon-wrap {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 71, 193, 0.15);
}

@media (min-width: 801px) {
  .a1-category-card {
    gap: 8px;
    font-size: 0.78rem;
  }
  .a1-category-card .icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
  }
}

/* -----------------------------------------
   A1ProductCard & A1VendorCard
   ----------------------------------------- */
.a1-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.a1-product-card .img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--card-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
}

.a1-product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.a1-product-card:hover .img-wrap img {
  transform: scale(1.05);
}

.wishlist-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  background: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.wishlist-heart.active {
  color: var(--error);
}

.a1-product-card .info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.a1-product-card .title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.5em;
  line-height: 1.25;
}

.a1-product-card .vendor {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.a1-product-card .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.a1-product-card .price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.a1-product-card .mrp {
  font-size: 0.75rem;
  text-decoration: line-through;
  color: var(--text-muted);
  margin-left: 4px;
}

/* Vendor card */
.a1-vendor-card {
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.a1-vendor-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

/* -----------------------------------------
   A1DeliveryBadge
   ----------------------------------------- */
.a1-delivery-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
}

.a1-delivery-badge.instant {
  background-color: var(--success-light);
  color: var(--success);
}

.a1-delivery-badge.standard {
  background-color: var(--card-soft);
  color: var(--primary);
  border: 1px solid var(--border);
}

/* -----------------------------------------
   A1QuantityStepper
   ----------------------------------------- */
.a1-quantity-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: white;
}

.a1-quantity-stepper .step-btn {
  background: none;
  border: none;
  color: var(--primary);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.1rem;
}

.a1-quantity-stepper .step-btn:hover {
  background-color: var(--card-soft);
}

.a1-quantity-stepper .value {
  font-size: 0.85rem;
  font-weight: 700;
  width: 24px;
  text-align: center;
}

/* -----------------------------------------
   A1CartItem & VendorCartGroup
   ----------------------------------------- */
.a1-cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.a1-cart-item:last-child {
  border-bottom: none;
}

.a1-cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background-color: #fff;
  border: 1px solid var(--border);
}

.a1-vendor-cart-group {
  margin-bottom: 16px;
}

.a1-vendor-cart-group .group-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

/* -----------------------------------------
   A1PriceSummary
   ----------------------------------------- */
.a1-price-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.a1-price-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.a1-price-summary-row.total {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

/* -----------------------------------------
   A1PaymentMethodCard
   ----------------------------------------- */
.a1-payment-method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.a1-payment-method-card.selected {
  border-color: var(--primary);
  background-color: var(--card-soft);
}

/* -----------------------------------------
   A1OrderCard & OrderTimeline
   ----------------------------------------- */
.a1-order-card {
  margin-bottom: 12px;
}

.a1-order-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 24px;
}

.a1-order-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background-color: var(--border);
}

.a1-order-timeline-step {
  position: relative;
  padding-bottom: 20px;
}

.a1-order-timeline-step:last-child {
  padding-bottom: 0;
}

.a1-order-timeline-step .marker {
  position: absolute;
  left: -24px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.a1-order-timeline-step.completed .marker {
  border-color: var(--success);
  background-color: var(--success);
  color: white;
}

.a1-order-timeline-step.active .marker {
  border-color: var(--primary);
  background-color: var(--primary);
  color: white;
}

/* -----------------------------------------
   A1AddressCard & CouponCard & ProfileMenuItem
   ----------------------------------------- */
.a1-address-card {
  margin-bottom: 12px;
}

.a1-address-card.selected {
  border-color: var(--primary-bright);
}

.a1-coupon-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
}

.a1-profile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.a1-profile-menu-item:hover {
  background-color: var(--card-soft);
}

.a1-profile-menu-item:last-child {
  border-bottom: none;
}

/* -----------------------------------------
   A1EmptyState & LoadingSkeleton
   ----------------------------------------- */
.a1-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.a1-empty-state i, .a1-empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--border);
}

.a1-loading-skeleton {
  background: linear-gradient(90deg, #F0F2F5 25%, #E6E8EB 37%, #F0F2F5 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.4s ease infinite;
  border-radius: var(--radius-xs);
  height: 18px;
  width: 100%;
}

@keyframes skeleton-loading {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* -----------------------------------------
   A1BottomSheet (Modal)
   ----------------------------------------- */
.a1-bottom-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(20, 27, 44, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.a1-bottom-sheet {
  background-color: var(--card);
  width: 100%;
  max-width: 500px;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -----------------------------------------
   Utility Classes & Layouts
   ----------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.d-none { display: none !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.w-100 { width: 100% !important; }
.p-3 { padding: 12px !important; }
.p-4 { padding: 16px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-error { color: var(--error) !important; }
.text-accent { color: var(--accent) !important; }
.text-primary { color: var(--primary) !important; }
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-medium { font-weight: 500 !important; }

/* Horizontal scrolling scroller */
.scroller-h {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  gap: 16px;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}
.scroller-h::-webkit-scrollbar {
  display: none;
}
.scroller-h > * {
  flex-shrink: 0;
}

/* Hero Carousel Snap Styles */
.hero-carousel {
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  width: calc(100% + 32px) !important;
  padding: 8px 16px 14px 16px !important;
  margin: -8px -16px 10px -16px !important;
}
.hero-carousel-item {
  scroll-snap-align: start;
  min-width: calc(100% - 20px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 135px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
  color: white;
}
.hero-carousel-item:last-child {
  margin-right: 16px !important;
}
.hero-carousel-item h3 {
  font-size: 0.95rem;
  color: white;
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
}
.hero-carousel-item p {
  font-size: 0.7rem;
  opacity: 0.95;
  margin-top: 4px;
  margin-bottom: 8px;
  max-width: 95%;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}
.hero-carousel-item button {
  padding: 5px 12px !important;
  font-size: 0.7rem !important;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
@media (min-width: 801px) {
  .hero-carousel {
    scroll-padding: 0;
    width: 100% !important;
    padding: 8px 0 12px 0 !important;
    margin: -8px 0 16px 0 !important;
  }
  .hero-carousel-item {
    min-width: 100%;
    min-height: 160px;
    padding: 20px 24px;
  }
  .hero-carousel-item:last-child {
    margin-right: 0 !important;
  }
  .hero-carousel-item h3 {
    font-size: 1.3rem;
  }
  .hero-carousel-item p {
    font-size: 0.8rem;
    margin-top: 6px;
    margin-bottom: 12px;
  }
  .hero-carousel-item button {
    padding: 6px 14px !important;
    font-size: 0.76rem !important;
  }
}

/* Category Grid container overrides */
.a1-categories-container {
  padding: 12px 8px !important;
  gap: 8px !important;
}
@media (min-width: 801px) {
  .a1-categories-container {
    padding: 16px !important;
    gap: 16px !important;
  }
}

@media (min-width: 801px) {
  .scroller-h {
    padding-bottom: 12px;
  }
  .scroller-h::-webkit-scrollbar,
  .faq-categories-row::-webkit-scrollbar,
  .quick-issue-chips-wrapper::-webkit-scrollbar {
    display: block !important;
    height: 6px !important;
  }
  .scroller-h::-webkit-scrollbar-track,
  .faq-categories-row::-webkit-scrollbar-track,
  .quick-issue-chips-wrapper::-webkit-scrollbar-track {
    background: rgba(20, 27, 44, 0.03) !important;
    border-radius: var(--radius-xs) !important;
  }
  .scroller-h::-webkit-scrollbar-thumb,
  .faq-categories-row::-webkit-scrollbar-thumb,
  .quick-issue-chips-wrapper::-webkit-scrollbar-thumb {
    background: var(--border) !important;
    border-radius: var(--radius-xs) !important;
  }
  .scroller-h::-webkit-scrollbar-thumb:hover,
  .faq-categories-row::-webkit-scrollbar-thumb:hover,
  .quick-issue-chips-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted) !important;
  }
}

/* Delivery badge absolute positioning within product cards */
.a1-product-card .img-wrap .a1-delivery-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

/* Badge & Tag Utility Styles */
.badge-tag {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.tag-instant {
  background-color: var(--success) !important;
  color: white !important;
}
.tag-standard {
  background-color: var(--text-muted) !important;
  color: white !important;
}

/* Desktop wider grid responsive layouts */
@media (min-width: 801px) {
  .grid-2 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  .grid-4 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 16px;
  }
  .a1-desktop-header .a1-search-bar {
    margin-bottom: 0;
  }
}

/* Custom 2-column layout for grouped categories page */
.grid-2-custom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 801px) {
  .grid-2-custom {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

/* -----------------------------------------
   Product Details Sticky Bottom Bar
   ----------------------------------------- */
.product-sticky-bottom-bar {
  position: fixed;
  bottom: var(--bottom-nav-height);
  left: 0;
  right: 0;
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 998;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

@media (min-width: 801px) {
  .product-sticky-bottom-bar {
    position: static;
    margin-top: 24px;
    padding: 0;
    border-top: none;
    box-shadow: none;
    background-color: transparent;
    z-index: auto;
  }
}

/* -----------------------------------------
   Support Chat View Styles
   ----------------------------------------- */
.chat-window {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height) - var(--bottom-nav-height) - 40px);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.chat-messages {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--bg);
}

.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
}

.bubble-sent {
  align-self: flex-end;
  background-color: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.bubble-received {
  align-self: flex-start;
  background-color: white;
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.chat-time {
  font-size: 0.62rem;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: white;
  border-top: 1px solid var(--border);
  align-items: center;
}

/* Hide scrollbar on FAQ/chat categories */
.faq-categories-row::-webkit-scrollbar,
.quick-issue-chips-wrapper::-webkit-scrollbar {
  display: none;
}