* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* border: 1px solid red; Debugging border */
}

body {
  font-family: "Almarai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #060d11;
}

/* Color Variables */
:root {
  --vclasses-orange: #e94e1b;
  --vclasses-dark-blue: #193142;
  --vclasses-text: #060d11;
}

/* Header Styles */
.header {
  width: 100%;
  background: white;
  box-shadow: 0 4px 29px 0 rgba(0, 0, 0, 0.15);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-button {
  position: relative;
  width: 29px;
  height: 29px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-button:hover {
  background-color: #f9fafb;
}

.badge {
  position: absolute;
  top: -8px;
  right: -4px;
  width: 10px;
  height: 10px;
  background: var(--vclasses-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 6px;
  font-weight: 700;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-text {
  color: var(--vclasses-orange);
  font-size: 26px;
  font-weight: 500;
}

.logo-image {
  width: 66px;
  height: 62px;
  object-fit: contain;
}
/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 547px;
  max-height: 96vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  position: relative;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.modal-close {
  position: absolute;
  left: 24px;
  top: 24px;
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 24px;
}

.modal-title {
  color: var(--vclasses-dark-blue);
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
}

.cart-items {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 640px) {
  .cart-items {
    padding: 16px;
    gap: 12px;
  }
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #c2c2c2;
  border-radius: 10px;
}

@media (max-width: 640px) {
  .cart-item {
    box-shadow: 0 4px 32px 0 rgba(0, 0, 0, 0.051);
    border: none;
    padding: 16px;
  }
}

.item-image {
  width: 81px;
  height: 119px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
}

.item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: start;
}

.item-header {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

.item-tag {
  background: rgba(233, 78, 27, 0.1);
  padding: 4px 12px;
  border-radius: 25px;
}

.item-tag-text {
  color: var(--vclasses-orange);
  font-size: 10px;
  font-weight: 700;
}

.item-title {
  color: var(--vclasses-dark-blue);
  font-size: 1.125rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .item-title {
    font-size: 1rem;
  }
}

.item-price {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-end;
}

.original-price {
  color: var(--vclasses-text);
  font-size: 12px;
  text-decoration: line-through;
}

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

.price-label {
  color: var(--vclasses-text);
}

@media (max-width: 640px) {
  .price-label,
  .price-value {
    font-size: 12px;
  }
}

.price-value {
  color: var(--vclasses-orange);
  font-weight: 700;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.heart-btn {
  width: 33px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.delete-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ff3b30;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.delete-btn:hover {
  background: #dc2626;
}

.modal-footer {
  padding: 24px;
  background: #f9fafb;
  border-radius: 0 0 16px 16px;
}

.total-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.total-title {
  color: var(--vclasses-dark-blue);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}

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

.total-amount {
  color: var(--vclasses-dark-blue);
  font-size: 1.125rem;
  font-weight: 700;
}

.final-total {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.final-total-text {
  color: var(--vclasses-text);
  font-size: 1.5rem;
  font-weight: 700;
}

.normal-weight {
  font-weight: 400;
}

.checkout-btn {
  width: 100%;
  background: var(--vclasses-orange);
  color: white;
  padding: 16px;
  border-radius: 4px;
  border: none;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.checkout-btn:hover {
  background: #d44414;
}

/* Responsive Design */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .header {
    padding: 12px 16px;
  }

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

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

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