:root {
  --main-blue: #5555a5;
  --selly-soft-blue: #fff0e6;
  --selly-blue-hover: #004ea7;
  --selly-secondary: #013064;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: "Inter", Arial;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f0f0f0;
  color: #666;
  touch-action: pan-x pan-y;
}

.page-title {
  font-weight: 400;
  font-size: 20px;
}

.bg-main-blue {
  background-color: var(--main-blue);
}

.text-main-blue {
  color: var(--main-blue);
}

.search-bar:focus {
  border-color: var(--main-blue);
  box-shadow: 0 0 0 0.25 darkgrey;
}

main {
  flex: 1;
  padding-bottom: 100px;
}

.text-primary {
  color: var(--main-blue) !important;
}

.btn-primary {
  background-color: var(--main-blue);
  border-color: var(--main-blue);
}

.btn-outline-primary {
  border-color: var(--main-blue);
  color: #666 !important;
}

.btn-outline-primary:hover {
  background-color: var(--selly-soft-blue);
}

.btn-primary:hover {
  background-color: #004ea7;
  border-color: #004ea7;
}

footer {
  color: white;
  padding: 40px 0;
}

.container {
  max-width: 1150px !important;
}

.form-search .form-control {
  border-radius: 6px;
}

.form-search {
  position: relative;
  max-width: 450px;
}

.form-control::placeholder {
  color: rgba(0, 0, 0, .54);
  font-size: 13px;
}

.form-search input {
  padding-left: 39px;
}

.form-search button {
  position: absolute;
  top: 0px;
  right: 3px;
  padding: 5px;
}

.btn-cart {
  padding: 3px 5px;
}

.navbar-bottom {
  background-color: #fff;
  padding: 0px 10px 0px 10px;
  position: fixed;
  bottom: 0px;
  width: 100%;
  box-shadow: #d1d1d1 0px 0px 5px 0px;
  z-index: 1000;
}

.navbar-bottom .btn {
  padding: 6px 15px 4px 15px;
  border-radius: 0;
  margin-top: -1px;
}

.navbar-bottom .menu-label {
  font-size: 11px;
  margin-top: 5px;
  color: #666;
}

.navbar-bottom .menu-active {
  background-color: #ffdac9;
}

header {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease-in-out;
  color: var(--selly-secondary);
}

.card {
  border-radius: 0px !important;
  border: none;
  box-shadow: #e7e7e7 0px 2px 5px 0px;
}

.card-header {
  border-color: #f2f2f2;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: #fff;
  color: #0000008a;
  font-size: 1rem;
  font-weight: 500;
}

.balloon-notification-count {
  position: absolute;
  top: 0px;
  right: 5px;
  background-color: var(--selly-blue-hover);
  color: rgb(255, 255, 255);
  height: 18px;
  font-size: 11px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 3px;
  padding-right: 3px;
  border-radius: 9px;
  min-width: 18px;
}

.form-label {
  font-weight: 500 !important;
}

.small {
  font-size: .8em !important;
}

.text-sm {
  font-size: 0.875rem;
}

.btn-blue {
  background-color: #5555a5;
  color: #fff;
}

.btn-blue:hover {
  background-color: #ff7c40;
  color: #fff;
}

.btn-blue-light {
  background-color: #ff9c6e;
  color: #fff;
}

.btn-blue-light:hover {
  background-color: #5555a5;
}

.btn-blue-outline {
  color: #5555a5;
  border-color: #5555a5;
}

.btn-blue-outline:hover {
  background-color: #ff9c6e;
  color: #ffffff;
}

.text-blue {
  color: #5555a5;
}

.btn-outline-success {
  color: #5555a5;
}

.btn-blank {
  background-color: transparent;
  border: none;
  padding: 0;
}

.form-check-input:checked {
  background-color: #5555a5;
  border-color: #5555a5;
}

.fw-bold {
  font-weight: 600 !important;
}

.fw-semibold {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 500 !important;
}

.auth-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  margin-top: 80px;
}

.btn-google {
  background-color: white;
  border: 1px solid #dee2e6;
  color: #333;
  font-weight: 500;
}

.btn-google:hover {
  background-color: #f1f3f5;
  border-color: #ccedff;
}

.label-btn-google {
  margin-top: 3px;
  color: #7c7c7c;
}

.bg-blur {
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  color: #eee;
}

/* Masonry */
/* Masonry */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

