/* ═══════════════════════════════════════════════════
   Altoketienda Catálogo v2.0 — Frontend CSS
═══════════════════════════════════════════════════ */

:root {
    --atk-primary:   #25D366;
    --atk-green:     #128C7E;
    --atk-map:       #4285F4;
    --atk-text:      #1a1a1a;
    --atk-muted:     #666;
    --atk-border:    #e0e0e0;
    --atk-bg:        #f8f9fa;
    --atk-white:     #ffffff;
    --atk-radius:    12px;
    --atk-shadow:    0 2px 12px rgba(0,0,0,.08);
    --atk-shadow-h:  0 6px 24px rgba(0,0,0,.14);
    --atk-danger:    #e53935;
}

.atk-wrap *, .atk-wrap *::before, .atk-wrap *::after { box-sizing:border-box; }
.atk-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color:var(--atk-text); line-height:1.6; }
.atk-muted { color:var(--atk-muted); font-size:14px; }

/* ── Buttons ─────────────────────────────────────── */
.atk-btn {
    display:inline-flex; align-items:center; gap:7px;
    padding:11px 20px; border-radius:8px; font-size:14px; font-weight:600;
    text-decoration:none; cursor:pointer; transition:all .2s;
    border:2px solid transparent; background:none; line-height:1;
}
.atk-btn-primary   { background:var(--atk-green); color:#fff; }
.atk-btn-primary:hover { background:#0a7a6e; color:#fff; transform:translateY(-1px); }
.atk-btn-outline   { border-color:var(--atk-border); color:var(--atk-text); }
.atk-btn-outline:hover { border-color:var(--atk-green); color:var(--atk-green); }
.atk-btn-danger    { color:var(--atk-danger); border-color:var(--atk-danger); }
.atk-btn-danger:hover  { background:var(--atk-danger); color:#fff; }
.atk-btn-whatsapp  { background:var(--atk-primary); color:#fff !important; }
.atk-btn-whatsapp:hover { background:#1ebe5d; color:#fff !important; transform:translateY(-2px); box-shadow:0 4px 16px rgba(37,211,102,.35); }
.atk-btn-map       { background:var(--atk-map); color:#fff !important; }
.atk-btn-map:hover { background:#3071e8; color:#fff !important; }
.atk-btn-large     { padding:15px 30px; font-size:16px; border-radius:10px; }
.atk-btn-full      { width:100%; justify-content:center; }
.atk-btn-sm        { padding:6px 12px; font-size:12px; }
.atk-btn-store-go  { margin-top:12px; width:100%; justify-content:center; }
.atk-wa-icon, .atk-map-icon { width:18px; height:18px; }

/* ── Notices ─────────────────────────────────────── */
.atk-notice         { padding:12px 16px; border-radius:8px; margin-bottom:16px; font-size:14px; }
.atk-notice-success { background:#e8f5e9; color:#2e7d32; border-left:4px solid #2e7d32; }
.atk-notice-error   { background:#fce4ec; color:#c62828; border-left:4px solid #c62828; }
.atk-notice-info    { background:#e3f2fd; color:#1565c0; border-left:4px solid #1565c0; }

/* ── Fields ──────────────────────────────────────── */
.atk-field { margin-bottom:18px; }
.atk-field label { display:block; font-weight:600; margin-bottom:6px; font-size:14px; }
.atk-field input[type="text"],
.atk-field input[type="email"],
.atk-field input[type="password"],
.atk-field input[type="tel"],
.atk-field input[type="number"],
.atk-field input[type="file"],
.atk-field textarea,
.atk-field select {
    width:100%; padding:10px 14px; border:1.5px solid var(--atk-border);
    border-radius:8px; font-size:15px; transition:border-color .2s; outline:none; background:var(--atk-white);
}
.atk-field input:focus, .atk-field textarea:focus, .atk-field select:focus { border-color:var(--atk-green); }
.atk-field small { font-size:12px; color:var(--atk-muted); margin-top:4px; display:block; }
.atk-req { color:var(--atk-danger); }
.atk-fields-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media(max-width:600px){ .atk-fields-grid { grid-template-columns:1fr; } }
.atk-form-section { background:var(--atk-bg); padding:20px; border-radius:var(--atk-radius); margin-bottom:24px; }
.atk-form-section h3 { margin:0 0 16px; font-size:16px; color:var(--atk-green); }
.atk-form-actions { display:flex; gap:12px; margin-top:8px; }
.atk-price-input  { position:relative; display:flex; align-items:center; }
.atk-currency     { position:absolute; left:12px; font-weight:700; color:var(--atk-muted); pointer-events:none; }
/* currency in table uses prefix style, not absolute */
.atk-price-input input { padding-left:26px; }
.atk-remember label { display:flex; align-items:center; gap:8px; font-weight:normal; cursor:pointer; }

/* ── Upload / Crop ───────────────────────────────── */
.atk-upload-area {
    border:2px dashed var(--atk-border); border-radius:10px; padding:20px;
    text-align:center; cursor:pointer; transition:all .2s; background:var(--atk-bg);
    min-height:120px; display:flex; align-items:center; justify-content:center;
    overflow:hidden; flex-direction:column; gap:8px;
}
.atk-upload-area:hover { border-color:var(--atk-green); background:#e8f5e9; }
.atk-upload-area img   { max-width:100%; max-height:200px; border-radius:8px; object-fit:cover; }
.atk-square-upload { aspect-ratio:1; max-width:200px; }
.atk-banner-area   { min-height:140px; max-width:100%; aspect-ratio:unset; }
.atk-upload-placeholder { color:var(--atk-muted); font-size:14px; }
.atk-file-input    { display:none; }
.atk-current-image img { max-width:100%; border-radius:8px; margin-bottom:8px; }

/* ── Crop Modal ──────────────────────────────────── */
.atk-modal { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:99999; display:flex; align-items:center; justify-content:center; }
.atk-modal-box { background:#fff; border-radius:16px; padding:24px; max-width:520px; width:92vw; }
.atk-modal-box h3 { margin:0 0 16px; }
.atk-crop-container { max-height:60vh; overflow:hidden; border-radius:8px; background:#000; }
.atk-crop-container img { max-width:100%; display:block; }
.atk-modal-actions { display:flex; gap:12px; margin-top:16px; }

/* ── Auth / Login ────────────────────────────────── */
.atk-auth-wrap   { max-width:440px; margin:48px auto; padding:0 16px; }
.atk-auth-card   { background:var(--atk-white); border:1px solid var(--atk-border); border-radius:var(--atk-radius); padding:32px; box-shadow:var(--atk-shadow); }
.atk-auth-card h2 { margin:0 0 20px; font-size:22px; color:var(--atk-green); }
.atk-auth-desc   { color:var(--atk-muted); font-size:14px; margin-bottom:20px; }
.atk-auth-links  { display:flex; gap:12px; justify-content:center; margin-top:20px; font-size:13px; flex-wrap:wrap; }
.atk-auth-links a { color:var(--atk-green); text-decoration:none; }
.atk-auth-links a:hover { text-decoration:underline; }
.atk-auth-links span { color:var(--atk-muted); }

/* ── Register ────────────────────────────────────── */
.atk-register-wrap { max-width:700px; margin:40px auto; padding:0 16px; }
.atk-register-wrap h2 { font-size:26px; margin-bottom:24px; color:var(--atk-green); }

/* ── Dashboard — nuevo diseño ──────────────────────── */
.atk-dashboard { max-width:600px; margin:0 auto; padding:0 0 80px; background:#F7F8FA; min-height:100vh; }
.atk-link { color:var(--atk-green); font-size:13px; text-decoration:none; }
.atk-link:hover { text-decoration:underline; }

/* Banner */
.atkd-banner { position:relative; }
.atkd-banner-img { height:140px; background-size:cover; background-position:center; }
.atkd-banner-default { background:linear-gradient(135deg,#0a3d26 0%,#1DAA61 60%,#25d366 100%); }

/* Identity */
.atkd-identity { background:#fff; padding:0 16px 14px; border-bottom:1px solid #E4E7ED; }
.atkd-identity-row { display:flex; align-items:flex-end; gap:12px; margin-top:-30px; margin-bottom:10px; }
.atkd-avatar-wrap { position:relative; flex-shrink:0; }
.atkd-avatar { width:68px; height:68px; border-radius:50%; object-fit:cover; border:3px solid #fff; box-shadow:0 4px 16px rgba(0,0,0,.10); display:block; }
.atkd-avatar-placeholder { width:68px; height:68px; border-radius:50%; background:#1DAA61; color:#fff; display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:800; border:3px solid #fff; box-shadow:0 4px 16px rgba(0,0,0,.10); }
.atkd-identity-info { flex:1; padding-bottom:4px; }
.atkd-store-name { font-size:17px; font-weight:800; line-height:1.2; color:#111827; }
.atkd-store-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:5px; }
.atkd-store-link { color:#0070F3; font-size:12px; font-weight:500; text-decoration:none; }
.atkd-badge { display:inline-flex; align-items:center; gap:3px; padding:2px 8px; border-radius:20px; font-size:11px; font-weight:600; }
.atkd-badge-verified { background:#E8F5E9; color:#1DAA61; }
/* mantener selector legacy */
.atkd-badge-verified:not(.atkd-badge) { background:#E8F5E9; color:#1DAA61; font-size:11px; font-weight:600; padding:2px 8px; border-radius:20px; }

/* Stats — ahora 4 columnas */
.atkd-stats-row { display:grid; grid-template-columns:repeat(4,1fr); background:#fff; border-bottom:1px solid #E4E7ED; }
.atkd-stat { text-align:center; padding:12px 6px; border-right:1px solid #E4E7ED; }
.atkd-stat:last-child { border-right:none; }
.atkd-stat-value { font-size:18px; font-weight:800; color:#111827; line-height:1.1; }
.atkd-stat-label { font-size:10px; color:#6B7280; margin-top:3px; text-transform:uppercase; letter-spacing:.4px; }

/* Tabs */
.atkd-tabs-wrap { background:#fff; border-bottom:1px solid #E4E7ED; overflow-x:auto; scrollbar-width:none; position:sticky; top:0; z-index:90; }
.atkd-tabs-wrap::-webkit-scrollbar { display:none; }
.atkd-tabs { display:flex; padding:0; white-space:nowrap; min-width:max-content; }
.atkd-tab { padding:12px 15px; font-size:13px; font-weight:500; color:#6B7280; border:none; background:none; cursor:pointer; position:relative; display:flex; align-items:center; gap:5px; transition:color .15s; text-decoration:none; font-family:inherit; border-bottom:2px solid transparent; }
.atkd-tab:hover { color:#1DAA61; }
.atkd-tab.active { color:#1DAA61; font-weight:600; border-bottom-color:#1DAA61; }
.atkd-tab-logout { margin-left:auto; color:#E53935 !important; border-bottom-color:transparent !important; }
.atkd-tab-icon { font-size:14px; }

/* Content area */
.atkd-content { padding:16px; background:#F7F8FA; display:flex; flex-direction:column; gap:14px; }
.atkd-panel-header { display:flex; justify-content:space-between; align-items:flex-start; }
.atkd-panel-title { font-size:16px; font-weight:800; color:#111827; }
.atkd-subtitle { font-size:13px; color:#6B7280; }

/* Plan usage bar */
.atkd-plan-usage { display:flex; align-items:center; gap:7px; margin-top:5px; }
.atkd-plan-bar-bg { flex:1; height:5px; border-radius:3px; background:#E4E7ED; overflow:hidden; max-width:100px; }
.atkd-plan-bar-fill { height:100%; border-radius:3px; background:#1DAA61; transition:width .4s; }
.atkd-plan-usage-text { font-size:11px; color:#6B7280; white-space:nowrap; }
.atkd-limit-reached { font-size:12px; font-weight:600; color:#FF8F00; background:#FFF8E1; padding:4px 10px; border-radius:20px; }

/* Form cards */
.atkd-form-card { background:#fff; border:1px solid #E4E7ED; border-radius:12px; padding:16px; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.atkd-form-card h4 { margin:0 0 14px; font-size:14px; font-weight:700; display:flex; align-items:center; gap:6px; color:#111827; }
.atkd-fields-row { display:flex; gap:10px; }
.atkd-fields-row .atk-field { flex:1; }
.atkd-field-price { max-width:130px; }

/* Products list */
.atkd-product-list { display:flex; flex-direction:column; gap:10px; }
.atkd-product-card { background:#fff; border:1px solid #E4E7ED; border-radius:12px; overflow:hidden; display:flex; align-items:stretch; box-shadow:0 1px 4px rgba(0,0,0,.06); transition:box-shadow .15s; }
.atkd-product-card:hover { box-shadow:0 4px 16px rgba(0,0,0,.10); }
.atkd-product-paused { opacity:.65; }
.atkd-product-thumb { width:80px; min-height:80px; object-fit:cover; flex-shrink:0; }
.atkd-no-thumb { width:80px; min-height:80px; background:#F0F2F5; display:flex; align-items:center; justify-content:center; font-size:26px; flex-shrink:0; }
.atkd-product-body { flex:1; padding:10px 12px; display:flex; flex-direction:column; justify-content:space-between; }
.atkd-product-top { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.atkd-product-name { font-size:13px; font-weight:700; line-height:1.3; color:#111827; }
.atkd-product-cat-status { display:flex; align-items:center; gap:5px; margin-top:3px; flex-wrap:wrap; }
.atkd-product-cat { font-size:11px; color:#6B7280; }
.atkd-status-chip { font-size:10px; font-weight:700; padding:1px 7px; border-radius:20px; }
.atkd-status-active { background:#E8F5E9; color:#1DAA61; }
.atkd-status-paused { background:#FFF3E0; color:#FF8F00; }
.atkd-product-price-wrap { text-align:right; flex-shrink:0; }
.atkd-product-price { font-size:15px; font-weight:800; color:#1DAA61; white-space:nowrap; }
.atkd-product-actions { display:flex; gap:6px; margin-top:8px; }
.atkd-action-btn { padding:5px 12px; border-radius:20px; font-size:11px; font-weight:600; cursor:pointer; display:flex; align-items:center; gap:4px; font-family:inherit; transition:opacity .15s; border:none; }
.atkd-action-edit { border:1.5px solid #1DAA61; color:#1DAA61; background:#E8F5E9; }
.atkd-action-del  { border:1.5px solid #f5c5c5; color:#E53935; background:#fff5f5; }

/* Empty state */
.atk-empty-state { text-align:center; padding:40px 20px; color:#6B7280; background:#fff; border-radius:12px; border:1px dashed #E4E7ED; }
.atk-empty-icon { font-size:36px; margin-bottom:8px; }
.atk-empty-sub { font-size:12px; margin-top:4px; color:#6B7280; }

/* Prices table */
.atkd-prices-table { width:100%; border-collapse:collapse; background:#fff; border-radius:12px; overflow:hidden; border:1px solid #E4E7ED; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.atkd-prices-table th { background:#F7F8FA; padding:10px 13px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#6B7280; text-align:left; border-bottom:1px solid #E4E7ED; }
.atkd-prices-table td { padding:10px 13px; border-bottom:1px solid #E4E7ED; font-size:13px; }
.atkd-prices-table tr:last-child td { border-bottom:none; }
.atkd-price-current { color:#6B7280; }
.atkd-price-input-wrap { display:flex; align-items:center; gap:5px; background:#F7F8FA; border:1.5px solid #E4E7ED; border-radius:8px; padding:5px 9px; width:fit-content; }
.atkd-price-input-wrap:focus-within { border-color:#1DAA61; background:#fff; }
.atkd-price-sym { font-size:13px; color:#6B7280; font-weight:600; }
.atkd-price-input-wrap input { border:none; background:none; width:90px; font-size:14px; font-weight:600; outline:none; color:#111827; font-family:inherit; }
.atk-price-input { display:flex; align-items:center; width:fit-content; }
.atk-currency-prefix { background:#F7F8FA; border:1.5px solid #E4E7ED; border-right:none; border-radius:8px 0 0 8px; padding:8px 10px; font-weight:700; color:#6B7280; font-size:13px; line-height:1.4; flex-shrink:0; }
.atk-price-field { padding:8px 10px; border:1.5px solid #E4E7ED; border-radius:0 8px 8px 0; font-size:13px; border-left:none; }
.atk-price-field:focus { border-color:#1DAA61; outline:none; }

/* CSV */
.atkd-csv-cards { display:flex; flex-direction:column; gap:10px; }
.atkd-csv-card { background:#fff; border:1px solid #E4E7ED; border-radius:12px; padding:16px; display:flex; align-items:center; gap:14px; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.atkd-csv-icon { width:46px; height:46px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.atkd-csv-export { background:#E8F5E9; }
.atkd-csv-import { background:#FFF3E0; }
.atkd-csv-info { flex:1; }
.atkd-csv-info h4 { font-size:13px; font-weight:700; margin:0 0 3px; color:#111827; }
.atkd-csv-info p { font-size:12px; color:#6B7280; margin:0; line-height:1.4; }
.atkd-csv-cols { font-size:11px; color:#1DAA61; background:#E8F5E9; padding:2px 8px; border-radius:20px; display:inline-block; margin-top:5px; font-weight:500; }

/* Horario */
.atkd-horario-card { background:#F0FAF5; border:1px solid #c3ece1; border-radius:10px; padding:14px; }
.atkd-horario-turno { margin-bottom:12px; }
.atkd-horario-turno:last-of-type { margin-bottom:0; }
.atkd-turno-label { font-size:12px; font-weight:700; color:#6B7280; margin-bottom:6px; }
.atkd-turno-row { display:flex; align-items:center; gap:8px; }
.atkd-turno-row .atk-time-input { flex:1; padding:8px 10px; border:1.5px solid #c3ece1; border-radius:8px; font-size:13px; background:#fff; font-family:inherit; color:#111827; outline:none; }
.atkd-turno-row .atk-time-input:focus { border-color:#1DAA61; }
.atkd-turno-sep { font-size:12px; color:#6B7280; font-weight:500; }
.atkd-horario-hint { font-size:11px; color:#6B7280; margin-top:10px; }

/* Redes sociales */
.atkd-social-row { display:flex; align-items:center; gap:8px; }
.atkd-social-icon { font-size:18px; flex-shrink:0; width:24px; text-align:center; }

/* Imágenes actuales */
.atkd-current-photo { display:flex; align-items:center; gap:10px; background:#F7F8FA; border:1px solid #E4E7ED; border-radius:8px; padding:8px 12px; margin-bottom:8px; }
.atkd-current-photo img { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.atkd-current-banner { margin-bottom:8px; }
.atkd-current-banner img { width:100%; border-radius:8px; max-height:100px; object-fit:cover; }

/* Save bar */
.atkd-save-bar { display:flex; gap:10px; margin-top:4px; position:sticky; bottom:0; background:#F7F8FA; border-top:1px solid #E4E7ED; padding:12px 0 0; }

/* Panel header card (legacy) */
.atk-card { background:#fff; border:1px solid #E4E7ED; border-radius:12px; padding:18px; margin-bottom:12px; }
.atk-card h4 { margin:0 0 14px; font-size:15px; font-weight:700; color:#1DAA61; }
.atk-panel-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }

.atk-panel-header h3 { margin:0; font-size:18px; font-weight:700; }

/* CSV section legacy (mantener compatibilidad) */
.atk-csv-grid { display:flex; flex-direction:column; gap:10px; }

/* ── Store Page ──────────────────────────────────── */
.atk-store-page     { max-width:1100px; margin:0 auto; padding:0 16px 60px; }
.atk-store-banner-wrap { overflow:hidden; border-radius:var(--atk-radius) var(--atk-radius) 0 0; }
.atk-store-banner   { height:240px; background-size:cover; background-position:center; }
.atk-store-profile  { display:flex; align-items:flex-start; gap:20px; padding:20px; background:var(--atk-white); border:1px solid var(--atk-border); border-top:none; margin-bottom:32px; flex-wrap:wrap; }
.atk-store-avatar-wrap { margin-top:-40px; }
.atk-store-avatar-wrap .atk-store-avatar,
.atk-store-avatar-wrap .atk-avatar-placeholder { width:80px; height:80px; font-size:30px; border:4px solid #fff; box-shadow:var(--atk-shadow); }
.atk-store-meta     { flex:1; min-width:200px; }
.atk-store-name     { margin:0 0 8px; font-size:24px; }
.atk-store-description { color:var(--atk-muted); margin:0 0 12px; }
.atk-store-actions  { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.atk-store-address  { color:var(--atk-muted); margin:4px 0 0; }
.atk-store-products h2 { font-size:20px; margin-bottom:16px; }

/* ── Catalog Grid (store products — compact) ─────── */
.atk-catalog-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:16px; }
.atk-catalog-item { display:block; text-decoration:none; color:inherit; background:var(--atk-white); border:1px solid var(--atk-border); border-radius:10px; overflow:hidden; transition:box-shadow .2s, transform .2s; }
.atk-catalog-item:hover { box-shadow:var(--atk-shadow-h); transform:translateY(-3px); }
.atk-catalog-thumb { aspect-ratio:1; overflow:hidden; background:var(--atk-bg); }
.atk-catalog-thumb img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.atk-catalog-item:hover .atk-catalog-thumb img { transform:scale(1.05); }
.atk-catalog-thumb .atk-no-image { height:100%; }
.atk-catalog-price { font-size:15px; font-weight:700; color:var(--atk-green); padding:8px 10px 2px; }
.atk-catalog-name  { font-size:13px; padding:0 10px 10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ── Single Product ──────────────────────────────── */
.atk-single-product { max-width:960px; margin:40px auto; padding:0 16px; }
.atk-product-store-tag { margin-bottom:12px; }
.atk-store-tag-link { display:inline-flex; align-items:center; gap:8px; text-decoration:none; color:var(--atk-muted); font-size:14px; padding:6px 12px; border:1px solid var(--atk-border); border-radius:20px; transition:all .2s; }
.atk-store-tag-link:hover { border-color:var(--atk-green); color:var(--atk-green); }
.atk-tag-avatar { width:28px; height:28px; border-radius:50%; object-fit:cover; }
.atk-product-layout { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
@media(max-width:700px){ .atk-product-layout { grid-template-columns:1fr; } }
.atk-product-gallery img { width:100%; border-radius:var(--atk-radius); box-shadow:var(--atk-shadow); }
.atk-no-image-large { aspect-ratio:1; background:var(--atk-bg); border-radius:var(--atk-radius); display:flex; align-items:center; justify-content:center; color:var(--atk-muted); }
.atk-single-product-name  { font-size:26px; margin:0 0 10px; }
.atk-single-product-price { font-size:30px; font-weight:700; color:var(--atk-green); margin-bottom:16px; }
.atk-single-product-description { color:var(--atk-muted); margin-bottom:24px; }
.atk-whatsapp-note { font-size:12px; color:var(--atk-muted); margin-top:8px; }
.atk-product-back-link { margin-top:20px; }

/* ── Stores List ─────────────────────────────────── */
.atk-stores-page { max-width:1100px; margin:0 auto; padding:0 16px 60px; }
.atk-stores-grid { display:grid; gap:24px; }
.atk-stores-2col { grid-template-columns:repeat(2,1fr); }
.atk-stores-1col { grid-template-columns:1fr; }
@media(max-width:600px){ .atk-stores-2col { grid-template-columns:1fr; } }

.atk-store-card { background:var(--atk-white); border:1px solid var(--atk-border); border-radius:var(--atk-radius); overflow:hidden; transition:box-shadow .2s, transform .2s; display:flex; flex-direction:column; }
.atk-store-card:hover { box-shadow:var(--atk-shadow-h); transform:translateY(-4px); }
.atk-store-card-banner { height:140px; overflow:hidden; }
.atk-store-card-banner-img { height:100%; background-size:cover; background-position:center; background-color:var(--atk-green); }
.atk-store-card-body { padding:16px; display:flex; flex-direction:column; flex:1; }
.atk-store-card-avatar-wrap { margin-top:-40px; margin-bottom:8px; }
.atk-store-card-avatar-wrap .atk-store-avatar,
.atk-store-card-avatar-wrap .atk-avatar-placeholder { width:60px; height:60px; font-size:22px; border:3px solid #fff; box-shadow:var(--atk-shadow); }
.atk-store-card-name { margin:4px 0 6px; font-size:17px; font-weight:700; }
.atk-store-card-desc { margin:0 0 auto; font-size:13px; color:var(--atk-muted); }

/* ── Pagination ──────────────────────────────────── */
.atk-pagination { margin-top:32px; text-align:center; }
.atk-pagination .page-numbers { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; text-decoration:none; font-weight:600; color:var(--atk-text); border:1px solid var(--atk-border); margin:0 3px; transition:all .2s; }
.atk-pagination .page-numbers.current, .atk-pagination .page-numbers:hover { background:var(--atk-green); color:#fff; border-color:var(--atk-green); }

/* ── Empty state ─────────────────────────────────── */
.atk-empty-state { text-align:center; padding:48px 24px; color:var(--atk-muted); background:var(--atk-bg); border-radius:var(--atk-radius); border:1px dashed var(--atk-border); }

/* ── Store Search Bar ─────────────────────────────── */
.atk-store-search-wrap  { margin-bottom: 28px; }
.atk-store-search-form  { width: 100%; }
.atk-store-search-inner {
    display: flex; align-items: center; gap: 8px;
    background: var(--atk-white); border: 2px solid var(--atk-border);
    border-radius: 50px; padding: 6px 8px 6px 16px;
    box-shadow: var(--atk-shadow); transition: border-color .2s;
}
.atk-store-search-inner:focus-within { border-color: var(--atk-green); }
.atk-store-search-icon  { font-size: 16px; flex-shrink: 0; }
.atk-store-search-input {
    flex: 1; border: none; outline: none; font-size: 15px;
    background: transparent; padding: 4px 0; color: var(--atk-text);
    min-width: 0;
}
.atk-store-search-input::placeholder { color: #aaa; }
.atk-store-search-clear {
    color: var(--atk-muted); text-decoration: none; font-size: 14px;
    padding: 4px 6px; border-radius: 50%; flex-shrink: 0; transition: background .2s;
}
.atk-store-search-clear:hover { background: var(--atk-bg); color: var(--atk-danger); }
.atk-store-search-btn   { border-radius: 50px !important; flex-shrink: 0; padding: 8px 20px; font-size: 14px; }
.atk-search-feedback    { margin-top: 10px; font-size: 14px; color: var(--atk-muted); }
.atk-search-feedback strong { color: var(--atk-text); }
.atk-search-feedback em { font-style: normal; font-weight: 600; color: var(--atk-green); }
.atk-search-feedback a  { color: var(--atk-green); }

/* ═══════════════════════════════════════════════════════
   ATK FANPAGE STYLE — single-atk_store.php
═══════════════════════════════════════════════════════ */

/* ── Full-width override ──────────────────────────── */
body.single-atk_store .atk-fb-page,
body.single-atk_store .entry-content,
.atk-fb-page {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    background: var(--atk-white);
}

/* En móvil: sin margen lateral para que sea full-width */
@media (max-width: 640px) {
    .atk-fb-page {
        max-width: 100%;
    }
    /* Intentar romper el contenedor del tema */
    body.single-atk_store .entry-content,
    body.single-atk_store .site-content,
    body.single-atk_store .content-area,
    body.single-atk_store #primary,
    body.single-atk_store main {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
}

/* ── Banner ───────────────────────────────────────── */
.atk-fb-banner {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
}
.atk-fb-banner-default {
    background: linear-gradient(135deg, var(--atk-green) 0%, var(--atk-primary) 100%);
    cursor: default;
}
.atk-fb-banner-has-img:hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.08);
}

/* ── Header (avatar + nombre) ────────────────────── */
.atk-fb-header {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 0 14px 0;
    margin-top: -44px;
    position: relative;
    z-index: 2;
}

.atk-fb-avatar-outer {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid var(--atk-white);
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
    overflow: hidden;
    background: var(--atk-bg);
}
.atk-fb-avatar-clickable { cursor: pointer; }
.atk-fb-avatar-outer:hover { opacity: .92; }
.atk-fb-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.atk-fb-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--atk-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: bold;
}

.atk-fb-name-block {
    flex: 1;
    padding-bottom: 6px;
    padding-top: 46px; /* empuja texto abajo del avatar */
}

.atk-fb-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--atk-text);
    line-height: 1.2;
}
.atk-fb-stats {
    font-size: 13px;
    color: var(--atk-muted);
    margin: 0;
}
.atk-sep { margin: 0 4px; }

/* ── Descripción ──────────────────────────────────── */
.atk-fb-desc-wrap {
    padding: 10px 14px 0;
}
.atk-fb-desc {
    font-size: 14px;
    color: var(--atk-text);
    margin: 0;
    line-height: 1.5;
}
.atk-ver-mas {
    color: var(--atk-map);
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
}
.atk-ver-mas:hover { text-decoration: underline; }

/* ── Botones acción ───────────────────────────────── */
.atk-fb-actions {
    display: flex;
    gap: 10px;
    padding: 14px;
}
.atk-fb-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: filter .15s;
    line-height: 1;
}
.atk-fb-btn:hover { filter: brightness(.93); }

.atk-fb-btn-follow {
    background: #e4e6eb;
    color: var(--atk-text);
}
.atk-fb-btn-follow.atk-is-following {
    background: #d9f0e5;
    color: var(--atk-green);
}
.atk-fb-btn-msg {
    background: #0866FF;
    color: #fff !important;
}
.atk-fb-btn-msg svg { flex-shrink: 0; }

/* ── Tabs ─────────────────────────────────────────── */
.atk-fb-tabs {
    display: flex;
    border-top: 1px solid var(--atk-border);
    border-bottom: 1px solid var(--atk-border);
    margin: 2px 0 0;
    overflow-x: auto;
}
.atk-fb-tab {
    flex: 1;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--atk-muted);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
}
.atk-fb-tab:hover { color: var(--atk-text); background: var(--atk-bg); }
.atk-fb-tab.active {
    color: var(--atk-map);
    border-bottom-color: var(--atk-map);
}

/* ── Panels ───────────────────────────────────────── */
.atk-fb-panel {
    padding: 16px 14px;
    min-height: 120px;
}

/* ── Reels Grid ───────────────────────────────────── */
.atk-reels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}
@media (min-width: 400px) { .atk-reels-grid { gap: 6px; } }

.atk-reel-item {
    cursor: pointer;
    position: relative;
}
.atk-reel-thumb {
    aspect-ratio: 9/16;
    background: #222;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.atk-reel-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.18);
    transition: background .15s;
}
.atk-reel-item:hover .atk-reel-thumb::after { background: rgba(0,0,0,.32); }
.atk-reel-play {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 24px;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.atk-reel-title {
    font-size: 12px;
    color: var(--atk-muted);
    margin: 4px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Detalles ─────────────────────────────────────── */
.atk-fb-detalles {
    padding: 16px 14px 24px;
    border-top: 8px solid var(--atk-bg);
}
.atk-fb-detalles h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--atk-text);
}
.atk-detalle-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
    color: var(--atk-text);
    border-bottom: 1px solid #f0f0f0;
}
.atk-detalle-item:last-child { border-bottom: none; }
.atk-detalle-icon { font-size: 18px; flex-shrink: 0; line-height: 1.3; }
.atk-detalle-link {
    color: var(--atk-map);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.atk-detalle-link:hover { text-decoration: underline; }

/* ── Lightbox imagen ──────────────────────────────── */
#atk-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.88);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.atk-lightbox-inner {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
}
.atk-lightbox-inner img {
    max-width: 95vw;
    max-height: 88vh;
    border-radius: 8px;
    display: block;
    object-fit: contain;
}
.atk-lb-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 34px;
    height: 34px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
    z-index: 2;
}

/* ── Modal Reel ───────────────────────────────────── */
#atk-reel-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.atk-reel-modal-inner {
    position: relative;
    width: min(400px, 96vw);
}
.atk-reel-modal-title {
    color: #fff;
    font-size: 14px;
    text-align: center;
    margin: 0 0 10px;
}
.atk-reel-iframe-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 80vh;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.atk-reel-iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── Reels Admin Grid (dashboard) ─────────────────── */
.atk-reels-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.atk-reel-admin-card {
    background: var(--atk-white);
    border: 1px solid var(--atk-border);
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 10px;
}
.atk-reel-admin-thumb {
    aspect-ratio: 9/16;
    background: #222 center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    position: relative;
}
.atk-reel-admin-name {
    font-size: 12px;
    font-weight: 600;
    margin: 6px 8px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Store page: horario en dashboard (campos extra) ─ */
.atk-field-hours input { font-family: monospace; }

/* ═══════════════════════════════════════════════════════════
   FEED — TARJETAS ESTILO FACEBOOK
═══════════════════════════════════════════════════════════ */

.atk-feed { display:flex; flex-direction:column; gap:0; }

.atk-feed-card {
    background: var(--atk-white);
    border-top: 8px solid var(--atk-bg);
    padding: 16px;
}
.atk-flash-card { border-left: 4px solid #FF6B00; }
.atk-product-card { border-left: none; }

/* Badge de oferta flash */
.atk-flash-badge {
    display: inline-flex;
    align-items: center;
    background: #FFF3E0;
    color: #E65100;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid #FFCC80;
}

/* Títulos */
.atk-flash-feed-title {
    font-size: 18px;
    font-weight: 800;
    color: #E65100;
    margin: 0 0 8px;
    line-height: 1.3;
}
.atk-feed-product-body { margin-bottom: 10px; }
.atk-feed-product-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--atk-text);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}
.atk-feed-product-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--atk-green);
    display: block;
    margin-bottom: 6px;
}
.atk-feed-desc {
    font-size: 14px;
    color: #444;
    line-height: 1.55;
    margin: 0 0 12px;
}
.atk-feed-img {
    width: 100%;
    border-radius: 10px;
    display: block;
    margin-bottom: 14px;
    max-height: 400px;
    object-fit: cover;
}

/* ── BOTONES DE ACCIÓN ─────────────────────────────────── */
.atk-feed-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--atk-border);
    margin-top: 4px;
}
.atk-feed-btn {
    flex: 1 !important;
    min-width: 120px !important;
    padding: 13px 14px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-align: center !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    border: none !important;
    transition: all .18s;
    line-height: 1 !important;
    box-sizing: border-box !important;
}
.atk-btn-wa {
    background: #25D366 !important;
    color: #fff !important;
    font-size: 15px !important;
    padding: 14px 16px !important;
    flex: 2 !important;
}
.atk-btn-wa:hover { background: #1ebe5c !important; }

.atk-btn-outline {
    background: #fff !important;
    color: #333 !important;
    border: 1.5px solid #ddd !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}
.atk-btn-outline:hover { border-color: #128C7E !important; color: #128C7E !important; }

/* Ver más al final del feed */
.atk-feed-ver-mas-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-top: 8px solid var(--atk-bg);
}

/* ═══════════════════════════════════════════════════════════
   OFERTAS FLASH — DASHBOARD
═══════════════════════════════════════════════════════════ */
.atk-flash-admin-list { display:flex; flex-direction:column; gap:12px; margin-top:14px; }
.atk-flash-admin-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--atk-bg);
    border: 1px solid var(--atk-border);
    border-radius: 10px;
    border-left: 4px solid #FF6B00;
}
.atk-flash-admin-card.atk-flash-expired { opacity:.6; border-left-color:var(--atk-border); }
.atk-flash-admin-img { width:70px; height:70px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.atk-flash-admin-body { flex:1; min-width:0; }
.atk-flash-admin-title { font-size:14px; font-weight:700; margin:0 0 4px; }
.atk-flash-admin-desc  { font-size:13px; color:var(--atk-muted); margin:0 0 4px; }
.atk-flash-admin-dates { font-size:12px; color:var(--atk-muted); margin:0 0 8px; }
.atk-flash-vencida { color:#e53e3e; font-weight:600; }
.atk-form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }

/* Upload foto en form */
.atk-reel-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 20px;
    border: 2.5px dashed var(--atk-border);
    border-radius: 10px;
    background: var(--atk-bg);
    cursor: pointer;
    text-align: center;
    transition: all .2s;
}
.atk-reel-upload-area:hover { border-color:var(--atk-green); background:#e8f5e9; }

/* Subpage header */
.atk-subpage-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 14px 10px;
    border-bottom: 1px solid var(--atk-border);
    position: sticky;
    top: 0;
    background: var(--atk-white);
    z-index: 10;
}
.atk-subpage-header h2 { font-size:17px; font-weight:700; margin:0; }
.atk-back-btn {
    color: var(--atk-map, #0866FF);
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    white-space:nowrap;
}
.atk-catalog-grid-full { padding:14px; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); }

/* ═══════════════════════════════════════════════════════
   GRILLA DE PRODUCTOS — 2 columnas, tarjetas compactas
═══════════════════════════════════════════════════════ */
.atk-prod-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 12px !important;
}
.atk-prod-card {
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border-radius: 10px !important;
    border: 1px solid #e8e8e8 !important;
    overflow: hidden !important;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.07) !important;
    transition: box-shadow .18s;
}
.atk-prod-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.12) !important; }

.atk-prod-thumb {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
}
.atk-prod-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}
.atk-prod-no-img {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 36px !important;
}
.atk-prod-info {
    padding: 8px 9px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    flex: 1 !important;
}
.atk-prod-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}
.atk-prod-price {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #128C7E !important;
    margin: 0 !important;
}
.atk-prod-wa {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: #25D366 !important;
    color: #fff !important;
    border-radius: 7px !important;
    padding: 7px 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-top: auto !important;
}
.atk-prod-wa:hover { background: #1ebe5c !important; }



/* ================================================================
   AUTH UNIFICADA — [atk_auth]  (diseño v2)
   ================================================================ */

.atk-auth-card {
    max-width: 440px;
    margin: 32px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(18,140,126,0.13);
    overflow: hidden;
    font-family: inherit;
}

/* ── Header ─────────────────────────────────── */
.atk-auth-header {
    background: linear-gradient(135deg, #128C7E 0%, #0a6b5f 100%);
    padding: 24px 24px 0;
    position: relative;
    overflow: hidden;
}
.atk-auth-header::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 130px; height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    pointer-events: none;
}
.atk-auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.atk-auth-brand-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.atk-auth-brand-name {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}
.atk-auth-logo-img {
    max-height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ── Toggle Login / Crear cuenta ─────────────── */
.atk-auth-toggle-wrap {
    display: flex;
    background: rgba(255,255,255,0.15);
    border-radius: 12px 12px 0 0;
    padding: 4px 4px 0;
    gap: 2px;
    position: relative;
    z-index: 1;
}
.atk-auth-toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 8px 14px;
    border-radius: 9px 9px 0 0;
    cursor: pointer;
    transition: all 0.22s ease;
}
.atk-auth-toggle-btn.active {
    background: #fff;
    color: #128C7E;
}

/* ── Cuerpo ──────────────────────────────────── */
.atk-auth-body {
    padding: 28px;
}

/* ── Paneles ─────────────────────────────────── */
.atk-auth-panel {
    display: none;
}
.atk-auth-panel.atk-panel-active {
    display: block;
    animation: atk-panel-in 0.25s ease both;
}
@keyframes atk-panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.atk-auth-panel-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a2e2b;
    letter-spacing: -0.5px;
    margin: 0 0 4px;
}
.atk-auth-panel-sub {
    font-size: 13px;
    color: #6b8a85;
    margin: 0 0 22px;
    line-height: 1.5;
}

/* ── Notices ─────────────────────────────────── */
.atk-auth-notice {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 18px;
}
.atk-auth-notice--success { background: #e8f8f0; color: #1a7a4a; border: 1px solid #b8ebd3; }
.atk-auth-notice--error   { background: #fdecea; color: #e53935; border: 1px solid #f5c6c4; }

/* ── Campos ──────────────────────────────────── */
.atk-auth-field {
    margin-bottom: 16px;
}
.atk-auth-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #6b8a85;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 7px;
}
.atk-auth-field label small {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
}
.atk-auth-field input[type="text"],
.atk-auth-field input[type="email"],
.atk-auth-field input[type="password"],
.atk-auth-field input[type="tel"],
.atk-auth-field textarea {
    width: 100%;
    background: #f7fafa;
    border: 1.5px solid #dde8e6;
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    color: #1a2e2b;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}
.atk-auth-field input:focus,
.atk-auth-field textarea:focus {
    border-color: #128C7E;
    box-shadow: 0 0 0 3px rgba(18,140,126,0.1);
}
.atk-auth-field textarea {
    resize: vertical;
    min-height: 80px;
}
.atk-auth-hint {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #6b8a85;
}

/* Input con botón ojo */
.atk-auth-input-wrap {
    position: relative;
}
.atk-auth-input-wrap input {
    padding-right: 44px !important;
}
.atk-auth-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #6b8a85;
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
}
.atk-auth-eye-btn:hover { color: #128C7E; }

/* Fila recordar / olvidé */
.atk-auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.atk-auth-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b8a85;
    cursor: pointer;
}
.atk-auth-check-label input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #128C7E;
    cursor: pointer;
}
.atk-auth-link-small {
    font-size: 13px;
    color: #128C7E;
    font-weight: 600;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}
.atk-auth-link-small:hover { text-decoration: underline; }

/* WhatsApp input con prefijo */
.atk-auth-wa-wrap {
    display: flex;
}
.atk-auth-wa-prefix {
    background: #f7fafa;
    border: 1.5px solid #dde8e6;
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 12px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #6b8a85;
    white-space: nowrap;
}
.atk-auth-wa-wrap input {
    border-radius: 0 10px 10px 0 !important;
}

/* Grid 2 columnas */
.atk-auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Grid de uploads */
.atk-auth-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 4px;
}

/* ── Secciones numeradas del registro ────────── */
.atk-auth-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    color: #6b8a85;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 22px 0 16px;
}
.atk-auth-section-label:first-of-type { margin-top: 0; }
.atk-auth-section-label small {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
}
.atk-auth-section-num {
    width: 20px; height: 20px;
    background: #128C7E;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.atk-auth-section-line {
    flex: 1;
    height: 1px;
    background: #dde8e6;
}

/* ── Botón principal ─────────────────────────── */
.atk-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #128C7E 0%, #0a6b5f 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(18,140,126,0.35);
    transition: all 0.2s ease;
    margin-top: 4px;
}
.atk-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(18,140,126,0.45);
}
.atk-auth-btn:active { transform: translateY(0); }

/* ── Panel recuperar ─────────────────────────── */
.atk-auth-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #128C7E;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    margin-bottom: 18px;
}
.atk-auth-back-btn:hover { text-decoration: underline; }

/* ── Footer del panel ────────────────────────── */
.atk-auth-panel-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #dde8e6;
    font-size: 13px;
    color: #6b8a85;
}
.atk-auth-panel-footer button {
    color: #128C7E;
    font-weight: 700;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}
.atk-auth-panel-footer button:hover { text-decoration: underline; }

/* ── Responsive mobile ───────────────────────── */
@media (max-width: 460px) {
    .atk-auth-card {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
    .atk-auth-grid-2,
    .atk-auth-upload-grid {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   TEMA B — DISEÑO MODERNO OSCURO + CORRECCIONES MOBILE
   Compatible con Top Store Pro. Variables editables desde el admin.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

/* Valores por defecto — especificidad 0 para que el <style> inline del admin siempre gane */
:where(:root) {
    --atkb-bg:       #0e0e0e;
    --atkb-surface:  #1a1a1a;
    --atkb-surface2: #242424;
    --atkb-border:   #2e2e2e;
    --atkb-accent:   #e8ff4a;
    --atkb-text:     #f0f0f0;
    --atkb-muted:    #888888;
    --atkb-wa:       #25D366;
    --atkb-radius:   14px;
}

/* ── Página de tienda ───────────────────────────────── */
.atk-fb-page {
    background: var(--atkb-bg) !important;
    color: var(--atkb-text) !important;
    font-family: 'Outfit', 'Segoe UI', sans-serif !important;
}
.atk-fb-banner-default {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
}
.atk-fb-avatar-outer {
    border-color: var(--atkb-accent) !important;
    box-shadow: 0 0 0 3px var(--atkb-surface), 0 0 20px rgba(232,255,74,.2) !important;
    border-radius: 14px !important;
    background: var(--atkb-surface2) !important;
}
.atk-fb-avatar-placeholder {
    background: var(--atkb-surface2) !important;
    color: var(--atkb-accent) !important;
    border-radius: 10px !important;
}
.atk-fb-name  { color: var(--atkb-text) !important; font-weight: 800 !important; }
.atk-fb-stats { color: var(--atkb-muted) !important; }
.atk-fb-desc  { color: var(--atkb-muted) !important; }

.atk-fb-btn-follow {
    background: var(--atkb-surface2) !important;
    color: var(--atkb-text) !important;
    border: 1px solid var(--atkb-border) !important;
    border-radius: 10px !important;
}
.atk-fb-btn-follow.atk-is-following {
    background: rgba(232,255,74,.1) !important;
    color: var(--atkb-accent) !important;
    border-color: rgba(232,255,74,.3) !important;
}
.atk-fb-btn-msg { background: var(--atkb-wa) !important; border-radius: 10px !important; }

.atk-fb-tabs  { border-color: var(--atkb-border) !important; background: var(--atkb-surface) !important; }
.atk-fb-tab   { color: var(--atkb-muted) !important; }
.atk-fb-tab:hover { color: var(--atkb-text) !important; background: var(--atkb-surface2) !important; }

/* ── Grid de productos: columna flex, tarjetas horizontales ── */
.atk-prod-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 12px !important;
    background: var(--atkb-bg) !important;
}

/* Card: SIEMPRE div, nunca a — evita conflicto con el tema */
div.atk-prod-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    background: var(--atkb-surface) !important;
    border: 1px solid var(--atkb-border) !important;
    border-radius: var(--atkb-radius) !important;
    overflow: hidden !important;
    box-shadow: none !important;
    min-height: 110px !important;
    transition: border-color .2s !important;
}
div.atk-prod-card:hover {
    border-color: var(--atkb-accent) !important;
}

/* Link interno (solo envuelve la imagen) */
.atk-prod-card-link {
    display: block !important;
    width: 110px !important;
    min-width: 110px !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
    line-height: 0 !important;
}

/* Thumb */
div.atk-prod-card .atk-prod-thumb {
    width: 110px !important;
    height: 110px !important;
    min-height: 110px !important;
    flex-shrink: 0 !important;
    aspect-ratio: unset !important;
    background: var(--atkb-surface2) !important;
    overflow: hidden !important;
    display: block !important;
}
div.atk-prod-card .atk-prod-thumb img {
    width: 110px !important;
    height: 110px !important;
    object-fit: cover !important;
    display: block !important;
}
div.atk-prod-card .atk-prod-no-img {
    width: 110px !important;
    height: 110px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 32px !important;
    background: var(--atkb-surface2) !important;
}

/* Info */
div.atk-prod-card .atk-prod-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 12px 14px !important;
    min-width: 0 !important;
}
div.atk-prod-card .atk-prod-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--atkb-text) !important;
    margin: 0 0 4px !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}
div.atk-prod-card .atk-prod-price {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--atkb-accent) !important;
    margin: 0 0 8px !important;
}
div.atk-prod-card .atk-prod-wa {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: var(--atkb-wa) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    align-self: flex-start !important;
}

/* Ver todos */
.atk-feed-ver-mas-wrap { background: var(--atkb-bg) !important; padding: 4px 12px 16px !important; }
.atk-ver-todos-btn {
    display: block !important;
    text-align: center !important;
    padding: 13px !important;
    background: var(--atkb-surface) !important;
    border: 1px solid var(--atkb-border) !important;
    border-radius: var(--atkb-radius) !important;
    color: var(--atkb-accent) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 14px !important;
}
.atk-ver-todos-btn:hover { border-color: var(--atkb-accent) !important; }

/* Detalles de tienda */
.atk-fb-detalles {
    background: var(--atkb-surface) !important;
    border-top: 1px solid var(--atkb-border) !important;
    margin: 12px 12px !important;
    border-radius: var(--atkb-radius) !important;
    padding: 16px !important;
}
.atk-fb-detalles h3 { color: var(--atkb-text) !important; font-size: 16px !important; font-weight: 800 !important; }
.atk-detalle-item   { color: var(--atkb-muted) !important; border-color: var(--atkb-border) !important; font-size: 13px !important; }
.atk-detalle-link   { color: var(--atkb-accent) !important; }

/* Subpágina todos los productos */
.atk-subpage-header { background: var(--atkb-surface) !important; border-bottom: 1px solid var(--atkb-border) !important; }
.atk-back-btn { color: var(--atkb-accent) !important; }
.atk-catalog-grid { background: var(--atkb-bg) !important; padding: 12px !important; }
.atk-catalog-item {
    background: var(--atkb-surface) !important;
    border-color: var(--atkb-border) !important;
    border-radius: var(--atkb-radius) !important;
    color: var(--atkb-text) !important;
}
.atk-catalog-item:hover { border-color: var(--atkb-accent) !important; }
.atk-catalog-thumb { background: var(--atkb-surface2) !important; }
.atk-catalog-price { color: var(--atkb-accent) !important; }
.atk-catalog-name  { color: var(--atkb-muted) !important; }

/* ── Producto individual ────────────────────────────── */
.atk-single-product {
    background: var(--atkb-bg) !important;
    color: var(--atkb-text) !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.atk-product-store-tag {
    padding: 10px 16px !important;
    background: var(--atkb-surface) !important;
    border-bottom: 1px solid var(--atkb-border) !important;
    display: flex !important;
    align-items: center !important;
}
.atk-store-tag-link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    color: var(--atkb-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}
.atk-store-tag-link:hover { color: var(--atkb-accent) !important; }
.atk-tag-avatar {
    border-radius: 8px !important;
    border: 2px solid var(--atkb-accent) !important;
}

.atk-product-layout { display: flex !important; flex-direction: column !important; }

.atk-product-gallery {
    width: 100% !important;
    max-height: 320px !important;
    overflow: hidden !important;
    background: var(--atkb-surface2) !important;
}
.atk-product-gallery img {
    width: 100% !important;
    max-height: 320px !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
}

.atk-product-details {
    padding: 16px 16px 90px !important;
    background: var(--atkb-bg) !important;
}
.atk-single-product-name {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--atkb-text) !important;
    letter-spacing: -.3px !important;
    margin: 0 0 8px !important;
    line-height: 1.2 !important;
}
.atk-single-product-price {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--atkb-accent) !important;
    margin-bottom: 16px !important;
}
.atk-single-product-description {
    color: var(--atkb-muted) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 20px !important;
    padding: 14px !important;
    background: var(--atkb-surface) !important;
    border-radius: 10px !important;
    border: 1px solid var(--atkb-border) !important;
}
.atk-whatsapp-note {
    color: var(--atkb-muted) !important;
    font-size: 12px !important;
    margin-top: 8px !important;
    text-align: center !important;
}
.atk-product-back-link {
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid var(--atkb-border) !important;
}
.atk-product-back-link .atk-link {
    color: var(--atkb-accent) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Botón WA producto: sticky en mobile */
.atk-product-cta-wrap {
    margin-top: 16px !important;
}
.atk-cta-wa-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 16px 24px !important;
    background: #25D366 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: var(--atkb-radius) !important;
    text-decoration: none !important;
    letter-spacing: .3px !important;
    box-shadow: 0 4px 18px rgba(37,211,102,.35) !important;
    transition: transform .15s, box-shadow .15s !important;
}
.atk-cta-wa-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(37,211,102,.5) !important;
    color: #fff !important;
}
.atk-product-address {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 16px !important;
    font-size: 13px !important;
    color: var(--atkb-muted) !important;
}
.atk-product-map-link {
    color: var(--atkb-muted) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}
.atk-whatsapp-note { display: none !important; }
@media (max-width: 640px) {
    .atk-product-cta-wrap {
        position: fixed !important;
        bottom: 0 !important; left: 0 !important; right: 0 !important;
        z-index: 9999 !important;
        background: var(--atkb-bg) !important;
        border-top: 1px solid var(--atkb-border) !important;
        padding: 12px 16px !important;
        margin-top: 0 !important;
    }
}

/* ── Lista de tiendas ───────────────────────────────── */
.atk-stores-page { background: var(--atkb-bg) !important; color: var(--atkb-text) !important; }
.atk-store-search-wrap { background: var(--atkb-surface) !important; border-bottom: 1px solid var(--atkb-border) !important; }
.atk-store-search-input {
    background: var(--atkb-surface2) !important;
    border-color: var(--atkb-border) !important;
    color: var(--atkb-text) !important;
}
.atk-store-search-input:focus { border-color: var(--atkb-accent) !important; outline: none !important; }

.atk-stores-grid { background: var(--atkb-bg) !important; gap: 12px !important; padding: 12px !important; }
.atk-store-card {
    background: var(--atkb-surface) !important;
    border: 1px solid var(--atkb-border) !important;
    border-radius: var(--atkb-radius) !important;
    transition: border-color .2s, transform .2s !important;
}
.atk-store-card:hover {
    border-color: var(--atkb-accent) !important;
    transform: translateY(-2px) !important;
    box-shadow: none !important;
}
.atk-store-card-banner-img.atk-default-banner {
    background: linear-gradient(135deg, #1a1a2e, #0f3460) !important;
}
.atk-store-card-avatar-wrap .atk-store-avatar,
.atk-store-card-avatar-wrap .atk-avatar-placeholder {
    border-color: var(--atkb-accent) !important;
    box-shadow: 0 0 0 3px var(--atkb-surface) !important;
}
.atk-avatar-placeholder {
    background: var(--atkb-surface2) !important;
    color: var(--atkb-accent) !important;
}
.atk-store-card-name { color: var(--atkb-text) !important; }
.atk-store-card-desc { color: var(--atkb-muted) !important; }
.atk-btn-store-go {
    background: transparent !important;
    border: 1px solid var(--atkb-border) !important;
    color: var(--atkb-accent) !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
}
.atk-btn-store-go:hover {
    border-color: var(--atkb-accent) !important;
    background: rgba(232,255,74,.06) !important;
}
.atk-empty-state { color: var(--atkb-muted) !important; }

/* ── Bloque producto inyectado por WooCommerce (inject_product_script) ── */
.atk-product-block {
    display: none;
    padding: 16px 0 8px;
}
.atk-pb-store-row {
    margin-bottom: 10px;
}
.atk-pb-store-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    font-size: 13px;
}
.atk-pb-store-link:hover .atk-pb-store-name { text-decoration: underline; }
.atk-pb-avatar-img {
    width: 28px; height: 28px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #25D366;
}
.atk-pb-avatar-initials {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: #25D366;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.atk-pb-price {
    font-size: 26px;
    font-weight: 800;
    color: #128C7E;
    margin-bottom: 14px;
    line-height: 1.1;
}
/* ── Botón WhatsApp profesional ── */
.atk-pb-wa-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 15px 20px !important;
    background: #25D366 !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    letter-spacing: .2px !important;
    box-shadow: 0 4px 16px rgba(37,211,102,.35) !important;
    transition: transform .15s ease, box-shadow .15s ease !important;
    margin-bottom: 14px !important;
    box-sizing: border-box !important;
}
.atk-pb-wa-btn:hover {
    background: #20ba5a !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(37,211,102,.5) !important;
    text-decoration: none !important;
}
.atk-pb-wa-hint { display: none !important; }
.atk-pb-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}
.atk-pb-map-link {
    color: #128C7E;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.atk-pb-footer {
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 6px;
}
.atk-pb-more-link {
    font-size: 13px;
    color: #128C7E;
    text-decoration: none;
    font-weight: 600;
}
.atk-pb-more-link:hover { text-decoration: underline; }

/* ── Galería de variantes — Dashboard (formulario) ── */
.atk-gallery-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.atk-gallery-thumb-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}
.atk-gallery-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.atk-gallery-thumb-del {
    position: absolute;
    top: 2px; right: 2px;
    width: 20px; height: 20px;
    background: rgba(0,0,0,.65);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.atk-gallery-thumb-del:hover { background: #e53935; }

/* ── Galería de variantes — Producto individual ── */
.atk-variant-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 0;
}
.atk-variant-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    padding: 0;
    transition: border-color .2s, transform .15s;
    flex-shrink: 0;
}
.atk-variant-thumb:hover {
    border-color: #25D366;
    transform: translateY(-2px);
}
.atk-variant-thumb.active {
    border-color: #128C7E;
    box-shadow: 0 0 0 2px rgba(18,140,126,.25);
}
.atk-product-main-img {
    transition: opacity .2s;
}

/* ══════════════════════════════════════════════════════
   ATK Category Picker — Custom UI
   ══════════════════════════════════════════════════════ */

.atk-field-category { position: relative; }

.atk-cat-picker { position: relative; user-select: none; }

/* Selected display */
.atk-cat-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: border-color .2s, box-shadow .2s;
    min-height: 44px;
}
.atk-cat-selected:hover,
.atk-cat-selected:focus {
    border-color: var(--atk-green, #25D366);
    box-shadow: 0 0 0 3px rgba(37,211,102,.12);
    outline: none;
}
.atk-cat-selected-icon { font-size: 18px; line-height: 1; }
.atk-cat-selected-name { flex: 1; }
.atk-cat-arrow { font-size: 12px; color: #999; transition: transform .2s; }
.atk-cat-picker.open .atk-cat-arrow { transform: rotate(180deg); }

/* Dropdown */
.atk-cat-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 2px solid var(--atk-green, #25D366);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 9999;
    overflow: hidden;
    max-height: 320px;
    display: flex;
    flex-direction: column;
}

.atk-cat-search-wrap {
    padding: 10px 12px 8px;
    border-bottom: 1px solid #f0f0f0;
}
.atk-cat-search {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    outline: none;
    transition: border-color .2s;
}
.atk-cat-search:focus { border-color: var(--atk-green, #25D366); }

.atk-cat-list {
    overflow-y: auto;
    flex: 1;
    padding: 6px 0;
}

/* Items */
.atk-cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    cursor: pointer;
    font-size: 13.5px;
    color: #333;
    transition: background .15s;
    position: relative;
}
.atk-cat-item:hover { background: #f5fdf7; }
.atk-cat-item.atk-cat-selected-item { background: #e8f9ef; font-weight: 600; }
.atk-cat-none { color: #aaa; font-style: italic; }
.atk-cat-none:hover { background: #fafafa; }

.atk-cat-icon { font-size: 16px; line-height: 1; flex-shrink: 0; }
.atk-cat-label { flex: 1; }

/* Subcategories */
.atk-cat-sub { padding-left: 32px; }
.atk-cat-sub-icon { font-size: 13px; color: #aaa; }

/* Expand arrow */
.atk-cat-expand {
    font-size: 11px;
    color: #aaa;
    padding: 2px 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform .15s;
}
.atk-cat-expand:hover { color: var(--atk-green, #25D366); }

/* Footer */
.atk-cat-footer {
    border-top: 1px solid #f0f0f0;
    padding: 8px 10px;
}
.atk-cat-create-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
}
.atk-cat-create-btn:hover { opacity: .88; transform: translateY(-1px); }
.atk-cat-create-btn span { font-size: 16px; }

/* New category mini-form */
.atk-cat-new-form {
    margin-top: 8px;
    border: 2px dashed var(--atk-green, #25D366);
    border-radius: 12px;
    overflow: hidden;
}
.atk-cat-new-inner {
    padding: 14px 16px;
    background: #f5fdf7;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.atk-cat-new-title {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    color: #128C7E;
}
.atk-cat-new-inner input[type="text"],
.atk-cat-new-inner select {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #d0e8d8;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13.5px;
    background: #fff;
    outline: none;
    transition: border-color .2s;
}
.atk-cat-new-inner input[type="text"]:focus,
.atk-cat-new-inner select:focus {
    border-color: var(--atk-green, #25D366);
    box-shadow: 0 0 0 3px rgba(37,211,102,.1);
}
.atk-cat-new-actions { display: flex; gap: 8px; }
.atk-cat-new-msg { margin: 0; font-size: 12.5px; font-weight: 500; }

/* ── Icon picker (#4) ───────────────────────────────────── */
.atk-cat-icon-picker { margin-bottom: 10px; }
.atk-cat-icon-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
}
.atk-icon-opt {
    background: none;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 4px 5px;
    transition: border-color .15s, background .15s;
}
.atk-icon-opt:hover { background: rgba(0,0,0,.06); }
.atk-icon-opt-active {
    border-color: var(--atkb-accent, #1a9e7a);
    background: rgba(26,158,122,.1);
}
.atk-icon-selected-preview {
    display: inline-block;
    font-size: 22px;
    vertical-align: middle;
    margin-left: 6px;
}

/* Feedback visual al crear categoría exitosamente */
.atk-cat-selected.atk-cat-just-created {
    border-color: var(--atkb-accent, #1a9e7a) !important;
    background: rgba(26, 158, 122, 0.08);
    transition: border-color .3s, background .3s;
}
.atk-cat-selected.atk-cat-just-created::after {
    content: ' ✅';
    font-size: 13px;
}

/* ══ Reseñas (ATK_Reviews — modular) ══════════════════════ */
.atk-reviews-wrap { display:flex; flex-direction:column; gap:14px; }

/* Resumen */
.atk-reviews-summary {
    display:flex; align-items:center; gap:16px;
    background:#fff; border:1px solid #E4E7ED;
    border-radius:12px; padding:16px;
    box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.atk-reviews-score {
    font-size:44px; font-weight:800; color:#FF8F00;
    line-height:1; flex-shrink:0;
}
.atk-reviews-right { flex:1; }
.atk-stars { color:#FF8F00; font-size:16px; letter-spacing:-1px; }
.atk-stars-sm { color:#FF8F00; font-size:13px; letter-spacing:-1px; }
.atk-reviews-count { font-size:12px; color:#6B7280; margin-top:2px; }
.atk-reviews-bars { margin-top:8px; display:flex; flex-direction:column; gap:4px; }
.atk-rbar-row { display:flex; align-items:center; gap:6px; }
.atk-rbar-num { font-size:11px; color:#6B7280; width:14px; text-align:right; }
.atk-rbar-bg { flex:1; height:6px; border-radius:3px; background:#F0F2F5; overflow:hidden; }
.atk-rbar-fill { height:100%; border-radius:3px; background:#FF8F00; }

/* Formulario */
.atk-review-form-card {
    background:#fff; border:1px solid #E4E7ED;
    border-radius:12px; padding:16px;
    box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.atk-review-form-title { font-size:13px; font-weight:700; color:#111827; margin-bottom:10px; }
.atk-star-select { display:flex; gap:6px; margin-bottom:12px; }
.atk-star-btn {
    font-size:28px; cursor:pointer; color:#E4E7ED;
    background:none; border:none; padding:0;
    transition:color .1s, transform .1s;
    line-height:1;
}
.atk-star-btn.selected,
.atk-star-btn:hover { color:#FF8F00; transform:scale(1.15); }
.atk-review-textarea {
    width:100%; padding:10px 12px;
    border:1.5px solid #E4E7ED; border-radius:8px;
    font-size:13px; font-family:inherit; resize:none;
    outline:none; color:#111827; transition:border-color .15s;
}
.atk-review-textarea:focus { border-color:#1DAA61; }
.atk-review-submit {
    margin-top:10px; width:100%;
    display:flex; align-items:center; justify-content:center; gap:6px;
    padding:11px 16px; border-radius:8px;
    background:#1DAA61; color:#fff;
    font-size:13px; font-weight:700; cursor:pointer;
    border:none; font-family:inherit; transition:opacity .15s;
}
.atk-review-submit:hover { opacity:.88; }
.atk-review-submit:disabled { opacity:.5; cursor:not-allowed; }
.atk-review-already { font-size:12px; color:#6B7280; text-align:center; padding:8px 0; }

/* Lista de reseñas */
.atk-reviews-list { display:flex; flex-direction:column; gap:10px; }
.atk-review-card {
    background:#fff; border:1px solid #E4E7ED;
    border-radius:12px; padding:14px;
    box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.atk-review-header { display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.atk-review-avatar {
    width:34px; height:34px; border-radius:50%;
    background:#F0F2F5; display:flex; align-items:center; justify-content:center;
    font-size:13px; font-weight:700; color:#6B7280; flex-shrink:0;
}
.atk-review-meta { flex:1; min-width:0; }
.atk-review-name { font-size:13px; font-weight:600; color:#111827; }
.atk-review-date { font-size:11px; color:#6B7280; margin-top:1px; }
.atk-review-text { font-size:13px; color:#6B7280; line-height:1.5; margin-top:6px; }
.atk-reviews-empty { text-align:center; padding:24px; color:#6B7280; font-size:13px; }

/* Load more */
.atk-reviews-loadmore {
    width:100%; padding:10px; border-radius:8px;
    background:transparent; border:1.5px solid #E4E7ED;
    font-size:13px; font-weight:600; color:#6B7280;
    cursor:pointer; font-family:inherit; transition:border-color .15s;
}
.atk-reviews-loadmore:hover { border-color:#1DAA61; color:#1DAA61; }

/* Notice de reseña */
.atk-review-notice {
    padding:10px 14px; border-radius:8px;
    font-size:13px; margin-top:8px; display:none;
}
.atk-review-notice.success { background:#E8F5E9; color:#1DAA61; }
.atk-review-notice.error   { background:#FFEBEE; color:#E53935; }
/* ══ Fin Reseñas ════════════════════════════════════════════ */

/* ══ Tienda pública v2 (atkp — modular, no pisa .atk-fb-*) ═══════ */

/* Banner */
.atkp-banner { height:160px; background-size:cover; background-position:center; position:relative; overflow:hidden; }
.atkp-banner-default { background:linear-gradient(135deg,#0a3d26 0%,#1DAA61 60%,#25d366 100%); }
.atkp-banner-has-img { }
.atkp-banner-zoom { position:absolute; top:10px; right:10px; background:rgba(0,0,0,.35); color:#fff; border:none; border-radius:50%; width:34px; height:34px; font-size:14px; cursor:pointer; display:flex; align-items:center; justify-content:center; backdrop-filter:blur(4px); }

/* Identity */
.atkp-identity { background:#fff; padding:0 16px 14px; border-bottom:1px solid #E4E7ED; }
.atkp-identity-row { display:flex; align-items:flex-end; gap:12px; margin-top:-32px; margin-bottom:10px; }
.atkp-avatar-outer { position:relative; flex-shrink:0; }
.atkp-avatar-clickable { cursor:pointer; }
.atkp-avatar { width:70px; height:70px; border-radius:50%; object-fit:cover; border:3px solid #fff; box-shadow:0 4px 16px rgba(0,0,0,.12); display:block; }
.atkp-avatar-placeholder { width:70px; height:70px; border-radius:50%; background:#1DAA61; color:#fff; display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:800; border:3px solid #fff; box-shadow:0 4px 16px rgba(0,0,0,.12); }
.atkp-name-block { flex:1; padding-bottom:4px; }
.atkp-store-name { font-size:18px; font-weight:800; line-height:1.2; color:#111827; margin:0; }
.atkp-badges { display:flex; gap:6px; flex-wrap:wrap; margin-top:5px; }
.atkp-badge { display:inline-flex; align-items:center; gap:3px; padding:3px 8px; border-radius:20px; font-size:11px; font-weight:600; }
.atkp-badge-verified { background:#E8F5E9; color:#1DAA61; }
.atkp-badge-open { background:#E8F5E9; color:#1DAA61; }
.atkp-badge-closed { background:#FFEBEE; color:#E53935; }

/* Quick info */
.atkp-quick-info { display:flex; flex-direction:column; gap:6px; margin-top:10px; }
.atkp-qi-row { display:flex; align-items:flex-start; gap:8px; font-size:13px; color:#6B7280; }
.atkp-qi-icon { font-size:14px; flex-shrink:0; margin-top:1px; }
.atkp-qi-link { color:#0070F3; text-decoration:none; }
.atkp-qi-link:hover { text-decoration:underline; }

/* Stats */
.atkp-stats { display:grid; grid-template-columns:repeat(3,1fr); background:#fff; border-bottom:1px solid #E4E7ED; }
.atkp-stat { text-align:center; padding:12px 6px; border-right:1px solid #E4E7ED; }
.atkp-stat:last-child { border-right:none; }
.atkp-stat-value { font-size:16px; font-weight:800; color:#111827; line-height:1.1; }
.atkp-stat-label { font-size:10px; color:#6B7280; margin-top:3px; text-transform:uppercase; letter-spacing:.4px; }

/* Action bar */
.atkp-action-bar { display:flex; gap:4px; padding:12px 16px; background:#fff; border-bottom:1px solid #E4E7ED; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.atkp-action-bar::-webkit-scrollbar { display:none; }
.atkp-action-btn { display:flex; flex-direction:column; align-items:center; gap:4px; flex-shrink:0; cursor:pointer; border:none; background:transparent; padding:0 8px; text-decoration:none; }
.atkp-action-icon { width:48px; height:48px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:20px; transition:opacity .15s; }
.atkp-action-btn:hover .atkp-action-icon { opacity:.8; }
.atkp-icon-wa  { background:#E8F5E9; }
.atkp-icon-map { background:#E3F2FD; }
.atkp-icon-ig  { background:#FCE4EC; }
.atkp-icon-fb  { background:#E8EAF6; }
.atkp-icon-follow { background:#F0F2F5; }
.atkp-icon-share  { background:#F0F2F5; }
.atkp-action-label { font-size:10px; color:#6B7280; font-weight:500; white-space:nowrap; }

/* Tabs */
.atkp-tabs { display:flex; background:#fff; border-bottom:1px solid #E4E7ED; }
.atkp-tab { flex:1; padding:12px 8px; font-size:13px; font-weight:500; color:#6B7280; border:none; background:none; cursor:pointer; font-family:inherit; border-bottom:2px solid transparent; transition:color .15s, border-color .15s; }
.atkp-tab.active { color:#1DAA61; font-weight:600; border-bottom-color:#1DAA61; }
.atkp-tab-content { padding:14px 16px; display:flex; flex-direction:column; gap:14px; }

/* Info card */
.atkp-info-card { background:#fff; border:1px solid #E4E7ED; border-radius:12px; overflow:hidden; box-shadow:0 1px 4px rgba(0,0,0,.06); }
.atkp-info-row { display:flex; align-items:flex-start; gap:12px; padding:12px 16px; border-bottom:1px solid #E4E7ED; }
.atkp-info-row:last-child { border-bottom:none; }
.atkp-info-icon { font-size:16px; flex-shrink:0; margin-top:1px; }
.atkp-info-label { font-size:11px; color:#6B7280; margin-bottom:2px; }
.atkp-info-value { font-size:13px; font-weight:500; color:#111827; }
.atkp-hours-grid { display:grid; grid-template-columns:60px 1fr; gap:3px 8px; font-size:12px; margin-top:2px; }
.atkp-hours-shift { color:#6B7280; }
.atkp-hours-time { font-weight:600; color:#111827; }
/* ══ Fin tienda pública v2 ══════════════════════════════════════ */

/* ══ ATK Stats — dashboard estadísticas (modular) ════════════ */
.atkds-chart-card { }
.atkds-chart-title { font-size:12px; font-weight:700; color:#6B7280; text-transform:uppercase; letter-spacing:.4px; margin-bottom:12px; }
.atkds-loading { font-size:13px; color:#6B7280; padding:12px 0; text-align:center; }
.atkds-empty   { font-size:13px; color:#6B7280; text-align:center; padding:8px 0; }

/* Gráfico de barras */
.atkds-bars { display:flex; align-items:flex-end; gap:6px; height:100px; padding-top:20px; }
.atkds-bar-col { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; height:100%; }
.atkds-bar-val { font-size:11px; font-weight:700; color:#111827; min-height:16px; }
.atkds-bar-wrap { flex:1; width:100%; display:flex; align-items:flex-end; background:#F0F2F5; border-radius:4px 4px 0 0; overflow:hidden; }
.atkds-bar-fill { width:100%; background:#1DAA61; border-radius:4px 4px 0 0; transition:height .4s ease; min-height:2px; }
.atkds-bar-label { font-size:10px; color:#6B7280; text-align:center; }

/* Top productos */
.atkds-top-list { display:flex; flex-direction:column; gap:0; }
.atkds-top-row { display:flex; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid #F0F2F5; font-size:13px; }
.atkds-top-row:last-child { border-bottom:none; }
.atkds-top-rank { width:20px; height:20px; border-radius:50%; background:#F0F2F5; color:#6B7280; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.atkds-top-name { flex:1; font-weight:500; color:#111827; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.atkds-top-views { font-size:12px; color:#6B7280; flex-shrink:0; }

/* Totales */
.atkds-totals { display:flex; flex-direction:column; gap:0; }
.atkds-total-row { display:flex; justify-content:space-between; align-items:center; padding:9px 0; border-bottom:1px solid #F0F2F5; font-size:13px; }
.atkds-total-row:last-child { border-bottom:none; }
.atkds-total-row strong { font-weight:800; color:#1DAA61; }
/* ══ Fin ATK Stats ═══════════════════════════════════════════ */

/* ══ ATK MercadoPago — dashboard Cobros (modular) ════════════ */
.atkmp-status-card { }
.atkmp-status-row { display:flex; align-items:center; gap:12px; }
.atkmp-status-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.atkmp-connected    { background:#E3F2FD; }
.atkmp-disconnected { background:#F0F2F5; }
.atkmp-status-info { flex:1; min-width:0; }
.atkmp-status-label { font-size:13px; font-weight:700; color:#111827; display:flex; align-items:center; gap:6px; }
.atkmp-status-sub   { font-size:12px; color:#6B7280; margin-top:2px; }
.atkmp-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.atkmp-dot-on  { background:#1DAA61; }
.atkmp-dot-off { background:#9E9E9E; }

.atkmp-config-rows { display:flex; flex-direction:column; gap:0; }
.atkmp-config-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid #F0F2F5; }
.atkmp-config-row:last-child { border-bottom:none; }
.atkmp-config-label { font-size:13px; font-weight:500; color:#111827; }
.atkmp-config-sub   { font-size:12px; color:#6B7280; margin-top:2px; }

.atkmp-connect-btn { background:#009EE3; color:#fff !important; display:flex; align-items:center; justify-content:center; gap:8px; }
.atkmp-connect-btn:hover { background:#0081C7; }

/* Botón pagar con MP en productos (tienda pública) */
.atk-btn-mp-pay {
    display:flex; align-items:center; justify-content:center; gap:6px;
    width:100%; padding:11px; border-radius:8px;
    background:#009EE3; color:#fff;
    font-size:13px; font-weight:700; cursor:pointer;
    border:none; font-family:inherit; margin-top:6px;
    transition:opacity .15s;
}
.atk-btn-mp-pay:hover { opacity:.88; }
.atk-btn-mp-pay:disabled { opacity:.5; cursor:not-allowed; }
/* ══ Fin ATK MercadoPago ════════════════════════════════════ */

/* ══ Selector de modo de venta (modular) ═════════════════════ */
.atkmp-mode-options { display:flex; flex-direction:column; gap:10px; }
.atkmp-mode-opt {
    display:flex; align-items:flex-start; gap:12px;
    padding:12px; border-radius:10px;
    border:1.5px solid #E4E7ED; cursor:pointer;
    transition:border-color .15s, background .15s;
    position:relative;
}
.atkmp-mode-opt input[type="radio"] { position:absolute; opacity:0; width:0; height:0; }
.atkmp-mode-opt.selected,
.atkmp-mode-opt:has(input:checked) {
    border-color:#1DAA61; background:#F0FAF5;
}
.atkmp-mode-icon { font-size:24px; flex-shrink:0; margin-top:2px; }
.atkmp-mode-info { flex:1; }
.atkmp-mode-title { font-size:13px; font-weight:700; color:#111827; }
.atkmp-mode-desc  { font-size:12px; color:#6B7280; margin-top:3px; line-height:1.4; }
/* ══ Fin selector modo de venta ══════════════════════════════ */

/* ── Botón Compartir (ATK Share) ── */
.atk-cta-share-btn {
    width: 100%;
    background: #fff;
    color: #555;
    border: 1.5px solid #ddd;
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    margin-top: 10px;
    stroke: #e8620a;
}
.atk-cta-share-btn:hover { background: #f5f5f5; border-color: #bbb; }
.atk-cta-share-btn svg   { stroke: #e8620a; }

.atk-share-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.atk-share-opt {
    flex: 1;
    min-width: 80px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    color: #444;
    background: #fff;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: background 0.1s;
}
.atk-share-opt:hover    { background: #f9f9f9; }
.atk-share-icon         { font-size: 20px; }
.atk-share-opt.atk-share-wa   { border-color: #25D366; color: #25D366; }
.atk-share-opt.atk-share-fb   { border-color: #1877F2; color: #1877F2; }
.atk-share-opt.atk-share-copy { border: none; background: none; color: #555; }

.atk-share-toast {
    display: none;
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
}
.atk-share-toast.atk-toast-show {
    display: block;
    animation: atkToastFade 2s ease forwards;
}
@keyframes atkToastFade {
    0%   { opacity: 0; transform: translateX(-50%) translateY(6px); }
    15%  { opacity: 1; transform: translateX(-50%) translateY(0); }
    75%  { opacity: 1; }
    100% { opacity: 0; }
}
