/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition), transform var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  position: relative;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.btn-sm { padding: 0.375rem 0.75rem; font-size: var(--text-xs); }
.btn-lg { padding: 0.875rem var(--space-6); font-size: var(--text-base); }

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-focus); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-danger {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
}
.btn-danger:hover { background: #dc2626; border-color: #dc2626; }

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn-success:hover { background: #16a34a; }

.btn .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.card-sm { padding: var(--space-4); }
.card-hover {
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card-hover:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-card-image {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
}

.product-card-img-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.product-card-img-link > img:not(.card-slide) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform var(--transition-slow);
}

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

.product-card-image .quick-view-btn {
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition);
  white-space: nowrap;
  background: var(--bg-base);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.product-card:hover .quick-view-btn {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-card-image .wishlist-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-base);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  color: var(--text-secondary);
  font-size: 14px;
}

.product-card:hover .wishlist-btn,
.product-card .wishlist-btn.active {
  opacity: 1;
}

.product-card .wishlist-btn.active { color: var(--error); }

.product-card-body {
  padding: var(--space-3) var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-card-info { color: inherit; }

.product-card-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: var(--space-1);
  margin-bottom: 0;
}

.product-card-cta {
  display: block;
  text-align: center;
  padding: 9px var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--text-primary);
  color: var(--text-primary);
  background: transparent;
  transition: background var(--transition), color var(--transition);
}

.product-card-cta:hover {
  background: var(--text-primary);
  color: var(--bg-base);
}

.product-card-cta.oos {
  border-color: var(--border);
  color: var(--text-muted);
  pointer-events: none;
}

.product-card-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  line-height: 1.4;
}

.product-card-price {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.product-card-price .from {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-muted);
  margin-right: 2px;
}

.product-card-collab {
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-1);
  text-transform: uppercase;
}

/* Card image slider */
.card-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.card-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-slide.active { opacity: 1; }

.card-slide-prev,
.card-slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 3;
}

.card-slide-prev { left: var(--space-2); }
.card-slide-next { right: var(--space-2); }

.product-card:hover .card-slide-prev,
.product-card:hover .card-slide-next { opacity: 1; }

.card-slide-dots {
  position: absolute;
  bottom: var(--space-2);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 3;
}

.card-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.2s;
}

.card-dot.active { background: #fff; }

/* Collab + OOS badges */
.card-collab-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--bg-base);
  color: var(--text-primary);
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.card-oos-badge {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 2;
}

/* ── INPUTS ── */
.input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}

.input::placeholder { color: var(--text-muted); }
.input:disabled { opacity: 0.5; cursor: not-allowed; }

.input-sm { padding: 0.375rem var(--space-3); font-size: var(--text-xs); }
.input-error { border-color: var(--error) !important; }

textarea.input { min-height: 100px; }

select.input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-8);
}

