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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

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

/* Header */
.header {
  background: white;
  color: #333;
  padding: 15px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo h1 {
  font-size: 22px;
  font-weight: bold;
  color: #26a69a;
}

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

.search-box {
  display: flex;
  gap: 5px;
}

.search-box input {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 250px;
  font-size: 14px;
}

.search-box button {
  padding: 10px 15px;
  background: #f5f5f5;
  border: none;
  color: #333;
  cursor: pointer;
  border-radius: 5px;
}

.search-box button:hover {
  background: #e0e0e0;
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  color: #333;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
}

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

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #26a69a;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #5a8a99 0%, #7b6b8e 100%);
  color: white;
  text-align: center;
  padding: 80px 20px;
  margin-bottom: 40px;
}

.hero-content h2 {
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: 600;
}

.hero-content p {
  font-size: 18px;
  opacity: 0.95;
}

/* Categories */
.categories-container {
  background: white;
  padding: 30px 0;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.categories {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.categories::-webkit-scrollbar {
  height: 8px;
}

.categories::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.categories::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.category-btn {
  padding: 10px 20px;
  border: 2px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 25px;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-size: 14px;
}

.category-btn:hover,
.category-btn.active {
  background: #26a69a;
  color: white;
  border-color: #26a69a;
}

/* Products Section */
.category-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
  text-align: center;
}

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

.view-all-btn {
  padding: 8px 20px;
  border: 2px solid #26a69a;
  background: white;
  color: #26a69a;
  cursor: pointer;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: #26a69a;
  color: white;
}

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

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  text-align: left;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-image {
  width: 100%;
  height: 250px;
  background: #e9ecef;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  line-height: 1.4;
  min-height: 40px;
}

.product-seller {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.product-description {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.4;
  display: none;
}

.product-price {
  font-size: 18px;
  color: #333;
  font-weight: 600;
  margin-bottom: 15px;
}

.product-footer {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.color-select,
.quantity-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px;
  background: #26a69a;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
  background: #1a8a7e;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  right: -400px;
  top: 0;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

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

.cart-header {
  background: #26a69a;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

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

.cart-item {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  border: 1px solid #eee;
}

.cart-item-header {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
}

.cart-item-price {
  color: #26a69a;
  font-weight: 600;
  font-size: 14px;
}

.cart-item-quantity {
  font-size: 12px;
  color: #666;
  margin-top: 3px;
}

.cart-item-remove {
  background: #ff6b6b;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #ddd;
}

.cart-total {
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1ebd59;
}

.btn-razorpay {
  background: #1957a0;
  color: white;
}

.btn-razorpay:hover {
  background: #0f3d7a;
}

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

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

/* Footer */
.footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #666;
}

.empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: #999;
}

/* Product Modal */
.product-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}

.product-modal.show {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  position: relative;
  background: white;
  margin: auto;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  z-index: 2001;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.product-detail-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-detail-info {
  padding: 20px 0;
}

.product-detail-info h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
}

.detail-seller {
  color: #999;
  font-size: 14px;
  margin-bottom: 15px;
}

.detail-price {
  font-size: 24px;
  font-weight: bold;
  color: #26a69a;
  margin-bottom: 20px;
}

.detail-specs {
  margin-bottom: 25px;
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.spec-item {
  padding: 8px 0;
  font-size: 14px;
}

.spec-item strong {
  color: #333;
}

.detail-description {
  margin-bottom: 25px;
}

.detail-description h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

.detail-description p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

.detail-actions {
  margin-top: 20px;
}

.btn-add-to-cart {
  width: 100%;
  padding: 12px;
  background: #26a69a;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-add-to-cart:hover {
  background: #1a8a7e;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .product-detail-info h1 {
    font-size: 22px;
  }
  
  .detail-price {
    font-size: 20px;
  }
}
