/* Base reset and shared styles */
* {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: 'Georgia', serif;
  background: #fdf6e3;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header */
header {
  background-color: #fdf6e3;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
  position: sticky;     
  top: 0;               
  z-index: 999;         
  transition: padding 0.3s ease; /* smooth shrink */
}

.logo img {
  height: 120px;        
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease; /* smooth shrink */
}

/* Shrink class applied on scroll */
header.shrink {
  padding: 0.5rem 2rem; /* smaller header padding */
}

header.shrink .logo img {
  height: 70px; /* smaller logo */
}


.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}



.navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.navbar li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 6px 0;
}

.navbar li a:hover {
  border-bottom: 2px solid #ffc43d;
  color: #316943;
}

/* Store page main container */
.store-page {
  padding: 3rem 2rem;
  background-color: #fffbe9;
}

/* Store header */
.store-header {
  text-align: center;
  margin-bottom: 2rem;
}

.store-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #316943;
}

.store-header p {
  font-size: 1.1rem;
  color: #333;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 1rem;
}

/* Individual product card */
.product-card {
  background-color: #fdf6e3;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.2rem;
  color: #316943;
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.8rem;
}

/* Price styling */
.price {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
  display: block;
}

/* Button styles */
.product-card .btn {
  background-color: #ffc43d;
  color: #333;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.product-card .btn:hover {
  background-color: #e0af2f;
}

/* Footer */
footer {
  background: linear-gradient(to right, #316943, #ffc43d);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-content p {
  margin: 0.4rem 0;
}

.footer-content a {
  color: #ffc43d;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.footer-content img {
  vertical-align: middle;
  width: 20px;
  height: 20px;
  margin-right: 6px;
}

/* -------- Responsive Layout -------- */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
  }

  .navbar {
    justify-content: center;
    margin-top: 1rem;
  }

  .logo img {
    height: 120px; /* bigger mobile logo */
  }

  .store-header h2 {
    font-size: 2rem;
  }

  .store-header p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .product-card img {
    height: 150px;
  }

  .product-card h3 {
    font-size: 1rem;
  }

  .product-card p {
    font-size: 0.9rem;
  }

  .price {
    font-size: 1rem;
  }

  .product-card .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .store-header h2 {
    font-size: 1.6rem;
  }
}

/* Desktop adjustments */
@media (min-width: 769px) {
  .logo img {
    height: 150px; /* ✅ bigger desktop logo */
  }
}