@media (min-width: 768px) {
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .masonry-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.masonry-item {
  width: 100%;
  height: 100%;
}

.product-card {
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:active {
  transform: scale(0.97);
}

.product-img-pinterest {
  width: 100%;
  height: auto;
  display: block;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-check:checked+.btn {
  background-color: var(--main-blue);
}

.form-select {
  font-size: 0.85rem;
  color: #333;
}

/* Offcanvas */
.offcanvas-start-custom {
  border-radius: 0 15px 15px 0 !important;
}

.offcanvas-sidebarhome {
  border-radius: 15px 0 0 15px !important;
}

.form-check-input:checked {
  background-color: #5555a5;
  border-color: #5555a5;
}

.filter-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #999;
  font-weight: 800;
  margin: 10px 0 15px;
  display: block;
}

.filter-label {
  font-size: 0.85rem;
  color: #333;
  margin-bottom: 6px;
  display: block;
}

/* Category */
.overflow-auto::-webkit-scrollbar {
  display: none;
}

.cat-item {
  min-width: 85px;
  transition: transform 0.2s;
}

.cat-item:active {
  transform: scale(0.95);
}

.cat-icon-wrapper {
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cat-icon-wrapper img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.cat-text {
  font-size: 0.75rem;
  color: #444;
  font-weight: 500;
}

/* Section title */
.section-title {
  font-size: 1.1rem;
}

/* Product detail */
.detail-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--selly-secondary);
}

.detail-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.shop-section {
  padding: 15px 0;
}

.bottom-action {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 10px 15px;
  display: flex;
  gap: 10px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1050;
}

@media (min-width: 768px) {
  .bottom-action {
    display: none;
  }
}

.btn-buy-now:hover {
  background-color: #c13d00;
}

.btn-buy-now {
  background-color: #5555a5;
  border: none;
  font-weight: 500;
  flex-grow: 1;
}

.btn-add-cart {
  border: 1px solid #5555a5;
  color: #5555a5;
  font-weight: 700;
  flex-grow: 1;
}

.related-scroll {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 10px;
}

.related-scroll::-webkit-scrollbar {
  display: none;
}

.related-item {
  min-width: 140px;
  background: white;
  border-radius: 8px;
  border: 1px solid #eee;
}

.all-ratings .btn {
  padding: 1px 10px;
}

/* Variant buttons */
.btn-variant-color {
  border: 1px solid #dee2e6;
  background: white;
  border-radius: 8px;
  padding: 6px 12px 6px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #212529;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-variant-color img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

.btn-variant-color.active {
  border-color: #5555a5;
  background-color: #fff0e6;
  color: #5555a5;
  font-weight: 600;
}

.btn-variant-size {
  border: 1px solid #dee2e6;
  background: white;
  border-radius: 8px;
  min-width: 50px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #212529;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-variant-size.active {
  border-color: #5555a5;
  background-color: #fff0e6;
  color: #5555a5;
  font-weight: 600;
}

.btn-variant-size.disabled-size {
  background-color: #f5f5f5;
  color: #adb5bd;
  border-color: #f1f3f5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Search result */
.search-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.search-tab-item {
  padding: 12px 15px;
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  color: #6c757d;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.search-tab-item:hover {
  color: #5555a5;
}

.search-tab-item.active {
  color: #5555a5;
  border-bottom: 3px solid #5555a5;
}

.filter-sidebar {
  position: sticky;
  top: 100px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.shop-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  border: 1px solid #eee;
  transition: all 0.2s;
}

.shop-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shop-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  border: 1px solid #eee;
}

.btn-advanced-search {
  position: fixed;
  right: 1%;
  bottom: 1%;
  background: white;
  border-radius: 12px 12px 0px 0px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  padding: 8px 10px 8px 10px;
  font-size: 11px;
  color: #6c757d;
}

.btn-advanced-search:hover {
  color: #5555a5;
  background: white;
}

.price-range {
  padding: 8px 5px;
}

.price-range span {
  font-size: 13px;
}

.form-control:focus {
  box-shadow: none;
  border-color: #dee2e6;
}

/* Account */
.box-desktop {
  border-radius: 16px !important;
  border: 1px solid #f4f4f4;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
}

.wallet-card {
  background-color: var(--main-blue);
  color: white;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
  border: none;
  cursor: pointer;
  padding: 23px 0;
}

.wallet-card:active {
  transform: scale(0.98);
}

.wallet-icon-circle {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.order-icon-box {
  position: relative;
  display: inline-block;
  margin-bottom: 5px;
  color: #555;
  transition: transform 0.2s;
}

.order-icon-box:hover {
  transform: translateY(-3px);
}

.badge-float {
  position: absolute;
  top: -5px;
  right: -8px;
  font-size: 0.6rem;
  padding: 0.25em 0.4em;
  border: 2px solid white;
}

.list-group-item {
  border-left: none;
  border-right: none;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.modal-logout-icon {
  width: 80px;
  height: 80px;
  background-color: var(--selly-soft-blue);
  color: var(--main-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 2.5rem;
}

.main-wrapper {
  max-width: 576px;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .main-wrapper {
    max-width: 960px;
    margin: 2rem auto 5rem auto;
  }

  .list-group-wrapper {
    border-radius: 16px;
    overflow: hidden;
  }

  .list-group-item {
    padding: 1.25rem 1.5rem;
    transition: all 0.25s ease;
  }

  .list-group-item:not(.text-danger):hover {
    background-color: #fcfcfc;
    padding-left: 2.2rem;
  }

  .list-group-item.text-danger:hover {
    background-color: #fff5f5;
  }
}

/* Header responsive */
.td-header-logo {
  width: 50px;
  text-align: center;
}

.td-header-my-account {
  width: 57px;
}

@media (max-width: 576px) {
  header {
    padding-top: 7px;
    padding-bottom: 8px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .offcanvas-start-custom {
    width: 70% !important;
  }

  .offcanvas-sidebarhome {
    width: 60% !important;
  }
}

@media (min-width: 576px) {
  header {
    padding-top: 7px;
    padding-bottom: 8px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .offcanvas-start-custom {
    width: 60% !important;
  }

  .offcanvas-sidebarhome {
    width: 50% !important;
  }
}

@media (min-width: 768px) {
  header {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .td-header-logo {
    width: 190px;
    text-align: left;
  }

  .offcanvas-start-custom {
    width: 50% !important;
  }

  .offcanvas-sidebarhome {
    width: 50% !important;
  }
}

@media (min-width: 992px) {
  header {
    padding-top: 10px;
    padding-bottom: 11px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .td-header-logo {
    width: 190px;
    text-align: left;
  }

  .td-header-my-account {
    width: 57px;
  }

  .offcanvas-start-custom {
    width: 40% !important;
  }

  .cat-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    transition: all 0.3s ease;
  }

  .cat-icon-wrapper:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
  }

  .cat-icon-wrapper img {
    width: 45px;
    height: 45px;
  }

  .cat-text {
    font-size: 0.9rem;
  }

  .product-card {
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0 !important;
  }

  .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
  }

  .section-title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
  }
}

@media (min-width: 1200px) {
  .td-header-logo {
    width: 190px;
    text-align: left;
  }

  .td-header-my-account {
    width: 150px;
  }

  .offcanvas-start-custom {
    width: 35% !important;
  }
}

.td-header-my-account .dropdown ul li a {
  font-size: 14px;
  color: #444;
}

/* Desktop product detail */
@media (min-width: 768px) {
  main.container-fluid {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 20px !important;
  }

  .desktop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
  }

  .product-image-section {
    position: sticky;
    top: 20px;
  }

  .product-image-section img {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .product-detail-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .desktop-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .desktop-actions .btn {
    padding: 12px 30px;
    font-size: 16px;
  }

  .header-product-detail {
    display: none;
  }

  .mobile-actions {
    display: none;
  }

  .related-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    overflow-x: visible;
    gap: 20px;
  }

  .related-item {
    min-width: auto;
    transition: transform 0.2s;
  }

  .related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 767px) {
  .desktop-actions {
    display: none;
  }

  .mobile-actions {
    display: block;
  }
}

.header-product-detail {
  width: 100%;
  padding-left: 20px;
  z-index: 1;
}

.counter-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ced4da;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.counter-input {
  width: 40px;
  text-align: center;
  border: none;
  border-top: 1px solid #ced4da;
  border-bottom: 1px solid #ced4da;
  height: 30px;
}

.btn-variant-digital {
  border: 1px solid #ddd;
  background: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  transition: 0.3s;
  cursor: pointer;
}

.btn-variant-digital.active {
  border-color: #5555a5;
  background: #0dc1f2;
  color: #5555a5;
  font-weight: bold;
}

/* fs- helpers */
.fs-8 {
  font-size: 8px !important;
}

.fs-9 {
  font-size: 9px !important;
}

.fs-10 {
  font-size: 10px !important;
}

.fs-11 {
  font-size: 11px !important;
}

.fs-12 {
  font-size: 12px !important;
}

.fs-13 {
  font-size: 13px !important;
}

.fs-14 {
  font-size: 14px !important;
}

.fs-15 {
  font-size: 15px !important;
}

.fs-16 {
  font-size: 16px !important;
}

.smaller {
  font-size: .6em;
}

/* Category wrap desktop */
@media (min-width: 992px) {
  .category-scroll-wrapper {
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 15px;
    overflow: visible !important;
  }

  .cat-item {
    min-width: 100px;
    margin-right: 0 !important;
  }
}

/* ===== CHANGE PASSWORD PAGE ===== */
.pwd-main-container {
  width: 100%;
  margin: 0 auto;
  background: #fcfcfc;
  min-height: 100vh;
}

.pwd-card-wrapper {
  background: white;
  border-radius: 0;
  overflow: hidden;
  border: none;
}

@media (min-width: 768px) {
  .pwd-main-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 16px;
    min-height: unset;
    background: transparent;
  }

  .pwd-card-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    border-radius: 24px;
    border: 1px solid #eee;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  }

  .pwd-visual-side {
    background: linear-gradient(135deg, #5555a5, #ff7a3d);
    padding: 50px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .pwd-form-side {
    padding: 50px !important;
  }
}


/* ===== MODAL SAFETY RESET ===== */
/* Pastikan body bisa diklik setelah modal React state ditutup via back browser */
body:not(.modal-open) .modal-backdrop {
  display: none !important;
}

body:not(.modal-open) {
  overflow: auto !important;
  padding-right: 0 !important;
}

.sidebar-account {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: none !important;
}

.float-right {
  float: right;
}

.dropdown-menu-sidebar-account {
  width: 100%;
  padding: 10px;
  inset: 0px 0px auto auto !important;
  transform: translate3d(0px, 56px, 0px) !important;
  position: fixed !important;
  top: 0px;
  border: 1px solid #5555a5;
  border-radius: 0px !important;
}

.btn.show {
  border-color: #5555a5;
}

.dropdown-divider {
  border-top: 3px solid rgb(245, 245, 245);
}

.btn-sidebar-account-mobile {
  position: fixed;
  z-index: 1200;
  top: 10px;
  right: 10px;
  border: 1px solid #5555a5;
  border-radius: 5px;
  padding: 4px 9px;
  background: white;
  cursor: pointer;
}

.icon-checkout-option {
  font-size: 35px;
}

.location-preview {
  background: var(--adr-bg);
  border: 1.5px dashed #ccc;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-icon {
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.toggle-icon:hover {
  background-color: #e9ecef;
}

.custom-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-top: 0.25rem;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.custom-select-trigger {
  cursor: pointer;
  background-color: #fff;
  min-height: 38px;
}

mark.search-highlight {
  background-color: #ffeeba;
  color: #000;
  padding: 0 0.1em;
  border-radius: 0.1rem;
}

.nav-link {
  color: #666;
}

/* WhatsApp Floating Button */
.whatsapp-floating {
  position: fixed;
  bottom: 85px;
  left: 20px;
  z-index: 9999;
  background-color: #25D366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-floating:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  color: white;
}

@media (min-width: 768px) {
  .whatsapp-floating {
    bottom: 30px;
  }
}

.min-h-150px {
  min-height: 150px;
}

.min-h-100px {
  min-height: 100px;
}

.fs-1-1rem {
  font-size: 1.1rem;
}

.fs-0-85rem {
  font-size: 0.85rem;
}

.fs-0-7rem {
  font-size: 0.7rem;
}

/* Custom utility classes extracted from components */
.badge-cart-count {
  font-size: 0.65rem;
  padding: 0.2rem 0.4rem;
  margin-top: 2px;
  margin-left: 10px;
}

.fs-0-9rem {
  font-size: 0.9rem;
}

.fs-0-55rem {
  font-size: 0.55rem;
}

.fs-0-75rem {
  font-size: 0.75rem;
}

.fs-30px {
  font-size: 30px;
}

.btn-filter-type {
  font-size: 0.7rem;
  border-radius: 10px;
  padding: 8px 0;
}

.btn-find-primary {
  background-color: #5555a5;
  border: none;
}

.badge-bottom-menu {
  font-size: 0.55rem;
  padding: 0.15rem 0.35rem;
}

.object-fit-contain {
  object-fit: contain;
}

.cursor-pointer {
  cursor: pointer;
}

.flex-1 {
  flex: 1;
}

.category-select-clear {
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
}

.category-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  border: 1px solid #dee2e6;
  border-top: none;
}

.max-h-250px {
  max-height: 250px;
}

.search-highlight-mark {
  background-color: #ffeeba;
  color: #000;
  padding: 0 0.1em;
  border-radius: 0.1rem;
}

.tree-toggle-icon {
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.tree-node-icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease-in-out;
}

.tree-node-dash {
  font-size: 1rem;
  opacity: 0.3;
}

.tree-node-container {
  cursor: pointer;
  border-radius: 4px;
  padding: 4px 8px;
  flex-grow: 1;
}

.tree-node-expanded {
  transform: rotate(90deg);
}

/* Custom utility classes extracted from product-card */
.bg-light-f8f9fa {
  background-color: #f8f9fa;
}

.fs-0-95rem {
  font-size: 0.95rem;
}

.product-original-price {
  font-size: 0.75rem;
  margin-top: -2px;
}

.fs-0-65rem {
  font-size: 0.65rem;
}

/* Custom utility classes extracted from product-detail */
.grid-cols-2-gap-30 {
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.aspect-square-cover {
  aspect-ratio: 1/1;
  object-fit: cover;
}

.fs-14px {
  font-size: 14px;
}

.lh-1-6-pre-line {
  line-height: 1.6;
  white-space: pre-line;
}

.object-fit-cover {
  object-fit: cover;
}

.fs-13px {
  font-size: 13px;
}

.z-index-1020 {
  z-index: 1020;
}

.w-55px-shrink-0 {
  width: 55px;
  flex-shrink: 0;
}

.variant-img-modal {
  width: 60%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.variant-btn-img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
}

.fs-10px {
  font-size: 10px;
}

.review-img {
  max-height: 200px;
  object-fit: cover;
}

.rounded-20px {
  border-radius: 20px;
}

.review-rating-count {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Custom utility classes extracted from search.blade.php */
.modal-dialog-bottom-fixed {
  position: absolute;
  bottom: 0;
  width: 100%;
}

.h-70vh {
  height: 70vh;
}

.rounded-8px {
  border-radius: 8px;
}
/* --- Layout & Utilities --- */
.cat-container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}
.hidden {
    display: none !important;
}
.category-page-wrap {
    padding-bottom: 3rem;
    background-color: #f9fafb;
    min-height: 80vh;
}

/* --- Header Khusus Halaman Ini --- */
.page-header-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

/* --- Search Bar --- */
.search-wrapper {
    position: relative;
    margin: 1.5rem 0;
}
.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    pointer-events: none;
}
.search-input {
    display: block;
    width: 100%;
    padding: 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    background-color: #ffffff;
    color: #111827;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.search-input::placeholder {
    color: #6b7280;
}
.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}
.clear-search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}
.clear-search-btn:hover {
    color: #ef4444;
}

/* --- Category Container --- */
.category-container {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.no-results {
    text-align: center;
    padding: 2.5rem 0;
    color: #6b7280;
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
}
.no-results-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    color: #d1d5db;
}

/* --- Tree/List Styles --- */
.category-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}
.category-list.nested {
    position: relative;
    padding-left: 1rem;
}
@media (min-width: 640px) {
    .category-list.nested { padding-left: 1.5rem; }
}

.category-item {
    position: relative;
}
.category-item.border-bottom {
    border-bottom: 1px solid #e5e7eb;
}

/* Tree Lines */
.tree-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #e5e7eb;
}
.category-item:last-child > .tree-line {
    bottom: auto;
    height: 24px;
}

/* --- Category Header (Clickable Area) --- */
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
    border-radius: 0.5rem;
}
.category-header.level-1 {
    padding: 1rem;
    background-color: #ffffff;
}
.category-header.level-1:hover {
    background-color: #f9fafb;
}
.category-header.level-nested {
    padding: 0.75rem 1rem 0.75rem 0.5rem;
}
.category-header.level-nested:hover {
    background-color: #f3f4f6;
}

