/* Modern Skeleton Shimmer Effect */
.skeleton {
  position: relative;
  overflow: hidden;
  background-color: #f3f4f6;
  border-color: transparent !important;
  color: transparent !important;
  pointer-events: none;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0.2) 20%,
      rgba(255, 255, 255, 0.5) 60%,
      rgba(255, 255, 255, 0));
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Premium Button Loader State */
.btn-loading {
  position: relative !important;
  pointer-events: none !important;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

/* Handle non-colored buttons (transparent loaders) */
.btn-loading.btn-outline::after {
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top: 3px solid currentColor;
}

@keyframes btn-spin {
  100% {
    transform: rotate(360deg);
  }
}

/* GLOBAL SWEETALERT2 OVERRIDE - ON TOP OF ALL MODALS */
.swal2-container {
  z-index: 20000 !important;
}

/* Specific Skeleton Shapes */
.skeleton-text {
  height: 12px;
  margin-bottom: 8px;
  border-radius: 6px;
  width: 100%;
}

.skeleton-btn {
  height: 48px;
  border-radius: 24px;
  width: 200px;
}

.skeleton-card {
  height: 250px;
  border-radius: 12px;
  width: 100%;
}

/* Loading Overlay for Sections/Forms */
.is-loading-container {
  position: relative;
  overflow: hidden;
}

/* Semi-transparent blur overlay - More subtle for premium feel */
.is-loading-container::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: auto;
  /* Block all clicks under the overlay */
}

/* Shimmer light streak sweep */
.is-loading-container::before {
  content: "";
  position: absolute;
  top: 0;
  width: 200%;
  height: 100%;
  z-index: 101;
  transform: translateX(-100%);
  background-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.4) 30%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0.4) 70%,
      rgba(255, 255, 255, 0) 100%);
  animation: shimmer-sweep 1.8s infinite linear;
  pointer-events: none;
}

@keyframes shimmer-sweep {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(50%);
  }
}

/* Dark mode adjustment - Specifically for the new Admin 'Size Layout' */
.is-loading-container.dark-shimmer::after {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.is-loading-container.dark-shimmer::before {
  background-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.1) 30%,
      rgba(255, 255, 255, 0.2) 50%,
      rgba(255, 255, 255, 0.1) 70%,
      rgba(255, 255, 255, 0) 100%);
}

[data-theme='dark'] .is-loading-container::after,
.dark-mode .is-loading-container::after {
  background: rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   GLOBAL SHIMMER SKELETON — use .shimmer on any placeholder element
   ========================================================================== */
@keyframes kavox-shimmer {
  0% {
    background-position: -600px 0;
  }

  100% {
    background-position: 600px 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 600px 100%;
  animation: kavox-shimmer 1.4s infinite linear;
  border-radius: 4px;
  color: transparent !important;
  border-color: transparent !important;
  pointer-events: none;
}

/* Inline block for text-line placeholders */
.shimmer-line {
  display: block;
  border-radius: 4px;
}

/* Prevent interaction on entire skeleton cards */
.shimmer-card {
  pointer-events: none;
}

/* Preset sizes — combine with .shimmer */
.shimmer-title {
  height: 22px;
  width: 60%;
  margin-bottom: 10px;
}

.shimmer-text {
  height: 13px;
  width: 90%;
  margin-bottom: 8px;
}

.shimmer-text-sm {
  height: 11px;
  width: 50%;
  margin-bottom: 6px;
}

.shimmer-badge {
  height: 24px;
  width: 80px;
  border-radius: 20px;
}

.shimmer-btn {
  height: 40px;
  width: 120px;
  border-radius: 6px;
}

.shimmer-avatar {
  border-radius: 50%;
}

.shimmer-thumb {
  border-radius: 8px;
}

/* Admin Layout Scoped Styles */

/* Admin Layout Variables & Scoping */
/* Admin Layout Variables & Scoping - Final UI Overhaul */
.admin-layout {
  --sidebar-bg: #000000;
  --bg-main: #1a1a1a;
  --bg-surface: #ffffff;
  --header-bar-bg: #262626;
  --border-color: #dddddd;

  --text-main: #000000;
  --text-dim: #a3a3a3;
  --text-white: #ffffff;

  --primary: #000000;
  --sidebar-active-bg: #4ade80;

  --success: #4ade80;
  --error: #ef4444;
  --warning: #f59e0b;

  --radius-lg: 12px;
  --radius-md: 8px;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets when in Admin Mode */
body.admin-layout {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: #1a1a1a;
  color: #000000;
  line-height: 1.5;
  display: flex !important;
}

.admin-layout * {
  box-sizing: border-box;
}

/* Sidebar Styling - Solid Black */
.admin-layout .sidebar {
  width: 250px;
  background-color: #000000;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  color: #ffffff;
  overflow-y: auto;
}

/* Sidebar premium custom scrollbar */
.admin-layout .sidebar::-webkit-scrollbar {
  width: 5px;
}

.admin-layout .sidebar::-webkit-scrollbar-track {
  background: #000000;
}

.admin-layout .sidebar::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 4px;
}

.admin-layout .sidebar::-webkit-scrollbar-thumb:hover {
  background: #404040;
}

.admin-layout .logo {
  padding: 0 20px 40px;
  text-align: left;
}

.admin-layout .logo-img {
  max-width: 140px;
  height: auto;
}

.admin-layout .nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.admin-layout .nav-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  color: #a3a3a3;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.admin-layout .nav-link:hover {
  color: #ffffff;
}

.admin-layout .nav-link.active {
  background-color: #38c172;
  /* Slightly less harsh green */
  color: #000000;
  font-weight: 700;
}

.admin-layout .nav-link svg {
  width: 18px;
  height: 18px;
}

/* Sidebar Footer / Logout */
.admin-layout .sidebar-footer {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-layout .logout-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: #888888;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

/* Main Content Area */
.admin-layout .main-content {
  margin-left: 250px;
  width: calc(100% - 250px);
  min-height: 100vh;
  background-color: #1a1a1a;
}

.admin-layout .header {
  background-color: #262626;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-layout .header h1 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.admin-layout .content-wrapper {
  padding: 40px;
}

/* Cards & Layout */
.admin-layout .card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.admin-layout .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.admin-layout .stat-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
}

.admin-layout .stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-layout .stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #000000;
}

.admin-layout .stat-label {
  font-size: 13px;
  color: #666666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-layout .stat-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
}

/* Table Design */
.admin-layout .table-wrapper {
  background: white;
  border-radius: 8px;
  overflow-x: auto;
  /* Allow horizontal scroll if needed, but we try to fit */
}

.admin-layout table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  /* Ensures columns respect defined widths */
}

.admin-layout th {
  padding: 20px 24px;
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid #eeeeee;
}

/* Users Table Column Widths */
.admin-layout .users-table th:nth-child(1),
.admin-layout .users-table td:nth-child(1) {
  width: 120px;
}

/* ID */
.admin-layout .users-table th:nth-child(2),
.admin-layout .users-table td:nth-child(2) {
  width: 15%;
}

/* Users */
.admin-layout .users-table th:nth-child(3),
.admin-layout .users-table td:nth-child(3) {
  width: 25%;
}

/* Email */
.admin-layout .users-table th:nth-child(4),
.admin-layout .users-table td:nth-child(4) {
  width: 140px;
}

/* Phone */
.admin-layout .users-table th:nth-child(5),
.admin-layout .users-table td:nth-child(5) {
  width: 120px;
}

/* Joined */
.admin-layout .users-table th:nth-child(6),
.admin-layout .users-table td:nth-child(6) {
  width: 100px;
}

/* Status */
.admin-layout .users-table th:nth-child(7),
.admin-layout .users-table td:nth-child(7) {
  width: 140px;
  text-align: center;
}

