/* ==============================================================================
   ROPKART PRODUCTION DESIGN SYSTEM - BRIGHT-FIRST (ZERO DARK MODE MANDATE)
   Vibrant Indian Retail Aesthetic (Snapdeal Crimson #E40046, Flipkart Royal #2874F0, Amazon Gold #FF9900)
   Zero X-Axis Overflow via CSS clamp() and fluid responsive layouts.
   ============================================================================== */

:root {
  --brand-primary: #E40046;
  --brand-primary-hover: #C2003B;
  --brand-secondary: #2874F0;
  --brand-secondary-hover: #1E5BC6;
  --brand-accent: #FF9900;
  --brand-green: #16A34A;
  --brand-amber: #D97706;

  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #FFF7ED;

  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;

  --border-light: #E5E7EB;
  --border-subtle: #F3F4F6;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);

  --font-h1: clamp(1.75rem, 3.5vw + 0.8rem, 2.75rem);
  --font-h2: clamp(1.35rem, 2.5vw + 0.5rem, 1.95rem);
  --font-h3: clamp(1.1rem, 1.8vw + 0.3rem, 1.45rem);
  --font-body: clamp(0.9rem, 1vw + 0.2rem, 1.05rem);

  --max-width: 1360px;
}

/* Force Bright-First light mode at all times */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #FFFFFF !important;
    --bg-secondary: #F8F9FA !important;
    --text-primary: #111827 !important;
    --text-secondary: #4B5563 !important;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ropkart-container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(12px, 3vw, 24px);
  padding-right: clamp(12px, 3vw, 24px);
}

/* Top Announcement Bar */
.top-announcement-bar {
  background: #111827;
  color: #F3F4F6;
  font-size: clamp(0.72rem, 0.9vw + 0.1rem, 0.82rem);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.announcement-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-link {
  color: #D1D5DB;
  text-decoration: none;
  transition: color 0.2s ease;
}

.top-link:hover {
  color: #FFFFFF;
}

.highlight-link {
  color: #FBBF24 !important;
  font-weight: 700;
}

/* Main Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 2px solid var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.logo-text {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--brand-primary);
}

.logo-badge {
  background: var(--brand-secondary);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* Search Bar */
.search-bar-container {
  flex: 1;
  max-width: 680px;
  display: flex;
  align-items: center;
  border: 2px solid var(--brand-primary);
  border-radius: 8px;
  background: #FFFFFF;
  overflow: hidden;
}

.search-category-select {
  border: none;
  background: #F9FAFB;
  border-right: 1px solid var(--border-light);
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  outline: none;
  cursor: pointer;
}

.search-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 0.92rem;
  outline: none;
}

.search-button {
  background: var(--brand-primary);
  border: none;
  color: #FFFFFF;
  padding: 10px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.search-button:hover {
  background: var(--brand-primary-hover);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 16px);
}

.header-action-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  text-align: left;
}

.header-action-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--border-light);
}

.action-icon {
  font-size: 1.25rem;
}

.action-text {
  display: flex;
  flex-direction: column;
}

.action-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.action-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cart-button {
  background: var(--brand-primary);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  position: relative;
  transition: background 0.2s ease;
}

.cart-button:hover {
  background: var(--brand-primary-hover);
}

.cart-icon {
  font-size: 1.2rem;
}