/* Typography & Icons in Header */
.cat-title-wrap {
    display: flex;
    align-items: center;
    flex: 1;
}
.icon-main {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    color: #3b82f6;
}
.icon-dot-empty {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #9ca3af;
    margin-right: 0.75rem;
    margin-left: 4px;
    display: inline-block;
}
.icon-dot-filled {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background-color: #bfdbfe;
    margin-right: 0.75rem;
    margin-left: 4px;
    display: inline-block;
}

.text-level-1 { font-size: 1rem; font-weight: 600; color: #111827; }
.text-level-2 { font-size: 0.875rem; font-weight: 500; color: #374151; }
.text-level-3 { font-size: 0.875rem; font-weight: 400; color: #4b5563; }

/* Chevron Icon & Animation */
.chevron-btn {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}
.category-header:hover .chevron-btn {
    background-color: #e5e7eb;
}
.chevron-icon {
    width: 1rem;
    height: 1rem;
    color: #6b7280;
    transition: transform 0.3s ease;
}
.open > .category-header .chevron-icon {
    transform: rotate(90deg);
}

/* --- Accordion Animation --- */
.sub-category-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}
.sub-category-wrapper.open {
    grid-template-rows: 1fr;
}
.sub-category-inner {
    overflow: hidden;
}

.text-lucide-blue {
    color: #2563eb;
}

.lucide-icon-md {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-main-blue {
    background-color: var(--main-blue);
    color: white;
    border: none;
}

.btn-main-blue:hover, 
.btn-main-blue:focus, 
.btn-main-blue:active {
    background-color: var(--main-blue);
    color: white;
    opacity: 0.9;
}

.bg-fcfcfc-min-h-100vh {
    background-color: #fcfcfc;
    min-height: 100vh;
}

/* --- Article Category Styles --- */
.hero-section {
    background: linear-gradient(135deg, #5555a5 0%, #3b3b75 100%);
    color: #fff;
    padding: 4rem 1rem;
    border-radius: 0 0 2rem 2rem;
    margin-bottom: 3rem;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
.category-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f1f1f1;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(85, 85, 165, 0.15);
    border-color: #5555a5;
}
.image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
}
.cat-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.category-card:hover .cat-image {
    transform: scale(1.05);
}
.badge-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.95);
    color: #5555a5;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.cat-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
}
.cat-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}
.read-more {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #5555a5;
    display: flex;
    align-items: center;
    transition: gap 0.2s;
    gap: 0;
}
.category-card:hover .read-more {
    gap: 5px;
}

