@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-family: 'Outfit', sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.bg-left {
    width: 20%;
    height: 100vh;
    background-size: cover;
    background-position: left;
    transition: background-image 1s ease-in-out, opacity 1s ease-out;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    opacity: 0.6;
    animation: slideBackground 5s infinite alternate;
    background-color: rgba(0, 0, 0, 0.5); /* Warna gelap */
}

@keyframes slideBackground {
    
    100% {
        background-position: left;
    }
    100% {
        background-position: right;
    }
    
}

.main-content {
    width: 80%;
    margin-left: 20%;
    padding: 1rem;
}

header {
    background: white;
    padding: 2rem;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* logo atas */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    position: absolute;
    margin-top: 8px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.logo-text {
    color: #15803d;
    font-weight: bold;
}

/* menu atas */
.menu {
    display: flex;
    gap: 3.5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.menu a {
    color: #4b5563;
    text-decoration: none;
    font-weight: bold;
}

.menu a:hover {
    color: #15803d;
}

/* Style untuk nav */
nav {
    display: flex;
    justify-content: space-between; /* Logo dan hamburger berada di ujung yang berlawanan */
    align-items: center;
    padding: 10px 0;
  }

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 100;
  }
  
  .hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
    transition: all 0.3s ease;
  }
  
  /* Mobile Menu */
  @media screen and (max-width: 768px) {
    .hamburger {
      display: flex;
    }
  
    .menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 70%;
      height: 100vh;
      background-color: white;
      flex-direction: column;
      padding: 80px 20px;
      transition: right 0.3s ease;
      box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    }
  
    .menu.active {
      right: 0;
    }
  
    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
  
    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }
  
    .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
    }
  
    /* Mobile Menu Items */
    .menu a {
      padding: 10px 0;
      width: 100%;
      text-align: center;
      border-bottom: 1px solid #eee;
    }
  
    .menu .btn {
      margin: 10px 0;
      width: 100%;
    }
  
    .divider {
      display: none;
    }
  }


/* search */
/* Style untuk form search */
.search-section {
    margin-top: 20px;
  }
  
  .search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .search-input {
    width: 100%;
    padding: 10px;
    padding-right: 40px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 16px;
  }
  
  .search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
  }
  
  .recommended {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #555;
  }
  
  /* Style untuk layar mobile */
  @media (max-width: 768px) {
    .search-section {
      margin-top: 10px;
    }
  
    .search-container {
      max-width: 100%;
    }
  }

/* rekomndasi */
.recommended {
    color: #6b7280;
    margin: 1rem 0;
    font-weight: bolder;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.herb-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: transform 0.4s, box-shadow 0.2s;
}

.herb-card:hover {
    transform: translateY(5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
               0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.herb-image {
    width: 160px;
    height: 120px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 2px solid #006411;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.herb-content h3 {
    margin-bottom: 0.5rem;
}

.herb-content p {
    color: #4b5563;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.read-more {
    color: #16a34a;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Tablet Styles */
@media screen and (max-width: 768px) {
    .herb-card {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .herb-image {
        width: 140px;
        height: 105px;
    }

    .herb-content h3 {
        font-size: 1.1rem;
    }

    .herb-content p {
        font-size: 0.95rem;
    }
}

/* Mobile Styles */
@media screen and (max-width: 640px) {
    .herb-card {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .herb-image {
        width: 100%;
        height: 200px;
    }

    .herb-content {
        width: 100%;
    }

    .herb-content h3 {
        font-size: 1.2rem;
        margin-top: 0.5rem;
    }

    .read-more {
        display: inline-block;
        margin-top: 0.5rem;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    .herb-card {
        margin-bottom: 1.5rem;
    }

    .herb-image {
        height: 180px;
    }

    .herb-content p {
        font-size: 0.9rem;
    }
}

.container .resep-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    position: relative;
}

.resep-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid #e0e0e0;
    display: flex;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.resep-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.resep-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.resep-card h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-top: auto;
}

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

.leaf-decoration {
    position: fixed;
    z-index: -1;
    opacity: 0.2;
}

.leaf-1 {
    top: 0;
    left: 0;
    transform: rotate(45deg);
}

.leaf-2 {
    bottom: 0;
    right: 0;
    transform: rotate(225deg);
}

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

    .resep-card img {
        width: 150px;
        height: 150px;
    }

    .resep-card h3 {
        font-size: 14px;
    }
}

/* class produk */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
}

.produk-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    justify-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.produk-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.produk-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 10px;
}

.produk-name {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.buy-button {
    background: #fff;
    color: rgb(0, 0, 0);
    border: none;
    padding: 8px 30px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 2px solid  #4CAF50;
    transition: background 0.3s;
}

.buy-button:hover {
    background:  #4CAF50;
    color: white;
}

.cart-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .produk-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        padding: 10px;
    }

    .produk-image {
        width: 150px;
        height: 150px;
    }

    .produk-name {
        font-size: 16px;
    }
}


@media (min-width: 768px) {
    .bg-left {
        width: 20%;
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
    }

    .main-content {
        width: 80%;
        margin-left: 20%;
    }

    .menu {
        gap: 3.5rem;
    }
}


/* deskripsi */
.desk-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Header */

.desk-header {
    background: #A4B573;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    text-align: center;
    color: #000;
}

/* Back Button */
.desk-back-button {
    padding: 10px;
    text-align: left;
    background: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

.desk-back-button button {
    padding: 8px 16px;
    border: 1px solid #2e7d32;
    background-color: #ffffff;
    color: #2e7d32;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.desk-back-button button:hover {
    background-color: #2e7d32;
    color: #ffffff;
}

/* Content */
.desk-content {
    padding: 20px;
    text-align: center;
}

.desk-content img {
    max-width: 60%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2px;
}

.desk-content h2 {
    color: #2e7d32;
    font-size: 22px;
    margin-bottom: 15px;
}

.desk-content p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    text-align: justify;
}

/* produk content */
.product-header {
    background: #A4B573;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    text-align: center;
    color: #000;
}

.product-header h2 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.product-item {
    display: flex;
    gap: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-item:nth-child(2) {
    flex-direction: row-reverse;
}

.product-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-description {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.button-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-shopee {
    background: #f5f5f5;
    color: #333;
}

.btn-shopee:hover {
    background: #e5e5e5;
}

.btn-article {
    background: #A4B573;
    color: white;
}

.btn-article:hover {
    background: #8fa364;
}

@media (max-width: 768px) {
    .product-item,
    .product-item:nth-child(2) {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .product-image {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .button-group {
        justify-content: center;
    }
}

/* footer */
.footer {
    background: linear-gradient(135deg, #687a71 0%, #8fa364 100%);
    color: #000000;
    padding: 20px 0 20px;
    position: relative;
    overflow: hidden;
}

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

.footer-section {
    min-width: 200px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

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

.footer-desc {
    color: #000000;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-title {
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
}

.social-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn.facebook:hover {
    background: #1877f2;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-btn.tiktok:hover {
    background: linear-gradient(45deg, #00f2ea, #ff0050);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #000000;
    font-size: 14px;
}


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

    .footer-section.brand {
        grid-column: 1 / -1;
    }
}

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