* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #2C2416;
  --secondary-color: #8B7355;
  --accent-color: #E8D7B9;
  --logo-bg: #E8D7B9;
  --text-color: #2C2416;
  --text-light: #5A4A3A;
  --bg-color: #FDF9F3;
  --bg-alt: #F5EDE0;
  --border-color: #D4C4B0;
  --header-bg: rgba(253, 249, 243, 0.95);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  letter-spacing: 0.5px;
}

.brand-link:hover {
  color: var(--secondary-color);
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--secondary-color);
}

.nav-link.btn-login:hover,
.nav-link.btn-logout:hover {
  color: white;
}

/* Mobile Menu Toggle Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 0.375rem;
  z-index: 1001;
  position: relative;
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--bg-alt) 50%, var(--bg-color) 100%);
  padding: 3rem 0 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-inner h1 {
  margin: 0 0 12px;
  font-size: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero-inner h1 .hero-title-large {
  font-size: 2.5rem !important;
  display: block;
  white-space: nowrap;
  font-weight: 700;
  color: var(--primary-color);
}
.hero-inner h1 .hero-title-medium {
  font-size: 1.875rem !important;
  display: block;
  white-space: nowrap;
  font-weight: 600;
  color: var(--primary-color);
}
.hero-inner h1 .hero-title-small {
  font-size: 1.5rem !important;
  display: block;
  font-weight: 400;
  opacity: 50%;
  white-space: nowrap;
  color: var(--primary-color);
}

.lead {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  background: white;
}

.btn:hover {
  background: var(--secondary-color);
  color: white;
}

.btn.primary {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.btn.primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section.alt {
  background-color: var(--bg-alt);
}

.section h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  text-align: center;
}

.section p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 1rem;
  text-align: center;
}

/* Products Section Header */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.products-header h2 {
  margin: 0;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
  background: white;
  padding: 0.25rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.view-btn {
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  color: var(--text-light);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  background: var(--bg-alt);
  color: var(--primary-color);
}

.view-btn.active {
  background: var(--secondary-color);
  color: white;
}

.view-btn.active:hover {
  background: var(--primary-color);
}

/* Products Notes */
.products-notes {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--secondary-color);
  border-radius: 8px;
}

.products-notes p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
  text-align: left;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.products-notes strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.products-grid.list-view {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.product-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.products-grid:not(.list-view) .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

/* List View Styles */
.products-grid.list-view .product-card {
  padding: 1rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(80px, auto) 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.products-grid.list-view .product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.products-grid.list-view .product-image-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.products-grid.list-view .product-image-wrapper:empty {
  display: none;
  width: 0;
}

.products-grid.list-view .product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-grid.list-view .product-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.products-grid.list-view .product-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.products-grid.list-view .product-card .description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products-grid.list-view .product-card .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0;
  white-space: nowrap;
  text-align: right;
}

.products-grid.list-view .product-card .quantity {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  white-space: nowrap;
  text-align: right;
}

.products-grid.list-view .product-card .product-actions {
  margin: 0;
  width: 150px;
  flex-shrink: 0;
}

.products-grid.list-view .product-card .product-actions .btn {
  width: 100%;
  padding: 0.625rem;
  font-size: 0.85rem;
}

.product-card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.products-grid:not(.list-view) .product-card .description {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  min-height: 1.4em;
}

.products-grid:not(.list-view) .product-card .description:empty {
  min-height: 1.4em;
}

.product-card .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0.5rem 0;
}

.product-card .quantity {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.products-grid:not(.list-view) .product-image-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
  min-height: 200px;
  overflow: hidden;
}

.products-grid:not(.list-view) .product-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.products-grid:not(.list-view) .product-image-wrapper:empty {
  display: none;
}

.products-grid:not(.list-view) .product-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  flex-shrink: 0;
}

.product-actions .btn {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.9rem;
}

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

.facility-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(44, 36, 22, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(44, 36, 22, 0.15);
}

.facility-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.facility-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  text-align: left;
}

