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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8fafa;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  background: white;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin-bottom: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e8e8;
  position: relative;
}

.header h1 {
  color: #1a1a1a;
  font-size: 2.5rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.header p {
  color: #6b7280;
  font-size: 1.1rem;
}

.cart-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.cart-icon:hover {
  background: #2d3748;
  transform: translateY(-1px);
}

.cart-count {
  background: #dc2626;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

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

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid #e8e8e8;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100%;
  height: 180px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  border-bottom: 1px solid #e8e8e8;
}

.avocado {
  background: linear-gradient(135deg, #a8e6cf 0%, #88d8a3 100%);
}
.rice {
  background: linear-gradient(135deg, #f7dc6f 0%, #f4d03f 100%);
}
.fish {
  background: linear-gradient(135deg, #85c1e9 0%, #5dade2 100%);
}
.tomato {
  background: linear-gradient(135deg, #f1948a 0%, #e74c3c 100%);
}
.banana {
  background: linear-gradient(135deg, #f9e79f 0%, #f4d03f 100%);
}
.chicken {
  background: linear-gradient(135deg, #f8c471 0%, #e67e22 100%);
}
.milk {
  background: linear-gradient(135deg, #ebf4f6 0%, #d5e8d4 100%);
}
.bread {
  background: linear-gradient(135deg, #d2b48c 0%, #cd853f 100%);
}
.pasta {
  background: linear-gradient(135deg, #f4e4bc 0%, #daa520 100%);
}

.product-info {
  padding: 24px;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.product-description {
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.price-ngn {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
}

.price-crypto {
  font-size: 0.8rem;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 8px;
  border-radius: 6px;
}

.buy-button {
  width: 100%;
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.buy-button:hover {
  background: #2d3748;
  transform: translateY(-1px);
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
}

.cart-items {
  padding: 24px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f3f4f6;
}

.cart-item-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.9rem;
  color: #6b7280;
}

.remove-item {
  background: #dc2626;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}

.cart-total {
  padding: 24px;
  border-top: 2px solid #e8e8e8;
  background: #f8f9fa;
}

.total-amount {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.checkout-button {
  width: 100%;
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkout-button:hover {
  background: #2d3748;
}

.checkout-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.checkout-page {
  display: none;
  max-width: 800px;
  margin: 0 auto;
}

.checkout-page.active {
  display: block;
}

.checkout-header {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e8e8;
}

.checkout-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.back-to-shop {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 0;
}

.order-summary {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e8e8;
}

.summary-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 600;
  color: #1a1a1a;
  padding-top: 16px;
  border-top: 2px solid #e8e8e8;
}

.payment-options {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e8e8;
}

.payment-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.payment-button {
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
  border: none;
}

.payment-regular {
  background: #6b7280;
  color: white;
}

.payment-regular:hover {
  background: #4b5563;
}

.payment-busha {
  background: #12a232;
  color: white;
}

.payment-busha:hover {
  background: #0f8a2a;
  transform: translateY(-1px);
}

.success-message {
  display: none;
  background: #10b981;
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.cart-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.cart-overlay.active {
  display: block;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .cart-icon {
    position: relative;
    top: 0;
    right: 0;
    margin-top: 20px;
  }
}

.success-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 3000;
  animation: fadeIn 0.3s ease;
}

.success-modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-modal {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: scaleIn 0.5s ease;
}

.success-icon svg {
  width: 48px;
  height: 48px;
  stroke: white;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.success-modal h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.success-modal p {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.order-details {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.order-details-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e8e8e8;
}

.order-details-row:last-child {
  border-bottom: none;
  font-weight: 600;
  color: #1a1a1a;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 2px solid #e8e8e8;
}

.order-details-row span:first-child {
  color: #6b7280;
}

.order-details-row span:last-child {
  color: #1a1a1a;
  font-weight: 500;
}

.success-modal-button {
  width: 100%;
  background: #10b981;
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.success-modal-button:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

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

@keyframes scaleIn {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .success-modal {
    padding: 32px 24px;
  }

  .success-modal h2 {
    font-size: 1.5rem;
  }

  .success-icon {
    width: 64px;
    height: 64px;
  }

  .success-icon svg {
    width: 36px;
    height: 36px;
  }
}