select.input:focus {
  border-color: var(--border-focus);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

select.input option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.input-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.input-group .hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.input-group .error-msg {
  font-size: var(--text-xs);
  color: var(--error);
  display: none;
}

.input-group.has-error .error-msg { display: block; }
.input-group.has-error .input { border-color: var(--error); }

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge-draft       { color: var(--status-draft);     background: rgba(82,82,82,0.15);    border-color: rgba(82,82,82,0.25); }
.badge-pending     { color: var(--status-pending);   background: rgba(245,158,11,0.15);  border-color: rgba(245,158,11,0.25); }
.badge-verified    { color: var(--status-verified);  background: rgba(34,197,94,0.15);   border-color: rgba(34,197,94,0.25); }
.badge-packed      { color: var(--status-packed);    background: rgba(59,130,246,0.15);  border-color: rgba(59,130,246,0.25); }
.badge-delivery    { color: var(--status-delivery);  background: rgba(139,92,246,0.15);  border-color: rgba(139,92,246,0.25); }
.badge-delivered   { color: var(--status-delivered); background: rgba(34,197,94,0.15);   border-color: rgba(34,197,94,0.25); }
.badge-cancelled   { color: var(--status-cancelled); background: rgba(239,68,68,0.15);   border-color: rgba(239,68,68,0.25); }
.badge-rejected    { color: var(--status-rejected);  background: rgba(239,68,68,0.15);   border-color: rgba(239,68,68,0.25); }
.badge-submitted   { color: var(--warning);          background: rgba(245,158,11,0.15);  border-color: rgba(245,158,11,0.25); }
.badge-none        { color: var(--text-muted);       background: rgba(82,82,82,0.15);    border-color: rgba(82,82,82,0.25); }

/* ── SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text  { height: 1em; margin-bottom: 0.5em; }
.skeleton-title { height: 1.5em; width: 60%; margin-bottom: 0.75em; }
.skeleton-card  { aspect-ratio: 4/5; border-radius: var(--radius-lg); }
.skeleton-img   { width: 100%; aspect-ratio: 4/5; }

/* ── TOASTS ── */
#toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 360px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  box-shadow: var(--shadow-lg);
  animation: toastIn 250ms ease;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.toast.out { animation: toastOut 200ms ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

.toast-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.toast-success .toast-icon { color: var(--success); }
.toast-error   .toast-icon { color: var(--error); }
.toast-info    .toast-icon { color: var(--info); }
.toast-warning .toast-icon { color: var(--warning); }

.toast-body { flex: 1; color: var(--text-primary); }
.toast-title { font-weight: 600; margin-bottom: 2px; }

.toast-close {
  color: var(--text-muted);
  font-size: 16px;
  flex-shrink: 0;
  padding: 0 2px;
  cursor: pointer;
  transition: color var(--transition);
}
.toast-close:hover { color: var(--text-primary); }

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: overlayIn 200ms ease;
  backdrop-filter: blur(2px);
}

.modal-overlay.hidden { display: none; }

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 250ms ease;
  position: relative;
}

.modal-lg { max-width: 720px; }
.modal-xl { max-width: 960px; }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-header h3 { font-size: var(--text-lg); }

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--bg-hover);
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--border); color: var(--text-primary); }

.modal-footer {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

/* ── CART DRAWER ── */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 900;
  backdrop-filter: blur(2px);
}

.cart-drawer-overlay.hidden { display: none; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 901;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-lg);
}

.cart-drawer.closed { transform: translateX(100%); }

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

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
}

.cart-drawer-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

/* ── SEARCH OVERLAY ── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20vh;
  backdrop-filter: blur(8px);
}

.search-overlay.hidden { display: none; }

.search-overlay-inner {
  width: 100%;
  max-width: 600px;
  padding: 0 var(--space-4);
}

.search-input-wrap {
  position: relative;
  margin-bottom: var(--space-6);
}

.search-input-wrap input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-focus);
  border-radius: 0;
  padding: var(--space-3) 0;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  letter-spacing: -0.02em;
}

.search-input-wrap input::placeholder { color: var(--text-muted); }

.search-results { display: flex; flex-direction: column; gap: var(--space-2); }

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--transition);
}

.search-result-item:hover { background: var(--bg-hover); }

.search-result-img {
  width: 48px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-card);
  flex-shrink: 0;
}

/* ── ACCORDION ── */
.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: var(--space-4);
  transition: color var(--transition);
}

.accordion-trigger:hover { color: var(--text-secondary); }

.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-slow);
  color: var(--text-muted);
}

.accordion-item.open .accordion-icon { transform: rotate(180deg); }

.accordion-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-slow) ease;
}

.accordion-body-inner {
  padding-bottom: var(--space-4);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── QUANTITY STEPPER ── */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-stepper button {
  width: 36px;
  height: 36px;
  background: var(--bg-hover);
  border: none;
  color: var(--text-primary);
  font-size: var(--text-lg);
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.qty-stepper button:hover { background: var(--border); }
.qty-stepper button:disabled { opacity: 0.3; cursor: not-allowed; }

.qty-stepper input {
  width: 48px;
  text-align: center;
  border: none;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  outline: none;
  padding: 0;
  height: 36px;
  -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* ── STATUS TIMELINE ── */
.status-timeline {
  position: relative;
  padding-left: var(--space-8);
}

.status-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-6);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 4px);
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-base);
  z-index: 1;
}

.timeline-item.done .timeline-dot {
  background: var(--success);
  border-color: var(--success);
}

.timeline-item.active .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,245,245,0.15);
}

