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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a1a2e;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  color: #e94560;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: #ccc;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e94560;
}

.btn-signup {
  background-color: #e94560;
  color: white !important;
  padding: 8px 18px;
  border-radius: 5px;
}

.btn-signup:hover {
  background-color: #c73652;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background-color: #e94560;
  color: white;
  padding: 10px 22px;
  border-radius: 5px;
  font-size: 15px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #c73652;
}

.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: white;
  padding: 10px 22px;
  border-radius: 5px;
  font-size: 15px;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: #1a1a2e;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: white;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 20px;
  color: #aaa;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* ===== CATEGORIES ===== */
.categories {
  padding: 60px 40px;
  text-align: center;
}

.categories h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #1a1a2e;
}

.category-cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #1a1a2e;
}

.card p {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: white;
  text-align: center;
  padding: 50px 20px;
}

.page-header h1 {
  font-size: 38px;
}

.page-header p {
  color: #aaa;
  margin-top: 8px;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
  padding: 50px 40px;
}

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

/* ===== PRODUCT CARD ===== */
.product-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-info {
  padding: 15px;
}

.product-info h3 {
  font-size: 17px;
  color: #1a1a2e;
  margin-bottom: 5px;
}

.product-info .price {
  color: #e94560;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.product-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 15px 15px;
}

.btn-cart {
  background-color: #1a1a2e;
  color: white;
  border: none;
  padding: 9px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.btn-cart:hover {
  background-color: #333;
}

.btn-tryon {
  background-color: #e94560;
  color: white;
  border: none;
  padding: 9px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.btn-tryon:hover {
  background-color: #c73652;
}

/* ===== TRY ON MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 480px;
  width: 90%;
  text-align: center;
}

.modal-box h2 {
  color: #1a1a2e;
  margin-bottom: 10px;
}

.modal-box p {
  color: #666;
  margin-bottom: 20px;
}

.modal-box img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

.btn-close {
  background: #e94560;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
}

/* ===== FORMS (Login, Signup, Contact) ===== */
.form-section {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.form-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 450px;
}

.form-box h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #1a1a2e;
  font-size: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
  font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #e94560;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  background-color: #e94560;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 5px;
}

.form-submit:hover {
  background-color: #c73652;
}

.form-footer {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: #666;
}

.form-footer a {
  color: #e94560;
  font-weight: 600;
}

/* ===== ABOUT PAGE ===== */
.about-section {
  padding: 60px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.about-section h2 {
  color: #1a1a2e;
  font-size: 28px;
  margin-bottom: 15px;
}

.about-section p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.team-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.team-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}

.team-card h4 {
  color: #1a1a2e;
  margin-bottom: 4px;
}

.team-card p {
  color: #888;
  font-size: 13px;
  margin: 0;
}

/* ===== CONTACT PAGE ===== */
.contact-info {
  text-align: center;
  padding: 40px;
  background: white;
  margin: 30px auto;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.contact-info p {
  color: #555;
  font-size: 16px;
  margin-bottom: 10px;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #1a1a2e;
  color: #aaa;
  text-align: center;
  padding: 25px;
  font-size: 14px;
}

.footer a {
  color: #e94560;
}

.footer p {
  margin-bottom: 5px;
}

/* ===== SUCCESS MESSAGE ===== */
.success-msg {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  margin-top: 15px;
  font-size: 15px;
}

/* ===== TOAST MESSAGES ===== */
.toast-messages {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
}

.toast {
  background: #1a1a2e;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ===== CART SIDEBAR ===== */
#cartSidebar.open {
  right: 0 !important;
}

#cartOverlay {
  animation: fadeIn 0.3s ease;
}

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

#cartSidebar {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { right: -400px; }
  to { right: 0; }
}

/* ===== MY ORDERS SIDEBAR ===== */
#ordersSidebar.open {
  right: 0 !important;
}

#ordersOverlay {
  animation: fadeIn 0.3s ease;
}

#ordersSidebar {
  animation: slideIn 0.3s ease;
}