/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f1f3f6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header Styles - Mobile First */
.header {
  background: #2874f0;
  color: white;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo h1 {
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
}

.logo h1 a {
  color: white;
  text-decoration: none;
}

.logo span {
  font-size: 10px;
  color: #ffe500;
  display: block;
}

.logo span em {
  color: white;
}

.search-bar {
  flex: 1;
  min-width: 200px;
  display: flex;
  background: white;
  border-radius: 2px;
  overflow: hidden;
  order: 3;
  width: 100%;
}

.search-bar input {
  flex: 1;
  padding: 10px 12px;
  border: none;
  outline: none;
  font-size: 14px;
}

.search-bar button {
  background: white;
  border: none;
  padding: 10px 12px;
  cursor: pointer;
  color: #2874f0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-btn {
  background: white;
  color: #2874f0;
  border: none;
  padding: 6px 16px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 500;
  font-size: 12px;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: #f0f0f0;
}

.cart {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.cart:hover {
  opacity: 0.8;
}

/* Navigation Bar - Mobile First */
.nav-bar {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
  /* Hide horizontal scrollbar on mobile */
  overflow-x: hidden;
}

/* Hide vertical scrollbar on mobile for products grid */
@media (max-width: 768px) {
  .products-grid {
    overflow-y: visible !important;
    max-height: none !important;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  min-width: max-content;
}

.nav-links li {
  flex: 1;
  min-width: 80px;
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  text-decoration: none;
  color: #333;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #2874f0;
  border-bottom-color: #2874f0;
  background: #f8f9fa;
}

.nav-links i {
  font-size: 14px;
}

/* Hero Banner - Mobile First */
.hero-banner {
  background: none;
  color: #333;
  padding: 0;
  text-align: center;
  position: relative;
  max-height: 180px; /* reduce height */
  overflow: hidden;
}

.hero-banner img {
  max-height: 180px; /* reduce banner image height */
  width: 100%;
  object-fit: cover;
}

.timer-container {
  padding: 2px 4px !important;
  max-width: 200px !important;
  margin: 0 auto 6px auto !important;
}

.timer-left {
  font-size: 16px !important;
}

.sale-live-btn {
  padding: 4px 12px !important;
  font-size: 12px !important;
}

.timer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 2px 6px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  max-width: 240px;
  margin: 0 auto 8px auto;
}

.timer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2874f0;
  font-weight: 700;
  font-size: 18px;
}

.clock-icon {
  font-size: 24px;
}

.countdown-timer {
  font-family: 'Roboto Mono', monospace;
}

.sale-live-btn {
  background: #ff3b3b;
  color: white;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255, 59, 59, 0.6);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sale-live-btn:hover {
  background-color: #e02e2e;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .hero-banner {
    padding: 20px 0 10px 0;
  }

  .timer-container {
    max-width: 100%;
    padding: 8px;
  }

  .sale-live-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

.banner-container {
  position: relative;
}

.banner-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.banner-overlay {
  position: absolute;
  top: 10%;
  left: 5%;
  right: 5%;
  color: white;
  text-align: left;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.big-billion-badge {
  background: #ffd700;
  color: #333;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  width: fit-content;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
  text-transform: uppercase;
}

.sale-live-text {
  font-size: 28px;
  font-weight: 700;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  margin: 0;
}

.shop-now-btn {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.6);
}

.shop-now-btn:hover {
  background: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.8);
}

.banner-bottom-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: white;
  margin-top: 12px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.bank-logo img {
  height: 24px;
  object-fit: contain;
}

.discount-text {
  flex: 1;
  font-weight: 600;
}