.timeline-item.done .timeline-label  { color: var(--text-secondary); }
.timeline-item.active .timeline-label { color: var(--text-primary); font-weight: 600; }
.timeline-item.future .timeline-label { color: var(--text-muted); }

.timeline-label { font-size: var(--text-sm); line-height: 1.4; }
.timeline-time  { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

/* ── TABS ── */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-6);
  gap: 0;
}

.tab-btn {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  margin-bottom: -1px;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--text-primary); border-bottom-color: var(--accent); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: calc(100% - var(--space-8));
  max-width: 680px;
  z-index: 9999;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#cookie-banner.cookie-visible {
  transform: translateX(-50%) translateY(0);
}

#cookie-banner.cookie-hiding {
  transform: translateX(-50%) translateY(130%);
  transition: transform 0.3s ease-in;
}

.cookie-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  flex-wrap: wrap;
}

.cookie-text { flex: 1; min-width: 0; }

.cookie-title {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 2px;
}

.cookie-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* ── PASSWORD TOGGLE ── */
.password-toggle-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}

.password-toggle-btn:hover { color: var(--text-primary); }

/* ── DATA TABLE ── */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.data-table {
  width: 100%;
  font-size: var(--text-sm);
}

.data-table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

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

.data-table tbody tr {
  transition: background var(--transition);
}

.data-table tbody tr:hover { background: var(--bg-hover); }

/* Phones: stack each row into a card instead of scrolling sideways.
   Cells need a data-label attribute — its value becomes the row's
   left-hand caption via ::before. */
@media (max-width: 640px) {
  .data-table-wrap { overflow-x: visible; border: none; }

  .data-table thead { display: none; }

  .data-table, .data-table tbody, .data-table tr, .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    padding: var(--space-2) var(--space-4);
  }

  .data-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--border);
    text-align: right;
  }

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

  .data-table td[data-label]::before {
    content: attr(data-label);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: left;
    flex-shrink: 0;
  }

  .data-table td:not([data-label]) { display: none; }
}

/* ── TOGGLE ── */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
}

.toggle input { display: none; }

.toggle-track {
  width: 40px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  position: relative;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform var(--transition), background var(--transition);
}

.toggle input:checked ~ .toggle-track {
  background: var(--success);
  border-color: var(--success);
}
.toggle input:checked ~ .toggle-track .toggle-thumb {
  transform: translateX(18px);
  background: #fff;
}

/* ── SPINNER ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
}

.spinner-lg {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ── STAT TILE ── */
.stat-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.stat-tile-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.stat-tile-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.stat-tile-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* ── FILTER SIDEBAR ── */
.filter-sidebar {
  width: 240px;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    z-index: 800;
    overflow-y: auto;
    padding: var(--space-6);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
  }

  .filter-sidebar.open { transform: translateX(0); }
}

.filter-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
}

.filter-section h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) 0;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition);
}

.filter-option:hover { color: var(--text-primary); }

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-8);
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.page-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.page-btn.active { background: var(--accent); color: var(--text-inverse); border-color: var(--accent); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── COPY TOOLTIP ── */
.copy-btn {
  position: relative;
  cursor: pointer;
}

.copy-btn::after {
  content: 'Copied!';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--success);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.copy-btn.copied::after { opacity: 1; }

/* ── PULSE DOT ── */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  position: absolute;
  top: -2px;
  right: -2px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* ── ORDER SUMMARY ── */
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-4));
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

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

.order-summary-total {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

/* ── COLOR SWATCH ── */
.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.color-swatch:hover { transform: scale(1.1); }
.color-swatch.selected {
  border-color: var(--bg-base);
  outline-color: var(--accent);
}

/* ── SIZE PICKER ── */
.size-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-btn:hover { border-color: var(--border-focus); color: var(--text-primary); }

.size-btn.selected {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
}

.size-btn.oos {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* ── PROMO INPUT ── */
.promo-wrap {
  display: flex;
  gap: var(--space-2);
}

.promo-wrap .input { flex: 1; }

/* ── FILE UPLOAD ── */
.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.file-upload-area:hover,
.file-upload-area.drag-over {
  border-color: var(--border-focus);
  background: var(--bg-hover);
}

.file-upload-area p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-2);
}
