/* ======= Global Theme ======= */
:root {
  --primary-color: #1a2a6c;
  --secondary-color: #b21f1f;
  --accent-color: #fdbb2d;
  --text-color: #333;
  --background-color: #f9f9f9;
}

/* ======= Global Base Styles ======= */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Prevents section headers hiding behind fixed header */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  color: var(--text-color);
  background-color: var(--background-color);
  padding-top: 70px; /* Prevents overlap with fixed header */
}

/* ======= Fixed Header Styling ======= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: white;
  color: var(--text-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 18px;
}

.logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

/* Hover underline effect */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* ======= Hero Section ======= */
.hero {
  background: linear-gradient(90deg, #ffb300, #26c6da);
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* ======= Categories Section ======= */
.categories {
  text-align: center;
  padding: 60px 20px;
}

.category-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.category-item {
  text-align: center;
}

.category-item img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #e0e0e0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.category-item img:hover {
  transform: scale(1.07);
  border-color: var(--primary-color);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.category-item p {
  margin-top: 12px;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1rem;
}

.category-desc {
  max-width: 800px;
  margin: 40px auto 0;
  color: #555;
  line-height: 1.6;
}

/* ======= Products Page ======= */
.products {
  padding: 60px 40px;
  text-align: center;
}

.product-section {
  margin-bottom: 80px;
}

.product-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  width: 300px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
}

.product-card h3 {
  color: var(--primary-color);
  margin: 15px 0 8px;
}

.old-price {
  text-decoration: line-through;
  color: #888;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 20px;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #3949ab;
}

/* ======= About + Footer ======= */
.about, .footer {
  text-align: center;
  padding: 40px 20px;
}

.footer {
  background-color: var(--primary-color);
  color: white;
  font-size: 0.9rem;
}

/* ======= Contact Form ======= */
form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

form button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: var(--secondary-color);
}
