/* Generic/Common Styles - Used across all pages */

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.6;
  color: #222;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Logo */
.logo {
  height: 70px;
  width: auto;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 69, 0, 0.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  position: absolute;
  left: 2rem;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.05);
}

.brand-text {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 1.1rem;
}

.navlist {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.navitem {
  margin: 0;
}

.navlink {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.3px;
}

.navlink::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: orangered;
  transition: width 0.3s ease;
}

.navlink:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.navlink:hover::after {
  width: 80%;
}

.navlink.active {
  color: white;
  background: rgba(255, 255, 255, 0.15);
}

.navlink.active::after {
  width: 80%;
  background: orangered;
}

/* Nav Actions */
.nav-actions {
  position: absolute;
  right: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.cart-btn {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  background: #444;
  border: 2px solid #444;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-btn:hover {
  background: #555;
  border-color: #555;
  transform: translateY(-2px);
}

.cart-count {
  background: orangered;
  color: white;
  border-radius: 50%;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  min-width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.signin-btn {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  background: orangered;
  border: 2px solid orangered;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 69, 0, 0.3);
}

.signin-btn:hover {
  background: #e64a19;
  border-color: #e64a19;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  display: none;
  z-index: 1001;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  transition: background 0.2s;
  border-bottom: 1px solid #eee;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:first-child {
  border-radius: 6px 6px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 6px 6px;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

/* Main Container */
.container {
  padding: 1.25rem 1rem 2.5rem;
  max-width: 960px;
  margin: 0 auto;
  flex: 1;
}

/* Headings */
h1 {
  margin-top: 0.5rem;
  font-size: 2rem;
}

h2 {
  margin: 0.25rem 0 0.5rem;
  color: #333;
}

/* Sections */
.section {
  padding: 1rem 0;
  border-top: 1px solid #eee;
}

.section:first-of-type {
  border-top: none;
}

/* Footer */
footer {
  margin-top: auto;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #fff;
  padding: 3rem 2rem 1.5rem;
  border-top: 3px solid orangered;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: orangered;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 2;
  display: block;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: orangered;
  padding-left: 5px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: orangered;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}

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

.footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  padding: 1rem;
  margin: 0;
}

/* Two Column Grid Layout - Used in multiple pages */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .two-col-grid {
    grid-template-columns: 1fr;
  }

  .navbar {
    padding: 1rem;
  }

  .brand {
    left: 1rem;
  }

  .signin-container {
    right: 1rem;
  }

  .navlist {
    gap: 0.25rem;
  }

  .navlink {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

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

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .navlist {
    display: none;
  }
}
