/* === VARIABLES === */
:root {
  --bg-color: #ffffff;
  --text-color: #333;
  --primary-color: #D32F2F; /* Wine red */
  --secondary-color: #e74c3c; /* Bright red */
  --button-bg: var(--primary-color);
  --button-text: #ffffff;
  --sidebar-width: 250px;
}

body.dark-theme {
  --bg-color: #1e1e1e;
  --text-color: #f4f4f4;
  --primary-color: #ff4d4d;
  --secondary-color: #ffcccc;
  --button-bg: var(--primary-color);
  --button-text: #000000;
}

/* === BASE STYLES === */
body {
  margin: 0;
  padding: 40px;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: Verdana, 'Segoe UI', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
}

body:focus {
  outline: none;
}

.container {
  max-width: 900px;
  margin: auto;
}

.button {
  background-color: var(--button-bg);
  color: var(--button-text);
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.button:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.intro {
  margin: 20px 0;
  font-size: 16px;
}

.features ul {
  list-style: none;
  padding: 0;
}

.features li {
  margin-bottom: 12px;
  font-size: 14px;
}

/* === SIDEBAR === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--primary-color);
  color: white;
  overflow-y: auto;
  transition: transform 0.3s ease;
  z-index: 1001;
  will-change: transform;
}

.sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar nav ul li {
  padding: 10px 20px;
}

.sidebar nav ul li .dropdown-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

.sidebar nav ul li .dropdown-content {
  display: none;
  flex-direction: column;
  padding-left: 15px;
}

.sidebar nav ul li .dropdown-content a {
  color: white;
  text-decoration: none;
  padding: 5px 0;
  font-size: 14px;
}

.sidebar nav ul li.active .dropdown-content {
  display: flex;
}

.logo-full img {
  width: 80%;
  margin: 20px auto;
  display: block;
}

/* === MAIN CONTENT === */
#main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 20px;
  transition: margin-left 0.3s ease;
}

/* === HEADER === */
header {
  display: none;
}

#toggleSidebar {
  background: none;
  border: none;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

header h1 {
  margin: 0;
  padding: 0;
  text-align: center;
}

header h1 img {
  height: 40px;
  width: auto;
  vertical-align: middle;
  display: none;
}

/* === DROPDOWN === */
.dropdown {
  position: relative;
}

.dropdown-menu,
.dropdown-content {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background-color: #ee9c94;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  min-width: 150px;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown.open .dropdown-menu,
.dropdown-btn.active + .dropdown-content {
  display: block;
}

.dropdown-menu a,
.dropdown-content a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-content a:hover {
  background-color: #f5c1bc;
}

.dropdown-menu a:first-child,
.dropdown-content a:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.dropdown-menu a:last-child,
.dropdown-content a:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* === CARDS === */
.benefit-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 22%;
  min-width: 250px;
  flex: 1 1 250px;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 15px;
}

.card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 18px;
}

.card p {
  font-size: 14px;
  color: #444;
  margin-bottom: 0;
}

body.dark-theme .card {
  background-color: #2c2c2c;
}

body.dark-theme .card p {
  color: #ccc;
}

body.dark-theme .dropdown-menu,
body.dark-theme .dropdown-content {
  background-color: #444;
}

body.dark-theme .dropdown-menu a,
body.dark-theme .dropdown-content a {
  color: #f4f4f4;
  background-color: #444;
}

body.dark-theme .dropdown-menu a:hover,
body.dark-theme .dropdown-content a:hover {
  background-color: #555;
}

/* === OVERLAY === */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1002;
  display: none;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  body {
    padding: 20px;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  #main-content {
    margin-left: 0;
  }

  #toggleSidebar {
    display: inline-block;
    position: absolute;
    left: 20px;
  }

  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  header h1 {
    flex-grow: 1;
    text-align: center;
    display: block;
  }

  header h1 img {
    display: block;
    margin: 0 auto;
  }

  .benefit-cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 90%;
  }
}

.stock-status {
  font-weight: bold;
  margin-top: 0.5rem;
}
.stock-green { color: green; }
.stock-yellow { color: #ffc107; }
.stock-red { color: red; }
