/* =========================
   🌿 IMPROVED STYLES.CSS
   Based on user's original file
   ========================= */

/* ---------- RESET & BASE ---------- */
:root {
  --primary-color: #1f4037;
  --secondary-color: #99f2c8;
  --background-color:#34784e;
  --text-color: #222;
  --border-radius: 12px;
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

header, footer {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  text-align: center;
  position: relative;
}

a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

.hero-section {
  background: linear-gradient(to right, var(--primary-color), #4ca1af);
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-primary {
  background: var(--secondary-color);
  color: #000;
  padding: 0.8rem 1.6rem;
  border-radius: var(--border-radius);
  font-weight: bold;
  transition: var(--transition);
}

.btn-primary:hover {
  background: #bfffe0;
  color: #000;
}

.featured-section {
  margin-top: 3rem;
}

#featured-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #34784e;
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: var(--transition);
  text-align: center;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.product-info {
  margin-top: 0.5rem;
}

.product-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.product-info p {
  font-size: 0.95rem;
  color: #555;
}

button, .btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

button:hover, .btn:hover {
  background: var(--secondary-color);
  color: #000;
}

form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

form label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

form input[type="text"],
form input[type="number"],
form input[type="file"],
form textarea,
form select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

form input[type="checkbox"] {
  margin-right: 0.5rem;
}

.featured-tag,
.new-tag,
.discount-tag {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  border-radius: 8px;
  margin-right: 0.5rem;
  color: white;
}

.featured-tag {
  background-color: #2e8b57;
}

.new-tag {
  background-color: #007bff;
}

.discount-tag {
  background-color: #dc3545;
}

.badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: bold;
  color: white;
}

.badge.new {
  background-color: var(--secondary-color);
  color: #000;
}

.badge.discount {
  background-color: #dc3545;
}

.badge.featured {
  background-color: #2e8b57;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

footer {
  margin-top: 4rem;
  font-size: 0.9rem;
}

/* Category filter styles */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.category-filter a {
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: var(--transition);
  text-decoration: none;
}

.category-filter a:hover {
  background-color: var(--secondary-color);
  color: #000;
}

.category-filter a.active {
  background-color: #4ca1af;
  font-weight: bold;
}

/* Navigation buttons (home, catalog, order, etc) */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.nav-buttons a {
  background-color: var(--primary-color);
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.nav-buttons a:hover {
  background-color: var(--secondary-color);
  color: #000;
}

/* Burger menu styles */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  z-index: 1001;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px;
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-top: 1rem;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* Mobile styles */
@media (max-width: 768px) {
    .mobile-nav {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  padding: 1rem 0;
  z-index: 999;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.mobile-nav ul li {
  margin-bottom: 1rem;
}

.mobile-nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
}
  .burger {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-color);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 1rem 0;
  }

  .nav-menu.active {
    display: flex;
  }

  header, footer {
    padding: 1rem;
    text-align: center;
  }

  .container {
    padding: 1rem;
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }

  .nav-buttons {
    flex-direction: column;
    align-items: center;
  }

  .nav-buttons a {
    width: 100%;
    text-align: center;
  }

  .category-filter {
    justify-content: center;
  }

  .product-card {
    padding: 1rem 0.5rem;
  }

  .product-info h3 {
    font-size: 1rem;
  }

  .product-info p {
    font-size: 0.85rem;
  }

  form {
    padding: 1rem;
  }

  form input[type="text"],
  form input[type="number"],
  form input[type="file"],
  form textarea,
  form select {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }
}

/* ------------------------------- */
/* ՆՈՐԱՑՎԱԾ ԱՊՐԱՆՔԻ ՄԱՆՐԱՄԱՍՆ ԷՋԻ ՍՏԻԼ (product.html) */
/* ------------------------------- */
.product-detail {
  display: flex;
  gap: 2rem;
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  margin-bottom: 3rem;
}

.product-detail-images {
  flex: 1;
}

.product-detail-images img {
  width: 100%;
  border-radius: var(--border-radius);
  object-fit: cover;
  max-height: 500px;
}

.product-detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-detail-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.product-detail-info p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #444;
}

.product-detail-info .price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.product-detail-info .tags {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .product-detail {
    flex-direction: column;
    padding: 1rem;
  }

  .product-detail-info h2 {
    font-size: 1.6rem;
  }

  .product-detail-info .price {
    font-size: 1.3rem;
  }
}
/* Թաքցնել կամ փոքրացնել լոգոն կոնտակտ և զամբյուղ էջերում */
.contacts-page .logo img,
.cart-page .logo img {
  max-width: 60px;
  height: auto;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.product-card {
  position: relative;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.product-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.product-info {
  padding: 1rem;
  text-align: left;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.product-info p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.8rem;
}

.product-info .price {
  font-weight: bold;
  font-size: 1rem;
  color: #222;
}

.product-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}
.cart-order {
  margin-top: 1.5rem;
  text-align: right;
}

.cart-order .btn-primary {
  background-color: var(--primary-color);
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: var(--border-radius);
  font-weight: bold;
  text-decoration: none;
  transition: var(--transition);
}

.cart-order .btn-primary:hover {
  background-color: var(--secondary-color);
  color: #000;
}
/* Հատուկ կոնտակտային էջի համար */
.contacts-page {
  background-color: #fdfdfd; /* բաց մաքուր ֆոն */
  color: #222; /* մուգ տեքստ՝ լավ ընթեռնելիություն */
}

/* Կոնտակտների ցուցակի հղումներ */
.contact-list a {
  color: #222; /* տեսանելի հղման գույն */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Հղում անցնելու ժամանակ */
.contact-list a:hover {
  color: var(--primary-color); /* կայքի հիմնական գույնը, օրինակ՝ կանաչ */
  text-decoration: underline;
}

/* Այկոնները և տեքստը հավասարեցնելու համար */
.contact-list li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-list i {
  color: var(--primary-color);
  min-width: 20px;
}
.custom-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #2e7d32; /* Կանաչ */
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.custom-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.cart-item img {
  max-width: 120px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}
.main-header {
  background-color: #1e3d2f;
  color: white;
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.container.centered-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.nav ul li a:hover,
.nav ul li a.active {
  color: #a0d8a7;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-switch button {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: white;
}

.burger-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 70px;
  right: 0;
  background: #1e3d2f;
  width: 200px;
  padding: 20px;
  z-index: 998;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
}

.mobile-nav ul li {
  margin-bottom: 15px;
}

.mobile-nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .burger-menu {
    display: block;
  }
}
.catalog-section {
  padding-top: 100px; /* Պահանջվող բարձրությունը header-ի */
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 20px;
    background-color: #16352f;
}

.header-container .logo img {
    height: 50px;
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding-left: 0;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.cart-icon a {
    font-size: 24px;
    color: white;
    text-decoration: none;
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-switch button {
    background: none;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
}
.product-title {
  color: black;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  transition: none;
}
.product-price {
  color: black;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.3rem;
}
.logo img {
  max-height: 90px;
  height: auto;
  width: auto;
}

/* Փոքր էկրանների (մոբայլ) համար */
@media screen and (max-width: 768px) {
  .logo img {
    max-height: 60px;
  }
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  position: relative;
}

.center-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.left-nav .nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.right-lang {
  display: flex;
  gap: 10px;
}

.lang-switch button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}
/* -------------------------------
   🔤 ԼԵԶՈՒՆՆԵՐԻ ԿՈՃԱԿՆԵՐ (.lang-switch)
---------------------------------- */
.lang-switch {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.lang-switch a {
  color: #cce3d3;
  text-decoration: none;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switch a:hover,
.lang-switch a.active {
  background-color: #2f463c;
  color: #ffffff;
}


/* ----------------------------------
   ⚙️ ADMIN PANEL UI ՍԹԻԼՆԵՐ
------------------------------------- */
.admin-panel {
  background-color: #1e2e27;
  color: #e3f2ea;
  padding: 2rem;
  border-radius: 1rem;
}

.admin-panel h1,
.admin-panel h2 {
  color: #b5d8c7;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #3e5c50;
  background-color: #2c3f36;
  color: #ffffff;
  margin-bottom: 1rem;
}

.admin-form button {
  background-color: #4d6b5c;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.admin-form button:hover {
  background-color: #628271;
}


/* ----------------------------------
   🛒 ԴԱՏԱՐԿ ԶԱՄԲՅՈՒՂ (EMPTY CART)
------------------------------------- */
.empty-cart {
  text-align: center;
  padding: 4rem 1rem;
  color: #aabfb2;
  font-size: 1.25rem;
}

.empty-cart i {
  font-size: 3rem;
  color: #789f8c;
  margin-bottom: 1rem;
  display: block;
}


/* ----------------------------------
   🚫 404 ԿԱՄ MAINTENANCE ԷՋԻ ՍԹԻԼ
------------------------------------- */
.error-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 80vh;
  text-align: center;
  color: #c1d7cb;
}

.error-page h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #8ebfa8;
}

.error-page p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.error-page a {
  color: #ffffff;
  background-color: #4d6b5c;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.error-page a:hover {
  background-color: #628271;
}
/* Mobile menu styles - consolidated */
.burger-menu {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: white;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: all var(--transition);
}

@media (max-width: 768px) {
  .burger-menu {
    display: block;
    order: 2; /* Positions burger to the right */
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--primary-color);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }
}
.dragging {
  opacity: 0.5;
}
.placeholder {
  background: #ccc;
  border: dashed 1px #999;
  margin: 4px 0;
  height: 40px;
}
.featured-item {
  cursor: grab;
  padding: 8px;
  background: #2f4f2f;
  margin-bottom: 4px;
  color: white;
}
.back-button {
  display: inline-block;
  margin-top: 1rem;
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: #333;
}
