* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --primary-color: #5f633b;
  --secondary-color: #f5f2e6;
  --text-color: #333;
  --text-light: #666;
  --text-lighter: #999;
  --text-white: #fff;
  --bg-color: #f5f2e6;
  --bg-white: #fff;
  --border-color: #ddd;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.15);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 10px var(--shadow-color);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 8px;
}

.logo span {
  color: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s ease;
  position: relative;
  padding-bottom: 5px;
  display: inline-block;
  font-weight: bold;
}

nav ul li a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

nav ul li a::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  position: absolute;
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

nav ul li a:hover::after {
  transform: scaleX(1);
}

.hero {
  background-color: var(--bg-color);
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.styles-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.search-filter-container {
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.search-box {
  display: flex;
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-input {
  flex: 1;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(242, 92, 84, 0.1);
}

.search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-lighter);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.filter-btn:hover {
  background-color: var(--bg-color);
}

.filter-btn.active {
  background-color: var(--primary-color);
  color: var(--text-white);
  border-color: var(--primary-color);
}

.price-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.price-filter label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.price-filter select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
}

.price-filter select:focus {
  border-color: var(--primary-color);
}

.styles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2%;
}

.style-card {
  background-color: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px var(--shadow-color);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  cursor: pointer;
}

.style-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px var(--shadow-hover);
}

.style-image {
  height: 350px;
  width: 100%;
  object-fit: cover;
}

.style-info {
  padding: 1.5rem;
}

.style-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.style-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.info-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--text-white);
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

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

.no-results {
  text-align: center;
  grid-column: 1 / -1;
  padding: 3rem;
  color: var(--text-light);
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-white);
  border-radius: 10px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--primary-color);
}

.product-details {
  padding: 2rem;
}

.product-search {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  outline: none;
}

.product-search:focus {
  border-color: var(--primary-color);
}

.products-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.product-card {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow-color);
}

.product-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.product-info {
  padding: 1rem;
}

.product-info h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.product-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.affiliate-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: var(--text-white);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: background-color 0.3s;
}

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

.price {
  font-weight: 700;
  color: var(--primary-color);
}

.modal-header {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #eee;
}

.modal-header img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 1.5rem;
}

.modal-header-text h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.modal-header-text p {
  color: var(--text-light);
  line-height: 1.6;
}

/* About Modal Styles */
.about-modal-content {
  max-width: 800px;
  background-color: var(--secondary-color);
}

.about-header {
  text-align: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #eee;
}

.about-header img {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
}

.about-header h2 {
  font-size: 2rem;
  color: var(--primary-color);
}

.about-content {
  padding: 2rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--text-color);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--bg-color);
  border-radius: 8px;
  transition: transform 0.3s;
  border: 3px solid var(--border-color);
}

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

.feature i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.feature p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0 !important;
}

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

/* Footer Styles */
footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 60px 0 30px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  border-radius: 50%;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-white);
  font-size: 18px;
  transition: background-color 0.3s;
}

.social-icon:hover {
  background-color: var(--primary-color);
}

footer p {
  color: #bbb;
  font-size: 14px;
  margin: 0;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  font-weight: bold;
  color: var(--text-white);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  color: #bbb;
  font-size: 14px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-color);
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 101;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 100;
  }

  nav.active {
    right: 0;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 80px;
  }

  nav ul li {
    margin: 1.5rem 0;
    width: 100%;
    text-align: center;
  }

  nav ul li a {
    font-size: 1.2rem;
    display: block;
    width: 100%;
    padding: 0.5rem 0;
  }

  .styles-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}
