:root {
  --bg: #FBF6F1;
  --card: #FFFFFF;
  --text: #3A2E2A; /* Deep coffee brown */
  --accent: #D67323; /* The specific orange from your buttons */
  --soft: #E7C6B5;
  --gold: #D19A66;
  --nav-height: 100px;
}

body {
  margin: 0;
  /* Using a more traditional serif-leaning system stack for that classic look */
  font-family: "Georgia", "Times New Roman", serif; 
  background: var(--bg);
  color: var(--text);
}

/* --- Restore Orange Buttons --- */
.btn, #subInfoToggle {
  background-color: var(--accent) !important;
  color: #ffffff !important;
  border: none;
  border-radius: 6px; /* Matching the subtle roundness in the screenshot */
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  font-family: sans-serif; /* Buttons usually stay sans-serif for legibility */
}

/* Specific styling for the "Switch Plan" and "Edit Preferences" buttons */
#update-plan, #toggle-edit-form, .btn-primary {
  background-color: var(--accent);
  width: 100%;
}

/* --- The Accordion Toggle --- */
#subInfoToggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.dashboard-hero::before {
  background: rgba(0,0,0,0.25); /* Lighter overlay for better image visibility */
}

.dashboard-hero-inner h1 {
  font-family: "Georgia", serif;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* --- 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 h3 {
  color: #7D6B63; /* Muted brown for headers */
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.status-grid strong, 
#subscription-info div strong, 
#edit-info div strong {
  color: #3A2E2A;
  font-weight: 700;
}

.status-grid span {
  color: #555; /* Slightly lighter for the values */
}

.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; }
}