/* --- Utilities & Policy Styles --- */
.bg-f8f9fa-min-h-100vh {
    background-color: #f8f9fa;
    min-height: 100vh;
}
.hero-gray-rounded {
    background: #f0f0f0; 
    padding: 60px 20px 120px 20px; 
    border-radius: 0 0 40px 40px; 
    text-align: center;
}
.max-w-600px { max-width: 600px; }
.mt-minus-80px-pb-60px {
    margin-top: -80px; 
    padding-bottom: 60px;
}
.max-h-80px-contain {
    max-height: 80px; 
    object-fit: contain;
}
.text-justify { text-align: justify; }
.object-fit-contain { object-fit: contain; }
.z-1020 { z-index: 1020; }

.policy-main-container {
    max-width: 576px; 
    margin: 0 auto; 
    background: white; 
    min-height: 100vh;
}
.policy-content-wrapper {
    padding: 1.5rem 1.25rem; 
    line-height: 1.6; 
    color: #444;
}
.policy-version-badge {
    background: #f5f5f5; 
    padding: 8px 12px; 
    border-radius: 8px; 
    font-size: 0.75rem; 
    color: #888; 
    display: inline-block; 
    margin-bottom: 1.5rem;
}
.policy-divider {
    margin: 1.5rem 0; 
    opacity: 0.25;
}
.policy-section { margin-bottom: 2.5rem; }
.policy-heading {
    color: #222; 
    margin-bottom: 1rem;
}
.policy-icon {
    color: #5555a5; 
    font-size: 1.2rem;
}
.policy-text { font-size: 0.9rem; }
.policy-info-box {
    background: #f5f5f5; 
    border-radius: 14px; 
    padding: 1.2rem; 
    border-left: 4px solid #5555a5; 
    margin: 1rem 0;
}
.policy-small-text { font-size: 0.85rem; }
.policy-alert-box {
    border-radius: 12px; 
    background: #eef7ff;
}