.toggle-detail {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.toggle-detail:hover {
  background: var(--primary-color);
}

.detail-content {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.detail-content.hidden {
  display: none;
}

.detail-content p {
  text-align: left;
  color: var(--text-light);
}

/* Updates List */
.updates-list {
  max-width: 900px;
  margin: 0 auto;
}

.update-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(44, 36, 22, 0.1);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.update-card:hover {
  box-shadow: 0 4px 8px rgba(44, 36, 22, 0.15);
}

.update-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.update-header h3 {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin: 0;
}

.update-date {
  color: var(--text-light);
  font-size: 0.9rem;
  white-space: nowrap;
}

.update-card p {
  text-align: left;
  color: var(--text-light);
  margin: 0;
}

/* Updates Layout - Facebook and Map Side by Side */
.updates-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: start;
}

/* Facebook Feed Styling */
.facebook-feed-wrapper {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--border-color);
  width: 100%;
}

.facebook-feed-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.facebook-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.facebook-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.facebook-icon-wrapper svg {
  width: 24px;
  height: 24px;
  color: white;
}

.facebook-header-text h3 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem 0;
  color: white;
  font-weight: 700;
}

.facebook-header-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.facebook-follow-btn {
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.facebook-follow-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.facebook-feed-content {
  padding: 1.5rem;
  background: var(--bg-alt);
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.facebook-feed-content .fb-page {
  width: 100% !important;
  max-width: 500px;
}

/* Ensure Facebook plugin loads nicely */
#fb-root {
  display: block;
}

/* Style the Facebook iframe container */
.facebook-feed-content iframe {
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  background: white;
}

.facebook-link {
  text-align: center;
  margin-top: 1.5rem;
}

/* Map Wrapper Styling */
.map-wrapper {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--border-color);
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 700px;
}

.map-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.map-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.map-icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-icon-wrapper svg {
  width: 24px;
  height: 24px;
  color: white;
}

.map-header-text h3 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem 0;
  color: white;
  font-weight: 700;
}