/* Action */

/* Products Table Column Widths */
.admin-layout .products-table th:nth-child(1),
.admin-layout .products-table td:nth-child(1) {
  width: 30%;
}

/* Products */
.admin-layout .products-table th:nth-child(2),
.admin-layout .products-table td:nth-child(2) {
  width: 15%;
}

/* Category */
.admin-layout .products-table th:nth-child(3),
.admin-layout .products-table td:nth-child(3) {
  width: 10%;
}

/* Price */
.admin-layout .products-table th:nth-child(4),
.admin-layout .products-table td:nth-child(4) {
  width: 10%;
}

/* Offer */
.admin-layout .products-table th:nth-child(5),
.admin-layout .products-table td:nth-child(5) {
  width: 10%;
}

/* Status */
.admin-layout .products-table th:nth-child(6),
.admin-layout .products-table td:nth-child(6) {
  width: 10%;
}

/* Stock */
.admin-layout .products-table th:nth-child(7),
.admin-layout .products-table td:nth-child(7) {
  width: 150px;
  text-align: center;
}

/* Action */

/* Status */
.admin-layout .users-table th:nth-child(7),
.admin-layout .users-table td:nth-child(7) {
  width: 140px;
  /* Slightly wider for two buttons */
  text-align: center;
}

/* Action */

.admin-layout td:nth-child(1) {
  font-family: monospace;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-layout td {
  padding: 16px 24px;
  font-size: 13px;
  color: #333333;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.admin-layout .users-table tr:nth-child(even) {
  background-color: #f9fafb;
}

.admin-layout .users-table tr {
  transition: var(--transition);
}

.admin-layout .users-table tr:hover {
  background-color: #f3f4f6 !important;
}

.admin-layout .user-name {
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.admin-layout .user-email {
  color: #6b7280;
  font-weight: 400;
}

/* Skeleton Loading Specifics */
.skeleton-row td {
  padding: 20px 24px !important;
}

.skeleton-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.skeleton-pill {
  height: 24px;
  border-radius: 12px;
  width: 80px;
}

.fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

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

/* Status Labels */
.admin-layout .status-active {
  color: #22c55e;
  font-weight: 700;
  background: none;
  padding: 0;
}

.admin-layout .status-blocked {
  color: #ef4444;
  font-weight: 700;
  background: none;
  padding: 0;
}

.admin-layout .badge-success {
  color: #22c55e;
  font-weight: 700;
}

.admin-layout .badge-error {
  color: #ef4444;
  font-weight: 700;
}

/* Admin Layout Status Badges */
.admin-layout .badge-status {
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
  text-transform: uppercase;
}

.admin-layout .status-processing {
  background-color: #e3f2fd;
  color: #1976d2;
}

.admin-layout .status-shipped {
  background-color: #fff3e0;
  color: #f57c00;
}

.admin-layout .status-delivered {
  background-color: #e8f5e9;
  color: #388e3c;
}

.admin-layout .status-cancelled {
  background-color: #ffebee;
  color: #d32f2f;
}

.admin-layout .status-return-requested,
.admin-layout .status-returned {
  background-color: #fce4ec;
  color: #c2185b;
}

.admin-layout .status-partially-shipped {
  background-color: #fff3e0;
  color: #f57c00;
  border: 1px dashed #f57c00;
}

.admin-layout .status-partially-delivered {
  background-color: #e8f5e9;
  color: #388e3c;
  border: 1px dashed #388e3c;
}

/* Support for badge- prefixed status classes in user details table */
.admin-layout .badge-processing {
  background-color: #e3f2fd;
  color: #1976d2;
}

.admin-layout .badge-shipped {
  background-color: #fff3e0;
  color: #f57c00;
}

.admin-layout .badge-delivered {
  background-color: #e8f5e9;
  color: #388e3c;
}

.admin-layout .badge-cancelled {
  background-color: #ffebee;
  color: #d32f2f;
}

.admin-layout .badge-return-requested,
.admin-layout .badge-returned,
.admin-layout .badge-return-approved {
  background-color: #fce4ec;
  color: #c2185b;
}

.admin-layout .badge-partially-shipped {
  background-color: #fff3e0;
  color: #f57c00;
  border: 1px dashed #f57c00;
}

.admin-layout .badge-partially-delivered {
  background-color: #e8f5e9;
  color: #388e3c;
  border: 1px dashed #388e3c;
}

/* Product Image Style */
.admin-layout .product-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

/* Action Buttons Container */
.admin-layout .action-btns {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

/* Action Buttons */
.admin-layout .action-btn,
.admin-layout .btn-view,
.admin-layout .coupon-action-btn,
.admin-layout .offer-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: none !important;
  transform: none !important;
}

.admin-layout .action-btn:hover,
.admin-layout .btn-view:hover,
.admin-layout .coupon-action-btn:hover,
.admin-layout .offer-action-btn:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px) !important;
  color: #6366f1 !important;
}

/* Red Delete Action Buttons Style */
.admin-layout .action-btn[title*="Delete"],
.admin-layout .btn-view[title*="Delete"],
.admin-layout .coupon-action-btn[title*="Delete"],
.admin-layout .offer-action-btn[title*="Delete"],
.admin-layout .coupon-action-btn.delete,
.admin-layout .offer-action-btn.delete,
.admin-layout .action-btn[style*="color: #ef4444"],
.admin-layout .btn-view[style*="color: #ef4444"] {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.15) !important;
  background: #ffffff !important;
}

.admin-layout .action-btn[title*="Delete"]:hover,
.admin-layout .btn-view[title*="Delete"]:hover,
.admin-layout .coupon-action-btn[title*="Delete"]:hover,
.admin-layout .offer-action-btn[title*="Delete"]:hover,
.admin-layout .coupon-action-btn.delete:hover,
.admin-layout .offer-action-btn.delete:hover,
.admin-layout .action-btn[style*="color: #ef4444"]:hover,
.admin-layout .btn-view[style*="color: #ef4444"]:hover {
  background-color: rgba(239, 68, 68, 0.05) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #ef4444 !important;
}

/* Toggle Switch - Red/Green Pill */
.admin-layout .switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}

.admin-layout .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-layout .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ef4444;
  transition: .4s;
  border-radius: 34px;
}

.admin-layout .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.admin-layout input:checked+.slider {
  background-color: #22c55e;
}

.admin-layout input:checked+.slider:before {
  transform: translateX(22px);
}

/* Buttons & Forms */
.admin-layout .btn-primary {
  background-color: #000000;
  color: #ffffff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-layout .btn-primary:hover {
  background-color: #4f46e5 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.admin-layout .btn-primary:active {
  transform: translateY(0);
}

.admin-layout .btn-secondary {
  background-color: #ffffff;
  color: #64748b;
  border: 1px solid #cbd5e1;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-layout .btn-secondary:hover {
  background-color: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-2px);
}

.admin-layout .btn-secondary:active {
  transform: translateY(0);
}

/* Action table button hovers */
.admin-layout .action-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.admin-layout .action-btn:hover {
  color: #6366f1 !important;
  background: #f1f5f9;
  transform: scale(1.1);
}

.admin-layout .form-control {
  padding: 12px 14px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  font-size: 13px;
}

/* Hide number input arrows */
.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin: 0;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px !important;
}

/* Error Styling - From Signup Inspiration */
.admin-layout .error-msg {
  color: #e91e63;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  display: none;
  animation: slideDown 0.2s ease-out;
}

.admin-layout .form-control.is-invalid {
  border-color: #e91e63 !important;
  background-color: #fff8f8 !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

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

/* Responsive Overrides */
@media (max-width: 1024px) {
  .admin-layout .sidebar {
    width: 250px;
    /* Keep sidebar fixed even on smaller screens */
  }

  .admin-layout .main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
  }
}

