@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Barlow+Condensed:wght@400;500;600;700&family=Barlow:wght@300;400;500;600;700&display=swap');

/* Admin Pages CSS Global Imports */

.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  font-family: var(--font-primary, 'Barlow', sans-serif);
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.admin-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background-color: var(--admin-bg);
  transition: background-color 0.3s ease;
}

@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.admin-content > * {
  animation: fadeInSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Admin UI Components */

.action-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--admin-text);
  color: var(--admin-bg);
  border: 1px solid var(--admin-text);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.action-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--admin-text);
  border: 1px solid var(--admin-border-dark);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-btn-outline:hover {
  background-color: var(--admin-surface);
  border-color: var(--admin-text-muted);
}

.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 40px 20px;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

/* Global Custom Dropdown */

.custom-dropdown-wrapper {
  position: relative;
}

.custom-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.custom-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 100;
  padding: 8px 0;
}

.dropdown-group-label {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: bold;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.dropdown-item {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--admin-text);
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-item:hover, .dropdown-item.active {
  background: rgba(0,0,0,0.05);
}

body.dark-mode .custom-dropdown-menu {
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

body.dark-mode .dropdown-item:hover, body.dark-mode .dropdown-item.active {
  background: rgba(255,255,255,0.05);
}

/* Responsive Styles */

.sidebar-mobile-backdrop {
  display: none;
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 992px) {
  .sidebar-mobile-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    z-index: 900;
    animation: backdropFadeIn 0.3s ease-out forwards;
  }
}

.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-header-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-titles h2 {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--admin-text);
  letter-spacing: 1px;
}

