/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  padding-top: 80px;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

h1, h2, h3 {
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
  margin-bottom: 1rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.06);
  z-index: 2000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s;
}

.nav-links a.active {
  color: #4caf50;
}

.nav-links a:hover {
  color: #4caf50;
}

.cart-icon {
  background-color: #4caf50;
  padding: 6px 12px;
  border-radius: 8px;
  color: #fff;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  padding: 8px;
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1500;
}

.menu-overlay.show {
  display: block;
}

/* Cart Popup */
.cart-popup-container {
  position: fixed;
  right: 0;
  top: 84px;
  width: 100%;
  max-width: 400px;
  height: 70vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgb(53, 51, 51);
  background-color: rgb(238, 238, 238);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}

.cart-popup-container.show {
  transform: translateX(0%);
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgb(177, 177, 177);
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 10px;
  background: white;
}

.cart-item .item-img-container img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.item-details-container {
  flex: 1;
  margin-left: 12px;
}

.item-details-container p {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.update-quantity-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.update-quantity-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #4caf50;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.cart-footer {
  padding: 16px;
  border-top: 1px solid rgb(177, 177, 177);
  background: white;
}

.subtotal-container {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.checkout-btn {
  width: 100%;
  height: 50px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: bold;
  background-color: #ffc107;
  color: #000;
  transition: background-color 0.3s;
}

.checkout-btn:hover {
  background-color: #e0a800;
}

.cart-note-container p {
  margin: 0;
  font-size: 14px;
  color: #666;
  text-align: center;
}

/* Blog Hero Section */
.blog-hero {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.blog-hero-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white;
}

.blog-hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.blog-search {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.blog-search-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-size: 16px;
}

.blog-search-btn {
  background: #ffc107;
  color: #000;
  padding: 12px 24px;
  font-weight: 600;
  transition: background 0.3s;
}

.blog-search-btn:hover {
  background: #e0a800;
}

/* Blog Categories */
.blog-categories {
  padding: 20px 0;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.categories-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-scroller::-webkit-scrollbar {
  display: none;
}

.category-btn {
  white-space: nowrap;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: white;
  color: #666;
  font-size: 14px;
  transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
  background: #4caf50;
  color: white;
  border-color: #4caf50;
}

/* Featured Post */
.featured-post {
  padding: 50px 0 30px;
}

.featured-post-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.featured-post-image {
  position: relative;
  height: 300px;
}

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

.featured-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ffc107;
  color: #000;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.featured-post-content {
  padding: 0 25px 25px;
}

.featured-post-content .post-category {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.featured-post-title {
  font-size: 1.8rem;
  margin: 15px 0;
  color: #111827;
  line-height: 1.3;
}

.featured-post-excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.read-more-btn {
  display: inline-block;
  background: #4caf50;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s;
}

.read-more-btn:hover {
  background: #45a049;
}

/* Blog Posts Section */
.blog-posts {
  padding: 50px 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #111827;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.blog-post {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.blog-post-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.blog-post-image .post-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255,255,255,0.9);
  color: #4caf50;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.blog-content {
  padding: 20px;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #111827;
  line-height: 1.4;
}

.blog-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-content .post-meta {
  margin-bottom: 15px;
}

.read-more {
  color: #4caf50;
  font-weight: 500;
  transition: color 0.3s;
}

.read-more:hover {
  color: #45a049;
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 40px;
}

.load-more-btn {
  background: #4caf50;
  color: white;
  padding: 12px 30px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.3s;
}

.load-more-btn:hover {
  background: #45a049;
}

/* Newsletter Section */
.blog-newsletter {
  padding: 50px 0;
  background: #f8f9fa;
}

.newsletter-card {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  text-align: center;
}

.newsletter-content h2 {
  font-size: 1.8rem;
  color: #111827;
  margin-bottom: 15px;
}

.newsletter-content p {
  color: #666;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ddd;
  font-size: 16px;
}

.newsletter-form button {
  background: #4caf50;
  color: white;
  padding: 12px 24px;
  font-weight: 500;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: #45a049;
}

/* Footer */
footer {
  background-color: #4caf50;
  color: #fff;
  padding: 40px 20px 20px;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  margin: 8px 0;
  color: #fff;
  display: block;
}

.footer-section a:hover {
  text-decoration: underline;
}

.send-email input[type="email"] {
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 10px;
  width: 100%;
  border: none;
  border-radius: 4px;
}

.send-email button {
  padding: 10px 20px;
  background-color: #ffc107;
  color: #000;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.send-email button:hover {
  background-color: #e0a800;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.payment-icons img {
  width: 50px;
  height: auto;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* Responsive Design */
@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .featured-post-card {
    grid-template-columns: 1fr 1fr;
  }
  
  .featured-post-image {
    height: auto;
  }
  
  .newsletter-card {
    grid-template-columns: 1fr 1fr;
    text-align: left;
    align-items: center;
  }
  
  .newsletter-content p {
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 70px;
  }

  .nav {
    padding: 10px 15px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75%;
    max-width: 300px;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 20px;
    gap: 16px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 2001;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    transform: translateX(0%);
  }

  .nav-links a {
    font-size: 18px;
    padding: 8px 0;
    width: 100%;
  }

  .blog-hero {
    padding: 40px 0;
  }

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

  .blog-search {
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
  }

  .blog-search-input,
  .blog-search-btn {
    width: 100%;
  }

  .featured-post-title {
    font-size: 1.5rem;
  }

  .newsletter-card {
    padding: 25px;
  }

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

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  .cart-popup-container {
    top: 70px;
    max-width: 100%;
    height: calc(100vh - 70px);
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}