.main-container {
  max-width: 100%;
  margin: 0 auto;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.3s ease-out forwards;
}

.featured-title {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-header {
  margin: 30px 0;
}

.titles {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}

h1 {
  font-size: 2.5em;
  font-weight: 700;
  color: #444;
  text-shadow: 1px 1px 2px #6c6c6c;
  margin-bottom: 15px;
  text-align: center;
}

.dashboard-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background-color: #f9f9f9;
}

.other-content {
  max-width: 1200px;
  margin: 0 auto;
}

.featured-section {
  margin: 50px 0 20px 0;
  padding: 20px 0;
}

.featured-section h2 {
  color: #256035;
  font-size: 24px;
  margin-bottom: 20px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.learn-more {
  position: relative;
  display: inline-block;
  cursor: pointer;
  outline: none;
  border: 0;
  vertical-align: middle;
  text-decoration: none;
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

.learn-more {
  width: 12rem;
  height: auto;
  margin: 0 auto;
  display: block;
}

.learn-more .circle {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: relative;
  display: block;
  margin: 0;
  width: 3rem;
  height: 3rem;
  background: #256035;
  border-radius: 1.625rem;
}

.learn-more .circle .icon {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  background: #fff;
}

.learn-more .circle .icon.arrow {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  left: 0.625rem;
  width: 1.125rem;
  height: 0.125rem;
  background: none;
}

.learn-more .circle .icon.arrow::before {
  position: absolute;
  content: "";
  top: -0.29rem;
  right: 0.0625rem;
  width: 0.625rem;
  height: 0.625rem;
  border-top: 0.125rem solid #fff;
  border-right: 0.125rem solid #fff;
  transform: rotate(45deg);
}

.button-text a {
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0;
  margin: 0 0 0 1.85rem;
  color: #256035;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.button-text a:hover {
  color: #ffffff;
}

.learn-more:hover .circle {
  width: 100%;
}

.learn-more:hover .circle .icon.arrow {
  background: #fff;
  transform: translate(1rem, 0);
}

.learn-more:hover .button-text {
  color: #fff;
}

/* Responsive adjustments for featured grid */
@media (max-width: 1200px) {
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
}

/* Reset some styles to avoid conflicts */
.featured-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
}

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

.featured-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.featured-info,
.product-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.featured-info h3,
.product-info h3 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  color: #333;
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prdct-nm {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price {
  font-size: 16px;
  font-weight: 500;
  color: #2c3e50;
  text-align: center;
}

.prdct-availability {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 5px;
}

.status-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  justify-content: center;
}

.status-bread-of-the-week {
  color: rgb(104, 123, 83);
}

.status-available {
  color: #1a4a28;
}

.status-unavailable {
  color: #ad2e2a;
}

.status-featured {
  background-color: #e483ad;
  color: white;
}

.quantity-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

.quantity-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
}

.quantity-controls input {
  width: 60px;
  height: 30px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  appearance: textfield;
}

.add-to-cart {
  display: block;
  width: 100%;
  margin-top: 10px;
  text-align: center;
  padding: 0.5rem 1rem;
  background-color: #256035;
  color: white;
  text-align: center;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-to-cart:hover {
  background-color: #1a4626;
}

.add-to-cart.unavailable {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.add-to-cart.unavailable:hover {
  background-color: #7f8c8d;
}

.stock {
  color: #666;
  font-size: 14px;
}

/* Product Card Specific */
.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  filter: blur(0);
}

.featured-grid:hover .product-card {
  filter: blur(2px);
  transform: scale(0.98);
  opacity: 0.8;
}

.featured-grid .product-card:hover {
  transform: translateY(-5px) scale(1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  filter: blur(0);
  opacity: 1;
}

.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

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

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  margin: 20px auto;
}

.close {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  z-index: 1;
}

.modal-price {
  font-size: 16px;
  font-weight: 500;
  color: #2c3e50;
  margin: 10px 0;
  text-align: center;
}

.close:hover {
  color: #333;
}

.modal-body {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.product-images {
  flex: 1;
}

.main-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.thumbnail-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.thumbnail-container img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.thumbnail-container img:hover {
  border-color: #404040;
}

.thumbnail-container img.active {
  border-color: #404040;
}

.product-details {
  flex: 1;
}

.product-details h3 {
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  margin-top: 15px;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.product-details .price {
  text-align: left;
  font-size: 20px;
  font-weight: 600;
}

.product-details .description {
  margin: 10px 0;
  line-height: 1.6em;
  color: #404040;
  word-wrap: break-word;
  max-width: 100%;
  text-align: justify;
}

.prdct-qty {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-quantity {
  margin: 15px 0;
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-top: 0;
}

/* Featured product badge */
.featured-product {
  position: relative;
}

.featured-product::before {
  content: "☆ Featured";
  width: auto;
  position: absolute;
  font-size: 11px;
  top: 10px;
  right: 10px;
  background-color: #e483ad;
  color: white;
  padding: 3px 10px;
  border-radius: 15px;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal-body {
    flex-direction: column;
  }

  .main-image {
    height: 300px;
  }

  .thumbnail-container {
    justify-content: center;
  }

  .product-details h3,
  .product-details .price,
  .product-details .description {
    max-width: 100%;
  }

  .prdct-qty {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
  }

  .close {
    right: 10px;
    top: 5px;
  }
}

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

  .blog-container {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* Hero Carousel Styles */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.05);
  background-size: cover;
  background-position: center;
  will-change: transform, opacity;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-slide.fade-out {
  opacity: 0;
  transform: scale(0.95);
  z-index: 1;
}

/* Product Card Animation */
.product-card.featured-product {
  opacity: 0;
  transform: translateY(30px);
}

.product-card.featured-product.fade-up-1.visible {
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.1s;
}

.product-card.featured-product.fade-up-2.visible {
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.4s;
}

.product-card.featured-product.fade-up-3.visible {
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.7s;
}

.product-card.featured-product.fade-up-4.visible {
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 1s;
}

/* Service Section Styles */
.service-section {
  padding: 40px 0;
  margin: 0;
  background-color: #f9f9f9;
  border-radius: 10px;
}

.service-section .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.service-subtitle {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.service-card.animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(37, 96, 53, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-icon img {
  width: 40px;
  height: 40px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.service-card p {
  color: #666;
  line-height: 1.6;
}

/* Responsive adjustments for service section */
@media (max-width: 992px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-title {
    font-size: 28px;
  }
}

/* */
