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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

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

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

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Products Section */
.products-section {
  padding: 3rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e5e7eb;
  background-color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.filter-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.filter-btn.active {
  background-color: #2563eb;
  color: white;
  border-color: #2563eb;
}

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

.product-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

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

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

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

/* Added discount price styling */
.product-price-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.product-price-original {
  font-size: 1rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.discount-badge {
  background-color: #ef4444;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.color-indicator {
  display: inline-block;
  background-color: #dbeafe;
  color: #1e40af;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
  font-size: 1.125rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}


.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: #1f2937;
}

/* .modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.modal-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.modal-details {
  display: flex;
  flex-direction: column;
} */

.modal-body {
  display: flex;
  gap: 2rem;
}

.modal-image {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

.modal-details {
  flex: 1;
}








.modal-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Added modal discount price styling */
.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-price-original {
  font-size: 1.25rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.modal-price-discounted {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}

.modal-discount-badge {
  background-color: #ef4444;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
}

.modal-description {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.color-selector {
  margin-bottom: 1.5rem;
}

.color-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.color-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.color-option {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px white, 0 0 0 4px #2563eb;
}

.color-option-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  white-space: nowrap;
  color: #6b7280;
}

.quantity-selector {
  margin-bottom: 1.5rem;
}

.quantity-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #e5e7eb;
  background-color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 700;
  transition: all 0.3s;
}

.qty-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.qty-input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.add-to-cart-btn {
  width: 100%;
  padding: 1rem;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: auto;
}

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

/* Cart Page */
.cart-section,
.checkout-section,
.admin-section {
  padding: 3rem 0;
  min-height: calc(100vh - 200px);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.cart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

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

.cart-item-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cart-item-color {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 1rem;
}

.cart-item-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.remove-btn {
  padding: 0.5rem 1rem;
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.remove-btn:hover {
  background-color: #dc2626;
}

.cart-summary {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 700;
  padding-top: 1rem;
  border-top: 2px solid #e5e7eb;
  margin-top: 1rem;
}

.checkout-btn,
.continue-shopping-btn {
  width: 100%;
  padding: 1rem;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.checkout-btn:hover,
.continue-shopping-btn:hover {
  background-color: #1d4ed8;
}

.empty-cart {
  text-align: center;
  padding: 3rem;
}

.empty-cart p {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Checkout Page */
.checkout-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.checkout-form-container,
.order-summary-container {
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-summary-container {
  height: fit-content;
  position: sticky;
  top: 100px;
}

.form-title,
.summary-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #2563eb;
}

.payment-info {
  background-color: #f3f4f6;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.payment-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.payment-instructions {
  line-height: 1.8;
  color: #374151;
}

.screenshot-preview {
  margin-top: 1rem;
}

.submit-order-btn {
  width: 100%;
  padding: 1rem;
  background-color: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-order-btn:hover {
  background-color: #059669;
}

.order-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.order-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

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

.order-item-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.order-item-details {
  font-size: 0.875rem;
  color: #6b7280;
}

.order-item-price {
  font-weight: 700;
  color: #2563eb;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 700;
  padding-top: 1rem;
  border-top: 2px solid #e5e7eb;
}

.success-modal-content {
  text-align: center;
  padding: 3rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 1.5rem;
}

/* Admin Page */
.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
}

.tab-btn {
  padding: 1rem 2rem;
  background-color: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  transition: all 0.3s;
}

.tab-btn:hover {
  color: #2563eb;
}

.tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.orders-header,
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.filter-status select {
  padding: 0.5rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
}

.add-product-btn {
  padding: 0.75rem 1.5rem;
  background-color: #10b981;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-product-btn:hover {
  background-color: #059669;
}

.orders-list {
  display: grid;
  gap: 1rem;
}

.order-card {
  background-color: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.order-id {
  font-weight: 700;
  color: #1f2937;
}

.order-status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
}

.order-status.pending {
  background-color: #fef3c7;
  color: #92400e;
}

.order-status.confirmed {
  background-color: #dbeafe;
  color: #1e40af;
}

.order-status.shipped {
  background-color: #e0e7ff;
  color: #3730a3;
}

.order-status.delivered {
  background-color: #d1fae5;
  color: #065f46;
}

.order-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.order-total {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2563eb;
}

.order-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.order-details-section h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1f2937;
}

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.payment-screenshot {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-update {
  display: flex;
  gap: 1rem;
}

.status-update select {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
}

.update-status-btn {
  padding: 0.75rem 1.5rem;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.update-status-btn:hover {
  background-color: #1d4ed8;
}

.admin-products-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.admin-product-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.admin-product-info {
  padding: 1.5rem;
}

.admin-product-name {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Added admin discount price styling */
.admin-product-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-original {
  font-size: 0.875rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.price-discounted {
  font-size: 1.125rem;
  font-weight: 700;
  color: #2563eb;
}

.discount-tag {
  background-color: #ef4444;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-product-stock {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.admin-product-actions {
  display: flex;
  gap: 0.5rem;
}

.edit-btn,
.delete-btn {
  flex: 1;
  padding: 0.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.edit-btn {
  background-color: #dbeafe;
  color: #1e40af;
}

.edit-btn:hover {
  background-color: #bfdbfe;
}

.delete-btn {
  background-color: #fee2e2;
  color: #991b1b;
}

.delete-btn:hover {
  background-color: #fecaca;
}

.product-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group small {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.color-options-section {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
}

.color-options-section h4 {
  margin-bottom: 1rem;
}

.colors-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.color-input-group {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.color-name-input,
.color-hex-input,
.color-stock-input {
  padding: 0.5rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
}

.remove-color-btn {
  width: 40px;
  height: 40px;
  background-color: #fee2e2;
  color: #991b1b;
  border: none;
  border-radius: 8px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.remove-color-btn:hover {
  background-color: #fecaca;
}

.add-color-btn {
  padding: 0.75rem;
  background-color: #dbeafe;
  color: #1e40af;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-color-btn:hover {
  background-color: #bfdbfe;
}

.form-actions {
  display: flex;
  gap: 1rem;
}

.submit-btn,
.cancel-btn {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.submit-btn {
  background-color: #10b981;
  color: white;
}

.submit-btn:hover {
  background-color: #059669;
}

.cancel-btn {
  background-color: #e5e7eb;
  color: #374151;
}

.cancel-btn:hover {
  background-color: #d1d5db;
}

.image-preview {
  margin-top: 1rem;
}

/* Footer */
.footer {
  background-color: #1f2937;
  color: #e5e7eb;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-section p {
  line-height: 1.8;
  color: #d1d5db;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  color: #e5e7eb;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #2563eb;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #2563eb;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

.footer-bottom a {
  color: #2563eb;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  /* Header */
  .header-content {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .logo {
    font-size: 1.25rem;
  }

  .nav {
    gap: 0.75rem;
    font-size: 0.875rem;
  }

  .nav-link {
    font-size: 0.875rem;
  }

  /* Hero */
  .hero {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* Products Section */
  .products-section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .filter-buttons {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
  }

  .products-grid,
  .admin-products-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .product-image {
    height: 180px;
  }

  .product-info {
    padding: 1rem;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.125rem;
  }

  /* Modal - Full screen on mobile */
  .modal {
    padding: 0;
    align-items: flex-start;
  }

  .modal-content {
    margin: 0;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    padding: 1rem;
  }

  .close {
    right: 1rem;
    top: 1rem;
    font-size: 1.75rem;
    background-color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
  }

  .modal-body {
    flex-direction: column;
    gap: 1.5rem;
  }

  .modal-image {
    width: 100%;
    height: 250px;
  }

  .modal-name {
    font-size: 1.5rem;
  }

  .modal-price {
    font-size: 1.25rem;
  }

  .modal-description {
    font-size: 0.875rem;
  }

  .color-option {
    width: 45px;
    height: 45px;
  }

  .color-option-label {
    font-size: 0.7rem;
  }

  .qty-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .qty-input {
    width: 60px;
    height: 35px;
  }

  .add-to-cart-btn {
    padding: 0.875rem;
    font-size: 1rem;
  }

  /* Cart Page */
  .cart-section,
  .checkout-section,
  .admin-section {
    padding: 2rem 0;
  }

  .page-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .cart-content,
  .checkout-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cart-summary,
  .order-summary-container {
    position: static;
  }

  .cart-item {
    flex-direction: column;
    padding: 1rem;
  }

  .cart-item-image {
    width: 100%;
    height: 180px;
  }

  .cart-item-name {
    font-size: 1rem;
  }

  .cart-item-price {
    font-size: 1rem;
  }

  .cart-item-actions {
    flex-direction: column;
    width: 100%;
  }

  .quantity-controls {
    width: 100%;
    justify-content: center;
  }

  .remove-btn {
    width: 100%;
  }

  .cart-summary {
    padding: 1.5rem;
  }

  .summary-title {
    font-size: 1.25rem;
  }

  .summary-row {
    font-size: 0.875rem;
  }

  .summary-row.total {
    font-size: 1.125rem;
  }

  .checkout-btn {
    padding: 0.875rem;
    font-size: 1rem;
  }

  /* Checkout Page */
  .checkout-form-container,
  .order-summary-container {
    padding: 1.5rem;
  }

  .form-title {
    font-size: 1.25rem;
  }

  .checkout-form {
    gap: 1rem;
  }

  .form-group label {
    font-size: 0.875rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.625rem;
    font-size: 0.875rem;
  }

  .payment-info {
    padding: 1rem;
  }

  .payment-title {
    font-size: 0.875rem;
  }

  .payment-instructions {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .submit-order-btn {
    padding: 0.875rem;
    font-size: 1rem;
  }

  .order-items {
    gap: 0.75rem;
  }

  .order-item {
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
  }

  .order-item-name {
    font-size: 0.875rem;
  }

  /* Admin Page */
  .admin-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .orders-header,
  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .filter-status select {
    width: 100%;
  }

  .add-product-btn {
    width: 100%;
  }

  .order-card {
    padding: 1rem;
  }

  .order-info {
    grid-template-columns: 1fr;
  }

  .status-update {
    flex-direction: column;
  }

  .update-status-btn {
    width: 100%;
  }

  /* Product Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  .color-input-group {
    grid-template-columns: 1fr;
  }

  .color-input-group input {
    width: 100%;
  }

  .remove-color-btn {
    width: 100%;
    height: 35px;
  }

  .form-actions {
    flex-direction: column;
  }

  /* Notification System */
  .notification-container {
    left: 20px;
    right: 20px;
    max-width: none;
  }

  .notification {
    min-width: auto;
  }

  .confirm-modal-content {
    padding: 1.5rem;
  }

  .confirm-modal-title {
    font-size: 1.25rem;
  }

  .confirm-modal-actions {
    flex-direction: column;
  }

  .confirm-modal-btn {
    width: 100%;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px;
    margin-top: 60px;
  }

  .footer-content {
    gap: 30px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .logo {
    font-size: 1.125rem;
  }

  .nav {
    width: 100%;
    justify-content: space-around;
    margin-top: 0.5rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-subtitle {
    font-size: 0.875rem;
  }

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

  .modal-content {
    padding: 0.75rem;
  }

  .notification-container {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .notification {
    padding: 12px 16px;
    min-width: auto;
  }

  .notification-message {
    font-size: 13px;
  }
}

/* ==================== CUSTOM NOTIFICATION SYSTEM ==================== */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  pointer-events: none;
}

.notification {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  pointer-events: all;
  min-width: 300px;
  border-left: 4px solid;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-success {
  border-left-color: #10b981;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.notification-error {
  border-left-color: #ef4444;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.notification-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.notification-success .notification-icon {
  color: #10b981;
  background: #d1fae5;
  border-radius: 50%;
  padding: 4px;
}

.notification-error .notification-icon {
  color: #ef4444;
  background: #fee2e2;
  border-radius: 50%;
  padding: 4px;
}

.notification-message {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.5;
}

.notification-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.notification-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

.notification-close svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

/* Notification Animations */
.notification-enter {
  transform: translateX(400px);
  opacity: 0;
}

.notification-exit {
  transform: translateX(400px);
  opacity: 0;
}

/* Confirm Modal */
.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.confirm-modal.show {
  opacity: 1;
}

.confirm-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.confirm-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s;
}

.confirm-modal.show .confirm-modal-content {
  transform: scale(1);
}

.confirm-modal-icon {
  width: 64px;
  height: 64px;
  background: #fef3c7;
  color: #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.confirm-modal-icon svg {
  width: 32px;
  height: 32px;
}

.confirm-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: #1f2937;
}

.confirm-modal-message {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.confirm-modal-actions {
  display: flex;
  gap: 1rem;
}

.confirm-modal-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.confirm-modal-cancel {
  background: #f3f4f6;
  color: #374151;
}

.confirm-modal-cancel:hover {
  background: #e5e7eb;
}

.confirm-modal-confirm {
  background: #ef4444;
  color: white;
}

.confirm-modal-confirm:hover {
  background: #dc2626;
}