/**************************************************************************** start css bangdika */
.logo {
  width: 157px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: var(--textPrimary);
}

.owl-carousel .owl-item img {
  margin: 0 1rem;
  width: calc(100% - 2rem) !important;
}

.custom-category {
  height: 327px;
  overflow-y: auto;
  padding-right: 2px;
}

@supports (-moz-appearance: none) {
  .custom-category {
    scrollbar-color: #e4e4e7 #f1f1f1;
    scrollbar-width: thin;
  }
}

/* width */
.custom-category::-webkit-scrollbar {
  width: 6px !important;
}

/* Track */
.custom-category::-webkit-scrollbar-track {
  box-shadow: 0 0 6px transparent !important;
  border-radius: 1px !important;
}

/* Handle */
.custom-category::-webkit-scrollbar-thumb {
  background: #e4e4e7 !important;
  border-radius: 50px !important;
}

/* Handle on hover */
.custom-category::-webkit-scrollbar-thumb:hover {
  background: #e4e4e7 !important;
}

.custom-category .list-group-item {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 0.5rem;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  text-decoration: none;
  color: black;
  position: relative;
}

.custom-category .list-group-item::before {
  content: "";
  /* Default tanpa icon */
  width: 18px;
  height: 18px;
  border: 2px solid #49454f;
  border-radius: 3px;
  display: inline-block;
  transition: 0.3s;
}

.brand-img {
  border-radius: 0.5rem;
  border: none;
}

.product-item {
  border: 1px solid #f0f0f0;
  box-shadow: 0 3px 7px #ddd;
  border-radius: 5px;
  height: 100%;
  position: relative;
  transition-duration: 0.3s;
  overflow: hidden;
}

.product-item:hover {
  border-color: var(--primary);
}

.product-item .product-name {
  /* font-size: 1.125rem; */
  font-size: 0.9375rem;
  font-weight: 500;
}

.product-item .product-variant {
  color: #71717a;
  font-weight: 500;
  font-size: 16px;
}

.product-item .product-price {
  color: #dc2626;
  font-weight: 600;
  /* font-size: 16px; */
  font-size: 14px;
}

.product-item .product-promo del {
  font-size: 16px;
  font-weight: 400;
  color: #71717a;
  margin-right: 0.5rem;
}

.product-item .product-promo span {
  border-radius: 0.25rem;
  font-weight: 700;
}

.btn-shop {
  color: #0072ce;
  font-size: 16px;
  font-weight: 400;
  border: 1px solid #0072ce;
  border-radius: 8px;
  margin: 1rem 0.5rem 0 0;
  padding: 4px 8px;
  display: block;
  margin-bottom: 0.5rem;
  text-align: center;
  transition-duration: 0.3s;
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  width: calc(100% - 1rem);
}

.product-item:hover .btn-shop,
.btn-shop:hover {
  color: var(--textPrimary);
  background: var(--primary);
  border-color: var(--primary);
}

/* Jika item aktif, munculkan centang */
.custom-category .list-group-item.active::before {
  content: "\2713";
  color: white;
  background: #f15b2a;
  border-color: #f15b2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.col-md-3.col-5pcs {
  flex: 0 0 25%;
  max-width: 20%;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 1rem;
}
.gap-4 {
  gap: 1.5rem;
}
.gap-5 {
  gap: 3rem;
}

.footer-contact-single {
  gap: 0 3rem;
}

/* ======================================== SIDEBAR KATEGORI */
body.sidebar-open {
  overflow: hidden;
}

/* SIDEBAR */
#sidebar {
  height: 100%;
  width: 75%;
  position: fixed;
  top: 0;
  left: -75%;
  background-color: #fff;
  transition: left 0.4s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  /*      justify-content: center;*/
  padding: 2rem 1.5rem;
}

#sidebar.active {
  left: 0;
}

#sidebar .nav-link {
  color: #26294d;
  font-size: 24px;
  margin: 10px 0;
}

#sidebar .sidebar-title.text-dark {
  font-size: 1.25rem !important;
}

#sidebar .list-group-item {
  background: transparent;
  border: none;
}

#sidebar .list-group-item:before {
}

#sidebar .list-group.custom-category {
  width: 100%;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* CHECKBOX SIDEBAR  */

