/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3rem;

  /*========== Colors ==========*/
  --hue: 174;
  --sat: 63%;
  --first-color: hsl(var(--hue), var(--sat), 40%);
  --first-color-alt: hsl(var(--hue), var(--sat), 36%);
  --title-color: hsl(var(--hue), 12%, 15%);
  --text-color: hsl(var(--hue), 8%, 35%);
  --body-color: hsl(var(--hue), 100%, 99%);
  --container-color: #fff;

  /*========== Font and typography ==========*/
  --body-font: "Open Sans", sans-serif;
  --h1-font-size: 1.5rem;
  --normal-font-size: 0.938rem;
  --tiny-font-size: 0.625rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

@media screen and (min-width: 968px) {
  :root {
    --h1-font-size: 2.25rem;
    --normal-font-size: 1rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: rgb(255, 255, 255);
  color: var(--text-color);
  background-color: #ffffff;
  /* background-color: #a7b9f7;
  background: linear-gradient(to right, #ffffff, #a7b9f7); */
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
  padding: 4.5rem 0 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  text-align: center;
  /* margin-bottom: 1.5rem; */
}

#berita .card__button {
  display: block;
  background-color: var(--first-color);
  padding: 0.75rem 1rem; /* Mengurangi lebar padding */
  border-radius: 0.25rem;
  color: white;
  font-weight: 600;
  text-align: center;
  margin: 0 auto; /* Menengahkan secara horizontal */
  max-width: 150px; /* Menetapkan lebar maksimum */
  width: 100%; /* Menggunakan lebar penuh dari container */
}

#konsul .card__button {
  display: block;
  background-color: var(--first-color);
  padding: 0.75rem 1rem; /* Mengurangi lebar padding */
  border-radius: 0.25rem;
  color: white;
  font-weight: 600;
  text-align: center;
  margin: 0 auto; /* Menengahkan secara horizontal */
  max-width: 150px; /* Menetapkan lebar maksimum */
  width: 100%; /* Menggunakan lebar penuh dari container */
}

.section__height {
  height: 100vh;
}

/*=============== LAYOUT ===============*/
.container {
  max-width: 968px;
  margin-left: 1rem;
  margin-right: 1rem;
}

/*=============== HEADER ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--container-color);
  z-index: var(--z-fixed);
  transition: 0.4s;
}

/*=============== NAV ===============*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__img {
  width: 32px;
  border-radius: 50%;
}

.nav__logo {
  color: var(--title-color);
  font-weight: 600;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: var(--container-color);
    box-shadow: 0 -1px 12px hsla(var(--hue), var(--sat), 15%, 0.15);
    width: 100%;
    height: 4rem;
    padding: 0 1rem;
    display: grid;
    align-content: center;
    border-radius: 1.25rem 1.25rem 0 0;
    transition: 0.4s;
  }
}

.nav__list,
.nav__link {
  display: flex;
}

.nav__link {
  flex-direction: column;
  align-items: center;
  row-gap: 4px;
  color: var(--title-color);
  font-weight: 600;
}

.nav__list {
  justify-content: space-around;
}

.nav__name {
  font-size: var(--tiny-font-size);
  /* display: none;*/ /* Minimalist design, hidden labels */
}

.nav__icon {
  font-size: 1.5rem;
}

/*Active link*/
.active-link {
  position: relative;
  color: var(--first-color);
  transition: 0.3s;
}

/* Minimalist design, active link */
/* .active-link::before{
  content: '';
  position: absolute;
  bottom: -.5rem;
  width: 4px;
  height: 4px;
  background-color: var(--first-color);
  border-radius: 50%;
} */

/* Change background header */
.scroll-header {
  box-shadow: 0 1px 12px hsla(var(--hue), var(--sat), 15%, 0.15);
}

/*=============== MEDIA QUERIES ===============*/
/* For small devices */
/* Remove if you choose, the minimalist design */
@media screen and (max-width: 320px) {
  .nav__name {
    display: none;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .nav__list {
    justify-content: center;
    column-gap: 3rem;
  }
}

@media screen and (min-width: 767px) {
  body {
    margin: 0;
  }
  .section {
    padding: 5rem 0 2rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem); /* 4.5rem */
  }
  .nav__img {
    display: none;
  }
  .nav__icon {
    display: none;
  }
  .nav__name {
    font-size: var(--normal-font-size);
    /* display: block; */ /* Minimalist design, visible labels */
  }
  .nav__link:hover {
    color: var(--first-color);
  }

  /* First design, remove if you choose the minimalist design */
  .active-link::before {
    content: "";
    position: absolute;
    bottom: -0.75rem;
    width: 4px;
    height: 4px;
    background-color: var(--first-color);
    border-radius: 50%;
  }

  /* Minimalist design */
  /* .active-link::before{
      bottom: -.75rem;
  } */
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
}

/* informasi */
#table-section .div-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 10px auto;
  background-color: #f0f0f0;
  padding: 10px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center; /* Menengahkan konten secara horizontal */
}

#table-section .card {
  width: 100%;
  max-width: 800px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  padding: 10px; /* Tambahkan padding */
}

.detail-btn {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 10px auto;
  padding: 10px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
}

#table-section table {
  width: 100%;
  border-collapse: collapse;
}

#table-section td {
  border: none;
  padding: 12px;
  text-align: left !important;
}

#table-section td img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

#table-section .harga-text-1 {
  text-align: left;
  display: inline-block;
  vertical-align: middle;
  margin-left: 20px;
}

#table-section .harga-text-2 {
  text-align: left;
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
}

#table-section .harga {
  border-left: 1px solid #ddd;
  padding-left: 10px;
}

#table-section th {
  background-color: #f2f2f2;
}

