@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Mystery+Quest&display=swap");

:root {
  --main-color: #443;
  --border-radius: 95% 4% 97% 5% / 4% 94% 3% 95%;
  --border-radius-hover: 4% 95% 6% 95% / 95% 4% 92% 5%;
  --border: 0.2rem solid var(--main-color);
  --border-hover: 0.2rem dashed var(--main-color);
}

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  text-transform: capitalize;
  transition: all 0.2s linear;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-padding-top: 7rem;
  scroll-behavior: smooth;
}

section {
  padding: 2rem 9%;
}

.heading {
  font-size: 9rem;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 0.05rem var(--main-color);
  letter-spacing: 0.2rem;
  text-align: center;
  pointer-events: none;
  position: relative;
}

.heading span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  color: var(--main-color);
  font-size: 3rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border: var(--border);
  border-radius: var(--border-radius);
  color: var(--main-color);
  background: none;
  cursor: pointer;
  margin-top: 1rem;
  font-size: 1.7rem;
}

.btn:hover {
  border-radius: var(--border-radius-hover);
}

.audio-1 {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.play-pause-btn {
  background-color: #443;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-pause-btn:hover {
  background-color: #333;
}

/* HOME */
/* HEADER */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: rgb(255, 255, 255);
  box-shadow: 0 0.1rem 2rem #443;
  padding: 1.5rem 9%;
  color: #443;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
}

.logo-text {
  font-size: 2.5rem;
  color: #443;
  font-family: "Caveat", sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.navbar {
  margin-left: 20rem;
}

.navbar a {
  margin: 0 1rem;
  font-size: 1.7rem;
  color: #443;
  text-decoration: none;
}

.navbar a:hover {
  color: #443;
  text-decoration: underline;
}

.navbar a.active {
  color: #443;
  text-decoration: underline;
  font-weight: 600;
}

.cart-icon {
  display: flex;
  align-items: center;
  margin-left: 2rem;
}

.cart-image {
  width: 40px;
  height: auto;
  cursor: pointer;
}

.cart-image:hover {
  transform: scale(1.1);
  transition: transform 0.2s;
}

.home {
  min-height: 100vh;
  padding-top: 12rem;
  background: url(../image/bg-home2.png) no-repeat;
  background-position: center;
  background-size: cover;
}

.home .row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.home .row .content {
  flex: 1 1 42rem;
}

.home .row .image {
  flex: 1 1 42rem;
  padding-top: 10rem;
  text-align: center;
}

.home .row .image img {
  height: 47rem;
  border-radius: 47rem;
  animation: float 4s linear infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(-4rem);
  }

  50% {
    transform: translateY(-14rem);
  }
}

.home .row .content h3 {
  font-size: 50px;
  color: #443;
  text-transform: uppercase;
  line-height: 1.2;
}

.home .image-slider {
  text-align: center;
  padding: 3rem 0;
}

.home .image-slider img {
  height: 9rem;
  margin: 0 0.5rem;
  cursor: pointer;
  margin-top: 5rem;
}

.home .image-slider img:hover {
  transform: translateY(-2rem);
}

/* ABOUT */

.about .row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  right: 200%;
}

.about .row .image {
  flex: 1 1 42rem;
}

.about .row .image iframe {
  width: 100%;
  max-width: 560px;
  height: 315px;
  border-radius: 10px;
}

/* Animation untuk about section */
@keyframes aboutImage {

  0%,
  100% {
    transform: scale(0.9);
    border-radius: var(--border-radius-hover);
  }

  50% {
    transform: scale(0.8);
    border-radius: var(--border-radius);
  }
}

.about .row .content {
  flex: 1 1 42rem;
}

.about .row .content .title {
  color: var(--main-color);
  font-size: 3rem;
  line-height: 1.8;
}

.about .row .content p {
  color: var(--main-color);
  font-size: 1.5rem;
  line-height: 1.8;
  padding: 1rem 0;
}

.about .row .content .icons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 3rem;
}

.about .row .content .icons-container .icons {
  flex: 1 1 15rem;
  padding: 1.5rem;
  text-align: center;
  border: var(--border);
  border-radius: var(--border-radius);
}

.about .row .content .icons-container .icons img {
  height: 5rem;
}

.about .row .content .icons-container .icons h3 {
  font-size: 1.7rem;
  padding-top: 1rem;
  color: var(--main-color);
}

/* MENU */
.menu {
  background: url(../image/bg-menu.png) no-repeat;
  background-position: center;
  background-size: cover;
}

.menu-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1200px;
  margin: 2rem auto 0;
}

.menu-item {
  text-align: center;
  border: var(--border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  background: #f9f9f9;
  transition: transform 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu-item img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.menu-item h3 {
  margin: 1rem 0;
  color: var(--main-color);
}

.menu-item p {
  color: #666;
}

.menu-item:hover {
  transform: scale(1.05);
}

.add-to-cart-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--main-color);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s, transform 0.2s;
}

