/**
 * خواطر — Front brand theme
 * Loaded after style.css. Colors from logo: red + teal + gold + ink.
 */

:root,
body.theme-color6 {
  --theme-color: #D92E22;
  --brand-primary: #D92E22;
  --brand-primary-hover: #BF271C;
  --brand-primary-soft: #FDECEB;
  --brand-secondary: #1F8F87;
  --brand-secondary-hover: #187A73;
  --brand-accent: #E8A017;
  --brand-ink: #1A2332;
  --brand-ink-soft: #243041;
  --brand-surface: #F7F8FA;
  --brand-border: #E2E6ED;
  --brand-muted: #6B7280;
}

/* Base */
body,
.btn,
.nav-link,
.title-section,
.title-banner,
.form-control {
  font-family: "Almarai", "Segoe UI", Tahoma, sans-serif !important;
}

body {
  color: var(--brand-ink);
  background:
    radial-gradient(900px 300px at 100% -8%, rgba(217, 46, 34, 0.05), transparent 55%),
    radial-gradient(700px 260px at 0% 0%, rgba(31, 143, 135, 0.06), transparent 50%),
    #f5f7fa;
}

/* Modern global refinements */
.btn-them,
.btn-them-1,
.rounded-pill {
  border-radius: 12px !important;
}

.btn-them {
  box-shadow: 0 10px 22px rgba(217, 46, 34, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-them:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(217, 46, 34, 0.28);
}

.product-box,
.categority-item,
.service-wrap,
.cart-box,
.checkout-form-card,
.kh-stat,
.kh-why__item,
.kh-latest-card {
  border-radius: 18px !important;
}

.box-title-section .title-section {
  letter-spacing: -0.02em;
}

.page-title-section .box-page-title {
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(217, 46, 34, 0.28), transparent 60%),
    radial-gradient(360px 140px at 0% 100%, rgba(31, 143, 135, 0.2), transparent 55%),
    linear-gradient(135deg, #15202e 0%, var(--brand-ink) 55%, #121a26 100%) !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(10, 14, 22, 0.22);
}

.page-title-section .box-page-title .title-banner,
.page-title-section .box-page-title h2 {
  color: #fff !important;
}

.tap-to-top a {
  border-radius: 14px !important;
  box-shadow: 0 10px 24px rgba(217, 46, 34, 0.28);
}

.whatsapp img {
  border-radius: 50%;
}

/* Preloader */
.preloader {
  background: #fff;
}

.preloader .img-loading,
.preloader img {
  max-width: 120px;
  height: auto;
}

/* Header — same dark modern language as footer */
header#home {
  position: sticky;
  top: 0;
  z-index: 1100;
  background:
    radial-gradient(520px 180px at 100% 0%, rgba(217, 46, 34, 0.22), transparent 60%),
    radial-gradient(420px 160px at 0% 100%, rgba(31, 143, 135, 0.16), transparent 55%),
    linear-gradient(180deg, #15202e 0%, var(--brand-ink) 55%, #121a26 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(10, 14, 22, 0.28);
  transition: box-shadow 0.25s ease;
}

header#home::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), var(--brand-accent), var(--brand-secondary), transparent);
  opacity: 0.85;
  pointer-events: none;
}

header#home.is-scrolled {
  box-shadow: 0 14px 36px rgba(10, 14, 22, 0.4);
}

header .top-header-black {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 8px 0 !important;
}

header#home.is-scrolled .top-header-black {
  margin: 0 !important;
  border-radius: 0 !important;
}

header .top-header-black a,
header .top-header-black .dropdown-toggle,
header .top-header-black > .container-fluid-lg span,
header .top-header-black > .container-fluid-lg p,
header .top-header-black .border-list > li > .dropdown > a,
header .top-header-black .border-list > li > .dropdown > a span,
header .top-header-black .border-list > li > .dropdown > a i,
header .top-header-black #news-flash,
header .top-header-black #news-flash p,
header .top-header-black #news-flash li {
  color: #d7dee8 !important;
}

header .top-header-black a:hover,
header .top-header-black .dropdown-toggle:hover {
  color: var(--brand-accent) !important;
}

header .top-header-black .dropdown-menu {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(26, 35, 50, 0.14);
  overflow: hidden;
}

header .top-header-black .dropdown-menu .dropdown-item {
  color: var(--brand-ink) !important;
  font-weight: 600;
}

header .top-header-black .dropdown-menu .dropdown-item:hover {
  background: var(--brand-primary-soft);
  color: var(--brand-primary) !important;
}

header .main-header,
header .search-header {
  background: transparent !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

header#home.is-scrolled .main-header,
header#home.is-scrolled .search-header {
  border-bottom-color: transparent;
}