@media (max-width: 768px) {
  .admin-layout .sidebar {
    transform: none;
    /* Sidebar always visible */
    width: 250px !important;
  }

  .admin-layout .main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
  }

  .admin-layout .header {
    padding: 20px;
  }
}

/* Pagination - Centered globally in Admin Layout */
.admin-layout .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
  width: 100%;
}

.admin-layout .pagination a,
.admin-layout .pagination span,
.admin-layout .pagination button {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  transition: var(--transition);
  cursor: pointer;
  min-width: 40px;
  text-align: center;
}

.admin-layout .pagination a:hover,
.admin-layout .pagination button:hover {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.admin-layout .pagination .active {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.admin-layout .results-info {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-left: 10px;
}

/* Modals - Centered and Scoped */
.admin-layout .modal {
  display: none !important;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 20000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  padding: 20px;
}

.admin-layout .modal.active {
  display: flex !important;
}

.admin-layout .modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 800px;
  /* Increased for 2-column layout */
  border-radius: var(--radius-lg);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  padding: 0;
  /* Remove padding here, move to sections */
}

/* Modal Redesign Sections */
.admin-layout .modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-layout .modal-body {
  padding: 32px;
}

.admin-layout .modal-footer {
  padding: 24px 32px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.admin-layout .modal-section {
  margin-bottom: 32px;
}

.admin-layout .modal-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Form Styling within Modal */
.admin-layout .form-group {
  margin-bottom: 20px;
}

.admin-layout .form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.admin-layout .form-control {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: var(--transition);
}

.admin-layout .form-control:focus {
  border-color: #000000;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.admin-layout textarea.form-control {
  height: auto;
  min-height: 120px;
  resize: vertical;
}

/* Variant Card Modern */
.admin-layout .variant-card-modern {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
}

.admin-layout .btn-remove-v {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #9ca3af;
  cursor: pointer;
  transition: var(--transition);
}

.admin-layout .btn-remove-v:hover {
  color: #ef4444;
}

/* Image Upload 3-Box Grid */
.admin-layout .image-upload-grid {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.admin-layout .image-box {
  width: 100px;
  height: 100px;
  border: 2px dashed #d1d5db;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: white;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.admin-layout .image-box:hover {
  border-color: #000000;
  background: #f3f4f6;
}

.admin-layout .image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.admin-layout .image-box-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #9ca3af;
  margin-top: 4px;
}

.admin-layout .image-box .plus-icon {
  font-size: 20px;
  color: #d1d5db;
}

.admin-layout .primary-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  padding: 2px 0;
}

.admin-layout .remove-img-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  z-index: 10;
}

/* Standardized Search Card Utilities */
.admin-layout .search-bar-container {
  display: flex;
  gap: 20px;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}

.admin-layout .search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.admin-layout .search-input-wrapper input {
  padding-left: 44px !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
}

.admin-layout .search-input-wrapper svg {
  position: absolute;
  left: 14px;
  top: 12px;
  color: #a3a3a3;
  z-index: 5;
}

.admin-layout .filter-select {
  width: 200px;
  height: 42px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
}

/* Layout density refinements */
.admin-layout .content-wrapper {
  padding: 30px 40px;
}

.admin-layout .card {
  margin-bottom: 24px;
}

.admin-layout .table-wrapper {
  margin-top: 10px;
}

/* ==========================================================================
   USER-SIDE STYLES (Consolidated)
   ========================================================================== */

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #4ade80;
  --accent-color: #e91e63;
  --text-main: #333;
  --text-light: #888;
  --bg-light: #f8f8f8;
  --white: #ffffff;
  --border-color: #eeeeee;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-layout {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--white);
  color: var(--text-main);
  line-height: 1.6;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden !important;
  position: relative;
}

.user-layout * {
  box-sizing: border-box;
}

/* Header */
.user-layout .header {
  background-color: var(--primary-color);
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: sticky;
  top: 0;
  z-index: 10000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-layout .logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.user-layout .logo-img {
  height: 32px;
  width: auto;
  filter: brightness(1) invert(0);
}

.user-layout .logo-sub {
  font-size: 10px;
  color: var(--secondary-color);
  letter-spacing: 4px;
  margin-top: 5px;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: none !important;
  filter: none !important;
}

.user-layout .search-box {
  flex: 1;
  max-width: 450px;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 8px 15px;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.user-layout .search-box:focus-within {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary-color);
}

.user-layout .search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 14px;
}

.user-layout .search-box svg {
  color: #888;
  width: 18px;
  height: 18px;
}

.user-layout .nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.user-layout .nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
}

.user-layout .nav-links a:hover {
  color: var(--secondary-color);
}

.user-layout .header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-layout .header-icons a {
  color: var(--white);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.user-layout .header-icons a:hover {
  color: var(--secondary-color);
}

.user-layout .header-icons svg {
  width: 24px;
  height: 24px;
}

.user-layout .nav-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent-color);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000;
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.user-layout .sign-in-btn {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
}

.user-layout .sign-in-btn:hover {
  background-color: #d81b60;
  transform: translateY(-1px);
}

.user-layout .profile-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #333;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--secondary-color);
  overflow: hidden;
}

/* Mobile Nav - Hidden on Desktop */
.user-layout .mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  background: #000000;
  z-index: 200000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 25px;
  padding: 40px 20px;
  margin: 0 !important;
}

.user-layout .mobile-nav.active {
  display: flex !important;
}

.user-layout .mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.user-layout .mobile-nav .mobile-nav-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  padding: 10px;
}

/* Menu Toggle Button - Only visible on Mobile */
.user-layout .menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .user-layout .menu-toggle {
    display: block;
  }

  .user-layout .nav-links {
    display: none;
  }
}

/* Shop Layout */
.user-layout .profile-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Redesigned Shop Layout */
.user-layout .shop-container {
  display: grid;
  grid-template-columns: 230px 1fr;
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 40px;
  gap: 30px;
  align-items: flex-start;
}

.user-layout .product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.user-layout .shop-title-main {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.user-layout .mobile-filter-bar {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 10px 15px;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-layout .btn-mobile-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: #000;
  border: none;
  width: 100%;
  padding: 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
}

.user-layout .filter-drawer-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: relative;
}

.user-layout .drawer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 10000;
}

.user-layout.drawer-open .drawer-overlay {
  display: block;
}

.user-layout .drawer-edge-close {
  display: none;
  position: absolute;
  left: -32px;
  top: 80px;
  width: 32px;
  height: 48px;
  background: #fff;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 8px 0 0 8px;
  align-items: center;
  justify-content: center;
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.05);
  z-index: 10002;
  cursor: pointer;
  padding: 0;
  color: #888;
}

@media (max-width: 768px) {
  .user-layout .drawer-edge-close {
    display: flex;
  }
}

.user-layout .filter-drawer-header .shop-title-main {
  margin-bottom: 0;
  font-size: 15px;
  letter-spacing: 1px;
}

.user-layout .close-drawer-btn {
  background: #f8f8f8;
  border: none;
  cursor: pointer;
  color: #000;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: background 0.2s;
}

.user-layout .close-drawer-btn:hover {
  background: #eee;
}

/* Redesigned Accordion Sidebar */
.user-layout .filters-sidebar {
  width: 250px;
  flex-shrink: 0;
  padding-right: 30px;
  border-right: 1px solid #f0f0f0;
}

.user-layout .desktop-only {
  display: block;
}

.user-layout .mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .user-layout .mobile-only {
    display: block !important;
  }

  .user-layout .desktop-only {
    display: none !important;
  }

  .user-layout .mobile-search-container {
    padding: 8px 15px;
    background-color: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 55px;
    /* Adjust based on header height */
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .user-layout .mobile-search-container .search-box {
    display: flex !important;
    max-width: 100% !important;
    margin: 0 !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 12px;
  }

  .user-layout .mobile-search-container .search-box input {
    font-size: 13px !important;
  }
}

