/**
 * GP Mug Printing – Styles
 * Covers: seller template list/form, public shop grid, mug customizer editor
 * Design language matches storefront.css (DM Sans, same color tokens, card patterns)
 */

/* ═══════════════════════════════════════════════════════════════════════════
   BASE VARIABLES & RESET
   ═══════════════════════════════════════════════════════════════════════════ */

.gp-mug-wrap,
.gp-mug-shop-wrap,
.gp-mug-customizer-wrap {
  --mug-primary: #6c5ce7;
  --mug-primary-hover: #5a4bd6;
  --mug-danger: #ef4444;
  --mug-success: #10b981;
  --mug-warning: #f59e0b;
  --mug-bg: #ffffff;
  --mug-surface: #f8f9fc;
  --mug-border: #e5e7eb;
  --mug-text: #1e293b;
  --mug-text-muted: #64748b;
  --mug-text-hint: #94a3b8;
  --mug-radius: 12px;
  --mug-radius-sm: 8px;
  --mug-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --mug-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --mug-transition: 0.2s ease;

  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--mug-text);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.gp-mug-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--mug-radius-sm);
  cursor: pointer;
  transition: all var(--mug-transition);
  text-decoration: none;
  line-height: 1.4;
}

.gp-mug-btn--primary {
  background: var(--mug-primary);
  color: #fff;
}
.gp-mug-btn--primary:hover {
  background: var(--mug-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--mug-shadow-md);
}

.gp-mug-btn--secondary {
  background: var(--mug-surface);
  color: var(--mug-text);
  border: 1px solid var(--mug-border);
}
.gp-mug-btn--secondary:hover {
  background: #eef0f4;
}

.gp-mug-btn--danger {
  background: var(--mug-danger);
  color: #fff;
}
.gp-mug-btn--danger:hover {
  background: #dc2626;
}

.gp-mug-btn--sm {
  padding: 6px 12px;
  font-size: 12px;
}

.gp-mug-btn--full {
  width: 100%;
  justify-content: center;
}

.gp-mug-btn__text,
.gp-mug-btn__loader {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

.gp-mug-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mug-text);
  margin-bottom: 6px;
}

.gp-mug-required { color: var(--mug-danger); }

.gp-mug-input,
.gp-mug-select,
.gp-mug-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--mug-border);
  border-radius: var(--mug-radius-sm);
  background: var(--mug-bg);
  color: var(--mug-text);
  transition: border-color var(--mug-transition), box-shadow var(--mug-transition);
  box-sizing: border-box;
}

.gp-mug-input:focus,
.gp-mug-select:focus,
.gp-mug-textarea:focus {
  outline: none;
  border-color: var(--mug-primary);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.12);
}

.gp-mug-hint {
  display: block;
  font-size: 12px;
  color: var(--mug-text-hint);
  margin-top: 4px;
}

.gp-mug-field-error {
  display: none;
  font-size: 12px;
  color: var(--mug-danger);
  margin-top: 4px;
}

.gp-mug-form-group {
  margin-bottom: 20px;
}

.gp-mug-row {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}
.gp-mug-row--2 { grid-template-columns: 1fr 1fr; }
.gp-mug-row--3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 640px) {
  .gp-mug-row--2,
  .gp-mug-row--3 { grid-template-columns: 1fr; }
}

/* Color picker */
.gp-mug-color-picker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gp-mug-color-picker input[type="color"] {
  width: 44px;
  height: 44px;
  border: 2px solid var(--mug-border);
  border-radius: var(--mug-radius-sm);
  cursor: pointer;
  padding: 2px;
}
.gp-mug-color-label {
  font-size: 13px;
  color: var(--mug-text-muted);
  font-family: monospace;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM CARD (Seller Create/Edit)
   ═══════════════════════════════════════════════════════════════════════════ */

.gp-mug-breadcrumb {
  margin-bottom: 20px;
}
.gp-mug-breadcrumb a {
  color: var(--mug-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gp-mug-breadcrumb a:hover { text-decoration: underline; }

.gp-mug-form-card {
  background: var(--mug-bg);
  border: 1px solid var(--mug-border);
  border-radius: var(--mug-radius);
  padding: 32px;
  box-shadow: var(--mug-shadow);
}

.gp-mug-form-card__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
}

.gp-mug-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 24px;
  border-top: 1px solid var(--mug-border);
  margin-top: 24px;
}

/* Upload */
.gp-mug-upload__dropzone {
  border: 2px dashed var(--mug-border);
  border-radius: var(--mug-radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--mug-transition), background var(--mug-transition);
}
.gp-mug-upload__dropzone:hover,
.gp-mug-upload__dropzone--active {
  border-color: var(--mug-primary);
  background: rgba(108,92,231,0.04);
}
.gp-mug-upload__dropzone p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--mug-text-muted);
}

