/* ecommerce.css – additional styles for shop and cart pages */

section.cart {
  padding: 100px 0 60px;
}

/* Ensure product grid is responsive with equal height cards */
.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
  margin-top: 2rem;
}

.product-card {
  background: var(--white, #ffffff);
  border: 1px solid var(--gray-border, #e5e7eb);
  border-radius: var(--radius-xl, 16px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.05));
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg, 0 12px 24px rgba(0,0,0,0.1));
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg, 12px);
  margin-bottom: 1rem;
  background: rgba(230, 126, 34, 0.05);
}

.product-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--dark, #2d3748);
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

.product-card .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--papaya, #e67e22);
  margin-bottom: 1rem;
}

/* Button overrides for different product types */
.product-card .add-to-cart,
.product-card .btn {
  margin-top: auto;
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
}

/* Cart badge (optional) */
#view-cart-btn::after {
  content: attr(data-count);
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  background: var(--accent, #e67e22);
  color: #fff;
  border-radius: 50%;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  display: none; /* will be toggled via JS */
}

/* Status Badges for Admin Table */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #cce5ff; color: #004085; }

/* Compact Glowing "Shop All Options" Button */
.btn-glowing {
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 30px;
  background: var(--grad-papaya, linear-gradient(135deg, #e67e22, #f39c12));
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(230, 126, 34, 0.4);
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: glowing-pulse 2.2s infinite ease-in-out;
}

.btn-glowing:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(230, 126, 34, 0.75);
  color: #ffffff !important;
}

/* Flipkart Style "Go to Bag" Button State */
.add-to-cart.in-cart,
.btn.in-cart {
  background: #27ae60 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(39, 174, 96, 0.35) !important;
  border-color: #27ae60 !important;
}

.add-to-cart.in-cart:hover,
.btn.in-cart:hover {
  background: #219150 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5) !important;
}

/* Flipkart-Style Toast Notification */
.toast-notification {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2d3748;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 0.95rem;
  font-weight: 600;
  animation: slideInToast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-notification a {
  background: var(--papaya, #e67e22);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s ease;
}

.toast-notification a:hover {
  background: #d35400;
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Amazon / Flipkart Style Cart Layout */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .cart-layout {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item-card {
  background: var(--white, #ffffff);
  border: 1px solid var(--gray-border, #e5e7eb);
  border-radius: var(--radius-xl, 16px);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.04));
  transition: box-shadow 0.2s ease;
}

.cart-item-card:hover {
  box-shadow: var(--shadow-md, 0 6px 16px rgba(0,0,0,0.08));
}

.cart-item-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  background: rgba(230, 126, 34, 0.05);
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark, #2d3748);
  margin: 0;
}

.cart-item-unit-price {
  font-size: 0.9rem;
  color: var(--gray, #718096);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-border, #cbd5e0);
  border-radius: 20px;
  overflow: hidden;
  background: #f7fafc;
}

.qty-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-soft, #4a5568);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-value {
  padding: 0 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
}

.btn-remove-item {
  background: none;
  border: none;
  color: #e53e3e;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.btn-remove-item:hover {
  color: #c53030;
  text-decoration: underline;
}

.cart-item-subtotal {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--papaya, #e67e22);
  text-align: right;
  flex-shrink: 0;
}

/* Summary Card */
.cart-summary-card {
  background: var(--white, #ffffff);
  border: 1px solid var(--gray-border, #e5e7eb);
  border-radius: var(--radius-xl, 16px);
  padding: 24px;
  box-shadow: var(--shadow-md, 0 6px 16px rgba(0,0,0,0.06));
  position: sticky;
  top: 100px;
}

.summary-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--gray-border, #e2e8f0);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--dark-soft);
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  padding-top: 14px;
  border-top: 2px solid var(--gray-border, #e2e8f0);
  margin-top: 14px;
  margin-bottom: 22px;
}

.summary-row.total .total-price {
  color: var(--papaya, #e67e22);
}

.btn-checkout-now {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 30px;
}

.cart-security-badge {
  margin-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray, #718096);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Modal Confirmation Dialog for Item Removal */
.remove-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInBackdrop 0.25s ease forwards;
}

.remove-modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: scale(0.9);
  animation: popInModal 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.remove-modal-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.remove-modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark, #2d3748);
  margin-bottom: 8px;
}

.remove-modal-desc {
  font-size: 0.95rem;
  color: var(--gray, #718096);
  margin-bottom: 24px;
  line-height: 1.5;
}

.remove-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-modal-cancel {
  flex: 1;
  padding: 12px 20px;
  border-radius: 25px;
  background: #edf2f7;
  color: #4a5568;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-modal-cancel:hover {
  background: #e2e8f0;
}

.btn-modal-confirm {
  flex: 1;
  padding: 12px 20px;
  border-radius: 25px;
  background: #e53e3e;
  color: #ffffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-modal-confirm:hover {
  background: #c53030;
  transform: translateY(-2px);
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes popInModal {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Marketing Pricing & Animated Discount Badges (Amazon / Flipkart Style) */
.price-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.mrp-cut {
  font-size: 0.92rem;
  color: var(--gray, #a0aec0);
  text-decoration: line-through;
  font-weight: 500;
}

.offer-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--papaya, #e67e22);
}

.discount-badge-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3);
  animation: discountPulse 2.5s infinite ease-in-out;
}

.per-bar-note {
  font-size: 0.82rem;
  font-weight: 600;
  color: #27ae60;
  background: #e8f8f0;
  padding: 3px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 10px;
}

.card-top-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #27ae60, #2ea043);
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.product-card {
  position: relative;
}

@keyframes discountPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 3px 8px rgba(231, 76, 60, 0.3); }
  50%      { transform: scale(1.05); box-shadow: 0 5px 14px rgba(231, 76, 60, 0.6); }
}

/* Mobile 2-Column E-Commerce Grid (Flipkart / Amazon Style) */
@media (max-width: 767px) {
  .product-grid,
  .retail-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .product-card,
  .retail-card {
    padding: 10px 8px !important;
    border-radius: 12px !important;
  }

  .product-card img,
  .retail-card-img {
    width: 100% !important;
    height: 110px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    margin-bottom: 6px !important;
  }

  .product-card h3,
  .retail-card h3 {
    font-size: 0.85rem !important;
    min-height: 2.2rem !important;
    margin-bottom: 4px !important;
    line-height: 1.25 !important;
  }

  .retail-quantity {
    font-size: 0.72rem !important;
    margin-bottom: 6px !important;
  }

  .price-container {
    gap: 4px !important;
    margin: 4px 0 !important;
  }

  .mrp-cut {
    font-size: 0.78rem !important;
  }

  .offer-price {
    font-size: 1.05rem !important;
  }

  .discount-badge-pill {
    font-size: 0.65rem !important;
    padding: 2px 5px !important;
  }

  .per-bar-note {
    font-size: 0.68rem !important;
    padding: 2px 6px !important;
    margin-bottom: 6px !important;
  }

  .card-top-tag {
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
    top: 4px !important;
    left: 4px !important;
    border-radius: 8px !important;
  }

  .product-card .btn,
  .retail-card .btn,
  .add-to-cart {
    padding: 8px 4px !important;
    font-size: 0.8rem !important;
    border-radius: 20px !important;
    margin-top: auto !important;
  }

  .retail-features {
    display: none !important; /* Keep mobile cards clean, equal height, and e-commerce styled */
  }
}

/* Compact Shop Banner (E-Commerce Style) */
.shop-compact-header {
  padding: 95px 0 22px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  text-align: center;
  border-bottom: 1px solid #fed7aa;
}

.shop-compact-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--dark, #2d3748);
  margin-bottom: 6px;
}

.shop-compact-subtitle {
  font-size: 0.88rem;
  color: var(--dark-soft, #4a5568);
  font-weight: 600;
  margin: 0 auto;
  max-width: 700px;
  line-height: 1.4;
}

/* Header & Mobile Navigation Rules Across Pages */
@media (max-width: 767px) {
  /* On mobile, ensure .nav-cta (View Cart) is ALWAYS visible in top header on shop/cart pages */
  body:not(.home-page) .nav-cta {
    display: flex !important;
    margin-left: auto;
  }
  
  body:not(.home-page) .nav-cta .btn {
    padding: 7px 12px !important;
    font-size: 0.8rem !important;
    border-radius: 20px !important;
  }

  /* Hide hamburger menu button on shop, cart, checkout, order-success pages */
  body:not(.home-page) .mobile-toggle {
    display: none !important;
  }

  /* Center single remaining card on last row in 2-column mobile grid */
  .product-grid > .product-card:last-child:nth-child(odd),
  .product-grid > .retail-card:last-child:nth-child(odd),
  .product-grid > div:last-child:nth-child(odd),
  .retail-grid > .retail-card:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important;
    justify-self: center !important;
    width: calc(50% - 5px) !important;
    max-width: 100% !important;
  }
}

/* Premium Side-by-Side Section Headers */
.section-header-side {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(230, 126, 34, 0.15);
}

.section-header-title-box {
  text-align: left;
  flex: 1;
}

.section-header-title-box .section-label {
  display: inline-block;
  margin-bottom: 6px;
}

.section-header-title-box .section-title {
  text-align: left !important;
  margin: 0 !important;
  font-size: 1.85rem;
}

.section-header-desc {
  flex: 0 0 45%;
  max-width: 500px;
  font-size: 0.95rem;
  color: var(--dark-soft, #4a5568);
  line-height: 1.55;
  text-align: left;
  margin: 0;
  padding-left: 20px;
  border-left: 3px solid var(--papaya, #e67e22);
}

@media (max-width: 767px) {
  .section-header-side {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
  }

  .section-header-title-box .section-title {
    font-size: 1.4rem !important;
  }

  .section-header-desc {
    flex: 1 1 100%;
    max-width: 100%;
    padding-left: 12px;
    font-size: 0.86rem;
    line-height: 1.45;
  }
/* Professional 2-Column Checkout Layout */
.checkout-page {
  padding: 110px 0 70px;
  background: var(--cream-warm, #fffcf5);
}

.checkout-header-bar {
  text-align: center;
  margin-bottom: 35px;
}

.checkout-header-bar h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark, #2d3748);
  margin-bottom: 6px;
}

.checkout-header-bar p {
  font-size: 0.95rem;
  color: var(--dark-soft, #718096);
  margin: 0;
}

.checkout-2col-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .checkout-2col-layout {
    grid-template-columns: 1fr 400px;
    align-items: start;
  }
}

.checkout-shipping-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark, #2d3748);
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}

.modern-checkout-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modern-checkout-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modern-checkout-form label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #4a5568;
}

.modern-checkout-form input,
.modern-checkout-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #2d3748;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.modern-checkout-form input:focus,
.modern-checkout-form textarea:focus {
  outline: none;
  border-color: var(--papaya, #e67e22);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

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

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

@media (max-width: 600px) {
  .checkout-shipping-card {
    padding: 20px 16px;
    border-radius: 12px;
  }
  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}

.payment-method-container {
  background: #fdfaf6;
  border: 1.5px solid #fbd38d;
  border-radius: 12px;
  padding: 16px;
  margin-top: 6px;
}

.payment-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 8px;
}

.payment-radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.payment-radio-option input {
  margin-top: 3px;
  accent-color: var(--papaya, #e67e22);
  width: auto !important;
}

.payment-radio-option label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
  cursor: pointer;
}

.payment-radio-option label strong {
  color: #2d3748;
}

.payment-radio-option label span {
  color: #718096;
  font-size: 0.82rem;
}

.btn-place-order {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 30px;
  margin-top: 10px;
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.35);
  transition: all 0.3s ease;
}

.btn-place-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(230, 126, 34, 0.5);
}

.checkout-summary-sticky {
  position: sticky;
  top: 100px;
}

/* Compact Delivery Address Box */
.compact-address-box {
  background: #fff9f2;
  border: 1.5px solid #fed7aa;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.08);
}

.compact-addr-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compact-addr-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.compact-addr-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #c05621;
  background: #feebc8;
  padding: 2px 10px;
  border-radius: 12px;
}

.compact-addr-name {
  font-size: 1rem;
  font-weight: 800;
  color: #2d3748;
}

.compact-addr-text {
  font-size: 0.88rem;
  color: #4a5568;
  line-height: 1.4;
}

.compact-addr-phone {
  font-size: 0.82rem;
  color: #718096;
  font-weight: 600;
}

.btn-change-address {
  background: #ffffff;
  border: 1.5px solid var(--papaya, #e67e22);
  color: var(--papaya, #e67e22);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.btn-change-address:hover {
  background: var(--papaya, #e67e22);
  color: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 576px) {
  .compact-address-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }
  .btn-change-address {
    align-self: flex-end;
  }
}

/* Address Selector Modal Popup */
.address-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.address-modal-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 550px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-title-bar {
  padding: 20px 24px;
  background: #fdfaf6;
  border-bottom: 1px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-bar h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #2d3748;
  margin: 0 0 2px;
}

.modal-title-bar p {
  font-size: 0.82rem;
  color: #718096;
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #a0aec0;
  cursor: pointer;
  padding: 0;
}

.modal-close-btn:hover {
  color: #e74c3c;
}

.modal-addr-list {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-addr-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.modal-addr-card:hover {
  border-color: var(--papaya, #e67e22);
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.12);
}

.modal-addr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-addr-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: #c05621;
  background: #ffede0;
  padding: 2px 10px;
  border-radius: 10px;
}

.modal-addr-name {
  font-size: 1rem;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 4px;
}

.modal-addr-text {
  font-size: 0.85rem;
  color: #4a5568;
  line-height: 1.4;
  margin-bottom: 6px;
}

.modal-addr-phone {
  font-size: 0.82rem;
  color: #718096;
  font-weight: 600;
}

/* Flipkart 1:1 E-Commerce Theme Styles */
.flipkart-deliver-strip {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.deliver-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.deliver-label {
  font-size: 0.88rem;
  color: #212121;
}

.deliver-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #212121;
}

.fk-addr-pill {
  font-size: 0.7rem;
  font-weight: 800;
  color: #878787;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.deliver-subtext {
  font-size: 0.82rem;
  color: #878787;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

.btn-flipkart-change {
  background: #ffffff;
  border: 1.5px solid #2874f0;
  color: #2874f0;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-flipkart-change:hover {
  background: #2874f0;
  color: #ffffff;
}

.flipkart-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flipkart-item-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

/* Compact Product Item Card Sizing for Cart & Checkout Pages */
.fk-item-img,
.cart-item-img {
  width: 90px !important;
  height: 90px !important;
  max-width: 90px !important;
  max-height: 90px !important;
  min-width: 90px !important;
  min-height: 90px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  padding: 4px !important;
}

.fk-item-main {
  display: flex;
  gap: 16px;
  align-items: center;
}

.fk-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fk-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: #212121;
  margin: 0;
}

.fk-item-variant {
  font-size: 0.8rem;
  color: #878787;
}

.fk-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
}

.fk-rating-badge {
  background: #388e3c;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.fk-rating-count {
  font-size: 0.8rem;
  color: #878787;
}

.fk-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.fk-discount-tag {
  color: #388e3c;
  font-weight: 800;
  font-size: 0.9rem;
}

.fk-mrp-cut {
  color: #878787;
  text-decoration: line-through;
  font-size: 0.88rem;
}

.fk-offer-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #212121;
}

.fk-delivery-notice {
  font-size: 0.82rem;
  color: #212121;
  font-weight: 500;
  margin-top: 2px;
}

.fk-item-actions-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.fk-action-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #212121;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fk-action-btn:hover {
  color: #2874f0;
}

.flipkart-green-savings-banner {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  color: #2e7d32;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 14px;
  text-align: left;
}

/* Flipkart Bottom Sticky Bar (Mobile Only) */
.flipkart-bottom-sticky-bar {
  display: none;
}

@media (max-width: 767px) {
  .flipkart-bottom-sticky-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  }

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

  .fk-sticky-mrp {
    font-size: 0.78rem;
    color: #878787;
    text-decoration: line-through;
  }

  .fk-sticky-final {
    font-size: 1.25rem;
    font-weight: 800;
    color: #212121;
  }

  .btn-flipkart-place-order {
    background: #fb641b;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    padding: 12px 36px;
    border-radius: 4px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(251, 100, 27, 0.4);
  }
}

/* Flipkart 3-Step Checkout Progress Bar */
.flipkart-step-progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 32px;
  padding: 14px 24px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.step-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.step-completed .step-icon {
  background: #ffffff;
  border: 2px solid #2874f0;
  color: #2874f0;
}

.step-active .step-icon {
  background: #2874f0;
  color: #ffffff;
}

.step-upcoming .step-icon {
  background: #ffffff;
  border: 2px solid #cbd5e0;
  color: #a0aec0;
}

.step-label {
  font-size: 0.82rem;
  font-weight: 700;
}

.step-completed .step-label {
  color: #718096;
}

.step-active .step-label {
  color: #2874f0;
  font-weight: 800;
}

.step-upcoming .step-label {
  color: #a0aec0;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 12px;
  margin-top: -18px;
}

.step-line-active {
  background: #2874f0;
}

/* Flipkart 1:1 Deliver To Strip & Bottom Sheet Address Modal (Matches User Screenshots) *//* Mobile Responsive Flipkart Deliver Box */
.checkout-deliver-box {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 16px !important;
  padding: 16px 18px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  margin-bottom: 20px !important;
  cursor: pointer !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.deliver-box-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.deliver-left-content {
  flex: 1 !important;
  min-width: 0 !important; /* Prevents flex children from pushing button off screen */
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  overflow: hidden !important;
}

.deliver-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

.deliver-label {
  font-size: 0.88rem !important;
  color: #212121 !important;
  flex-shrink: 0 !important;
}

.deliver-name {
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.fk-addr-pill {
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  color: #64748b !important;
  background: #f1f5f9 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  flex-shrink: 0 !important;
}

.deliver-subtext {
  font-size: 0.82rem !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}

.btn-flipkart-change {
  flex-shrink: 0 !important;
  background: #ffffff !important;
  border: 1.5px solid #2563eb !important;
  color: #2563eb !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}

.btn-flipkart-change:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* Flipkart Address Selector Modal (Matches Screenshots 100% on Laptop & Mobile) */
.fk-address-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  animation: fkFadeIn 0.2s ease-out !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

@media (max-width: 600px) {
  .fk-address-modal-backdrop {
    align-items: flex-end !important;
    padding: 0 !important;
  }
}

.fk-address-bottom-sheet {
  background: #ffffff !important;
  width: 100% !important;
  max-width: 520px !important;
  border-radius: 20px !important;
  padding: 20px 24px 28px !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  animation: fkPopUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  position: relative !important;
  z-index: 10000000 !important;
}

@media (max-width: 600px) {
  .fk-address-bottom-sheet {
    border-radius: 24px 24px 0 0 !important;
    max-height: 90vh !important;
    padding: 16px 20px 24px !important;
    animation: fkSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
}

@keyframes fkFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fkFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fkPopUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fkSlideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fkSlideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin: 0 auto 12px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.sheet-header h3 {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.sheet-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #374151;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fk-add-new-box {
  background: #f0f5ff;
  border: 1px solid #e0ebff;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fk-add-new-box:hover {
  background: #e5efff;
  border-color: #cce0ff;
}

.fk-add-new-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a73e8;
  font-weight: 700;
  font-size: 0.95rem;
}

.fk-arrow-icon {
  color: #1a73e8;
}

.fk-saved-addresses-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 12px;
}

.fk-saved-addr-card {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fk-saved-addr-card:hover {
  border-color: #1a73e8;
}

.fk-saved-addr-card.selected {
  border-color: #e5e7eb;
}

.fk-addr-home-icon-box {
  width: 46px;
  height: 46px;
  background: #e8f2fe;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fk-addr-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fk-addr-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fk-addr-card-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

.fk-selected-pill {
  background: #e8f2fe;
  color: #1976d2;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.fk-addr-card-text {
  font-size: 0.84rem;
  color: #4b5563;
  line-height: 1.45;
}

.fk-addr-card-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #111827;
  margin-top: 4px;
}

.fk-addr-three-dots {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fk-addr-three-dots:hover {
  color: #4b5563;
  background: #f3f4f6;
}

/* E-Commerce Admin Dashboard Styling */

.admin-dashboard {
  padding: 115px 0 60px !important;
  background: #f8fafc;
  min-height: 88vh;
}

.admin-header-box {
  margin-bottom: 28px;
}

.admin-header-box h1 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.admin-header-box p {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
}

/* Dashboard Stat Cards Grid */
.dashboard-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 36px;
}

.dashboard-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.card-blue .card-icon-box { background: #eff6ff; color: #2563eb; }
.card-amber .card-icon-box { background: #fffbeb; color: #d97706; }
.card-green .card-icon-box { background: #f0fdf4; color: #16a34a; }
.card-orange .card-icon-box { background: #fff7ed; color: #ea580c; }

.card-info {
  display: flex;
  flex-direction: column;
}

.card-label {
  font-size: 0.83rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.card-info h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

/* Admin Table Sections */
.admin-section {
  margin-top: 36px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px;
}

.admin-section-header p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

.admin-badge-count {
  background: #e2e8f0;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Table Container & Table Styling */
.admin-table-container {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
  margin-top: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

.admin-table thead {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
}

.admin-table th {
  padding: 14px 18px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.admin-table tbody tr:last-child {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

.admin-table td {
  padding: 16px 18px;
  font-size: 0.92rem;
  color: #334155;
  vertical-align: middle;
}

.admin-table td strong {
  color: #0f172a;
}

.admin-table td a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.admin-table td a:hover {
  text-decoration: underline;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-info    { background: #dbeafe; color: #1e40af; }
.badge-danger  { background: #fee2e2; color: #b91c1c; }

/* Admin Security Access Gate Modal */
.admin-auth-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-auth-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  border: 1px solid #e2e8f0;
  animation: authPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authPopIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-icon-badge {
  width: 60px;
  height: 60px;
  background: #fff7ed;
  border: 2px solid #fed7aa;
  color: #ea580c;
  font-size: 1.8rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.admin-auth-card h2 {
  font-family: var(--font-display, sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.admin-auth-card p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 22px;
}

.admin-auth-card input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.2em;
  color: #0f172a;
  background: #f8fafc;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.admin-auth-card input:focus {
  outline: none;
  border-color: #e67e22;
  background: #ffffff;
}

.btn-auth-submit {
  width: 100%;
  padding: 13px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 25px;
  margin-top: 8px;
}

.auth-error {
  color: #e11d48;
  font-size: 0.82rem;
  font-weight: 700;
  background: #ffe4e6;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Main Admin Layout Container */
.admin-dashboard-container {
  padding: 140px 0 80px !important;
  background: #f1f5f9 !important;
  min-height: 90vh !important;
}

.admin-top-bar {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

.admin-tag-pill {
  display: inline-block !important;
  font-size: 0.75rem !important;
  font-weight: 800 !important;
  color: #c2410c !important;
  background: #ffedd5 !important;
  padding: 4px 12px !important;
  border-radius: 12px !important;
  margin-bottom: 8px !important;
}

.admin-main-title,
.admin-top-bar h1 {
  font-family: var(--font-display, sans-serif) !important;
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 6px 0 !important;
}

.admin-main-sub,
.admin-top-bar p {
  font-size: 0.92rem !important;
  color: #64748b !important;
  margin: 0 !important;
}

.btn-lock-session {
  background: #ffffff !important;
  border: 2px solid #cbd5e1 !important;
  color: #475569 !important;
  font-family: inherit !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
}

.btn-lock-session:hover {
  background: #e11d48 !important;
  color: #ffffff !important;
  border-color: #e11d48 !important;
}

/* Boxed Container Card */
.admin-box-card {
  background: #ffffff !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 20px !important;
  padding: 26px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  margin-bottom: 28px !important;
}

.admin-header-card {
  border-top: 4px solid var(--papaya, #e67e22) !important;
}

.mb-6 {
  margin-bottom: 28px !important;
}

.box-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
  padding-bottom: 14px !important;
  border-bottom: 2px solid #f1f5f9 !important;
}

.box-card-header h3 {
  font-family: var(--font-display, sans-serif) !important;
  font-size: 1.28rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 2px 0 !important;
}

.box-card-header p {
  font-size: 0.86rem !important;
  color: #64748b !important;
  margin: 0 !important;
}

.btn-box-action {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #1e293b !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
}

.btn-box-action:hover {
  background: #e2e8f0 !important;
}

/* Stat Cards inside Box */
.dashboard-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
  margin-top: 10px !important;
}

@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
}

.stat-card {
  background: #ffffff !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  box-sizing: border-box !important;
}

.stat-icon {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.5rem !important;
  flex-shrink: 0 !important;
}

.stat-blue .stat-icon { background: #eff6ff !important; border: 1px solid #bfdbfe !important; }
.stat-amber .stat-icon { background: #fffbeb !important; border: 1px solid #fde68a !important; }
.stat-green .stat-icon { background: #f0fdf4 !important; border: 1px solid #bbf7d0 !important; }
.stat-purple .stat-icon { background: #faf5ff !important; border: 1px solid #e9d5ff !important; }

.stat-content {
  display: flex !important;
  flex-direction: column !important;
}

.stat-title {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.stat-content h2 {
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 2px 0 !important;
  line-height: 1.15 !important;
}

.stat-sub {
  font-size: 0.76rem !important;
  font-weight: 700 !important;
}

.font-green { color: #16a34a !important; }
.font-amber { color: #d97706 !important; }
.font-purple { color: #9333ea !important; }

/* Table Wrapper */
.admin-table-wrapper {
  overflow-x: auto !important;
  border-radius: 14px !important;
  border: 2px solid #e2e8f0 !important;
  background: #ffffff !important;
}

.admin-table {
  width: 100% !important;
  border-collapse: collapse !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.admin-table thead {
  background: #f8fafc !important;
  border-bottom: 2px solid #cbd5e1 !important;
}

.admin-table th {
  padding: 16px 20px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  color: #334155 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  background: #f8fafc !important;
}

.admin-table tbody tr {
  border-bottom: 1px solid #e2e8f0 !important;
}

.admin-table tbody tr:last-child {
  border-bottom: none !important;
}

.admin-table tbody tr:hover {
  background: #f8fafc !important;
}

.admin-table td {
  padding: 18px 20px !important;
  font-size: 0.94rem !important;
  color: #334155 !important;
  vertical-align: middle !important;
}

.admin-table td strong {
  color: #0f172a !important;
}

.admin-table td a {
  color: #2563eb !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.admin-table td a:hover {
  text-decoration: underline !important;
}

/* Stock Progress Bar */
.stock-progress-bar {
  width: 110px !important;
  height: 8px !important;
  background: #e2e8f0 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
}

.progress-fill {
  height: 100% !important;
  border-radius: 4px !important;
}

.fill-green { background: #22c55e !important; }
.fill-amber { background: #f59e0b !important; }
.fill-red { background: #ef4444 !important; }

/* Settings Cards Grid */
.settings-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 16px !important;
}

.setting-box {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

.setting-box-title {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.setting-icon {
  font-size: 1.5rem !important;
}

.setting-box-title strong {
  display: block !important;
  font-size: 0.92rem !important;
  color: #0f172a !important;
}


/* Mobile Optimization for Checkout & Address Selector */
@media (max-width: 600px) {
  .checkout-page {
    padding: 90px 10px 40px !important;
  }

  .checkout-deliver-box {
    padding: 14px 14px !important;
    border-radius: 14px !important;
  }

  .deliver-name {
    font-size: 0.86rem !important;
  }

  .deliver-label {
    font-size: 0.82rem !important;
  }

  .deliver-subtext {
    font-size: 0.78rem !important;
  }

  .btn-flipkart-change {
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
  }

  .checkout-summary-box {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .fk-address-bottom-sheet {
    max-height: 90vh !important;
    padding: 12px 16px 20px !important;
    border-radius: 20px 20px 0 0 !important;
  }
}

/* Admin Auth Gate Modal Overlay - 100% Identical on Laptop, Desktop & Mobile */
.admin-auth-gate {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.admin-auth-card {
  background: #ffffff !important;
  border-radius: 24px !important;
  padding: 36px 30px !important;
  max-width: 440px !important;
  width: 100% !important;
  text-align: center !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
  box-sizing: border-box !important;
  position: relative !important;
  animation: fkPopUp 0.3s ease-out !important;
}

.auth-icon-badge {
  width: 64px !important;
  height: 64px !important;
  background: #fef3c7 !important;
  border: 1px solid #fde68a !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.8rem !important;
  margin: 0 auto 16px !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2) !important;
}

.admin-auth-card h2 {
  font-family: inherit !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 10px !important;
}

.admin-auth-card p {
  font-size: 0.9rem !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin: 0 0 22px !important;
}

#admin-pin-input {
  width: 100% !important;
  padding: 14px 18px !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 12px !important;
  font-size: 1.1rem !important;
  text-align: center !important;
  letter-spacing: 0.15em !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: border-color 0.2s ease !important;
}

#admin-pin-input:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15) !important;
}

.auth-error {
  color: #ef4444 !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  margin-bottom: 14px !important;
}

.btn-auth-submit {
  width: 100% !important;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 14px !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
  transition: transform 0.2s ease !important;
}

.btn-auth-submit:hover {
  transform: translateY(-2px) !important;
}


