/* Base & Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background: #f7f7f6;
  color: #111827;
  line-height: 1.6;
}

/* Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Container inside header stays the same */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem; /* space between cart and hamburger */
}

/* Offset the main content so it doesn't hide behind header */
main {
  margin-top: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
}

.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
  color: #111827;
}

.nav a:hover {
  color: #98975c;
}

/* ================= HAMBURGER BUTTON ================= */
#open-profile-menu {
  width: 36px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2000;
}

/* Sleek, modern lines */
#open-profile-menu line {
  stroke: #111827;
  stroke-width: 1.25;
  stroke-linecap: round;
}

/* Search */
.search-section { 
  display: flex; 
  justify-content: center; 
  margin: 1rem 0 3rem;
}

.search-form {
  position: relative;
}

.search-form input {
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border-radius: 35px;
  border: 1px solid #ccc;
  width: 300px;
  font-size: 1rem;
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
}

/* Low Stock Corner Badge */
.product-card {
  position: relative; /* needed for absolute positioning of badge */
}

.product-card .low-stock {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); /* soft gold gradient */
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 10;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card .low-stock:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Hero */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('hero.img.svg') center/cover no-repeat;
  height: 80vh;
  margin-bottom: 3rem;
  text-align: center;
}

.hero h1 {
  font-family: 'Brush Script MT', cursive;
  font-size: 4rem;
  color: #111827;
}

.hero p {
  font-size: 1.3rem;
  margin: 1rem 0;
  color: #98975c;
}

.hero-btn {
  text-decoration: none;
  padding: 0.8rem 2rem;
  background: #111827;
  color: white;
  border-radius: 5px;
  font-weight: 500;
  transition: 0.3s;
}

.hero-btn:hover {
  background: #333;
}

/* Story */
.story {
  margin: 4rem 0;
  text-align: center;
}

.story h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.story p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: #555;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
  margin-top: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: 0.3s ease;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

/* Product card and carousel images: fit container without cropping */
.product-card img,
.slide img {
  width: 250px;
  height: 255px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card {
  max-width: 280px;
  margin: 0 auto;
}

.product-card a {
  text-decoration: none;
}

.product-card h3 {
  font-size: 1.1rem;
  margin: 0.8rem 0;
  color: black;
}

.product-card .price {
  font-weight: 600;
  color: #98975c;
  margin-bottom: 1rem;
}

/* Carousel */
.carousel {
  margin: 3rem 0;
  position: relative;
}

.slides-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  max-width: 560px;
  margin: 0 auto;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 560px;
  height: 255px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
}

.slide img {
  max-width: 100%;
  object-fit: contain;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
}

.slide-btn.prev {
  left: 10px;
}

.slide-btn.next {
  right: 10px;
}

/* Reviews */
.reviews {
  margin: 4rem 0;
  text-align: center;
}

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

.review-grid img {
  width: 100%;
  border-radius: 10px;
}

/* Footer */
footer {
  background: #f9fafb;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
}

footer a {
  color: #111827;
  font-weight: 500;
  text-decoration: none;
}

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

/* ===============================
   ONLY CHANGE (NAV VISIBILITY)
=============================== */

/* MOBILE FIRST */
.nav ul {
  display: none;
}

#open-profile-menu {
  display: flex;
}

/* TABLET + DESKTOP */
@media (min-width: 768px) {
  .nav ul {
    display: flex;
  }

  #open-profile-menu {
    display: none;
  }
}