.dashboard-titles p {
  color: var(--admin-text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  background-color: transparent;
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text-muted);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab.active {
  background-color: var(--admin-text);
  color: var(--admin-bg);
  border-color: var(--admin-text);
}

.filter-tab:hover:not(.active) {
  border-color: var(--admin-border-dark);
  color: var(--admin-text);
}

.metric-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.metric-icon-wrapper {
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-icon { background-color: rgba(234, 179, 8, 0.1); color: #eab308; }

.bag-icon { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; }

.crown-icon { background-color: var(--admin-accent-bg); color: var(--admin-accent); }

.users-icon { background-color: rgba(34, 197, 94, 0.1); color: #22c55e; }

.metric-info h3 {
  font-size: 11px;
  color: var(--admin-text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--admin-text);
}

.metric-value.text-large {
  font-size: 18px;
}

.metric-trend {
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.metric-trend.positive { color: #4ade80; }

.metric-trend.negative { color: #ef4444; }

.metric-trend.neutral { color: #64748b; }

body:not(.dark-mode) .metric-trend.positive { color: #16a34a; }

body:not(.dark-mode) .metric-trend.negative { color: #dc2626; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.dashboard-chart-section {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 24px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dashboard-chart-section h3 {
  font-size: 16px;
  color: var(--admin-text);
  margin-bottom: 24px;
  font-weight: 700;
}

.chart-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.chart-subtitle {
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

.chart-total-badge {
  background: var(--admin-surface-hover);
  border: 1px solid var(--admin-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--admin-text);
}

.chart-total-badge strong {
  color: var(--admin-accent, #dc5a1e);
  font-weight: 700;
}

.real-chart-container {
  height: 250px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: 1px solid var(--admin-border);
  padding-top: 20px;
  margin-top: 10px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
  padding: 0 10px;
}

.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.bar-wrapper {
  flex: 1;
  width: 100%;
  max-width: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.bar-fill {
  width: 100%;
  border-radius: 6px 6px 0 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: pointer;
}

.bar-fill.active-bar {
  background: linear-gradient(180deg, #dc5a1e 0%, #b84410 100%);
  box-shadow: 0 4px 12px rgba(220, 90, 30, 0.35);
}

.bar-fill.empty-bar {
  background: var(--admin-border-dark, #333333);
  opacity: 0.3;
}

.bar-fill:hover {
  transform: scaleY(1.05);
  filter: brightness(1.15);
}

.bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.bar-fill:hover .bar-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-12px);
}

.tooltip-date {
  font-weight: 700;
  color: #aaa;
  margin-bottom: 2px;
  font-size: 10px;
  text-transform: uppercase;
}

.tooltip-sales {
  font-weight: 800;
  font-size: 13px;
  color: #dc5a1e;
}

.tooltip-count {
  font-size: 10px;
  color: #ddd;
  margin-top: 2px;
}

.bar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--admin-text-muted);
  margin-top: 10px;
  text-transform: uppercase;
}

.dashboard-side-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.control-panel {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 24px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.control-panel h3 {
  font-size: 16px;
  color: var(--admin-text);
  margin-bottom: 16px;
  font-weight: 700;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.control-btn {
  background-color: var(--admin-surface-hover);
  border: 1px solid var(--admin-border);
  color: var(--admin-text-muted);
  border-radius: 8px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.control-btn:hover {
  background-color: var(--admin-border);
  color: var(--admin-text);
}

.control-btn span {
  font-size: 12px;
  font-weight: 600;
}

.recent-transactions {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 24px;
  flex: 1;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header-row h3 {
  font-size: 16px;
  color: var(--admin-text);
  font-weight: 700;
}

.see-all {
  font-size: 12px;
  color: var(--admin-accent);
  text-decoration: none;
  font-weight: 600;
}

.see-all:hover {
  text-decoration: underline;
}

.transaction-list {
  display: flex;
  flex-direction: column;
}

.transaction-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--admin-border);
}

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

.tx-icon {
  color: #16a34a;
  background-color: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

body.dark-mode .tx-icon {
  color: #4ade80;
  background-color: rgba(74, 222, 128, 0.1);
}

.tx-details {
  flex: 1;
}

.tx-details h4 {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.tx-status {
  font-size: 11px;
  color: var(--admin-text-muted);
}

.tx-amount {
  color: #16a34a;
  font-weight: 700;
  font-size: 13px;
}

body.dark-mode .tx-amount {
  color: #4ade80;
}

@media (max-width: 1200px) {
  .metric-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .metric-cards {
    grid-template-columns: 1fr;
  }
}

.pos-page {
  display: flex;
  height: calc(100vh - 73px);
  /* 100vh minus topbar height approx */
  margin: -24px;
  /* counteract AdminLayout padding */
}

/* LEFT COLUMN - CATALOG */

.pos-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  background-color: var(--admin-bg);
}

.pos-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 24px;
  padding-top: 4px;
  padding-bottom: 12px;
  min-height: 48px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
}

.pos-filters::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.pos-filter-btn {
  background-color: var(--admin-surface, #1e1e1e);
  border: 1px solid var(--admin-border-dark, #333333);
  color: var(--admin-text-muted, #a0a0a0);
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  box-sizing: border-box;
}

.pos-filter-btn.active {
  background-color: var(--admin-accent, #dc5a1e);
  border-color: var(--admin-accent, #dc5a1e);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 90, 30, 0.4);
}

.pos-filter-btn:hover:not(.active) {
  background-color: var(--admin-surface-hover, #2a2a2a);
  border-color: var(--admin-border-dark, #444444);
  color: var(--admin-text, #ffffff);
}

.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.pos-product-card {
  background-color: var(--admin-surface);
  border-radius: 2px;
  border: 1px solid var(--admin-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.pos-product-card:hover {
  transform: translateY(-2px);
  border-color: var(--admin-accent);
}

.pos-card-image {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.pos-card-image.bg-gray {
  background-color: var(--admin-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pos-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.pos-stock-badge,
.pos-sold-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 4px 6px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.pos-stock-badge {
  background-color: #111111;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.pos-sold-badge {
  background-color: #ef4444;
  color: #fff;
}

.pos-card-info {
  padding: 16px;
}

.pos-card-info h4 {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--admin-text);
  letter-spacing: 0.5px;
}

.pos-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pos-card-footer .sku {
  font-size: 11px;
  color: var(--admin-text-muted);
  font-weight: 600;
}

.pos-card-footer .price {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--admin-accent);
}

/* RIGHT COLUMN - CART SIDEBAR */

.pos-cart-sidebar {
  width: 340px;
  background-color: var(--admin-surface);
  border-left: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--admin-text);
}

.clear-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.clear-btn:hover {
  color: #ef4444;
}

.pos-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px;
}

.pos-cart-item {
  padding: 16px 0;
  border-bottom: 1px dashed var(--admin-border);
}

.pos-cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.pos-cart-item-row h4 {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--admin-text);
  margin-right: 8px;
}

.pos-item-price {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--admin-text);
}

.pos-cart-item-meta {
  font-size: 10px;
  color: var(--admin-text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.pos-cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty-control {
  display: flex;
  align-items: center;
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
  border-radius: 4px;
}

.qty-control button {
  background: none;
  border: none;
  color: var(--admin-text);
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-control button:hover {
  background-color: var(--admin-surface-hover);
}

.qty-control span {
  font-size: 13px;
  font-weight: 700;
  color: var(--admin-text);
  width: 24px;
  text-align: center;
}

.remove-item-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 4px;
}

.remove-item-btn:hover {
  color: #ef4444;
}

.cart-footer {
  padding: 24px 20px;
  background-color: var(--admin-surface-hover);
  border-top: 1px solid var(--admin-border);
}

.section-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--admin-text-muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.payment-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.pay-btn {
  flex: 1;
  background-color: transparent;
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text-muted);
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-btn.active {
  border-color: var(--admin-accent);
  color: var(--admin-accent);
  background-color: rgba(198, 106, 43, 0.05);
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--admin-text-muted);
}

.summary-divider {
  border-top: 1px dashed var(--admin-border);
  margin: 4px 0;
}

.total-row {
  color: var(--admin-text);
  font-size: 16px;
  font-weight: 800;
  align-items: flex-end;
  margin-top: 8px;
}

.total-amount {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 32px;
  color: var(--admin-accent);
  line-height: 1;
}

.charge-btn {
  width: 100%;
  background-color: var(--admin-accent);
  color: #fff;
  border: none;
  padding: 16px;
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.charge-btn:hover {
  background-color: #a85a24;
}

@media (max-width: 1024px) {
  .pos-page {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 73px);
  }

  .pos-main {
    height: 55vh;
    flex: none;
  }

  .pos-cart-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--admin-border);
    height: auto;
    flex: none;
  }

  .cart-items {
    max-height: 300px;
  }
}

@media (max-width: 576px) {
  .pos-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .pos-card-image {
    height: 120px;
  }
  
  .pos-card-info {
    padding: 12px;
  }
  
  .pos-card-info h4 {
    font-size: 14px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .pos-card-price,
  .pos-card-footer .price {
    font-size: 15px;
  }
  
  .pos-card-sku,
  .pos-card-footer .sku {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .pos-card-footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 4px;
  }
}

.products-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.products-header h2 {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--admin-text);
  letter-spacing: 0px;
}

.page-titles p {
  color: var(--admin-text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.products-header-actions {
  display: flex;
  gap: 12px;
}

.add-product-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--admin-accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-product-btn:hover {
  background-color: #a85a24;
}

.products-table-container {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow: hidden;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
}

.products-table th {
  background-color: var(--admin-bg);
  color: var(--admin-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border-dark);
}

.products-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

.products-table tr:last-child td {
  border-bottom: none;
}

.products-table tr:hover td {
  background-color: var(--admin-surface-hover);
}

.table-img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
}

.table-product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.table-product-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text);
}

.table-sku {
  font-size: 11px;
  color: var(--admin-text-muted);
  font-family: monospace;
}

.table-barcode {
  background-color: #fff; /* Barcodes need high contrast */
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  mix-blend-mode: screen; /* In dark mode, this might look weird, so let's just make it white bg */
}

body.dark-mode .table-barcode {
  background-color: #eee;
}

.table-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text);
}

/* Product Form Modal - Full Screen with Internal Scroll */

.product-modal.xl-modal {
  width: 92vw;
  max-width: 1300px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  background-color: var(--admin-surface, #ffffff);
  border: 1px solid var(--admin-border, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  margin: auto;
  overflow: hidden;
}

.product-modal.xl-modal .modal-header {
  padding: 18px 28px;
  border-bottom: 1px solid var(--admin-border, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background-color: var(--admin-bg, #f4f0e6);
  border-radius: 16px 16px 0 0;
}

.product-modal.xl-modal .modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--admin-text, #1d1d1d);
}

.product-modal.xl-modal .modal-body,
.product-modal.xl-modal .modal-scrollable {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  min-height: 0;
}

/* WYSIWYG PDP Live Preview */

.live-pdp-preview {
  padding: 32px 40px;
  max-width: none;
  margin: 0 auto;
}

.preview-breadcrumbs {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.invisible-select {
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(0,0,0,0.3);
  font-family: inherit;
  font-size: inherit;
  color: #666;
  text-transform: uppercase;
  outline: none;
  cursor: pointer;
  margin-left: 4px;
}

.pdp-top-section-preview {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 40px;
  margin-bottom: 40px;
}

.pdp-gallery-col-preview {
  display: flex;
  gap: 20px;
}

.pdp-thumbnails-preview {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 80px;
}

.pdp-thumb-preview {
  width: 80px;
  height: 80px;
  border: 1px solid #eee;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.pdp-thumb-preview.active {
  border-color: #1a1a1a;
}

.pdp-thumb-preview img {
  width: 80%;
  height: 80%;
  object-fit: cover;
}

.upload-thumb-preview {
  border: 1px dashed #ccc;
  background: transparent;
}

.upload-thumb-preview:hover {
  border-color: var(--admin-accent);
  color: var(--admin-accent);
}

.pdp-main-image-wrapper-preview {
  flex: 1;
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.pdp-main-image-preview {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.pdp-info-col-preview {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
}

.invisible-input {
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(0,0,0,0.2);
  outline: none;
  font-family: inherit;
  margin-bottom: 15px;
}

.invisible-input:focus {
  border-bottom: 1px solid #1a1a1a;
}

.pdp-title-preview {
  font-size: 2.2rem;
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  width: 100%;
}

.price-input-wrapper {
  display: flex;
  align-items: baseline;
  margin-bottom: 30px;
}

.currency-symbol {
  font-size: 1.1rem;
  color: #666;
  margin-right: 4px;
}

.pdp-price-preview {
  font-size: 1.1rem;
  color: #666;
  width: 150px;
}

.pdp-size-section-preview {
  margin-bottom: 30px;
}

.size-header-preview {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #1a1a1a;
}

.pdp-size-grid-preview {
  display: flex;
  gap: 10px;
}

.pdp-size-btn-preview {
  width: 45px;
  height: 45px;
  border: 1px solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: #ccc;
  cursor: pointer;
  background: transparent;
}

.pdp-size-btn-preview.selected {
  border-color: #1a1a1a;
  color: #1a1a1a;
  border-width: 2px;
  font-weight: bold;
}

.stock-input-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.stock-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
}

.small-number-input {
  width: 80px;
  text-align: center;
  margin-bottom: 0 !important;
}

.pdp-actions-preview {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.pdp-qty-selector-preview {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  width: 120px;
  justify-content: space-between;
  height: 50px;
}

.pdp-qty-selector-preview button {
  background: none;
  border: none;
  width: 40px;
  color: #ccc;
}

.pdp-qty-selector-preview span {
  font-weight: 600;
  color: #ccc;
}

.add-to-cart-btn-preview {
  flex: 1;
  height: 50px;
  background-color: #1a1a1a;
  color: #fff;
  border: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.5;
}

.pdp-accordions-preview {
  border-top: 1px solid #ddd;
}

.accordion-preview {
  border-bottom: 1px solid #ddd;
}

.accordion-header-preview {
  padding: 20px 0;
  font-size: 0.9rem;
  color: #1a1a1a;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.invisible-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(0,0,0,0.2);
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: #666;
  resize: vertical;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.invisible-textarea:focus {
  border-bottom: 1px solid #1a1a1a;
}

/* Aesthetic Details Live Preview */

.aesthetic-upload-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}

.aesthetic-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}

.aesthetic-upload-wrapper:hover .aesthetic-upload-overlay {
  opacity: 1;
}

.aesthetic-upload-overlay span {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.preview-specs-container {
  background-color: #fff;
  border: 1px solid var(--admin-border);
  padding: 0;
  border-radius: 0;
  color: #1a1a1a;
  margin-top: 10px;
}

body.dark-mode .preview-specs-container {
  background-color: #1a1a1a;
  border-color: #333;
  color: #fff;
}

.specs-split-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.specs-image-col-preview {
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.specs-large-img-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specs-text-col-preview {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.preview-specs-container .specs-highlight-text-preview {
  font-size: 1.4rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 40px;
  line-height: 1.4;
  text-transform: uppercase;
}

body.dark-mode .preview-specs-container .specs-highlight-text-preview {
  color: #fff;
}

.preview-spec-block {
  margin-bottom: 30px;
}

.preview-spec-block h4 {
  font-size: 1.2rem;
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  color: #1a1a1a;
  margin-bottom: 15px;
  text-transform: uppercase;
}

body.dark-mode .preview-spec-block h4 {
  color: #fff;
}

.preview-spec-block ul {
  padding-left: 15px;
  color: #666;
  font-size: 0.9rem;
  list-style-type: disc;
}

body.dark-mode .preview-spec-block ul {
  color: #ccc;
}

.preview-li-input {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  position: relative;
}

.preview-li-input input {
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
  color: #666;
  font-size: 0.9rem;
  width: 90%;
  outline: none;
  padding: 2px 0;
  font-family: inherit;
  margin: 0 !important;
}

body.dark-mode .preview-li-input input {
  border-bottom-color: rgba(255, 255, 255, 0.3);
  color: #ccc;
}

.preview-li-input input::placeholder {
  color: rgba(0, 0, 0, 0.3);
  font-style: italic;
}

body.dark-mode .preview-li-input input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.preview-li-input input:focus {
  border-bottom: 1px solid #1a1a1a;
  color: #1a1a1a;
}

body.dark-mode .preview-li-input input:focus {
  border-bottom-color: #fff;
  color: #fff;
}

.preview-li-input .remove-item-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  margin-left: 4px;
  opacity: 0.5;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}

.preview-li-input:hover .remove-item-btn {
  opacity: 1;
}

.add-preview-btn {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #666;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 10px;
  margin-left: -15px;
  transition: all 0.2s;
}

body.dark-mode .add-preview-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ccc;
}

.add-preview-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
  border-color: #1a1a1a;
}

body.dark-mode .add-preview-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.xl-modal {
  width: 1200px;
  max-width: 95vw;
  margin: auto;
}

.stock-pill {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.stock-pill.low-stock {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.category-modal {
  width: 400px;
  padding-bottom: 10px;
}

.add-cat-form {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: stretch;
}

.add-cat-form input {
  flex: 1;
  margin-bottom: 0 !important;
  padding: 10px 14px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  max-height: 240px;
  overflow-y: auto;
  background-color: var(--admin-surface);
}

.cat-list li {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 16px;
  border-bottom: 1px solid var(--admin-border);
  transition: background-color 0.2s;
}

.cat-list li:last-child {
  border-bottom: none;
}

.cat-list li:hover {
  background-color: var(--admin-surface-hover);
}

.cat-list li span {
  font-weight: 500;
  color: var(--admin-text);
  font-size: 14px;
}

.add-cat-form input:focus {
  border-color: var(--accent-primary);
}

.add-cat-form .save-modal-btn {
  margin: 0;
  padding: 0 20px;
  border-radius: 6px;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn.edit {
  color: var(--admin-text-muted);
}

.action-btn.edit:hover {
  background-color: var(--admin-bg);
  color: var(--admin-text);
}

.action-btn.delete {
  color: var(--admin-text-muted);
}

.action-btn.delete:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.empty-table {
  text-align: center;
  color: var(--admin-text-muted);
  padding: 40px !important;
}

/* Modals */

.form-row {
  display: flex;
  gap: 16px;
}

.form-group.half {
  flex: 1;
}

.live-barcode-preview {
  margin-top: 8px;
  padding: 12px;
  background-color: #fff;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  border: 1px dashed var(--admin-border-dark);
}

/* Image Upload Grid */

.image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.img-preview {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid var(--admin-border);
}

.main-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--admin-accent);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.remove-img-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.upload-box {
  width: 120px;
  height: 120px;
  border: 2px dashed var(--admin-border-dark);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--admin-text-muted);
  transition: all 0.2s;
  background: var(--admin-surface);
}

.upload-box:hover {
  border-color: var(--admin-accent);
  color: var(--admin-accent);
}

.upload-box span {
  font-size: 12px;
  margin-top: 8px;
  font-weight: 500;
}

.custom-breadcrumb-select-wrapper {
  position: relative;
  display: inline-block;
}

.breadcrumb-dropdown-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #666;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
  text-transform: uppercase;
}

.breadcrumb-dropdown-btn:hover {
  background: rgba(0,0,0,0.05);
  color: #111;
}

.breadcrumb-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 100;
  padding: 6px;
  display: flex;
  flex-direction: column;
  max-height: 200px;
  overflow-y: auto;
}

.breadcrumb-dropdown-item {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  text-transform: uppercase;
}

.breadcrumb-dropdown-item:hover {
  background: #f5f5f5;
  color: #111;
}

.breadcrumb-dropdown-item.selected {
  background: #1a1a1a;
  color: #fff;
}

/* Sold Out Marketing Toggle Button */

.action-btn.soldout-toggle-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid var(--admin-border, #ddd);
  background-color: var(--admin-surface, #fff);
  color: var(--admin-text-muted, #777);
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn.soldout-toggle-btn:hover {
  background-color: var(--admin-surface-hover, #f0f0f0);
  color: var(--admin-text, #111);
  border-color: var(--admin-border-dark, #aaa);
}

.action-btn.soldout-toggle-btn.is-soldout {
  background-color: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.action-btn.soldout-toggle-btn.is-soldout:hover {
  background-color: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

.soldout-btn-text {
  font-size: 10px;
}

.preview-breadcrumbs {
  display: flex;
  align-items: center;
  font-family: inherit;
  margin-bottom: 24px;
}

.breadcrumb-link {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.breadcrumb-separator {
  font-size: 11px;
  font-weight: 600;
  color: #ccc;
  margin: 0 6px;
}

/* Dark Mode Overrides for Live PDP Preview Modal */

body.dark-mode .modal-body {
  background-color: var(--admin-surface);
  color: var(--admin-text);
}

body.dark-mode .live-pdp-preview {
  color: var(--admin-text);
}

body.dark-mode .pdp-title-preview,
body.dark-mode .size-header-preview,
body.dark-mode .stock-label,
body.dark-mode .accordion-header-preview {
  color: #fff;
}

body.dark-mode .pdp-price-preview,
body.dark-mode .currency-symbol {
  color: #ccc;
}

body.dark-mode .pdp-thumb-preview {
  background-color: #2a2a2a;
  border-color: #444;
}

body.dark-mode .pdp-thumb-preview.active {
  border-color: #fff;
}

body.dark-mode .upload-thumb-preview {
  border-color: #555;
  color: #aaa;
}

body.dark-mode .invisible-input {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .invisible-input:focus {
  border-bottom-color: #fff;
}

body.dark-mode .pdp-size-btn-preview {
  border-color: #444;
  color: #888;
}

body.dark-mode .pdp-size-btn-preview.selected {
  border-color: #fff;
  color: #fff;
}

body.dark-mode .pdp-qty-selector-preview {
  border-color: #444;
}

body.dark-mode .add-to-cart-btn-preview {
  background-color: #fff;
  color: #1a1a1a;
}

body.dark-mode .pdp-accordions-preview,
body.dark-mode .accordion-preview {
  border-color: #444;
}

body.dark-mode .invisible-textarea {
  color: #ccc;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .invisible-textarea:focus {
  border-bottom-color: #fff;
}

body.dark-mode .breadcrumb-link {
  color: #aaa;
}

body.dark-mode .breadcrumb-dropdown-btn {
  color: #aaa;
}

body.dark-mode .breadcrumb-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.dark-mode .breadcrumb-dropdown-menu {
  background: #2a2a2a;
  border-color: #444;
}

body.dark-mode .breadcrumb-dropdown-item {
  color: #ccc;
}

body.dark-mode .breadcrumb-dropdown-item:hover {
  background: #333;
  color: #fff;
}

body.dark-mode .breadcrumb-dropdown-item.selected {
  background: #fff;
  color: #1a1a1a;
}

/* Size Guide Section */

.metric-input-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.metric-input-preview {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex: 1;
  font-size: 13px;
  background: #fff;
  color: #1a1a1a;
  outline: none;
}

.add-metric-btn-preview {
  padding: 6px 12px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.size-guide-table-wrapper {
  overflow-x: auto;
  border: 1px solid #eee;
  border-radius: 4px;
}

.size-guide-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.size-guide-admin-table th {
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  padding: 8px;
  background: #f9f9f9;
  text-align: center;
  color: #1a1a1a;
}

.size-guide-admin-table th:first-child {
  text-align: center;
}

.metric-header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.remove-metric-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.size-name-cell {
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  padding: 8px;
  font-weight: bold;
  color: #1a1a1a;
  text-align: center;
}

.size-guide-admin-table td {
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  padding: 0;
}

.size-guide-input-preview {
  width: 100%;
  padding: 8px;
  border: none;
  background: transparent;
  text-align: center;
  box-sizing: border-box;
  color: #1a1a1a;
  outline: none;
}

.size-guide-empty-state {
  font-size: 11px;
  color: #888;
  text-align: center;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
}

/* Size Guide Dark Mode Overrides */

body.dark-mode .metric-input-preview {
  background: transparent;
  border-color: #444;
  color: #fff;
}

body.dark-mode .add-metric-btn-preview {
  background: #fff;
  color: #1a1a1a;
}

body.dark-mode .size-guide-table-wrapper {
  border-color: #444;
}

body.dark-mode .size-guide-admin-table th {
  background: #2a2a2a;
  border-color: #444;
  color: #fff;
}

body.dark-mode .size-name-cell {
  border-color: #444;
  color: #fff;
}

body.dark-mode .size-guide-admin-table td {
  border-color: #444;
}

body.dark-mode .size-guide-input-preview {
  color: #ccc;
}

body.dark-mode .size-guide-empty-state {
  background: #2a2a2a;
  color: #aaa;
}

/* Responsive Styles */

@media (max-width: 992px) {
  .products-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px;
  }

  .products-header-actions {
    display: flex;
    flex-direction: column; /* Stack buttons on smaller screens to prevent text squish */
    gap: 12px;
    width: 100%;
  }

  .products-header-actions button {
    width: 100%;
    justify-content: center;
  }

  .products-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .products-table {
    min-width: 700px !important;
  }

  /* Product Modal Responsiveness */
  .pdp-top-section-preview {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pdp-gallery-col-preview {
    flex-direction: column-reverse;
  }

  .pdp-thumbnails-preview {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .pdp-thumb-preview {
    width: 60px;
    height: 80px;
    flex-shrink: 0;
  }

  .pdp-size-grid-preview {
    flex-wrap: wrap;
  }

  .modal-footer {
    flex-direction: column;
    justify-content: stretch;
    gap: 12px;
  }

  .modal-footer button {
    width: 100%;
    margin-left: 0;
  }
  
  .sku-hint {
    text-align: center;
    margin-bottom: 8px;
    width: 100%;
  }
  
  .stock-input-wrapper {
    flex-wrap: wrap;
  }
}

.orders-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.orders-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 12px 20px;
  border-radius: 8px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-text-muted);
}

.search-box input {
  background: none;
  border: none;
  color: var(--admin-text);
  font-size: 14px;
  outline: none;
  width: 250px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group select {
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.orders-table-container {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow: hidden;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th {
  background-color: var(--admin-bg);
  color: var(--admin-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border-dark);
}

.orders-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

.orders-table tr:last-child td {
  border-bottom: none;
}

.orders-table tr:hover td {
  background-color: var(--admin-surface-hover);
}

.order-id {
  font-family: monospace;
  font-weight: 600;
  color: var(--admin-text);
  font-size: 14px;
}

.order-date {
  font-size: 13px;
  color: var(--admin-text-muted);
}

.order-total {
  font-weight: 700;
  color: var(--admin-text);
  font-size: 14px;
}

.source-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.source-badge.pos {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6; /* Blue */
}

.source-badge.online {
  background-color: rgba(168, 90, 36, 0.1);
  color: var(--admin-accent); /* Orange/Brand */
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.completed {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-badge.pending {
  background-color: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.view-details-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--admin-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.view-details-btn:hover {
  text-decoration: underline;
}

/* Order Modal specifics */

.order-modal {
  background-color: var(--admin-surface);
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border: 1px solid var(--admin-border);
}

.modal-title-group h3 {
  font-size: 20px;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.order-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background-color: var(--admin-bg);
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 11px;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.meta-value {
  font-size: 14px;
  color: var(--admin-text);
  font-weight: 500;
}

.order-items-list h4 {
  font-size: 14px;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--admin-border-dark);
  padding-bottom: 8px;
}

.receipt-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

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

.receipt-item-name {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.receipt-item-name .qty {
  font-weight: 700;
  color: var(--admin-text);
}

.name-sku {
  display: flex;
  flex-direction: column;
}

.name-sku span {
  font-size: 14px;
  color: var(--admin-text);
  font-weight: 500;
}

.name-sku small {
  font-size: 11px;
  color: var(--admin-text-muted);
  font-family: monospace;
}

.receipt-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text);
}

.order-summary-box {
  background-color: var(--admin-bg);
  padding: 16px;
  border-radius: 6px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--admin-text-muted);
  margin-bottom: 8px;
}

.summary-row.grand-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--admin-border-dark);
  font-size: 18px;
  font-weight: 700;
  color: var(--admin-text);
}

.print-footer {
  justify-content: flex-end;
}

/* Responsive Styles */

@media (max-width: 992px) {
  .orders-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .orders-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .filter-group {
    width: 100%;
    justify-content: flex-end;
  }

  .orders-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .orders-table {
    min-width: 800px !important;
  }
}

.discount-page {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.discount-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.discount-header .page-titles h2 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.discount-header .page-titles p {
  color: var(--admin-text-muted);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.promo-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 12px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--admin-surface, #ffffff);
  border: 1px solid var(--admin-border, #e2e8f0);
  color: var(--admin-text-muted, #64748b);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background-color: var(--admin-surface-hover, #f8fafc);
  color: var(--admin-text, #1e293b);
}

.tab-btn.active {
  background-color: var(--admin-text, #0f172a);
  color: var(--admin-bg, #ffffff);
  border-color: var(--admin-text, #0f172a);
}

.table-container {
  background-color: var(--admin-surface, #ffffff);
  border-radius: 12px;
  border: 1px solid var(--admin-border, #e2e8f0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  overflow-x: auto;
  margin-top: 12px;
}

.promo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.promo-table th {
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--admin-text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--admin-surface-hover, #f8fafc);
  border-bottom: 1px solid var(--admin-border, #e2e8f0);
  white-space: nowrap;
}

.promo-table td {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--admin-text, #1e293b);
  border-bottom: 1px solid var(--admin-border, #e2e8f0);
  vertical-align: middle;
}

.promo-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.promo-code {
  background-color: rgba(235, 255, 0, 0.1);
  color: var(--admin-accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 1px;
}

.date-range {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.date-range span:last-child {
  color: var(--admin-text-muted);
}

.status-toggle {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.status-toggle.active {
  background-color: rgba(0, 200, 83, 0.1);
  color: #00c853;
  border-color: rgba(0, 200, 83, 0.2);
}

.status-toggle.inactive {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--admin-text-muted);
  border-color: var(--admin-border);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.action-buttons button {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.action-buttons button:hover {
  background-color: var(--admin-bg);
  color: var(--admin-text);
}

.action-buttons button.delete:hover {
  color: #ff3333;
}

.empty-state {
  text-align: center;
  padding: 40px !important;
  color: var(--admin-text-muted);
}

/* Responsive Styles */

@media (max-width: 992px) {
  .discount-page {
    padding: 16px;
  }

  .discount-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .header-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }

  .header-actions button {
    flex: 1;
    min-width: 140px;
    justify-content: center;
    padding: 10px;
  }

  .promo-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none; /* Firefox */
  }
  
  .promo-tabs::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
  }

  .tab-btn {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: var(--admin-bg-light);
  }
  
  .tab-btn.active {
    background-color: var(--admin-text);
    color: var(--admin-bg);
  }

  .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .promo-table {
    min-width: 800px !important;
  }
}

.campaign-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px);
}

.campaign-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.campaign-titles h2 {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--admin-text);
  letter-spacing: 0px;
}

.campaign-titles p {
  color: var(--admin-text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.add-block-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 8px 16px;
  border-radius: 6px;
}

.add-block-menu span {
  font-size: 12px;
  font-weight: 700;
  color: var(--admin-text-muted);
  margin-right: 8px;
}

.add-mini-btn {
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.add-mini-btn:hover {
  background-color: var(--admin-accent);
  color: #fff;
  border-color: var(--admin-accent);
}

.save-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--admin-accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.save-btn:hover {
  background-color: #a85a24;
}

.campaign-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Canvas */

.builder-canvas {
  flex: 1;
  background-color: #fff; /* White bg for preview accuracy */
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* Fix for live components rendered inside the builder */

.builder-canvas .hero {
  height: 400px !important;
  min-height: 400px !important;
}

.builder-canvas .banner-section {
  margin-bottom: 20px !important;
}

.builder-canvas .banner-container {
  height: 300px !important;
  min-height: 300px !important;
}

.builder-canvas .hero-content h2 {
  font-size: 2.5rem !important;
}

/* Match body dark-mode for accurate preview if needed */

body.dark-mode .builder-canvas {
  background-color: #000;
}

.blocks-container {
  display: flex;
  flex-direction: column;
}

.empty-canvas {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--admin-text-muted);
  text-align: center;
}

/* WYSIWYG Block */

.wysiwyg-block {
  position: relative;
  /* Prevent interaction with child links/buttons while dragging/editing */
}

.wysiwyg-block.dragging {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.wysiwyg-content {
  pointer-events: none; /* Make children non-interactive in builder */
}

.wysiwyg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.05);
  border: 2px dashed var(--admin-accent);
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 16px;
  pointer-events: auto; /* Allow interaction with overlay buttons */
}

.wysiwyg-controls {
  display: flex;
  gap: 8px;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.control-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.control-btn:hover {
  background-color: var(--admin-bg);
  color: var(--admin-text);
}

.control-btn.drag-handle {
  cursor: grab;
}

.control-btn.drag-handle:active {
  cursor: grabbing;
}

.control-btn.delete-btn:hover {
  color: #ff4444;
  background-color: rgba(239, 68, 68, 0.1);
}

/* Responsive Styles */

@media (max-width: 992px) {
  .campaign-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .add-block-menu {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .save-btn {
    width: 100%;
    justify-content: center;
  }

  .campaign-layout {
    flex-direction: column;
    height: auto;
  }

  .builder-canvas {
    height: 50vh;
  }
}

/* Modals */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 20px;
}

.edit-modal {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  width: 500px;
  max-width: 90vw;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  margin: auto;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 16px;
  color: var(--admin-text);
  font-weight: 700;
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
}

.close-modal-btn:hover {
  color: var(--admin-text);
}

.modal-body {
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cancel-btn {
  background: transparent;
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text);
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.save-modal-btn {
  background: var(--admin-accent);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.save-modal-btn:hover {
  background: #a85a24;
}

/* Forms */

.config-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group.row-align {
  flex-direction: row;
  align-items: center;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--admin-text-muted);
  letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group select {
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--admin-accent);
}

.help-text {
  font-size: 11px;
  color: var(--admin-text-muted);
}

.customers-page {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.customers-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.customers-header .page-titles h2 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.customers-header .page-titles p {
  color: var(--admin-text-muted);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--admin-text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
}

.metric-icon.active-icon {
  background-color: rgba(0, 200, 83, 0.1);
  color: #00c853;
}

.metric-info h3 {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.metric-info .metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--admin-text);
  margin: 0;
}

.customers-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-text-muted);
}

.search-box input {
  background: none;
  border: none;
  color: var(--admin-text);
  font-size: 14px;
  outline: none;
  width: 250px;
}

.filter-group select {
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.table-container {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow-x: auto;
}

.customers-table {
  width: 100%;
  border-collapse: collapse;
}

.customers-table th,
.customers-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
}

.customers-table th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.customers-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.customer-info {
  display: flex;
  flex-direction: column;
}

.customer-id {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  font-family: monospace;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spent-amount {
  font-weight: 600;
  color: var(--admin-accent);
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.active {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-badge.inactive {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--admin-text-muted);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.action-buttons button {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.action-buttons button:hover {
  background-color: var(--admin-bg);
  color: var(--admin-text);
}

.action-buttons button.delete:hover {
  color: #ff3333;
}

.empty-state {
  text-align: center;
  padding: 40px !important;
  color: var(--admin-text-muted);
}

/* Responsive Styles */

@media (max-width: 992px) {
  .customers-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .customers-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .filter-group {
    width: 100%;
    justify-content: flex-end;
  }

  .customers-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .customers-table {
    min-width: 800px !important;
  }
}

.reports-page {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.reports-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.reports-header .page-titles h2 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.reports-header .page-titles p {
  color: var(--admin-text-muted);
}

.reports-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 12px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--admin-text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background-color: var(--admin-bg-light);
  color: var(--admin-text);
}

.tab-btn.active {
  background-color: var(--admin-accent);
  color: #000;
}

.tab-content {
  animation: fadeInReport 0.3s ease;
}

@keyframes fadeInReport {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Overview Tab */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--admin-border-dark);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--admin-text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
}

.metric-icon.highlight {
  background-color: var(--admin-accent-bg);
  color: var(--admin-accent);
}

.metric-info h3 {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.metric-info .metric-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--admin-text);
  margin: 0;
}

.report-section {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.section-header {
  margin-bottom: 20px;
}

.section-header h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.section-header p {
  font-size: 0.9rem;
  color: var(--admin-text-muted);
}

/* Channel Split */

.channel-bar-wrapper {
  display: flex;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: var(--admin-bg);
}

.channel-bar {
  height: 100%;
  transition: width 1s ease-in-out;
}

.channel-bar.pos-bar {
  background-color: #3b82f6; /* Blue for POS */
}

.channel-bar.online-bar {
  background-color: var(--admin-accent); /* Accent for Online */
}

.channel-legend {
  display: flex;
  gap: 32px;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
}

.legend-dot.pos { background-color: #3b82f6; }

.legend-dot.online { background-color: var(--admin-accent); }

.legend-text {
  display: flex;
  flex-direction: column;
}

.legend-text strong {
  font-size: 0.95rem;
  color: var(--admin-text);
}

.legend-text span {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

/* Products Tab */

.product-reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.report-card {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.report-card.full-width {
  grid-column: 1 / -1;
}

.card-header {
  margin-bottom: 20px;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.title-with-icon h3 {
  font-size: 1.1rem;
}

.card-header p {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.9rem;
}

.report-table th {
  color: var(--admin-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.report-table tr:last-child td {
  border-bottom: none;
}

.product-name-sku {
  display: flex;
  flex-direction: column;
}

.product-name-sku strong {
  font-weight: 500;
  color: var(--admin-text);
}

.product-name-sku span {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  font-family: monospace;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.success { background-color: rgba(34, 197, 94, 0.1); color: #22c55e; }

.badge.neutral { background-color: rgba(255, 255, 255, 0.05); color: var(--admin-text-muted); }

.badge.danger { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* Alerts Grid */

.alerts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.alert-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--admin-text);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--admin-border);
}

.alert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 6px;
  background-color: var(--admin-bg);
  border-left: 3px solid transparent;
}

.alert-item.danger {
  border-left-color: #ef4444;
}

.alert-item.warning {
  border-left-color: #eab308;
}

.alert-item-info {
  display: flex;
  flex-direction: column;
}

.alert-item-info strong {
  font-size: 0.9rem;
}

.alert-item-info span {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  font-family: monospace;
}

.alert-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
}

.alert-badge.warning {
  color: #eab308;
}

.empty-state {
  text-align: center;
  padding: 40px !important;
  color: var(--admin-text-muted);
}

/* Responsive Styles */

@media (max-width: 992px) {
  .reports-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .reports-tabs {
    flex-wrap: wrap;
  }

  .reports-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .date-filters {
    flex-wrap: wrap;
    width: 100%;
  }

  .export-btn {
    width: 100%;
    justify-content: center;
  }

  .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .sales-table, .inventory-table {
    min-width: 800px !important;
  }
}

.empty-state-small {
  color: var(--admin-text-muted);
  font-size: 0.85rem;
  font-style: italic;
  padding: 10px 0;
}

.activity-log-page {
  padding: 24px;
  max-width: 1500px;
  margin: 0 auto;
  color: var(--admin-text);
  animation: fadeInSlideUp 0.35s ease forwards;
}

@keyframes fadeInSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.header-title h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--admin-text);
  letter-spacing: -0.01em;
}

.header-title p {
  color: var(--admin-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.export-csv-btn, .clear-logs-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  box-sizing: border-box;
}

.export-csv-btn {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.export-csv-btn:hover:not(:disabled) {
  background: #10b981;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.clear-logs-btn {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.clear-logs-btn:hover:not(:disabled) {
  background: #ef4444;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.export-csv-btn:disabled, .clear-logs-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Metrics Grid */

.activity-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-box {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  overflow: hidden;
}

.metric-box:hover {
  transform: translateY(-3px);
  border-color: var(--admin-border-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon.total { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.metric-icon.pos { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.metric-icon.prod { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.metric-icon.sys { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.metric-content {
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-content h4 {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 4px 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-content span {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--admin-text);
  white-space: nowrap;
}

/* Toolbar & Category Pills */

.activity-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  color: var(--admin-text-muted);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.cat-pill:hover {
  border-color: var(--admin-border-dark);
  color: var(--admin-text);
  background-color: var(--admin-surface-hover);
}

.cat-pill.active {
  background-color: var(--admin-accent, #3b82f6);
  border-color: var(--admin-accent, #3b82f6);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(198, 106, 43, 0.25);
}

.pill-count {
  background-color: var(--admin-bg);
  color: var(--admin-text);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.cat-pill.active .pill-count {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.activity-toolbar .search-box {
  display: flex;
  align-items: center;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 0 16px;
  height: 42px;
  width: 320px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.activity-toolbar .search-box:focus-within {
  border-color: var(--admin-accent, #3b82f6);
  box-shadow: 0 0 0 3px var(--admin-accent-bg);
}

.activity-toolbar .search-box input {
  background: transparent;
  border: none;
  color: var(--admin-text);
  padding-left: 10px;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}

.activity-toolbar .search-box input::placeholder {
  color: var(--admin-text-muted);
}

/* Activity Table */

.activity-table-container {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.desktop-table-view {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.mobile-feed-view {
  display: none;
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 900px;
}

.activity-table th {
  background-color: var(--admin-bg);
  color: var(--admin-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-border-dark);
}

.activity-row {
  border-bottom: 1px solid var(--admin-border);
  transition: background-color 0.15s ease;
}

.activity-row:last-child {
  border-bottom: none;
}

.activity-row:hover td {
  background-color: var(--admin-surface-hover);
}

.activity-row td {
  padding: 16px 20px;
  vertical-align: middle;
}

.col-time {
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
}

.time-ico {
  color: #3b82f6;
  flex-shrink: 0;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
}

.badge-pos { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.badge-produk { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.badge-pesanan { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

.badge-promo { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.badge-pelanggan { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.badge-settings { background: var(--admin-bg); color: var(--admin-text); border: 1px solid var(--admin-border); }

.log-title {
  font-weight: 700;
  color: var(--admin-text);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.log-desc {
  color: var(--admin-text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border);
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-text);
  width: fit-content;
}

.status-ico {
  vertical-align: middle;
}

.status-ico.success { color: #10b981; }

.status-ico.warning { color: #f59e0b; }

.status-ico.info { color: #3b82f6; }

/* Empty State */

.no-activity-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--admin-text-muted);
}

.empty-ico-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-text-muted);
}

.no-activity-state h3 {
  font-size: 1.25rem;
  color: var(--admin-text);
  margin: 0 0 8px 0;
  font-weight: 700;
}

.no-activity-state p {
  font-size: 0.9rem;
  margin: 0;
}

/* ====================================================
   DESKTOP TABLET & MOBILE OPTIMIZATIONS
   ==================================================== */

@media (max-width: 1200px) {
  .activity-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .desktop-table-view {
    display: none !important;
  }

  .mobile-feed-view {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
  }

  .activity-table-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  /* Toolbar optimization */
  .activity-toolbar {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 14px;
  }

  .activity-toolbar .search-box {
    width: 100% !important;
    height: 44px;
  }

  /* Horizontal swipeable filter pills */
  .category-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .category-pills::-webkit-scrollbar {
    display: none;
  }

  .cat-pill {
    flex-shrink: 0;
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 8px 14px;
    font-size: 0.84rem;
  }

  /* Header adjustments */
  .activity-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .export-csv-btn, .clear-logs-btn {
    justify-content: center;
    width: 100%;
    padding: 11px 12px;
    font-size: 0.85rem;
  }
}

/* Mobile Log Card Styling */

.mobile-log-card {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.mobile-log-card:hover {
  border-color: var(--admin-border-dark);
  transform: translateY(-2px);
}

.mobile-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--admin-border);
  padding-bottom: 12px;
  gap: 8px;
}

.mobile-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  flex-shrink: 0;
}

.mobile-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.mobile-title-row .log-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--admin-text);
  margin: 0;
  line-height: 1.35;
}

.mobile-title-row .mobile-status {
  flex-shrink: 0;
  margin-top: 1px;
}

.mobile-card-content .log-desc {
  font-size: 0.84rem;
  color: var(--admin-text-muted);
  margin: 0;
  line-height: 1.45;
}

.mobile-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 4px;
}

/* Compact Mobile (iPhone & Small Devices) */

@media (max-width: 576px) {
  .activity-log-page {
    padding: 14px;
  }

  .header-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .header-title {
    gap: 12px;
  }

  .header-title h2 {
    font-size: 1.35rem;
  }

  .header-title p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .activity-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .metric-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 12px;
    gap: 10px;
  }

  .metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .metric-content h4 {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
  }

  .metric-content span {
    font-size: 1.15rem;
  }
}

.settings-page {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.settings-header .page-titles h2 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.settings-header .page-titles p {
  color: var(--admin-text-muted);
}

.settings-container {
  display: flex;
  gap: 30px;
  background-color: transparent;
}

/* Left Sidebar Navigation */

.settings-nav {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  color: var(--admin-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-align: left;
}

.settings-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--admin-text);
}

.settings-nav-item.active {
  background-color: var(--admin-surface);
  color: var(--admin-accent);
  border: 1px solid var(--admin-border);
}

.settings-nav-item.logout-btn {
  margin-top: auto;
  width: 100%;
  padding: 12px 20px;
  background-color: rgba(239, 68, 68, 0.12);
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  justify-content: flex-start;
}

.settings-nav-item.logout-btn:hover {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

/* Right Content Area */

.settings-content {
  flex: 1;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 30px;
  min-height: 500px;
}

.settings-section {
  display: flex;
  flex-direction: column;
}

.settings-section.fade-in {
  animation: fadeIn 0.3s ease;
}

.settings-section h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--admin-text);
}

.section-desc {
  color: var(--admin-text-muted);
  margin-bottom: 24px;
  font-size: 0.9rem;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--admin-border);
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.section-header-flex .section-desc {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Forms */

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group.half {
  flex: 1;
}

.form-group textarea {
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
  padding: 10px 12px;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  resize: vertical;
}

.form-group textarea:focus {
  border-color: var(--admin-accent);
}

/* Toggle Cards (Payments & Shipping) */

.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
}

.toggle-card {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow: hidden;
}

.toggle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: rgba(255, 255, 255, 0.02);
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle-info strong {
  font-size: 1rem;
}

.status-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-text.active { color: #22c55e; }

.status-text.inactive { color: var(--admin-text-muted); }

.toggle-card-body {
  padding: 16px 20px;
  border-top: 1px solid var(--admin-border);
  background-color: var(--admin-bg);
}

/* iOS Toggle Switch */

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--admin-border-dark);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

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

input:focus + .slider {
  box-shadow: 0 0 1px #22c55e;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Staff Table */

.settings-table {
  width: 100%;
  border-collapse: collapse;
}

.settings-table th,
.settings-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
}

.settings-table th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-badge {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--admin-text);
  font-weight: 500;
}

/* Responsive Styles */

@media (max-width: 992px) {
  .settings-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .header-actions button {
    width: 100%;
    justify-content: center;
  }

  .settings-container {
    flex-direction: column;
  }

  .settings-nav {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--admin-border);
  }
  
  .settings-nav-item {
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 20px;
    background-color: var(--admin-bg-light);
  }
  
  .settings-nav-item.active {
    background-color: var(--admin-text);
    color: var(--admin-bg);
  }

  .settings-content {
    padding: 20px 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .form-group {
    width: 100%;
  }

  .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .settings-table {
    min-width: 600px !important;
  }
}

:root {
  --burnt-orange: #C66A2B;
  --army-green: #4E5B45;
  --jet-black: #1D1D1D;
  --white: #F4F0E6;
  --pure-white: #FFFFFF;
  
  /* Theme Variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f6f7f8;
  --bg-tertiary: #f5f5f5;
  --text-primary: #000000;
  --text-secondary: #666666;
  --border-color: #e0e0e0;
  --btn-bg: #000000;
  --btn-text: #ffffff;
  --nav-scrolled-bg: #ffffff;
  --nav-scrolled-text: #000000;
  
  --collab-card-bg: #f8f9fa;
  --collab-btn-border: #1a2b4c;
  --collab-btn-text: #1a2b4c;

  /* Admin Theme Variables (Light) */
  --admin-bg: #f4f0e6; /* Base white from guidelines */
  --admin-bg-light: #ffffff;
  --admin-surface: #ffffff;
  --admin-surface-hover: #f9f9f9;
  --admin-border: #e2e8f0;
  --admin-border-dark: #cbd5e1;
  --admin-text: #1d1d1d;
  --admin-text-muted: #64748b;
  --admin-accent: var(--burnt-orange);
  --admin-accent-bg: rgba(198, 106, 43, 0.1);

  --font-primary: 'Barlow', sans-serif;
  --font-heading: 'Josefin Sans', sans-serif;
}

body.dark-mode {
  --bg-primary: #121212;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #242424;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #333333;
  --btn-bg: #ffffff;
  --btn-text: #000000;
  --nav-scrolled-bg: #1a1a1a;
  --nav-scrolled-text: #ffffff;
  
  --collab-card-bg: #1a1a1a;
  --collab-btn-border: #ffffff;
  --collab-btn-text: #ffffff;

  /* Admin Theme Variables (Dark) */
  --admin-bg: #121212;
  --admin-bg-light: #1e1e1e;
  --admin-surface: #1a1a1a;
  --admin-surface-hover: #222222;
  --admin-border: #333333;
  --admin-border-dark: #444444;
  --admin-text: #ffffff;
  --admin-text-muted: #888888;
  --admin-accent: var(--burnt-orange);
  --admin-accent-bg: rgba(198, 106, 43, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  background-color: transparent;
  border: 1px solid var(--pure-white);
  color: var(--pure-white);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--pure-white);
  color: var(--jet-black);
}

.btn-primary {
  background-color: var(--burnt-orange);
  border-color: var(--burnt-orange);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--burnt-orange);
}

/* Fix SweetAlert2 z-index over modals */

.swal2-container {
  z-index: 99999 !important;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background-color: transparent;
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: none;
  transition: all 0.3s ease;
}

body:not(.dark-mode) .navbar.light-page:not(.scrolled) .nav-links a,
body:not(.dark-mode) .navbar.light-page:not(.scrolled) .icon-btn,
body:not(.dark-mode) .navbar.light-page:not(.scrolled) .menu-btn {
  color: #1a1a1a;
}

body:not(.dark-mode) .navbar.light-page:not(.scrolled) .icon-btn:hover,
body:not(.dark-mode) .navbar.light-page:not(.scrolled) .nav-links a:hover {
  color: var(--burnt-orange, #dc5a1e);
}

.navbar.scrolled {
  background-color: var(--nav-scrolled-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  padding: 1rem 4rem;
}

.navbar.scrolled .nav-links a {
  color: var(--nav-scrolled-text);
}

.navbar.scrolled .nav-links a:hover {
  opacity: 0.7;
}

.navbar.scrolled .icon-btn {
  color: var(--nav-scrolled-text);
}

.navbar.scrolled .menu-btn {
  color: var(--nav-scrolled-text);
}

.navbar-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.menu-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-family: sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #e0e0e0;
}

.navbar-center {
  flex: 1;
  text-align: center;
  display: flex;
  justify-content: center;
}

.brand-logo img {
  max-height: 45px;
  width: auto;
  object-fit: contain;
}

.navbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  flex: 1;
}

.navbar .icon-btn {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: opacity 0.3s;
}

.navbar .icon-btn:hover {
  opacity: 0.7;
}

.cart-btn-wrapper {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--burnt-orange, #dc5a1e);
  color: #fff !important;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  border: 1px solid var(--bg-primary, #fff);
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

.mobile-logo-img {
  display: none;
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* Tablet & Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
  .navbar, .navbar.scrolled {
    padding: 1rem 2rem;
  }

  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: flex;
  }

  .desktop-logo {
    display: none;
  }
  
  .mobile-logo-img {
    display: block;
    max-height: 40px;
    width: auto;
  }

  .brand-logo img {
    max-height: 40px;
  }
}

/* Mobile Menu Drawer Styles */
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background-color: #fff;
  z-index: 200;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu-drawer.open {
  left: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.mobile-logo {
  max-height: 40px;
}

.close-btn {
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-links a {
  font-family: sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  color: #000;
  transition: color 0.3s;
}

.mobile-nav-links a:hover {
  color: #666;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 150;
}

@media (max-width: 600px) {
  .navbar, .navbar.scrolled {
    padding: 1rem 1rem;
  }
}

/* --- DESKTOP CATEGORY DROPDOWN --- */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-trigger-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chevron-icon {
  transition: transform 0.3s ease;
}

.chevron-icon.rotate {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 12px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 300;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

body.dark-mode .nav-dropdown-menu {
  background-color: #1a1a1a;
  border-color: #333;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.nav-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #222222 !important;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

body.dark-mode .nav-dropdown-menu li a {
  color: #eeeeee !important;
}

.nav-dropdown-menu li a:hover {
  background-color: #f3f4f6;
  color: var(--burnt-orange, #dc5a1e) !important;
}

body.dark-mode .nav-dropdown-menu li a:hover {
  background-color: #2a2a2a;
  color: var(--burnt-orange, #dc5a1e) !important;
}

.dropdown-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 6px 0;
}

body.dark-mode .dropdown-divider {
  background-color: #333333;
}

/* --- MOBILE DRAWER SUBMENU --- */
.mobile-dropdown-item {
  display: flex;
  flex-direction: column;
}

.mobile-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: #000;
  cursor: pointer;
  padding-right: 5px;
}

body.dark-mode .mobile-dropdown-header {
  color: #fff;
}

.mobile-submenu {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  border-left: 2px solid #e5e7eb;
}

body.dark-mode .mobile-submenu {
  border-left-color: #333;
}

.mobile-submenu a {
  font-size: 1rem !important;
  color: #555 !important;
}

body.dark-mode .mobile-submenu a {
  color: #aaa !important;
}

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-bg.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
  margin-top: 5rem;
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.hero-nav-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.hero-nav-btn.prev {
  left: 2rem;
}

.hero-nav-btn.next {
  right: 2rem;
}


.hero-content h2 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: 0px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--pure-white);
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.8);
}

@media (max-width: 1024px) {
  .hero-content h2 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 80vh;
    min-height: 500px;
  }

  .hero-content {
    margin-top: 0;
    padding: 0 1.5rem;
  }

  .hero-content h2 {
    font-size: 2rem;
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
  }
}

@media (max-width: 480px) {
  .hero {
    height: 70vh;
  }
  .hero-content h2 {
    font-size: 1.8rem;
  }
}



.hero-indicators {
  position: absolute;
  bottom: 2rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}

.hero-indicators .indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-indicators .indicator:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-indicators .indicator.active {
  background: var(--pure-white, #ffffff);
  transform: scale(1.2);
}.product-grid-section {
  padding: 60px 5%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  text-align: center;
}

.product-grid-wrapper {
  max-width: 1350px;
  margin: 0 auto;
}

.product-grid-header {
  margin-bottom: 40px;
}

.product-grid-header h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.product-grid-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.product-grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.product-card {
  flex: 0 0 calc(25% - 18px);
  max-width: 300px;
  min-width: 220px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .product-grid-section {
    padding: 30px 12px;
  }
  .product-grid-container {
    gap: 12px;
  }
  .product-card {
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
    min-width: 0;
  }
  .product-info h3 {
    font-size: 13px;
  }
  .product-info .price {
    font-size: 13px;
  }
}

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

.product-image-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 15px;
  background-color: var(--bg-tertiary);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease, opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.product-image.hover-img {
  opacity: 0;
  z-index: 2;
}

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

.product-card:hover .product-image.hover-img {
  opacity: 1;
}

.product-info h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  text-transform: none;
}

.product-info .price {
  font-size: 14px;
  color: var(--text-secondary);
}

.view-all-btn {
  padding: 12px 30px;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  border-radius: 20px;
}

.view-all-btn:hover {
  opacity: 0.8;
}

/* Sold Out Badge Overlay */
.product-soldout-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  background-color: #111111;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.banner-section {
  width: 100%;
  overflow: hidden;
  margin-bottom: 60px;
}

.banner-container {
  display: flex;
  width: 100%;
  height: 60vh;
  min-height: 400px;
}

.banner-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 1024px) {
  .banner-container {
    height: 40vh;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .banner-section {
    margin-bottom: 40px;
  }
  .banner-container {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }
  .banner-image {
    width: 100%;
    height: 50vw; /* Keep it responsive to width on mobile */
    min-height: 200px;
  }
}
.collab-section {
  padding: 60px 5%;
  background-color: var(--bg-primary);
  text-align: center;
}

.collab-header {
  margin-bottom: 40px;
}

.collab-header h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.collab-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.collab-grid {
  display: flex;
  justify-content: center;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 20px; /* Room for scrollbar */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.collab-grid::-webkit-scrollbar {
  height: 6px;
}
.collab-grid::-webkit-scrollbar-track {
  background: transparent;
}
.collab-grid::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 10px;
}
.collab-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.3);
}

@media (max-width: 1024px) {
  .collab-grid {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .collab-section {
    padding: 40px 15px;
  }
  .collab-grid {
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 20px;
  }
  .collab-card {
    flex: 0 0 240px; /* Lebar card di mobile agar pas saat di-scroll */
    min-width: 240px;
  }
  .collab-info {
    padding: 16px 12px;
  }
  .collab-info h4 {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .collab-logo-text {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .collab-card {
    flex: 0 0 200px;
    min-width: 200px;
  }
}

.collab-card {
  flex: 0 0 calc(25% - 15px); /* 4 items per row */
  min-width: 260px; /* Don't get smaller than this */
  scroll-snap-align: start;
  background-color: var(--collab-card-bg);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.collab-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collab-logo-overlay {
  z-index: 2;
  text-align: center;
  text-shadow: 0px 2px 4px rgba(0,0,0,0.5);
  padding: 0 10px;
}

.collab-logo-text {
  color: white;
  font-size: 24px;
  font-weight: 900;
  font-family: serif;
  letter-spacing: 1px;
  line-height: 1.2;
}

.collab-info {
  padding: 24px 16px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.collab-info h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.collab-btn {
  background-color: transparent;
  color: var(--collab-btn-text);
  border: 1px solid var(--collab-btn-border);
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.collab-btn:hover {
  background-color: var(--collab-btn-border);
  color: var(--bg-primary);
}
.footer-section {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 5rem 4rem 2rem;
  font-size: 0.85rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 4rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.footer-col p {
  line-height: 1.8;
  color: var(--text-primary);
  opacity: 0.8;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-col ul li,
.footer-col ul a {
  color: var(--text-primary);
  opacity: 0.8;
  transition: color 0.3s, opacity 0.3s;
}

.footer-col ul a:hover {
  opacity: 1;
  color: var(--burnt-orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--nav-border);
  color: var(--text-primary);
  opacity: 0.6;
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-family: var(--font-heading);
  transition: border-color 0.3s ease;
}

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-section {
    padding: 3rem 2rem 1rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-logo {
    font-size: 1.8rem;
  }
}
/* Catalog Page Base */
.catalog-page {
  background-color: var(--bg-secondary); /* Off-white / beige background ala Allbirds */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 100px; /* Space for Navbar */
  font-family: var(--font-primary);
  transition: background-color 0.3s ease;
}

body:not(.dark-mode) .catalog-page {
  background-color: #f5f4f0;
}

.catalog-main {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 80px;
}

/* Top Filter Bar */
.catalog-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background-color: var(--bg-tertiary);
  border-radius: 40px;
  margin-bottom: 30px;
  transition: background-color 0.3s ease;
}

body:not(.dark-mode) .catalog-top-bar {
  background-color: #e5e4de;
}

.top-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--text-primary);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

body:not(.dark-mode) .top-filter-btn {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.top-filter-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

body:not(.dark-mode) .top-filter-btn:hover {
  background-color: #1a1a1a;
  color: #fff;
}

.top-filter-btn .product-count {
  font-weight: 400;
  opacity: 0.7;
}

.top-sort-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.top-sort-wrapper.custom-dropdown {
  cursor: pointer;
}

.top-sort-selected {
  background: transparent;
  border: 1px solid var(--text-primary);
  padding: 8px 35px 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-primary);
  white-space: nowrap;
  user-select: none;
  display: flex;
  align-items: center;
}

body:not(.dark-mode) .top-sort-selected {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.custom-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background-color: var(--bg-primary);
  border: 1px solid var(--text-primary);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  min-width: 180px;
  overflow: hidden;
}

body:not(.dark-mode) .custom-dropdown-menu {
  background-color: #ffffff;
  border-color: #1a1a1a;
}

.custom-dropdown-item {
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

body:not(.dark-mode) .custom-dropdown-item {
  color: #1a1a1a;
}

.custom-dropdown-item:hover, .custom-dropdown-item.active {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

body:not(.dark-mode) .custom-dropdown-item:hover, body:not(.dark-mode) .custom-dropdown-item.active {
  background-color: #1a1a1a;
  color: #ffffff;
}

.custom-dropdown-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1040;
}

.sort-icon {
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: var(--text-primary);
}

body:not(.dark-mode) .sort-icon {
  color: #1a1a1a;
}

/* Product Grid */
.catalog-content {
  flex: 1;
}

.catalog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.catalog-card {
  flex: 0 0 calc(25% - 19px);
  max-width: 300px;
  min-width: 220px;
  background-color: var(--bg-primary);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .catalog-grid {
    gap: 12px;
  }
  .catalog-card {
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
    min-width: 0;
  }
}

body:not(.dark-mode) .catalog-card {
  background-color: #ffffff;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

body.dark-mode .catalog-card:hover {
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.05);
}

.catalog-image-bg {
  width: 100%;
  aspect-ratio: 1/1; /* Square 1:1 ratio */
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

body:not(.dark-mode) .catalog-image-bg {
  background-color: #f9f9f9;
}

.catalog-product-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.5s ease, opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.catalog-product-image.hover-img {
  opacity: 0;
  z-index: 2;
}

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

.catalog-card:hover .catalog-product-image.hover-img {
  opacity: 1;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 4px;
}

.product-badge.out-of-stock {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

body:not(.dark-mode) .product-badge.out-of-stock {
  background-color: #1a1a1a;
  color: #fff;
}

.catalog-product-info {
  padding: 20px;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  flex: 1;
}

body:not(.dark-mode) .catalog-product-info {
  background-color: #ffffff;
}

.catalog-product-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
  text-transform: none;
  letter-spacing: 0.5px;
}

body:not(.dark-mode) .catalog-product-info h3 {
  color: #1a1a1a;
}

.catalog-product-info .category {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

body:not(.dark-mode) .catalog-product-info .category {
  color: #666;
}

.catalog-product-info .price {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: auto;
}

body:not(.dark-mode) .catalog-product-info .price {
  color: #1a1a1a;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--bg-primary);
  border-radius: 12px;
}

body:not(.dark-mode) .empty-state {
  background-color: #ffffff;
}

.empty-icon {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

body:not(.dark-mode) .empty-icon {
  color: #999;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

body:not(.dark-mode) .empty-state h3 {
  color: #1a1a1a;
}

.empty-state p {
  color: var(--text-secondary);
}

body:not(.dark-mode) .empty-state p {
  color: #666;
}

.clear-btn {
  background: transparent;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
}

body:not(.dark-mode) .clear-btn {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

/* Filter Drawer */
.filter-drawer {
  position: fixed;
  top: 0;
  left: -400px;
  width: 400px;
  height: 100vh;
  background-color: var(--bg-primary);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
}

body:not(.dark-mode) .filter-drawer {
  background-color: #ffffff;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

.filter-drawer.open {
  left: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid var(--border-color);
}

body:not(.dark-mode) .drawer-header {
  border-bottom-color: #eee;
}

.drawer-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
}

body:not(.dark-mode) .drawer-header h2 {
  color: #1a1a1a;
}

.close-drawer-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.dark-mode) .close-drawer-btn {
  color: #1a1a1a;
}

.drawer-body {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.filter-group {
  margin-bottom: 40px;
}

.filter-group h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body:not(.dark-mode) .filter-group h4 {
  color: #1a1a1a;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.filter-pill {
  background-color: var(--bg-secondary);
  border: 1px solid transparent;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

body:not(.dark-mode) .filter-pill {
  background-color: #f5f4f0;
  color: #1a1a1a;
}

.filter-pill:hover {
  background-color: var(--bg-tertiary);
}

body:not(.dark-mode) .filter-pill:hover {
  background-color: #e5e4de;
}

.filter-pill.active {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

body:not(.dark-mode) .filter-pill.active {
  background-color: #1a1a1a;
  color: #ffffff;
}

.drawer-footer {
  padding: 25px 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 15px;
}

body:not(.dark-mode) .drawer-footer {
  border-top-color: #eee;
}

.drawer-footer .clear-btn {
  flex: 1;
  text-align: center;
}

.drawer-footer .apply-btn {
  flex: 2;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
}

body:not(.dark-mode) .drawer-footer .apply-btn {
  background-color: #1a1a1a;
  color: #ffffff;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 999;
  backdrop-filter: blur(2px);
}

/* Responsive */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-main {
    padding: 0 20px;
    margin-top: 20px;
  }

  .catalog-top-bar {
    flex-direction: row;
    gap: 10px;
    align-items: center;
    border-radius: 8px;
    padding: 10px;
  }

  .top-filter-btn {
    flex: 1;
    justify-content: center;
    padding: 8px;
  }

  .top-sort-wrapper {
    flex: 1;
  }

  .top-sort-selected {
    width: 100%;
    padding: 6px 20px 6px 8px; /* Less padding to fit text better */
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    justify-content: center;
  }
  
  .custom-dropdown-menu {
    left: 0;
    right: auto;
    width: 100%;
    min-width: unset;
  }

  .top-filter-btn span {
    font-size: 0.7rem;
  }
  
  .top-filter-btn .product-count {
    display: none; /* Hide product count on small mobile to save space */
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .filter-drawer {
    width: 85%;
    max-width: 350px;
  }
}

@media (max-width: 480px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .catalog-product-info {
    padding: 10px;
  }
  .catalog-product-info h3 {
    font-size: 0.75rem;
  }
  .catalog-product-info .price {
    font-size: 0.8rem;
  }
  .product-badge {
    padding: 3px 6px;
    font-size: 0.55rem;
    top: 10px;
    left: 10px;
  }
}

/* Quick Add Overlay Button */
.quick-add-overlay-btn {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body:not(.dark-mode) .quick-add-overlay-btn {
  background-color: #1a1a1a;
  color: #ffffff;
}

.catalog-card:hover .quick-add-overlay-btn:not(:disabled) {
  bottom: 20px;
  opacity: 1;
}

.quick-add-overlay-btn:disabled {
  display: none;
}

/* Quick Add Modal */
.quick-add-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quick-add-modal {
  background-color: var(--bg-primary);
  width: 90%;
  max-width: 400px;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body:not(.dark-mode) .quick-add-modal {
  background-color: #ffffff;
}

@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.quick-add-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.quick-add-modal .modal-header h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

body:not(.dark-mode) .quick-add-modal .modal-header h3 {
  color: #1a1a1a;
}

.quick-add-modal .close-modal-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.quick-add-modal .modal-body .product-name {
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
}

body:not(.dark-mode) .quick-add-modal .modal-body .product-name {
  color: #1a1a1a;
}

.size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.size-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

body:not(.dark-mode) .size-btn {
  background-color: #f5f4f0;
  border-color: #eee;
  color: #1a1a1a;
}

.size-btn:hover {
  border-color: var(--text-primary);
}

body:not(.dark-mode) .size-btn:hover {
  border-color: #1a1a1a;
}

.size-btn.selected {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

body:not(.dark-mode) .size-btn.selected {
  background-color: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.add-to-cart-submit-btn {
  width: 100%;
  border-radius: 30px;
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

body:not(.dark-mode) .add-to-cart-submit-btn {
  background-color: #1a1a1a;
  color: #ffffff;
}

.add-to-cart-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cart-page {
  background-color: var(--bg-secondary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  font-family: var(--font-primary);
  transition: background-color 0.3s ease;
}

body:not(.dark-mode) .cart-page {
  background-color: #f5f4f0;
}

.cart-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 80px;
}

.cart-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
  letter-spacing: 1px;
}

body:not(.dark-mode) .cart-title {
  color: #1a1a1a;
}

.cart-continue-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

body:not(.dark-mode) .cart-continue-btn {
  background-color: #1a1a1a;
  color: #fff;
}

.cart-continue-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Empty State */
.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-primary);
  border-radius: 12px;
  padding: 80px 20px;
  margin-top: 20px;
}

body:not(.dark-mode) .empty-cart-state {
  background-color: #ffffff;
}

.empty-cart-icon {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

body:not(.dark-mode) .empty-cart-icon {
  color: #999;
}

.empty-cart-state h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

body:not(.dark-mode) .empty-cart-state h2 {
  color: #1a1a1a;
}

.empty-cart-state p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 400px;
}

body:not(.dark-mode) .empty-cart-state p {
  color: #666;
}

.start-shopping-btn {
  border-radius: 30px;
  padding: 12px 30px;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

body:not(.dark-mode) .start-shopping-btn {
  background-color: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

/* Cart Content Grid */
.cart-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Cart Items */
.cart-items-section {
  display: flex;
  flex-direction: column;
}

.cart-items-header {
  display: flex;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

body:not(.dark-mode) .cart-items-header {
  border-bottom-color: #ddd;
  color: #666;
}

.col-product { flex: 2; }
.col-quantity { flex: 1; text-align: center; }
.col-total { flex: 1; text-align: right; padding-right: 20px; }

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
  padding: 20px;
  border-radius: 12px;
  transition: box-shadow 0.3s;
}

body:not(.dark-mode) .cart-item {
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.item-product-info {
  flex: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}

.item-image-wrapper {
  width: 100px;
  height: 100px;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

body:not(.dark-mode) .item-image-wrapper {
  background-color: #f9f9f9;
}

.item-image {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.item-details h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

body:not(.dark-mode) .item-details h3 {
  color: #1a1a1a;
}

.item-variant {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

body:not(.dark-mode) .item-variant {
  color: #666;
}

.item-price {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

body:not(.dark-mode) .item-price {
  color: #1a1a1a;
}

.item-quantity-controls {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qty-selector {
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  border-radius: 20px;
  padding: 4px 6px;
  border: 1px solid var(--border-color);
}

body:not(.dark-mode) .qty-selector {
  background-color: #f5f4f0;
  border-color: #eee;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

body:not(.dark-mode) .qty-btn {
  color: #1a1a1a;
}

.qty-btn:hover {
  opacity: 0.7;
}

.qty-display {
  width: 30px;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

body:not(.dark-mode) .qty-display {
  color: #1a1a1a;
}

.remove-item-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body:not(.dark-mode) .remove-item-btn {
  color: #999;
}

.remove-item-btn:hover {
  color: #ff4d4f;
}

.item-total-price {
  flex: 1;
  text-align: right;
  padding-right: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

body:not(.dark-mode) .item-total-price {
  color: #1a1a1a;
}

/* Order Summary */
.summary-card {
  background-color: var(--bg-primary);
  border-radius: 12px;
  padding: 30px;
  position: sticky;
  top: 120px;
}

body:not(.dark-mode) .summary-card {
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.summary-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--text-primary);
  letter-spacing: 1px;
}

body:not(.dark-mode) .summary-card h2 {
  color: #1a1a1a;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

body:not(.dark-mode) .summary-row {
  color: #666;
}

.summary-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 20px 0;
}

body:not(.dark-mode) .summary-divider {
  background-color: #eee;
}

.total-row {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 30px;
}

body:not(.dark-mode) .total-row {
  color: #1a1a1a;
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  border-radius: 30px;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

body:not(.dark-mode) .checkout-btn {
  background-color: #1a1a1a;
  color: #ffffff;
}

.checkout-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.secure-checkout-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
  .cart-content {
    grid-template-columns: 1fr;
  }
  
  .summary-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .cart-container {
    padding: 0 20px;
  }
  
  .cart-item {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  
  .cart-items-header {
    display: none;
  }
  
  .item-total-price {
    text-align: left;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
  }
}
.pdp-page {
  background-color: var(--bg-primary);
  min-height: 100vh;
  padding-top: 140px;
  font-family: var(--font-primary);
  transition: background-color 0.3s ease;
}

body:not(.dark-mode) .pdp-page {
  background-color: #ffffff;
}

/* Top Section */
.pdp-top-section {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 60px;
  padding: 0 40px 80px;
}

/* Gallery Column */
.pdp-gallery-col {
  display: flex;
  gap: 20px;
  height: calc(100vh - 120px);
  position: sticky;
  top: 100px;
}

.pdp-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 80px;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}

.pdp-thumbnails::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.pdp-thumb {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  background-color: var(--bg-secondary);
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

body:not(.dark-mode) .pdp-thumb {
  border-color: #eee;
  background-color: #f9f9f9;
}

.pdp-thumb.active {
  border-color: var(--text-primary);
}

body:not(.dark-mode) .pdp-thumb.active {
  border-color: #1a1a1a;
}

.pdp-thumb img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.pdp-main-image-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
}

.pdp-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info Column */
.pdp-info-col {
  padding-top: 20px;
  padding-right: 40px;
}

.breadcrumbs {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

body:not(.dark-mode) .breadcrumbs {
  color: #666;
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--text-primary);
}

body:not(.dark-mode) .breadcrumbs a:hover {
  color: #1a1a1a;
}

.pdp-title {
  font-size: 2.2rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 15px;
  text-transform: none;
  letter-spacing: 0px;
}

body:not(.dark-mode) .pdp-title {
  color: #1a1a1a;
}

.pdp-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 40px;
}

body:not(.dark-mode) .pdp-price {
  color: #1a1a1a;
}

.pdp-price-original {
  font-size: 1rem;
  font-weight: 400;
  text-decoration: line-through;
  color: var(--text-secondary);
  margin-right: 10px;
}

body:not(.dark-mode) .pdp-price-original {
  color: #999;
}

.pdp-size-section {
  margin-bottom: 30px;
}

.size-header {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-primary);
}

body:not(.dark-mode) .size-header {
  color: #1a1a1a;
}

.pdp-size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pdp-size-btn {
  width: 45px;
  height: 45px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  position: relative;
}

body:not(.dark-mode) .pdp-size-btn {
  border-color: #ddd;
  color: #1a1a1a;
}

.pdp-size-btn:hover {
  border-color: var(--text-primary);
}

body:not(.dark-mode) .pdp-size-btn:hover {
  border-color: #1a1a1a;
}

.pdp-size-btn.selected {
  border-color: var(--text-primary);
  border-width: 2px;
  font-weight: 700;
}

body:not(.dark-mode) .pdp-size-btn.selected {
  border-color: #1a1a1a;
}

.pdp-size-btn.out-of-stock {
  opacity: 0.5;
  cursor: not-allowed;
  position: relative;
  color: #999;
  border-color: #eee;
}
.pdp-size-btn.out-of-stock:hover {
  border-color: #eee;
}
.pdp-size-btn.out-of-stock::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -2px;
  right: -2px;
  height: 1.5px;
  background-color: #ff4d4f;
  transform: translateY(-50%) rotate(-45deg);
}
.pdp-size-btn.out-of-stock::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -2px;
  right: -2px;
  height: 1.5px;
  background-color: #ff4d4f;
  transform: translateY(-50%) rotate(45deg);
}

.stock-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
}
.stock-badge.in {
  color: #52c41a;
  border-color: #b7eb8f;
  background-color: #f6ffed;
}
.stock-badge.low {
  color: #fa8c16;
  border-color: #ffd591;
  background-color: #fff7e6;
}
.stock-badge.out {
  color: #ff4d4f;
  border-color: #ffa39e;
  background-color: #fff1f0;
}

.pdp-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.pdp-qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  width: 120px;
  justify-content: space-between;
}

body:not(.dark-mode) .pdp-qty-selector {
  border-color: #ddd;
}

.pdp-qty-selector button {
  background: none;
  border: none;
  width: 40px;
  height: 50px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

body:not(.dark-mode) .pdp-qty-selector button {
  color: #1a1a1a;
}

.pdp-qty-selector span {
  font-weight: 600;
  color: var(--text-primary);
}

body:not(.dark-mode) .pdp-qty-selector span {
  color: #1a1a1a;
}

.add-to-cart-btn {
  flex: 1;
  height: 50px;
  background-color: var(--text-primary) !important;
  color: var(--bg-primary) !important;
  border: none !important;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

body:not(.dark-mode) .add-to-cart-btn {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
}

.add-to-cart-btn:hover {
  opacity: 0.9;
}

.pdp-wishlist-btn {
  width: 100%;
  height: 50px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 40px;
}

body:not(.dark-mode) .pdp-wishlist-btn {
  border-color: #ddd;
  color: #1a1a1a;
}

.pdp-wishlist-btn:hover {
  background-color: var(--bg-secondary);
}

body:not(.dark-mode) .pdp-wishlist-btn:hover {
  background-color: #f9f9f9;
}

/* Accordions */
.pdp-accordions {
  border-top: 1px solid var(--border-color);
}

body:not(.dark-mode) .pdp-accordions {
  border-top-color: #ddd;
}

.accordion {
  border-bottom: 1px solid var(--border-color);
}

body:not(.dark-mode) .accordion {
  border-bottom-color: #ddd;
}

.accordion-header {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
}

body:not(.dark-mode) .accordion-header {
  color: #1a1a1a;
}

.accordion-content {
  padding-bottom: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

body:not(.dark-mode) .accordion-content {
  color: #666;
}

body:not(.dark-mode) .accordion-content p {
  line-height: 1.6;
  font-size: 14px;
}

.size-guide-table-wrapper {
  overflow-x: auto;
  margin-top: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}

.size-guide-table th, .size-guide-table td {
  border: 1px solid var(--border-color);
  padding: 10px;
}

.size-guide-table th {
  background-color: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

.size-guide-table td strong {
  font-weight: 600;
}

.share-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s;
}

body:not(.dark-mode) .share-btn {
  border-color: #ddd;
  color: #1a1a1a;
}

.share-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
}

body:not(.dark-mode) .share-btn:hover {
  background-color: #1a1a1a;
  color: #fff;
}

.share-btn.whatsapp:hover {
  background-color: #25D366;
  border-color: #25D366;
  color: #fff;
}

.share-btn.facebook:hover {
  background-color: #1877F2;
  border-color: #1877F2;
  color: #fff;
}

.share-btn.instagram:hover {
  background-color: #E1306C;
  border-color: #E1306C;
  color: #fff;
}

/* Middle Specs Section */
.pdp-specs-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
  border-top: 1px solid var(--border-color);
}

body:not(.dark-mode) .pdp-specs-section {
  border-top-color: #eee;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 60px;
}

body:not(.dark-mode) .section-title {
  color: #1a1a1a;
}

.specs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.specs-image-col {
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
}

.specs-large-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specs-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.specs-highlight-text {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 40px;
  line-height: 1.4;
  text-transform: uppercase;
}

body:not(.dark-mode) .specs-highlight-text {
  color: #1a1a1a;
}

.spec-block {
  margin-bottom: 30px;
}

.spec-block h4 {
  font-size: 1.2rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 15px;
  text-transform: uppercase;
}

body:not(.dark-mode) .spec-block h4 {
  color: #1a1a1a;
}

.spec-block ul {
  padding-left: 15px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

body:not(.dark-mode) .spec-block ul {
  color: #666;
}

.spec-block li {
  margin-bottom: 8px;
  position: relative;
  list-style-type: disc;
}

.specs-fullwidth-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  background-color: #1a1a1a;
}

.texture-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

/* Related Products Section */
.pdp-related-section {
  padding-top: 40px;
}

.pdp-related-section .product-grid-container {
  padding-top: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .pdp-top-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .pdp-gallery-col {
    position: static;
    height: auto;
    width: 100%;
  }

  .pdp-main-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 80vh;
    border-radius: 8px;
    overflow: hidden;
  }

  .pdp-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .pdp-info-col {
    padding-right: 0;
  }
  
  .specs-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pdp-gallery-col {
    flex-direction: column-reverse;
    height: auto;
    gap: 15px;
    width: 100%;
  }

  .pdp-main-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 500px;
    border-radius: 8px;
    overflow: hidden;
  }

  .pdp-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .pdp-thumbnails {
    flex-direction: row;
    width: 100%;
    height: 80px;
    overflow-x: auto;
  }

  .pdp-thumb {
    width: 70px;
    height: 70px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 6px;
  }
  
  .pdp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .pdp-top-section,
  .pdp-specs-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .pdp-title {
    font-size: 1.8rem;
  }
}

/* Lightbox / Fullscreen Modal & Zoom */
.clickable-zoom {
  cursor: zoom-in;
}

.zoom-hint-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0.85;
}

.pdp-main-image-wrapper:hover .zoom-hint-badge {
  opacity: 1;
  transform: scale(1.05);
}

.pdp-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
  animation: fadeInModal 0.25s ease forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.lightbox-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  color: #ffffff;
}

.lightbox-counter {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: #cccccc;
}

.lightbox-zoom-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 30px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.lightbox-zoom-tools button {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  padding: 4px;
}

.lightbox-zoom-tools button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.zoom-value {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 45px;
  text-align: center;
}

.lightbox-close-btn {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.08);
}

.lightbox-content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
  user-select: none;
}

.lightbox-img-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  transition: transform 0.25s ease-out;
  cursor: grab;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.lightbox-nav-btn:hover {
  background: #000000;
  border-color: var(--burnt-orange, #dc5a1e);
  color: var(--burnt-orange, #dc5a1e);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn.prev {
  left: 20px;
}

.lightbox-nav-btn.next {
  right: 20px;
}

.lightbox-footer-thumbs {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  overflow-x: auto;
}

.lightbox-footer-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
}

.lightbox-footer-thumb.active {
  border-color: var(--burnt-orange, #dc5a1e);
  opacity: 1;
  transform: scale(1.05);
}

.lightbox-footer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .lightbox-header {
    padding: 12px 16px;
  }
  .lightbox-nav-btn.prev {
    left: 8px;
  }
  .lightbox-nav-btn.next {
    right: 8px;
  }
  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
  }
  .lightbox-image {
    max-width: 95vw;
    max-height: 70vh;
  }
}

/* Toast Notification */
.pdp-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
  pointer-events: none;
}

body:not(.dark-mode) .pdp-toast {
  background-color: #1a1a1a;
  color: #ffffff;
}

.pdp-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* PDP Sold Out Tag & Button Styles */
.pdp-soldout-tag {
  display: inline-block;
  margin-left: 12px;
  background-color: #ef4444;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  vertical-align: middle;
}

.add-to-cart-btn.is-soldout-btn {
  background-color: #333333 !important;
  color: #888888 !important;
  border-color: #333333 !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}
.checkout-page {
  min-height: 100vh;
  background-color: var(--bg-primary);
  font-family: var(--font-primary);
  display: flex;
}

body:not(.dark-mode) .checkout-page {
  background-color: #fff;
}

.checkout-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left Column */
.checkout-left {
  flex: 5.5;
  padding: 40px 5%;
  border-right: 1px solid #e1e1e1;
}

body.dark-mode .checkout-left {
  border-right: 1px solid #333;
}

.checkout-header {
  margin-bottom: 40px;
}

.checkout-logo {
  height: 60px;
  margin-bottom: 15px;
}

.checkout-breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}
.checkout-breadcrumbs a:hover {
  text-decoration: underline;
}
.checkout-breadcrumbs span {
  color: var(--text-primary);
  font-weight: 600;
}

.checkout-form section {
  margin-bottom: 35px;
}

.checkout-form h2 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  font-family: var(--font-heading);
}

.checkout-form input,
.checkout-form select {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  background-color: transparent;
  color: var(--text-primary);
}

body.dark-mode .checkout-form input,
body.dark-mode .checkout-form select {
  border: 1px solid #444;
}

.checkout-form input:focus,
.checkout-form select:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 1px #1a1a1a;
}
body.dark-mode .checkout-form input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}

.form-row {
  display: flex;
  gap: 12px;
}
.form-row input {
  flex: 1;
}
.form-row-3 select {
  flex: 1.5;
}
.form-row-3 input {
  flex: 1;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  font-size: 0.9rem;
}
.checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.shipping-methods-box {
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
}
body.dark-mode .shipping-methods-box {
  border-color: #444;
}

.shipping-option {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid #ccc;
  align-items: center;
}
body.dark-mode .shipping-option {
  border-bottom: 1px solid #444;
}
.shipping-option:last-child {
  border-bottom: none;
}
.shipping-option label {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
}
.shipping-option span {
  font-weight: 500;
}

.shipping-placeholder {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}
body.dark-mode .shipping-placeholder {
  background: #2a2a2a;
  color: #aaa;
}

.payment-note {
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #e1e1e1;
  border-radius: 5px;
  text-align: center;
  color: #555;
  font-size: 0.9rem;
}
body.dark-mode .payment-note {
  background: #2a2a2a;
  border-color: #444;
  color: #ccc;
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e1e1e1;
}
body.dark-mode .checkout-actions {
  border-top: 1px solid #333;
}
.return-cart {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 0.9rem;
}
body.dark-mode .return-cart {
  color: #fff;
}
.return-cart:hover {
  text-decoration: underline;
}
.place-order-btn {
  padding: 18px 30px;
  font-size: 1rem;
  border-radius: 5px;
}

/* Right Column */
.checkout-right {
  flex: 4.5;
  background-color: #fafafa;
  padding: 40px 5%;
}

body.dark-mode .checkout-right {
  background-color: #1a1a1a;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.item-image {
  position: relative;
  width: 65px;
  height: 65px;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.dark-mode .item-image {
  border-color: #333;
  background: #2a2a2a;
}
.item-image img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
.item-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  background: rgba(114, 114, 114, 0.9);
  color: #fff;
  font-size: 12px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 500;
}

.item-details {
  flex: 1;
}
.item-details h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.item-details p {
  font-size: 0.8rem;
  color: #777;
}

.item-price {
  font-weight: 500;
  font-size: 0.9rem;
}

.discount-section {
  padding: 20px 0;
  border-top: 1px solid #e1e1e1;
  border-bottom: 1px solid #e1e1e1;
  margin-bottom: 20px;
}
body.dark-mode .discount-section {
  border-color: #333;
}

.discount-input {
  display: flex;
  gap: 10px;
}
.discount-input input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: transparent;
  color: var(--text-primary);
}
body.dark-mode .discount-input input {
  border-color: #444;
}
.discount-input button {
  padding: 0 20px;
  background: #e5e5e5;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.discount-input button:hover {
  background: #d5d5d5;
}
body.dark-mode .discount-input button {
  background: #333;
  color: #fff;
}
body.dark-mode .discount-input button:hover {
  background: #444;
}

.voucher-error {
  color: #ff4d4f;
  font-size: 0.85rem;
  margin-top: 8px;
}
.voucher-success {
  color: #52c41a;
  font-size: 0.85rem;
  margin-top: 8px;
}

.summary-totals {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #555;
}
body.dark-mode .totals-row {
  color: #aaa;
}
.totals-row.discount {
  color: #52c41a;
}

.final-total {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid #e1e1e1;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
  align-items: center;
}
body.dark-mode .final-total {
  border-color: #333;
  color: #fff;
}
.total-price {
  font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .checkout-container {
    flex-direction: column-reverse;
  }
  .checkout-left {
    border-right: none;
    padding-top: 30px;
  }
  .checkout-right {
    border-bottom: 1px solid #e1e1e1;
  }
  body.dark-mode .checkout-right {
    border-bottom: 1px solid #333;
  }
}

/* Autocomplete Styles */
.autocomplete-container {
  position: relative;
  width: 100%;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 4px;
}

body.dark-mode .autocomplete-dropdown {
  background: #2a2a2a;
  border-color: #444;
}

.autocomplete-item {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  color: #333;
}

body.dark-mode .autocomplete-item {
  border-bottom-color: #333;
  color: #ddd;
}

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

.autocomplete-item:hover {
  background: #f5f5f5;
}

body.dark-mode .autocomplete-item:hover {
  background: #333;
}

.autocomplete-loading {
  font-size: 0.8rem;
  color: #888;
  padding-top: 5px;
}

.selected-area-badge {
  background: #e9f5e9;
  color: #2e7d32;
  padding: 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  margin-top: -10px;
  margin-bottom: 15px;
}

body.dark-mode .selected-area-badge {
  background: rgba(46, 125, 50, 0.2);
  color: #81c784;
}
.payment-page {
  background-color: #f7f7f7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.payment-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.payment-card {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.payment-status-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.payment-status-box h2 {
  font-size: 1.5rem;
  margin: 0;
  color: #1a1a1a;
}

.payment-status-box p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.countdown-timer {
  font-size: 3rem;
  font-weight: bold;
  color: #1a1a1a;
  background: #f0f0f0;
  padding: 10px 30px;
  border-radius: 8px;
  letter-spacing: 2px;
  margin: 20px 0;
  font-variant-numeric: tabular-nums;
}

.order-summary-mini {
  background: #fafafa;
  padding: 15px;
  border-radius: 8px;
  width: 100%;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.order-summary-mini p {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

.pay-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Colors and states */
.pending .pulse-icon {
  color: #ff9800;
  animation: pulse 2s infinite;
}

.expired .lucide {
  color: #f44336;
}

.success .lucide {
  color: #4caf50;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.payment-loading {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  color: #666;
}
.contact-page {
  width: 100%;
  min-height: calc(100vh - 80px);
  background-color: var(--bg-primary, #ffffff);
  color: var(--text-primary, #111111);
  padding: 130px 5% 80px 5%;
  box-sizing: border-box;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Left Column */
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-hero-image-wrapper {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-section-title {
  font-family: inherit;
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary, #111111);
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text-primary, #111111);
  display: inline-block;
  width: max-content;
  max-width: 100%;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary, #222222);
}

.contact-details .company-name {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.contact-details a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-details a:hover {
  opacity: 0.7;
}

/* Right Column */
.contact-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 24px;
  padding-top: 10px;
}

.contact-brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.about-section-title {
  font-family: inherit;
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary, #111111);
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--text-primary, #111111);
  display: inline-block;
  width: 100%;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary, #333333);
  text-align: right;
  margin: 0;
}

/* Responsive Layout */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-right {
    align-items: flex-start;
    text-align: left;
  }
  
  .about-text {
    text-align: left;
  }
}
.customer-auth-page {
  background-color: var(--bg-secondary);
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
}

.auth-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.auth-box {
  background-color: var(--bg-primary);
  width: 100%;
  max-width: 450px;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}

.auth-box h2 {
  font-family: var(--font-secondary);
  font-size: 28px;
  margin-bottom: 10px;
  text-align: center;
  color: var(--text-primary);
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 14px;
}

.auth-error-msg {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.auth-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 14px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color 0.3s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--btn-bg);
}

.form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.forgot-password {
  font-size: 13px;
  color: var(--text-primary);
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  padding: 14px;
  font-family: var(--font-secondary);
  font-size: 16px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.3s;
  border-radius: 4px;
}

.auth-submit-btn:hover {
  opacity: 0.9;
}

.auth-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-footer {
  margin-top: 30px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* Password Strength Indicator */
.password-strength-container {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.strength-bar-bg {
  flex: 1;
  height: 4px;
  background-color: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-right: 12px;
}

.strength-bar-fill {
  height: 100%;
  transition: all 0.3s ease;
}

.strength-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  min-width: 60px;
  text-align: right;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 42px;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: var(--text-primary);
}
.customer-profile-page {
  background-color: var(--bg-secondary);
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
}

.profile-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Premium Header Card */
.profile-header-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.profile-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(130deg, var(--burnt-orange), #e07a38);
}

.profile-header-main {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--burnt-orange), #9e4f1a);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(198, 106, 43, 0.3);
  border: 3px solid var(--bg-primary);
}

.profile-header-info h2 {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.profile-header-info p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 12px;
}

.profile-badges-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(198, 106, 43, 0.12);
  color: var(--burnt-orange);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-stat-pill {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 16px 24px;
  border-radius: 14px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background-color: var(--border-color);
}

/* Tabs Navigation */
.profile-tabs-bar {
  display: flex;
  gap: 14px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 14px;
  overflow-x: auto;
}

.profile-tab-btn {
  padding: 12px 24px;
  border-radius: 10px;
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.profile-tab-btn:hover {
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.02);
}

.profile-tab-btn.active {
  background-color: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--burnt-orange);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* Tab Card Contents */
.profile-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.profile-card-header h3 {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.profile-form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-form-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
}

.profile-form-group input,
.profile-form-group textarea {
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-form-group input:focus,
.profile-form-group textarea:focus {
  border-color: var(--burnt-orange);
  box-shadow: 0 0 0 3px rgba(198, 106, 43, 0.15);
}

.profile-save-btn {
  margin-top: 30px;
  background-color: var(--burnt-orange);
  color: #ffffff;
  padding: 14px 36px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(198, 106, 43, 0.25);
}

.profile-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 106, 43, 0.35);
}

/* Purchase History Order Cards */
.purchase-history-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.order-filter-pill {
  padding: 8px 16px;
  border-radius: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-filter-pill:hover,
.order-filter-pill.active {
  background-color: var(--burnt-orange);
  color: #ffffff;
  border-color: var(--burnt-orange);
}

.order-history-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.order-card-premium {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  background-color: var(--bg-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-card-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.order-id-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-code {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.order-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.order-status-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-status-badge.paid,
.order-status-badge.completed {
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.order-status-badge.shipped {
  background-color: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.order-status-badge.pending {
  background-color: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.order-status-badge.cancelled {
  background-color: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* Order Items Listing inside card */
.order-items-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.order-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  gap: 16px;
}

.order-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--border-color);
}

.order-item-details {
  flex: 1;
}

.order-item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.order-item-spec {
  font-size: 12px;
  color: var(--text-secondary);
}

.order-item-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

/* Courier & Summary Bottom Bar */
.order-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

.courier-info-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.copy-resi-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 6px;
  transition: all 0.2s ease;
}

.copy-resi-btn:hover {
  background-color: var(--burnt-orange);
  color: #ffffff;
  border-color: var(--burnt-orange);
}

.order-total-sum {
  text-align: right;
}

.total-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.total-amount-highlight {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--burnt-orange);
}

@media (max-width: 768px) {
  .profile-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-stat-pill {
    width: 100%;
    justify-content: space-around;
  }
  .order-card-top, .order-card-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .order-total-sum {
    text-align: left;
  }
}
.order-history-page {
  background-color: var(--bg-secondary);
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
}

.history-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.history-header h1 {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.history-search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px 16px;
  min-width: 280px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.history-search-bar input {
  border: none;
  background: none;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  width: 100%;
  margin-left: 10px;
}

.history-filters-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.history-filter-pill {
  padding: 10px 20px;
  border-radius: 20px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.history-filter-pill:hover,
.history-filter-pill.active {
  background-color: var(--burnt-orange);
  color: #ffffff;
  border-color: var(--burnt-orange);
  box-shadow: 0 4px 14px rgba(198, 106, 43, 0.25);
}

.history-orders-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.order-history-card-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.order-history-card-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.order-card-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.order-code-title {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.order-date-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: 10px;
}

.order-card-items-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.order-item-thumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-secondary);
  border-radius: 10px;
  padding: 12px 16px;
  gap: 16px;
}

.thumb-image {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.thumb-info {
  flex: 1;
}

.thumb-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.thumb-spec {
  font-size: 12px;
  color: var(--text-secondary);
}

.order-card-footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

.view-detail-btn {
  background-color: var(--burnt-orange);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(198, 106, 43, 0.2);
}

.view-detail-btn:hover {
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(198, 106, 43, 0.35);
}
.order-detail-page {
  background-color: var(--bg-secondary);
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
}

.detail-container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.order-detail-header-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap;
  gap: 16px;
}

.order-detail-title-group h1 {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}

.order-detail-title-group p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Biteship Live Tracking Box */
.tracking-live-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.tracking-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

.tracking-box-header h3 {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.biteship-badge {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tracking Stepper */
.tracking-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 30px 0 40px;
}

.tracking-stepper::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 5%;
  right: 5%;
  height: 3px;
  background-color: var(--border-color);
  z-index: 1;
}

.stepper-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.step-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 3px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.stepper-step.completed .step-icon-circle {
  background-color: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.stepper-step.active .step-icon-circle {
  background-color: var(--burnt-orange);
  border-color: var(--burnt-orange);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(198, 106, 43, 0.4);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(198, 106, 43, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(198, 106, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 106, 43, 0); }
}

.step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 10px;
  text-align: center;
  text-transform: uppercase;
}

.stepper-step.active .step-label,
.stepper-step.completed .step-label {
  color: var(--text-primary);
}

/* Checkpoint Feed Timeline */
.checkpoint-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding-left: 24px;
}

.checkpoint-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background-color: var(--border-color);
}

.checkpoint-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkpoint-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--burnt-orange);
  border: 2px solid var(--bg-primary);
}

.checkpoint-item:first-child::before {
  background-color: #10b981;
  width: 12px;
  height: 12px;
  left: -22px;
}

.checkpoint-note {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.checkpoint-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Section Grid (Items & Summary) */
.detail-grid-two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}

@media (max-width: 868px) {
  .detail-grid-two-col {
    grid-template-columns: 1fr;
  }
  .tracking-stepper {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .tracking-stepper::before {
    display: none;
  }
  .stepper-step {
    flex-direction: row;
    gap: 14px;
  }
  .step-label {
    margin-top: 0;
    text-align: left;
  }
}

.detail-section-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.detail-section-card h3 {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.item-row-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
  gap: 16px;
}

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

.item-img-box {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--bg-secondary);
}

.item-info-meta {
  flex: 1;
}

.item-title-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.item-sub-spec {
  font-size: 12px;
  color: var(--text-secondary);
}

.info-row-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.info-row-item .label {
  color: var(--text-secondary);
}

.info-row-item .val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.grand-total-row {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 2px solid var(--border-color);
  margin-top: 14px;
  font-size: 16px;
}

.grand-total-row .val {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--burnt-orange);
}
.track-order-page {
  background-color: var(--bg-secondary);
  min-height: 100vh;
  padding-top: 140px;
  padding-bottom: 90px;
  display: flex;
  flex-direction: column;
}

.track-order-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.track-order-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.track-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(198, 106, 43, 0.12);
  color: var(--burnt-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.track-order-card h1 {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.track-order-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 30px;
  line-height: 1.5;
}

.track-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.track-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.track-form-group label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
}

.track-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.track-input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-secondary);
}

.track-input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.track-input-wrapper input:focus {
  border-color: var(--burnt-orange);
  box-shadow: 0 0 0 3px rgba(198, 106, 43, 0.15);
}

.track-submit-btn {
  margin-top: 10px;
  background-color: var(--burnt-orange);
  color: #ffffff;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(198, 106, 43, 0.25);
}

.track-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(198, 106, 43, 0.35);
}

.track-help-text {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px dashed var(--border-color);
  padding-top: 16px;
}
.login-page {
  min-height: 100vh;
  display: flex;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.login-split {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.login-image-side {
  flex: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem;
}

.login-image-overlay {
  position: relative;
  z-index: 2;
  color: #fff; /* Always white on the dark image */
}

.login-image-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.login-brand-logo {
  max-width: 150px;
  margin-bottom: 2rem;
  filter: brightness(0) invert(1);
}

.login-image-overlay h2 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.login-image-overlay p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 400px;
}

.login-form-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 3rem 4rem;
  background-color: var(--bg-primary);
  max-width: 600px;
  position: relative;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s;
  width: fit-content;
}

.back-link:hover {
  color: var(--text-primary);
}

.login-form-container {
  margin: auto 0;
  width: 100%;
  max-width: 400px;
}

.login-form-container h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.login-subtitle {
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.admin-login-form .form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-secondary);
}

.admin-login-form .input-wrapper input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.admin-login-form .input-wrapper input:focus {
  outline: none;
  border-color: #1a2b4c;
  box-shadow: 0 0 0 3px rgba(26, 43, 76, 0.1);
}

body.dark-mode .admin-login-form .input-wrapper input:focus {
  border-color: #8ab4f8;
  box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.forgot-password {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: underline;
}

.login-submit-btn {
  width: 100%;
  padding: 1rem;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.login-submit-btn:hover {
  opacity: 0.8;
}

@media (max-width: 900px) {
  .login-split {
    flex-direction: column;
  }
  .login-image-side {
    min-height: 30vh;
    padding: 2rem;
    flex: none;
  }
  .login-image-overlay h2 {
    font-size: 2rem;
  }
  .login-brand-logo {
    max-width: 100px;
    margin-bottom: 1rem;
  }
  .login-form-side {
    max-width: 100%;
    padding: 2rem;
  }
}
.admin-sidebar {
  width: 260px;
  background-color: var(--admin-surface);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--admin-border);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.admin-sidebar.collapsed {
  width: 70px;
}

.logo-short { display: none; }
.admin-sidebar.collapsed .logo-full { display: none; }
.admin-sidebar.collapsed .logo-short { display: block; }

.admin-sidebar.collapsed .sidebar-subtitle,
.admin-sidebar.collapsed .sidebar-link span {
  display: none;
}

.sidebar-header {
  padding: 32px 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-sidebar:not(.collapsed) .sidebar-header {
  align-items: flex-start;
}

.sidebar-header h1 {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.sidebar-subtitle {
  font-size: 10px;
  color: var(--admin-text-muted);
  letter-spacing: 1.5px;
  font-weight: 600;
  white-space: nowrap;
}

.sidebar-nav {
  padding: 24px 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  color: var(--admin-text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.admin-sidebar.collapsed .sidebar-link {
  padding: 12px 0;
  justify-content: center;
}

.sidebar-link:hover {
  color: var(--admin-text);
  background-color: var(--admin-surface-hover);
}

.sidebar-link.active {
  color: var(--admin-text);
  background-color: var(--admin-surface-hover);
  border-left: 3px solid var(--admin-accent);
}

.admin-sidebar.collapsed .sidebar-link.active {
  border-left: none;
  border-right: 3px solid var(--admin-accent);
}

button.sidebar-link {
  width: 100%;
  background: transparent;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-footer .sidebar-link:not(.logout) {
  padding: 10px 12px;
  border-radius: 6px;
}

.admin-sidebar.collapsed .sidebar-footer .sidebar-link:not(.logout) {
  padding: 12px 0;
  justify-content: center;
}

.sidebar-link.logout {
  width: 100%;
  padding: 12px 16px;
  background-color: rgba(239, 68, 68, 0.12);
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  font-weight: 700;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.sidebar-link.logout:hover {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

.admin-sidebar.collapsed .sidebar-footer {
  padding: 16px 8px;
}

.admin-sidebar.collapsed .sidebar-link.logout {
  padding: 12px 0;
  justify-content: center;
  gap: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0,0,0,0.25);
  }

  .admin-sidebar.collapsed {
    transform: translateX(-100%);
    width: 260px; /* Keep full width to slide out smoothly without squishing */
    box-shadow: none;
  }

  .admin-sidebar.collapsed .logo-full { display: block !important; }
  .admin-sidebar.collapsed .logo-short { display: none !important; }
  .admin-sidebar.collapsed .sidebar-subtitle,
  .admin-sidebar.collapsed .sidebar-link span {
    display: inline !important;
  }
}
.admin-topbar {
  padding: 16px 24px;
  background-color: var(--admin-surface);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.icon-btn:hover {
  color: var(--admin-text);
}

.welcome-text {
  font-size: 14px;
  color: var(--admin-text-muted);
}

.welcome-text strong {
  color: var(--admin-text);
}

.topbar-center {
  flex: 0 1 400px;
}

.search-container {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--admin-text-muted);
}

.search-input {
  width: 100%;
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
  border-radius: 4px;
  padding: 10px 16px 10px 40px;
  color: var(--admin-text);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--admin-accent);
  background-color: var(--admin-surface);
}

.search-input::placeholder {
  color: var(--admin-text-muted);
}

.search-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1100;
  animation: fadeIn 0.15s ease-out;
}

.search-section {
  padding: 8px 0;
  border-bottom: 1px solid var(--admin-border);
}

.search-section:last-child {
  border-bottom: none;
}

.search-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 16px 6px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  color: var(--admin-text);
  font-size: 13px;
}

.search-result-item:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

body.dark-mode .search-result-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.search-result-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result-title {
  font-weight: 600;
  color: var(--admin-text);
}

.search-result-subtitle {
  font-size: 11px;
  color: var(--admin-text-muted);
}

.search-result-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text-muted);
  text-transform: uppercase;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.notification-btn {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #ef4444; /* Red dot */
  color: white;
  font-size: 10px;
  font-weight: bold;
  height: 16px;
  min-width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 4px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text);
}

.user-role {
  font-size: 10px;
  color: var(--admin-text-muted);
  letter-spacing: 0.5px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background-color: var(--admin-surface-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-text-muted);
  border: 2px solid var(--admin-border-dark);
}

@media (max-width: 768px) {
  .topbar-center {
    display: none;
  }
  .user-info {
    display: none;
  }
}

/* Notification Dropdown OP */
.notification-wrapper {
  position: relative;
}

@keyframes pulseBadge {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.pulse-badge {
  animation: pulseBadge 2s infinite ease-in-out;
}

.notification-btn.has-unread {
  color: #ef4444;
}

.op-notif-dropdown {
  position: absolute;
  top: 135%;
  right: 0;
  width: 380px;
  max-width: 90vw;
  background-color: var(--admin-surface, #ffffff);
  border: 1px solid var(--admin-border, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  overflow: hidden;
  animation: fadeInSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--admin-border, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--admin-bg, #f4f0e6);
}

.notif-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-header h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--admin-text, #1d1d1d);
}

.notif-count-pill {
  background-color: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.mark-all-read-btn {
  background: none;
  border: none;
  color: #3b82f6;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.mark-all-read-btn:hover {
  background-color: rgba(59, 130, 246, 0.1);
  text-decoration: underline;
}

.notif-filter-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background-color: var(--admin-surface, #ffffff);
  border-bottom: 1px solid var(--admin-border, #e2e8f0);
  overflow-x: auto;
}

.notif-tab {
  background: var(--admin-surface-hover, #f8fafc);
  border: 1px solid var(--admin-border, #e2e8f0);
  color: var(--admin-text-muted, #64748b);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.notif-tab.active {
  background-color: var(--admin-text, #0f172a);
  color: var(--admin-bg, #ffffff);
  border-color: var(--admin-text, #0f172a);
}

.notification-list {
  max-height: 380px;
  overflow-y: auto;
}

.notification-empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--admin-text-muted, #64748b);
}

.empty-notif-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.notification-empty p {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--admin-text, #1d1d1d);
}

.notification-empty span {
  font-size: 12px;
}

.notification-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--admin-border, #e2e8f0);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.notification-item:hover {
  background-color: var(--admin-surface-hover, #f8fafc);
}

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

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.notification-icon.order {
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.notification-icon.outofstock {
  background-color: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.notification-icon.lowstock {
  background-color: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.notification-content {
  flex: 1;
}

.notif-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.notif-badge-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.tag-order {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.tag-outofstock {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.tag-lowstock {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.notification-time {
  font-size: 10px;
  color: var(--admin-text-muted, #64748b);
}

.notification-content h4 {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--admin-text, #1d1d1d);
  line-height: 1.3;
}

.notification-content p {
  margin: 0;
  font-size: 12px;
  color: var(--admin-text-muted, #64748b);
  line-height: 1.4;
}

.dismiss-single-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted, #94a3b8);
  opacity: 0.6;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  height: max-content;
  transition: all 0.2s ease;
}

.dismiss-single-btn:hover {
  opacity: 1;
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .admin-topbar {
    padding: 12px 16px;
  }
}

@media (max-width: 768px) {
  .welcome-text {
    display: none;
  }

  .topbar-center {
    flex: 1;
    margin: 0 16px;
  }

  .topbar-right {
    gap: 12px;
  }
}

@media (max-width: 576px) {
  .admin-topbar {
    gap: 8px;
  }

  .topbar-center {
    margin: 0;
  }

  .search-input {
    padding-left: 32px;
    font-size: 12px;
  }
  
  .search-icon {
    left: 8px;
  }
  
  .notification-dropdown {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    width: auto;
    z-index: 1000;
  }
}

.accept-notif-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0;
}

.notification-item:hover .accept-notif-btn {
  opacity: 1;
}

.accept-notif-btn:hover {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}
.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--admin-bg);
  color: var(--admin-text);
  font-family: var(--font-primary, 'Barlow', sans-serif);
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.admin-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background-color: var(--admin-bg);
  transition: background-color 0.3s ease;
}

@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.admin-content > * {
  animation: fadeInSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Admin UI Components */
.action-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--admin-text);
  color: var(--admin-bg);
  border: 1px solid var(--admin-text);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.action-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--admin-text);
  border: 1px solid var(--admin-border-dark);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-btn-outline:hover {
  background-color: var(--admin-surface);
  border-color: var(--admin-text-muted);
}

.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 40px 20px;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

/* Global Custom Dropdown */
.custom-dropdown-wrapper {
  position: relative;
}

.custom-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.custom-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 100;
  padding: 8px 0;
}

.dropdown-group-label {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: bold;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.dropdown-item {
  padding: 8px 16px;
  font-size: 13px;
  color: var(--admin-text);
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-item:hover, .dropdown-item.active {
  background: rgba(0,0,0,0.05);
}

body.dark-mode .custom-dropdown-menu {
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

body.dark-mode .dropdown-item:hover, body.dark-mode .dropdown-item.active {
  background: rgba(255,255,255,0.05);
}

/* Responsive Styles */
.sidebar-mobile-backdrop {
  display: none;
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 992px) {
  .sidebar-mobile-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    z-index: 900;
    animation: backdropFadeIn 0.3s ease-out forwards;
  }
}
.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-header-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-titles h2 {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--admin-text);
  letter-spacing: 1px;
}

.dashboard-titles p {
  color: var(--admin-text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  background-color: transparent;
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text-muted);
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab.active {
  background-color: var(--admin-text);
  color: var(--admin-bg);
  border-color: var(--admin-text);
}

.filter-tab:hover:not(.active) {
  border-color: var(--admin-border-dark);
  color: var(--admin-text);
}

.metric-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.metric-icon-wrapper {
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-icon { background-color: rgba(234, 179, 8, 0.1); color: #eab308; }
.bag-icon { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.crown-icon { background-color: var(--admin-accent-bg); color: var(--admin-accent); }
.users-icon { background-color: rgba(34, 197, 94, 0.1); color: #22c55e; }

.metric-info h3 {
  font-size: 11px;
  color: var(--admin-text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--admin-text);
}

.metric-value.text-large {
  font-size: 18px;
}

.metric-trend {
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.metric-trend.positive { color: #4ade80; }
.metric-trend.negative { color: #ef4444; }
.metric-trend.neutral { color: #64748b; }

body:not(.dark-mode) .metric-trend.positive { color: #16a34a; }
body:not(.dark-mode) .metric-trend.negative { color: #dc2626; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.dashboard-chart-section {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 24px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.dashboard-chart-section h3 {
  font-size: 16px;
  color: var(--admin-text);
  margin-bottom: 24px;
  font-weight: 700;
}

.chart-header-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.chart-subtitle {
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

.chart-total-badge {
  background: var(--admin-surface-hover);
  border: 1px solid var(--admin-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--admin-text);
}

.chart-total-badge strong {
  color: var(--admin-accent, #dc5a1e);
  font-weight: 700;
}

.real-chart-container {
  height: 250px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-bottom: 1px solid var(--admin-border);
  padding-top: 20px;
  margin-top: 10px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
  padding: 0 10px;
}

.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.bar-wrapper {
  flex: 1;
  width: 100%;
  max-width: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.bar-fill {
  width: 100%;
  border-radius: 6px 6px 0 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: pointer;
}

.bar-fill.active-bar {
  background: linear-gradient(180deg, #dc5a1e 0%, #b84410 100%);
  box-shadow: 0 4px 12px rgba(220, 90, 30, 0.35);
}

.bar-fill.empty-bar {
  background: var(--admin-border-dark, #333333);
  opacity: 0.3;
}

.bar-fill:hover {
  transform: scaleY(1.05);
  filter: brightness(1.15);
}

.bar-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.bar-fill:hover .bar-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-12px);
}

.tooltip-date {
  font-weight: 700;
  color: #aaa;
  margin-bottom: 2px;
  font-size: 10px;
  text-transform: uppercase;
}

.tooltip-sales {
  font-weight: 800;
  font-size: 13px;
  color: #dc5a1e;
}

.tooltip-count {
  font-size: 10px;
  color: #ddd;
  margin-top: 2px;
}

.bar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--admin-text-muted);
  margin-top: 10px;
  text-transform: uppercase;
}

.dashboard-side-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.control-panel {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 24px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.control-panel h3 {
  font-size: 16px;
  color: var(--admin-text);
  margin-bottom: 16px;
  font-weight: 700;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.control-btn {
  background-color: var(--admin-surface-hover);
  border: 1px solid var(--admin-border);
  color: var(--admin-text-muted);
  border-radius: 8px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.control-btn:hover {
  background-color: var(--admin-border);
  color: var(--admin-text);
}

.control-btn span {
  font-size: 12px;
  font-weight: 600;
}

.recent-transactions {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 24px;
  flex: 1;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header-row h3 {
  font-size: 16px;
  color: var(--admin-text);
  font-weight: 700;
}

.see-all {
  font-size: 12px;
  color: var(--admin-accent);
  text-decoration: none;
  font-weight: 600;
}

.see-all:hover {
  text-decoration: underline;
}

.transaction-list {
  display: flex;
  flex-direction: column;
}

.transaction-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--admin-border);
}

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

.tx-icon {
  color: #16a34a;
  background-color: rgba(34, 197, 94, 0.1);
  border-radius: 50%;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

body.dark-mode .tx-icon {
  color: #4ade80;
  background-color: rgba(74, 222, 128, 0.1);
}

.tx-details {
  flex: 1;
}

.tx-details h4 {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.tx-status {
  font-size: 11px;
  color: var(--admin-text-muted);
}

.tx-amount {
  color: #16a34a;
  font-weight: 700;
  font-size: 13px;
}

body.dark-mode .tx-amount {
  color: #4ade80;
}

@media (max-width: 1200px) {
  .metric-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .metric-cards {
    grid-template-columns: 1fr;
  }
}
.pos-page {
  display: flex;
  height: calc(100vh - 73px);
  /* 100vh minus topbar height approx */
  margin: -24px;
  /* counteract AdminLayout padding */
}

/* LEFT COLUMN - CATALOG */
.pos-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
  background-color: var(--admin-bg);
}

.pos-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 24px;
  padding-top: 4px;
  padding-bottom: 12px;
  min-height: 48px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
}

.pos-filters::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.pos-filter-btn {
  background-color: var(--admin-surface, #1e1e1e);
  border: 1px solid var(--admin-border-dark, #333333);
  color: var(--admin-text-muted, #a0a0a0);
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  box-sizing: border-box;
}

.pos-filter-btn.active {
  background-color: var(--admin-accent, #dc5a1e);
  border-color: var(--admin-accent, #dc5a1e);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(220, 90, 30, 0.4);
}

.pos-filter-btn:hover:not(.active) {
  background-color: var(--admin-surface-hover, #2a2a2a);
  border-color: var(--admin-border-dark, #444444);
  color: var(--admin-text, #ffffff);
}

.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.pos-product-card {
  background-color: var(--admin-surface);
  border-radius: 2px;
  border: 1px solid var(--admin-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.pos-product-card:hover {
  transform: translateY(-2px);
  border-color: var(--admin-accent);
}

.pos-card-image {
  height: 160px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.pos-card-image.bg-gray {
  background-color: var(--admin-surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pos-badges {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.pos-stock-badge,
.pos-sold-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 4px 6px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.pos-stock-badge {
  background-color: #111111;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.pos-sold-badge {
  background-color: #ef4444;
  color: #fff;
}

.pos-card-info {
  padding: 16px;
}

.pos-card-info h4 {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--admin-text);
  letter-spacing: 0.5px;
}

.pos-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pos-card-footer .sku {
  font-size: 11px;
  color: var(--admin-text-muted);
  font-weight: 600;
}

.pos-card-footer .price {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--admin-accent);
}

/* RIGHT COLUMN - CART SIDEBAR */
.pos-cart-sidebar {
  width: 340px;
  background-color: var(--admin-surface);
  border-left: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--admin-text);
}

.clear-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.clear-btn:hover {
  color: #ef4444;
}

.pos-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px;
}

.pos-cart-item {
  padding: 16px 0;
  border-bottom: 1px dashed var(--admin-border);
}

.pos-cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.pos-cart-item-row h4 {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--admin-text);
  margin-right: 8px;
}

.pos-item-price {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--admin-text);
}

.pos-cart-item-meta {
  font-size: 10px;
  color: var(--admin-text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.pos-cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty-control {
  display: flex;
  align-items: center;
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
  border-radius: 4px;
}

.qty-control button {
  background: none;
  border: none;
  color: var(--admin-text);
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-control button:hover {
  background-color: var(--admin-surface-hover);
}

.qty-control span {
  font-size: 13px;
  font-weight: 700;
  color: var(--admin-text);
  width: 24px;
  text-align: center;
}

.remove-item-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 4px;
}

.remove-item-btn:hover {
  color: #ef4444;
}

.cart-footer {
  padding: 24px 20px;
  background-color: var(--admin-surface-hover);
  border-top: 1px solid var(--admin-border);
}

.section-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--admin-text-muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.payment-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.pay-btn {
  flex: 1;
  background-color: transparent;
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text-muted);
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-btn.active {
  border-color: var(--admin-accent);
  color: var(--admin-accent);
  background-color: rgba(198, 106, 43, 0.05);
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--admin-text-muted);
}

.summary-divider {
  border-top: 1px dashed var(--admin-border);
  margin: 4px 0;
}

.total-row {
  color: var(--admin-text);
  font-size: 16px;
  font-weight: 800;
  align-items: flex-end;
  margin-top: 8px;
}

.total-amount {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 32px;
  color: var(--admin-accent);
  line-height: 1;
}

.charge-btn {
  width: 100%;
  background-color: var(--admin-accent);
  color: #fff;
  border: none;
  padding: 16px;
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.charge-btn:hover {
  background-color: #a85a24;
}

@media (max-width: 1024px) {
  .pos-page {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 73px);
  }

  .pos-main {
    height: 55vh;
    flex: none;
  }

  .pos-cart-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--admin-border);
    height: auto;
    flex: none;
  }

  .cart-items {
    max-height: 300px;
  }
}

@media (max-width: 576px) {
  .pos-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .pos-card-image {
    height: 120px;
  }
  
  .pos-card-info {
    padding: 12px;
  }
  
  .pos-card-info h4 {
    font-size: 14px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .pos-card-price,
  .pos-card-footer .price {
    font-size: 15px;
  }
  
  .pos-card-sku,
  .pos-card-footer .sku {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .pos-card-footer {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 4px;
  }
}.products-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.products-header h2 {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--admin-text);
  letter-spacing: 0px;
}

.page-titles p {
  color: var(--admin-text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.products-header-actions {
  display: flex;
  gap: 12px;
}

.add-product-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--admin-accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-product-btn:hover {
  background-color: #a85a24;
}

.products-table-container {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow: hidden;
}

.products-table {
  width: 100%;
  border-collapse: collapse;
}

.products-table th {
  background-color: var(--admin-bg);
  color: var(--admin-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border-dark);
}

.products-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

.products-table tr:last-child td {
  border-bottom: none;
}

.products-table tr:hover td {
  background-color: var(--admin-surface-hover);
}

.table-img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
}

.table-product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.table-product-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text);
}

.table-sku {
  font-size: 11px;
  color: var(--admin-text-muted);
  font-family: monospace;
}

.table-barcode {
  background-color: #fff; /* Barcodes need high contrast */
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  mix-blend-mode: screen; /* In dark mode, this might look weird, so let's just make it white bg */
}

body.dark-mode .table-barcode {
  background-color: #eee;
}

.table-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text);
}

/* Product Form Modal - Full Screen with Internal Scroll */
.product-modal.xl-modal {
  width: 92vw;
  max-width: 1300px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  background-color: var(--admin-surface, #ffffff);
  border: 1px solid var(--admin-border, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  margin: auto;
  overflow: hidden;
}

.product-modal.xl-modal .modal-header {
  padding: 18px 28px;
  border-bottom: 1px solid var(--admin-border, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  background-color: var(--admin-bg, #f4f0e6);
  border-radius: 16px 16px 0 0;
}

.product-modal.xl-modal .modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--admin-text, #1d1d1d);
}

.product-modal.xl-modal .modal-body,
.product-modal.xl-modal .modal-scrollable {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  min-height: 0;
}

/* WYSIWYG PDP Live Preview */
.live-pdp-preview {
  padding: 32px 40px;
  max-width: none;
  margin: 0 auto;
}

.preview-breadcrumbs {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.invisible-select {
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(0,0,0,0.3);
  font-family: inherit;
  font-size: inherit;
  color: #666;
  text-transform: uppercase;
  outline: none;
  cursor: pointer;
  margin-left: 4px;
}

.pdp-top-section-preview {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 40px;
  margin-bottom: 40px;
}

.pdp-gallery-col-preview {
  display: flex;
  gap: 20px;
}

.pdp-thumbnails-preview {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 80px;
}

.pdp-thumb-preview {
  width: 80px;
  height: 80px;
  border: 1px solid #eee;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.pdp-thumb-preview.active {
  border-color: #1a1a1a;
}

.pdp-thumb-preview img {
  width: 80%;
  height: 80%;
  object-fit: cover;
}

.upload-thumb-preview {
  border: 1px dashed #ccc;
  background: transparent;
}

.upload-thumb-preview:hover {
  border-color: var(--admin-accent);
  color: var(--admin-accent);
}

.pdp-main-image-wrapper-preview {
  flex: 1;
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.pdp-main-image-preview {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.pdp-info-col-preview {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
}

.invisible-input {
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(0,0,0,0.2);
  outline: none;
  font-family: inherit;
  margin-bottom: 15px;
}

.invisible-input:focus {
  border-bottom: 1px solid #1a1a1a;
}

.pdp-title-preview {
  font-size: 2.2rem;
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  width: 100%;
}

.price-input-wrapper {
  display: flex;
  align-items: baseline;
  margin-bottom: 30px;
}

.currency-symbol {
  font-size: 1.1rem;
  color: #666;
  margin-right: 4px;
}

.pdp-price-preview {
  font-size: 1.1rem;
  color: #666;
  width: 150px;
}

.pdp-size-section-preview {
  margin-bottom: 30px;
}

.size-header-preview {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #1a1a1a;
}

.pdp-size-grid-preview {
  display: flex;
  gap: 10px;
}

.pdp-size-btn-preview {
  width: 45px;
  height: 45px;
  border: 1px solid #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: #ccc;
  cursor: pointer;
  background: transparent;
}

.pdp-size-btn-preview.selected {
  border-color: #1a1a1a;
  color: #1a1a1a;
  border-width: 2px;
  font-weight: bold;
}

.stock-input-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.stock-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
}

.small-number-input {
  width: 80px;
  text-align: center;
  margin-bottom: 0 !important;
}

.pdp-actions-preview {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.pdp-qty-selector-preview {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  width: 120px;
  justify-content: space-between;
  height: 50px;
}

.pdp-qty-selector-preview button {
  background: none;
  border: none;
  width: 40px;
  color: #ccc;
}

.pdp-qty-selector-preview span {
  font-weight: 600;
  color: #ccc;
}

.add-to-cart-btn-preview {
  flex: 1;
  height: 50px;
  background-color: #1a1a1a;
  color: #fff;
  border: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: not-allowed;
  opacity: 0.5;
}

.pdp-accordions-preview {
  border-top: 1px solid #ddd;
}

.accordion-preview {
  border-bottom: 1px solid #ddd;
}

.accordion-header-preview {
  padding: 20px 0;
  font-size: 0.9rem;
  color: #1a1a1a;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.invisible-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(0,0,0,0.2);
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  color: #666;
  resize: vertical;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.invisible-textarea:focus {
  border-bottom: 1px solid #1a1a1a;
}

/* Aesthetic Details Live Preview */
.aesthetic-upload-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}

.aesthetic-upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
}

.aesthetic-upload-wrapper:hover .aesthetic-upload-overlay {
  opacity: 1;
}

.aesthetic-upload-overlay span {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}

.preview-specs-container {
  background-color: #fff;
  border: 1px solid var(--admin-border);
  padding: 0;
  border-radius: 0;
  color: #1a1a1a;
  margin-top: 10px;
}

body.dark-mode .preview-specs-container {
  background-color: #1a1a1a;
  border-color: #333;
  color: #fff;
}

.specs-split-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.specs-image-col-preview {
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.specs-large-img-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specs-text-col-preview {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.preview-specs-container .specs-highlight-text-preview {
  font-size: 1.4rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 40px;
  line-height: 1.4;
  text-transform: uppercase;
}

body.dark-mode .preview-specs-container .specs-highlight-text-preview {
  color: #fff;
}

.preview-spec-block {
  margin-bottom: 30px;
}

.preview-spec-block h4 {
  font-size: 1.2rem;
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  color: #1a1a1a;
  margin-bottom: 15px;
  text-transform: uppercase;
}

body.dark-mode .preview-spec-block h4 {
  color: #fff;
}

.preview-spec-block ul {
  padding-left: 15px;
  color: #666;
  font-size: 0.9rem;
  list-style-type: disc;
}

body.dark-mode .preview-spec-block ul {
  color: #ccc;
}

.preview-li-input {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  position: relative;
}

.preview-li-input input {
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
  color: #666;
  font-size: 0.9rem;
  width: 90%;
  outline: none;
  padding: 2px 0;
  font-family: inherit;
  margin: 0 !important;
}

body.dark-mode .preview-li-input input {
  border-bottom-color: rgba(255, 255, 255, 0.3);
  color: #ccc;
}

.preview-li-input input::placeholder {
  color: rgba(0, 0, 0, 0.3);
  font-style: italic;
}

body.dark-mode .preview-li-input input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.preview-li-input input:focus {
  border-bottom: 1px solid #1a1a1a;
  color: #1a1a1a;
}

body.dark-mode .preview-li-input input:focus {
  border-bottom-color: #fff;
  color: #fff;
}

.preview-li-input .remove-item-btn {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 4px;
  margin-left: 4px;
  opacity: 0.5;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}

.preview-li-input:hover .remove-item-btn {
  opacity: 1;
}

.add-preview-btn {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #666;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 10px;
  margin-left: -15px;
  transition: all 0.2s;
}

body.dark-mode .add-preview-btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ccc;
}

.add-preview-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
  border-color: #1a1a1a;
}

body.dark-mode .add-preview-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.xl-modal {
  width: 1200px;
  max-width: 95vw;
  margin: auto;
}

.stock-pill {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.stock-pill.low-stock {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.category-modal {
  width: 400px;
  padding-bottom: 10px;
}

.add-cat-form {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: stretch;
}

.add-cat-form input {
  flex: 1;
  margin-bottom: 0 !important;
  padding: 10px 14px;
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  max-height: 240px;
  overflow-y: auto;
  background-color: var(--admin-surface);
}

.cat-list li {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 16px;
  border-bottom: 1px solid var(--admin-border);
  transition: background-color 0.2s;
}

.cat-list li:last-child {
  border-bottom: none;
}

.cat-list li:hover {
  background-color: var(--admin-surface-hover);
}

.cat-list li span {
  font-weight: 500;
  color: var(--admin-text);
  font-size: 14px;
}

.add-cat-form input:focus {
  border-color: var(--accent-primary);
}

.add-cat-form .save-modal-btn {
  margin: 0;
  padding: 0 20px;
  border-radius: 6px;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn.edit {
  color: var(--admin-text-muted);
}

.action-btn.edit:hover {
  background-color: var(--admin-bg);
  color: var(--admin-text);
}

.action-btn.delete {
  color: var(--admin-text-muted);
}

.action-btn.delete:hover {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.empty-table {
  text-align: center;
  color: var(--admin-text-muted);
  padding: 40px !important;
}

/* Modals */
.form-row {
  display: flex;
  gap: 16px;
}

.form-group.half {
  flex: 1;
}

.live-barcode-preview {
  margin-top: 8px;
  padding: 12px;
  background-color: #fff;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  border: 1px dashed var(--admin-border-dark);
}

/* Image Upload Grid */
.image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.img-preview {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid var(--admin-border);
}

.main-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--admin-accent);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.remove-img-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.upload-box {
  width: 120px;
  height: 120px;
  border: 2px dashed var(--admin-border-dark);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--admin-text-muted);
  transition: all 0.2s;
  background: var(--admin-surface);
}

.upload-box:hover {
  border-color: var(--admin-accent);
  color: var(--admin-accent);
}

.upload-box span {
  font-size: 12px;
  margin-top: 8px;
  font-weight: 500;
}

.custom-breadcrumb-select-wrapper {
  position: relative;
  display: inline-block;
}

.breadcrumb-dropdown-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #666;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
  text-transform: uppercase;
}

.breadcrumb-dropdown-btn:hover {
  background: rgba(0,0,0,0.05);
  color: #111;
}

.breadcrumb-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 100;
  padding: 6px;
  display: flex;
  flex-direction: column;
  max-height: 200px;
  overflow-y: auto;
}

.breadcrumb-dropdown-item {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  text-transform: uppercase;
}

.breadcrumb-dropdown-item:hover {
  background: #f5f5f5;
  color: #111;
}

.breadcrumb-dropdown-item.selected {
  background: #1a1a1a;
  color: #fff;
}

/* Sold Out Marketing Toggle Button */
.action-btn.soldout-toggle-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid var(--admin-border, #ddd);
  background-color: var(--admin-surface, #fff);
  color: var(--admin-text-muted, #777);
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn.soldout-toggle-btn:hover {
  background-color: var(--admin-surface-hover, #f0f0f0);
  color: var(--admin-text, #111);
  border-color: var(--admin-border-dark, #aaa);
}

.action-btn.soldout-toggle-btn.is-soldout {
  background-color: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.action-btn.soldout-toggle-btn.is-soldout:hover {
  background-color: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
}

.soldout-btn-text {
  font-size: 10px;
}

.preview-breadcrumbs {
  display: flex;
  align-items: center;
  font-family: inherit;
  margin-bottom: 24px;
}

.breadcrumb-link {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.breadcrumb-separator {
  font-size: 11px;
  font-weight: 600;
  color: #ccc;
  margin: 0 6px;
}

/* Dark Mode Overrides for Live PDP Preview Modal */
body.dark-mode .modal-body {
  background-color: var(--admin-surface);
  color: var(--admin-text);
}

body.dark-mode .live-pdp-preview {
  color: var(--admin-text);
}

body.dark-mode .pdp-title-preview,
body.dark-mode .size-header-preview,
body.dark-mode .stock-label,
body.dark-mode .accordion-header-preview {
  color: #fff;
}

body.dark-mode .pdp-price-preview,
body.dark-mode .currency-symbol {
  color: #ccc;
}

body.dark-mode .pdp-thumb-preview {
  background-color: #2a2a2a;
  border-color: #444;
}

body.dark-mode .pdp-thumb-preview.active {
  border-color: #fff;
}

body.dark-mode .upload-thumb-preview {
  border-color: #555;
  color: #aaa;
}

body.dark-mode .invisible-input {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .invisible-input:focus {
  border-bottom-color: #fff;
}

body.dark-mode .pdp-size-btn-preview {
  border-color: #444;
  color: #888;
}

body.dark-mode .pdp-size-btn-preview.selected {
  border-color: #fff;
  color: #fff;
}

body.dark-mode .pdp-qty-selector-preview {
  border-color: #444;
}

body.dark-mode .add-to-cart-btn-preview {
  background-color: #fff;
  color: #1a1a1a;
}

body.dark-mode .pdp-accordions-preview,
body.dark-mode .accordion-preview {
  border-color: #444;
}

body.dark-mode .invisible-textarea {
  color: #ccc;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .invisible-textarea:focus {
  border-bottom-color: #fff;
}

body.dark-mode .breadcrumb-link {
  color: #aaa;
}

body.dark-mode .breadcrumb-dropdown-btn {
  color: #aaa;
}

body.dark-mode .breadcrumb-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

body.dark-mode .breadcrumb-dropdown-menu {
  background: #2a2a2a;
  border-color: #444;
}

body.dark-mode .breadcrumb-dropdown-item {
  color: #ccc;
}

body.dark-mode .breadcrumb-dropdown-item:hover {
  background: #333;
  color: #fff;
}

body.dark-mode .breadcrumb-dropdown-item.selected {
  background: #fff;
  color: #1a1a1a;
}

/* Size Guide Section */
.metric-input-wrapper {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.metric-input-preview {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex: 1;
  font-size: 13px;
  background: #fff;
  color: #1a1a1a;
  outline: none;
}

.add-metric-btn-preview {
  padding: 6px 12px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.size-guide-table-wrapper {
  overflow-x: auto;
  border: 1px solid #eee;
  border-radius: 4px;
}

.size-guide-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.size-guide-admin-table th {
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  padding: 8px;
  background: #f9f9f9;
  text-align: center;
  color: #1a1a1a;
}

.size-guide-admin-table th:first-child {
  text-align: center;
}

.metric-header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.remove-metric-btn {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.size-name-cell {
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  padding: 8px;
  font-weight: bold;
  color: #1a1a1a;
  text-align: center;
}

.size-guide-admin-table td {
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  padding: 0;
}

.size-guide-input-preview {
  width: 100%;
  padding: 8px;
  border: none;
  background: transparent;
  text-align: center;
  box-sizing: border-box;
  color: #1a1a1a;
  outline: none;
}

.size-guide-empty-state {
  font-size: 11px;
  color: #888;
  text-align: center;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
}

/* Size Guide Dark Mode Overrides */
body.dark-mode .metric-input-preview {
  background: transparent;
  border-color: #444;
  color: #fff;
}

body.dark-mode .add-metric-btn-preview {
  background: #fff;
  color: #1a1a1a;
}

body.dark-mode .size-guide-table-wrapper {
  border-color: #444;
}

body.dark-mode .size-guide-admin-table th {
  background: #2a2a2a;
  border-color: #444;
  color: #fff;
}

body.dark-mode .size-name-cell {
  border-color: #444;
  color: #fff;
}

body.dark-mode .size-guide-admin-table td {
  border-color: #444;
}

body.dark-mode .size-guide-input-preview {
  color: #ccc;
}

body.dark-mode .size-guide-empty-state {
  background: #2a2a2a;
  color: #aaa;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .products-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px;
  }

  .products-header-actions {
    display: flex;
    flex-direction: column; /* Stack buttons on smaller screens to prevent text squish */
    gap: 12px;
    width: 100%;
  }

  .products-header-actions button {
    width: 100%;
    justify-content: center;
  }

  .products-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .products-table {
    min-width: 700px !important;
  }

  /* Product Modal Responsiveness */
  .pdp-top-section-preview {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pdp-gallery-col-preview {
    flex-direction: column-reverse;
  }

  .pdp-thumbnails-preview {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .pdp-thumb-preview {
    width: 60px;
    height: 80px;
    flex-shrink: 0;
  }

  .pdp-size-grid-preview {
    flex-wrap: wrap;
  }

  .modal-footer {
    flex-direction: column;
    justify-content: stretch;
    gap: 12px;
  }

  .modal-footer button {
    width: 100%;
    margin-left: 0;
  }
  
  .sku-hint {
    text-align: center;
    margin-bottom: 8px;
    width: 100%;
  }
  
  .stock-input-wrapper {
    flex-wrap: wrap;
  }
}
.orders-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}



.orders-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 12px 20px;
  border-radius: 8px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-text-muted);
}

.search-box input {
  background: none;
  border: none;
  color: var(--admin-text);
  font-size: 14px;
  outline: none;
  width: 250px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group select {
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.orders-table-container {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow: hidden;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th {
  background-color: var(--admin-bg);
  color: var(--admin-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 20px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border-dark);
}

.orders-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

.orders-table tr:last-child td {
  border-bottom: none;
}

.orders-table tr:hover td {
  background-color: var(--admin-surface-hover);
}

.order-id {
  font-family: monospace;
  font-weight: 600;
  color: var(--admin-text);
  font-size: 14px;
}

.order-date {
  font-size: 13px;
  color: var(--admin-text-muted);
}

.order-total {
  font-weight: 700;
  color: var(--admin-text);
  font-size: 14px;
}

.source-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.source-badge.pos {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6; /* Blue */
}

.source-badge.online {
  background-color: rgba(168, 90, 36, 0.1);
  color: var(--admin-accent); /* Orange/Brand */
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.completed {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-badge.pending {
  background-color: rgba(234, 179, 8, 0.1);
  color: #eab308;
}

.view-details-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--admin-accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.view-details-btn:hover {
  text-decoration: underline;
}

/* Order Modal specifics */
.order-modal {
  background-color: var(--admin-surface);
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border: 1px solid var(--admin-border);
}

.modal-title-group h3 {
  font-size: 20px;
  color: var(--admin-text);
  margin-bottom: 4px;
}

.order-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background-color: var(--admin-bg);
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 24px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 11px;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.meta-value {
  font-size: 14px;
  color: var(--admin-text);
  font-weight: 500;
}

.order-items-list h4 {
  font-size: 14px;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--admin-border-dark);
  padding-bottom: 8px;
}

.receipt-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

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

.receipt-item-name {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.receipt-item-name .qty {
  font-weight: 700;
  color: var(--admin-text);
}

.name-sku {
  display: flex;
  flex-direction: column;
}

.name-sku span {
  font-size: 14px;
  color: var(--admin-text);
  font-weight: 500;
}

.name-sku small {
  font-size: 11px;
  color: var(--admin-text-muted);
  font-family: monospace;
}

.receipt-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--admin-text);
}

.order-summary-box {
  background-color: var(--admin-bg);
  padding: 16px;
  border-radius: 6px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--admin-text-muted);
  margin-bottom: 8px;
}

.summary-row.grand-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--admin-border-dark);
  font-size: 18px;
  font-weight: 700;
  color: var(--admin-text);
}

.print-footer {
  justify-content: flex-end;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .orders-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .orders-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .filter-group {
    width: 100%;
    justify-content: flex-end;
  }

  .orders-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .orders-table {
    min-width: 800px !important;
  }
}
.discount-page {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.discount-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.discount-header .page-titles h2 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.discount-header .page-titles p {
  color: var(--admin-text-muted);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.promo-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 12px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--admin-surface, #ffffff);
  border: 1px solid var(--admin-border, #e2e8f0);
  color: var(--admin-text-muted, #64748b);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background-color: var(--admin-surface-hover, #f8fafc);
  color: var(--admin-text, #1e293b);
}

.tab-btn.active {
  background-color: var(--admin-text, #0f172a);
  color: var(--admin-bg, #ffffff);
  border-color: var(--admin-text, #0f172a);
}

.table-container {
  background-color: var(--admin-surface, #ffffff);
  border-radius: 12px;
  border: 1px solid var(--admin-border, #e2e8f0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  overflow-x: auto;
  margin-top: 12px;
}

.promo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.promo-table th {
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 700;
  color: var(--admin-text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--admin-surface-hover, #f8fafc);
  border-bottom: 1px solid var(--admin-border, #e2e8f0);
  white-space: nowrap;
}

.promo-table td {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--admin-text, #1e293b);
  border-bottom: 1px solid var(--admin-border, #e2e8f0);
  vertical-align: middle;
}

.promo-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.promo-code {
  background-color: rgba(235, 255, 0, 0.1);
  color: var(--admin-accent);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 1px;
}

.date-range {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.date-range span:last-child {
  color: var(--admin-text-muted);
}

.status-toggle {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.status-toggle.active {
  background-color: rgba(0, 200, 83, 0.1);
  color: #00c853;
  border-color: rgba(0, 200, 83, 0.2);
}

.status-toggle.inactive {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--admin-text-muted);
  border-color: var(--admin-border);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.action-buttons button {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.action-buttons button:hover {
  background-color: var(--admin-bg);
  color: var(--admin-text);
}

.action-buttons button.delete:hover {
  color: #ff3333;
}

.empty-state {
  text-align: center;
  padding: 40px !important;
  color: var(--admin-text-muted);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .discount-page {
    padding: 16px;
  }

  .discount-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .header-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }

  .header-actions button {
    flex: 1;
    min-width: 140px;
    justify-content: center;
    padding: 10px;
  }

  .promo-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none; /* Firefox */
  }
  
  .promo-tabs::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
  }

  .tab-btn {
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: var(--admin-bg-light);
  }
  
  .tab-btn.active {
    background-color: var(--admin-text);
    color: var(--admin-bg);
  }

  .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .promo-table {
    min-width: 800px !important;
  }
}
.campaign-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px);
}

.campaign-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.campaign-titles h2 {
  font-family: var(--font-heading, 'Josefin Sans', sans-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--admin-text);
  letter-spacing: 0px;
}

.campaign-titles p {
  color: var(--admin-text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.add-block-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 8px 16px;
  border-radius: 6px;
}

.add-block-menu span {
  font-size: 12px;
  font-weight: 700;
  color: var(--admin-text-muted);
  margin-right: 8px;
}

.add-mini-btn {
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.add-mini-btn:hover {
  background-color: var(--admin-accent);
  color: #fff;
  border-color: var(--admin-accent);
}

.save-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--admin-accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.save-btn:hover {
  background-color: #a85a24;
}

.campaign-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Canvas */
.builder-canvas {
  flex: 1;
  background-color: #fff; /* White bg for preview accuracy */
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* Fix for live components rendered inside the builder */
.builder-canvas .hero {
  height: 400px !important;
  min-height: 400px !important;
}

.builder-canvas .banner-section {
  margin-bottom: 20px !important;
}

.builder-canvas .banner-container {
  height: 300px !important;
  min-height: 300px !important;
}

.builder-canvas .hero-content h2 {
  font-size: 2.5rem !important;
}

/* Match body dark-mode for accurate preview if needed */
body.dark-mode .builder-canvas {
  background-color: #000;
}

.blocks-container {
  display: flex;
  flex-direction: column;
}

.empty-canvas {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--admin-text-muted);
  text-align: center;
}

/* WYSIWYG Block */
.wysiwyg-block {
  position: relative;
  /* Prevent interaction with child links/buttons while dragging/editing */
}

.wysiwyg-block.dragging {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.wysiwyg-content {
  pointer-events: none; /* Make children non-interactive in builder */
}

.wysiwyg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.05);
  border: 2px dashed var(--admin-accent);
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 16px;
  pointer-events: auto; /* Allow interaction with overlay buttons */
}

.wysiwyg-controls {
  display: flex;
  gap: 8px;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.control-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

.control-btn:hover {
  background-color: var(--admin-bg);
  color: var(--admin-text);
}

.control-btn.drag-handle {
  cursor: grab;
}

.control-btn.drag-handle:active {
  cursor: grabbing;
}

.control-btn.delete-btn:hover {
  color: #ff4444;
  background-color: rgba(239, 68, 68, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .campaign-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .add-block-menu {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .save-btn {
    width: 100%;
    justify-content: center;
  }

  .campaign-layout {
    flex-direction: column;
    height: auto;
  }

  .builder-canvas {
    height: 50vh;
  }
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 20px;
}

.edit-modal {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  width: 500px;
  max-width: 90vw;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  margin: auto;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 16px;
  color: var(--admin-text);
  font-weight: 700;
}

.close-modal-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
}

.close-modal-btn:hover {
  color: var(--admin-text);
}

.modal-body {
  padding: 24px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cancel-btn {
  background: transparent;
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text);
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.save-modal-btn {
  background: var(--admin-accent);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.save-modal-btn:hover {
  background: #a85a24;
}

/* Forms */
.config-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group.row-align {
  flex-direction: row;
  align-items: center;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--admin-text-muted);
  letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group select {
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--admin-accent);
}

.help-text {
  font-size: 11px;
  color: var(--admin-text-muted);
}
.customers-page {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.customers-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.customers-header .page-titles h2 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.customers-header .page-titles p {
  color: var(--admin-text-muted);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--admin-text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
}

.metric-icon.active-icon {
  background-color: rgba(0, 200, 83, 0.1);
  color: #00c853;
}

.metric-info h3 {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.metric-info .metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--admin-text);
  margin: 0;
}

.customers-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-text-muted);
}

.search-box input {
  background: none;
  border: none;
  color: var(--admin-text);
  font-size: 14px;
  outline: none;
  width: 250px;
}

.filter-group select {
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.table-container {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow-x: auto;
}

.customers-table {
  width: 100%;
  border-collapse: collapse;
}

.customers-table th,
.customers-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
}

.customers-table th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.customers-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.customer-info {
  display: flex;
  flex-direction: column;
}

.customer-id {
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  font-family: monospace;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.spent-amount {
  font-weight: 600;
  color: var(--admin-accent);
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.active {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.status-badge.inactive {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--admin-text-muted);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.action-buttons button {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.action-buttons button:hover {
  background-color: var(--admin-bg);
  color: var(--admin-text);
}

.action-buttons button.delete:hover {
  color: #ff3333;
}

.empty-state {
  text-align: center;
  padding: 40px !important;
  color: var(--admin-text-muted);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .customers-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .customers-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  .filter-group {
    width: 100%;
    justify-content: flex-end;
  }

  .customers-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .customers-table {
    min-width: 800px !important;
  }
}
.reports-page {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.reports-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.reports-header .page-titles h2 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.reports-header .page-titles p {
  color: var(--admin-text-muted);
}

.reports-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 12px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--admin-text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background-color: var(--admin-bg-light);
  color: var(--admin-text);
}

.tab-btn.active {
  background-color: var(--admin-accent);
  color: #000;
}

.tab-content {
  animation: fadeInReport 0.3s ease;
}

@keyframes fadeInReport {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Overview Tab */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  border-color: var(--admin-border-dark);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--admin-text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
}

.metric-icon.highlight {
  background-color: var(--admin-accent-bg);
  color: var(--admin-accent);
}

.metric-info h3 {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.metric-info .metric-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--admin-text);
  margin: 0;
}

.report-section {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.section-header {
  margin-bottom: 20px;
}

.section-header h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.section-header p {
  font-size: 0.9rem;
  color: var(--admin-text-muted);
}

/* Channel Split */
.channel-bar-wrapper {
  display: flex;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: var(--admin-bg);
}

.channel-bar {
  height: 100%;
  transition: width 1s ease-in-out;
}

.channel-bar.pos-bar {
  background-color: #3b82f6; /* Blue for POS */
}

.channel-bar.online-bar {
  background-color: var(--admin-accent); /* Accent for Online */
}

.channel-legend {
  display: flex;
  gap: 32px;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
}

.legend-dot.pos { background-color: #3b82f6; }
.legend-dot.online { background-color: var(--admin-accent); }

.legend-text {
  display: flex;
  flex-direction: column;
}

.legend-text strong {
  font-size: 0.95rem;
  color: var(--admin-text);
}

.legend-text span {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

/* Products Tab */
.product-reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.report-card {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.report-card.full-width {
  grid-column: 1 / -1;
}

.card-header {
  margin-bottom: 20px;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.title-with-icon h3 {
  font-size: 1.1rem;
}

.card-header p {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
  font-size: 0.9rem;
}

.report-table th {
  color: var(--admin-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.report-table tr:last-child td {
  border-bottom: none;
}

.product-name-sku {
  display: flex;
  flex-direction: column;
}

.product-name-sku strong {
  font-weight: 500;
  color: var(--admin-text);
}

.product-name-sku span {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  font-family: monospace;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.success { background-color: rgba(34, 197, 94, 0.1); color: #22c55e; }
.badge.neutral { background-color: rgba(255, 255, 255, 0.05); color: var(--admin-text-muted); }
.badge.danger { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* Alerts Grid */
.alerts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.alert-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.alert-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--admin-text);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--admin-border);
}

.alert-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 6px;
  background-color: var(--admin-bg);
  border-left: 3px solid transparent;
}

.alert-item.danger {
  border-left-color: #ef4444;
}

.alert-item.warning {
  border-left-color: #eab308;
}

.alert-item-info {
  display: flex;
  flex-direction: column;
}

.alert-item-info strong {
  font-size: 0.9rem;
}

.alert-item-info span {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  font-family: monospace;
}

.alert-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ef4444;
}

.alert-badge.warning {
  color: #eab308;
}

.empty-state {
  text-align: center;
  padding: 40px !important;
  color: var(--admin-text-muted);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .reports-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .reports-tabs {
    flex-wrap: wrap;
  }

  .reports-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .date-filters {
    flex-wrap: wrap;
    width: 100%;
  }

  .export-btn {
    width: 100%;
    justify-content: center;
  }

  .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .sales-table, .inventory-table {
    min-width: 800px !important;
  }
}

.empty-state-small {
  color: var(--admin-text-muted);
  font-size: 0.85rem;
  font-style: italic;
  padding: 10px 0;
}
.activity-log-page {
  padding: 24px;
  max-width: 1500px;
  margin: 0 auto;
  color: var(--admin-text);
  animation: fadeInSlideUp 0.35s ease forwards;
}

@keyframes fadeInSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.header-title h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--admin-text);
  letter-spacing: -0.01em;
}

.header-title p {
  color: var(--admin-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.export-csv-btn, .clear-logs-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  box-sizing: border-box;
}

.export-csv-btn {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.export-csv-btn:hover:not(:disabled) {
  background: #10b981;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.clear-logs-btn {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.clear-logs-btn:hover:not(:disabled) {
  background: #ef4444;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.export-csv-btn:disabled, .clear-logs-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Metrics Grid */
.activity-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-box {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  overflow: hidden;
}

.metric-box:hover {
  transform: translateY(-3px);
  border-color: var(--admin-border-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon.total { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.metric-icon.pos { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.metric-icon.prod { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.metric-icon.sys { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.metric-content {
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-content h4 {
  font-size: 0.78rem;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 4px 0;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-content span {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--admin-text);
  white-space: nowrap;
}

/* Toolbar & Category Pills */
.activity-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  color: var(--admin-text-muted);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.cat-pill:hover {
  border-color: var(--admin-border-dark);
  color: var(--admin-text);
  background-color: var(--admin-surface-hover);
}

.cat-pill.active {
  background-color: var(--admin-accent, #3b82f6);
  border-color: var(--admin-accent, #3b82f6);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(198, 106, 43, 0.25);
}

.pill-count {
  background-color: var(--admin-bg);
  color: var(--admin-text);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.cat-pill.active .pill-count {
  background-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.activity-toolbar .search-box {
  display: flex;
  align-items: center;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 0 16px;
  height: 42px;
  width: 320px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.activity-toolbar .search-box:focus-within {
  border-color: var(--admin-accent, #3b82f6);
  box-shadow: 0 0 0 3px var(--admin-accent-bg);
}

.activity-toolbar .search-box input {
  background: transparent;
  border: none;
  color: var(--admin-text);
  padding-left: 10px;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}

.activity-toolbar .search-box input::placeholder {
  color: var(--admin-text-muted);
}

/* Activity Table */
.activity-table-container {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.desktop-table-view {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.mobile-feed-view {
  display: none;
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 900px;
}

.activity-table th {
  background-color: var(--admin-bg);
  color: var(--admin-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--admin-border-dark);
}

.activity-row {
  border-bottom: 1px solid var(--admin-border);
  transition: background-color 0.15s ease;
}

.activity-row:last-child {
  border-bottom: none;
}

.activity-row:hover td {
  background-color: var(--admin-surface-hover);
}

.activity-row td {
  padding: 16px 20px;
  vertical-align: middle;
}

.col-time {
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  height: 60px;
}

.time-ico {
  color: #3b82f6;
  flex-shrink: 0;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
}

.badge-pos { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-produk { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-pesanan { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.badge-promo { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.badge-pelanggan { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.badge-settings { background: var(--admin-bg); color: var(--admin-text); border: 1px solid var(--admin-border); }

.log-title {
  font-weight: 700;
  color: var(--admin-text);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.log-desc {
  color: var(--admin-text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border);
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--admin-text);
  width: fit-content;
}

.status-ico {
  vertical-align: middle;
}
.status-ico.success { color: #10b981; }
.status-ico.warning { color: #f59e0b; }
.status-ico.info { color: #3b82f6; }

/* Empty State */
.no-activity-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--admin-text-muted);
}

.empty-ico-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--admin-text-muted);
}

.no-activity-state h3 {
  font-size: 1.25rem;
  color: var(--admin-text);
  margin: 0 0 8px 0;
  font-weight: 700;
}

.no-activity-state p {
  font-size: 0.9rem;
  margin: 0;
}

/* ====================================================
   DESKTOP TABLET & MOBILE OPTIMIZATIONS
   ==================================================== */

@media (max-width: 1200px) {
  .activity-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .desktop-table-view {
    display: none !important;
  }

  .mobile-feed-view {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
  }

  .activity-table-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  /* Toolbar optimization */
  .activity-toolbar {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 14px;
  }

  .activity-toolbar .search-box {
    width: 100% !important;
    height: 44px;
  }

  /* Horizontal swipeable filter pills */
  .category-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  .category-pills::-webkit-scrollbar {
    display: none;
  }

  .cat-pill {
    flex-shrink: 0;
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 8px 14px;
    font-size: 0.84rem;
  }

  /* Header adjustments */
  .activity-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .export-csv-btn, .clear-logs-btn {
    justify-content: center;
    width: 100%;
    padding: 11px 12px;
    font-size: 0.85rem;
  }
}

/* Mobile Log Card Styling */
.mobile-log-card {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.mobile-log-card:hover {
  border-color: var(--admin-border-dark);
  transform: translateY(-2px);
}

.mobile-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--admin-border);
  padding-bottom: 12px;
  gap: 8px;
}

.mobile-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--admin-text-muted);
  flex-shrink: 0;
}

.mobile-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.mobile-title-row .log-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--admin-text);
  margin: 0;
  line-height: 1.35;
}

.mobile-title-row .mobile-status {
  flex-shrink: 0;
  margin-top: 1px;
}

.mobile-card-content .log-desc {
  font-size: 0.84rem;
  color: var(--admin-text-muted);
  margin: 0;
  line-height: 1.45;
}

.mobile-card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 4px;
}

/* Compact Mobile (iPhone & Small Devices) */
@media (max-width: 576px) {
  .activity-log-page {
    padding: 14px;
  }

  .header-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .header-title {
    gap: 12px;
  }

  .header-title h2 {
    font-size: 1.35rem;
  }

  .header-title p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .activity-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .metric-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 12px;
    gap: 10px;
  }

  .metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .metric-content h4 {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
  }

  .metric-content span {
    font-size: 1.15rem;
  }
}
.settings-page {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.settings-header .page-titles h2 {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.settings-header .page-titles p {
  color: var(--admin-text-muted);
}

.settings-container {
  display: flex;
  gap: 30px;
  background-color: transparent;
}

/* Left Sidebar Navigation */
.settings-nav {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  color: var(--admin-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-align: left;
}

.settings-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--admin-text);
}

.settings-nav-item.active {
  background-color: var(--admin-surface);
  color: var(--admin-accent);
  border: 1px solid var(--admin-border);
}

.settings-nav-item.logout-btn {
  margin-top: auto;
  width: 100%;
  padding: 12px 20px;
  background-color: rgba(239, 68, 68, 0.12);
  color: #ef4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  justify-content: flex-start;
}

.settings-nav-item.logout-btn:hover {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
  transform: translateY(-1px);
}

/* Right Content Area */
.settings-content {
  flex: 1;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 30px;
  min-height: 500px;
}

.settings-section {
  display: flex;
  flex-direction: column;
}

.settings-section.fade-in {
  animation: fadeIn 0.3s ease;
}

.settings-section h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--admin-text);
}

.section-desc {
  color: var(--admin-text-muted);
  margin-bottom: 24px;
  font-size: 0.9rem;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--admin-border);
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.section-header-flex .section-desc {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Forms */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group.half {
  flex: 1;
}

.form-group textarea {
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
  padding: 10px 12px;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  resize: vertical;
}

.form-group textarea:focus {
  border-color: var(--admin-accent);
}

/* Toggle Cards (Payments & Shipping) */
.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
}

.toggle-card {
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  overflow: hidden;
}

.toggle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: rgba(255, 255, 255, 0.02);
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle-info strong {
  font-size: 1rem;
}

.status-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-text.active { color: #22c55e; }
.status-text.inactive { color: var(--admin-text-muted); }

.toggle-card-body {
  padding: 16px 20px;
  border-top: 1px solid var(--admin-border);
  background-color: var(--admin-bg);
}

/* iOS Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--admin-border-dark);
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

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

input:focus + .slider {
  box-shadow: 0 0 1px #22c55e;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Staff Table */
.settings-table {
  width: 100%;
  border-collapse: collapse;
}

.settings-table th,
.settings-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--admin-border);
}

.settings-table th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--admin-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-badge {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--admin-text);
  font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .settings-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .header-actions button {
    width: 100%;
    justify-content: center;
  }

  .settings-container {
    flex-direction: column;
  }

  .settings-nav {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--admin-border);
  }
  
  .settings-nav-item {
    white-space: nowrap;
    padding: 10px 16px;
    border-radius: 20px;
    background-color: var(--admin-bg-light);
  }
  
  .settings-nav-item.active {
    background-color: var(--admin-text);
    color: var(--admin-bg);
  }

  .settings-content {
    padding: 20px 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .form-group {
    width: 100%;
  }

  .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .settings-table {
    min-width: 600px !important;
  }
}
.cash-modal-backdrop {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.cash-modal {
  display: flex;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 4px;
  width: 90%;
  max-width: 800px;
  height: 90vh;
  max-height: 600px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  font-family: var(--font-main, sans-serif);
  color: var(--admin-text);
}

/* LEFT PANEL */
.cash-modal-left {
  flex: 1;
  background-color: var(--admin-bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--admin-border);
}

.section-title {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--admin-text);
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 8px;
  margin-bottom: 16px;
  margin-top: 0;
}

.cash-items-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 24px;
}

.cash-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--admin-border);
  padding-bottom: 8px;
}

.cash-item-info h4 {
  margin: 0 0 4px 0;
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cash-item-info span {
  font-size: 10px;
  color: var(--admin-text-muted);
}

.cash-item-price {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 14px;
  font-weight: 700;
}

.cash-modal-left .form-group {
  margin-bottom: 16px;
}

.cash-modal-left .form-group label {
  font-size: 10px;
  font-weight: 700;
  color: var(--admin-text-muted);
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}

.cash-modal-left .form-group input {
  width: 100%;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 10px;
  color: var(--admin-text);
  border-radius: 2px;
  font-size: 12px;
  outline: none;
}

.cash-modal-left .form-group input:focus {
  border-color: var(--admin-accent);
}

.cash-modal-totals {
  border-top: 1px solid var(--admin-border);
  padding-top: 16px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--admin-text-muted);
  letter-spacing: 0.5px;
}

.totals-row.grand-total {
  font-size: 18px;
  color: var(--admin-text);
  margin-top: 12px;
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
}

.accent-color {
  color: var(--admin-accent);
  font-size: 24px;
}


/* RIGHT PANEL */
.cash-modal-right {
  width: 350px;
  background-color: var(--admin-surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.cash-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.cash-modal-header h3 {
  margin: 0;
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 16px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--admin-text);
}

.close-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 4px;
}

.close-btn:hover {
  color: var(--admin-accent);
}

.cash-entry-display {
  background-color: var(--admin-bg);
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--admin-border);
}

.entry-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--admin-text-muted);
  letter-spacing: 1px;
}

.entry-value {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--admin-text);
  margin-top: 8px;
  overflow: hidden;
}

.currency-symbol {
  font-size: 20px;
  color: var(--admin-accent);
  margin-right: 4px;
}

.cursor-blink {
  color: var(--admin-accent);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.quick-amounts {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.quick-amounts button {
  flex: 1;
  background-color: transparent;
  border: 1px solid var(--admin-border-dark);
  color: var(--admin-text);
  padding: 12px;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-amounts button:hover {
  border-color: var(--admin-accent);
  color: var(--admin-accent);
}

.numpad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}

.numpad button {
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 20px;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.1s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.numpad button:active {
  background-color: var(--admin-surface-hover);
}

.backspace-btn {
  color: var(--admin-text-muted) !important;
}

.change-due {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--admin-bg);
  padding: 16px;
  border-radius: 2px;
  margin: 16px 0;
  border-left: 3px solid var(--admin-accent);
  border-top: 1px solid var(--admin-border);
  border-right: 1px solid var(--admin-border);
  border-bottom: 1px solid var(--admin-border);
}

.change-due span:first-child {
  font-size: 11px;
  font-weight: 700;
  color: var(--admin-text-muted);
  letter-spacing: 1px;
}

.change-due span:last-child {
  font-size: 18px;
  font-weight: 700;
  color: var(--admin-text);
}

.cash-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.cash-modal-actions button {
  flex: 1;
  padding: 16px;
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

.cash-modal-actions .btn-cancel {
  background-color: transparent;
  color: var(--admin-text);
  border: 1px solid var(--admin-border-dark);
}

.cash-modal-actions .btn-cancel:hover {
  background-color: var(--admin-surface-hover);
}

.cash-modal-actions .btn-confirm {
  background-color: var(--admin-accent);
  color: #fff;
}

.cash-modal-actions .btn-confirm:hover {
  opacity: 0.9;
}

.cash-modal-actions .btn-confirm:disabled {
  background-color: var(--admin-border-dark);
  color: var(--admin-text-muted);
  cursor: not-allowed;
}

.cash-native-input {
  background: transparent;
  border: none;
  color: var(--admin-text);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: right;
  width: 100%;
  outline: none;
  -moz-appearance: textfield;
}
.cash-native-input::-webkit-outer-spin-button,
.cash-native-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 768px) {
  .cash-modal {
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
    width: 100vw;
    max-width: none;
    max-height: none;
    border-radius: 0;
    overflow-y: auto;
    display: block;
  }
  
  .cash-modal-left,
  .cash-modal-right {
    width: 100%;
    flex: none;
    height: auto;
  }

  .numpad {
    display: none;
  }
}
.qris-modal-backdrop {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.qris-modal {
  display: flex;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 4px;
  width: 90%;
  max-width: 800px;
  height: 90vh;
  max-height: 600px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  font-family: var(--font-main, sans-serif);
  color: var(--admin-text);
}

/* LEFT PANEL */
.qris-modal-left {
  flex: 1;
  background-color: var(--admin-bg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--admin-border);
}

.qris-items-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 24px;
}

.qris-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--admin-border);
  padding-bottom: 8px;
}

.qris-item-info h4 {
  margin: 0 0 4px 0;
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 15px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.qris-item-info span {
  font-size: 10px;
  color: var(--admin-text-muted);
}

.qris-item-price {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 14px;
  font-weight: 700;
}

.qris-customer-details .form-group {
  margin-bottom: 16px;
}

.qris-customer-details .form-group label {
  font-size: 10px;
  font-weight: 700;
  color: var(--admin-text-muted);
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}

.qris-customer-details .form-group input {
  width: 100%;
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  padding: 10px;
  color: var(--admin-text);
  border-radius: 2px;
  font-size: 12px;
  outline: none;
}

.qris-customer-details .form-group input:focus {
  border-color: var(--admin-accent);
}

.qris-modal-totals {
  border-top: 1px solid var(--admin-border);
  padding-top: 16px;
}

/* RIGHT PANEL */
.qris-modal-right {
  width: 350px;
  background-color: var(--admin-surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.qris-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.qris-modal-header h3 {
  margin: 0;
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--admin-text);
  text-transform: uppercase;
}

.qris-code-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}

.qris-code-container h4 {
  margin: 0 0 4px 0;
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--admin-text);
}

.qris-code-container p {
  font-size: 10px;
  color: var(--admin-text-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qr-wrapper {
  background: #fff;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 232px;
  height: 232px;
}

.qr-placeholder {
  color: #333;
  font-size: 14px;
  font-weight: bold;
}

.timer-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: #d87635; /* Orange to indicate timer */
  margin-bottom: 12px;
}

.qris-badge {
  background-color: #2a2a2a;
  border: 1px solid var(--admin-border-dark);
  color: #ffffff;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 2px;
}

.qris-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.qris-modal-actions button {
  width: 100%;
  padding: 16px;
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-transform: uppercase;
}

.qris-modal-actions .btn-confirm {
  background-color: var(--admin-accent);
  color: #fff;
}

.qris-modal-actions .btn-confirm:hover {
  opacity: 0.9;
}

.qris-modal-actions .btn-cancel {
  background-color: transparent;
  color: var(--admin-text);
  border: 1px solid var(--admin-border-dark);
}

.qris-modal-actions .btn-cancel:hover {
  background-color: var(--admin-surface-hover);
}

@media (max-width: 768px) {
  .qris-modal {
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
    width: 100vw;
    max-width: none;
    max-height: none;
    border-radius: 0;
    overflow-y: auto;
    display: block;
  }
  
  .qris-modal-left,
  .qris-modal-right {
    width: 100%;
    flex: none;
    height: auto;
  }
}
.pos-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.pos-modal-content {
  background: var(--admin-surface);
  padding: 30px;
  border-radius: 12px;
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--admin-border);
}

.pos-modal-content h2 {
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--admin-text);
  border-bottom: 1px solid var(--admin-border);
  padding-bottom: 10px;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.size-btn {
  background: var(--admin-bg);
  border: 1px solid var(--admin-border-dark);
  border-radius: 8px;
  padding: 15px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--admin-text);
}

.size-btn:hover:not(:disabled) {
  background: rgba(198, 106, 43, 0.1);
  border-color: var(--admin-accent);
}

.size-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
}

.size-stock {
  font-size: 11px;
  color: var(--admin-text-muted);
  font-weight: 600;
}

.size-btn.out-of-stock {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--admin-bg);
  border-color: var(--admin-border);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-save {
  background: var(--admin-accent);
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-save:hover {
  opacity: 0.9;
}
.promo-modal-backdrop {
  display: flex;
  justify-content: center;
  align-items: center;
}

.promo-modal {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.promo-modal .modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promo-modal .modal-header h3 {
  margin: 0;
  color: var(--admin-text);
  font-size: 1.2rem;
}

.promo-modal .close-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 4px;
}

.promo-modal .close-btn:hover {
  color: var(--admin-accent);
}

.promo-form {
  padding: 20px;
  overflow-y: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  font-weight: 500;
}

.form-group input,
.form-group select {
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
  padding: 10px 12px;
  border-radius: 4px;
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--admin-accent);
}

.product-selector {
  border: 1px solid var(--admin-border);
  border-radius: 4px;
  padding: 12px;
  background: var(--admin-bg);
}

.product-selector .search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--admin-bg-light);
  border: 1px solid var(--admin-border);
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.product-selector .search-box input {
  border: none;
  background: none;
  padding: 0;
  width: 100%;
}

.product-selector .search-box input:focus {
  border: none;
}

.product-list-selectable {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-select-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.product-select-item:hover {
  border-color: var(--admin-accent);
}

.product-select-item.selected {
  border-color: var(--admin-accent);
  background: rgba(198, 106, 43, 0.05);
}

.product-select-item input[type="checkbox"] {
  accent-color: var(--admin-accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.product-select-img {
  width: 40px;
  height: 40px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  background-color: var(--admin-bg);
}

.product-select-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-select-item .product-name {
  font-weight: 600;
  color: var(--admin-text);
  font-size: 0.95rem;
}

.product-select-item .product-sku {
  font-size: 0.75rem;
  color: var(--admin-text-muted);
  font-weight: 500;
}

.product-select-item .product-price {
  font-weight: 700;
  color: var(--admin-accent);
  font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
  font-size: 1.1rem;
}

.no-products {
  color: var(--admin-text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 10px;
}

.modal-actions {
  padding: 20px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.modal-actions button {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-cancel {
  background-color: transparent;
  color: var(--admin-text);
  border: 1px solid var(--admin-border) !important;
}

.btn-cancel:hover {
  background-color: var(--admin-border);
}

.btn-submit {
  background-color: var(--admin-accent);
  color: #000;
}

.btn-submit:hover {
  opacity: 0.9;
}
.customer-modal {
  background-color: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.customer-modal .modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.customer-modal .modal-header h3 {
  margin: 0;
  color: var(--admin-text);
  font-size: 1.2rem;
}

.customer-modal .close-btn {
  background: none;
  border: none;
  color: var(--admin-text-muted);
  cursor: pointer;
  padding: 4px;
}

.customer-modal .close-btn:hover {
  color: var(--admin-accent);
}

.customer-form {
  padding: 20px;
  overflow-y: auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--admin-text-muted);
  font-weight: 500;
}

.form-group input,
.form-group select {
  background-color: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
  padding: 10px 12px;
  border-radius: 4px;
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--admin-accent);
}

.modal-actions {
  padding: 20px;
  border-top: 1px solid var(--admin-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
