/* Dashboard CSS based on SmartIdeaShop Style */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #FFFCF8;
  --white: #FFFFFF;
  --primary: #C89D6C;
  --bs-primary: #C89D6C;
  --primary-light: #D9B27F;
  --primary-dark: #A97842;
  --accent: #1D1D1D;
  --gray-50: #FFFDFC;
  --gray-100: #F5F2EE;
  --gray-200: #E9E4DE;
  --gray-500: #77716B;
  --gray-700: #44413E;
  --gray-800: #2C2A28;
  --gray-900: #1D1D1D;
  --font-inter: 'Poppins', sans-serif;
  --font-cairo: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-display: 'Playfair Display', serif;
  
  --sidebar-width: 260px;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
  --transition-slow: .4s cubic-bezier(.4, 0, .2, 1);
  --shadow-sm: 0 1px 3px rgba(42, 21, 15, 0.06), 0 1px 2px rgba(42, 24, 15, 0.04);
  --shadow-md: 0 4px 16px rgba(42, 24, 15, 0.08), 0 2px 6px rgba(42, 26, 15, 0.04);
  --shadow-lg: 0 10px 40px rgba(42, 23, 15, 0.1), 0 4px 12px rgba(42, 25, 15, 0.06);
  --shadow-xl: 0 20px 60px rgba(61, 40, 20, 0.12), 0 8px 20px rgba(42, 28, 15, 0.08);
  --shadow-primary: 0 8px 24px rgba(200, 157, 108, .24);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;


}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--gray-800);
  margin: 0;
  overflow-x: hidden;
  display: flex;
}
.primary{background:var(--primary);color:var(--primary)}
.purple{background:#5b21b6;color:#5b21b6}
.yellow{background:#f5b400;color:#f5b400}
/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-cairo);
  font-weight: 700;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}
.text-primary { color: var(--primary) !important; }
.bg-primary-soft { background-color: rgba(229, 120, 70, 0.1); }
.bg-soft { background-color: rgba(229, 120, 70, 0.1); }
.bg-success-soft { background-color: rgba(16, 185, 129, 0.1); }
.bg-warning-soft { background-color: rgba(245, 158, 11, 0.1); }
.bg-danger-soft { background-color: rgba(239, 68, 68, 0.1); }
.bg { background-color: var(--primary) !important; color: #fff !important; }
.card-header {
  background: #fff;
}

.form-control, .form-select { 
  box-shadow: none !important;
}
.form-control:focus, .form-select:focus { 
  box-shadow: none !important;
  border: 1.5px solid var(--primary) !important;
}
.form-group {
  margin-bottom: 16px;
}
label { 
  font-weight: 700;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
label[req]::after {
    content: " *";
    color: red;
    font-weight: bold;
}
a {
    text-decoration: none !important;
}

@media (min-width: 992px) {
  .w-lg-10 { width: 10% !important; }
  .w-lg-25 { width: 25% !important; }
  .w-lg-35 { width: 35% !important; }
  .w-lg-50 { width: 50% !important; }
  .w-lg-75 { width: 75% !important; }
  .w-lg-100 { width: 100% !important; }
}

@media (min-width: 768px) {
  .w-md-25 { width: 25% !important; }
  .w-md-50 { width: 50% !important; }
  .w-md-75 { width: 75% !important; }
  .w-md-100 { width: 100% !important; }
}

@media (min-width: 576px) {
  .w-sm-25 { width: 25% !important; }
  .w-sm-50 { width: 50% !important; }
  .w-sm-75 { width: 75% !important; }
  .w-sm-100 { width: 100% !important; }
}
.div-input {
    display: block;
    width: 100%;
    padding: .375rem .75rem;
    font-size: 1rem;
    min-height: calc(1.5em + .65rem + calc(var(--bs-border-width) * 2));
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    background: var(--white) !important;
    background-clip: padding-box;
    border: var(--bs-border-width) solid var(--bs-border-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s
}

.bg-input {
    background: var(--bg) !important;
}

.custom-checkbox {
  display: none;
}
.slider {
  width: 60px;
  height: 20px;
  background-color: rgb(175, 175, 175);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border: 4px solid transparent;
  transition: .3s;
  box-shadow: 0 0 10px 0 rgb(0, 0, 0, 0.25) inset;
  cursor: pointer;
}

.slider::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-color: #fafafa;
  transform: translateX(-30px);
  border-radius: 20px;
  transition: .3s;
  box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
}

.custom-checkbox:checked ~ .slider::before {
  transform: translateX(30px);
  box-shadow: 0 0 10px 3px rgba(36, 36, 36, 0.25);
}

.custom-checkbox:checked ~ .slider {
  background-color: #07c98b;
}

.custom-checkbox:active ~ .slider::before {
  transform: translate(0);
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: #fff;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: var(--transition);
}

.sidebar-brand {
  padding: 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-900);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.accent-text {
  color: var(--accent);
}

.sidebar-nav {
  
  list-style: none;
  padding: 16px 0;
  margin: 0;
  flex: 1;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--gray-600);
  font-weight: bolder;
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-nav .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: rgba(79, 70, 229, 0.05);
  color: var(--primary);
  border-left: 3px solid var(--primary);
}

.sidebar-footer {
  padding: 16px 0;
  border-top: 1px solid var(--gray-100);
}
.sidebar-footer .nav-link {
  padding: 12px 24px;
  color: var(--gray-600);
  font-weight: 500;
  text-decoration: none;
  display: block;
}
.sidebar-footer .nav-link:hover {
  color: var(--primary);
}

/* Submenu */
.sidebar-nav .submenu-list {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.02);
}
.sidebar-nav .submenu-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px 10px 48px;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.sidebar-nav .submenu-list li.active a,
.sidebar-nav .submenu-list li a:hover {
  color: var(--primary);
  border-left: 3px solid var(--primary);
}
.sidebar-nav .submenu.active .submenu-list {
  display: block;
}
.sidebar-nav .subdrop {
  position: relative;
}
.sidebar-nav .subdrop::after {
  content: '\f107'; /* FontAwesome angle-down */
  font-family: 'Font Awesome 7 Pro';
  font-weight: 900;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}
.sidebar-nav .submenu.active .subdrop::after {
  transform: translateY(-50%) rotate(180deg);
}
.sidebar-nav .submenu.active > .nav-link {
  color: var(--primary);
  background: rgba(79, 70, 229, 0.05);
  border-left: 3px solid var(--primary);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: var(--transition);
  max-width: 100%;
  overflow-x: hidden!important
}

.topbar {
  background: #fff;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 999;
}

.page-title {
  font-size: 1.25rem;
  margin: 0;
  color: var(--gray-900);
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--gray-800);
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.btn-ghost {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--gray-700);
  cursor: pointer;
  padding: 8px;
}

/* Stat Cards */
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}
.stat-card-info {
  flex: 1;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-900);
  font-family: var(--font-display);
  line-height: 1;
}

