/* ===== BLUE FARM - NAVY BLUE THEME (MOBILE FIXED) ===== */

:root {
  --primary-orange: #E86933;
  --secondary-orange: #ff7f50;
  --bg-navy: #001f3f;
  --bg-navy-dark: #001429;
  --bg-card: #002952;
  --text-white: #ffffff;
  --text-gray: #e0e0e0;
  --border-color: rgba(232, 105, 51, 0.3);
  --success: #00ff88;
  --danger: #ff4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-navy);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAVIGATION */
.nav {
  background: var(--bg-navy-dark);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--primary-orange);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.logo-icon {
  font-size: 28px;
}

.logo-image {
  height: 35px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.logo-text {
  color: var(--text-white);
  font-size: 18px;
  font-weight: bold;
}

.nav-links {
  display: none;
}

.cart-count {
  background: var(--primary-orange);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 11px;
  margin-left: 5px;
}

/* HAMBURGER MENU */
.hamburger-menu {
  display: block;
  cursor: pointer;
}

.hamburger-icon {
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  width: 100%;
  height: 3px;
  background: var(--primary-orange);
  border-radius: 3px;
}

/* SIDE MENU */
.side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  display: none;
}

.side-menu-overlay.active {
  display: block;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-navy-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
}

.side-menu.active {
  right: 0;
}

.side-menu-header {
  padding: 25px 15px;
  border-bottom: 2px solid var(--primary-orange);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.user-profile {
  display: flex;
  gap: 12px;
  flex: 1;
}

.user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.user-info h3 {
  color: var(--text-white);
  margin-bottom: 5px;
  font-size: 15px;
}

.user-info p {
  color: var(--text-gray);
  font-size: 13px;
}

.close-menu {
  font-size: 28px;
  color: var(--text-gray);
  cursor: pointer;
  padding-left: 10px;
}

.side-menu-content {
  padding: 15px 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-white);
  text-decoration: none;
  font-size: 15px;
}

.menu-item:hover {
  background: var(--bg-card);
  color: var(--primary-orange);
}

.menu-icon {
  font-size: 18px;
  width: 22px;
}

.menu-badge {
  background: var(--primary-orange);
  color: white;
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 11px;
  margin-left: auto;
}

.menu-divider {
  height: 1px;
  background: var(--border-color);
  margin: 10px 20px;
}

/* HERO SECTION */
.hero {
  padding: 90px 20px 50px;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-navy-dark) 0%, var(--bg-navy) 100%);
}

.hero h1 {
  font-size: 26px;
  color: var(--primary-orange);
  margin-bottom: 15px;
  line-height: 1.3;
}

.hero p {
  font-size: 15px;
  color: var(--text-gray);
  margin-bottom: 30px;
  line-height: 1.5;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  width: 100%;
  padding: 14px 25px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  display: inline-block;
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
}

/* SECTIONS */
.section {
  padding: 50px 15px;
}

.section-title {
  text-align: center;
  font-size: 24px;
  color: var(--primary-orange);
  margin-bottom: 30px;
}

/* PRODUCT GRID - MOBILE OPTIMIZED */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 100%;
}

.product-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px;
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: 0.3s;
}

.product-card:active {
  transform: scale(0.98);
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product-card h4 {
  color: var(--text-white);
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.3;
  height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card .price {
  color: var(--primary-orange);
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}

.cart-btn {
  width: 100%;
  padding: 10px;
  background: var(--primary-orange);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

/* SEARCH BAR */
.search-container {
  max-width: 100%;
  margin: 0 auto 30px;
  position: relative;
  padding: 0 10px;
}

.search-container input {
  width: 100%;
  padding: 12px 50px 12px 15px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-white);
  font-size: 14px;
}

.search-container button {
  position: absolute;
  right: 15px;
  top: 5px;
  padding: 8px 15px;
  background: var(--primary-orange);
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 13px;
  font-weight: bold;
}

/* ARTICLES GRID */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  max-width: 100%;
}

.article-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  cursor: pointer;
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-content {
  padding: 15px;
}

.article-category {
  display: inline-block;
  background: var(--primary-orange);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 11px;
  margin-bottom: 10px;
}

.article-card h3 {
  color: var(--text-white);
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-meta {
  color: var(--text-gray);
  font-size: 12px;
  margin-top: 10px;
}

/* FOOTER */
footer {
  background: var(--bg-navy-dark);
  padding: 30px 20px;
  text-align: center;
  color: var(--text-gray);
  border-top: 2px solid var(--primary-orange);
  margin-top: 50px;
  font-size: 13px;
}

/* CATEGORY & FEATURE BOXES */
.category-box {
  background: var(--bg-navy-dark);
  padding: 20px 15px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  border: 2px solid var(--border-color);
}

.category-box div {
  font-size: 36px;
  margin-bottom: 10px;
}

.category-box h3 {
  color: var(--text-white);
  margin-bottom: 5px;
  font-size: 16px;
}

.category-box p {
  color: var(--text-gray);
  font-size: 12px;
}

.feature-box {
  background: var(--bg-card);
  padding: 25px 20px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid var(--border-color);
}

.feature-box div {
  font-size: 48px;
  margin-bottom: 15px;
}

.feature-box h3 {
  color: var(--text-white);
  margin-bottom: 10px;
  font-size: 17px;
}

.feature-box p {
  color: var(--text-gray);
  line-height: 1.5;
  font-size: 14px;
}

/* DESKTOP STYLES */
@media(min-width: 769px) {
  .nav {
    padding: 15px 40px;
  }

  .logo-text {
    font-size: 24px;
  }

  .logo-image {
    height: 40px;
    max-width: 150px;
  }

  .nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
  }

  .nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
  }

  .nav-links a:hover {
    color: var(--primary-orange);
  }

  .hamburger-menu {
    display: none;
  }

  .hero {
    padding: 120px 40px 80px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero p {
    font-size: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .btn-primary,
  .btn-secondary {
    width: auto;
    padding: 15px 40px;
    font-size: 18px;
  }

  .section {
    padding: 80px 40px;
  }

  .section-title {
    font-size: 42px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .product-card {
    padding: 20px;
  }

  .product-card img {
    height: 200px;
  }

  .product-card h4 {
    font-size: 18px;
    height: auto;
  }

  .product-card .price {
    font-size: 22px;
  }

  .cart-btn {
    padding: 12px;
    font-size: 16px;
  }

  .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
  }

  .article-card img {
    height: 220px;
  }

  .article-content {
    padding: 25px;
  }

  .article-card h3 {
    font-size: 22px;
  }

  .search-container {
    max-width: 600px;
  }

  .search-container input {
    padding: 15px 60px 15px 20px;
    font-size: 16px;
  }

  .search-container button {
    padding: 10px 25px;
    font-size: 14px;
  }
}