.btn, button{border-radius: 8px!important;}

input, select, textarea{padding: 9px 6px!important; border: 1px solid #E2E8F0!important; border-radius: 8px!important; width: 100%; height: 48px;}
.form-group{margin-bottom: 15px;}
.input-wrapper{padding: 9px 6px!important; border: 1px solid #E2E8F0!important; border-radius: 8px!important; width: 100%; height: 48px;}
.input-wrapper svg{height: 24px;}
.input-wrapper input{border: 0;}

.bg-primary{background: #EE456B!important;}
.text-primary{color: #EE456B!important;}
.border-primary{border-color: #EE456B!important;}

.form-select{height: 48px;}
.form-control{min-height: 48px;}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mobile-menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: min(20rem, 88vw);
  height: 100vh;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  padding: 1rem;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.mobile-menu-drawer.is-open {
  transform: translateX(0);
}

.mobile-menu-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 500;
  color: #0f172a;
}

.mobile-menu-drawer__close {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  color: #475569;
  display: grid;
  place-items: center;
  padding: 0;
}

.mobile-menu-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu-drawer__nav .routerLink {
  width: 100%;
  white-space: normal;
  border-radius: 10px;
  border-bottom-width: 0;
  border-right-width: 4px;
  padding: 0.875rem 1rem;
  font-size: 1rem;
}

@media (max-width: 767px) {
  .dashboard-sidebar {
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    overflow: visible;
    background: transparent;
    border: none;
  }

  #dashboardSidebarNav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: min(20rem, 88vw);
    height: 100vh;
    margin: 0;
    padding: 1rem;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    flex-direction: column !important;
    overflow-x: hidden !important;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease, visibility 0.25s ease;
    visibility: hidden;
  }

  #dashboardSidebarNav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  #dashboardSidebarNav .routerLink {
    width: 100%;
    white-space: normal;
    border-radius: 10px;
    border-bottom-width: 0;
    border-right-width: 4px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
}

/* Order detail page */
.order-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.order-status--processing {
  background: #FEF3C7;
  color: #B45309;
}

.order-status--completed {
  background: #D1FAE5;
  color: #047857;
}

.order-status--cancelled {
  background: #FEE2E2;
  color: #B91C1C;
}

.order-cart-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.order-cart-box__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  background: #EE456B;
  color: #fff;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .order-cart-box__header {
    grid-template-columns: 2fr 1fr 0.75fr 1fr;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
  }
}

.order-cart-box__header .col-price,
.order-cart-box__header .col-qty {
  text-align: center;
}

.order-cart-box__header .col-total {
  text-align: right;
}

.order-cart-box__body {
  padding: 0;
}

.order-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
}

.order-item:last-child {
  border-bottom: none;
}

@media (min-width: 640px) {
  .order-item {
    grid-template-columns: 2fr 1fr 0.75fr 1fr;
    gap: 1rem;
  }
}

.order-item__product {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  min-width: 0;
}

.order-item__img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.order-item__name {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.order-item__sku {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.125rem;
}

.order-item__category {
  font-size: 0.75rem;
  color: #EE456B;
  font-weight: 500;
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.order-item__price,
.order-item__qty {
  text-align: center;
  color: #334155;
  font-size: 0.9375rem;
}

.order-item__total {
  text-align: right;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9375rem;
}

.order-summary-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.order-summary-box__header {
  background: #EE456B;
  color: #fff;
  padding: 0.875rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.order-summary-box__body {
  padding: 1.25rem;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 0.75rem;
}

.order-summary-divider {
  border-top: 1px solid #e2e8f0;
  margin: 1rem 0;
}

.order-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

.order-summary-total__price {
  font-size: 1.25rem;
  color: #EE456B;
}

.order-summary-btn {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #EE456B;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.order-summary-btn:hover {
  background: #DD2C5C;
}

.order-summary-link {
  display: block;
  text-align: center;
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
}

.order-summary-link:hover {
  color: #EE456B;
}