.gp-mug-link { color: var(--mug-primary); cursor: pointer; font-weight: 600; }

.gp-mug-upload__preview {
  position: relative;
  display: inline-block;
}
.gp-mug-upload__preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--mug-radius-sm);
  border: 1px solid var(--mug-border);
}
.gp-mug-upload__preview .gp-mug-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

/* Notice */
.gp-mug-notice {
  padding: 12px 16px;
  border-radius: var(--mug-radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}
.gp-mug-notice--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.gp-mug-notice--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Loading */
.gp-mug-loading {
  text-align: center;
  padding: 48px 20px;
  color: var(--mug-text-muted);
}
.gp-mug-loading-row {
  text-align: center;
  padding: 40px;
  color: var(--mug-text-hint);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SELLER TEMPLATE LIST
   ═══════════════════════════════════════════════════════════════════════════ */

.gp-mug-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.gp-mug-stats {
  display: flex;
  gap: 12px;
}
.gp-mug-stat {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--mug-surface);
  color: var(--mug-text-muted);
}
.gp-mug-stat--active { background: #ecfdf5; color: #065f46; }
.gp-mug-stat--draft  { background: #fffbeb; color: #92400e; }

.gp-mug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gp-mug-card {
  background: var(--mug-bg);
  border: 1px solid var(--mug-border);
  border-radius: var(--mug-radius);
  overflow: hidden;
  box-shadow: var(--mug-shadow);
  transition: transform var(--mug-transition), box-shadow var(--mug-transition);
}
.gp-mug-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mug-shadow-md);
}

.gp-mug-card__img {
  height: 200px;
  background: var(--mug-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gp-mug-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gp-mug-card__placeholder {
  font-size: 48px;
  opacity: 0.4;
}

.gp-mug-card__body {
  padding: 16px;
}

.gp-mug-card__name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--mug-text);
}

.gp-mug-card__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gp-mug-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--mug-surface);
  color: var(--mug-text-muted);
  text-transform: capitalize;
}

.gp-mug-status--active  { background: #ecfdf5; color: #065f46; }
.gp-mug-status--draft   { background: #fffbeb; color: #92400e; }
.gp-mug-status--inactive{ background: #fef2f2; color: #991b1b; }

.gp-mug-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}
.gp-mug-card__price-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--mug-primary);
}
.gp-mug-card__price-label {
  font-size: 12px;
  color: var(--mug-text-hint);
}

.gp-mug-card__actions {
  display: flex;
  gap: 8px;
}

/* Color swatch */
.gp-mug-color-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--mug-border);
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC MUG SHOP
   ═══════════════════════════════════════════════════════════════════════════ */

.gp-mug-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 56px 32px;
  border-radius: var(--mug-radius);
  margin-bottom: 32px;
  color: #fff;
  text-align: center;
}
.gp-mug-hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.8;
  display: block;
  margin-bottom: 12px;
}
.gp-mug-hero__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
}
.gp-mug-hero__sub {
  font-size: 16px;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .gp-mug-hero { padding: 36px 20px; }
  .gp-mug-hero__title { font-size: 26px; }
}

.gp-mug-shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.gp-mug-shop-filters {
  display: flex;
  gap: 8px;
}

.gp-mug-pill {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--mug-border);
  border-radius: 24px;
  background: var(--mug-bg);
  color: var(--mug-text-muted);
  cursor: pointer;
  transition: all var(--mug-transition);
}
.gp-mug-pill:hover {
  border-color: var(--mug-primary);
  color: var(--mug-primary);
}
.gp-mug-pill.active {
  background: var(--mug-primary);
  color: #fff;
  border-color: var(--mug-primary);
}

.gp-mug-shop-search .gp-mug-input {
  width: 260px;
}

.gp-mug-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Shop card (clickable) */
.gp-mug-card--shop {
  text-decoration: none;
  display: block;
  color: inherit;
}
.gp-mug-card--shop:hover .gp-mug-card__cta {
  color: var(--mug-primary);
}

