:root {
  --main-orange: #ff5200;
  --selly-soft-orange: #fff0e6;
}

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

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

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

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

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

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

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

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

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

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

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

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

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 {
  box-shadow: #bcbcbc 0px 0px 7px 0px;
  background-color: var(--main-orange);
  color: #fff;
}

.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: #faff81;
  color: #f00;
  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-orange {
  background-color: #ff5200;
  color: #fff;
}

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

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

.btn-orange-light:hover {
  background-color: #ff5200;
}

.btn-orange-outline {
  color: #ff5200;
  border-color: #ff5200;
}

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

.text-orange {
  color: #ff5200;
}

.btn-outline-success {
  color: #ff5200;
}

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

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

.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-grid {
  column-count: 2;
  column-gap: 12px;
  width: 100%;
}

@media (min-width: 768px) {
  .masonry-grid {
    column-count: 3;
  }
}

@media (min-width: 992px) {
  .masonry-grid {
    column-count: 4;
  }
}

.masonry-item {
  width: 100%;
  margin-bottom: 15px;
}

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

.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-orange);
}

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

.btn-open-category {
  position: absolute;
  top: 3px;
  left: 5px;
  z-index: 1;
  padding: 4px;
}

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

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

.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: #ff5200;
}

.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: #ff5200;
  border: none;
  font-weight: 500;
  flex-grow: 1;
}

.btn-add-cart {
  border: 1px solid #ff5200;
  color: #ff5200;
  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: #ff5200;
  background-color: #fff0e6;
  color: #ff5200;
  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: #ff5200;
  background-color: #fff0e6;
  color: #ff5200;
  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: #ff5200;
}

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

.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: #ff5200;
  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-orange);
  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-orange);
  color: var(--main-orange);
  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;
  }
}

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

  .offcanvas-start-custom {
    width: 60% !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;
  }
}

@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: #ff5200;
  background: #fff5f0;
  color: #ff5200;
  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, #ff5200, #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 #ff5200;
  border-radius: 0px !important;
}

.btn.show {
  border-color: #ff5200;
}

.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 #ff5200;
  border-radius: 5px;
  padding: 4px 9px;
  background: #00000073;
  color: #fff;
  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;
}