/* Panel Card */
.panel-card {
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  border-radius: 12px;
  overflow: hidden;
}
.panel-card .card-header {
  border-bottom: 1px solid var(--gray-100);
  padding: 20px 24px;
}

/* Responsiveness & Collapsing */
body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
}
body.sidebar-collapsed .main-content {
  margin-left: 0;
}

@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
    box-shadow: var(--shadow-md);
  }
  .main-content {
    margin-left: 0;
    width: 100vw;
  }
  body.sidebar-collapsed .sidebar {
    transform: translateX(0); /* On mobile, if logic applies differently, though usually handled by JS directly toggle class */
  }
}
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: var(--shadow-primary);
  transition: var(--transition);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, .35);
  color: #fff;
}

.btn-primary-custom:active, .btn-primary-custom:focus {
  transform: translateY(0);
  color: #fff;
}

.btn-outline-custom {
  background: transparent;
  color: var(--primary);
  font-family: var(--font-display);
  border: 1.5px solid var(--primary);
  transition: var(--transition);
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
  background: var(--primary) !important;
  border: var(--primary) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}
.btn-primary {
  background: var(--primary);
  border: var(--primary);
  color: #fff;
}

.btn-primary:disabled, .btn-primary[disabled] {
  background: var(--primary);
  border: var(--primary);
  color: #fff;
  opacity: 1;
}
.btn-primary:hover {
  background: var(--primary-light);
  border: var(--primary-light);
  color: #fff;
}
.btn-primary:checked, .btn-primary:focus {
  background: var(--primary-light) !important;
  border: var(--primary-light) !important;
  color: #fff;
}
.btn-outline-primary {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}
.btn-outline-primary:hover {
  background: var(--primary);
  border: 1.5px solid var(--primary);
  color: #fff;
}
.btn-outline-primary.active {
  background: var(--primary);
  border: 1.5px solid var(--primary);
  color: #fff;
}
.btn-outline-primary:checked, .btn-outline-primary:focus {
  background: var(--primary) !important;
  border: 1.5px solid var(--primary) !important;
  color: #fff !important;
}

/* FilePond */

.filepond--item {
    width: 150px !important;
    height: 150px !important;
    overflow: hidden;
    border-radius: .45em;
}
.filepond--image-preview-wrapper img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.filepond--list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
}
.filepond--credits { 
    display: none;
}
.file-uploader {
    margin-bottom: 0;
    border: 1px dashed #d5d2dc;
    border-radius: .75rem;
    font-family: "Noto Sans",sans-serif;
    cursor: pointer
}

.filepond--root .filepond--drop-label {
    min-height: 10rem
}

.filepond--root .filepond--drop-label>label {
    cursor: pointer
}

.filepond--panel,.filepond--panel-root {
    background-color: transparent !important
}

.filepond--image-preview {
    background-color: #1f1b2d !important
}

.filepond--credits {
    display: none
}

@media(min-width: 500px) {
    .file-uploader-grid .filepond--item {
        width:calc(50% - .5em)
    }
}

[data-filepond-item-state*=error] .filepond--item-panel,[data-filepond-item-state*=invalid] .filepond--item-panel {
    background-color: #f23c49
}

[data-filepond-item-state=processing-complete] .filepond--item-panel {
    background-color: #07c98b
}
.btn-primary-soft {
    background-color: #6365f117;
    color: #6366f1
}
.btn-primary-soft:focus,.btn-primary-soft:hover {
     background-color: #6365f13b;
    color: #6366f1
}

.dinar-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  background: currentColor;
  mask: url('../img/icons/dinar-icon.svg') no-repeat center;
  -webkit-mask: url('../img/icons/dinar-icon.svg') no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
  vertical-align: -0.125em;
}

.input-groupicon {
    position: relative;
}

.input-groupicon .addonset-start {
    position: absolute;
    left: 12px;
    top: 50%;
    line-height: 0;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%)
}
.input-groupicon .addonset {
    position: absolute;
    right: 12px;
    top: 50%;
    line-height: 0;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%)
}

.cursor {
  cursor: pointer !important;
}

.strong {
  font-weight: bolder !important;
}

.select .dropdown-menu .dropdown-item:first-child,
.select .dropdown-menu .dropdown-item:last-child {
    border-radius: 0 !important;
}

.select { 
    width: 100% !important;
    background: var(--white) !important;
    border-radius: var(--bs-border-radius-lg)
}
.select .dropdown-menu { 
    background: var(--white) !important;
    border-radius: var(--bs-border-radius-lg) !important;
    box-shadow: none;
}
.select .btn.dropdown-toggle.form-control { 
    width: 100% !important;
    outline: none !important;
    outline: 0px auto none!important;
    outline-offset: -2px;
    border: 1px solid rgba(145, 158, 171, .32) !important;
    box-shadow: none;
}
.select .btn.dropdown-toggle.form-control.form-control-lg { 
    min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));
    padding: .5rem 1rem;
    font-size: 1.25rem;
    border-radius: var(--bs-border-radius-lg)
}
.select .btn.dropdown-toggle.form-control.show { 
    background: var(--white) !important;
    border: 1px solid var(--primary)!important;
    box-shadow: none;
}
.select .btn.dropdown-toggle.form-control:focus { 
    background: var(--white) !important;
    border: 1px solid var(--primary)!important;
    box-shadow: none;
}
.select .dropdown-item:hover, .select .dropdown-item:focus { 
    background: var(--primary);
    color: #ffffff !important;
}
.select .dropdown-item.selected, .select .dropdown-item.active { 
    background: var(--primary);
    color: #fffdfd !important;
}
.select .dropdown-item:focus { 
    color: #ffffff !important;
}


/* ─── Product Cards ──────────────────────────── */
.product-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}