.user-layout .filter-section {
  border-bottom: 1.5px solid #f0f0f0;
  margin-bottom: 15px;
}

.user-layout .filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  user-select: none;
}

.user-layout .filter-header h3 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #000;
}

.user-layout .filter-header svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}

.user-layout .filter-content {
  padding-bottom: 20px;
}

/* Category Pills */
.user-layout .category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-layout .category-pill {
  padding: 8px 15px;
  background: #f8f8f8;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  text-decoration: none;
  border: 1px solid transparent;
  transition: var(--transition);
}

.user-layout .category-pill:hover,
.user-layout .category-pill.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Size Grid */
.user-layout .size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.user-layout .size-box {
  padding: 10px;
  border: 1.5px solid #eee;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: #333;
  cursor: pointer;
  transition: var(--transition);
}

.user-layout .size-box:hover,
.user-layout .size-box.active {
  border-color: #000;
  background: #f8f8f8;
}

/* Price Slider (Dual Handle) */
.user-layout .price-slider-container {
  position: relative;
  height: 6px;
  margin: 20px 0;
}

.user-layout .price-input-range:nth-child(3) {
  z-index: 3;
}

.user-layout .price-input-range:nth-child(4) {
  z-index: 4;
}

.user-layout .price-slider-track {
  position: absolute;
  width: 100%;
  height: 4px;
  background-color: #eee;
  border-radius: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.user-layout .price-slider-range {
  position: absolute;
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 4px;
  left: 0;
  width: 0;
}

.user-layout .price-slider-track {
  position: absolute;
  width: 100%;
  height: 100%;
  background: #ddd;
  border-radius: 4px;
}

.user-layout .price-input-range {
  position: absolute;
  width: 100%;
  background: none;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

.user-layout .price-input-range::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid var(--accent-color);
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.user-layout .price-input-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.user-layout .price-display {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 800;
  color: #111;
  letter-spacing: 0.5px;
}

.user-layout .price-value {
  background-color: #f8f8f8;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Sidebar Buttons */
.user-layout .filter-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
  padding: 0 5px;
}

.user-layout .btn-filter-apply {
  width: 100%;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

.user-layout .btn-filter-apply:hover {
  background-color: #d81b60;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

.user-layout .btn-filter-clear {
  width: 100%;
  background: none;
  border: 1.5px solid #eee;
  color: #999;
  padding: 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-layout .btn-filter-clear:hover {
  border-color: #000;
  color: #000;
  background-color: #f9f9f9;
}

.user-layout .filter-actions-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Updated Category/Size States */
.user-layout .category-pills input[type="radio"],
.user-layout .category-pills input[type="checkbox"],
.user-layout .size-grid input[type="radio"],
.user-layout .size-grid input[type="checkbox"] {
  display: none;
}

.user-layout .category-pill {
  cursor: pointer;
}

.user-layout .category-pill:has(input:checked) {
  background: #000;
  color: #fff;
}

.user-layout .size-box {
  cursor: pointer;
}

.user-layout .size-box:has(input:checked) {
  border-color: #000;
  background: #f8f8f8;
  color: #000;
}

.user-layout .shop-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f9f9f9;
}

.user-layout .shop-top-bar .results-count {
  font-size: 12px;
  color: #888;
  font-weight: 600;
}

.user-layout .sort-dropdown select {
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  outline: none;
  cursor: pointer;
}

/* Redesigned Product Grid & Card */
.user-layout .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 20px;
}

.user-layout .product-card {
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.user-layout .product-image-wrapper {
  position: relative;
  background-color: #f8f8f8;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
  flex-shrink: 0;
}

.user-layout .product-image-wrapper a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
}

.user-layout .product-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.user-layout .product-card:hover .product-image-wrapper img {
  transform: scale(1.1);
}

.user-layout .badge-offer {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-color);
  color: #fff;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 2px;
  z-index: 5;
}

.user-layout .wishlist-btn {
  background: #fff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  z-index: 5;
  color: #ccc;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.user-layout .product-quick-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 10;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
}

.user-layout .product-card:hover .product-quick-actions {
  transform: translateY(0);
}

.user-layout .atc-btn {
  background: var(--accent-color);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(233, 30, 99, 0.2);
  cursor: pointer;
  z-index: 5;
  color: #fff;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.user-layout .atc-btn svg {
  width: 18px;
  height: 18px;
}

.user-layout .atc-btn:hover {
  transform: scale(1.1);
  background: #d81b60;
}

.user-layout .wishlist-btn:hover,
.user-layout .wishlist-btn.active {
  color: var(--accent-color);
}

.user-layout .wishlist-btn svg {
  width: 18px;
  height: 18px;
  fill: transparent;
  stroke: currentColor;
  transition: fill 0.3s ease;
}

.user-layout .wishlist-btn.active svg {
  fill: currentColor;
}

.user-layout .product-card-info {
  padding: 15px 15px 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.user-layout .product-brand {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.user-layout .product-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  margin-bottom: 8px;
  height: 1.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: var(--transition);
}

.user-layout .product-name:hover {
  color: var(--secondary-color);
}

.user-layout .product-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.user-layout .final-price {
  font-size: 15px;
  font-weight: 800;
  color: #000;
}

.user-layout .base-price {
  font-size: 12px;
  color: #bbb;
  text-decoration: line-through;
  font-weight: 600;
}

/* Action Buttons */
.user-layout .product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: auto;
}

.user-layout .btn-action {
  padding: 12px 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: transparent;
  border: 1.5px solid #111;
  color: #111;
  border-radius: 2px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.user-layout .btn-action:hover {
  background: #111;
  color: #fff;
}

.user-layout .btn-action:last-child {
  background: #111;
  color: #fff;
  border-color: #111;
}

.user-layout .btn-action:last-child:hover {
  background: #333;
  border-color: #333;
}

.user-layout .btn-action:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

/* Pagination */
.user-layout .pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 60px;
  padding: 40px 0;
  border-top: 1px solid #f0f0f0;
}

.user-layout .page-link {
  font-size: 13px;
  font-weight: 800;
  color: #ccc;
  text-decoration: none;
  transition: var(--transition);
}

.user-layout .page-link:hover,
.user-layout .page-link.active {
  color: #000;
}

/* Custom Sort Dropdown */
.custom-sort-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-label {
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sort-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 200px;
  height: 42px;
  padding: 0 15px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
  user-select: none;
}

.sort-trigger:hover {
  border-color: #e91e63;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.08);
}

.sort-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
  color: #888;
}

.custom-sort-wrapper.active .sort-trigger svg {
  transform: rotate(180deg);
}

.sort-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #f0f0f0;
  padding: 8px;
  display: none;
  z-index: 1000;
  list-style: none;
  animation: slideDropdown 0.3s ease forwards;
}

.custom-sort-wrapper.active .sort-options {
  display: block;
}

.sort-item {
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-item:hover {
  background: #fff0f5;
  color: #e91e63;
}

.sort-item.active {
  background: #e91e63;
  color: white;
}

@keyframes slideDropdown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

/* Footer (Common) */

.user-layout .footer {
  background-color: var(--primary-color);
  padding: 80px 40px 40px;
  color: var(--white);
  font-family: 'Inter', -apple-system, sans-serif;
}

.user-layout .footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.user-layout .footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 25px;
}

.user-layout .footer-logo .logo-img {
  height: 90px;
  width: auto;
  margin-bottom: 8px;
  filter: brightness(1) invert(0);
}

.user-layout .logo-sub-footer {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 25px;
  color: var(--secondary-color);
  text-transform: uppercase;
  text-align: center;
  margin: 0;
  text-shadow: none !important;
  filter: none !important;
}

