/* ============================================
   1. GLOBAL RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html { 
  scroll-behavior: smooth; 
}

body { 
  overflow-x: hidden; 
  width: 100%; 
  max-width: 100vw; 
  background: #fff; 
  color: #222; 
  line-height: 1.6; 
}

/* ============================================
   2. NAVIGATION & HEADER
   ============================================ */
/* Red Notification Bar */
.top-notification-bar {
  background-color: #b22222;
  color: #fff;
  text-align: center;
  padding: 8px 10px;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* Sticky Header Logic */
header.sticky-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #f9f9f9;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  position: -webkit-sticky; 
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  flex: 1;
  text-align: center;
}

.logo img {
  height: 90px;
  width: auto;
  max-width: none;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.menu-wrapper {
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  color: #000;
  font-weight: bold;
  margin-right: 6px;
}

/* Navigation Links */
nav {
  flex: 1 1 100%;
  text-align: center;
  width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  justify-content: center;
  transition: max-height .3s ease;
}

nav a {
  text-decoration: none;
  color: #222;
  padding: .6rem 1rem;
  border-radius: 4px;
  font-weight: 500;
}

nav a:hover, 
nav a.active {
  background: #eee;
  color: #b22222;
}

/* ============================================
   3. PAGE SECTIONS (Hero, Products, Contact)
   ============================================ */
/* Hero Section */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
}

.hero-image {
  width: 100%;
  height: 65vh;
  object-fit: cover;
  filter: brightness(65%);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 4px 14px rgba(0,0,0,.7);
}

/* Featured Products Grid */
.products {
  padding: 4rem 2rem;
  text-align: center;
  background: #fafafa;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: .3s;
  width: 100%;
  max-width: 340px;
  text-decoration: none;
  margin: 0 auto;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
}

.product-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
  border-top-left-radius: 10px; 
  border-top-right-radius: 10px;
}

.product-card h3 {
  padding: 1rem 0;
}

/* Contact Form */
.contact {
  background: #f6f6f6;
  padding: 3rem 1.5rem;
  text-align: center;
}

.contact form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  width: 100%;
  padding: .9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  background: #b22222;
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #8b1a1a;
}


/* ---------- 5. Footer ---------- */
.footer-info {
  text-align: center;
  background: #fff;
  padding: 2.5rem 1rem;
  line-height: 1.8;
}

.footer-info p {
  margin: 4px 0;
}

footer {
  text-align: center;
  background: #444;
  padding: 2rem 1.5rem;
  font-size: 0.95rem;
  color: #fff;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.8rem;
}

footer a:hover {
  text-decoration: underline;
}

.back-top {
  display: inline-block;
  color: #fff;
  font-weight: bold;
  margin-bottom: 1rem;
  text-decoration: none;
}


/* ============================================
   5. RESPONSIVE DESIGN (Mobile)
   ============================================ */
@media(max-width: 768px) {
  header.sticky-header {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem;
  }
  
  .menu-toggle {
    display: block;
    margin-right: 8px;
    font-size: 2.4rem;
    color: #000;
  }
  
  .logo {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  
  .logo img {
    width: auto;
    max-width: 200px;
    height: 60px;
    object-fit: contain;
  }
  
  nav {
    width: 100%;
  }
  
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    background: #f9f9f9;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding-left: 1.2rem;
    margin-top: 0;
    transition: all .3s ease;
  }
  
  nav ul.open {
    max-height: 400px;
    opacity: 1;
    padding: 1rem 1.2rem;
    border-top: 1px solid #ddd;
  }
}

@media(min-width: 769px) {
  nav ul {
    max-height: none !important;
    opacity: 1 !important;
  }
}