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

:root {
  --sage-green: #a8b8a3;
  --dark-green: #2d5f3f;
  --cream: #faf9f7;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-700: #404040;
  --gray-900: #171717;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background-color: var(--cream);
}

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

/* Header */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-green);
} 

a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}


.footer-logo img, .logo img{
  height: 75px;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  transition: color 0.2s;
}

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

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

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gray-700);
  transition: color 0.2s;
}

.icon-btn:hover {
  color: var(--dark-green);
}

.btn-primary {
  background-color: var(--dark-green);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background-color: #1f4430;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: var(--gray-100);
  border-color: var(--dark-green);
  color: var(--dark-green);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gray-700);
}

.mobile-menu {
  display: none;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 0;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--gray-700);
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.mobile-nav-link:hover {
  background-color: var(--gray-100);
  color: var(--dark-green);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--sage-green) 0%, #c5d3c0 100%);
  background-image: url(img/hero.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 95% 75%;
  min-height: 600px;
  padding: 4rem 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  color: #202020;
}

.hero-description {
  font-size: 1.25rem;
  color: rgb(0, 0, 0);
  margin-bottom: 2rem;
  line-height: 1.6;
  background-color: #f1f1f198;
  padding-left: 15px;
  padding-top: 15px;
  padding-bottom: 15px;
  /* border-radius: 25px; */
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 10;
  margin-right: 5%;
  margin-left: 5%;
}

.stat-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-green);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-700);
}