.gp-mug-card__cta {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mug-text-hint);
  margin-top: 8px;
  transition: color var(--mug-transition);
}

/* Pagination */
.gp-mug-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.gp-mug-page-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--mug-border);
  border-radius: var(--mug-radius-sm);
  background: var(--mug-bg);
  cursor: pointer;
  transition: all var(--mug-transition);
}
.gp-mug-page-btn:hover { border-color: var(--mug-primary); color: var(--mug-primary); }
.gp-mug-page-btn.active { background: var(--mug-primary); color: #fff; border-color: var(--mug-primary); }
.gp-mug-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Empty state */
.gp-mug-empty {
  text-align: center;
  padding: 56px 20px;
}
.gp-mug-empty__icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.gp-mug-empty h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.gp-mug-empty p {
  color: var(--mug-text-muted);
  font-size: 14px;
  margin: 0 0 20px;
}

/* Skeleton loaders */
.gp-mug-skeleton { pointer-events: none; }
.gp-mug-card__img-skel {
  height: 200px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: gp-mug-shimmer 1.5s infinite;
}
.gp-mug-card__body-skel { padding: 16px; }
.gp-mug-skel-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: gp-mug-shimmer 1.5s infinite;
  margin-bottom: 10px;
}
.gp-mug-skel-title { width: 70%; }
.gp-mug-skel-sub   { width: 50%; }
.gp-mug-skel-price { width: 35%; height: 16px; }

@keyframes gp-mug-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MUG CUSTOMIZER — Split Layout (3D left, tools right)
   ═══════════════════════════════════════════════════════════════════════════ */

.gp-mug-split-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 960px) {
  .gp-mug-split-layout { grid-template-columns: 1fr; }
}

/* Left: 3D mug preview + cart */
.gp-mug-preview-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gp-mug-cart-card {
  background: var(--mug-bg);
  border: 1px solid var(--mug-border);
  border-radius: var(--mug-radius);
  padding: 18px;
  box-shadow: var(--mug-shadow);
}
.gp-mug-cart-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.gp-mug-price-inline {
  text-align: right;
  min-width: 120px;
  flex-shrink: 0;
}
.gp-mug-price-inline .gp-mug-price-row {
  padding: 3px 0;
}
@media (max-width: 500px) {
  .gp-mug-cart-row { flex-direction: column; }
  .gp-mug-price-inline { text-align: left; }
}

.gp-mug-3d-card {
  background: var(--mug-bg);
  border: 1px solid var(--mug-border);
  border-radius: var(--mug-radius);
  overflow: hidden;
  box-shadow: var(--mug-shadow);
}
.gp-mug-3d-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 0;
}
.gp-mug-3d-hint {
  font-size: 12px;
  color: var(--mug-text-hint);
  display: flex;
  align-items: center;
  gap: 6px;
}
.gp-mug-3d-container {
  width: 100%;
  height: 520px;
  cursor: grab;
  touch-action: none;
}
.gp-mug-3d-container:active { cursor: grabbing; }
.gp-mug-3d-container canvas { width: 100% !important; height: 100% !important; display: block; }

.gp-mug-3d-footer {
  display: flex;
  gap: 20px;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--mug-border);
}
.gp-mug-3d-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mug-text-muted);
  cursor: pointer;
}
.gp-mug-3d-control input[type="color"],
.gp-mug-color-input-sm {
  width: 28px; height: 28px;
  border: 2px solid var(--mug-border);
  border-radius: 6px; padding: 1px; cursor: pointer;
}

/* Right: tools column */
.gp-mug-tools-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--mug-bg);
  border: 1px solid var(--mug-border);
  border-radius: var(--mug-radius);
  box-shadow: var(--mug-shadow);
}
.gp-mug-tools-col::-webkit-scrollbar { width: 4px; }
.gp-mug-tools-col::-webkit-scrollbar-thumb { background: var(--mug-border); border-radius: 4px; }
.gp-mug-tools-col * { box-sizing: border-box; max-width: 100%; }

/* Section blocks in the right column */
.gp-mug-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--mug-border);
}
.gp-mug-section:last-child { border-bottom: none; }

.gp-mug-section--sticky {
  position: sticky;
  bottom: 0;
  background: var(--mug-bg);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
  z-index: 5;
}

.gp-mug-section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--mug-text-hint);
  margin-bottom: 10px;
}

/* Add buttons row */
.gp-mug-add-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