.user-layout .footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.user-layout .footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-layout .footer h4 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
  color: var(--white);
  margin-top: 10px;
}

.user-layout .footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
  font-weight: 500;

}

.user-layout .footer a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.user-layout .footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-layout .footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-layout .footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

@media (max-width: 900px) {
  .user-layout .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .user-layout .footer-logo {
    grid-column: 1 / -1;
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .user-layout .footer {
    padding: 50px 20px 30px;
  }

  .user-layout .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .user-layout .logo-sub-footer {
    font-size: 10px;
    letter-spacing: 5px;
  }

  .user-layout .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

@media (max-width: 1024px) {
  .user-layout .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .user-layout .header {
    padding: 12px 20px;
  }

  .user-layout .search-box,
  .user-layout .nav-links,
  .user-layout .header-icons .sign-in-btn,
  .user-layout .header-icons .profile-mini {
    display: none;
  }

  .user-layout .header-icons {
    gap: 18px;
  }

  .user-layout .menu-toggle {
    margin-left: 10px;
  }

  .user-layout .product-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .user-layout .main-image-container {
    height: 400px;
  }

  .user-layout .shop-container {
    display: block;
    padding: 0;
    margin-top: 0;
  }

  .user-layout .mobile-filter-bar {
    display: flex;
    position: sticky;
    top: 68px;
    /* Adjusted to sit flush with header */
    z-index: 9000;
    /* Just below header */
    padding: 10px 15px;
    background: #000;
  }

  .user-layout .filters-sidebar {
    position: fixed;
    top: 68px;
    /* Sit flush below the header */
    right: -100%;
    width: 320px;
    height: calc(100vh - 68px);
    background: #fff;
    z-index: 10001;
    /* Above sticky bar but below header if needed, but they asked for 10001 */
    padding: 20px 20px 40px;
    margin: 0;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .user-layout .filters-sidebar.active {
    right: 0;
  }

  .user-layout .filters-sidebar .shop-title-main:not(:first-child) {
    display: none;
  }

  .user-layout .shop-main {
    padding: 0 15px;
  }

  .user-layout.drawer-open {
    overflow: hidden;
  }
}

/* Home Hero - Consistently Simple */
.user-layout .hero {
  position: relative;
  height: min(600px, 80vh);
  background-color: #111;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 60px;
}

.user-layout .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.user-layout .hero-content {
  padding: 0 60px;
  z-index: 2;
  position: relative;
}

.user-layout .hero h1 {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.user-layout .hero p {
  color: #fff;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-transform: uppercase;
  font-weight: 500;
}

.user-layout .shop-now-btn {
  display: inline-block;
  background-color: #fff;
  color: #000;
  padding: 12px 36px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s;
  text-transform: uppercase;
  border-radius: 2px;
}

.user-layout .shop-now-btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.user-layout .hero-image {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 1;
  /* Improved clarity under the gradient */
  z-index: 1;
}

.user-layout .section-title {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 50px;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 4px;
  position: relative;
}

.user-layout .section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--secondary-color);
}

.user-layout .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 1024px) {
  .user-layout .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .user-layout .header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .user-layout .header-icons {
    gap: 12px;
    display: flex;
    align-items: center;
  }

  .user-layout .menu-toggle {
    margin-left: 10px;
    display: block !important;
  }

  .user-layout .hero {
    height: 450px;
    padding: 40px 20px;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    margin-bottom: 40px;
  }

  .user-layout .hero-content {
    padding: 0;
    width: 100%;
  }

  .user-layout .hero::before {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
  }

  .user-layout .hero h1 {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: 1px;
  }

  .user-layout .hero p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0.9;
  }

  .user-layout .products-grid,
  .user-layout .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 0 5px;
    width: 100%;
    margin: 0;
  }

  .user-layout .product-image-wrapper {
    height: 145px;
    padding: 5px;
  }

  .user-layout .badge-offer {
    top: 5px;
    right: 5px;
    font-size: 8px;
    padding: 2px 4px;
  }

  .user-layout .product-card-info {
    padding: 8px 4px;
  }

  .user-layout .product-name {
    font-size: 11px;
    height: 28px;
    overflow: hidden;
    line-height: 1.2;
  }

  .user-layout .product-pricing {
    gap: 4px;
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .user-layout .final-price {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
  }

  .user-layout .base-price {
    font-size: 10px;
    opacity: 0.6;
  }

  .user-layout .section-title {
    font-size: 20px;
    margin-bottom: 35px;
    letter-spacing: 3px;
  }

  .user-layout .service-item {
    padding: 30px 20px;
  }

  .user-layout .out-of-stock-overlay span {
    padding: 6px 10px !important;
    font-size: 9px !important;
    letter-spacing: 1px !important;
  }
}

/* Services Section Styling */
.user-layout .services-section {
  padding: 100px 40px;
  background-color: #fafafa;
  text-align: center;
}

.user-layout .services-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 5px;
  color: var(--text-light);
  margin-bottom: 60px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.user-layout .services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.user-layout .service-item {
  background: var(--white);
  padding: 45px 30px;
  border-radius: 8px;
  transition: var(--transition);
  border: 1px solid #f0f0f0;
}

.user-layout .service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--secondary-color);
}

.user-layout .service-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 25px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-layout .service-icon svg {
  width: 100%;
  height: 100%;
}

.user-layout .service-item h4 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: #111;
  letter-spacing: 1px;
}

.user-layout .service-item p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .user-layout .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .user-layout .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PRODUCT DETAILS PAGE STYLES
   ========================================================================== */

.user-layout .product-details-container {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 40px;
}

/* Breadcrumbs */
.user-layout .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ccc;
}

.user-layout .breadcrumbs a {
  color: #888;
  text-decoration: none;
  transition: var(--transition);
}

.user-layout .breadcrumbs a:hover {
  color: #000;
}

.user-layout .breadcrumbs span {
  color: #ccc;
}

/* Product Main Grid */
.user-layout .product-main {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  margin-bottom: 100px;
  align-items: flex-start;
}

/* Gallery Logic */
.user-layout .product-gallery {
  display: flex;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.user-layout .thumbnail-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 40px;
}

.user-layout .thumbnail-item {
  width: 40px;
  height: 40px;
  border: 1.5px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  background: #f8f8f8;
  padding: 5px;
}

.user-layout .thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.user-layout .thumbnail-item:hover,
.user-layout .thumbnail-item.active {
  border-color: #000;
}

.user-layout .main-image-container {
  flex: 1;
  position: relative;
  background-color: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  cursor: crosshair;
}

.user-layout .main-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Overlays */
.user-layout .product-badge-overlay {
  position: absolute;
  z-index: 10;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
}

.user-layout .product-badge-overlay.offer {
  top: 20px;
  left: 20px;
  background: var(--accent-color);
  color: #fff;
}

.user-layout .product-badge-overlay.stock {
  top: 55px;
  left: 20px;
  background: #fff;
  color: #d32f2f;
  border: 1.5px solid #d32f2f;
}

.user-layout .wishlist-btn-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: #000;
}

.user-layout .wishlist-btn-overlay svg {
  width: 22px;
  height: 22px;
}

.user-layout .wishlist-btn-overlay.active {
  background: #000;
  color: #fff;
}

.user-layout .wishlist-btn-overlay.active svg {
  fill: #fff;
}

/* Image Zoom Support */
.user-layout .main-image-container img {
  transition: transform 0.1s ease-out;
}

/* Zoom Lens */
.user-layout .zoom-lens {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid #ddd;
  background: rgba(255, 255, 255, 0.2);
  display: none;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Product Info Panel */
.user-layout .product-info-panel {
  display: flex;
  flex-direction: column;
}

.user-layout .product-brand-details {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary-color);
  margin-bottom: 12px;
}

