header {
  background: #000000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 20px;
  position: relative;
}

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

.logo-image {
  height: 80px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  filter: brightness(1.1) drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
  transition: filter 0.3s ease;
}

.logo-image:hover {
  filter: brightness(1.2) drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

.logo h1 {
  background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.logo.has-image h1 {
  font-size: 1.5rem;
  margin-left: 0.5rem;
}

.logo-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-link:hover,
.logo-link:focus {
  filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.2));
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  background: #000000;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.35rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #000000;
}

nav a:hover,
nav a:focus {
  color: #ffffff;
  background: #333333;
  border-color: #333333;
}

#authNav a,
#authNav button {
  text-decoration: none;
  color: #ffffff;
  background: #000000;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.35rem 1.2rem;
  border-radius: 10px;
  border: 1px solid #000000;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s ease;
}

#authNav a:hover,
#authNav a:focus,
#authNav button:hover,
#authNav button:focus {
  color: #ffffff;
  background: #333333;
  border-color: #333333;
}

.cart-link {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dc143c;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.cart-count[aria-label] {
  display: flex;
}

.btn {
  padding: 0.625rem 2rem;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.3;
  min-height: 40px;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.025em;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(222, 184, 135, 0.5);
}

.btn-primary {
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  color: #f5deb3;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(222, 184, 135, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  background: linear-gradient(
    135deg,
    rgba(245, 222, 179, 0.9) 0%,
    rgba(222, 184, 135, 0.9) 100%
  );
  color: #2d2d2d;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(139, 115, 85, 0.3);
  backdrop-filter: blur(20px);
}

.btn-secondary:hover {
  background: linear-gradient(
    135deg,
    rgba(245, 222, 179, 1) 0%,
    rgba(210, 180, 140, 1) 100%
  );
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  color: #1a1a1a;
}

.btn-danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #ff5252 0%, #e53e3e 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

button,
.btn {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
  padding: 8px 16px !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  display: inline-block !important;
  cursor: pointer !important;
}

button:hover,
.btn:hover {
  background: #333333 !important;
  border-color: #333333 !important;
}

.btn-full-width {
  width: 100%;
}

.search-input,
.sort-select,
.form-input,
.quantity-input {
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  color: #2d3748;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-input:focus,
.sort-select:focus,
.form-input:focus,
.quantity-input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.search-input::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

.search-input {
  min-width: 250px;
}

.sort-select {
  min-width: 150px;
  cursor: pointer;
}

.form-input.error,
.search-input.error,
.sort-select.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.field-error {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2d3748;
}

.input-hint {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
  display: block;
}

.filters-section {
  margin: 3rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.filters-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.filters-controls {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

footer {
  background: #1a1a1a;
  color: #ffffff;
  text-align: center;
  padding: 3rem 1rem;
  margin-top: auto;
}

footer p {
  margin: 0;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .logo-image {
    height: 60px;
    max-width: 250px;
  }

  .logo h1 {
    font-size: 1.4rem;
  }

  .logo.has-image h1 {
    font-size: 1.1rem;
  }

  header .container {
    padding: 1.2rem 15px;
    flex-wrap: wrap;
  }

  nav ul {
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  nav a {
    padding: 0.3rem 0.9rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  header .container {
    padding: 1rem 10px;
    flex-direction: column;
    gap: 1rem;
  }

  .logo-image {
    height: 50px;
    max-width: 200px;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  .logo.has-image h1 {
    font-size: 1rem;
  }

  nav ul {
    justify-content: center;
    gap: 0.5rem;
  }

  nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }

  .search-input {
    min-width: 200px;
  }

  .filters-container {
    flex-direction: column;
    align-items: stretch;
  }

  .filters-controls {
    justify-content: center;
  }
}

/* ===== FOOTER STYLES ===== */
footer,
.main-footer {
  background: #000000;
  color: #ffffff;
  padding: 3.5rem 0 1rem;
  margin-top: auto;
}

.main-footer nav {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.main-footer nav a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.main-footer nav a:hover,
.main-footer nav a:focus {
  color: #ffffff;
}

.footer-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin-bottom: 2.5rem;
}

.footer-section {
  flex: 0 1 auto;
  min-width: auto;
  max-width: 300px;
  text-align: left;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: #ffffff;
  text-align: left;
}

.footer-section p {
  color: #cccccc;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 0.5rem;
}

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

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

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

.footer-links a:hover,
.footer-links a:focus {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 1rem;
  text-align: center;
  color: #cccccc;
  font-size: 0.9rem;
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-section {
    margin-bottom: 1rem;
  }
}

/* Image placeholder styling */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  background: #f5f5f5;
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

/* Carousel image placeholder styling */
.carousel-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 400px;
  background: #f5f5f5;
  color: #666;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

/* Mobile Navigation - Only for tablets and phones */
@media (max-width: 768px) {
  nav ul {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem 0;
    justify-content: center;
    flex-wrap: wrap;
  }

  nav li {
    width: auto;
    border: none;
  }

  nav a,
  #authNav a,
  #authNav button {
    display: inline-block;
    width: auto;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background: transparent;
    text-align: center;
    font-size: 0.9rem;
    transition: background 0.2s ease;
    white-space: nowrap;
  }

  nav a:hover,
  nav a:focus,
  #authNav a:hover,
  #authNav a:focus,
  #authNav button:hover,
  #authNav button:focus {
    background: #333333;
    border: none;
  }

  .cart-link {
    position: relative;
  }
}

/* Desktop Navigation - Ensure it stays visible on large screens */
@media (min-width: 769px) {
  nav ul {
    flex-direction: row !important;
    gap: 1.5rem !important;
    padding: 0 !important;
  }

  nav li {
    width: auto !important;
    border: none !important;
  }

  nav a,
  #authNav a,
  #authNav button {
    display: inline-block !important;
    width: auto !important;
    padding: 0.35rem 1.2rem !important;
    border-radius: 10px !important;
    background: #000000 !important;
    border: 1px solid #000000 !important;
    text-align: center !important;
    font-size: 1rem !important;
  }

  nav a:hover,
  nav a:focus,
  #authNav a:hover,
  #authNav a:focus,
  #authNav button:hover,
  #authNav button:focus {
    background: #333333 !important;
    border-color: #333333 !important;
  }
}

/* ===== TERMS PAGE STYLES ===== */
.terms-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  line-height: 1.6;
}

.last-updated {
  margin-bottom: 3rem;
}

.terms-section {
  margin-bottom: 2rem;
}

.terms-section h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.terms-section p {
  margin-bottom: 1rem;
}

.terms-section ul {
  margin: 1rem 0 1rem 1.5rem;
}

.terms-section li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .terms-container {
    margin: 1rem;
    padding: 1rem;
  }
}

/* ===== ABOUT PAGE STYLES ===== */
.about-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  line-height: 1.6;
}

.about-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.about-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.2rem;
  color: #666;
}

.about-section {
  margin-bottom: 2.5rem;
}

.about-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 1rem;
}

.about-section p {
  color: #555;
  margin-bottom: 1rem;
}

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

.value-card {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f9f9f9;
}

.value-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.5rem;
}

.value-card p {
  color: #666;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .about-container {
    margin: 1rem;
    padding: 1rem;
  }

  .about-hero h1 {
    font-size: 2rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