.product-card-img {
  position: relative;
  overflow: hidden;
  /* aspect-ratio: 1 / 1; */
  background: var(--gray-50);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  max-height: 270px;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.badge-new {
  background: var(--primary);
  color: #fff;
}

.badge-sale {
  background: var(--danger);
  color: #fff;
}

.badge-hot {
  background: var(--warning);
  color: #fff;
}

.product-card-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(12px);
  transition: var(--transition);
  z-index: 2;
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.action-btn {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  box-shadow: var(--shadow-sm);
  font-size: .875rem;
  transition: var(--transition);
}

.action-btn:hover {
  background: var(--primary);
  color: #fff;
}

.product-card-body {
  padding: 16px 18px 20px;
}

.product-category-tag {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.stars {
  color: var(--warning);
  font-size: .8rem;
  letter-spacing: 1px;
}

.rating-count {
  font-size: .75rem;
  color: var(--gray-400);
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-current {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.price-original {
  font-size: .85rem;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-left: 6px;
}



.btn-circle {
  width: 30px;
  height: 30px;
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
  line-height: 1.428571429;
  border-radius: 15px;
}

.custom-radio-inputs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  border-radius: 1.5rem;
  background-color: #ffffff;
  box-sizing: border-box;
  box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
  padding: 0.25rem;
  width: auto;
  font-size: 14px;
}

.custom-radio-inputs .radio {
  flex: 1 1 auto;
  text-align: center;
  min-width: 100px;
  margin-bottom: 0;
}

.custom-radio-inputs .radio input {
  display: none;
}

.custom-radio-inputs .radio .name {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  border: none;
  padding: 0.5rem 0;
  color: rgb(27, 27, 27);
  transition: all 0.15s ease-in-out;
}

.custom-radio-inputs .radio input:checked + .name {
  background-color:var(--primary);
  color: #fff;
  font-weight: 600;
  border: 1px solid var(--primary);
}

/* Hover effect */
.custom-radio-inputs .radio:hover .name {
  background-color: rgba(255, 255, 255, 0.5);
}

/* Animation */
.custom-radio-inputs .radio input:checked + .name {
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: select 0.3s ease;
}

@keyframes select {
  0% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Particles */
.custom-radio-inputs .radio input:checked + .name::before,
.custom-radio-inputs .radio input:checked + .name::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: particles 0.5s ease forwards;
}

.custom-radio-inputs .radio input:checked + .name::before {
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
}

.custom-radio-inputs .radio input:checked + .name::after {
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes particles {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(var(--direction));
  }
}

.custom-radio-inputs .radio input:checked + .name::before {
  --direction: -10px;
}

.custom-radio-inputs .radio input:checked + .name::after {
  --direction: 10px;
}

#notifications-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99999;
}
.notification {
    min-width: 250px;
    padding: 12px 15px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    animation: slideIn .3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.notification.success { background: #16a34a; }
.notification.error   { background: #dc2626; }
.notification.info    { background: #2563eb; }
@keyframes slideIn {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ─── Promo Banner ───────────────────────────── */
.promo-section {
  padding: 60px 0;
}

.promo-banner {
  background: linear-gradient(135deg, #EEF2FF 0%, #F0F9FF 50%, #ECFDF5 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 56px 60px;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  background: radial-gradient(ellipse at right, rgba(79, 70, 229, .08) 0%, transparent 70%);
}
.table-light {
  background-color: #F8FAFC !important;
}
.promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, .1);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.promo-headline {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.promo-sub {
  color: var(--gray-500);
  max-width: 440px;
  margin-bottom: 28px;
}

.timer-row {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.timer-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 70px;
}

.timer-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.timer-lbl {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
}



.chart-card h3{
  text-align:center;
  color:#0b0648;
  font-size:20px;
  font-weight:900;
  margin:0 0 18px;
}
.chart-card .chart-footer{
  height:55px;
  margin-top:10px;
  padding:0 22px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:25px;
  font-size:12px;
  font-weight:700;
  color:#374151;
  border-top:1px solid #eee;
}

.chart-card .chart-footer span{
  display:flex;
  align-items:center;
  gap:8px;
}

.chart-card .chart-footer b{
  margin-left:6px;
}

.chart-card .dot{
  width:13px;
  height:13px;
  border-radius:50%;
  display:inline-block;
}
.chart-card .dot.yellow {
  background: var(--primary-light);
  color: var(--primary-light);
}
.order-summary-card {
    display: grid;
    grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 0;
    border-radius: 1rem;
    background-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.order-summary-item {
    min-width: 0;
}

.order-summary-label {
    margin-bottom: .2rem;
    font-size: .82rem;
    line-height: 1.2;
    opacity: .82;
}

.order-summary-value {
    overflow-wrap: anywhere;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.order-summary-total .order-summary-value {
    font-size: 1.45rem;
}

.order-summary-card .badge {
    background: rgba(255, 255, 255, .92) !important;
    color: var(--primary) !important;
    font-size: .85rem;
}

@media (max-width: 767.98px) {
    .order-summary-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "total total"
            "reference date"
            "delivery price"
            "status status";
        gap: 0;
        padding: 1.25rem 1rem 1rem;
    }

    .order-summary-total {
        grid-area: total;
        text-align: center;
        padding: 0 0 1.1rem;
    }

    .order-summary-reference {
        grid-area: reference;
    }

    .order-summary-delivery {
        grid-area: delivery;
    }

    .order-summary-date {
        grid-area: date;
    }

    .order-summary-price {
        grid-area: price;
    }

    .order-summary-reference,
    .order-summary-date,
    .order-summary-delivery,
    .order-summary-price {
        padding: .9rem .45rem;
    }

    .order-summary-status {
        grid-area: status;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: .9rem .45rem 0;
    }

    .order-summary-status .order-summary-label {
        margin-bottom: 0;
    }

    .order-summary-date,
    .order-summary-price {
        text-align: end;
    }

    .order-summary-card .order-summary-value {
        font-size: .92rem;
        white-space: nowrap;
    }

    .order-summary-card .order-summary-total .order-summary-value {
        font-size: 1.45rem;
    }
}

.order-product-color {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .4rem;
}

.order-product-color-swatch {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 50%;
}

.call-choice-modal {
    background: rgba(0, 0, 0, .48);
}

.call-choice-modal .modal-content {
    border: 0;
    border-radius: 1.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .2);
}

.call-choice-modal .modal-body {
    padding: 1.75rem;
}

.call-choice-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    color: var(--bs-body-color);
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.call-choice-card:hover {
    color: var(--bs-body-color);
    border-color: var(--bs-primary);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.call-choice-icon {
    display: grid;
    width: 76px;
    height: 76px;
    margin-bottom: 1rem;
    place-items: center;
    font-size: 2rem;
    border-radius: 50%;
}

.call-choice-icon-phone {
    color: #5267d8;
    background: #f0f2ff;
}

.call-choice-icon-whatsapp {
    color: #20c76a;
    background: #edfff4;
}

/* Product list ---------------------------------------------------------- */
.product-list-card { overflow: hidden; min-height: 630px; border: 1px solid #dfe6f1; border-radius: 14px; background: #fff; box-shadow: 0 4px 18px rgba(28, 39, 60, .04); }
.product-list-filters { display: grid; grid-template-columns: minmax(220px, 1.55fr) minmax(150px, .92fr) minmax(150px, .92fr) 1fr; gap: 12px; align-items: center; padding: 16px; border-bottom: 1px solid #dfe6f1; }
.product-search { position: relative; }
.product-search .form-control { height: 44px; padding-right: 42px; border-color: #dfe6f1; }
.product-search > i { position: absolute; top: 50%; right: 15px; color: #516078; transform: translateY(-50%); }
.product-list-filters .form-select { height: 44px; border-color: #dfe6f1; }
.product-add-btn { justify-self: end; height: 44px; display: inline-flex; align-items: center; gap: 10px; padding-inline: 18px; white-space: nowrap; font-size: .82rem; font-weight: 700; }
.product-table-wrap { overflow-x: auto; }
.product-list-table { width: 100%; min-width: 1050px; border-collapse: collapse; font-size: .78rem; color: #12213a; }
.product-list-table th { height: 44px; padding: 8px 12px; background: #f8fafc; white-space: nowrap; font-weight: 750; }
.product-list-table td { height: 52px; padding: 7px 12px; border-top: 1px solid #dfe6f1; vertical-align: middle; }
.product-list-table tbody tr:hover { background: #fafbff; }
.product-drag-col { width: 38px; padding-right: 2px !important; color: #9aa6b8; text-align: center; cursor: grab; touch-action: none; }
.product-drag-col i { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 7px; transition: color .16s ease, background-color .16s ease; }
.product-drag-col:hover i { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, white); }
.product-drag-col:active { cursor: grabbing; }
.product-sort-ghost td { opacity: .3; background: #eee9ff !important; }
.product-sort-chosen td { background: #faf8ff; box-shadow: inset 0 1px 0 var(--primary), inset 0 -1px 0 var(--primary); }
.product-list-image { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; background: #eefcfb; }
.product-list-name { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-list-table small { display: block; color: #8a96aa; margin-top: 2px; }
.product-status { display: inline-flex; padding: 4px 10px; border-radius: 99px; font-size: .68rem; }
.product-status.is-active { color: #08773b; background: #c9f7d9; }
.product-status.is-inactive { color: #9a4d00; background: #ffedc4; }
.product-stock.is-empty { color: #d63b46; font-weight: 700; }
.product-icon-btn { display: inline-grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; border-radius: 6px; color: #27364e; background: transparent; text-decoration: none; }
.product-icon-btn:hover { color: var(--primary); background: #f0ebff; }
.product-actions { display: flex; justify-content: flex-end; gap: 9px; }
.product-empty-state { height: 300px !important; padding: 0 !important; color: #8490a3; }
.product-empty-content { display: flex; width: 100%; min-height: 300px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.product-empty-content i { font-size: 2rem; }
.product-list-footer { display: flex; min-height: 73px; gap: 20px; align-items: center; padding: 12px 16px; border-top: 1px solid #dfe6f1; }
.product-list-footer label { display: flex; gap: 8px; align-items: center; margin: 0; font-size: .78rem; }
.product-list-footer select { border: 0; background: transparent; }
.product-result-count { color: #7a879b; font-size: .76rem; }
.product-pagination { display: flex; margin-left: auto; }
.product-pagination button, .product-pagination span { display: grid; min-width: 42px; height: 36px; place-items: center; border: 1px solid #d5ddea; background: #fff; }
.product-pagination button:first-child { border-radius: 7px 0 0 7px; }
.product-pagination button:last-child { border-radius: 0 7px 7px 0; }
.product-pagination span { color: var(--primary); font-weight: 700; background: #f6f3ff; }
.product-pagination button:disabled { color: #b8c0cd; cursor: not-allowed; }
.product-list-loading { display: grid; min-height: 520px; place-items: center; color: var(--primary); font-size: 1.5rem; }
@media (max-width: 1199.98px) { .product-list-filters { grid-template-columns: repeat(3, 1fr); } .product-add-btn { justify-self: stretch; justify-content: center; } }
@media (max-width: 767.98px) { .product-list-filters { grid-template-columns: 1fr 1fr; } .product-search, .product-add-btn { grid-column: 1 / -1; } .product-list-footer { flex-wrap: wrap; } .product-result-count { order: 3; width: 100%; } }

/* Category list --------------------------------------------------------- */
.category-list-filters { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: 12px; align-items: center; padding: 16px; border-bottom: 1px solid #dfe6f1; }
.category-list-table { min-width: 900px; }
.category-list-table .category-row-group + .category-row-group tr:first-child td { border-top-width: 1px; }
.category-name-cell { display: flex; gap: 10px; align-items: center; }
.category-expand-btn { display: inline-grid; width: 23px; height: 23px; flex: 0 0 23px; padding: 0; place-items: center; border: 1px solid color-mix(in srgb, var(--primary) 45%, #dfe6f1); border-radius: 7px; color: var(--primary); background: #fff; font-size: .65rem; }
.category-expand-btn:disabled { border-color: #dfe4ec; color: #b8c1ce; background: #f7f9fc; cursor: not-allowed; opacity: .75; }
.category-expand-placeholder { width: 23px; flex: 0 0 23px; }
.category-sub-name { padding-left: 33px; }
.category-tree-line { color: #94a0b2; }
.category-icon-preview { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 7px; color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, white); font-size: 1rem; }
.category-icon-preview svg, .category-svg-preview svg { display: block; width: 22px !important; height: 22px !important; color: inherit; }
.category-svg-preview { display: grid; width: 58px; height: 58px; margin-bottom: 8px; place-items: center; border: 1px solid #dfe6f1; border-radius: 9px; color: var(--primary); background: #fff; }
.subcategory-row td { background: #fcfdff; }
.category-sort-ghost { opacity: .35; }
.category-sort-ghost td { background: #eee9ff !important; }
.category-sort-chosen tr:first-child td { box-shadow: inset 0 1px 0 var(--primary), inset 0 -1px 0 var(--primary); }
@media (max-width: 767.98px) { .category-list-filters { grid-template-columns: 1fr; } .category-list-filters .product-add-btn { grid-column: auto; } }

/* Dashboard overview ---------------------------------------------------- */
.dashboard-overview { padding: 16px; }
.dashboard-stat-scroll { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dashboard-summary-card { display: flex; min-width: 0; min-height: 136px; flex-direction: column; justify-content: center; padding: 24px; border: 1px solid #dce3ec; border-radius: 13px; background: #fff; box-shadow: 0 2px 3px rgba(22, 34, 52, .08); }
.dashboard-summary-label { margin-bottom: 20px; color: #344156; font-size: .82rem; font-weight: 650; }
.dashboard-summary-value { color: #071326; font-size: clamp(1.25rem, 1.6vw, 1.55rem); font-weight: 800; line-height: 1.1; white-space: nowrap; }
.dashboard-summary-count { min-height: 18px; margin-top: 5px; color: #657084; font-size: .78rem; font-weight: 650; }
.dashboard-summary-card:first-child .dashboard-summary-count:empty { visibility: hidden; }
.dashboard-summary-card.is-featured { position: relative; overflow: hidden; border-color: var(--primary); color: #fff; background: var(--primary); }
.dashboard-summary-card.is-featured::after { content: ''; position: absolute; top: -80%; right: 10%; width: 58%; height: 220%; border-radius: 50%; background: rgba(255,255,255,.045); transform: rotate(18deg); }
.dashboard-summary-card.is-featured > * { position: relative; z-index: 1; color: #fff; }
.order-tracking-card { margin-top: 12px; padding: 25px 24px 24px; border: 1px solid #dce3ec; border-radius: 13px; background: #fff; box-shadow: 0 2px 3px rgba(22, 34, 52, .08); }
.order-tracking-header { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 23px; }
.order-tracking-title { display: flex; gap: 13px; align-items: center; }
.order-tracking-title h2 { margin: 0; color: #081326; font-size: 1rem; font-weight: 800; }
.order-tracking-info { display: inline-grid; width: 17px; height: 17px; place-items: center; border: 1.5px solid var(--primary); border-radius: 50%; color: var(--primary); font-size: .62rem; }
.order-tracking-legend { display: flex; gap: 28px; color: #344156; font-size: .7rem; font-weight: 650; }
.order-tracking-legend span { display: flex; gap: 7px; align-items: center; }
.order-tracking-legend strong { color: var(--primary); }
.tracking-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.tracking-dot.is-delivered, .tracking-segment.is-delivered { background: var(--primary); }
.tracking-dot.is-refunded, .tracking-segment.is-refunded { background: color-mix(in srgb, var(--primary) 38%, white); }
.order-tracking-progress { position: relative; display: flex; height: 53px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--primary) 10%, white); }
.tracking-segment { height: 100%; transition: width .35s ease; }
.tracking-segment.is-empty { position: absolute; inset: 0; background: color-mix(in srgb, var(--primary) 12%, white); }
.tracking-progress-label { position: absolute; inset: 0 auto 0 12px; display: flex; gap: 11px; align-items: center; color: var(--primary); font-size: 1.3rem; }
.tracking-progress-icon { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 4px solid color-mix(in srgb, var(--primary) 16%, white); border-radius: 50%; background: #fff; font-size: 1rem; }
.dashboard-chart-row { margin-top: 0; padding-top: 12px; }
.dashboard-chart-panel { overflow: hidden; border-color: #dce3ec; border-radius: 13px; box-shadow: 0 2px 3px rgba(22, 34, 52, .08); }
.dashboard-chart-panel #salesChart { width: 100% !important; height: 340px !important; }
.dashboard-traffic-chart { position: relative; height: 280px; }
.dashboard-chart-panel .chart-footer { color: #344156; }
.dashboard-chart-panel .dot.primary { background: var(--primary); }
.dashboard-muted-dot { background: #dfe4ec; }
@media (max-width: 991.98px) {
  .dashboard-stat-scroll { grid-template-columns: repeat(4, minmax(210px, 1fr)); overflow-x: auto; margin-inline: -16px; padding: 0 16px 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
  .dashboard-summary-card { min-height: 120px; padding: 20px; scroll-snap-align: start; }
}
@media (max-width: 575.98px) {
  .dashboard-overview { padding: 10px 8px; overflow: hidden; }
  .dashboard-stat-scroll { grid-template-columns: repeat(4, 190px); margin-inline: -8px; padding-inline: 8px; }
  .dashboard-summary-card { min-height: 120px; }
  .dashboard-summary-label { margin-bottom: 17px; font-size: .75rem; }
  .dashboard-summary-value { font-size: 1.25rem; }
  .order-tracking-card { margin-top: 4px; padding: 20px 14px; }
  .order-tracking-header { align-items: flex-start; margin-bottom: 18px; }
  .order-tracking-legend { gap: 10px; font-size: .62rem; }
  .order-tracking-legend span { gap: 4px; }
  .order-tracking-progress { height: 48px; }
  .tracking-progress-label { font-size: 1.1rem; }
  .dashboard-chart-panel #salesChart { height: 280px !important; }
  .dashboard-traffic-chart { height: 240px; }
}

.orders-stats { --stats-border: #dce3ec; --stats-muted: #667085; background: #f8fafc; min-height: calc(100vh - 70px); }
.stats-shell { border: 1px solid var(--stats-border); border-radius: 14px; background: #fff; overflow: hidden; }
.stats-toolbar { padding: 0 0 12px; }
.stats-filter { height: 44px; border-color: var(--stats-border); border-radius: 7px; font-size: .88rem; }
.stats-filter-product { min-width: 290px; }
.stats-filters-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.stats-filters-row .bootstrap-select { width: 290px !important; flex: 0 0 290px; }
.stats-filters-row .bootstrap-select > .dropdown-toggle { height: 44px; border: 1px solid var(--stats-border); border-radius: 7px; background: #fff; }
.stats-filters-row .bootstrap-select > .dropdown-toggle:focus { outline: 0 !important; border-color: var(--stats-border); box-shadow: none; }
.stats-filters-row .bootstrap-select .dropdown-menu { padding: 5px; border: 1px solid var(--stats-border); border-radius: 7px; box-shadow: 0 8px 20px rgba(16,24,40,.1); }
.stats-filters-row .bootstrap-select .bs-searchbox { position: relative; padding: 4px 3px 8px; }
.stats-filters-row .bootstrap-select .bs-searchbox::before { content: '\f002'; position: absolute; z-index: 2; top: 50%; left: 14px; color: #667085; font: var(--fa-font-solid); transform: translateY(-60%); pointer-events: none; }
.stats-filters-row .bootstrap-select .bs-searchbox .form-control { height: 38px; padding-left: 34px; border-color: var(--stats-border); border-radius: 6px; font-size: .82rem; }
.stats-filters-row .bootstrap-select .bs-searchbox .form-control:focus { border-color: var(--stats-border); box-shadow: none; }
.stats-filters-row .bootstrap-select .dropdown-menu li a { min-height: 34px; padding: 7px 10px; border-radius: 5px; color: #344054; font-size: .82rem; }
.stats-filters-row .bootstrap-select .dropdown-menu li.selected a { color: #101828; background: #f2f4f7; }
.stats-filters-row .bootstrap-select .dropdown-menu li.active a { color: #101828; background: #f2f4f7; }
.stats-filters-row .bootstrap-select .dropdown-menu li a,
.stats-filters-row .bootstrap-select .dropdown-menu li a *,
.stats-filters-row .bootstrap-select .dropdown-menu li.active a,
.stats-filters-row .bootstrap-select .dropdown-menu li.active a *,
.stats-filters-row .bootstrap-select .dropdown-menu li.selected a,
.stats-filters-row .bootstrap-select .dropdown-menu li.selected a * { color: #101828 !important; }
.stats-filters-row .bootstrap-select .dropdown-menu li.selected a::after { content: '\f00c'; position: absolute; right: 10px; color: #101828; font: var(--fa-font-solid); }
.stats-filters-row .bootstrap-select .dropdown-menu li.selected a .text { margin-right: 24px; }
.stats-filters-row .bootstrap-select .bs-select-clear-selected { color: #101828; font-size: 1rem; }
.stats-product-option { display: inline-flex; align-items: center; gap: 9px; }
.stats-product-option img { width: 23px; height: 23px; border-radius: 5px; object-fit: cover; background: #f2f4f7; }
.stats-filters-row .range-picker { flex: 0 0 auto; }
.range-picker { position: relative; }
.range-trigger { height: 44px; min-width: 245px; padding: 0 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--stats-border); border-radius: 7px; background: #fff; color: #101828; font-size: .88rem; }
.range-trigger:hover, .range-trigger:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.range-popover { position: absolute; z-index: 1055; top: calc(100% + 8px); left: 0; width: 700px; border: 1px solid var(--stats-border); border-radius: 8px; background: #fff; box-shadow: 0 14px 35px rgba(16,24,40,.16); display: none; }
.range-popover.is-open { display: block; }
.range-main { display: grid; grid-template-columns: 208px 1fr; min-height: 315px; }
.range-presets { padding: 12px; border-right: 1px solid var(--stats-border); }
.range-preset { display: block; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; text-align: left; font-size: .82rem; }
.range-preset:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, white); }
.range-preset.is-active { border-color: #101828; }
.range-custom-label { margin: 8px; color: var(--stats-muted); font-size: .8rem; }
.range-custom-days { width: 100%; height: 38px; border: 1px solid var(--stats-border); border-radius: 7px; padding: 0 9px; }
.range-calendars-wrap { padding: 12px 14px; }
.range-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.range-nav-btn { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--stats-border); border-radius: 7px; background: #fff; }
.range-calendars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.range-month-title { margin: -25px 0 13px; text-align: center; font-size: .82rem; font-weight: 700; }
.range-weekdays, .range-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.range-weekdays span { padding: 5px 0; color: var(--stats-muted); font-size: .72rem; }
.range-day { height: 36px; border: 0; background: transparent; font-size: .8rem; position: relative; }
.range-day.is-outside { color: #98a2b3; }
.range-day.is-between { background: color-mix(in srgb, var(--primary) 10%, white); }
.range-day.is-start, .range-day.is-end { border-radius: 7px; background: var(--primary); color: #fff; font-weight: 700; }
.range-day:hover { color: #fff; background: var(--primary); border-radius: 7px; }
.range-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 11px 13px; border-top: 1px solid var(--stats-border); }
.range-reset { border: 0; background: transparent; font-weight: 600; }
.range-apply { border: 0; border-radius: 7px; padding: 9px 18px; color: #fff; background: var(--primary); font-weight: 700; }
.stats-caption { color: var(--stats-muted); font-size: .8rem; margin: 8px 0 0; }
.stats-content { padding: 16px; }
.order-stat-card { height: 100%; border: 1px solid var(--stats-border); border-radius: 12px; padding: 16px; box-shadow: 0 2px 2px rgba(16,24,40,.08); }
.order-stat-head { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.order-stat-icon { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 1.25rem; }
.tone-purple { background: var(--primary); } .tone-blue { background: #3b82f6; } .tone-green { background: #568d2e; } .tone-red { background: #cf2930; }
.order-stat-count { font-size: 1.35rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.order-stat-label { font-size: .86rem; font-weight: 700; }
.order-stat-details { margin-top: 12px; padding: 8px 16px; border: 1px solid var(--stats-border); border-radius: 9px; background: #f9fafb; }
.order-stat-row { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--stats-muted); }
.order-stat-row + .order-stat-row { margin-top: 7px; }
.order-stat-row strong { color: #101828; }
.metric-card { height: 100%; min-height: 180px; border: 1px solid var(--stats-border); border-radius: 12px; padding: 22px 24px; background: #fff; box-shadow: 0 2px 2px rgba(16,24,40,.08); }
.metric-title { font-weight: 800; }
.metric-legend { font-size: .72rem; font-weight: 700; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; }
.metric-bar { height: 52px; margin-top: 34px; border-radius: 30px; position: relative; overflow: hidden; background: #edf0f4; }
.metric-fill { height: 100%; min-width: 0; border-radius: inherit; display: flex; align-items: center; padding: 0 14px; color: #fff; font-size: 1.25rem; font-weight: 800; white-space: nowrap; }
.metric-fill.performance { background: #568d2e; } .metric-fill.delivery { background: var(--primary); }
.metric-icon { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: inherit; margin-inline-end: 10px; }
.metric-fill.performance .metric-icon { color: #568d2e; }
.metric-fill.delivery .metric-icon { color: var(--primary); }
.stats-info { color: var(--primary); }
.stats-submit { color: #fff; background: var(--primary); border-color: var(--primary); }
.stats-submit:hover, .stats-submit:focus { color: #fff; background: var(--primary-light); border-color: var(--primary-light); }
.legend-confirmed { color: #16a34a; } .legend-rejected { color: #ef4444; }
.legend-delivered { color: var(--primary); } .legend-returned { color: #606061; }
@media (max-width: 575.98px) { .stats-filters-row .bootstrap-select, .stats-filters-row .range-picker, .stats-filters-row .range-trigger { width: 100% !important; flex-basis: 100%; } .metric-card { padding: 18px; } }

/* Statistics page-specific styles */
/* Orders date range picker */
.orders-date-field { position: relative; display: flex; align-items: center; min-width: 227px; height: 44px; overflow: hidden; border: 1px solid #dce3ec; border-radius: 8px; background: #fff; transition: background-color .2s ease, box-shadow .2s ease; }
.orders-date-field:hover { border-color: #dce3ec; background: #f9fafb; box-shadow: none; }
.orders-date-field:focus-within { border-color: #dce3ec; box-shadow: none; }
.orders-date-field > i { position: absolute; left: 15px; z-index: 1; color: #101828; pointer-events: none; }
#ordersDateRange { width: 100%; min-width: 190px; height: 100%; padding: 0 14px 0 46px; cursor: pointer; border: 0; border-radius: inherit; outline: 0; background: transparent; box-shadow: none; }
#ordersDateRange:focus { border: 0; outline: 0; box-shadow: none; }
.daterangepicker { --stats-border: #dce3ec; --stats-muted: #667085; border: 1px solid var(--stats-border) !important; border-radius: 8px; box-shadow: 0 12px 30px rgba(16,24,40,.12); font-family: inherit; }
.daterangepicker::before, .daterangepicker::after { display: none; }
.daterangepicker.show-ranges.ltr .drp-calendar.left { border-left-color: var(--stats-border); }
.daterangepicker .ranges { width: 196px; padding: 10px; }
.daterangepicker .ranges ul { width: 100%; }
.daterangepicker .ranges li { margin: 0 0 2px; padding: 9px 8px; border: 1px solid transparent; border-radius: 7px; color: #101828; background: transparent; font-size: .82rem; }
.daterangepicker .ranges li:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, white); }
.daterangepicker .ranges li.active { color: var(--primary) !important; border-color: var(--primary) !important; background: color-mix(in srgb, var(--primary) 8%, white) !important; }
.daterangepicker .ranges .range-custom-days { width: auto; height: auto; margin-top: 5px; padding: 0; border: 0; }
.daterangepicker .ranges .range-custom-days label { display: block; margin: 0 8px 6px; color: #667085; font-size: .8rem; }
.daterangepicker .ranges .range-custom-days input { width: 100%; height: 34px; padding: 0 9px; border: 1px solid var(--stats-border) !important; border-radius: 6px; outline: 0; }
.daterangepicker .ranges .range-custom-days input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.daterangepicker .calendar-table { border: 0 !important; }
.daterangepicker .calendar-table th { color: #667085; font-weight: 500; }
.daterangepicker .calendar-table th.month { color: #101828; font-weight: 700; }
.daterangepicker .calendar-table .prev span, .daterangepicker .calendar-table .next span { border-color: #667085; }
.daterangepicker td { border-radius: 0; }
.daterangepicker td.available:hover, .daterangepicker th.available:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, white); }
.daterangepicker td.in-range { color: #101828; background: color-mix(in srgb, var(--primary) 13%, white); }
.daterangepicker td.active, .daterangepicker td.active:hover { color: #fff; background: var(--primary); }
.daterangepicker td.start-date { border-radius: 7px 0 0 7px; }
.daterangepicker td.end-date { border-radius: 0 7px 7px 0; }
.daterangepicker td.start-date.end-date { border-radius: 7px; }
.daterangepicker .drp-buttons { padding: 12px; border-top-color: var(--stats-border); }
.daterangepicker .drp-buttons .btn { padding: 8px 16px; border-radius: 7px; font-size: .82rem; }
.daterangepicker .drp-buttons .applyBtn { color: #fff; border-color: var(--primary); background: var(--primary); }
.daterangepicker .drp-buttons .applyBtn:hover { border-color: var(--primary-light); background: var(--primary-light); }
.daterangepicker .drp-buttons .cancelBtn { border-color: transparent; background: transparent; color: #101828; }
@media (min-width: 730px) { .daterangepicker { width: 700px; } .daterangepicker .drp-calendar { max-width: 250px; } }

/* Products statistics */
.products-stats { --stats-border:#dce3ec; --stats-muted:#667085; background:#f8fafc; min-height:calc(100vh - 70px); }
.products-date-field { position:relative; display:flex; align-items:center; min-width:228px; height:44px; border:1px solid var(--stats-border); border-radius:8px; background:#fff; }
.products-date-field i { position:absolute; left:15px; pointer-events:none; }
#productsDateRange { width:100%; height:100%; padding:0 14px 0 45px; border:0; outline:0; background:transparent; cursor:pointer; }
.products-returned { background:#e5d6fa!important; color:var(--primary)!important; }
.products-returned .metric-icon { color:var(--primary)!important; }
.daterangepicker .applyBtn { border-color:var(--primary)!important; background:var(--primary)!important; }
@media(max-width:575.98px){.products-date-field,#productsDateRange{width:100%}.products-date-field{flex-basis:100%}}

/* Team statistics */
.team-stats { --stats-border:#dce3ec; --stats-muted:#667085; background:#f8fafc; min-height:calc(100vh - 70px); }
.team-date-field { position:relative; display:flex; flex:0 0 275px; align-items:center; width:275px; min-width:275px; height:44px; border:1px solid var(--stats-border); border-radius:8px; background:#fff; }
.team-date-field i { position:absolute; left:15px; pointer-events:none; }
#teamDateRange { width:100%; min-width:0; height:100%; padding:0 14px 0 45px; border:0; outline:0; background:transparent; cursor:pointer; }
.team-card { height:100%; padding:16px; border:1px solid var(--stats-border); border-radius:12px; background:#fff; box-shadow:0 2px 2px rgba(16,24,40,.08); }
.team-card-head { display:flex; align-items:center; gap:16px; }
.team-card-icon { width:52px; height:52px; flex:0 0 52px; display:grid; place-items:center; border-radius:9px; color:#fff; font-size:1.2rem; }
.tone-orange { background:#f5a313; } .tone-blue { background:#3b82f6; } .tone-green { background:#568d2e; } .tone-red { background:#cf2930; }
.team-card-value { margin-bottom:6px; font-size:1.35rem; font-weight:800; line-height:1; }
.team-card-label { font-size:.86rem; font-weight:700; }
.team-table-card { border:1px solid var(--stats-border); border-radius:12px; background:#fff; overflow:hidden; box-shadow:0 2px 2px rgba(16,24,40,.08); }
.team-table-head { padding:16px 24px; border-bottom:1px solid var(--stats-border); }
.team-table-card table { margin:0; font-size:.8rem; }
.team-table-card thead th { padding:13px 12px; border-color:var(--stats-border); background:#f8fafc; white-space:nowrap; }
.team-table-card td { padding:12px; border-color:var(--stats-border); vertical-align:middle; }
.agent-avatar { width:32px; height:32px; display:inline-grid; place-items:center; margin-right:9px; border-radius:5px; background:#e8eef7; color:#667085; font-weight:700; }
.metric-fill.team-green { background:#568d2e; } .metric-fill.team-green .metric-icon { color:#568d2e; }
.tone-light-purple { background:#e5d6fa!important; color:var(--primary)!important; }
.metric-fill.team-returned { background:#e5d6fa; color:var(--primary); } .metric-fill.team-returned .metric-icon { color:var(--primary); }
.daterangepicker .applyBtn { border-color:var(--primary)!important; background:var(--primary)!important; }
@media(max-width:575.98px){.team-date-field,.team-date-field input{width:100%}.team-date-field{flex-basis:100%;min-width:100%}.team-table-head{padding:16px}.team-table-card{overflow-x:auto}}

/* Rafa admin identity — synchronized with storefront */
body { background: var(--bg); color: var(--gray-800); letter-spacing: -.01em; }
::selection { color: #fff; background: var(--primary); }
h1, h2, h3, h4, h5, h6, .page-title { font-family: var(--font-display); font-weight: 600; }

.sidebar { background: #fff; border-right-color: var(--gray-200); box-shadow: 4px 0 22px rgba(29,29,29,.025); }
.sidebar-brand { border-bottom-color: var(--gray-200); font-weight: 600; }
.logo-icon { background: var(--primary); border-radius: var(--radius-sm); }
.sidebar-nav .nav-link { color: var(--gray-600); font-weight: 500; border-left-width: 2px; }
.sidebar-nav .nav-link:hover, .sidebar-nav .nav-link.active,
.sidebar-nav .submenu.active > .nav-link {
  color: var(--primary-dark, #A97842); background: #FFF8F0; border-left-color: var(--primary);
}
.sidebar-nav .submenu-list { background: #FFFDFC; }
.sidebar-nav .submenu-list li.active a, .sidebar-nav .submenu-list li a:hover { color: var(--primary-dark, #A97842); }

.topbar { background: rgba(255,255,255,.96); border-bottom-color: var(--gray-200); backdrop-filter: blur(12px); }
.page-title { font-size: 1.35rem; }
.main-content { background: var(--bg); }

.card, .panel-card, .stat-card, .dashboard-summary-card, .order-tracking-card,
.dashboard-chart-panel, .product-list-card, .stats-shell, .order-stat-card,
.metric-card, .team-card, .team-table-card, .call-choice-card {
  border-color: var(--gray-200); border-radius: var(--radius-md); box-shadow: 0 2px 8px rgba(29,29,29,.045);
}
.card-header, .panel-card .card-header { background: #fff; border-bottom-color: var(--gray-200); }
.stat-card:hover { border-color: rgba(200,157,108,.55); box-shadow: var(--shadow-md); }
.stat-card-icon { border-radius: var(--radius-md); }
.stat-value, .dashboard-summary-value { font-family: var(--font-body); color: var(--gray-900); }
.dashboard-summary-card.is-featured { border-color: var(--accent); background: var(--accent); }

.btn-primary, .btn-primary-custom, .stats-submit, .range-apply {
  color: #fff; background: var(--accent); border-color: var(--accent); border-radius: var(--radius-sm); box-shadow: none;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary-custom:hover, .btn-primary-custom:focus,
.stats-submit:hover, .stats-submit:focus, .range-apply:hover {
  color: #fff; background: #000; border-color: #000; box-shadow: 0 7px 18px rgba(29,29,29,.13);
}
.btn-outline-primary, .btn-outline-custom { color: var(--primary-dark, #A97842); border-color: var(--primary); border-radius: var(--radius-sm); }
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-custom:hover, .btn-outline-custom:focus {
  color: #fff !important; background: var(--primary) !important; border-color: var(--primary) !important; box-shadow: none;
}
.bg-primary-soft, .bg-soft, .btn-primary-soft { background: #FAF0E5; color: var(--primary-dark, #A97842); }

.form-control, .form-select, .div-input, .bootstrap-select > .dropdown-toggle,
.orders-date-field, .products-date-field, .team-date-field, .range-trigger {
  border-color: var(--gray-200); border-radius: var(--radius-sm); background-color: #fff;
}
.form-control:focus, .form-select:focus, .bootstrap-select > .dropdown-toggle:focus {
  border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(200,157,108,.12) !important;
}
label { color: var(--gray-700); font-weight: 600; }

.table-light, .product-list-table th, .team-table-card thead th { background: var(--gray-50) !important; }
.table > :not(caption) > * > *, .product-list-table td, .team-table-card td { border-color: var(--gray-200); }
.product-list-table tbody tr:hover, .table-hover > tbody > tr:hover > * { background-color: #FFF9F3; }
.product-list-card, .product-list-filters, .product-list-footer { border-color: var(--gray-200); }
.product-pagination span { color: var(--primary-dark, #A97842); background: #FAF0E5; }
.product-icon-btn:hover { color: var(--primary-dark, #A97842); background: #FAF0E5; }

.orders-stats, .products-stats, .team-stats { --stats-border: var(--gray-200); --stats-muted: var(--gray-500); background: var(--bg); }
.tone-purple, .metric-fill.delivery { background: var(--primary); }
.daterangepicker td.in-range { background: #FAF0E5; }
.daterangepicker td.active, .daterangepicker td.active:hover,
.daterangepicker .applyBtn { color: #fff; background: var(--primary) !important; border-color: var(--primary) !important; }

.product-card { border-color: var(--gray-200); border-radius: var(--radius-md); box-shadow: none; }
.product-card:hover { border-color: rgba(200,157,108,.55); box-shadow: var(--shadow-md); }
.product-name { font-family: var(--font-display); font-weight: 500; }
.price-current { color: var(--gray-900); }

@media (max-width: 991.98px) {
  .sidebar.show { box-shadow: 12px 0 35px rgba(29,29,29,.12); }
}
#ordersControls {
    width: 100%;
    min-width: 0;
}
#ordersControls input[type="search"] {
    flex: 0 1 300px;
    min-width: 180px;
}
.order-status-filters {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    user-select: none;
}
.order-status-filters.is-dragging { cursor: grabbing; }
.order-status-filters::-webkit-scrollbar { display: none; width: 0; height: 0; }
.order-filter-btn { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--gray-200); border-radius: 9px; color: var(--gray-700); background: var(--white); font-size: .84rem; font-weight: 700; white-space: nowrap; transition: var(--transition); }
.order-filter-btn:first-child { margin-left: auto; }
.order-filter-btn:hover { color: var(--primary); border-color: var(--primary); }
.order-filter-btn.active { color: var(--white); border-color: var(--primary); background: var(--primary); box-shadow: var(--shadow-sm); }
.order-filter-count { display: inline-grid; min-width: 23px; height: 23px; padding: 0 6px; place-items: center; border-radius: 999px; color: var(--gray-700); background: var(--gray-100); font-size: .76rem; }
.order-filter-btn.active .order-filter-count { color: var(--primary); background: var(--white); }
.order-list-card {
    display: block;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.order-list-card:hover { transform: translateY(-1px); border-color: var(--primary); box-shadow: var(--shadow-md); }
.order-list-main { padding: 14px 20px 10px; }
.order-list-number { color: var(--primary); font-size: 1.15rem; line-height: 1; font-weight: 800; }
.order-list-name { color: var(--gray-900); font-size: 1.1rem; line-height: 1.2; font-weight: 700; }
.order-list-phone { color: var(--gray-500); font-size: .9rem; font-weight: 600; }
.order-status { padding: 5px 11px; border-radius: 8px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.order-status-pending { color: var(--bs-warning-text-emphasis); background: var(--bs-warning-bg-subtle); }
.order-status-confirmed { color: var(--bs-success-text-emphasis); background: var(--bs-success-bg-subtle); }
.order-status-delivered { color: var(--bs-primary-text-emphasis); background: var(--bs-primary-bg-subtle); }
.order-status-refunded { color: var(--bs-secondary-text-emphasis); background: var(--bs-secondary-bg-subtle); }
.order-status-cancelled { color: var(--bs-danger-text-emphasis); background: var(--bs-danger-bg-subtle); }
.order-product-image { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; }
.order-image-placeholder { display: grid; place-items: center; color: var(--gray-500); background: var(--gray-100); }
.order-list-footer { min-height: 50px; padding: 7px 20px; background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.order-list-date { color: var(--gray-800); font-size: .9rem; }
.order-list-total { color: var(--primary); font-size: 1.3rem; line-height: 1; font-weight: 800; white-space: nowrap; }
.order-list-total span { margin-left: 2px; font-size: .78rem; }
@media (max-width: 575.98px) {
    #ordersControls { align-items: stretch !important; }
    #ordersControls input[type="search"] { max-width: none !important; }
    .order-status-filters { flex-wrap: nowrap; justify-content: flex-start; width: 100%; padding-bottom: 4px; overflow-x: auto; }
    .order-filter-btn:first-child { margin-left: 0; }
    .order-filter-btn { flex: 0 0 auto; }
    .order-list-main { padding: 12px 15px 9px; }
    .order-list-footer { padding: 7px 15px; }
    .order-list-name { font-size: 1rem; }
    .order-list-total { font-size: 1.15rem; }
    .order-product-image { width: 35px; height: 35px; border-radius: 8px; }
}