/* Style dasar checkbox */
.checkbox-group input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  margin-right: 8px;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  outline: none;
}

/* Saat dicentang */
.checkbox-group input[type="checkbox"]:checked {
  background-color: #f15b2a;
  border-color: #f15b2a;
}

/* Tambahkan checkmark manual */
.checkbox-group input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* END CHECKBOX SIDEBAR */

/* CLOSE BUTTON (X) */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 36px;
  color: #333;
  text-decoration: none;
  z-index: 1001;
}

#sidebar .btn-container {
  display: flex;
  justify-content: space-between;
}

.close-btn:hover,
.close-btn:active {
  color: #ccc;
}

/* TRIGGER LINK (FILTER) */

/* .filter-trigger i {
    transform: rotate(-90deg);
} */

/* CONTENT */
#content {
  padding: 20px;
}

/* ======================= end sidebar kategori */

.owl-carousel.thumb-gallery-thumbs img {
  margin: 0;
  width: 100% !important;
}

@media (max-width: 991px) {
  .header-wrapper,
  .mobile-navbar {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .mobile-navbar {
    top: 8rem;
  }

  .header-wrapper > .container-fluid > .row {
    align-items: center;
  }

  .logo {
    width: 120px;
  }

  .mobile-brand,
  .mobile-category {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 479px) {
  .footer-contact-single {
    flex-direction: column;
    gap: 0.75rem;
  }
  .footer-deion,
  .footer-title {
    text-align: center;
  }

  .footer-contact {
    display: table;
    margin: 0 auto;
  }

  .footer-deion p {
    margin-bottom: 0;
  }

  .footer-deion {
    line-height: 2rem;
  }

  .footer-title {
    font-size: 22px;
  }

  footer .footer-bank {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
}

/* Inactive-cart state (Dairy/Mirage/Prinaza Phase 2 only). */
.inactive-cart-warning,
.inactive-mini-cart-warning {
  color: #5f370e;
  background: #fff7e6;
  border: 1px solid #a85d00;
  border-left-width: 4px;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
}

.inactive-mini-cart-warning {
  font-size: 0.8125rem;
  margin: 0.75rem 1rem 0;
}

/* Keep the header cart compact while allowing longer carts to scroll. */
.small-cart {
  max-height: calc(100vh - 2rem);
  overflow: hidden;
}

.small-cart-item-wrapper.scrollable-cart {
  max-height: 28rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.small-cart-item-wrapper .single-item .text-left > p {
  margin-bottom: 0.25rem;
}

.small-cart-item-wrapper .single-item .text-left > .inactive-item-badge {
  margin: 0 0 0.25rem;
}

.inactive-mini-cart-warning + .px-5 {
  margin-top: 1rem;
}

@media (max-width: 991.98px) {
  .small-cart-item-wrapper.scrollable-cart {
    max-height: 22rem;
  }
}

@media (max-width: 767.98px) {
  .small-cart-item-wrapper.scrollable-cart {
    max-height: 17rem;
  }
}

@media (max-width: 479px) {
  .small-cart-item-wrapper.scrollable-cart {
    max-height: 14rem;
  }
}

.inactive-cart-item {
  color: var(--dark-gray);
  background: var(--gray10);
}

.inactive-cart-item img {
  filter: grayscale(70%);
  opacity: 0.72;
}

.inactive-item-badge {
  display: inline-block;
  color: #fff;
  background: var(--dark-gray);
  border: 1px solid var(--gray60);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.25rem 0;
  padding: 0.25rem 0.5rem;
}

.inactive-item-control[aria-disabled="true"] {
  color: var(--gray-notes) !important;
  cursor: not-allowed !important;
  opacity: 0.8;
}

.inactive-item-control[aria-disabled="true"] i,
.inactive-cart-item .qty-button:disabled,
.inactive-cart-item input:disabled,
.inactive-cart-item-controls .qty-button:disabled,
.inactive-cart-item-controls input:disabled {
  color: var(--gray-notes) !important;
}

.inactive-cart-item .qty-button:disabled,
.inactive-cart-item input:disabled,
.inactive-cart-item-controls .qty-button:disabled,
.inactive-cart-item-controls input:disabled {
  background: var(--gray40) !important;
  border-color: var(--gray60) !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1;
}

.inactive-checkout-control[aria-disabled="true"] {
  color: #4a4a4a !important;
  background: var(--gray40) !important;
  border-color: var(--gray60) !important;
  box-shadow: none !important;
  cursor: pointer;
  opacity: 1;
}

.inactive-checkout-control[aria-disabled="true"]:hover,
.inactive-checkout-control[aria-disabled="true"]:active {
  color: #333 !important;
  background: var(--gray60) !important;
}

.inactive-cart-item a:focus-visible,
.inactive-cart-item button:not(:disabled):focus-visible,
.inactive-checkout-control:focus-visible {
  outline: 3px solid #1a5fb4;
  outline-offset: 2px;
}

/* Guest checkout and order success. */
.guest-checkout__contact {
  color: var(--dark);
  background: var(--gray10);
  border: 1px solid var(--gray-border);
  border-radius: 0.375rem;
  padding: 1.25rem;
}

.guest-checkout__contact label {
  color: var(--dark-gray);
  font-weight: 600;
}

.guest-checkout__help {
  color: var(--gray-notes);
  line-height: 1.5;
}

.guest-checkout__input {
  min-height: 44px;
  color: var(--dark);
  background: var(--white);
  border-color: var(--gray-border);
}

textarea.guest-checkout__input {
  min-height: 96px;
}

.guest-checkout__input:focus,
.guest-checkout__change-address:focus-visible,
.guest-success__actions .btn:focus-visible {
  border-color: var(--primary);
  box-shadow: none;
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.guest-checkout__error {
  color: var(--danger);
  background: var(--white);
  border: 1px solid var(--danger);
  border-left-width: 4px;
  border-radius: 0.375rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
}

.guest-checkout__address-empty,
.guest-checkout__address-card {
  background: var(--white);
}

.guest-checkout__change-address {
  min-height: 44px;
  text-decoration: underline;
}

.guest-success__card {
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 0.5rem;
  padding: 2rem;
}

.guest-success__icon {
  color: var(--success);
}

.guest-success__title {
  font-size: 1.75rem;
  line-height: 1.3;
}

.guest-success__message {
  color: var(--gray-notes);
  line-height: 1.6;
  margin: 0.75rem auto 0;
  max-width: 34rem;
}

.guest-success__summary {
  background: var(--gray10);
  border: 1px solid var(--gray-border);
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
}

.guest-success__summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.guest-success__summary-row + .guest-success__summary-row {
  border-top: 1px solid var(--gray40);
}

.guest-success__summary-row dt,
.guest-success__summary-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.guest-success__summary-row dt {
  color: var(--gray-notes);
  font-weight: 500;
}

.guest-success__summary-row dd {
  color: var(--dark);
  font-weight: 600;
  text-align: right;
}

.guest-success__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.guest-success__actions .btn {
  min-height: 44px;
  min-width: 10rem;
  padding: 0.65rem 1rem;
}

@media (max-width: 575px) {
  .guest-checkout__contact,
  .guest-success__card {
    padding: 1rem;
  }

  .guest-success__title {
    font-size: 1.25rem;
  }

  .guest-success__summary-row {
    display: block;
  }

  .guest-success__summary-row dd {
    margin-top: 0.25rem;
    text-align: left;
  }

  .guest-success__actions {
    flex-direction: column;
  }

  .guest-success__actions .btn {
    width: 100%;
  }
}

.guest-order-page {
  overflow-wrap: anywhere;
}

.guest-order-page .order-header,
.guest-order-page .order-detail-card,
.guest-order-page .accordion .card {
  background: #fff;
}

.guest-order-page .btn-detail-order {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  min-height: 44px;
  width: 100%;
}

.guest-order-page a:focus-visible,
.guest-order-unavailable a:focus-visible {
  outline: 3px solid #1a5fb4;
  outline-offset: 2px;
}

.guest-order-unavailable__card {
  background: #fff;
  border: 1px solid var(--gray60, #e5e5e5);
  border-radius: 8px;
  overflow-wrap: anywhere;
  padding: 2rem;
}

@media (max-width: 575px) {
  .guest-order-page .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .guest-order-unavailable__card {
    padding: 1.25rem;
  }
}

/******************************************************************************** end css bangdika */