.user-layout .product-info-panel h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

/* Pricing */
.user-layout .pricing-panel {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 25px;
}

.user-layout .final-price-lg {
  font-size: 28px;
  font-weight: 800;
  color: #000;
}

.user-layout .base-price-lg {
  font-size: 18px;
  color: #bbb;
  text-decoration: line-through;
  font-weight: 600;
}

.user-layout .discount-badge-lg {
  background: var(--accent-color);
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 4px;
}

/* Stock Badges */
.user-layout .stock-status {
  margin-bottom: 35px;
}

.user-layout .stock-badge {
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.user-layout .stock-in {
  background: #dcfce7;
  color: #166534;
}

.user-layout .stock-out {
  background: #fee2e2;
  color: #991b1b;
}

.user-layout .stock-low {
  background: #fef9c3;
  color: #854d0e;
}

/* Variant Selection */
.user-layout .variant-selection {
  margin-bottom: 30px;
}

.user-layout .variant-title {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: #000;
}

.user-layout .size-list,
.user-layout .color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.user-layout .size-item {
  width: 50px;
  height: 50px;
  border: 1.5px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 4px;
}

.user-layout .size-item:hover,
.user-layout .size-item.active {
  border-color: #000;
  background: #000;
  color: #fff;
}

.user-layout .color-item {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #eee;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.user-layout .color-item:hover,
.user-layout .color-item.active {
  transform: scale(1.1);
  border-color: #000;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}

/* Actions Panel */
.user-layout .product-actions-panel {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding-top: 30px;
  border-top: 1.5px solid #f8f8f8;
  margin-bottom: 40px;
}

.user-layout .quantity-control {
  display: flex;
  align-items: center;
  background: #f8f8f8;
  border-radius: 4px;
  height: 54px;
}

.user-layout .qty-btn {
  width: 50px;
  height: 100%;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  transition: var(--transition);
}

.user-layout .qty-btn:hover {
  color: #000;
}

.user-layout .qty-input {
  width: 40px;
  text-align: center;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 700;
  color: #000;
}

.user-layout .btn-add-cart,
.user-layout .btn-buy-now {
  flex: 1;
  height: 54px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.user-layout .btn-add-cart {
  background: #fff;
  border: 2px solid #000;
  color: #000;
}

.user-layout .btn-add-cart:hover {
  background: #000;
  color: #fff;
}

.user-layout .btn-buy-now {
  background: var(--accent-color);
  color: #fff;
}

.user-layout .btn-buy-now:hover {
  background: #d81b60;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(233, 30, 99, 0.2);
}

/* Tabs Styling */
.user-layout .product-tabs {
  margin-top: 60px;
  margin-bottom: 100px;
}

.user-layout .tab-nav {
  display: flex;
  gap: 50px;
  border-bottom: 1.5px solid #f0f0f0;
  margin-bottom: 40px;
}

.user-layout .tab-btn {
  background: none;
  border: none;
  padding: 15px 0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #aaa;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.user-layout .tab-btn.active {
  color: #000;
}

.user-layout .tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1.5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000;
}

.user-layout .tab-content {
  font-size: 15px;
  line-height: 1.8;
  color: #666;
  max-width: 800px;
  animation: fadeIn 0.4s ease-out;
}

/* Product Highlights */
.user-layout .product-highlights {
  background: #fafafc;
  padding: 30px;
  border-radius: 8px;
}

/* Related Products spacing */
.user-layout .related-products-section {
  padding-top: 80px;
  border-top: 1.5px solid #f0f0f0;
  margin-bottom: 100px;
}

.user-layout .related-products-section .product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Responsive Overrides for Product Details */
@media (max-width: 1024px) {
  .user-layout .product-main {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .user-layout .product-main {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .user-layout .product-gallery {
    position: static;
    flex-direction: column-reverse;
  }

  .user-layout .thumbnail-list {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
  }

  .user-layout .main-image-container {
    height: 500px;
  }

  .user-layout .product-info-panel h1 {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .user-layout .product-details-container {
    padding: 0 15px;
    margin: 20px auto;
  }

  .user-layout .product-main {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
    text-align: left;
  }

  .user-layout .product-gallery {
    flex-direction: column;
    position: relative;
    top: 0;
    gap: 15px;
    align-items: flex-start;
  }

  .user-layout .thumbnail-list {
    flex-direction: row;
    width: 100%;
    order: 2;
    overflow-x: auto;
    gap: 10px;
    padding: 5px 0;
    justify-content: flex-start;
  }

  .user-layout .thumbnail-item {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
  }

  .user-layout .main-image-container {
    height: 140px !important;
    padding: 2px;
    order: 1;
    width: 100%;
    margin-bottom: 8px;
  }

  .user-layout .product-gallery {
    margin-bottom: 25px;
  }

  .user-layout .related-products-section .products-grid,
  .user-layout .related-products-section .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 10px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .user-layout .related-products-section .product-card-actions {
    display: none !important;
  }

  .user-layout .related-products-section .product-image-wrapper {
    height: 130px !important;
    padding: 10px !important;
  }

  .user-layout .related-products-section .product-name {
    font-size: 11px !important;
    height: 28px !important;
    margin-top: 5px;
    line-height: 1.4;
  }

  .user-layout .related-products-section .final-price {
    font-size: 12px !important;
    font-weight: 700;
  }

  .user-layout .related-products-section .btn-add-cart,
  .user-layout .related-products-section .btn-view-details {
    display: none !important;
    /* Hide buttons on 3-column mobile cards */
  }

  .user-layout .product-badge-overlay {
    top: 15px;
    left: 15px;
    font-size: 9px;
    padding: 4px 8px;
  }

  .user-layout .product-badge-overlay.stock {
    top: 45px;
    left: 15px;
  }

  .user-layout .wishlist-btn-overlay {
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
  }

  .user-layout .wishlist-btn-overlay svg {
    width: 18px;
    height: 18px;
  }

  .user-layout .product-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .user-layout .product-pricing {
    justify-content: flex-start;
  }

  .user-layout .size-grid,
  .user-layout .color-options {
    justify-content: flex-start;
  }

  .user-layout .product-actions-panel {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .user-layout .quantity-control {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }

  .user-layout .btn-add-cart,
  .user-layout .btn-buy-now {
    width: 100% !important;
    flex: none;
    height: 50px;
  }

  .user-layout .tab-nav {
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    justify-content: flex-start;
  }

  .user-layout .related-products-section h2 {
    text-align: left !important;
  }
}


/* Disabled state for sizes not available in selected color */
.user-layout .size-item.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background-color: #f0f0f0;
  border-color: #ddd;
  color: #999;
  pointer-events: none;
}

/* ==========================================================================
   KAVOX CUSTOM NOTIFICATION SYSTEM (Replacement for SweetAlert)
   ========================================================================== */

#kavox-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 30300;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.kavox-toast {
  pointer-events: auto;
  min-width: 320px;
  max-width: 400px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  padding: 18px 22px;
  margin-bottom: 8px;
  border-left: 5px solid #000;
  position: relative;
  overflow: hidden;
  animation: kavoxSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transition: all 0.3s ease;
}

.kavox-toast.removing {
  animation: kavoxSlideOut 0.4s ease forwards;
}

.kavox-toast:hover .kavox-toast-progress-inner {
  animation-play-state: paused;
}

@keyframes kavoxSlideIn {
  from {
    transform: translateX(110%);
    opacity: 0;
  }

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

@keyframes kavoxSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(50px);
    opacity: 0;
    filter: blur(5px);
  }
}

.kavox-toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-weight: 800;
  font-size: 14px;
}

.kavox-toast-success {
  border-color: #4ade80;
}

.kavox-toast-success .kavox-toast-icon {
  background: #4ade80;
  color: #fff;
}

.kavox-toast-error {
  border-color: #ef4444;
}

.kavox-toast-error .kavox-toast-icon {
  background: #ef4444;
  color: #fff;
}

.kavox-toast-content {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.4;
}

.kavox-toast-close {
  margin-left: 15px;
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  line-height: 1;
}

.kavox-toast-close:hover {
  color: #333;
}

.kavox-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: rgba(0, 0, 0, 0.03);
}

.kavox-toast-progress-inner {
  height: 100%;
  width: 100%;
  background: currentColor;
  opacity: 0.3;
  transform-origin: left;
  animation: kavoxProgress linear forwards;
}

@keyframes kavoxProgress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

/* Confirmation Modal & Overlay */
#kavox-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 30100;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

#kavox-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.kavox-confirm-modal {
  background: #fff;
  width: 90%;
  max-width: 400px;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#kavox-modal-overlay.active .kavox-confirm-modal {
  transform: scale(1);
}

.kavox-confirm-icon {
  width: 60px;
  height: 60px;
  border: 3px solid #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  font-weight: 800;
  color: #f59e0b;
}

.kavox-confirm-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #111;
}