/* Disable old floating/hide header behavior */
header.nav-down .navbar-searchbar,
header.nav-down.nav-up .navbar-searchbar {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: 100% !important;
  transform: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

header .brand-logo img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

footer .brand-logo img,
.footer-logo img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

header .nav-menu > li > a.nav-link {
  color: #e8edf3 !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

header .nav-menu > li.active-item > a.nav-link,
header .nav-menu > li > a.nav-link:hover {
  color: var(--brand-accent) !important;
}

header .nav-menu > li.active-item > a.nav-link::after,
header .nav-menu > li > a.nav-link:hover::after {
  background-color: var(--brand-accent) !important;
  height: 2px !important;
  border-radius: 999px;
}

header .menu-right .cart-icon,
header .menu-right .cart-btn,
header .menu-right svg,
header .menu-right .feather,
header .menu-right i,
header .cart-icon,
header .cart-btn {
  color: #e8edf3 !important;
  stroke: #e8edf3 !important;
}

header .menu-right .search-box {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

header .menu-right .search-box svg,
header .menu-right .search-box .feather {
  color: #fff !important;
  stroke: #fff !important;
}

header .label-theme,
.label-theme {
  background-color: var(--brand-primary) !important;
  color: #fff !important;
  box-shadow: 0 0 0 2px rgba(21, 32, 46, 0.85);
}

header .toggle-nav,
header .mobile-back,
header .close-btn {
  color: #e8edf3 !important;
}

header .onhover-div {
  border-radius: 16px !important;
  border: 1px solid var(--brand-border);
  box-shadow: 0 18px 40px rgba(26, 35, 50, 0.16) !important;
}

header .nav-submenu {
  background: #fff !important;
  border-radius: 14px !important;
  border: 1px solid var(--brand-border);
  box-shadow: 0 16px 36px rgba(26, 35, 50, 0.12);
  overflow: hidden;
}

header .nav-submenu a {
  color: var(--brand-ink) !important;
}

header .nav-submenu a:hover {
  color: var(--brand-primary) !important;
  background: var(--brand-primary-soft);
}

/* Buttons */
.btn-them,
.default-theme.btn-them-2,
.offer-input .btn-them,
.cart-section tbody tr td a.btn-them {
  background-color: var(--brand-primary) !important;
  background-image: none !important;
  border: 0 !important;
  color: #fff !important;
}

.btn-them:hover,
.default-theme.btn-them-2:hover,
.offer-input .btn-them:hover,
.cart-section tbody tr td a.btn-them:hover {
  background-color: var(--brand-primary-hover) !important;
  color: #fff !important;
}

.btn-them-1 {
  border: 2px solid var(--brand-ink) !important;
  color: var(--brand-ink) !important;
  background: transparent !important;
}

.btn-them-1:hover {
  border-color: var(--brand-primary) !important;
  color: var(--brand-primary) !important;
  background: var(--brand-primary-soft) !important;
}

.default-theme {
  background-color: var(--theme-color) !important;
  color: #fff !important;
}

/* Text / accents */
.theme-color,
.price-detail,
.price-product,
.font-theme,
.num-order {
  color: var(--brand-primary) !important;
}

a:hover {
  color: var(--brand-primary);
}

/* Section titles */
.box-title-section .title-section span,
.title-banner {
  color: var(--brand-ink);
}

.box-title-section .title-section span::before,
.box-title-section .title-section span::after {
  background: var(--brand-secondary) !important;
}

.box-title-section .title-section::before {
  display: none !important;
}

.page-title-section .box-page-title {
  border-color: rgba(217, 46, 34, 0.12);
}

/* Product / category surfaces */
.product-box,
.categority-item {
  border-color: var(--brand-border) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-box:hover,
.categority-item:hover {
  border-color: rgba(217, 46, 34, 0.35) !important;
  box-shadow: 0 10px 28px rgba(26, 35, 50, 0.08);
}

.category-section .categority-name {
  color: var(--brand-ink);
  font-weight: 700;
}

/* Forms / auth */
.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(217, 46, 34, 0.16) !important;
}

.them-login-section .logo-login img,
.login-page .logo-login img,
.materialContainer .logo-login img {
  max-height: 72px;
  width: auto;
}

.them-login-section .btn-them,
.login-page .btn-them {
  border-radius: 10px;
}

/* Pagination */
.page-item.active .page-link,
.pagination .active a,
.pagination li.active a {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #fff !important;
}

.page-link:hover {
  color: var(--brand-primary) !important;
}

/* Stars */
.fas.fa-star.theme-color3,
.fas.fa-star.theme-color {
  color: var(--brand-accent) !important;
}

.theme-color3 {
  --theme-color: var(--brand-accent);
}

/* Footer */
footer.footer-sm-space,
.footer-sm-space {
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(217, 46, 34, 0.22), transparent 60%),
    radial-gradient(460px 200px at 0% 100%, rgba(31, 143, 135, 0.18), transparent 55%),
    linear-gradient(180deg, #15202e 0%, var(--brand-ink) 45%, #121a26 100%) !important;
  color: #c5cdd8 !important;
  border-radius: 28px 28px 0 0 !important;
  overflow: hidden;
  position: relative;
  margin-top: 40px;
}

.footer-sm-space::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--brand-primary), var(--brand-accent), var(--brand-secondary), transparent);
  z-index: 2;
  width: auto;
}

footer .main-footer {
  padding: 56px 0 36px !important;
  position: relative;
  z-index: 1;
}

footer h3,
footer .footer-title h3 {
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  margin-bottom: 16px !important;
}

footer .footer-links .footer-title h3::after {
  background: var(--brand-primary) !important;
  width: 36px !important;
  height: 3px !important;
  border-radius: 4px;
}

footer a,
footer .link-footer,
footer .par-footer {
  color: #d7dee8 !important;
}