/* --- Terms & Conditions Styles --- */
html {
    scroll-behavior: smooth;
}
.nav-fast-box {
    background: #f5f5f5; 
    border-radius: 12px; 
    padding: 1rem; 
    margin-bottom: 2rem;
}
.nav-fast-title {
    font-size: 0.8rem; 
    font-weight: 800; 
    color: #888; 
    margin-bottom: 0.8rem; 
    text-transform: uppercase;
}
.list-none-m0-p0 {
    list-style: none; 
    padding: 0; 
    margin: 0;
}
.nav-fast-link {
    display: block; 
    padding: 6px 0; 
    color: #5555a5; 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 600;
}
.nav-fast-link:hover {
    text-decoration: underline;
}
.policy-section-scrolled {
    margin-bottom: 2rem; 
    scroll-margin-top: 80px;
}
.policy-number-badge {
    background: #5555a5; 
    color: white; 
    width: 24px; 
    height: 24px; 
    border-radius: 6px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.75rem; 
    flex-shrink: 0;
}
.pl-1-2rem { padding-left: 1.2rem; }
.policy-divider-lg {
    margin: 2rem 0; 
    opacity: 0.25;
}
.btn-outline-main-blue {
    border: 1px solid #5555a5; 
    color: #5555a5; 
    font-weight: 700;
    transition: all 0.2s ease;
}
.btn-outline-main-blue:hover {
    background-color: #5555a5;
    color: white;
}