.map-header-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.map-directions-btn {
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.map-directions-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.map-content {
  padding: 1.5rem;
  background: var(--bg-alt);
  flex: 1;
  display: flex;
  align-items: stretch;
  min-height: 600px;
}

.map-content iframe {
  width: 100%;
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Loading state */
.facebook-feed-content:empty::before {
  content: "Loading Facebook posts...";
  display: block;
  text-align: center;
  color: var(--text-light);
  padding: 3rem;
  font-size: 1.1rem;
}

@media (max-width: 1024px) {
  .updates-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .updates-layout {
    gap: 1.5rem;
  }

  .facebook-feed-wrapper {
    border-radius: 12px;
  }
  
  .facebook-feed-header {
    padding: 1.25rem 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .facebook-header-text h3 {
    font-size: 1.1rem;
  }
  
  .facebook-header-text p {
    font-size: 0.85rem;
  }
  
  .facebook-feed-content {
    padding: 1rem;
  }
  
  .facebook-feed-content .fb-page {
    width: 100% !important;
  }
  
  .facebook-follow-btn {
    width: 100%;
    text-align: center;
  }

  .map-wrapper {
    border-radius: 12px;
  }

  .map-header {
    padding: 1.25rem 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .map-header-text h3 {
    font-size: 1.1rem;
  }

  .map-header-text p {
    font-size: 0.85rem;
  }

  .map-content {
    padding: 1rem;
  }

  .map-content iframe {
    height: 400px;
  }

  .map-directions-btn {
    width: 100%;
    text-align: center;
  }

  .contact-info-grid {
    grid-template-columns: 1fr !important;
  }
}

.facebook-post-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}

.facebook-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.post-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.facebook-post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-message {
  margin: 0 0 16px;
  color: var(--text-color);
  line-height: 1.6;
  flex: 1;
  text-align: left;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.post-date {
  font-size: 14px;
  color: var(--text-light);
}

.post-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color .2s ease;
}

.post-link:hover {
  color: var(--primary-color);
}

.loading, .no-posts, .error-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.error-message a {
  color: var(--secondary-color);
  text-decoration: none;
}

.error-message a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .facebook-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-inner h1 {
    font-size: 0;
  }
  .hero-inner h1 .hero-title-large {
    font-size: 2rem !important;
  }
  .hero-inner h1 .hero-title-medium {
    font-size: 1.5rem !important;
  }
  .hero-inner h1 .hero-title-small {
    font-size: 1.2rem !important;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 320px);
    max-width: 320px;
    height: 100vh;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    pointer-events: none;
  }

  .nav.active {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    display: block;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link:hover {
    color: var(--secondary-color);
    padding-left: 0.5rem;
    transition: all 0.3s ease;
  }

  .auth-nav {
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
  }

  .auth-nav .nav-link {
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    text-align: left;
  }

  .btn-login,
  .btn-logout {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
  }

  .user-menu {
    width: 100%;
    position: relative;
  }
  
  .user-menu-toggle {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    justify-content: space-between;
  }

  .user-menu-dropdown {
    position: static;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-shadow: none;
    border: none;
    margin-top: 0;
    border-radius: 0;
  }

  .user-menu-dropdown.active {
    display: flex;
  }

  .user-menu .user-name {
    width: auto;
    padding: 0;
    border-bottom: none;
    margin-bottom: 0;
  }

  .user-menu-dropdown .nav-link {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .user-menu-dropdown .btn-logout {
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: none;
  }

  .section h2 {
    font-size: 2rem;
  }

  .facilities-grid {
    grid-template-columns: 1fr;
  }

  .update-header {
    flex-direction: column;
  }

  /* Products view toggle on mobile */
  .products-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-header h2 {
    width: 100%;
  }

  .view-toggle {
    align-self: flex-end;
  }

  .products-notes {
    margin: 1rem 0 1.25rem;
    padding: 0.875rem 1rem;
  }

  .products-notes p {
    font-size: 0.9rem;
  }

  /* List view on mobile */
  .products-grid.list-view .product-card {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .products-grid.list-view .product-image-wrapper {
    width: 60px;
    height: 60px;
    grid-row: 1 / 3;
  }

  .products-grid.list-view .product-info {
    grid-column: 2;
  }

  .products-grid.list-view .product-card .price,
  .products-grid.list-view .product-card .quantity {
    grid-column: 2;
    text-align: left;
    font-size: 0.85rem;
  }

  .products-grid.list-view .product-card .product-actions {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0.5rem;
  }

  .products-grid.list-view .product-card h3 {
    font-size: 1.1rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .header-inner {
    flex-wrap: nowrap;
    position: relative;
  }

  .brand {
    gap: 0.75rem;
    flex: 1;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-link {
    font-size: 1.25rem;
  }

  /* Overlay when menu is open */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
  }

  .nav-overlay.active {
    display: block;
  }
}

/* Authentication Styles */
.auth-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.user-menu-toggle:hover {
  background-color: var(--bg-alt);
}

.user-name {
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.user-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  margin-top: 0.5rem;
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

.user-menu-dropdown.active {
  display: flex;
}

.user-menu-dropdown .nav-link {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: block;
  text-decoration: none;
  color: var(--text-color);
  transition: background-color 0.2s;
}

.user-menu-dropdown .nav-link:last-child {
  border-bottom: none;
}

.user-menu-dropdown .nav-link:hover {
  background-color: var(--bg-alt);
  color: var(--primary-color);
  padding-left: 1rem;
}

.user-menu-dropdown .btn-logout {
  background: none;
  border: none;
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  cursor: pointer;
  border-top: 1px solid var(--border-color);
}

.user-menu-dropdown .btn-logout:hover {
  background-color: #fee;
  color: #c33;
}

.btn-login,
.btn-logout {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border-radius: 4px;
  transition: background 0.3s ease;
  text-decoration: none;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}

.btn-login:hover,
.btn-logout:hover {
  background: var(--secondary-color);
  color: white;
}

.hidden {
  display: none !important;
}