footer .par-footer {
  line-height: 1.8 !important;
  max-width: 280px;
  opacity: 0.92;
}

footer .link-footer {
  display: inline-block;
  padding: 4px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

footer a:hover,
footer .link-footer:hover {
  color: var(--brand-accent) !important;
  transform: translateX(-3px);
}

footer .social-media-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

footer .social-media-box .item-social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  transition: all 0.2s ease;
}

footer .social-media-box .item-social a:hover {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

footer .footer-contact-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px 18px;
}

footer .footer-contact-box > h3 {
  margin-bottom: 14px !important;
}

footer .footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

footer .footer-contact-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

footer .footer-contact-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  flex-shrink: 0;
}

footer .footer-contact-item--whatsapp .footer-contact-item__icon {
  background: #25D366;
}

footer .footer-contact-item--phone .footer-contact-item__icon {
  background: var(--brand-primary);
}

footer .footer-contact-item__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

footer .footer-contact-item__label {
  color: #aeb6c2 !important;
  font-size: 0.82rem;
  font-weight: 600;
}

footer .footer-contact-item__value {
  color: #fff !important;
  font-weight: 800;
  font-size: 1rem;
  direction: ltr;
  text-align: start;
}

footer .footer-contact-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .footer-contact-meta p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px;
  color: #c5cdd8;
  font-size: 0.9rem;
  line-height: 1.6;
}

footer .footer-contact-meta p:last-child {
  margin-bottom: 0;
}

footer .footer-contact-meta i {
  color: var(--brand-accent);
  margin-top: 4px;
}

footer .footer-contact-meta a {
  color: #d7dee8 !important;
  word-break: break-all;
}

footer .footer-newsletter {
  display: none;
}

footer .footer-bottom-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  text-align: center;
}

footer .footer-bottom-bar .copyright-text {
  margin: 0;
  color: #aeb6c2 !important;
  font-size: 0.92rem;
}

footer .footer-bottom-bar .link-copyright {
  color: var(--brand-accent) !important;
  font-weight: 700;
}

footer .sub-footer,
footer .copyright-text {
  color: #aeb6c2 !important;
  border-top-color: rgba(255, 255, 255, 0.08);
}

footer .footer-logo img,
footer .brand-logo-light {
  max-height: 64px;
  opacity: 0.98;
}

/* Banner */
.banner-section .banner-slider {
  border-radius: 12px;
  overflow: hidden;
}

/* WhatsApp float */
.whatsapp img {
  filter: drop-shadow(0 6px 14px rgba(26, 35, 50, 0.25));
}

/* Tap to top */
.tap-to-top a {
  background: var(--brand-primary) !important;
  color: #fff !important;
}

.tap-to-top a:hover {
  background: var(--brand-primary-hover) !important;
}

/* Legacy blue leftovers */
.color-blue,
.text-blue {
  color: var(--brand-primary) !important;
}

@media (max-width: 991px) {
  header .top-header-black {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  header#home.is-scrolled .top-header-black {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  header .brand-logo img {
    max-height: 40px;
  }

  footer .footer-contact-box {
    margin-top: 8px;
  }

  #mainnav {
    background: #15202e !important;
  }

  header .nav-menu > li > a.nav-link,
  header .close-btn,
  header .mobile-back {
    color: #e8edf3 !important;
  }
}

/* ========== Home — Hero + Why + sections ========== */
.kh-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  margin-bottom: 8px;
}

.kh-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(217, 46, 34, 0.14), transparent 60%),
    radial-gradient(560px 280px at 0% 100%, rgba(31, 143, 135, 0.12), transparent 55%),
    linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
  z-index: 0;
}

.kh-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.kh-hero__brand {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
  animation: kh-fade-up 0.7s ease both;
}

.kh-hero__title {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 700;
  color: var(--brand-ink);
  line-height: 1.45;
  animation: kh-fade-up 0.75s ease 0.08s both;
}

.kh-hero__desc {
  margin: 0 0 22px;
  max-width: 34rem;
  color: var(--brand-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  animation: kh-fade-up 0.8s ease 0.14s both;
}

.kh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  animation: kh-fade-up 0.85s ease 0.2s both;
}

.kh-hero__actions .btn {
  min-width: 140px;
  padding: 12px 22px;
  font-weight: 700;
}

.kh-hero__chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: kh-fade-up 0.9s ease 0.26s both;
}

.kh-hero__chips li {
  background: #fff;
  border: 1px solid var(--brand-border);
  color: var(--brand-ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.kh-hero__stats {
  display: grid;
  gap: 12px;
  animation: kh-fade-up 0.9s ease 0.2s both;
}

.kh-stat {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 10px 28px rgba(26, 35, 50, 0.05);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.kh-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 46, 34, 0.35);
}

.kh-stat strong {
  display: block;
  font-size: 1.55rem;
  color: var(--brand-primary);
  margin-bottom: 4px;
  font-weight: 800;
}

.kh-stat span {
  color: var(--brand-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.kh-why {
  padding: 48px 0 24px;
}

.kh-why__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.kh-why__eyebrow {
  display: inline-block;
  color: var(--brand-secondary);
  font-weight: 800;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.kh-why__title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--brand-ink);
}

.kh-why__desc {
  margin: 0;
  color: var(--brand-muted);
  line-height: 1.8;
}

.kh-why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.kh-why__item {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 22px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kh-why__item:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 143, 135, 0.35);
  box-shadow: 0 14px 30px rgba(26, 35, 50, 0.08);
}

.kh-why__num {
  display: inline-block;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand-primary);
  margin-bottom: 10px;
}