/* Section Styles */
.why-shop,
.d-categories,
.favorite-plants,
.testimonials,
.blog {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-description {
  text-align: center;
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Benefits Grid */
.benefits-grid {
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
  grid-template-columns: auto;
  width: 30%;
}

.flex{
  display: flex;
}

.left .benefit-card{
  text-align: left;
}

.right{
  text-align: right;
  align-items: end;
}

.rlogo{
  display: flex;
  justify-content: end;
}

.benefit-card {
  padding: 2rem;
  background-color: var(--white);
  border-radius: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.benefit-icon {
  height: 80px;
  /* margin: 0 auto 1.5rem; */
  /* background-color: var(--sage-green); */
  border-radius: 50%;
  display: flex;
  align-items: center;


  color: var(--white);
}

.benefit-icon img{
  width: 80px;
  height: 80px;
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.benefit-description {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.feature-image {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  width: 45%;
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-image video {
  width: 100%;
  height: auto;
  display: block;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.category-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  height: 400px;
  cursor: pointer;
  transition: transform 0.3s;
}

.category-card:hover {
  transform: scale(1.02);
}

.category-card.large {
  grid-column: span 3;
  height: 500px;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 2rem;
  color: var(--white);
}

.category-tag {
  display: inline-block;
  background-color: var(--dark-green);
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.category-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.category-description {
  font-size: 1rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.btn-category {
  background-color: var(--white);
  color: var(--dark-green);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-category:hover {
  background-color: var(--dark-green);
  color: var(--white);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-tab {
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover,
.filter-tab.active {
  background-color: var(--dark-green);
  color: var(--white);
  border-color: var(--dark-green);
}

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

.product-card {
  background-color: var(--white);
  border-radius: 0.75rem;

  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

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

.product-image {
  position: relative;
  width: 100%;
  height: 300px;
  background-color: var(--gray-100);
  
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.15);
}

.radio-group{
    display: flex;
    gap: 15px;
    font-size: 0.7em;
    padding: 25px;
}
.radio-group label{
    min-width: 50px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dotted aliceblue;
    border-radius: 25px;
    padding: 5px;
}

.radio-group input:checked +.radioLabel{
    background-color: aliceblue;
    color: black;
}

.radio-group input{
    display: none;
}

/* Color swatch labels */
.colorLabel {
    min-width: 30px;
    min-height: 30px;
    padding: 0 !important;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex-wrap: nowrap;
    overflow-x: auto;                 /* enable horizontal scroll when overflowing */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;/* smooth scrolling on iOS */
    scroll-behavior: smooth;

}

.radio-group input[type="radio"][name*="color"]:checked + .colorLabel {
    border: 3px solid aliceblue !important;
    box-shadow: 0 0 8px rgba(240, 248, 255, 0.8);
}

/* --- Color swatches: circular + horizontal scroll container --- */

/* container that holds only the color swatches */
.color-group {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  align-items: center;
}

/* visual swatches */
.colorLabel {
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border: 2px solid #ccc;
  border-radius: 50%;
  box-sizing: border-box;
  flex: 0 0 auto; /* prevent shrinking */
  cursor: pointer;
  display: inline-block;
}

/* checked state */
.radio-group input[type="radio"][name*="color"]:checked + .colorLabel {
  border: 3px solid aliceblue !important;
  box-shadow: 0 0 8px rgba(240, 248, 255, 0.8);
}

/* small, subtle scrollbar */
.color-group::-webkit-scrollbar { height: 6px; }
.color-group::-webkit-scrollbar-thumb {
  background: rgba(174, 174, 174, 0.5);
  border-radius: 3px;
}
.color-group::-webkit-scrollbar-track { background: transparent; }

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--dark-green);
  color: var(--white);
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.product-badge.sale {
  background-color: #dc2626;
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.product-category {
  font-size: 0.875rem;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-green);
}

.btn-add-cart {
  background-color: var(--dark-green);
  color: var(--white);
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-add-cart:hover {
  background-color: #1f4430;
}

.view-all-container {
  text-align: center;
}

.btn-view-all {
  background-color: transparent;
  color: var(--dark-green);
  border: 2px solid var(--dark-green);
  padding: 0.875rem 2.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-view-all:hover {
  background-color: var(--dark-green);
  color: var(--white);
}

/* Promo Banner */
.promo-banner {
  background: linear-gradient(135deg, var(--dark-green) 0%, #3d7a52 100%);
  padding: 4rem 0;
  margin: 4rem 0;
}

.promo-banner .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.promo-content {
  color: var(--white);
}

.promo-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.promo-highlight {
  color: #fbbf24;
}

.promo-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn-promo {
  background-color: var(--white);
  color: var(--dark-green);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-promo:hover {
  background-color: #fbbf24;
  transform: translateY(-2px);
}

.promo-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.promo-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.testimonial-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-content {
  padding: 2rem;
}

.testimonial-rating {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author strong {
  display: block;
  color: var(--gray-900);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: var(--gray-700);
  font-size: 0.875rem;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--sage-green) 0%, #c5d3c0 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.newsletter-content {
  position: relative;
  z-index: 10;
}

.newsletter-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.newsletter-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  outline: none;
}

.btn-newsletter {
  background-color: var(--dark-green);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-newsletter:hover {
  background-color: #1f4430;
  transform: translateY(-2px);
}

.newsletter-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
}

.newsletter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background-color: var(--white);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

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

.blog-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.blog-content {
  padding: 1.5rem;
}

.blog-category {
  display: inline-block;
  background-color: var(--sage-green);
  color: var(--white);
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.btn-blog {
  background-color: transparent;
  color: var(--dark-green);
  border: 1px solid var(--dark-green);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-blog:hover {
  background-color: var(--dark-green);
  color: var(--white);
}

/* Footer */
.footer {
  background-color: var(--dark-green);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background-color 0.2s;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  width: 100%;
}

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

.payment-methods img {
  height: 25px;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-banner .container,
  .newsletter .container {
    grid-template-columns: 1fr;
  }

  .promo-image,
  .newsletter-image {
    position: relative;
    width: 100%;
    height: 300px;
  }

  .promo-image img,
  .newsletter-image img {
    opacity: 1;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card.large {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .nav,
  .header-actions .icon-btn {
    display: none;
  }

  .flex{
    flex-direction: column;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .benefits-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

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

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

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

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

  .newsletter-form {
    flex-direction: column;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions button {
    width: 100%;
  }

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

}
