body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, #0b28cd 0%, #e8f2ff 100%);
}

header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: #c2afaf;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(102,126,234,0.10);
  padding: 24px 32px;
}

.header-content h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #342525;
  margin-right: 24px;
}

.header-left input,
.header-left select {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 15px;
  margin-right: 10px;
  background: #f8f9fa;
  color: #2c3e50;
  box-shadow: 0 2px 8px rgba(102,126,234,0.07);
  transition: box-shadow 0.2s;
}

.header-left input:focus,
.header-left select:focus {
  box-shadow: 0 4px 16px rgba(102,126,234,0.15);
  outline: none;
}

.header-right label {
  color: #000000;
  font-weight: 500;
  margin-right: 8px;
}

#priceValue {
  font-weight: bold;
  color: #FFC107;
}

#cart-icon {
  cursor: pointer;
  position: relative;
  font-size: 24px;
}

.card-item-count {
  background: red;
  color: #fff;
  font-size: 12px;
  border-radius: 50%;
  padding: 2px 6px;
  position: absolute;
  top: -8px;
  right: -10px;
  visibility: hidden;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  padding: 10px 0 40px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.product-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(102,126,234,0.08);
  border: 3px solid #030000;
  padding: 18px 14px 14px 14px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
}

.product-box:hover {
  box-shadow: 0 12px 32px rgba(102,126,234,0.15);
  transform: translateY(-4px) scale(1.02);
}

.img-box img {
  width: 70%;
  height: auto;
  border-radius: 8px;
}

.product-title {
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 8px 0;
  text-align: center;
  letter-spacing: 0.5px;
}

.product-details {
  font-size: 13px;
  color: #060000;
  margin-bottom: 8px;
}

.product-details span {
  display: block;
  text-align: center;
  font-size: 14px;
  margin: 4px 0;
}

.add-cart-btn {
  text-align: right;
  margin-top: 5px;
}

.add-cart {
  font-size: 20px;
  color: #333;
  cursor: pointer;
}

/* Product Popup Styles */
.product-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.product-popup {
  background: white;
  border-radius: 15px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  border-radius: 15px 15px 0 0;
}

.popup-header h2 {
  margin: 0;
  color: #2c3e50;
  font-size: 24px;
}

.close-popup {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s;
}

.close-popup:hover {
  background: #e9ecef;
}

.popup-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 25px;
}

.product-image-section {
  text-align: center;
}

.popup-product-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s ease;
}

.product-details-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-description h3,
.product-price-section h3,
.size-selection h3,
.color-selection h3,
.quantity-selection h3,
.product-reviews h3 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 18px;
}

.product-description p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.price-display {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 10px;
}

.total-price-display {
  font-size: 20px;
  font-weight: bold;
  color: #667eea;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
  padding: 12px 15px;
  border-radius: 8px;
  text-align: center;
  border: 2px solid #667eea;
  transition: all 0.3s ease, transform 0.2s ease, color 0.2s ease;
}

.total-price-display:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.size-options,
.color-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-option,
.color-option {
  padding: 8px 15px;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

.size-option:hover,
.color-option:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.size-option.selected,
.color-option.selected {
  border-color: #667eea;
  background: #667eea;
  color: white;
}

.color-option {
  min-width: 60px;
  text-align: center;
  position: relative;
}

.color-option::after {
  content: attr(data-color);
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quantity-controls button {
  width: 35px;
  height: 35px;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s;
}

.quantity-controls button:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

#popup-quantity {
  font-size: 18px;
  font-weight: bold;
  min-width: 30px;
  text-align: center;
  transition: transform 0.15s ease;
}

.add-to-cart-popup {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
  width: 100%;
}

.add-to-cart-popup:hover {
  transform: translateY(-2px);
}

.add-to-cart-popup:active {
  transform: translateY(0);
}

.product-reviews {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.reviews-container {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.review-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 10px;
}

.reviewer-name {
  font-weight: bold;
  color: #2c3e50;
}

.review-rating {
  color: #ffc107;
  font-size: 16px;
}

.review-date {
  color: #666;
  font-size: 12px;
}

.review-comment {
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.add-review-section {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.add-review-section h4 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rating-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-input label {
  font-weight: bold;
  color: #2c3e50;
}

.star-rating {
  display: flex;
  gap: 5px;
}

.star-rating span {
  font-size: 24px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.3s;
}

.star-rating span:hover,
.star-rating span.active {
  color: #ffc107;
}

#review-comment {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
}

#review-comment:focus {
  outline: none;
  border-color: #667eea;
}

.review-form button {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.review-form button:hover {
  background: #218838;
}

.add-to-cart-success {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1001;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0.75);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.product-box.animated {
  animation: fadeScaleIn 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .popup-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  
  .product-popup {
    margin: 10px;
    max-height: 95vh;
  }
  
  .size-options,
  .color-options {
    justify-content: center;
  }
  
  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Cart Styles */
.cart {
  position: fixed;
  right: -100%;
  top: 0;
  width: 350px;
  height: 100%;
  background: #ffffff;
  border-left: 1px solid #ccc;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  z-index: 999;
  border-radius: 0;
}

.cart.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  background: #000000;
  color: #ffffff;
  padding: 20px;
  border-radius: 8px 8px 0 0;
}

.cart-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

#cart-close {
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
}

.cart-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.cart-content:empty::before {
  content: "";
  display: block;
  width: 80px;
  height: 80px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23CCCCCC"><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12L8.1 13h7.45c.75 0 1.41-.41 1.75-1.03L21.7 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"/></svg>') no-repeat center;
  background-size: contain;
  margin-bottom: 15px;
}

.cart-content:empty::after {
  content: "Your cart is empty";
  color: #666666;
  font-size: 16px;
  text-align: center;
}

.cart-item {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
}

.cart-footer {
  border-top: 1px solid #ddd;
  padding: 20px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0 0 8px 8px;
}

.cart-footer div {
  font-weight: bold;
  color: #000000;
}

.total-price {
  font-weight: bold;
}

.btn-buy {
  padding: 12px 24px;
  background-color: #FFC107;
  color: #000000;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn-buy:hover {
  background-color: #FFB300;
}

.btn-buy:active {
  background-color: #FFA000;
}

/* No products found message styling */
.no-products-message {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: 20px;
}

.no-products-message i {
  font-size: 64px;
  margin-bottom: 20px;
  color: #ddd;
  display: block;
}

.no-products-message h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 24px;
}

.no-products-message p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}