.kh-why__item h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-ink);
}

.kh-why__item p {
  margin: 0;
  color: var(--brand-muted);
  line-height: 1.75;
  font-size: 0.98rem;
}

/* Latest products cards */
.kh-latest-section {
  padding: 36px 0 48px;
}

.kh-related-section {
  padding: 40px 0 56px;
  background:
    radial-gradient(700px 240px at 100% 0%, rgba(217, 46, 34, 0.05), transparent 55%),
    #f7f8fa;
}

.kh-latest-section .box-title-section,
.kh-related-section .box-title-section {
  margin-bottom: 24px;
}

.kh-latest-section .box-title-section .shap-title,
.kh-related-section .box-title-section .shap-title {
  display: none;
}

.kh-latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.kh-latest-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.kh-latest-card:hover {
  border-color: rgba(217, 46, 34, 0.28);
  box-shadow: 0 14px 30px rgba(26, 35, 50, 0.08);
  transform: translateY(-3px);
}

.kh-latest-card__media {
  position: relative;
  background: var(--brand-surface);
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
}

.kh-latest-card__image {
  display: block;
  width: 100%;
  height: 100%;
}

.kh-latest-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.kh-latest-card:hover .kh-latest-card__image img {
  transform: scale(1.04);
}

.kh-latest-card__fav {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #9aa3b2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(26, 35, 50, 0.12);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.kh-latest-card__fav i {
  font-size: 16px;
  line-height: 1;
}

.kh-latest-card__fav.is-active,
.kh-latest-card__fav:hover {
  color: var(--brand-primary);
  background: #fff;
  transform: scale(1.06);
  box-shadow: 0 8px 18px rgba(217, 46, 34, 0.18);
}

/* Empty state — لا توجد بيانات */
.no-notifications {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 48px;
}

.no-notifications .box-img-noti {
  width: min(100%, 460px);
  margin: 0 auto;
  text-align: center;
  padding: 40px 28px 36px;
  background:
    radial-gradient(220px 120px at 50% 18%, rgba(217, 46, 34, 0.08), transparent 70%),
    #fff;
  border: 1px solid var(--brand-border);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(26, 35, 50, 0.06);
}

.no-notifications .noti-img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
  padding: 18px;
  border-radius: 50%;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
}

.no-notifications .noti-par {
  margin: 0 0 8px;
  color: var(--brand-ink);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.5;
}

.no-notifications .noti-desc {
  margin: 0 0 22px;
  color: var(--brand-muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.7;
}

.no-notifications .noti-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  padding: 11px 22px;
  border-radius: 12px !important;
}

@media (max-width: 575px) {
  .no-notifications {
    padding: 18px 8px 36px;
  }

  .no-notifications .box-img-noti {
    padding: 32px 18px 28px;
    border-radius: 18px;
  }

  .no-notifications .noti-img {
    width: 96px;
    height: 96px;
    padding: 14px;
  }

  .no-notifications .noti-par {
    font-size: 1.05rem;
  }
}

/* Product card fav button */
.product-box .header-img .box-hart,
.product-details-section .details-image-concept .box-hart {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #9aa3b2;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(26, 35, 50, 0.14);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-box .header-img .box-hart i,
.product-details-section .details-image-concept .box-hart i {
  font-size: 16px;
  line-height: 1;
}

.product-box .header-img .box-hart:hover,
.product-box .header-img .box-hart.active-fav,
.product-details-section .details-image-concept .box-hart:hover,
.product-details-section .details-image-concept .box-hart.active-fav {
  color: var(--brand-primary);
  background: #fff !important;
  transform: scale(1.06);
  box-shadow: 0 8px 18px rgba(217, 46, 34, 0.18);
}

.product-box .header-img .box-hart.active-fav svg path,
.product-box .header-img .box-hart:hover svg path,
.product-details-section .details-image-concept .box-hart.active-fav svg path,
.product-details-section .details-image-concept .box-hart:hover svg path {
  fill: var(--brand-primary);
}

.kh-latest-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.kh-latest-card__category {
  color: var(--brand-muted) !important;
  font-size: 0.85rem;
  font-weight: 600;
}

.kh-latest-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
  min-height: 2.9em;
}

.kh-latest-card__title a {
  color: var(--brand-ink) !important;
}

.kh-latest-card__title a:hover {
  color: var(--brand-primary) !important;
}