.powered-by {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Deals and Timer Section */
.deals-timer-container {
  margin-top: 20px;
  padding: 0 8px;
}

.deals-title {
  color: #2874f0;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: left;
}

.timer-sale-live {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.timer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2874f0;
  font-weight: 700;
  font-size: 18px;
}

.clock-icon {
  font-size: 24px;
}

.countdown-timer {
  font-family: 'Roboto Mono', monospace;
}

.sale-live-label {
  background: #ff3b3b;
  color: white;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255, 59, 59, 0.6);
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .banner-overlay {
    top: 8%;
    left: 5%;
    right: 5%;
  }

  .sale-live-text {
    font-size: 22px;
  }

  .shop-now-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .deals-title {
    font-size: 18px;
  }

  .timer-sale-live {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sale-live-label {
    width: 100%;
    text-align: center;
  }
}

/* Main Content */
.main-content {
  padding: 24px 0;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
  color: #333;
}

/* Products Grid - Mobile First */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 32px;
  padding: 0 8px;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  height: 120px;
  overflow: hidden;
  background: #f8f9fa;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.discount-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #388e3c;
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.product-info {
  padding: 8px;
}

.product-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.rating-badge {
  display: flex;
  align-items: center;
  background-color: #4caf50;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  gap: 4px;
}
.rating-value {
  font-size: 12px;
}
.rating-badge i {
  font-size: 12px;
  color: white;
}
.rating-count {
  font-size: 11px;
  color: #666;
  font-weight: 500;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.rating-badge {
  display: flex;
  align-items: center;
  background-color: #4caf50;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  gap: 4px;
}

.rating-value {
  font-size: 12px;
}

.rating-badge i {
  font-size: 12px;
  color: white;
}

.rating-count {
  font-size: 11px;
  color: #666;
  font-weight: 500;
}

.product-price {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.current-price {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.original-price {
  font-size: 11px;
  color: #999;
  text-decoration: line-through;
}

.assured-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

.assured-badge img {
  width: 40px;
  height: 14px;
  object-fit: contain;
}

.delivery-info {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: #388e3c;
  font-weight: 600;
}

.delivery-info i {
  font-size: 10px;
}

.no-products {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 16px;
}

/* Stock indicator */
.stock-indicator {
  background: #fff3e0;
  border: 1px solid #ffcc02;
  border-radius: 6px;
  padding: 8px 12px;
  margin: 12px 0;
  text-align: center;
}

.stock-text {
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.stock-number {
  color: #d32f2f;
  font-weight: 700;
}

/* Order popularity indicator */
.order-popularity {
  background: #e8f5e8;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.popularity-icon {
  width: 20px;
  height: 20px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

.popularity-text {
  font-size: 13px;
  color: #333;
}

.popularity-number {
  color: #d32f2f;
  font-weight: 700;
}

/* Offer timer */
.offer-timer {
  background: #fff3e0;
  border: 1px solid #ffcc02;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 12px 0;
  text-align: center;
}

.timer-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.timer-display {
  font-size: 16px;
  font-weight: 700;
  color: #ff5722;
}

/* Product Details Page - Mobile First */
.breadcrumb {
  background: white;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 12px;
}

.breadcrumb a {
  color: #2874f0;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.product-details {
  padding: 16px 0;
}

.product-layout {
  display: block;
  margin-bottom: 24px;
}

.product-images {
  margin-bottom: 16px;
}

.main-image {
  margin-bottom: 12px;
}

.main-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.image-thumbnails {
  display: flex;
  gap: 8px;
  justify-content: center;
  overflow-x: auto;
  padding: 0 4px;
}

.thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #2874f0;
}

.product-info h1 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  line-height: 1.3;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.price-section {
  margin-bottom: 16px;
}

.current-price {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-right: 8px;
}

.original-price {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
  margin-right: 8px;
}

.discount {
  color: #388e3c;
  font-weight: 600;
  font-size: 14px;
}

.offers {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.offers h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

.offers ul {
  list-style: none;
}

.offers li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.offers i {
  color: #388e3c;
  margin-top: 2px;
  flex-shrink: 0;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.add-to-cart-btn,
.buy-now-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.add-to-cart-btn {
  background: #ff9f00;
  color: white;
}

.add-to-cart-btn:hover {
  background: #e68900;
}

.buy-now-btn {
  background: #fb641b;
  color: white;
}

.buy-now-btn:hover {
  background: #e55a15;
}

.delivery-info {
  border-top: 1px solid #e0e0e0;
  padding-top: 16px;
}

.delivery-info h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

.delivery-option {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  flex-wrap: wrap;
}

.change-location {
  color: #2874f0;
  text-decoration: none;
  font-weight: 500;
}

.delivery-details p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #666;
}

.delivery-details i {
  color: #388e3c;
  flex-shrink: 0;
}

/* Product Description Tabs - Mobile First */
.product-description {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.description-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  overflow-x: auto;
}

.tab-btn {
  flex: 1;
  min-width: 100px;
  padding: 12px 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tab-btn.active,
.tab-btn:hover {
  color: #2874f0;
  border-bottom-color: #2874f0;
  background: #f8f9fa;
}

.tab-content {
  padding: 16px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #333;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.specs-table td {
  padding: 8px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

.specs-table td:first-child {
  font-weight: 600;
  color: #666;
  width: 35%;
}

.reviews-summary {
  margin-bottom: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
}

.rating-overview {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.avg-rating {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.review-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 0;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.reviewer-info strong {
  font-size: 14px;
}

/* Footer - Mobile First */
.footer {
  background: #172337;
  color: white;
  padding: 32px 0 16px;
  margin-top: 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.footer-section h3 {
  font-size: 14px;
  margin-bottom: 12px;
  color: #fff;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 6px;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #2874f0;
}

.footer-section i {
  margin-right: 6px;
}

/* Address Page Styles */
.address-page {
  padding: 16px 0;
  min-height: 60vh;
}

.checkout-layout {
  display: block;
}

.order-summary {
  background: white;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.order-summary h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}

.order-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.order-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.item-details {
  flex: 1;
}

.item-details h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
  line-height: 1.3;
}

.item-price {
  margin-bottom: 4px;
}

.item-price .current-price {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-right: 6px;
}

.item-price .original-price {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}

.quantity {
  font-size: 12px;
  color: #666;
}

.price-breakdown {
  border-top: 1px solid #e0e0e0;
  padding-top: 12px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.price-row.total {
  font-weight: 700;
  font-size: 16px;
  border-top: 1px solid #e0e0e0;
  padding-top: 8px;
  margin-top: 8px;
}

.free {
  color: #388e3c;
  font-weight: 600;
}

.address-form {
  background: white;
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.address-form h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: #333;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2874f0;
  box-shadow: 0 0 0 2px rgba(40, 116, 240, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.address-type {
  margin-bottom: 20px;
}

.address-type > label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.radio-group {
  display: flex;
  gap: 16px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.radio-label:hover {
  border-color: #2874f0;
  background: #f8f9fa;
}

.radio-label input[type='radio'] {
  display: none;
}

.radio-custom {
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
}

.radio-label input[type='radio']:checked + .radio-custom {
  border-color: #2874f0;
  background: #2874f0;
}

.radio-label input[type='radio']:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.radio-label input[type='radio']:checked ~ * {
  color: #2874f0;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.back-btn,
.mobile-buy-now-btn,
.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 12px 16px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-top: 1px solid #e0e0e0;
}

.action-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mobile-add-to-cart-btn,
.mobile-buy-now-btn,
.mobile-continue-btn,
.mobile-proceed-pay-btn {
  flex: 1;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-add-to-cart-btn {
  background: #f8f9fa;
  color: #333;
  border: 2px solid #ddd;
  flex: 0.8;
}

.mobile-add-to-cart-btn:hover {
  background: #e9ecef;
  border-color: #bbb;
}

.mobile-buy-now-btn {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
  flex: 1.2;
}

.mobile-buy-now-btn:hover {
  background: linear-gradient(135deg, #f57c00, #ef6c00);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

.mobile-continue-btn,
.mobile-proceed-pay-btn {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.mobile-continue-btn:hover,
.mobile-proceed-pay-btn:hover {
  background: linear-gradient(135deg, #f57c00, #ef6c00);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

.mobile-back-btn,
.mobile-continue-btn,
.mobile-proceed-pay-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.back-btn {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
}

.back-btn:hover {
  background: #e9ecef;
}

.mobile-buy-now-btn,
.mobile-continue-btn,
.mobile-proceed-pay-btn {
  background: #fb641b;
  color: white;
}

.mobile-buy-now-btn:hover,
.mobile-continue-btn:hover,
.mobile-proceed-pay-btn:hover {
  background: #e55a15;
}

.mobile-back-btn {
  background: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
  flex: 0.7;
}

.mobile-back-btn:hover {
  background: #e9ecef;
}

.mobile-price-display {
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  min-width: 100px;
  text-align: center;
}

/* Payment Page Styles */
.payment-page {
  padding: 16px 0;
  min-height: 70vh;
  background: #f1f3f6;
}

.payment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.payment-header .back-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #333;
  cursor: pointer;
  padding: 8px;
}

.payment-title {
  flex: 1;
  margin-left: 16px;
}

.payment-title .step-info {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.payment-title h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.secure-badge i {
  color: #388e3c;
}

.payment-layout {
  display: block;
  gap: 16px;
}

.payment-methods {
  background: white;
  border-radius: 6px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.payment-section {
  padding: 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.payment-icon {
  width: 24px;
  height: 24px;
}

.payment-options {
  background: #f8f9fa;
  border-radius: 6px;
  overflow: hidden;
}

.payment-option {
  border-bottom: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.payment-option:last-child {
  border-bottom: none;
}

.payment-option.active {
  background: #e3f2fd;
  border-color: #2196f3;
}

.payment-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.payment-label {
  display: block;
  padding: 16px;
  cursor: pointer;
  margin: 0;
}

.payment-label input[type='radio'] {
  margin-right: 12px;
  width: 18px;
  height: 18px;
}

.option-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-info {
  flex: 1;
}

.option-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.option-main .price {
  color: #333;
}

.option-main .separator {
  color: #999;
}

.option-main .method-name {
  color: #333;
}

.option-offer {
  font-size: 13px;
  font-weight: 500;
  color: #875bb7;
}

.option-offer.gpay-offer {
  color: #34a853;
}

.option-offer.paytm-offer {
  color: #02b9ef;
}

.option-offer.cod-offer {
  color: #ff4700;
}

.method-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.delivery-banner {
  background: linear-gradient(90deg, #f5f5f5, #ffffff);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.delivery-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.delivery-icon {
  color: #388e3c;
  font-size: 20px;
}

.delivery-text {
  flex: 1;
}

.delivery-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 4px;
}

.mobile-buy-now-btn span,
.mobile-back-btn span,
.mobile-continue-btn span,
.mobile-proceed-pay-btn span {
  color: #388e3c;
  font-weight: 600;
}

.delivery-charge {
  text-decoration: line-through;
  color: #999;
  font-size: 12px;
}

.delivery-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #666;
}

.delivery-date {
  font-weight: 600;
  color: #333;
}

.cashback-offer {
  background: #e7f9ed;
  border-radius: 8px;
  padding: 12px;
  margin-top: 16px;
}

.cashback-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cashback-header i {
  color: #388e3c;
  font-size: 18px;
}

.cashback-header p {
  font-size: 16px;
  font-weight: 600;
  color: #388e3c;
  margin: 0;
}

.cashback-body {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

.cashback-body span {
  font-weight: 600;
  color: #388e3c;
}

.security-info {
  text-align: center;
  padding: 16px;
}

.security-image {
  max-width: 100%;
  height: auto;
  opacity: 0.8;
}

.payment-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.footer-price {
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.proceed-pay-btn {
  flex: 1;
  background: #ffc107;
  color: #000;
  border: none;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.proceed-pay-btn:hover {
  background: #ffb300;
}

.proceed-pay-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Add bottom margin to main content when payment footer is present */
.payment-page .container {
  margin-bottom: 80px;
}

/* Success Page Styles */
.success-page {
  padding: 24px 0;
  min-height: 80vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.success-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Success Animation */
.success-animation {
  margin-bottom: 32px;
}

.checkmark-circle {
  width: 80px;
  height: 80px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transform: scale(0);
  transition: transform 0.5s ease;
  box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.checkmark-circle.animate {
  transform: scale(1);
}

.checkmark {
  color: white;
  font-size: 32px;
  animation: checkmarkPop 0.3s ease 0.5s both;
}

@keyframes checkmarkPop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Success Message */
.success-message {
  color: white;
  margin-bottom: 32px;
}

.success-message h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.success-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

/* Order Details Card */
.order-details-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.order-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.confirmed {
  background: #e8f5e8;
  color: #4caf50;
}

.order-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.order-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.order-summary {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row span:first-child {
  color: #666;
}

.summary-row span:last-child {
  font-weight: 600;
  color: #333;
}

/* Delivery Information Card */
.delivery-info-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.delivery-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.delivery-header i {
  color: #2874f0;
  font-size: 20px;
}

.delivery-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.delivery-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.delivery-step:last-child {
  margin-bottom: 0;
}

.delivery-step.active {
  opacity: 1;
}

.delivery-step.animate {
  animation: stepFadeIn 0.5s ease both;
}

@keyframes stepFadeIn {
  from {
    opacity: 0.5;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-icon {
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.delivery-step.active .step-icon {
  background: #4caf50;
  color: white;
}

.step-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px 0;
}

.step-info p {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* Cashback Information Card */
.cashback-info-card {
  background: linear-gradient(135deg, #4caf50, #45a049);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  color: white;
  text-align: center;
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.3);
}

.cashback-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.cashback-header i {
  font-size: 24px;
}

.cashback-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.cashback-amount {
  margin-bottom: 12px;
}

.cashback-amount .amount {
  font-size: 32px;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.cashback-amount .label {
  font-size: 16px;
  opacity: 0.9;
}

.cashback-content p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
  line-height: 1.4;
}

/* Action Buttons */
.success-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.track-order-btn,
.continue-shopping-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.track-order-btn {
  background: white;
  color: #2874f0;
  border: 2px solid #2874f0;
}

.track-order-btn:hover {
  background: #2874f0;
  color: white;
}

.continue-shopping-btn {
  background: #ff6b6b;
  color: white;
}

.continue-shopping-btn:hover {
  background: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

/* Receipt Section */
.receipt-section {
  margin-bottom: 32px;
}

.download-receipt-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
}

.download-receipt-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Show mobile action bar on mobile devices */
  .mobile-action-bar {
    display: flex !important;
  }

  /* Hide desktop action buttons on mobile */
  .product-actions {
    display: none !important;
  }

  .form-actions {
    display: none !important;
  }

  /* Keep payment footer visible on mobile */
  .payment-footer {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid #e0e0e0;
  }

  /* Style proceed pay button for mobile */
  .proceed-pay-btn {
    background: #fb641b !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 14px 0 !important;
    border-radius: 6px !important;
    width: 100% !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
    border: none !important;
  }

  .proceed-pay-btn:hover {
    background: #e55a15 !important;
  }

  /* Add bottom padding to main content to account for fixed action bar */
  .product-details,
  .address-page,
  .payment-page {
    padding-bottom: 80px;
  }

  /* Mobile specific button styling */
  .mobile-action-bar .action-buttons {
    width: 100%;
  }

  .mobile-add-to-cart-btn i,
  .mobile-buy-now-btn i,
  .mobile-continue-btn i,
  .mobile-proceed-pay-btn i {
    font-size: 16px;
  }

  .mobile-add-to-cart-btn span,
  .mobile-buy-now-btn span,
  .mobile-continue-btn span,
  .mobile-proceed-pay-btn span {
    font-weight: 700;
    letter-spacing: 0.8px;
  }

  /* Mobile specific enhancements */
  .stock-indicator,
  .order-popularity,
  .offer-timer {
    margin: 8px 0;
    font-size: 12px;
  }

  .stock-text,
  .popularity-text,
  .timer-text {
    font-size: 12px;
  }

  .timer-display {
    font-size: 14px;
  }

  .success-actions {
    flex-direction: column;
  }

  .success-message h1 {
    font-size: 24px;
  }

  .order-details-card,
  .delivery-info-card,
  .cashback-info-card {
    padding: 16px;
  }

  .order-item {
    flex-direction: column;
    text-align: center;
  }

  .order-item img {
    width: 60px;
    height: 60px;
    margin: 0 auto;
  }

  /* Updated button colors for mobile buy now, proceed pay, continue buttons */
  .mobile-buy-now-btn,
  .mobile-proceed-pay-btn,
  .mobile-continue-btn,
  .proceed-pay-btn {
    background-color: #f7c600 !important;
    color: black !important;
    box-shadow: none !important;
  }

  .mobile-buy-now-btn:hover,
  .mobile-proceed-pay-btn:hover,
  .mobile-continue-btn:hover,
  .proceed-pay-btn:hover {
    background-color: #d4af00 !important;
    color: black !important;
  }
}

/* Extra Small Mobile Styles */
@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .product-card {
    font-size: 11px;
  }

  .product-name {
    font-size: 11px;
  }

  .product-price .current-price {
    font-size: 14px;
  }

  .product-price .original-price {
    font-size: 10px;
  }

  .product-rating {
    font-size: 10px;
  }

  .rating-count {
    font-size: 9px;
  }

  .delivery-info {
    font-size: 9px;
  }

  .product-image {
    height: 110px;
  }
}

/* Tablet Styles */
@media (min-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header-content {
    flex-wrap: nowrap;
  }

  .search-bar {
    order: 0;
    width: auto;
    max-width: 400px;
  }

  .logo h1 {
    font-size: 24px;
  }

  .logo span {
    font-size: 11px;
    display: inline;
  }

  .nav-links {
    justify-content: center;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 14px;
    gap: 6px;
  }

  .nav-links i {
    font-size: 16px;
  }

  .banner-content h2 {
    font-size: 36px;
  }

  .banner-content p {
    font-size: 18px;
  }

  .section-title {
    font-size: 26px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }

  .product-image {
    height: 160px;
  }

  .product-name {
    font-size: 14px;
  }

  .product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .product-images {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
  }

  .main-image {
    flex: 1;
    margin-bottom: 0;
  }

  .main-image img {
    height: 350px;
  }

  .image-thumbnails {
    flex-direction: column;
    justify-content: flex-start;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }

  .product-info h1 {
    font-size: 22px;
  }

  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .hero-banner {
    padding: 60px 0;
  }

  .banner-content h2 {
    font-size: 48px;
  }

  .banner-content p {
    font-size: 20px;
  }

  .main-content {
    padding: 40px 0;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }

  .product-image {
    height: 180px;
  }

  .product-name {
    font-size: 15px;
  }

  .current-price {
    font-size: 18px;
  }

  .main-image img {
    height: 400px;
  }

  .product-info h1 {
    font-size: 24px;
  }

  .current-price {
    font-size: 28px;
  }

  .original-price {
    font-size: 18px;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
  }

  .product-image {
    height: 200px;
  }

  .product-name {
    font-size: 16px;
  }

  .checkout-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
  }

  .order-summary {
    margin-bottom: 0;
  }

  .payment-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
  }

  .payment-footer {
    position: relative;
    box-shadow: none;
    border-top: 1px solid #e0e0e0;
    margin-top: 24px;
  }

  .payment-page .container {
    margin-bottom: 0;
  }
}