@media (max-width: 767.98px) {
    body:has(.policy-main-container) header.sticky-top { display: none !important; }
    body:has(.policy-main-container) .bottom-menu { display: none !important; }
}

/* --- Article Detail Styles --- */
.wrapper {
    background-color: #fff;
    min-height: 100vh;
}
.article-area {
    padding-bottom: 3rem;
}
.main-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 1rem;
}
@media (min-width: 992px) {
    .main-title {
        font-size: 2.5rem;
    }
}
.meta-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}
.main-image-wrapper {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}
.article-body p {
    margin-bottom: 1.5rem;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}
.tag-badge {
    background-color: #f1f1f1;
    color: #555;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}
.tag-badge:hover {
    background-color: #5555a5;
    color: #fff;
}
.widget-card {
    background: #fdfdfd;
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.side-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.side-list li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed #eee;
    transition: color 0.2s;
}
.side-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.side-list li:hover {
    color: #5555a5;
}
.all-cat-link {
    font-size: 0.85rem;
    color: #5555a5;
    text-decoration: none;
    cursor: pointer;
}
.all-cat-link:hover {
    text-decoration: underline;
}
.lp-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Utilities */
.text-main-blue-no-decor {
    color: #5555a5;
    text-decoration: none;
}
.text-inherit-no-decor {
    color: inherit;
    text-decoration: none;
}

/* --- Article & Sidebar Styles --- */
.article-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid #eee;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
.thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
@media (min-width: 768px) {
  .thumbnail {
    height: 100%;
  }
}
.badge-category {
  background-color: #eef2ff;
  color: #5555a5;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}
.date-text {
  font-size: 0.8rem;
  color: #888;
}
.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}
.article-excerpt {
  font-size: 0.95rem;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
}
.tag-item {
  font-size: 0.75rem;
  color: #888;
  background: #f1f1f1;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.sidebar-sticky {
  position: sticky;
  top: 90px;
}
.sidebar-widget {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #eee;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #f1f1f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}
.sidebar-list li:hover {
  padding-left: 5px;
  color: #5555a5;
}
.sidebar-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sidebar-list li a {
  text-decoration: none;
  color: inherit;
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.mini-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}
.latest-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tag-cloud {
  font-size: 0.8rem;
  background: #f8f9fa;
  border: 1px solid #ddd;
  color: #555;
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  cursor: pointer;
}
.tag-cloud:hover {
  background: #5555a5;
  color: #fff;
  border-color: #5555a5;
}
.link-all-cat {
  font-size: 0.85rem;
  color: #5555a5;
  text-decoration: none;
  cursor: pointer;
}
.link-all-cat:hover {
  text-decoration: underline;
}
.page-link-custom {
  color: #333;
  border: 1px solid #dee2e6;
}
.page-item.active .page-link-custom {
  background-color: #5555a5;
  border-color: #5555a5;
  color: #fff;
}

/* Specific Utilities from article.blade.php */
.bg-f9f9f9-min-h-100vh {
  background-color: #f9f9f9;
  min-height: 100vh;
}
.fs-3rem-text-ccc {
  font-size: 3rem;
  color: #ccc;
}