.kh-latest-card__meta {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kh-latest-card__rate {
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.kh-latest-card__rate i {
  margin-left: 4px;
}

.kh-latest-card__price {
  color: var(--brand-primary);
  font-size: 1.05rem;
  font-weight: 800;
}

.kh-home-section {
  padding-top: 28px;
  padding-bottom: 36px;
}

.kh-home-section .box-title-section {
  margin-bottom: 22px;
}

.kh-home-section .box-title-section .shap-title {
  display: none;
}

.kh-home-section .title-section {
  font-weight: 800;
  color: var(--brand-ink);
}

.category-section.kh-home-section .categority-item {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 16px 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.category-section.kh-home-section .categority-item:hover {
  border-color: rgba(217, 46, 34, 0.35);
  box-shadow: 0 12px 28px rgba(26, 35, 50, 0.08);
  transform: translateY(-3px);
}

.category-section.kh-home-section .categority-item.is-name-only {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 22px 16px;
  background:
    radial-gradient(180px 80px at 100% 0%, rgba(217, 46, 34, 0.08), transparent 65%),
    #fff;
}

.category-section.kh-home-section .categority-item.is-name-only .categority-name {
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-ink);
  line-height: 1.4;
}

.kh-services {
  padding-top: 20px;
  padding-bottom: 48px;
}

.kh-services .service-wrap {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 22px 18px;
  height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kh-services .service-wrap:hover {
  border-color: rgba(31, 143, 135, 0.35);
  box-shadow: 0 12px 28px rgba(26, 35, 50, 0.07);
}

.kh-services .service-icon {
  color: var(--brand-primary);
  margin-bottom: 10px;
}

.kh-services .service-content h3 {
  color: var(--brand-ink) !important;
  font-weight: 800;
  font-size: 1.1rem;
}

.kh-services .service-content span {
  color: var(--brand-muted);
  line-height: 1.7;
}

@keyframes kh-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199px) {
  .kh-latest-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .kh-hero {
    padding: 36px 0 28px;
  }

  .kh-hero__inner {
    grid-template-columns: 1fr;
  }

  .kh-hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .kh-why__grid {
    grid-template-columns: 1fr;
  }

  .kh-latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .kh-hero__stats {
    grid-template-columns: 1fr;
  }

  .kh-hero__actions .btn {
    width: 100%;
  }

  .kh-latest-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Checkout — invoice details ========== */
.checkout-section .checkout-form-card {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 10px 28px rgba(26, 35, 50, 0.05);
}

.checkout-section .checkout-form-card__title {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-ink);
}

.checkout-section .form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--brand-ink);
  font-size: 0.95rem;
}

