/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 76px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  max-width: 768px;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  z-index: 10;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.bottom-nav .nav-link {
  text-align: center;
  color: #555;
}

.bottom-nav .nav-link.active {
  background-color: #1BAC4B;
  color: #fff;
  border-radius: 10px;
}

.bottom-nav .nav-link.keranjang {
  position: relative;
  top: -15px;
  background-color: #fff;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transform: scale(1.4);
}

.bottom-nav .nav-link.keranjang i {
  font-size: 28px;
  color: #1BAC4B;
}

.bottom-nav .nav-link.keranjang .badge {
  position: absolute;
  right: 3px;
  top: 0px;
  font-weight: bold;
}

.desktop-layer .keranjang {
  position: relative;
}

.desktop-layer .keranjang .badge {
  position: absolute;
  right: -12px;
  top: -10px;
  font-weight: bold;
}

.bottom-nav .nav-link.aktivitas {
  position: relative;
  padding: 6px !important;
}

.bottom-nav .nav-link.aktivitas .badge {
  position: absolute;
  top: -4px;
  font-weight: bold;
}

.desktop-layer .aktivitas {
  position: relative;
}

.desktop-layer .aktivitas .badge {
  position: absolute;
  right: -12px;
  top: -10px;
  font-weight: bold;
}

.search-container {
  width: 220px;
}

@media (min-width: 768px) {
  .navbar {
      background-color: white !important;
  }

  .bottom-nav {
      display: none;
  }

  .search-container {
      left: 170px !important;
      width: 200px;
  }

  .content-height {
      min-height: 100vh;
  }
}

@media (min-width: 1024px) {
  .search-container {
      left: 200px !important;
      width: 400px;
  }
}

.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background-color: #1BAC4B;
  color: white;
  border-radius: 50px;
  padding: 10px 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quantityInput::-webkit-inner-spin-button,
.quantityInput::-webkit-outer-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.radio-card {
  border: 1px solid #ddd;
  cursor: pointer;
  min-height: 90px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.radio-card input:checked + label {
  border: 2px solid #1BAC4B;
  background-color: #f8f9fa;
  min-height: 90px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  padding: 0px;
}

.radio-card .form-check-label {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  font-size: 10px;
}

@media (min-width: 768px) {
  .radio-card .form-check-label {
      font-size: 12px !important;
  }
}

.iklan {
  width: 100%;
  height: 200px;
  border-radius: 20px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .iklan {
      height: 100%;
  }
}

.card-pasar {
  position: relative;
  height: 285px;
}

@media (min-width: 768px) {
  .card-pasar {
      position: relative;
      height: 260px;
  }
}

.card-barang {
  height: 270px;
}

@media (min-width: 768px) {
  .card-barang {
      height: 250px;
  }
}

@media (min-width: 1024px) {
  .half-width {
      width: 50%;
  }
}

.badge {
  position: absolute;
  right: 6px;
  top: -10px;
  font-weight: bold;
}

.foto-pasar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .foto-pasar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      object-fit: cover;
  }
}