/* ═══════════════════════════════════════════════════
   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 ───────────────────────────────────── */
.atk-dashboard { max-width:1000px; margin:0 auto; padding:0 16px 60px; }
.atk-store-banner { height:200px; background-size:cover; background-position:center; background-color:var(--atk-green); }
.atk-default-banner { background:linear-gradient(135deg,var(--atk-green) 0%,var(--atk-primary) 100%); }
.atk-dashboard-identity { display:flex; align-items:center; gap:16px; padding:16px 20px; background:var(--atk-white); border:1px solid var(--atk-border); }
.atk-store-avatar { width:72px; height:72px; border-radius:50%; object-fit:cover; border:3px solid #fff; box-shadow:var(--atk-shadow); flex-shrink:0; }
.atk-avatar-placeholder { background:var(--atk-green); color:#fff; display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:bold; border-radius:50%; flex-shrink:0; }
.atk-dashboard-identity-info h2 { margin:0 0 4px; font-size:18px; }
.atk-link { color:var(--atk-green); font-size:13px; text-decoration:none; }
.atk-link:hover { text-decoration:underline; }

/* Tabs */
.atk-dashboard-tabs { display:flex; flex-wrap:wrap; border-bottom:2px solid var(--atk-border); margin-bottom:24px; }
.atk-tab { padding:11px 16px; text-decoration:none; color:var(--atk-muted); font-weight:600; font-size:13px; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .2s; white-space:nowrap; }
.atk-tab:hover { color:var(--atk-green); }
.atk-tab.active { color:var(--atk-green); border-bottom-color:var(--atk-green); }
.atk-tab-logout { margin-left:auto; color:var(--atk-danger); }
.atk-tab-logout:hover { color:#b71c1c; }

.atk-panel-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.atk-panel-header h3 { margin:0; font-size:18px; }
.atk-card { background:var(--atk-white); border:1px solid var(--atk-border); border-radius:var(--atk-radius); padding:24px; margin-bottom:24px; }
.atk-card h4 { margin:0 0 16px; font-size:16px; color:var(--atk-green); }

/* ── Products Grid (compact, dashboard) ─────────── */
.atk-products-grid-compact { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:16px; }
.atk-product-card-compact  { background:var(--atk-white); border:1px solid var(--atk-border); border-radius:10px; overflow:hidden; }
.atk-product-thumb-wrap    { aspect-ratio:1; overflow:hidden; background:var(--atk-bg); }
.atk-product-thumb-wrap img{ width:100%; height:100%; object-fit:cover; }
.atk-product-card-info     { padding:8px 10px; }
.atk-product-card-name     { display:block; font-size:13px; font-weight:600; margin-bottom:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.atk-product-card-price    { font-size:14px; font-weight:700; color:var(--atk-green); }
.atk-product-card-actions  { padding:8px 10px 10px; display:flex; gap:6px; }
.atk-no-image { display:flex; align-items:center; justify-content:center; color:var(--atk-muted); font-size:12px; aspect-ratio:1; background:var(--atk-bg); }

/* ── Prices table ─────────────────────────────────── */
.atk-prices-table { width:100%; border-collapse:collapse; }
.atk-prices-table th, .atk-prices-table td { padding:10px 12px; border:1px solid var(--atk-border); font-size:14px; }
.atk-prices-table th { background:var(--atk-bg); font-weight:600; }
.atk-price-field  { width:120px; padding:6px 8px; border:1.5px solid var(--atk-border); border-radius:0 6px 6px 0; font-size:14px; border-left:none; }
.atk-price-input  { display:flex; align-items:center; width:fit-content; }
.atk-currency-prefix { background:var(--atk-bg); border:1.5px solid var(--atk-border); border-right:none; border-radius:6px 0 0 6px; padding:6px 8px; font-weight:700; color:var(--atk-muted); font-size:14px; line-height:1.4; flex-shrink:0; }
.atk-price-field:focus { border-color:var(--atk-green); outline:none; }

/* ── CSV section ─────────────────────────────────── */
.atk-csv-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media(max-width:600px){ .atk-csv-grid { grid-template-columns:1fr; } }

/* ── 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;
}