.checkout-section .input-icon-box .form-control,
.checkout-section .input-icon-box .form-select {
  min-height: 52px;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  background-color: var(--brand-surface) !important;
  color: var(--brand-ink);
  padding: 12px 18px 12px 48px;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.checkout-section .input-icon-box .form-control:focus,
.checkout-section .input-icon-box .form-select:focus {
  background-color: #fff !important;
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(217, 46, 34, 0.14) !important;
  color: var(--brand-ink);
}

.checkout-section .input-icon-box .icon-input {
  left: 16px;
  top: 50%;
  width: 18px;
  opacity: 0.75;
  pointer-events: none;
}

.checkout-section .input-icon-box--textarea .icon-input {
  top: 22px;
  transform: none;
}

.checkout-section .input-icon-box--textarea .form-control {
  min-height: 120px;
  resize: vertical;
  padding-top: 14px;
  padding-bottom: 14px;
}

.checkout-section .input-icon-box.date-input .form-control {
  direction: rtl;
  text-align: right;
}

.checkout-section .form-select {
  background-color: var(--brand-surface) !important;
  background-position: left 2.5rem center;
}

.checkout-section .offer-input .input-group {
  position: relative;
  display: block;
}

.checkout-section .offer-input .input-group .form-control {
  padding-left: 110px;
  width: 100%;
}

.checkout-section .offer-input .input-group-append {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.checkout-section .offer-input .btn-them {
  min-width: 88px;
  padding: 8px 14px;
  border-radius: 10px !important;
  font-weight: 700;
}

.checkout-section .checkout-divider {
  margin: 8px 0 20px;
  border: 0;
  height: 1px;
  background: var(--brand-border);
  opacity: 1;
}

.checkout-section .checkout-payment-fixed {
  display: flex;
  align-items: center;
  background: var(--brand-primary-soft);
  border: 1px solid rgba(217, 46, 34, 0.18);
  border-radius: 14px;
  padding: 14px 16px;
}

.checkout-section .checkout-payment-fixed__badge {
  display: inline-flex;
  align-items: center;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 8px 18px;
}

.checkout-section .help-block.has-error {
  display: block;
  margin-top: 6px;
  color: var(--brand-primary);
  font-size: 0.85rem;
}

.checkout-section .checkout-no-address-hint {
  margin: 8px 0 0;
  color: var(--brand-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.checkout-section .checkout-map-box {
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--brand-surface);
}

.checkout-section .add-adress-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.checkout-section .add-adress-check .form-check-label {
  font-weight: 700;
  color: var(--brand-ink);
  cursor: pointer;
}

.checkout-section .size-box .box-adress {
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-section .size-box .box-adress li a {
  background-color: #fff !important;
  border: 1px solid var(--brand-border) !important;
  color: var(--brand-ink) !important;
  font-weight: 700;
  margin-left: 0;
  min-width: 88px;
  padding: 8px 14px;
}

.checkout-section .size-box .box-adress li a:hover {
  border-color: var(--brand-primary) !important;
  color: var(--brand-primary) !important;
}

.checkout-section .size-box .box-adress li.active a {
  background: var(--brand-primary) !important;
  background-image: none !important;
  border-color: var(--brand-primary) !important;
  color: #fff !important;
}

.checkout-section .btn-them,
.checkout-section a.btn-them {
  color: #fff !important;
}

/* Address type chips (checkout + profile modal) */
.size-box .box-adress li a {
  background-color: #fff !important;
  border: 1px solid var(--brand-border) !important;
  color: var(--brand-ink) !important;
  font-weight: 700;
}

.size-box .box-adress li a:hover {
  border-color: var(--brand-primary) !important;
  color: var(--brand-primary) !important;
}

.size-box .box-adress li.active a {
  background: var(--brand-primary) !important;
  background-image: none !important;
  border-color: var(--brand-primary) !important;
  color: #fff !important;
}

.checkout-section.cart-section .cart-checkout-section .cart-box {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(26, 35, 50, 0.05);
}

@media (max-width: 575px) {
  .checkout-section .checkout-form-card {
    padding: 20px 16px;
  }

  .checkout-section .offer-input .input-group .form-control {
    padding-left: 100px;
  }
}

/* ========== Contact page aside ========== */
.contact-page .kh-contact-aside {
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(217, 46, 34, 0.2), transparent 60%),
    radial-gradient(360px 160px at 0% 100%, rgba(31, 143, 135, 0.16), transparent 55%),
    linear-gradient(160deg, #15202e 0%, var(--brand-ink) 50%, #121a26 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 24px 20px;
  color: #d7dee8;
  height: 100%;
  box-shadow: 0 16px 36px rgba(10, 14, 22, 0.18);
}

.contact-page .kh-contact-aside__head h3 {
  margin: 0 0 8px;
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
}

.contact-page .kh-contact-aside__head p {
  margin: 0 0 20px;
  color: #aeb6c2;
  line-height: 1.7;
}

.contact-page .kh-contact-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.contact-page .kh-contact-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-page .kh-contact-stat:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 160, 23, 0.35);
}

.contact-page .kh-contact-stat strong {
  display: block;
  color: var(--brand-accent);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.contact-page .kh-contact-stat span {
  color: #c5cdd8;
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-page .kh-contact-channels {
  display: grid;
  gap: 10px;
}

.contact-page .kh-contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-page .kh-contact-channel:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.contact-page .kh-contact-channel__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-primary);
  color: #fff;
  flex-shrink: 0;
}

.contact-page .kh-contact-channel--whatsapp .kh-contact-channel__icon {
  background: #25D366;
}

.contact-page .kh-contact-channel__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-page .kh-contact-channel__text small {
  color: #aeb6c2;
  font-size: 0.8rem;
  font-weight: 600;
}

.contact-page .kh-contact-channel__text strong {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  word-break: break-word;
}

.contact-page .kh-contact-map {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 991px) {
  .contact-page .kh-contact-aside {
    margin-top: 8px;
  }

  .contact-page .kh-contact-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 575px) {
  .contact-page .kh-contact-stats {
    grid-template-columns: 1fr;
  }
}

/* ========== About page ========== */
.kh-about {
  padding: 28px 0 12px;
}

.kh-about__media {
  position: relative;
  height: 100%;
  min-height: 320px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(217, 46, 34, 0.18), transparent 60%),
    linear-gradient(160deg, #15202e 0%, var(--brand-ink) 55%, #121a26 100%);
  box-shadow: 0 16px 36px rgba(10, 14, 22, 0.14);
  animation: kh-fade-up 0.55s ease both;
}

.kh-about__image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.kh-about__panel {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 22px;
  padding: 28px 26px;
  height: 100%;
  box-shadow: 0 12px 28px rgba(26, 35, 50, 0.05);
  animation: kh-fade-up 0.65s ease both;
}

.kh-about__panel .title-section {
  margin: 0;
  color: var(--brand-ink);
  font-weight: 800;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.kh-about__content {
  color: var(--brand-muted);
  font-size: 1rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kh-about__content > *:first-child {
  margin-top: 0;
}

.kh-about__content > *:last-child {
  margin-bottom: 0;
}

.kh-about__content p,
.kh-about__content div,
.kh-about__content span,
.kh-about__content li {
  color: var(--brand-muted);
  line-height: 1.9;
  font-size: 1rem;
}

.kh-about__content p {
  margin-bottom: 0.9rem;
}

.kh-about__content h1,
.kh-about__content h2,
.kh-about__content h3,
.kh-about__content h4,
.kh-about__content h5,
.kh-about__content strong,
.kh-about__content b {
  color: var(--brand-ink);
  font-weight: 800;
}

.kh-about__content h1,
.kh-about__content h2,
.kh-about__content h3 {
  margin: 1rem 0 0.55rem;
  line-height: 1.4;
}

.kh-about__content ul,
.kh-about__content ol {
  padding-inline-start: 1.25rem;
  margin: 0 0 1rem;
}

.kh-about__content li {
  margin-bottom: 0.35rem;
}

.kh-about__content a {
  color: var(--brand-primary);
  text-decoration: underline;
}

.kh-about__content img,
.kh-about__content table,
.kh-about__content iframe {
  max-width: 100% !important;
  height: auto !important;
}

.kh-about__content table {
  display: block;
  overflow-x: auto;
}

.kh-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--brand-border);
}

.kh-about__actions .btn {
  min-width: 140px;
}

@media (max-width: 991px) {
  .kh-about__media,
  .kh-about__image {
    min-height: 240px;
  }

  .kh-about__panel {
    padding: 22px 18px;
  }
}

/* ========== User profile page ========== */
.kh-profile {
  padding: 28px 0 40px;
}

.kh-profile__sidebar {
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(217, 46, 34, 0.2), transparent 60%),
    radial-gradient(360px 160px at 0% 100%, rgba(31, 143, 135, 0.16), transparent 55%),
    linear-gradient(160deg, #15202e 0%, var(--brand-ink) 50%, #121a26 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 24px 18px;
  color: #d7dee8;
  box-shadow: 0 16px 36px rgba(10, 14, 22, 0.18);
  position: sticky;
  top: 96px;
}

.kh-profile__avatar {
  position: relative;
  width: 128px;
  height: 128px;
  max-width: 128px;
  margin: 0 auto 18px;
}

.kh-profile__avatar .avatar-preview {
  width: 128px !important;
  height: 128px !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
}

.kh-profile__avatar .avatar-preview div,
.kh-profile__avatar .avatar-preview #imagePreview {
  width: 100% !important;
  height: 100% !important;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.08);
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.kh-profile__avatar .avatar-edit {
  position: absolute;
  inset-inline-end: 2px;
  bottom: 2px;
  right: auto !important;
  left: auto !important;
  z-index: 3;
}

html[dir="rtl"] .kh-profile__avatar .avatar-edit {
  left: 2px !important;
  right: auto !important;
}

html[dir="ltr"] .kh-profile__avatar .avatar-edit {
  right: 2px !important;
  left: auto !important;
}

.kh-profile__avatar .avatar-edit input + label {
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  background: var(--brand-primary) !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 6px 16px rgba(217, 46, 34, 0.35);
  color: #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.kh-profile__avatar .avatar-edit input + label:hover {
  background: var(--brand-primary-hover) !important;
  color: #fff !important;
}

.kh-profile__avatar .avatar-edit input + label:after {
  content: none !important;
  display: none !important;
}

.kh-profile__avatar .avatar-edit input + label i {
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.kh-profile__identity {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kh-profile__name {
  margin: 0 0 6px;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.4;
}

.kh-profile__phone {
  margin: 0;
  color: #aeb6c2;
  font-weight: 600;
  font-size: 0.92rem;
}

.kh-profile__nav {
  border: 0 !important;
  gap: 6px;
}

.kh-profile__nav .nav-item {
  margin: 0 !important;
}

.kh-profile__nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.04);
  color: #c5cdd8 !important;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.kh-profile__nav .nav-link i {
  width: 18px;
  text-align: center;
  color: var(--brand-accent);
  font-size: 0.95rem;
}

.kh-profile__nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  transform: translateX(-2px);
}

