:root {
  --bg: #FBF6F1;
  --card: #FFFFFF;
  --text: #3A2E2A;
  --accent: #D2691E;
  --soft: #E7C6B5;
  --gold: #D19A66;
  --nav-height: 100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* --- Navbar & Header Layout --- */

#navbar-container {
  background-color: #ffffff !important;
  position: relative !important; 
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #f0f0f0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: var(--nav-height);
  max-width: 1200px;
  margin: 0 auto;
}

.logo a {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 70px;
  width: auto;
}

/* --- Navigation Links (The Dropdown Menu) --- */

#primary-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  /* Start Condensed/Hidden */
  display: none; 
  flex-direction: column;
  
  /* Dropdown Positioning */
  position: absolute;
  top: var(--nav-height); 
  right: 0;
  width: 240px;
  background-color: #ffffff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  padding: 1rem 0;
  margin: 0;
  list-style: none;
  z-index: 1001;
}

/* Expand when script adds .active */
.nav-links.active {
  display: flex !important;
}

.nav-links li a {
  display: block;
  padding: 12px 25px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-links li a:hover {
  background-color: var(--bg);
}

/* --- Icons & Hamburger --- */

.nav-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-status a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.cart-icon {
  width: 24px;
  height: auto;
}

#cart-count {
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: 5px;
}

.menu-toggle {
  display: block !important;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
  padding: 0;
  line-height: 1;
}

/* --- Hero Image Section --- */

.hero-image {
  position: relative;
  width: 100vw;
  margin-top: 0 !important; /* Prevents sliding under navbar */
  background-size: cover;
  background-position: center 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3); /* Softens the image for text clarity */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.product-title {
  color: #FFFFFF;
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: 700;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* --- Main Content & Product Card --- */

.page-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.card {
  background: var(--card);
  padding: 3rem 10%;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
  margin-top: -60px; /* Overlap with hero image */
  position: relative;
  z-index: 10;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
}

.specs-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-right: 30px;
  border-right: 1px solid var(--soft);
}

.spec-item label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 4px;
}

.story p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.tagline {
  font-style: italic;
  font-size: 1.2rem;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--soft);
  margin: 1.5rem 0;
}

/* --- Mobile Adjustments --- */

@media (max-width: 768px) {
  .content-wrapper { 
    grid-template-columns: 1fr; 
    gap: 30px; 
  }
  
  .specs-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--soft);
    padding-right: 0; padding-bottom: 20px;
    flex-direction: row; flex-wrap: wrap;
    position: static;
  }

  .site-header .container {
    padding: 0 1rem;
  }
}
/* --- Add to Cart Button --- */
.btn-add-cart {
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s;
  box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.btn-add-cart:hover {
  background-color: #b05616; /* Slightly darker shade */
  transform: translateY(-2px);
}

.btn-add-cart:active {
  transform: translateY(0);
}

/* --- Cart Popup Style --- */
#cart-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none; /* Hidden by default */
  min-width: 250px;
  border-left: 5px solid var(--accent);
}

#cart-popup.visible {
  display: block;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
