    /* ─── RESET ─── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { font-size: 15px; }
    body { font-family: 'Montserrat', sans-serif; background: #f4f1f0; color: #2e2c2c; min-height: 100vh; display: flex; flex-direction: column; }
    img { display: block; max-width: 100%; }
    a { text-decoration: none; color: inherit; }
    button { border: none; cursor: pointer; font-family: inherit; }
    input, select, textarea { font-family: inherit; }
    ul { list-style: none; }

    /* ─── VARIABLES ─── */
    :root {
      --gold:       #c9a227;
      --gold-light: #e8d48b;
      --gold-grad:  linear-gradient(135deg, #c9a227, #e8d48b, #c9a227);
      --dark:       #2e2c2c;
      --mid:        #5a5757;
      --muted:      #9a9595;
      --pink:       #fadfe9;
      --cream:      #f0e9e9;
      --white:      #ffffff;
      --bg:         #f4f1f0;
      --sidebar-w:  240px;
      --header-h:   60px;
      --danger:     #c0392b;
      --success:    #27ae60;
      --warning:    #e67e22;
    }

    /* ════════════════════════════════════════
       HEADER
    ════════════════════════════════════════ */
    .app-header {
      position: fixed; top: 0; left: 0; right: 0; z-index: 100;
      height: var(--header-h);
      background: var(--dark);
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 20px 0 0;
    }
    .header-brand {
      display: flex; align-items: center; gap: 0;
      width: var(--sidebar-w); padding: 0 20px;
      border-right: 1px solid rgba(255,255,255,0.07);
      height: 100%;
    }
    .header-brand img { height: 28px; width: auto; filter: brightness(0) invert(1); }
    .header-title {
      font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em;
      text-transform: uppercase; color: var(--gold);
      padding-left: 16px; line-height: 1.3;
    }
    .header-right { display: flex; align-items: center; gap: 16px; }
    .header-env-badge {
      font-size: 0.55rem; font-weight: 700; letter-spacing: 0.14em;
      text-transform: uppercase; padding: 4px 10px;
      background: rgba(201,162,39,0.15); color: var(--gold);
      border: 1px solid rgba(201,162,39,0.3);
    }
    .header-user {
      display: flex; align-items: center; gap: 10px;
    }
    .user-avatar {
      width: 32px; height: 32px; border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.7rem; font-weight: 700; color: var(--dark);
      background: var(--gold-grad);
    }
    .user-info { text-align: right; }
    .user-name { font-size: 0.7rem; font-weight: 600; color: white; }
    .user-role { font-size: 0.58rem; color: rgba(255,255,255,0.4); }
    .role-toggle {
      display: flex; align-items: center; gap: 2px;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.1);
      padding: 3px;
    }
    .role-btn {
      font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
      text-transform: uppercase; padding: 5px 12px;
      color: rgba(255,255,255,0.45); background: none;
      transition: all 0.2s;
    }
    .role-btn.active { background: var(--gold); color: var(--dark); }

    /* ════════════════════════════════════════
       LAYOUT
    ════════════════════════════════════════ */
    .app-body {
      display: flex; margin-top: var(--header-h); flex: 1;
    }

    /* ════════════════════════════════════════
       SIDEBAR
    ════════════════════════════════════════ */
    .sidebar {
      width: var(--sidebar-w); flex-shrink: 0;
      background: var(--dark); min-height: calc(100vh - var(--header-h));
      padding: 16px 0;
      position: fixed; top: var(--header-h); left: 0; bottom: 0;
      overflow-y: auto;
    }
    .sidebar-section { margin-bottom: 24px; }
    .sidebar-section-title {
      font-size: 0.52rem; font-weight: 700; letter-spacing: 0.22em;
      text-transform: uppercase; color: rgba(255,255,255,0.25);
      padding: 0 20px 8px;
    }
    .nav-item {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 20px; cursor: pointer;
      font-size: 0.72rem; font-weight: 500;
      color: rgba(255,255,255,0.5);
      transition: all 0.15s; position: relative;
      border-left: 2px solid transparent;
    }
    .nav-item:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.04); }
    .nav-item.active {
      color: white; background: rgba(201,162,39,0.08);
      border-left-color: var(--gold);
    }
    .nav-item svg {
      width: 15px; height: 15px; flex-shrink: 0;
      stroke: currentColor; fill: none;
      stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    }
    .nav-badge {
      margin-left: auto; min-width: 20px; height: 18px;
      background: var(--gold); color: var(--dark);
      border-radius: 10px; font-size: 0.58rem; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
      padding: 0 5px;
    }
    .sidebar-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 8px 20px 8px; }
    .sidebar-tip {
      margin: 0 16px; padding: 10px 12px;
      background: rgba(201,162,39,0.08); border: 1px solid rgba(201,162,39,0.2);
      border-radius: 2px;
    }
    .sidebar-tip p { font-size: 0.62rem; line-height: 1.6; color: rgba(255,255,255,0.4); }
    .sidebar-tip strong { color: var(--gold); font-weight: 600; }

    /* ════════════════════════════════════════
       MAIN CONTENT
    ════════════════════════════════════════ */
    .main {
      margin-left: var(--sidebar-w);
      flex: 1; min-height: calc(100vh - var(--header-h));
      padding: 32px;
    }
    .page { display: none; }
    .page.active { display: block; }

    /* ─── Page header ─── */
    .page-header { margin-bottom: 28px; }
    .page-header h1 {
      font-family: 'Playfair Display', serif;
      font-size: 1.5rem; font-weight: 600; color: var(--dark);
      margin-bottom: 4px;
    }
    .page-header p { font-size: 0.75rem; color: var(--muted); }

    /* ════════════════════════════════════════
       FORM — NUEVA PRENDA
    ════════════════════════════════════════ */
    .form-grid {
      display: grid; grid-template-columns: 1fr 360px;
      gap: 24px; align-items: start;
    }
    .form-left { display: flex; flex-direction: column; gap: 20px; }
    .form-right { display: flex; flex-direction: column; gap: 20px; }

    /* Card */
    .card {
      background: white; padding: 24px;
      box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .card-title {
      font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em;
      text-transform: uppercase; color: var(--gold);
      margin-bottom: 20px; padding-bottom: 12px;
      border-bottom: 1px solid rgba(201,162,39,0.2);
      display: flex; align-items: center; gap: 8px;
    }
    .card-title svg {
      width: 14px; height: 14px; flex-shrink: 0;
      stroke: var(--gold); fill: none; stroke-width: 2;
      stroke-linecap: round; stroke-linejoin: round;
    }
    .card-step {
      display: inline-flex; align-items: center; justify-content: center;
      width: 20px; height: 20px; border-radius: 50%;
      background: var(--gold); color: var(--dark);
      font-size: 0.62rem; font-weight: 700;
      margin-right: 4px; flex-shrink: 0;
    }

    /* Form fields */
    .field { margin-bottom: 16px; }
    .field:last-child { margin-bottom: 0; }
    .field label {
      display: block; font-size: 0.65rem; font-weight: 700;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--mid); margin-bottom: 6px;
    }
    .field-hint {
      font-size: 0.62rem; color: var(--muted); margin-top: 4px;
      font-style: italic; letter-spacing: 0;
    }
    .field input[type="text"],
    .field input[type="number"],
    .field select,
    .field textarea {
      width: 100%; padding: 10px 12px;
      border: 1.5px solid #e5e0de; background: white;
      font-size: 0.78rem; color: var(--dark);
      outline: none; transition: border-color 0.2s;
      appearance: none;
    }
    .field input:focus,
    .field select:focus,
    .field textarea:focus { border-color: var(--gold); }
    .field textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
    .field select {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%235a5757'/%3E%3C/svg%3E");
      background-repeat: no-repeat; background-position: right 12px center;
      padding-right: 28px; cursor: pointer;
    }
    .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
    .field-required::after { content: ' *'; color: var(--gold); }

    /* Discount pill */
    .discount-pill {
      display: inline-flex; align-items: center; gap: 6px;
      background: var(--gold); color: var(--dark);
      font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em;
      padding: 4px 10px; margin-top: 6px;
    }

    /* ─── Photo upload ─── */
    .photo-grid {
      display: grid; 
      grid-template-columns: 1.3fr 1fr; 
      gap: 8px; 
      max-width:1000px; 
    }
    .photo-slot {
      background: #faf8f7;
      border: 1.5px dashed #d5cece;
      display: flex; flex-direction: column; align-items: center;
      justify-content: center; cursor: pointer; transition: all 0.2s;
      position: relative; overflow: hidden;
      width: 100%; height: 100%; 
    }
    .photo-slot:hover { border-color: var(--gold); background: rgba(201,162,39,0.04); }
    .photo-slot.drag-over {
        border-color: var(--gold);
        background: rgba(201,162,39,0.1);
        transform: scale(1.02);
    }
    .photo-slot.has-image { border-style: solid; border-color: var(--gold); }
    .photo-slot img {
      position: absolute; inset: 0;
      width: 100%; height: 100%; object-fit: cover;
    }
    .photo-slot-icon {
      width: 24px; height: 24px; opacity: 0.3;
      stroke: var(--dark); fill: none; stroke-width: 1.5;
      stroke-linecap: round; stroke-linejoin: round;
    }
    .photo-slot-label {
      font-size: 0.5rem; font-weight: 700; letter-spacing: 0.1em;
      text-transform: uppercase; color: var(--muted); margin-top: 6px;
    }
    .photo-slot-remove {
      position: absolute; top: 4px; right: 4px; z-index: 2;
      width: 20px; height: 20px; background: rgba(0,0,0,0.55);
      color: white; font-size: 0.65rem; display: none;
      align-items: center; justify-content: center;
      cursor: pointer; border-radius: 50%;
    }
    .photo-slot.has-image:hover .photo-slot-remove { display: flex; }
    
    /* ─── Reglas de posición para el Grid ─── */
    .photo-slot.main-slot { 
      grid-column: 1 / 2; 
      grid-row: 1 / 4;    
    }
    
    .photo-slot:not(.main-slot) {
      grid-column: 2 / 3; 
      aspect-ratio: 4/3;  
    }
    
    .main-badge {
      position: absolute; bottom: 6px; left: 6px; z-index: 2;
      background: var(--gold); color: var(--dark);
      font-size: 0.45rem; font-weight: 700; letter-spacing: 0.12em;
      text-transform: uppercase; padding: 3px 6px;
    }
    .photo-input { display: none; }

    /* ─── Size/stock matrix ─── */
    .size-matrix {
      width: 100%; border-collapse: collapse;
    }
    .size-matrix th {
      font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--muted);
      text-align: left; padding: 0 8px 10px 0; border-bottom: 1px solid #f0eeee;
    }
    .size-matrix td {
      padding: 7px 8px 7px 0; border-bottom: 1px solid #f8f6f6;
      vertical-align: middle;
    }
    .size-matrix tr:last-child td { border-bottom: none; }
    .size-label {
      font-size: 0.75rem; font-weight: 700; color: var(--dark);
      min-width: 36px;
    }
    .size-matrix input[type="number"] {
      width: 72px; padding: 6px 8px;
      border: 1.5px solid #e5e0de;
      font-size: 0.75rem; color: var(--dark);
      text-align: center; outline: none;
    }
    .size-matrix input[type="number"]:focus { border-color: var(--gold); }
    .size-matrix input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--gold); }
    .size-row-disabled td { opacity: 0.35; }
    .size-row-disabled .size-matrix input[type="number"] { background: #faf8f7; }
    .stock-total {
      font-size: 0.65rem; font-weight: 600; color: var(--muted);
      margin-top: 10px; padding-top: 10px;
      border-top: 1px solid #f0eeee;
    }
    .stock-total strong { color: var(--gold); }
    /* Talla única */
    .talla-unica-row { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
    .talla-unica-row label { font-size: 0.68rem; color: var(--mid); margin-bottom: 0; letter-spacing: 0; text-transform: none; font-weight: 500; }
    .talla-unica-row input[type="number"] { width: 80px; padding: 7px 10px; border: 1.5px solid #e5e0de; font-size: 0.78rem; text-align: center; outline: none; }
    .talla-unica-row input:focus { border-color: var(--gold); }

    /* ─── Color swatches ─── */
    .color-palette {
      display: flex; flex-wrap: wrap; gap: 8px;
    }
    .color-swatch {
      width: 32px; height: 32px; border: 2px solid transparent;
      cursor: pointer; transition: transform 0.15s;
      position: relative;
    }
    .color-swatch:hover { transform: scale(1.12); }
    .color-swatch.selected {
      box-shadow: 0 0 0 2px white, 0 0 0 4px var(--gold);
    }
    .color-swatch-check {
      position: absolute; inset: 0;
      display: none; align-items: center; justify-content: center;
    }
    .color-swatch.selected .color-swatch-check { display: flex; }
    .color-swatch-check svg { width: 14px; height: 14px; }
    .selected-colors {
      display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 24px;
    }
    .color-tag {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 3px 8px; background: var(--bg);
      font-size: 0.62rem; font-weight: 600; color: var(--mid);
    }
    .color-tag-dot { width: 10px; height: 10px; flex-shrink: 0; }
    .color-tag-remove { cursor: pointer; opacity: 0.5; font-size: 0.7rem; }
    .color-tag-remove:hover { opacity: 1; }

    /* ─── Collección toggle ─── */
    .toggle-row {
      display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
    }
    .toggle {
      width: 36px; height: 20px; background: #ddd;
      border-radius: 10px; position: relative; cursor: pointer;
      transition: background 0.2s; flex-shrink: 0;
    }
    .toggle.on { background: var(--gold); }
    .toggle::after {
      content: ''; position: absolute; top: 2px; left: 2px;
      width: 16px; height: 16px; border-radius: 50%;
      background: white; transition: transform 0.2s;
    }
    .toggle.on::after { transform: translateX(16px); }
    .toggle-label { font-size: 0.72rem; font-weight: 500; color: var(--mid); }
   
       /* ─── COLECCIONES SIDEBAR ─── */
    #collections-sidebar .sidebar-section-title {
        font-size: 0.72rem;
        letter-spacing: 0.2em;
    }
    
    .collections-card {
        background: white;
        padding: 24px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        margin-top: 16px;
    }
    
    .collections-card-title {
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--gold);
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(201,162,39,0.2);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .collections-card-step {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: var(--gold);
        color: var(--dark);
        font-size: 0.62rem;
        font-weight: 700;
        flex-shrink: 0;
    }
    
    .collections-hint {
        font-size: 0.65rem;
        color: var(--muted);
        margin-bottom: 14px;
        line-height: 1.5;
    }
    
    .collection-toggles {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .collection-toggle-item {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .collection-toggle-label {
        font-size: 0.75rem;
        color: var(--mid);
        font-weight: 500;
        line-height: 1;
    }
    
    .role-fude #collections-sidebar {
        display: none;
    }

    /* ─── Submit button ─── */
    .btn-primary {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 13px 28px; background: var(--dark); color: white;
      font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em;
      text-transform: uppercase; cursor: pointer;
      transition: background 0.2s; border: none;
    }
    .btn-primary:hover { background: #444; }
    .btn-primary svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

    .btn-gold {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 13px 28px; background: var(--gold-grad); color: var(--dark);
      font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em;
      text-transform: uppercase; cursor: pointer; border: none;
      transition: opacity 0.2s;
    }
    .btn-gold:hover { opacity: 0.9; }
    .btn-gold svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

    .btn-ghost {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 18px;
      border: 1.5px solid rgba(46,44,44,0.2); color: var(--mid);
      font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em;
      text-transform: uppercase; cursor: pointer; background: none;
      transition: all 0.2s;
    }
    .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
    .btn-ghost svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

    .btn-danger {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 10px 18px;
      border: 1.5px solid rgba(192,57,43,0.3); color: var(--danger);
      font-size: 0.63rem; font-weight: 600; letter-spacing: 0.1em;
      text-transform: uppercase; cursor: pointer; background: none;
      transition: all 0.2s;
    }
    .btn-danger:hover { background: rgba(192,57,43,0.05); }
    .btn-danger svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

    /* ════════════════════════════════════════
       BORRADORES — lista y detalle
    ════════════════════════════════════════ */
    .drafts-layout {
      display: grid; grid-template-columns: 340px 1fr;
      gap: 20px; align-items: start;
    }
    .drafts-list { display: flex; flex-direction: column; gap: 8px; }
    .draft-card {
      background: white; padding: 14px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
      cursor: pointer; transition: all 0.2s;
      border-left: 3px solid transparent; display: flex; gap: 12px;
    }
    .draft-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.08); }
    .draft-card.selected { border-left-color: var(--gold); background: #fffdf7; }
    .draft-thumb {
      width: 56px; height: 72px; background: var(--cream);
      flex-shrink: 0; overflow: hidden;
    }
    .draft-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .draft-thumb-placeholder {
      width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
      background: var(--cream);
    }
    .draft-thumb-placeholder svg { width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
    .draft-info { flex: 1; min-width: 0; }
    .draft-name {
      font-family: 'Playfair Display', serif;
      font-size: 0.88rem; font-weight: 600; color: var(--dark);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      margin-bottom: 3px;
    }
    .draft-cat {
      font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
      text-transform: uppercase; color: var(--muted);
    }
    .draft-price {
      font-size: 0.8rem; font-weight: 700; color: var(--dark); margin-top: 4px;
    }
    .draft-price .sale { color: var(--gold); }
    .draft-price .orig { font-size: 0.68rem; font-weight: 400; color: var(--muted); text-decoration: line-through; margin-left: 4px; }
    .draft-status {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 0.55rem; font-weight: 700; letter-spacing: 0.1em;
      text-transform: uppercase; padding: 2px 7px; margin-top: 6px;
    }
    .draft-status.sin-desc { background: #fff3cd; color: #856404; }
    .draft-status.con-desc { background: #d4edda; color: #155724; }
    .draft-status.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
    .sin-desc .dot { background: #856404; }
    .con-desc .dot { background: #155724; }
    .draft-date { font-size: 0.6rem; color: var(--muted); margin-top: 3px; }

    /* Draft detail panel */
    .detail-panel { background: white; padding: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
    .detail-empty {
      height: 360px; display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 10px;
      color: var(--muted); background: white;
    }
    .detail-empty svg { width: 40px; height: 40px; stroke: var(--muted); fill: none; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; opacity: 0.4; }
    .detail-empty p { font-size: 0.75rem; }
    .detail-header {
      padding: 20px 24px 16px; border-bottom: 1px solid #f0eeee;
      display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    }
    .detail-header-left h2 {
      font-family: 'Playfair Display', serif;
      font-size: 1.15rem; font-weight: 600; color: var(--dark); margin-bottom: 2px;
    }
    .detail-header-right { display: flex; gap: 8px; flex-shrink: 0; }
    .detail-body { padding: 24px; }
    .detail-two-col { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
    .detail-gallery { display: flex; flex-direction: column; gap: 6px; }
    .detail-gallery .main-img {
      width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--cream);
    }
    .detail-gallery-thumbs { display: flex; gap: 4px; }
    .detail-gallery-thumbs img {
      width: 48px; height: 60px; object-fit: cover;
      cursor: pointer; opacity: 0.65; transition: opacity 0.2s;
    }
    .detail-gallery-thumbs img:hover { opacity: 1; }
    .detail-gallery-thumbs img.active { opacity: 1; box-shadow: 0 0 0 2px var(--gold); }
    .detail-data { display: flex; flex-direction: column; gap: 14px; }
    .data-row { display: flex; align-items: baseline; gap: 8px; }
    .data-label {
      font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em;
      text-transform: uppercase; color: var(--muted); min-width: 110px;
    }
    .data-value { font-size: 0.8rem; color: var(--dark); }
    .data-value.highlight { font-weight: 700; color: var(--gold); }
    .detail-sizes { display: flex; flex-wrap: wrap; gap: 5px; }
    .detail-size-chip {
      padding: 4px 9px; border: 1px solid #e5e0de;
      font-size: 0.62rem; font-weight: 700;
      color: var(--dark);
    }
    .detail-size-chip.low { border-color: var(--warning); color: var(--warning); }
    .detail-colors-row { display: flex; gap: 6px; flex-wrap: wrap; }
    .detail-color-dot { width: 20px; height: 20px; box-shadow: 0 0 0 1.5px rgba(0,0,0,0.15); }

    /* Description section (Fude only) */
    .desc-section {
      border-top: 1px solid #f0eeee; padding: 20px 24px; margin-top: 4px;
    }
    .desc-section-header {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 16px;
    }
    .desc-section-title {
      font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em;
      text-transform: uppercase; color: var(--gold);
    }
    .btn-ai {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 7px 14px; background: rgba(201,162,39,0.1);
      border: 1px solid rgba(201,162,39,0.3);
      font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em;
      text-transform: uppercase; color: var(--gold); cursor: pointer;
      transition: all 0.2s;
    }
    .btn-ai:hover { background: rgba(201,162,39,0.18); }
    .btn-ai svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .detail-panel-footer {
      padding: 16px 24px; background: #faf8f7;
      border-top: 1px solid #f0eeee;
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
    }

    /* ════════════════════════════════════════
       PUBLICADOS — tabla simple
    ════════════════════════════════════════ */
    .products-table {
      width: 100%; border-collapse: collapse; background: white;
      box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .products-table th {
      padding: 12px 16px; text-align: left;
      font-size: 0.58rem; font-weight: 700; letter-spacing: 0.14em;
      text-transform: uppercase; color: var(--muted);
      border-bottom: 1.5px solid #f0eeee; background: #faf8f7;
    }
    .products-table td {
      padding: 12px 16px; border-bottom: 1px solid #f8f6f6;
      font-size: 0.75rem; color: var(--dark); vertical-align: middle;
    }
    .products-table tr:last-child td { border-bottom: none; }
    .products-table tr:hover td { background: #fffdf7; }
    .prod-thumb-cell { width: 44px; height: 56px; object-fit: cover; background: var(--cream); }
    .status-pill {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 0.55rem; font-weight: 700; letter-spacing: 0.1em;
      text-transform: uppercase; padding: 3px 8px;
    }
    .status-pill.published { background: #d4edda; color: #155724; }
    .status-pill.draft { background: #fff3cd; color: #856404; }
    .status-pill.outlet { background: rgba(201,162,39,0.15); color: #856404; }
    .lifecycle-pill {
      display: inline-flex; align-items: center; gap: 4px;
      font-size: 0.55rem; font-weight: 700; letter-spacing: 0.08em;
      text-transform: uppercase; padding: 3px 8px;
    }
    .lifecycle-pill.novedad { background: rgba(201,162,39,0.12); color: var(--gold); }
    .lifecycle-pill.bestseller { background: rgba(46,44,44,0.08); color: var(--dark); }
    .lifecycle-pill.ultimas { background: var(--pink); color: #a0546a; }
    .lifecycle-pill.outlet { background: rgba(192,57,43,0.1); color: var(--danger); }

    /* ════════════════════════════════════════
       TOAST
    ════════════════════════════════════════ */
    .toast {
      position: fixed; bottom: 28px; right: 28px; z-index: 999;
      background: var(--dark); color: white;
      padding: 14px 20px; min-width: 260px;
      display: flex; align-items: center; gap: 12px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.18);
      transform: translateY(120%); transition: transform 0.3s ease;
    }
    .toast.show { transform: translateY(0); }
    .toast.success { border-left: 4px solid var(--success); }
    .toast.error { border-left: 4px solid var(--danger); }
    .toast.info { border-left: 4px solid var(--gold); }
    .toast-icon { width: 18px; height: 18px; flex-shrink: 0; }
    .toast-text { font-size: 0.75rem; font-weight: 500; line-height: 1.4; }

    /* ════════════════════════════════════════
       EMPTY STATE
    ════════════════════════════════════════ */
    .empty-state {
      text-align: center; padding: 60px 20px;
      background: white; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .empty-icon { font-size: 2rem; margin-bottom: 12px; opacity: 0.4; }
    .empty-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--dark); margin-bottom: 6px; }
    .empty-desc { font-size: 0.75rem; color: var(--muted); }

    /* ════════════════════════════════════════
       RESPONSIVE
    ════════════════════════════════════════ */
    @media (max-width: 1200px) {
      .form-grid { grid-template-columns: 1fr; }
      .form-right { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    }
    @media (max-width: 900px) {
      :root { --sidebar-w: 56px; }
      .header-brand { padding: 0 12px; }
      .header-title { display: none; }
      .nav-item span { display: none; }
      .nav-badge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; font-size: 0.5rem; }
      .sidebar-section-title { display: none; }
      .sidebar-tip { display: none; }
      .drafts-layout { grid-template-columns: 1fr; }
    }