.kh-profile__nav .nav-link.active {
  background: rgba(217, 46, 34, 0.22);
  border-color: rgba(217, 46, 34, 0.45) !important;
  color: #fff !important;
}

.kh-profile__nav .nav-link.active i {
  color: #fff;
}

.kh-profile__nav-danger:hover,
.kh-profile__nav .nav-link.kh-profile__nav-danger.active {
  border-color: rgba(217, 46, 34, 0.5) !important;
}

.kh-profile__mobile-toggle {
  margin-bottom: 14px;
}

.kh-profile__panel {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 22px;
  padding: 26px 24px;
  box-shadow: 0 12px 28px rgba(26, 35, 50, 0.05);
  animation: kh-fade-up 0.55s ease both;
}

.kh-profile__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--brand-border);
}

.kh-profile__panel-head--split {
  flex-wrap: wrap;
}

.kh-profile__panel-head h3 {
  margin: 0;
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 1.35rem;
}

.kh-profile__welcome {
  margin-bottom: 22px;
}

.kh-profile__welcome h6 {
  margin: 0 0 6px;
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 1.05rem;
}

.kh-profile__welcome h6 span {
  color: var(--brand-primary);
}

.kh-profile__welcome p {
  margin: 0;
  color: var(--brand-muted);
  line-height: 1.7;
}

.kh-profile__stats {
  margin-bottom: 24px;
}

.kh-profile__stat {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 18px 20px;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.kh-profile__stat:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 46, 34, 0.35);
  box-shadow: 0 10px 24px rgba(26, 35, 50, 0.06);
}

.kh-profile__stat strong {
  display: block;
  font-size: 1.55rem;
  color: var(--brand-primary);
  font-weight: 800;
  margin-bottom: 4px;
}

.kh-profile__stat span {
  color: var(--brand-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.kh-profile__section {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--brand-border);
}

.kh-profile__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.kh-profile__section-head h4 {
  margin: 0;
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 1.05rem;
}

.kh-profile__details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kh-profile__detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  margin-bottom: 8px;
}

.kh-profile__detail-row:last-child {
  margin-bottom: 0;
}

.kh-profile__detail-row--action {
  position: relative;
  padding-inline-end: 52px;
}

.kh-profile__detail-label {
  color: var(--brand-muted);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.kh-profile__detail-value {
  color: var(--brand-ink);
  font-weight: 700;
  text-align: end;
  word-break: break-word;
}

.kh-profile__edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  border: 1px solid rgba(217, 46, 34, 0.15);
  transition: background 0.2s ease, transform 0.2s ease;
}

.kh-profile__edit-btn:hover {
  background: var(--brand-primary);
  color: #fff;
  transform: translateY(-1px);
}