/* Text panel */
.gp-mug-text-panel {
  background: var(--mug-surface);
  border: 1px solid var(--mug-border);
  border-radius: var(--mug-radius-sm);
  padding: 12px;
  margin-top: 10px;
  overflow: hidden;
}
.gp-mug-text-options {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.gp-mug-select--sm {
  width: auto; min-width: 60px; max-width: 100px;
  padding: 6px 8px; font-size: 12px;
}

/* ── Layers Panel ──────────────────────────────────────── */
.gp-mug-layers {
  min-height: 40px;
  overflow: hidden;
}
.gp-mug-layers-empty {
  font-size: 12px;
  color: var(--mug-text-hint);
  text-align: center;
  padding: 12px 0;
}
.gp-mug-layer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--mug-border);
  border-radius: var(--mug-radius-sm);
  margin-bottom: 6px;
  cursor: pointer;
  transition: all var(--mug-transition);
  background: var(--mug-bg);
}
.gp-mug-layer-item:hover {
  border-color: var(--mug-primary);
}
.gp-mug-layer-item.active {
  border-color: var(--mug-primary);
  background: rgba(108,92,231,0.05);
  box-shadow: 0 0 0 2px rgba(108,92,231,0.15);
}
.gp-mug-layer-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: var(--mug-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--mug-text-muted);
  flex-shrink: 0;
  overflow: hidden;
}
.gp-mug-layer-icon img {
  width: 100%; height: 100%; object-fit: cover;
}
.gp-mug-layer-info {
  flex: 1;
  min-width: 0;
}
.gp-mug-layer-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--mug-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gp-mug-layer-type {
  font-size: 11px;
  color: var(--mug-text-hint);
}
.gp-mug-layer-delete {
  width: 28px; height: 28px;
  border: none; background: none;
  color: var(--mug-text-hint);
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: all var(--mug-transition);
  flex-shrink: 0;
}
.gp-mug-layer-delete:hover {
  color: var(--mug-danger);
  background: rgba(239,68,68,0.08);
}

/* Edit section */
.gp-mug-edit-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.gp-mug-edit-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gp-mug-edit-actions .gp-mug-editor-tool {
  padding: 6px 10px;
  font-size: 12px;
}

.gp-mug-editor__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
}

/* Side toggle */
.gp-mug-side-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.gp-mug-side-btn {
  padding: 8px 24px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--mug-border);
  border-radius: 24px;
  background: var(--mug-bg);
  cursor: pointer;
  transition: all var(--mug-transition);
}
.gp-mug-side-btn.active {
  background: var(--mug-primary);
  color: #fff;
  border-color: var(--mug-primary);
}

/* Canvas container */
.gp-mug-canvas-container {
  position: relative;
  border: 1px solid var(--mug-border);
  border-radius: var(--mug-radius);
  overflow: hidden;
  background: #f8f9fa;
}

.gp-mug-mockup-bg {
  display: none;
}

.gp-mug-canvas-container canvas {
  position: relative;
  z-index: 1;
  display: block;
}

/* Editor toolbar */
.gp-mug-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.gp-mug-editor-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--mug-border);
  border-radius: var(--mug-radius-sm);
  background: var(--mug-bg);
  color: var(--mug-text);
  cursor: pointer;
  transition: all var(--mug-transition);
}
.gp-mug-editor-tool:hover {
  border-color: var(--mug-primary);
  color: var(--mug-primary);
}

.gp-mug-tool--danger { color: var(--mug-danger); }
.gp-mug-tool--danger:hover { border-color: var(--mug-danger); background: #fef2f2; }

/* Adjustments sliders */
.gp-mug-adjustments {
  margin-top: 20px;
  padding: 16px;
  background: var(--mug-surface);
  border-radius: var(--mug-radius);
  border: 1px solid var(--mug-border);
}

.gp-mug-slider-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.gp-mug-slider-group:last-child { margin-bottom: 0; }

.gp-mug-slider-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--mug-text-muted);
  min-width: 56px;
  flex-shrink: 0;
}

.gp-mug-slider-group input[type="range"] {
  flex: 1;
  min-width: 0;
  accent-color: var(--mug-primary);
}

.gp-mug-slider-group span {
  font-size: 11px;
  font-weight: 600;
  color: var(--mug-text);
  min-width: 32px;
  text-align: right;
  flex-shrink: 0;
}