.kavox-confirm-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.5;
}

.kavox-confirm-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.kavox-confirm-btns button {
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.kavox-btn-cancel {
  background: #f3f4f6;
  color: #374151;
}

.kavox-btn-cancel:hover {
  background: #e5e7eb;
}

.kavox-btn-confirm {
  background: #000;
  color: #fff;
}

.kavox-btn-confirm:hover {
  background: #333;
}

/* ==========================================================================
   ADD TO CART VARIANT MODAL
   ========================================================================== */

.atc-modal {
  background: #fff;
  width: 95%;
  max-width: 900px;
  display: flex;
  flex-direction: row;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  max-height: 90vh;
}

.atc-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  border: 1px solid #eee;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.atc-left {
  flex: 1.2;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.atc-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.atc-right {
  flex: 1;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.atc-product-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.atc-price {
  font-size: 20px;
  font-weight: 800;
  color: #e91e63;
  margin-bottom: 30px;
}

.variant-label {
  font-size: 11px;
  font-weight: 800;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  display: block;
}

.color-options,
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #eee;
  cursor: pointer;
  padding: 2px;
  transition: all 0.2s;
  position: relative;
}

.color-swatch:hover {
  border-color: #ccc;
}

.color-swatch.active {
  border-color: #000;
  scale: 1.1;
}

.color-swatch span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.size-btn {
  padding: 10px 20px;
  border: 1.5px solid #eee;
  background: white;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.size-btn:hover:not(:disabled) {
  border-color: #888;
}

.size-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.size-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #fafafa;
}

.atc-qty-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  padding-top: 30px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}

.qty-control button {
  width: 40px;
  height: 40px;
  border: none;
  background: white;
  font-size: 18px;
  cursor: pointer;
}

.qty-control span {
  padding: 0 15px;
  font-weight: 800;
  font-size: 14px;
}

.btn-add-final {
  flex: 1;
  background: #000;
  color: #fff;
  border: none;
  height: 50px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-add-final:hover {
  background: #333;
}

.btn-add-final:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.atc-error {
  color: #ef4444;
  font-size: 11px;
  font-weight: 700;
  margin-top: 10px;
  display: none;
}

@media (max-width: 768px) {
  .atc-modal {
    flex-direction: column;
  }

  .atc-left {
    height: 300px;
    padding: 20px;
  }

  .atc-right {
    padding: 30px 20px;
  }
}

/* Loading Overlay */
#kavox-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(3px);
  z-index: 30200;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#kavox-loading-overlay.active {
  display: flex;
  opacity: 1;
}

.kavox-loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #000;
  border-radius: 50%;
  animation: kavox-spin 1s linear infinite;
  margin-bottom: 15px;
}

.kavox-loading-text {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes kavox-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Product Blocked Styles */
.user-layout.product-blocked .product-gallery,
.user-layout.product-blocked .pricing-panel,
.user-layout.product-blocked .variant-selection,
.user-layout.product-blocked .product-highlights {
  filter: grayscale(0.8) opacity(0.7);
  pointer-events: none;
  transition: all 0.3s ease;
}

.user-layout.product-blocked .product-actions-panel {
  filter: none !important;
  opacity: 1 !important;
  background: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  border: 1px dashed #d1d5db;
}

/* ==========================================================================
   USER ACCOUNT & SHARED LAYOUTS
   ========================================================================== */

.user-layout .main-content {
  flex: 1;
  padding: 40px 20px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.user-layout .page-title {
  font-size: 24px;
  font-weight: 800;
  color: #000;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

/* Forms & Cards */
.user-layout .form-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
}

.user-layout .form-row {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}

.user-layout .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-layout .form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.user-layout .form-group input,
.user-layout .form-group select,
.user-layout .form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid #eee;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.user-layout .form-group input:focus {
  border-color: #000;
  outline: none;
}

/* ==========================================================================
   CART PAGE STYLES
   ========================================================================== */
.user-layout .cart-container {
  max-width: 1200px;
  margin: 40px auto;

  .user-layout .shop-main {
    padding: 0 15px;
  }

  min-height: 60vh;
}

.user-layout .cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.user-layout .cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: 20px;
}

.user-layout .item-img img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.user-layout .cart-summary-panel {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 30px;
  position: sticky;
  top: 100px;
}

/* ==========================================================================
   WISHLIST PAGE STYLES
   ========================================================================== */
.user-layout .wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.user-layout .wishlist-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

/* ==========================================================================
   ADDRESS PAGE STYLES
   ========================================================================== */
.user-layout .address-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  background: #fff;
}

/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 992px) {
  .user-layout .cart-layout {
    grid-template-columns: 1fr;
  }

  .user-layout .cart-summary-panel {
    position: static;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .user-layout .main-content {
    padding: 30px 15px;
  }

  .user-layout .form-card {
    padding: 25px 20px;
  }

  .user-layout .form-row {
    flex-direction: column;
    gap: 20px;
  }

  .user-layout .address-card {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .user-layout .cart-item {
    grid-template-columns: 80px 1fr;
    padding: 15px;
  }

  .user-layout .item-actions {
    grid-column: span 2;
    flex-direction: row !important;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #eee;
  }
}

/* Profile Specific Styles */
.user-layout .profile-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 40px;
  max-width: 850px;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
}

.user-layout .profile-avatar-container {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-layout .profile-avatar-input {
  display: none;
}

.user-layout .profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #ddd;
  position: relative;
  cursor: pointer;
  display: block;
}

.user-layout .profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-layout .profile-avatar-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  padding: 6px 0;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.2s;
}

.user-layout .profile-avatar:hover .profile-avatar-overlay {
  opacity: 1;
}

.user-layout .camera-icon {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #e91e63, #ff5252);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #fff;
}

.user-layout .camera-icon svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

.user-layout .profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 30px;
}

.user-layout .form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
  gap: 15px;
}