.add-to-cart-btn:hover {
  background-color: #333;
  transform: scale(1.05);
}

/* Gallery */
.gallery {
  padding: 2rem 9%;
}

.gallery .heading {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery-slider {
  width: 100%;
  max-width: 1000px;
  height: 500px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: #333 0 0.50rem 2rem;
}

.gallery-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Kontak */

.book {
  background: url(../image/bg-kontak.png);
  background-position: center;
  background-size: cover;
  margin-top: 40px;
}

.book form {
  margin: 0 auto 2rem auto;
  max-width: 60rem;
  border-radius: var(--border-radius-hover);
  padding: 2rem;
  border: var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.book form .box {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 1.6rem;
  background: none;
  text-transform: none;
  color: var(--main-color);
  border: var(--border);
  margin: 0.7rem 0;
}

.book form .box:focus {
  border: var(--border-hover);
}

.book form textarea {
  height: 15rem;
  resize: none;
}

/* Footer */
.footer .box-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(23rem, 1fr));
  gap: 1.5rem;
}

.footer .box-container .box h3 {
  font-size: 2.5rem;
  padding: 1rem 0;
  color: var(--main-color);
}

.footer .box-container .box a {
  display: block;
  font-size: 1.5rem;
  padding: 1rem 0;
  color: var(--main-color);
}

.footer .box-container .box a i {
  padding-right: 0.5rem;
}

.footer .box-container .box a:hover i {
  padding-right: 2rem;
}

.footer .credit {
  text-align: center;
  font-size: 2rem;
  padding: 2rem 1rem;
  margin-top: 1rem;
  color: var(--main-color);
}

.footer .credit span {
  border-bottom: var(--border-hover);
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
}

.map {
  flex: 1;
}

