.cart-offcanvas-container {
  width: 400px !important;
}

.cart-header {
  background: linear-gradient(135deg, #1e1f27 0%, #2a2d3a 100%);
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.cart-header-decoration-top {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: #236dc9;
  border-radius: 50%;
  opacity: 0.1;
}

.cart-header-decoration-bottom {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: #236dc9;
  border-radius: 50%;
  opacity: 0.08;
}

.cart-header-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cart-header-icon {
  background: #236dc9;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.cart-header-icon i {
  color: white;
  font-size: 1.25rem;
}

.cart-header-title {
  color: white;
  margin-bottom: 0;
  font-weight: 700;
}

.cart-header-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
}

.cart-header-close-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-header-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ========== BODY ========== */
.cart-body {
  background: #f8f9fb;
  padding: 0;
  height: 100%;
  position: relative;
}

/* Special Offer Banner */
.cart-offer-banner {
  margin: 0.75rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #236dc9 0%, #1e63b8 100%);
  position: relative;
  overflow: hidden;
}

.cart-offer-banner-decoration {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cart-offer-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-offer-banner-icon {
  color: white;
  font-size: 1.25rem;
}

.cart-offer-title {
  margin-bottom: 0;
  font-weight: 700;
  color: white;
  font-size: 0.9rem;
}

.cart-offer-subtitle {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

/* Product Items Container */
.cart-items-container {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  overflow-y: auto;
}

/* Product Card */
.cart-product-card {
  border: none;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cart-product-image-wrapper {
  width: 85px;
  height: 85px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eef9 100%);
  border-radius: 0.625rem;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-product-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.cart-discount-badge {
  background: #236dc9;
  font-size: 0.7rem;
  position: absolute;
  top: 0;
  right: 0;
}

.cart-product-title {
  margin-bottom: 0.25rem;
  font-weight: 700;
  color: #1e1f27;
  font-size: 0.95rem;
}

.cart-product-specs {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.cart-product-price {
  font-weight: 700;
  color: #236dc9;
  font-size: 1.1rem;
}

.cart-product-original-price {
  color: #999;
  text-decoration: line-through;
  font-size: 0.85rem;
  margin-left: 5px;
}

.cart-delete-btn {
  background: rgba(236, 106, 106, 0.1);
  color: #ec6a6a;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-delete-btn:hover {
  background: rgba(236, 106, 106, 0.15);
}

.cart-delete-btn i {
  font-size: 0.9rem;
}

/* Quantity Controls */
.cart-quantity-control {
  background: #f5f7fa;
  padding: 6px;
  border-radius: 0.5rem;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-quantity-btn {
  background: transparent;
  color: #236dc9;
  border: none;
  padding: 2px 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

.cart-quantity-input {
  width: 35px;
  border: 1px solid #e0e0e0;
  height: 28px;
  color: #1e1f27;
  text-align: center;
  font-weight: 700;
}

/* Promo Code Section */
.cart-promo-section {
  margin: 0.75rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: white;
  border: 2px dashed #236dc9;
}

.cart-promo-input {
  border-radius: 0.5rem;
  border: 1px solid #e0e0e0;
}

.cart-promo-btn {
  background: #236dc9;
  color: white;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
}

.cart-promo-btn:hover {
  background: #1e63b8;
}

/* Price Breakdown */
.cart-price-breakdown {
  margin: 0.75rem;
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
}

.cart-breakdown-title {
  font-weight: 700;
  color: #1e1f27;
  margin-bottom: 0.75rem;
}

.cart-breakdown-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-breakdown-label {
  color: #666;
  font-size: 0.9rem;
}

.cart-breakdown-amount {
  font-weight: 600;
  color: #1e1f27;
}

.cart-breakdown-discount {
  color: #236dc9;
}

.cart-breakdown-shipping {
  color: #28a745;
}

.cart-savings-alert {
  background: linear-gradient(135deg, rgba(35, 109, 201, 0.1) 0%, rgba(35, 109, 201, 0.05) 100%);
  border: 1px solid #236dc9;
  border-radius: 0.5rem;
  color: #236dc9;
  font-size: 0.9rem;
  padding: 0.75rem;
  margin: 0;
}

.cart-savings-alert i {
  margin-right: 0.5rem;
}

.cart-savings-alert small {
  font-weight: 600;
}

/* Grand Total Section */
.cart-grand-total {
  margin: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #1e1f27 0%, #2a2d3a 100%);
}

.cart-grand-total-label {
  font-weight: 600;
  color: white;
}

.cart-grand-total-amount {
  color: #236dc9;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
}

/* ========== FOOTER ========== */
.cart-footer {
  background: white;
  border-top: 1px solid #f0f0f0;
  padding: 0.75rem;
  display: flex;
  gap: 0.75rem;
}

.cart-checkout-btn {
  background: linear-gradient(135deg, #236dc9 0%, #1e63b8 100%);
  color: white;
  border: none;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 1rem;
  flex-grow: 1;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(35, 109, 201, 0.2);
}

.cart-continue-btn {
  background: #f5f7fa;
  color: #236dc9;
  border: 1px solid #e0e0e0;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: 1rem;
  flex-grow: 1;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-continue-btn:hover {
  background: #eff1f6;
  border-color: #236dc9;
}

.cart-btn-icon {
  margin-right: 0.25rem;
}

/* Responsive Design */
@media (max-width: 576px) {
  .cart-offcanvas-container {
    width: 100% !important;
  }
}

/* Sidebar logout button */
.logout-nav-item {
  margin-top: auto;
}

.logout-btn {
  display: inline-flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 0.8rem !important;
  padding: 6px 25px !important;
  background: linear-gradient(135deg, #236dc9 0%, #1e1f27 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 24px rgba(35, 109, 201, 0.2);
  border: none !important;
  width: auto !important;
  max-width: 280px !important;
  transition: transform 0.25s ease, background 0.25s ease;
}

.logout-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #1b5bb8 0%, #141626 100%) !important;
  text-decoration: none;
  color: #ffffff !important;
}

.logout-btn .menu-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.18);
}

.logout-btn .menu-icon i {
  font-size: 1rem;
}

.logout-btn .menu-text {
  font-size: 0.92rem;
  margin: 0;
}

.cart-product-image-wrapper {
  width: 75px;
  height: 75px;
}

.cart-product-title {
  font-size: 0.9rem;
}

.cart-grand-total-amount {
  font-size: 1.3rem;
}


/* ==================================
   PREMIUM CUSTOMER PROFILE DESIGN
   ================================== */

.cust-premium-profile-wrapper {
  padding: 1.5rem;
}

.cust-premium-card {
  background: white;
  border-radius: 1.25rem;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.cust-premium-card:hover {
  transform: translateY(-5px);
}

.cust-premium-header-bg {
  height: 75px;
  background: linear-gradient(135deg, #1e1f27 0%, #236dc9 100%);
  position: relative;
}

/* Edit Button in Profile Header */
.cust-profile-edit-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
}

.cust-profile-edit-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1) rotate(10deg);
  color: white;
}

/* Single-column Detail List */
.cust-profile-detail-list {
  margin-top: 1.25rem;
  text-align: left;
}

.cust-profile-detail-row {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 0.25rem;
}

.cust-profile-detail-row:last-child {
  border-bottom: none;
}

.cust-profile-detail-label {
  font-size: 0.72rem;
  color: #adb5bd;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cust-profile-detail-label i {
  color: #236dc9;
  font-size: 0.85rem;
}

.cust-profile-detail-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e1f27;
  padding-left: 1.25rem;
  word-break: break-word;
}

.cust-premium-avatar-wrapper {
  width: 80px;
  height: 80px;
  margin: -40px auto 1rem;
  position: relative;
  z-index: 2;
}

.cust-premium-avatar-wrapper .avatar-initial {
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(35, 109, 201, 0.3);
}

.cust-premium-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.cust-premium-status-dot {
  width: 18px;
  height: 18px;
  background: #28a745;
  border: 3px solid white;
  border-radius: 50%;
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.cust-premium-info-section {
  padding: 0rem 2rem 2rem;
}

.cust-premium-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1e1f27;
  margin-bottom: 0.25rem;
  text-align: center;
}

.cust-premium-label-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: rgba(35, 109, 201, 0.1);
  color: #236dc9;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.cust-premium-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cust-premium-detail-item {
  display: flex;
  flex-direction: column;
}

.cust-premium-detail-label {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}

.cust-premium-detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1e1f27;
}

/* History Table Section */
.cust-premium-history-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e1f27;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cust-premium-history-title i {
  color: #236dc9;
}

.cust-premium-table-container {
  background: white;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cust-premium-table {
  width: 100%;
  margin-bottom: 0;
}

.cust-premium-table thead th {
  background: #f8f9fb;
  border-bottom: none;
  color: #999;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem;
}

.cust-premium-table tbody td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.cust-premium-product-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cust-premium-product-img {
  width: 45px;
  height: 45px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.cust-premium-category-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.cat-electronics {
  background: rgba(35, 109, 201, 0.1);
  color: #236dc9;
}

.cat-fashion {
  background: rgba(236, 106, 106, 0.1);
  color: #ec6a6a;
}

.cat-accessories {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

@media (max-width: 768px) {
  .cust-premium-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium Add to Cart Button */
.btn-premium-add-cart {
  background: linear-gradient(135deg, #236dc9 0%, #1e1f27 100%) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 8px 20px rgba(35, 109, 201, 0.25) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
}

.btn-premium-add-cart:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(35, 109, 201, 0.45) !important;
  background: linear-gradient(135deg, #1e63b8 0%, #141626 100%) !important;
}

.btn-premium-add-cart i {
  font-size: 1.25rem;
}

/* Sticky View Cart Button */
.sticky-view-cart {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1050;
  background: linear-gradient(135deg, #236dc9 0%, #1e1f27 100%);
  color: #fff !important;
  padding: 10px 28px;
  border-radius: 50px;
  box-shadow: 0 12px 24px rgba(35, 109, 201, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sticky-view-cart:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 18px 36px rgba(35, 109, 201, 0.5);
}

.sticky-view-cart i {
  font-size: 1.3rem;
}

.sticky-view-cart .cart-count-badge {
  background: #f12e2e;
  color: white;
  font-size: 0.7rem;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 576px) {
  .sticky-view-cart {
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

/* ==================================
   COLOR & ATTRIBUTE MANAGEMENT
   ================================== */

.add-new-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #236dc9 !important;
  border: none !important;
  border-radius: 8px !important;
  color: white !important;
  transition: all 0.3s ease;
}

.add-new-btn:hover {
  background: #1e63b8 !important;
  transform: scale(1.05);
}

.premium-offcanvas {
  width: 380px !important;
  border-left: none !important;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15) !important;
}

.premium-offcanvas-header {
  background: linear-gradient(135deg, #1e1f27 0%, #2a2d3a 100%);
  color: white !important;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.premium-offcanvas-header::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.premium-offcanvas-title {
  margin-bottom: 0;
  font-weight: 700;
  font-size: 1.25rem;
}

.premium-offcanvas-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
  z-index: 10;
}

.premium-offcanvas-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.premium-offcanvas-body {
  padding: 1.5rem;
  background: #f8f9fb;
  height: 100%;
}

.add-mgmt-input-group {
  position: relative;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.add-mgmt-input-group .form-control {
  padding-right: 90px;
  height: 50px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  font-size: 0.95rem;
}

.add-mgmt-input-group .form-control:focus {
  border-color: #236dc9;
  box-shadow: 0 0 0 3px rgba(35, 109, 201, 0.1);
}

.add-mgmt-actions {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 6px;
}

.mgmt-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-mgmt-check {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.btn-mgmt-clear {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.mgmt-action-btn:hover {
  transform: translateY(-2px);
}

.btn-mgmt-check:hover {
  background: #28a745;
  color: white;
}

.btn-mgmt-clear:hover {
  background: #dc3545;
  color: white;
}

/* List Management */
.mgmt-list-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  padding-left: 5px;
}

#mgmtListContainer {
  max-height: calc(100vh - 320px);
  overflow-y: auto;
  padding-right: 8px;
  margin-right: -8px;
}

#mgmtListContainer::-webkit-scrollbar {
  width: 5px;
}

#mgmtListContainer::-webkit-scrollbar-track {
  background: transparent;
}

#mgmtListContainer::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 10px;
}

#mgmtListContainer::-webkit-scrollbar-thumb:hover {
  background: #d0d0d0;
}

.mgmt-premium-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mgmt-premium-item {
  background: white;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  animation: mgmtSlideUp 0.4s ease forwards;
}

.mgmt-premium-item:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-color: rgba(35, 109, 201, 0.2);
}

.mgmt-item-text {
  font-weight: 600;
  color: #1e1f27;
  font-size: 0.95rem;
}

.mgmt-item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
}

.mgmt-item-remove:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

@keyframes mgmtSlideUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================================
   DYNAMIC ATTRIBUTE INPUTS
   ================================== */

.premium-attr-row {
  background: white;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #edf1f7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  animation: mgmtSlideUp 0.3s ease-out forwards;
}

.premium-attr-row:hover {
  border-color: #236dc9;
  box-shadow: 0 4px 12px rgba(35, 109, 201, 0.08);
}

.attr-label-badge {
  min-width: 110px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(35, 109, 201, 0.1);
  color: #236dc9;
}

.attr-input-field {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s;
}

.attr-input-field:focus {
  border-color: #236dc9;
  box-shadow: 0 0 0 3px rgba(35, 109, 201, 0.1);
}

.btn-remove-attr {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-remove-attr:hover {
  background: #dc3545;
  color: white;
  transform: scale(1.05);
}

.mgmt-multi-hint {
  font-size: 0.75rem;
  color: #999;
  margin-top: 5px;
  display: block;
  font-style: italic;
}

.premium-empty-attr {
  padding: 1.5rem;
  background: #f8f9fb;
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  text-align: center;
  color: #adb5bd;
}

/* Custom scrollbar for attribute containers */
#attributesContainer {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

#attributesContainer::-webkit-scrollbar {
  width: 4px;
}

#attributesContainer::-webkit-scrollbar-thumb {
  background: #e0e0e0;
  border-radius: 10px;
}

/* Empty State */
.mgmt-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #adb5bd;
}

.mgmt-empty-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.5;
}

/* ==================================
   CUSTOMER INITIALS AVATAR
   ================================== */
.avatar-initial {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  color: white;
  text-transform: uppercase;
  background: linear-gradient(135deg, #236dc9 0%, #1e1f27 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid white;
}

.avatar:hover .avatar-initial {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* ==================================
   CUSTOMER MANAGEMENT OFFCANVAS (Left Side)
   ================================== */
.customer-mgmt-offcanvas {
  width: 420px !important;
  border-right: none !important;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15) !important;
  border-radius: 0 1.5rem 1.5rem 0 !important;
}

.customer-mgmt-header {
  background: linear-gradient(135deg, #1e1f27 0%, #236dc9 100%);
  padding: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customer-mgmt-header .offcanvas-title {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 22px;
}

.customer-mgmt-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.customer-mgmt-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.customer-mgmt-form {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.customer-mgmt-form .form-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.customer-mgmt-form .form-control,
.customer-mgmt-form .form-select {
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e9ecef;
  background-color: #f8f9fa;
  transition: all 0.2s ease;
}

.customer-mgmt-form .form-control:focus,
.customer-mgmt-form .form-select:focus {
  background-color: #fff;
  border-color: #236dc9;
  box-shadow: 0 0 0 3px rgba(35, 109, 201, 0.1);
}

.customer-mgmt-footer {
  margin-top: auto;
  background: #f8f9fa;
}

.customer-mgmt-footer .btn {
  padding: 0.8rem;
  border-radius: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.customer-mgmt-footer .btn-primary {
  background: linear-gradient(135deg, #236dc9 0%, #1e1f27 100%);
  border: none;
  box-shadow: 0 4px 15px rgba(35, 109, 201, 0.2);
  color: white;
}

.customer-mgmt-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(35, 109, 201, 0.3);
  color: white;
}

/* ==================================
   CATEGORY MANAGEMENT OFFCANVAS (Right Side)
   ================================== */
.cat-mgmt-offcanvas {
  width: 440px !important;
  border-left: none !important;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12) !important;
  border-radius: 1.5rem 0 0 1.5rem !important;
}

.cat-mgmt-header {
  background: linear-gradient(135deg, #236dc9 0%, #1a3a6e 100%);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.cat-mgmt-header::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.cat-mgmt-header::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 60px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cat-mgmt-header-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cat-mgmt-header-icon i {
  font-size: 1.5rem;
  color: white;
}

.cat-mgmt-title {
  color: white;
  font-weight: 700;
  margin-bottom: 0.15rem;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.cat-mgmt-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.cat-mgmt-close-btn {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.cat-mgmt-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
  color: white;
}

.cat-mgmt-form {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cat-mgmt-form .form-label {
  font-weight: 600;
  color: #3d4354;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0.5rem;
}

.cat-mgmt-form .form-control,
.cat-mgmt-form .form-select {
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid #eaedf3;
  background-color: #f8f9fc;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.cat-mgmt-form .form-control:focus,
.cat-mgmt-form .form-select:focus {
  background-color: #fff;
  border-color: #236dc9;
  box-shadow: 0 0 0 3px rgba(35, 109, 201, 0.1);
}

.cat-mgmt-input-prefix {
  background: #eef2fc;
  border: 1.5px solid #eaedf3;
  border-right: none;
  border-radius: 0.75rem 0 0 0.75rem;
  padding: 0.7rem 0.85rem;
  color: #236dc9;
  font-weight: 700;
  font-size: 0.9rem;
}

.cat-mgmt-input-prefix+.form-control {
  border-radius: 0 0.75rem 0.75rem 0 !important;
  border-left-color: #eaedf3;
}

/* Drag-and-drop Upload Box */
.cat-mgmt-upload-box {
  border: 2px dashed #d0d9f0;
  border-radius: 1rem;
  background: #f8f9fc;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.cat-mgmt-upload-box:hover {
  border-color: #236dc9;
  background: rgba(35, 109, 201, 0.04);
}

.cat-mgmt-upload-icon {
  font-size: 2rem;
  color: #236dc9;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.75;
}

.cat-mgmt-upload-text {
  color: #888;
  font-size: 0.82rem;
  margin: 0;
}

.cat-mgmt-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* Footer Buttons */
.cat-mgmt-footer {
  padding: 1.25rem 1.5rem;
  background: #f8f9fc;
  border-top: 1px solid #eaedf3;
  margin-top: auto;
}

.cat-mgmt-btn-save {
  background: linear-gradient(135deg, #236dc9 0%, #1a3a6e 100%);
  border: none;
  color: white;
  font-weight: 700;
  padding: 0.8rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(35, 109, 201, 0.25);
  transition: all 0.3s ease;
}

.cat-mgmt-btn-save:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(35, 109, 201, 0.35);
}

.cat-mgmt-btn-cancel {
  background: white;
  border: 1.5px solid #e0e4ef;
  color: #6c757d;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  transition: all 0.25s ease;
}

.cat-mgmt-btn-cancel:hover {
  background: #f1f3fa;
  border-color: #c8cedf;
  color: #3d4354;
}

/* ==============================
   CART — Editable Price Cell
   ============================== */

.cart-price-cell {
  vertical-align: middle !important;
}

.price-input-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: text;
  width: fit-content;
  min-width: 100px;
}

/* Light glow highlight when the number input inside is focused */
.price-input-wrapper:focus-within {
  background: rgba(35, 109, 201, 0.08);
  border-color: rgba(35, 109, 201, 0.35);
  box-shadow: 0 0 0 3px rgba(35, 109, 201, 0.12);
}

/* Static, non-editable currency symbol */
.price-currency {
  font-weight: 700;
  color: #236dc9;
  font-size: 0.95rem;
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

/* Editable number amount — no box, clean inline look */
.price-amount-input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e1f27;
  width: 75px;
  -moz-appearance: textfield;
}

.price-amount-input::-webkit-outer-spin-button,
.price-amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ============================================================
   CHECKOUT — QUICK CUSTOMER ACTIONS (Search + Add)
   ============================================================ */

.search-customer-input-wrapper {
  position: relative;
  width: 250px;
}

.search-customer-input-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #99abb4;
  font-size: 1.15rem;
  pointer-events: none;
  z-index: 5;
}

.checkout-search-field {
  padding-left: 42px !important;
  border-radius: 10px !important;
  height: 42px !important;
  border: 1.5px solid #eaedf3 !important;
  background: #f8f9fb !important;
  font-size: 0.9rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.checkout-search-field:focus {
  border-color: #236dc9 !important;
  box-shadow: 0 0 0 3px rgba(35, 109, 201, 0.12) !important;
  background: #ffffff !important;
}

.quick-add-customer-btn {
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 20px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  background: linear-gradient(135deg, #236dc9 0%, #1a3a6e 100%) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(35, 109, 201, 0.25) !important;
  transition: all 0.3s ease !important;
}

.quick-add-customer-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(35, 109, 201, 0.35) !important;
  color: white !important;
}

.quick-add-customer-btn i {
  font-size: 1.2rem;
}

@media (max-width: 576px) {
  .search-customer-input-wrapper {
    width: 100%;
  }

  .checkout-customer-actions {
    width: 100%;
    flex-direction: column;
  }

  .quick-add-customer-btn {
    width: 100%;
  }
}

/* ============================================================
   TOPBAR — Profile Icon Avatar
   ============================================================ */
.topbar-profile-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #236dc9 0%, #1e1f27 100%);
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(35, 109, 201, 0.3);
}

/* ============================================================
   SIGN-IN — Method Tab Switcher (Email / Phone)
   ============================================================ */

.signin-method-tabs {
  display: flex;
  align-items: center;
  background: #f1f4fb;
  border-radius: 12px;
  padding: 5px;
  margin: 20px 0 22px;
  gap: 4px;
}

.signin-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.signin-tab-btn.active {
  background: linear-gradient(135deg, #236dc9 0%, #1a3a6e 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(35, 109, 201, 0.35);
}

.signin-tab-btn i {
  font-size: 1.1rem;
}

/* Input wrapper with prefix icon */
.signin-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.signin-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #236dc9;
  font-size: 1.15rem;
  pointer-events: none;
  z-index: 5;
}

.signin-input-field {
  padding-left: 44px !important;
  border-radius: 10px !important;
  height: 46px !important;
  border: 1.5px solid #e4e9f4 !important;
  background: #f8f9fc !important;
  font-size: 0.92rem !important;
  transition: all 0.3s ease !important;
  width: 100%;
}

.signin-input-field:focus {
  border-color: #236dc9 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(35, 109, 201, 0.12) !important;
}

/* Phone input group */
.signin-phone-group {
  display: flex;
  align-items: center;
  border: 1.5px solid #e4e9f4;
  border-radius: 10px;
  background: #f8f9fc;
  overflow: hidden;
  transition: all 0.3s ease;
}

.signin-phone-group:focus-within {
  border-color: #236dc9;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(35, 109, 201, 0.12);
}

.signin-country-code {
  border: none;
  background: transparent;
  padding: 0 10px 0 14px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #1e1f27;
  height: 46px;
  outline: none;
  cursor: pointer;
  max-width: 110px;
  flex-shrink: 0;
}

.signin-phone-divider {
  width: 1px;
  height: 24px;
  background: #dde3f0;
  flex-shrink: 0;
}

.signin-phone-input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 14px !important;
  height: 46px !important;
  font-size: 0.92rem !important;
  flex: 1;
  outline: none;
}

/* Panel transition */
.signin-input-panel {
  animation: signinFadeIn 0.3s ease;
}

@keyframes signinFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Tabs */
.aj-wizard-tabs .nav-link {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.aj-wizard-tabs .nav-link.active {
  background: #f8f9fa;
  border-color: #e9ecef;
  font-weight: 600;
}

/* Payment Cards */
.aj-payment-option {
  transition: all 0.2s ease;
  cursor: pointer;
}

.aj-payment-option:hover {
  border-color: #0d6efd;
  background: #f8fbff;
}

/* Section Box */
.aj-section-box {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px;
}

/* Buttons */
.btn {
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .aj-wizard-tabs .nav-link {
    font-size: 12px;
    padding: 8px;
  }
}

.badge {
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.avatar {
  width: 32px;
  height: 32px;
  background: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.table td {
  vertical-align: middle;
}

.app-search select {
  padding-left: 36px;
  height: 38px;
  line-height: 1.4;
}

.app-search .app-search-icon {

  top: 50%;
  transform: translateY(-50%);
}

thead.bg-light {
  background: #f8f9fa !important;
}

.table td {
  padding: 14px 12px;
  vertical-align: middle;
}

.table .form-check-input {
  margin-top: 0;
  transform: translateY(2px);
}

.badge {
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 500;
}

.table .form-check-input {
  width: 18px;
  height: 18px;
  border: 2px solid #6c757d;
  /* darker border */
  cursor: pointer;
}

.table .form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.form-select,
.form-control {
  height: 40px;
  border-radius: 8px;
}

.btn {
  height: 40px;
  border-radius: 8px;
}

/* dropdown checkbox spacing */
.dropdown-menu label {
  display: block;
  padding: 4px 8px;
  cursor: pointer;
}

.dropdown-menu input {
  margin-right: 6px;
}

#file-previews img {
  border-radius: 6px;
}

#file-previews .dz-preview {
  margin-bottom: 10px;
}

.wizard-tabs .nav-link {
  border-radius: 10px;
  padding: 10px;
  transition: all 0.2s ease;
}

.wizard-tabs .nav-link:hover {
  background: #f8f9fa;
}

.wizard-tabs .nav-link.active {
  background: #eef4ff;
  border-left: 3px solid #0d6efd;
}

.avatar-title {
  width: 44px;
  height: 44px;
}

/* Quick Action Buttons Refinement */
.btn-outline-secondary.bg-white:hover {
  background-color: #eaf1ff !important;
  color: #0d6efd !important;
  border-color: #0d6efd !important;
}

.btn-outline-secondary.bg-white:hover i {
  color: #0d6efd !important;
}

/* Invoice Styles */
.table-invoice th {
  background-color: #f8f9fa !important;
  color: #495057;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-bottom: 2px solid #dee2e6;
}

.table-invoice td {
  vertical-align: middle;
  color: #1e1f27;
  border-bottom: 1px solid #f1f3fa;
}

.summary-block {
  background-color: #f8f9fb;
  padding: 1.5rem;
  border-radius: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.summary-total {
  border-top: 2px solid #dee2e6;
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0d6efd;
}

.barcode-img {
  max-width: 150px;
}

/* Sidebar Active State Customization */
.side-nav .side-nav-link.active {
  background-color: var(--bs-primary) !important;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
}

.side-nav .side-nav-link.active .menu-icon {
  color: #fff !important;
}

.side-nav .side-nav-link.active .menu-icon i {
  color: #fff !important;
}


.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  white-space: nowrap;
  /* 🔥 important */
}

.table td,
.table th {
  padding: 10px 12px;
  vertical-align: middle;
}

@media (max-width: 768px) {

  .table td,
  .table th {
    font-size: 12px;
    padding: 8px;
  }

  .table img {
    width: 40px;
    height: 40px;
  }
}