.kh-profile__edit-btn svg {
  width: 16px;
  height: 16px;
}

.kh-profile__detail-row--action .kh-profile__edit-btn {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.kh-profile__detail-row--action .kh-profile__edit-btn:hover {
  transform: translateY(calc(-50% - 1px));
}

.kh-profile__table-wrap {
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  overflow: hidden;
}

.kh-profile__table {
  margin: 0;
}

.kh-profile__table thead th {
  background: var(--brand-surface);
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--brand-border);
  padding: 14px 16px;
  white-space: nowrap;
}

.kh-profile__table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid var(--brand-border);
  color: var(--brand-muted);
  font-weight: 600;
}

.kh-profile__table tbody tr:last-child td {
  border-bottom: 0;
}

.kh-profile__table tbody tr:hover {
  background: rgba(247, 248, 250, 0.7);
}

.kh-profile__order-code {
  color: var(--brand-ink);
  font-weight: 800;
}

.kh-profile__status {
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 6px 12px !important;
}

.kh-profile__address {
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 18px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.kh-profile__address:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 143, 135, 0.35);
  box-shadow: 0 10px 24px rgba(26, 35, 50, 0.06);
}

.kh-profile__address-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.kh-profile__address-head h5 {
  margin: 0;
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 1rem;
}

.kh-profile__address-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 143, 135, 0.12);
  color: var(--brand-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.kh-profile__address-badge svg {
  width: 12px;
  height: 12px;
}

.kh-profile__address-body {
  flex: 1;
  margin-bottom: 14px;
}

.kh-profile__address-body p {
  margin: 0 0 8px;
  color: var(--brand-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.kh-profile__address-body p:last-child {
  margin-bottom: 0;
}

.kh-profile__address-body p svg {
  width: 16px;
  height: 16px;
  color: var(--brand-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.kh-profile__address-body p span {
  color: var(--brand-ink);
  font-weight: 700;
}

.kh-profile__address-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--brand-border);
}

.kh-profile__address-actions .btn {
  min-width: 40px;
  padding: 8px 12px;
}

.kh-profile__address-actions .btn svg {
  width: 16px;
  height: 16px;
}

.kh-profile__empty {
  text-align: center;
  padding: 40px 28px 36px;
  background:
    radial-gradient(220px 120px at 50% 18%, rgba(217, 46, 34, 0.08), transparent 70%),
    #fff;
  border: 1px solid var(--brand-border);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(26, 35, 50, 0.06);
}

.kh-profile__empty img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
  padding: 18px;
  border-radius: 50%;
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  opacity: 1;
}

.kh-profile__empty p {
  margin: 0;
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 1.1rem;
}

.kh-profile__panel--danger {
  border-color: rgba(217, 46, 34, 0.2);
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(217, 46, 34, 0.06), transparent 60%),
    #fff;
}

.kh-profile__panel--danger .kh-profile__panel-head h3 {
  color: var(--brand-primary);
}

.kh-profile__danger-intro {
  margin-bottom: 20px;
}

.kh-profile__danger-intro h5 {
  margin: 0 0 8px;
  color: var(--brand-ink);
  font-weight: 800;
}

.kh-profile__danger-intro h5 span {
  color: var(--brand-primary);
}

.kh-profile__danger-intro p {
  margin: 0;
  color: var(--brand-muted);
  line-height: 1.7;
}

.kh-profile__danger-note {
  padding: 20px;
  background: var(--brand-primary-soft);
  border: 1px solid rgba(217, 46, 34, 0.15);
  border-radius: 16px;
}

.kh-profile__danger-note h4 {
  margin: 0 0 10px;
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 1rem;
}

.kh-profile__danger-note p {
  margin: 0 0 10px;
  color: var(--brand-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.kh-profile__danger-note p:last-of-type {
  margin-bottom: 18px;
}

@media (max-width: 991px) {
  .kh-profile__sidebar.category-option {
    position: fixed;
    inset-inline-end: -110%;
    inset-inline-start: auto;
    top: 0;
    bottom: 0;
    z-index: 1055;
    width: min(320px, 88vw);
    height: 100vh;
    border-radius: 22px 0 0 22px;
    overflow-y: auto;
    transition: inset-inline-end 0.3s ease, right 0.3s ease;
    padding: 24px 18px;
    background:
      radial-gradient(420px 180px at 100% 0%, rgba(217, 46, 34, 0.2), transparent 60%),
      radial-gradient(360px 160px at 0% 100%, rgba(31, 143, 135, 0.16), transparent 55%),
      linear-gradient(160deg, #15202e 0%, var(--brand-ink) 50%, #121a26 100%) !important;
  }

  .kh-profile__sidebar.category-option.show {
    inset-inline-end: 0;
    right: 0;
  }

  .kh-profile__mobile-toggle {
    display: block;
  }

  .kh-profile__panel {
    padding: 20px 16px;
  }

  .kh-profile__panel-head--split .btn {
    width: 100%;
  }

  .kh-profile__detail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .kh-profile__detail-value {
    text-align: start;
  }

  .kh-profile__table-wrap {
    border-radius: 14px;
  }
}

@media (min-width: 992px) {
  .kh-profile__mobile-toggle {
    display: none;
  }
}