/* Sidebar info card */
.gp-mug-info-card {
  background: var(--mug-bg);
  border: 1px solid var(--mug-border);
  border-radius: var(--mug-radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--mug-shadow);
}

.gp-mug-info-card__img {
  width: 100%;
  border-radius: var(--mug-radius-sm);
  margin-bottom: 14px;
  display: none;
}

.gp-mug-info-card__name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
}

.gp-mug-info-card__details {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gp-mug-info-card__desc {
  font-size: 13px;
  color: var(--mug-text-muted);
  margin: 0;
}

/* Quantity control */
.gp-mug-qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--mug-border);
  border-radius: var(--mug-radius-sm);
  overflow: hidden;
  width: fit-content;
}

.gp-mug-qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--mug-surface);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--mug-transition);
}
.gp-mug-qty-btn:hover { background: #e8e8ed; }

.gp-mug-qty-input {
  width: 60px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--mug-border);
  border-right: 1px solid var(--mug-border);
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 4px;
}
.gp-mug-qty-input:focus { outline: none; }

/* Price summary */
.gp-mug-price-summary {
  background: var(--mug-surface);
  border: 1px solid var(--mug-border);
  border-radius: var(--mug-radius);
  padding: 16px;
  margin-bottom: 20px;
}

.gp-mug-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--mug-text-muted);
}

.gp-mug-price-total {
  border-top: 1px solid var(--mug-border);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--mug-text);
}
.gp-mug-price-total span:last-child {
  color: var(--mug-primary);
  font-size: 20px;
}

/* Editor sidebar buttons spacing */
.gp-mug-editor__sidebar .gp-mug-btn {
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUTH WALL
   ═══════════════════════════════════════════════════════════════════════════ */

.gp-auth-wall {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.gp-auth-wall-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--mug-bg);
  border: 1px solid var(--mug-border);
  border-radius: var(--mug-radius);
  box-shadow: var(--mug-shadow);
  max-width: 360px;
}
.gp-auth-wall-icon { font-size: 40px; margin-bottom: 16px; }
.gp-auth-wall-card h3 { margin: 0 0 8px; font-size: 18px; }
.gp-auth-wall-card p { color: var(--mug-text-muted); font-size: 14px; margin: 0 0 20px; }

/* ═══════════════════════════════════════════════════════════════════════════
   TOAST (reuse storefront pattern)
   ═══════════════════════════════════════════════════════════════════════════ */

.gp-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  border-radius: var(--mug-radius-sm);
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.gp-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.gp-toast-success { background: #10b981; color: #fff; }
.gp-toast-error   { background: #ef4444; color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC TOP BAR (guest-accessible pages: customizer, mug shop)
   No sidebar. Simple branded header with cart + optional auth.
   ═══════════════════════════════════════════════════════════════════════════ */

.gp-mug-public-page {
  min-height: 100vh;
  background: var(--mug-surface);
}

.gp-mug-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--mug-bg);
  border-bottom: 1px solid var(--mug-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.gp-mug-topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gp-mug-topbar__brand {
  font-size: 16px;
  color: var(--mug-primary);
  text-decoration: none;
}

.gp-mug-topbar__divider {
  color: var(--mug-border);
  font-size: 18px;
  font-weight: 300;
}

.gp-mug-topbar__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--mug-text);
}

.gp-mug-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gp-mug-topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mug-text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--mug-radius-sm);
  transition: all var(--mug-transition);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}
.gp-mug-topbar__link:hover {
  color: var(--mug-primary);
  background: rgba(108,92,231,0.06);
}

.gp-mug-topbar__cart {
  position: relative;
}

.gp-mug-topbar__cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--mug-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
  padding: 0 4px;
}

.gp-mug-topbar__auth {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gp-mug-topbar__email {
  font-size: 13px;
  color: var(--mug-text-muted);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gp-mug-topbar__logout-btn {
  color: var(--mug-danger) !important;
  padding: 6px 8px !important;
}
.gp-mug-topbar__logout-btn:hover {
  background: rgba(239,68,68,0.08) !important;
}

#gp-mug-topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gp-mug-public-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

@media (max-width: 640px) {
  .gp-mug-topbar {
    padding: 10px 16px;
  }
  .gp-mug-topbar__divider,
  .gp-mug-topbar__title {
    display: none;
  }
  .gp-mug-topbar__email {
    display: none;
  }
  .gp-mug-public-main {
    padding: 16px;
  }
}