.cart-count {
  background: #FFFFFF;
  color: var(--brand-primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
}

/* Categories Nav */
.categories-nav {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  white-space: nowrap;
}

.categories-nav-inner {
  display: flex;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.category-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.category-item:hover, .category-item.active {
  color: var(--brand-primary);
  background: #FFF1F2;
}

.metrology-highlight {
  color: var(--brand-secondary) !important;
  font-weight: 700;
}

/* Hero Section */
.hero-section {
  padding: 24px 0;
  background: linear-gradient(180deg, #FFF1F2 0%, #FFFFFF 100%);
}

.hero-card {
  background: #FFFFFF;
  border: 1px solid #FFE4E6;
  border-radius: 16px;
  padding: clamp(20px, 4vw, 36px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.festive-pill {
  display: inline-block;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hero-heading {
  font-size: var(--font-h1);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #111827;
}

.hero-subtext {
  font-size: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--brand-primary);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

.trust-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-green);
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #F9FAFB;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
}

.stat-item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.stat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Flash Deals Header */
.flash-deals-section {
  padding: 16px 0 8px;
}

.flash-deals-header {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.flash-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-icon {
  font-size: 1.5rem;
}

.sale-badge {
  background: #DC2626;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  color: #92400E;
}

.timer-box {
  background: #111827;
  color: #FFFFFF;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.95rem;
}

/* Products Section */
.products-section {
  padding: 28px 0 40px;
}

.section-title-wrap {
  margin-bottom: 24px;
}

.section-title-wrap h2 {
  font-size: var(--font-h2);
  font-weight: 800;
}

.section-subtext {
  font-size: var(--font-body);
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #D1D5DB;
}

.product-badge-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.discount-pill {
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.category-pill {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.product-image-wrap {
  width: 100%;
  height: 220px;
  background: #F3F4F6;
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.rating-stars {
  color: #F59E0B;
  font-size: 0.85rem;
}

.rating-score {
  font-weight: 700;
  font-size: 0.85rem;
}

.reviews-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #111827;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.selling-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-primary);
}

.mrp-price {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.tax-tag {
  font-size: 0.72rem;
  color: var(--brand-green);
  font-weight: 700;
}

/* Legal Metrology Card within Product */
.legal-metrology-box {
  background: #FEF3C7;
  border: 1px dashed #FCD34D;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.75rem;
  margin-bottom: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.legal-metrology-box:hover {
  background: #FDE68A;
}

.metrology-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metrology-arrow {
  color: #B45309;
  font-weight: 700;
}

.product-btn-group {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-cart {
  background: #FFFFFF;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cart:hover {
  background: #FFF1F2;
}

.btn-buy-now {
  background: var(--brand-primary);
  color: #FFFFFF;
  border: 1.5px solid var(--brand-primary);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-buy-now:hover {
  background: var(--brand-primary-hover);
}

/* Trust Features Section */
.trust-features-section {
  background: #F9FAFB;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.trust-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.trust-box-icon {
  font-size: 2rem;
  line-height: 1;
}

.trust-box-text h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.trust-box-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Slide-Over Shopping Cart Drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-close-btn {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
}

.cart-body {
  padding: 16px 20px;
  flex: 1;
  overflow-y: auto;
}

.empty-cart-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-item-row {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  padding: 14px 0;
}

.cart-item-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 6px;
}

.cart-qty-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-qty-bar button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-light);
  background: #F9FAFB;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.cart-qty-bar .remove-btn {
  width: auto;
  border: none;
  background: transparent;
  color: #DC2626;
  font-size: 0.75rem;
  margin-left: auto;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border-light);
  background: #F9FAFB;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.free-badge {
  color: var(--brand-green);
  font-weight: 700;
}

.total-line {
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 900;
}

.cart-total-amount {
  color: var(--brand-primary);
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  margin-top: 12px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #FFFFFF;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 0.9rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--brand-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-summary-box {
  background: #F9FAFB;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

/* DPDP Consent Box */
.dpdp-consent-box {
  background: #EFF6FF;
  border: 1.5px solid #BFDBFE;
  border-radius: 8px;
  padding: 14px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.dpdp-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #1E40AF;
  margin-bottom: 6px;
}

.dpdp-version {
  background: #DBEAFE;
  color: #1E40AF;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.dpdp-desc {
  font-size: 0.78rem;
  color: #3B82F6;
  margin-bottom: 10px;
}

.consent-check-item {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  color: #1E3A8A;
  margin-bottom: 8px;
  align-items: flex-start;
  cursor: pointer;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-message {
  background: #111827;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast-message.show {
  transform: translateY(0);
  opacity: 1;
}

/* Statutory Footer */
.statutory-footer {
  background: #FFFFFF;
  border-top: 2px solid var(--brand-primary);
  padding: 44px 0 24px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 32px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}

.company-cin {
  font-size: 0.85rem;
  color: var(--brand-primary);
  margin-bottom: 6px;
}

.registered-address {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.footer-link-list a:hover {
  color: var(--brand-primary);
}

.partner-link {
  font-weight: 700;
  color: var(--brand-secondary) !important;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom-badges {
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .main-header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .search-bar-container {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 4px;
  }
  .product-btn-group {
    grid-template-columns: 1fr;
  }
  .top-announcement-inner {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }
  .announcement-right {
    justify-content: center;
    font-size: 0.72rem;
  }
  .header-actions .action-text {
    display: none;
  }
  .header-actions .header-action-btn {
    padding: 6px;
  }
  body {
    padding-bottom: 64px !important;
  }
  .mobile-bottom-nav {
    display: flex !important;
  }
  .desktop-only {
    display: none !important;
  }
  .hero-card {
    padding: 16px;
    gap: 16px;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    gap: 12px !important;
  }
  .product-image-wrap {
    height: 160px !important;
  }
  .product-content {
    padding: 10px !important;
  }
  .product-title {
    font-size: 0.85rem !important;
    height: 2.6em !important;
  }
  .selling-price {
    font-size: 1.15rem !important;
  }
}

/* ==============================================================================
   MOBILE BOTTOM NAVIGATION BAR (FIXED FOR TOUCH DEVICES)
   ============================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1500;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  position: relative;
  transition: color 0.15s ease;
}

.mobile-nav-btn.active, .mobile-nav-btn:hover {
  color: var(--brand-primary);
}

.mobile-nav-icon {
  font-size: 1.25rem;
  line-height: 1.2;
}

.mobile-cart-badge {
  position: absolute;
  top: 4px;
  right: 14px;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
}

/* ==============================================================================
   PAYMENT GATEWAY MODAL (RAZORPAY & PHONEPE INTEGRATION SIMULATOR)
   ============================================================================== */
.payment-modal-content {
  max-width: 680px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.payment-gateway-header {
  background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
  color: #FFFFFF;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gateway-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gateway-amount-box {
  text-align: right;
}

.gateway-amount {
  font-size: 1.4rem;
  font-weight: 900;
  color: #FCD34D;
}

.payment-body-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 380px;
}

@media (max-width: 640px) {
  .payment-body-layout {
    grid-template-columns: 1fr;
  }
  .payment-tabs {
    flex-direction: row !important;
    overflow-x: auto;
    border-right: none !important;
    border-bottom: 1px solid var(--border-light);
  }
}

.payment-tabs {
  background: #F9FAFB;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.payment-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.payment-tab-btn:hover {
  background: #F3F4F6;
  color: var(--text-primary);
}

.payment-tab-btn.active {
  background: #FFFFFF;
  border-left-color: var(--brand-primary);
  color: var(--brand-primary);
}

.payment-tab-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* UPI QR and Apps */
.upi-qr-card {
  text-align: center;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  max-width: 280px;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-sm);
}

.upi-apps-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.upi-app-pill {
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upi-app-pill:hover {
  border-color: var(--brand-secondary);
}

/* Card Payment Styling */
.card-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Bank Selector Grid */
.bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.bank-item {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.15s ease;
}

.bank-item:hover, .bank-item.selected {
  border-color: var(--brand-secondary);
  background: #EFF6FF;
  color: var(--brand-secondary);
}

/* Order Success & Tracking Stepper */
.success-header-card {
  text-align: center;
  padding: 24px 20px 16px;
  background: #F0FDF4;
  border-bottom: 1px solid #BBF7D0;
}

.success-icon-wrap {
  width: 60px;
  height: 60px;
  background: #16A34A;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 12px;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

.tracking-stepper {
  display: flex;
  justify-content: space-between;
  margin: 24px 0;
  position: relative;
}

.tracking-stepper::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: #E5E7EB;
  z-index: 1;
}

.track-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.track-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #D1D5DB;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin: 0 auto 8px;
}

.track-step.done .track-step-circle {
  border-color: #16A34A;
  background: #16A34A;
  color: #FFFFFF;
}

.track-step.current .track-step-circle {
  border-color: var(--brand-primary);
  background: #FFF1F2;
  color: var(--brand-primary);
  animation: pulseRing 1.5s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(228, 0, 70, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(228, 0, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 0, 70, 0); }
}

.track-step-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.track-step-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Coupon Box */
.coupon-box {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.coupon-input {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.btn-apply-coupon {
  background: #111827;
  color: #FFFFFF;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.applied-coupon-pill {
  background: #DCFCE7;
  color: #166534;
  border: 1px dashed #86EFAC;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* GST Printable Invoice Modal */
.invoice-container {
  background: #FFFFFF;
  border: 2px solid #111827;
  padding: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #111827;
  line-height: 1.5;
}

.invoice-header-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #111827;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.82rem;
}

.invoice-table th, .invoice-table td {
  border: 1px solid #D1D5DB;
  padding: 8px 10px;
  text-align: left;
}

.invoice-table th {
  background: #F3F4F6;
  font-weight: 800;
}

@media print {
  body * {
    visibility: hidden;
  }
  #gstInvoiceModal, #gstInvoiceModal * {
    visibility: visible;
  }
  #gstInvoiceModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: transparent !important;
  }
  .modal-close-btn, .btn-print-hide {
    display: none !important;
  }
}

/* ==============================================================================
   2026 AESTHETIC ENHANCEMENTS: STORIES, AUTH TABS, & MANDATORY PHONE STYLING
   ============================================================================== */

/* Category Stories Avatar Carousel */
.category-stories-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.category-stories-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  padding-bottom: 2px;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.story-item:hover {
  transform: translateY(-2px);
}

.story-avatar-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #E40046 0%, #FF9900 50%, #2874F0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-item:hover .story-avatar-wrap {
  box-shadow: 0 4px 12px rgba(228, 0, 70, 0.3);
}

.story-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.story-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

/* Auth Modal Segmented Tabs (Log In vs Sign Up) */
.auth-segmented-tabs {
  display: flex;
  background: #F3F4F6;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  color: #6B7280;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: #FFFFFF;
  color: #111827;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Mandatory Indian Phone Number Input Group */
.mandatory-phone-group {
  display: flex;
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  background: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mandatory-phone-group:focus-within {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(228, 0, 70, 0.1);
}

.country-code-pill {
  background: #F9FAFB;
  border-right: 1.5px solid var(--border-light);
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

.mandatory-phone-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.phone-valid-indicator {
  display: flex;
  align-items: center;
  padding-right: 12px;
  font-size: 0.85rem;
}

/* Scarcity & Social Proof Badges */
.stock-scarcity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FEE2E2;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
}

.social-proof-pill {
  font-size: 0.72rem;
  color: #D97706;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* User Profile & Orders Drawer */
.profile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-drawer.open {
  transform: translateX(0);
}

.profile-header-card {
  background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
  color: #FFFFFF;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 1.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

.profile-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

/* Floating WhatsApp / Help Widget */
.floating-support-btn {
  position: fixed;
  bottom: 74px;
  right: 20px;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  border-radius: 30px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 1200;
  transition: transform 0.2s ease;
}

.floating-support-btn:hover {
  transform: translateY(-2px);
}