#table-section tr:hover {
  background-color: #f5f5f5;
}

#table-section .detail-btn {
  margin: 20px 0;
}

.data-section {
  margin-top: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.options-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.search-container,
.data-options {
  margin-right: 20px;
}

#date-picker-broiler,
#date-picker-egg {
  padding: 8px;
}

#data-table-broiler,
#data-table-egg {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #ffffff;
}

#data-table-broiler th,
#data-table-egg th,
#data-table-broiler td,
#data-table-egg td {
  border: 1px solid #ffffff;
  padding: 8px;
  text-align: left;
}

#data-table-broiler th,
#data-table-egg th {
  background-color: #f2f2f2;
}

#selected-date-broiler {
  margin-bottom: 10px; /* Atur margin bottom sesuai kebutuhan */
  color: black; /* Atur warna teks menjadi hitam */
}

#selected-date-egg {
  margin-bottom: 10px; /* Atur margin bottom sesuai kebutuhan */
  color: black; /* Atur warna teks menjadi hitam */
}

/* carousel */

#video-carousel {
  width: 40%; /* Mengurangi lebar carousel */
  max-width: 600px; /* Menambahkan lebar maksimum */
  height: 300px; /* Menambahkan tinggi carousel */
  margin: auto;
  overflow: hidden;
  position: relative;
}

#video-carousel .carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%; /* Menyesuaikan tinggi carousel */
}

#video-carousel .carousel-item {
  min-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  height: 100%; /* Menyesuaikan tinggi carousel */
}

#video-carousel iframe {
  width: 100%;
  height: 100%; /* Menyesuaikan tinggi iframe dengan carousel */
  border: none;
}

#video-carousel .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto; /* Menyesuaikan lebar tombol dengan kontennya */
  cursor: pointer;
  font-size: 24px;
  background: none;
  border: none;
  outline: none;
  color: #000000;
  background-color: #ffffff;
  opacity: 0.5;
  padding: 4px; /* Menambahkan padding agar tombol lebih kecil */
}

#video-carousel .carousel-btn.prev {
  left: 0;
}

#video-carousel .carousel-btn.next {
  right: 0;
}

@media screen and (max-width: 768px) {
  #video-carousel {
    width: 70%; /* Mengurangi lebar carousel pada layar kecil */
  }
}

.carousel-title {
  margin-bottom: 20px; /* Menambahkan jarak di bawah judul */
  text-align: center;
  color: #000000;
}

#berita .card__buttonout {
  display: block;
  background-color: var(--first-color);
  padding: 0.5rem 0.75rem; /* Adjusted padding */
  border-radius: 0.25rem;
  color: white;
  font-weight: 600;
  text-align: center;
  max-width: 150px;
  width: 100%;
}

.kons-title {
  margin-bottom: 20px; /* Menambahkan jarak di bawah judul */
  text-align: center;
  color: #000000;
}

#card-cart .card-container {
  display: flex;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

#card-cart .card-containers {
  display: flex;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

#card-cart .card-image {
  flex: 0 0 auto;
  position: relative;
}

#card-cart .card-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000; /* Warna biru muda */
  z-index: -1; /* Agar latar belakang berada di belakang gambar */
}

#card-cart .card-image img {
  width: 100%;
  height: auto;
  max-width: 70px; /* Atur ukuran maksimum lebar gambar */
  max-height: 70px; /* Atur ukuran maksimum tinggi gambar */
  object-fit: contain;
  margin-left: 20px;
  margin-top: 10px;
}

#card-cart .card-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

#card-cart .card-title {
  font-size: 20px;
  margin-bottom: 10px;
}

#card-cart .category-text {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

#card-cart .card-description {
  font-size: 16px;
  color: #555;
  flex: 1;
}

/* .quantity-containers {
  display: flex;
  align-items: center;
  margin-top: 100px;
} */

#card-cart .quantity-input {
  width: 40px;
  text-align: center;
  margin-right: 10px;
}

#card-cart .add-button {
  background-color: rgb(32, 42, 148);
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#card-cart .price-label {
  font-size: 18px;
  font-weight: bold;
  position: absolute;
  bottom: 10px;
  right: 10px;
  margin-right: 10px;
}

#card-cart .search-container {
  margin-right: 20px; /* Adjusted margin for better spacing */
  text-align: center;
  margin-left: 20px;
  margin-bottom: 20px;
  margin-top: 20px;
}

#card-cart .search-input {
  padding: 8px;
  width: 200px;
}

/* icon cart */

#card-cart .cart-container {
  display: flex;
  align-items: center;
  margin-left: 10px; /* Jarak antara ikon cart dan search */
  cursor: pointer;
  position: relative;
}

#card-cart .cart-icon {
  width: 24px;
  height: 24px;
  position: relative;
  margin-right: 8px;
  margin-left: 1px;
}

#card-cart a {
  margin-top: 26px;
}

#card-cart .notification-badge {
  position: absolute;
  top: -15px;
  right: -5px;
  border-radius: 50%;
  /* background-color: #ffffff;  */
  color: rgb(255, 0, 0); /* Set the text color to red */
  font-size: 14px;
  z-index: 2; /* Agar latar belakang berada di belakang gambar */
}
/* 
#card-cart .card-notif {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 550px;
  background-color: #4caf50;
  color: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#card-cart .card-notif .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
} */

.card-notif {
  display: none;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px; /* Sesuaikan lebar notifikasi sesuai kebutuhan Anda */
  background-color: #4caf50;
  color: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000; /* Sesuaikan nilai z-index sesuai kebutuhan */
}

.card-notif.show {
  display: block;
  animation: fadeInOut 5s forwards; /* Sesuaikan durasi animasi sesuai kebutuhan */
}

.card-notif .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