.user-layout .update-btn {
  background: linear-gradient(to right, #e91e63, #ff5252);
  color: #fff;
  border: none;
  padding: 14px 80px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.user-layout .action-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin-top: 40px;
}

.user-layout .action-btn {
  border: 1.5px solid #000;
  background: #fff;
  padding: 16px 24px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: #000;
  transition: all 0.2s;
}

.user-layout .action-btn:hover {
  background-color: #000;
  color: #fff;
}

@media (max-width: 768px) {
  .user-layout .profile-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .user-layout .action-buttons {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 480px) {
  .user-layout .cart-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .user-layout .hero h1 {
    font-size: 26px;
    line-height: 1.2;
  }

  .user-layout .hero p {
    font-size: 12px;
    margin-bottom: 15px;
  }
}

/* ==========================================================================
   FINAL MOBILE OPTIMIZATIONS
   ========================================================================== */

/* Priority Content for Shop */
@media (max-width: 768px) {
  .user-layout .shop-main {
    order: 1;
    /* Products first */
  }

  .user-layout .mobile-filter-bar {
    order: 0;
    /* Filter bar at top */
  }

  .user-layout .cart-container {
    padding: 20px 15px;
  }

  .user-layout .cart-header h1 {
    font-size: 22px;
  }

  .user-layout .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 8px;
  }

  .user-layout .wishlist-info {
    padding: 8px 4px;
  }

  .user-layout .wishlist-name {
    font-size: 11px;
    height: 28px;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .user-layout .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .user-layout .hero-content h1 {
    font-size: 28px;
  }
}

/* Profile Page Design */
.user-layout .profile-container {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.user-layout .profile-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.user-layout .profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 20px;
}

.user-layout .profile-card-header h1 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0;
}

.user-layout .profile-main-section {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.user-layout .profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 15px;
  overflow: hidden;
  background: #f8f9fa;
  border: 4px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  cursor: pointer;
}

.user-layout .profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-layout .profile-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  font-weight: 700;
  color: var(--secondary-color);
  background: #fff5f5;
}

.user-layout .profile-info-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.user-layout .info-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  padding: 15px 0;
  border-bottom: 1px solid #f8f9fa;
  align-items: center;
}

.user-layout .info-row.no-border {
  border-bottom: none;
}

.user-layout .info-label {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.user-layout .info-value {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.user-layout .profile-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.user-layout .profile-action-btn {
  background: #fff;
  border: 1px solid #eee;
  padding: 30px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.user-layout .profile-action-btn:hover {
  transform: translateY(-5px);
  border-color: var(--secondary-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.user-layout .profile-action-btn span {
  font-size: 11px;
  font-weight: 800;
  color: #333;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .user-layout .profile-card {
    padding: 25px 20px;
  }

  .user-layout .profile-main-section {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .user-layout .profile-info-grid {
    width: 100%;
  }

  .user-layout .info-row {
    grid-template-columns: 1fr;
    gap: 5px;
    text-align: left;
  }

  .user-layout .profile-actions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .user-layout .profile-action-btn {
    padding: 20px 10px;
  }
}

/* ==========================================================================
   CHECKOUT PAGE STYLES
   ========================================================================== */

.user-layout .checkout-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 40px;
}

.user-layout .checkout-page-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 40px;
}

.user-layout .checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.user-layout .checkout-section-header h2 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  color: #111;
}

/* Address Box */
.user-layout .address-selection-box {
  margin-bottom: 40px;
}

.user-layout .selected-address-card {
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 4px;
  background: #fff;
}

.user-layout .address-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.user-layout .address-name-type {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-layout .addr-name {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.user-layout .addr-badge {
  background: #eee;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #555;
}

.user-layout .btn-change-addr {
  color: #2196f3;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.user-layout .address-details p {
  font-size: 13px;
  color: #555;
  margin: 0 0 5px 0;
  line-height: 1.4;
}

.user-layout .addr-mobile {
  margin-top: 15px;
  font-size: 13px;
}

.user-layout .add-new-addr-link {
  display: inline-block;
  margin-top: 15px;
  color: #2196f3;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* Payment Methods */
.user-layout .payment-methods-wrapper {
  margin-top: 30px;
}

.user-layout .payment-badge {
  background: #f0f0f0;
  padding: 15px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.user-layout .payment-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.user-layout .payment-option {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  padding: 15px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
}

.user-layout .payment-option.active {
  border-color: #2196f3;
  background: #f8fbff;
}

.user-layout .payment-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #fafafa;
}

.user-layout .payment-option input[type="radio"] {
  display: none;
}

.user-layout .payment-option-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

/* Right Sidebar Elements */
.user-layout .checkout-summary-box {
  border: 1px solid #e0e0e0;
  padding: 25px;
  border-radius: 4px;
  background: #fff;
  margin-bottom: 30px;
}

.user-layout .summary-box-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  color: #111;
}

.user-layout .coupon-subtext {
  font-size: 12px;
  color: #777;
  margin-bottom: 10px;
}

.user-layout .coupon-input-group {
  display: flex;
  gap: 0;
}

.user-layout .coupon-input-group input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-right: none;
  font-size: 13px;
  border-radius: 2px 0 0 2px;
  outline: none;
  background: #fdfdfd;
}

.user-layout .btn-apply-coupon {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
}

/* Items List */
.user-layout .checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.user-layout .checkout-item {
  display: flex;
  gap: 15px;
  align-items: center;
}

.user-layout .checkout-item-img {
  width: 60px;
  height: 60px;
  background: #f8f8f8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.user-layout .checkout-item-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.user-layout .checkout-item-details {
  flex: 1;
}

.user-layout .checkout-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}

.user-layout .checkout-item-meta {
  font-size: 11px;
  color: #777;
  margin-bottom: 2px;
}

.user-layout .checkout-item-price {
  margin-top: 4px;
}

.user-layout .checkout-item-price .strike-price {
  font-size: 11px;
  color: #aaa;
  text-decoration: line-through;
  margin-right: 5px;
}

.user-layout .checkout-item-price .final-price {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.user-layout .summary-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 25px 0;
}

.user-layout .summary-calculations {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.user-layout .summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #555;
}

.user-layout .discount-text {
  color: #4caf50;
}

.user-layout .free-text {
  color: #4caf50;
  font-weight: 600;
}

.user-layout .total-row {
  font-weight: 800;
  font-size: 16px;
  color: #111;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.user-layout .btn-proceed-payment {
  width: 100%;
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-layout .btn-proceed-payment:hover {
  background: #d81b60;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .user-layout .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .user-layout .checkout-container {
    padding: 0 20px;
  }
}

/* Order Success Modal Animation */
.order-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.order-success-modal.show {
  opacity: 1;
  visibility: visible;
}

.order-success-modal .modal-content {
  background: #fff;
  padding: 40px 60px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.order-success-modal.show .modal-content {
  transform: scale(1);
}

.success-animation {
  margin: 0 auto 20px;
}

.success-animation .checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: var(--accent-color);
  stroke-miterlimit: 10;
  margin: 0 auto;
}

.success-animation .checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: var(--accent-color);
  fill: none;
}

.success-animation .checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.order-success-modal.show .checkmark__circle {
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.order-success-modal.show .checkmark__check {
  animation: stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

.order-success-modal h2 {
  font-size: 24px;
  color: #111;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.order-success-modal p {
  color: #666;
  font-size: 14px;
}

/* Banners Table Column Widths & Layout Overrides */
.admin-layout .banners-table th:nth-child(1),
.admin-layout .banners-table td:nth-child(1) {
  width: 15% !important;
}

.admin-layout .banners-table th:nth-child(2),
.admin-layout .banners-table td:nth-child(2) {
  width: 25% !important;
}

.admin-layout .banners-table th:nth-child(3),
.admin-layout .banners-table td:nth-child(3) {
  width: 30% !important;
}

.admin-layout .banners-table td:nth-child(3) a {
  word-break: break-all;
  display: block;
}

.admin-layout .banners-table th:nth-child(4),
.admin-layout .banners-table td:nth-child(4) {
  width: 15% !important;
}

.admin-layout .banners-table th:nth-child(5),
.admin-layout .banners-table td:nth-child(5) {
  width: 10% !important;
  text-align: center;
}

.admin-layout .banners-table th:nth-child(6),
.admin-layout .banners-table td:nth-child(6) {
  width: 10% !important;
  text-align: center;
}