.contact-form {
  flex: 1;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form .box {
  margin-bottom: 1rem;
}

.social-media {
  text-align: center;
  margin-top: 2rem;
}

.social-media a {
  display: inline-block;
  margin: 0.5rem 1rem;
  font-size: 1.5rem;
  color: var(--main-color);
}

.social-media a i {
  margin-right: 0.5rem;
}

/* Style dari index.php dipindahkan ke style.css */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar-extra {
  display: none;
}

.cart-icon a {
  display: block;
  transition: transform 0.2s;
}

.cart-icon a:hover {
  transform: scale(1.1);
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.user-icon {
  margin-left: 2rem;
  display: flex;
  align-items: center;
}

.user-icon a {
  color: #443;
  font-size: 2.2rem;
  transition: color 0.2s;
}

.username-header {
  color: #443;
  font-size: 1.7rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s linear;
}

.username-header:hover {
  color: #443;
  text-decoration: underline;
}

.username-header i {
  font-size: 1.7rem;
  color: #443;
}

.profile-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: #fff;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #eee;
  z-index: 1000;
  overflow: hidden;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-content a {
  color: #443;
  padding: 8px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s linear;
  font-size: 1.7rem;
  border-bottom: 1px solid #eee;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  color: #443;
  text-decoration: underline;
}

.dropdown-content a i {
  width: 18px;
  font-size: 1.7rem;
}

.show {
  display: block;
}

/* Tambahan untuk responsive header/navbar */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  font-size: 2.5rem;
  color: #443;
  padding: 8px;
  margin-left: auto;
  margin-right: 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  background-color: rgba(68, 67, 67, 0.1);
  transform: scale(1.1);
}

.menu-toggle .fa-bars,
.menu-toggle .fa-xmark {
  font-size: 2.5rem;
  color: #443;
}

@media (max-width: 1024px) {
  .navbar {
    margin-left: 2rem;
  }
}

@media (max-width: 900px) {
  .navbar {
    margin-left: 0;
  }

  .header {
    padding: 1rem 3%;
  }
}

@media (max-width: 768px) {
  .home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .home .row {
    flex: 1;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    width: 100%;
  }

  .home .row .content {
    text-align: center;
    margin-bottom: 1.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .home .row .image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .home .row .image img {
    width: 98vw;
    max-width: 500px;
    height: auto;
    max-height: 60vh;
    margin: 0 auto;
    display: block;
    object-fit: contain;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    position: relative;
    z-index: 1200;
  }

  .header {
    padding: 1rem 5%;
    position: relative;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem;
    box-shadow: 0 0.1rem 2rem #4432;
    display: none;
    z-index: 1001;
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    margin: 1rem 0;
    font-size: 1.5rem;
    width: 100%;
  }

  .header-right {
    display: none;
  }

  .navbar-extra {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    justify-content: flex-start;
  }

  .home {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .home .row .image {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .home .row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
  }

  .home .row .content {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .home .row .image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
}

@media (min-width: 769px) {
  .navbar-extra {
    display: none !important;
  }

  .header-right {
    display: flex !important;
  }
}

@media (max-width: 480px) {
  .logo-image {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .header {
    padding: 0.5rem 1rem;
  }

  .home {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .home .row .image img {
    width: 99vw;
    max-width: 320px;
    max-height: 40vh;
  }
}

/* Responsive Design untuk semua section */
@media (max-width: 1200px) {
  .home .row .content h3 {
    font-size: 40px;
  }

  .about .row .image iframe {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 1024px) {
  .home .row .content h3 {
    font-size: 35px;
  }

  .home .row .image img {
    height: 35rem;
  }

  .about .row .content .title {
    font-size: 2.5rem;
  }

  .about .row .content p {
    font-size: 1.3rem;
  }

  .menu-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .home .row {
    flex-direction: column;
    text-align: center;
  }

  .home .row .content h3 {
    font-size: 30px;
  }

  .home .row .image {
    padding-top: 5rem;
  }

  .home .row .image img {
    height: 30rem;
  }

  .about .row {
    flex-direction: column;
    text-align: center;
  }

  .about .row .image iframe {
    width: 100%;
    height: 250px;
  }

  .about .row .content .title {
    font-size: 2.2rem;
  }

  .about .row .content p {
    font-size: 1.2rem;
  }

  .menu-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .contact-container {
    flex-direction: column;
    gap: 2rem;
  }

  .map iframe {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .home .row .content h3 {
    font-size: 25px;
  }

  .home .row .image img {
    height: 25rem;
  }

  .about .row .content .title {
    font-size: 2rem;
  }

  .about .row .content p {
    font-size: 1.1rem;
  }

  .menu-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .menu-item {
    max-width: 400px;
    margin: 0 auto;
  }

  .gallery-slider img {
    height: 200px;
  }

  .contact-form form {
    width: 100%;
  }

  .contact-form .box {
    width: 100%;
  }

  .heading {
    font-size: 2.5rem;
  }

  .heading span {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .home .row .content h3 {
    font-size: 20px;
  }

  .home .row .image img {
    height: 20rem;
  }

  .about .row .content .title {
    font-size: 1.8rem;
  }

  .about .row .content p {
    font-size: 1rem;
  }

  .menu-item h1 {
    font-size: 1.5rem;
  }

  .menu-item h2 {
    font-size: 1.2rem;
  }

  .gallery-slider img {
    height: 150px;
  }

  .heading {
    font-size: 2rem;
  }

  .heading span {
    font-size: 1.5rem;
  }

  .btn {
    font-size: 1.2rem;
    padding: 0.8rem 1.5rem;
  }

  .contact-form .box {
    font-size: 1rem;
    padding: 1rem;
  }

  .contact-form textarea {
    height: 100px;
  }
}

@media (max-width: 360px) {
  .home .row .content h3 {
    font-size: 18px;
  }

  .home .row .image img {
    height: 18rem;
  }

  .about .row .content .title {
    font-size: 1.6rem;
  }

  .about .row .content p {
    font-size: 0.9rem;
  }

  .menu-item h1 {
    font-size: 1.3rem;
  }

  .menu-item h2 {
    font-size: 1rem;
  }

  .gallery-slider img {
    height: 120px;
  }

  .heading {
    font-size: 1.8rem;
  }

  .heading span {
    font-size: 1.3rem;
  }

  .btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}

/* Responsive untuk audio player */
@media (max-width: 768px) {
  .audio-1 {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
  }

  .play-pause-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* Responsive untuk cart count */
@media (max-width: 480px) {
  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 10px;
    top: -6px;
    right: -6px;
  }
}

/* Responsive untuk dropdown */
@media (max-width: 768px) {
  .dropdown-content {
    min-width: 120px;
    right: -10px;
  }

  .dropdown-content a {
    font-size: 1.4rem;
    padding: 6px 12px;
  }
}

/* Responsive untuk footer */
@media (max-width: 768px) {
  footer {
    padding: 15px;
  }

  footer h4 {
    font-size: 12px;
  }

  footer a {
    font-size: 14px;
  }

  footer p {
    font-size: 10px;
  }
}

/* Responsive untuk contact form */
@media (max-width: 768px) {
  .contact-container {
    padding: 1rem;
  }

  .map h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

/* Responsive untuk menu buttons */
@media (max-width: 480px) {
  .add-to-cart-btn {
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }
}

/* Table Responsive Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table Style for Mobile */
@media (max-width: 768px) {

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }

  thead tr {
    display: none;
  }

  tr {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
  }

  td {
    position: relative;
    padding-left: 50%;
    min-height: 40px;
    text-align: left;
    border: none;
    border-bottom: 1px solid #eee;
  }

  td:before {
    position: absolute;
    top: 0;
    left: 1rem;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
    color: #443;
    content: attr(data-label);
  }
}