@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f8f8f8;
  color: #e4b76e;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background: #fff;
  color: #fff;
  border-bottom: 1px solid #444;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 0;
  gap: 1rem;
}

.leftt, .centerr, .rightt {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.leftt {
  flex: 1;
}

.centerr {
  flex: 3;
  justify-content: center;
}

.rightt {
  flex: 1;
  justify-content: flex-end;
}

.logo img {
  height: 80px;
}

.search-box {
  display: flex;
  border: 1px solid #444;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  width: 100%;
  max-width: 600px;
}

.search-box input {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  color: #252525;
  flex: 1;
}

.search-box button {
  background: #000;
  color: white;
  border: none;
  padding: 0 1rem;
  cursor: pointer;
}

.cart {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #252525;
}

.cart-icon {
  text-decoration: none; 
  color: inherit;        
}

.burger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #252525;
}

.nav-bar nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid #444;
}

.nav-left {
  flex: 1;
  position: relative;
}

.nav-right {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-bar a {
  color: #252525;
  text-decoration: none;
  font-weight: 500;
}

.nav-bar a:hover {
  text-decoration: underline;
}

.category-btn {
  background: #333;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #333;
  border: 1px solid #444;
  border-top: none;
  z-index: 9999;
  width: 220px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  padding: 0.5rem 0;
}

.category-dropdown ul {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}

.category-dropdown li {
  width: 100%;
}

.category-dropdown a {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
  display: block;
  transition: background 0.3s;
}

.category-dropdown a:hover {
  background: #444;
}

.category-dropdown.open {
  display: block;
}

@media (max-width: 768px) {
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .leftt, .centerr, .rightt {
    flex: 0 0 100%;
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .leftt {
    order: 1;
    gap: 0.5rem;
  }

  .centerr {
    order: 3;
    display: flex;
    margin-top: 0.5rem;
    padding: 0 1rem;
  }

  .rightt {
    order: 2;
    justify-content: flex-end;
  }

  .burger {
    order: 1;
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .search-box {
    width: 100%;
    max-width: 100%;
  }

  .category-btn {
    display: none;
  }

  .nav-bar {
    display: none;
    width: 100%;
  }

  .nav-bar.open {
    display: block;
  }

  .nav-bar nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
  }

  .nav-right {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .category-dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
}


.catalog-container {
  max-width: 1400px;
  margin: 20px auto;
  padding: 30px 15px 100px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.catalog-container h2 {
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  color: #333;
}

.catalog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  justify-content: center;
  list-style: none;
  padding: 0;
}
.catalog-item {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 280px;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
}

.catalog-item:hover {
  box-shadow: 0 5px 15px rgb(0 0 0 / 0.2);
}

.catalog-item a {
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: #007BFF;
  margin-bottom: 12px;
  text-align: center;
  word-break: break-word;
}

.catalog-item img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgb(0 0 0 / 0.15);
}

@media (max-width: 600px) {
  .catalog-list {
    flex-direction: column;
    align-items: center;
  }

  .catalog-item {
    width: 90%;
  }
}

/* FOOTER */
.site-footer {
  background-color: #1F1F1F;
  color: #eee;
  padding: 3rem 2rem 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: auto;
}

.footer-logo img {
  width: 160px;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4,
.footer-legal h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #fff;
}

.footer-links ul,
.footer-contact ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-contact ul li,
.footer-legal ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-links a,
.footer-legal a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #e4b76e;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-bottom a {
  color: #87D037;
  text-decoration: none;
}
