/* Base Styles */
:root {
  --primary-color: #fbaf37;
  --secondary-color: #f1faee;
  --accent-color: #a8dadc;
  --dark-color: #1d3557;
  --light-color: #f8f9fa;
  --text-color: #333;
  --text-light: #777;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-color);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
.header {
  background-color: white;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

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

.logo img {
  height: 50px;
}

.main-nav ul {
  display: flex;
  gap: 20px;
}

.main-nav a {
  font-weight: 600;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--primary-color);
}

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

.cart-btn {
  position: relative;
  font-size: 1.2rem;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-color);
  color: var(--dark-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.login-btn,
.account-btn {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 15px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.login-btn:hover,
.account-btn:hover {
  background-color: #c1121f;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
  padding: 20px;
}

.mobile-menu.active {
  right: 0;
}

.close-mobile-menu {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu ul {
  margin-top: 40px;
}

.mobile-menu li {
  margin-bottom: 15px;
}

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Footer Styles */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 40px 0 20px;
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
  font-size: 1.2rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Flash Messages */
.flash-messages {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.flash-message {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-radius: var(--border-radius);
  color: white;
  opacity: 1;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  animation: slideIn 0.3s ease forwards;
  transform: translateX(120%);
}

.flash-message.fade-out {
  opacity: 0;
  transform: translateX(120%) scale(0.9);
}

.flash-content {
  flex: 1;
  padding-right: 10px;
}

.flash-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.flash-close {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.flash-close:hover {
  opacity: 1;
}

.flash-close svg {
  display: block;
}

@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

/* Message Type Colors */
.flash-success {
  background-color: #28a745;
  border-left: 4px solid #218838;
}

.flash-danger {
  background-color: #dc3545;
  border-left: 4px solid #c82333;
}

.flash-warning {
  background-color: #ffc107;
  color: #212529;
  border-left: 4px solid #e0a800;
}

.flash-info {
  background-color: #17a2b8;
  border-left: 4px solid #138496;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .header-actions {
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 40px;
  }

  .footer .container {
    grid-template-columns: 1fr;
  }
}
