/* ============================================================
   sk-account.css — wspólne style strefy konta klienta.
   Neutralne klasy sk-* używane przez widoki shop/account/** (core).
   Dziedziczą charakter motywu przez CSS variables z fallbackami:
   lo (liczeowce) definiuje --ink/--paper/--terracotta/--font-display,
   Cartzilla nadpisze przez bootstrapowe zmienne w page_frame.
   ============================================================ */

.sk-page { max-width: 880px; margin: 0 auto; padding: 24px 16px 48px; }

.sk-title {
    font-family: var(--font-display, inherit);
    font-size: clamp(26px, 4vw, 38px);
    margin: 0 0 6px;
    color: var(--ink, #222);
}
.sk-subtitle { color: var(--espresso, #6c757d); margin: 0 0 28px; font-size: 15px; }

/* --- karty / sekcje --- */
.sk-card {
    background: var(--paper, #fff);
    border: 1px solid var(--hairline, #e3e6ea);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 20px;
}
.sk-card h2 {
    font-family: var(--font-display, inherit);
    font-size: 20px; margin: 0 0 14px; color: var(--ink, #222);
}
.sk-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* --- kafle dashboardu konta --- */
.sk-tile {
    display: block; text-decoration: none;
    background: var(--paper, #fff);
    border: 1px solid var(--hairline, #e3e6ea);
    border-radius: 10px; padding: 18px 20px;
    color: var(--ink, #222);
    transition: border-color .15s ease, transform .15s ease;
}
.sk-tile:hover { border-color: var(--terracotta, #1a1a1a); transform: translateY(-1px); }
.sk-tile .sk-tile-value { font-size: 30px; font-weight: 600; line-height: 1.1; }
.sk-tile .sk-tile-label { font-size: 13px; color: var(--espresso, #6c757d); margin-top: 4px; }

/* --- formularze --- */
.sk-form { max-width: 440px; }
.sk-form label { display: block; font-size: 13px; margin: 14px 0 5px; color: var(--espresso, #6c757d); }
.sk-input {
    width: 100%; box-sizing: border-box;
    padding: 11px 13px; font-size: 15px;
    border: 1px solid var(--hairline, #ccc); border-radius: 7px;
    background: #fff; color: var(--ink, #222);
    font-family: inherit;
}
.sk-input:focus { outline: 2px solid var(--terracotta, #1a1a1a); outline-offset: 1px; border-color: transparent; }

.sk-btn {
    display: inline-block; cursor: pointer;
    padding: 12px 26px; margin-top: 18px;
    font-size: 15px; font-family: inherit; letter-spacing: .02em;
    background: var(--terracotta, #1a1a1a); color: #fff;
    border: none; border-radius: 7px;
    text-decoration: none;
    transition: opacity .15s ease;
}
.sk-btn:hover { opacity: .88; color: #fff; }
.sk-btn--ghost {
    background: transparent; color: var(--ink, #222);
    border: 1px solid var(--hairline, #bbb);
}
.sk-btn--sm { padding: 7px 14px; font-size: 13px; margin-top: 0; }

/* --- komunikaty --- */
.sk-alert { padding: 13px 16px; border-radius: 8px; margin: 0 0 18px; font-size: 14px; }
.sk-alert--error { background: #fbeaea; color: #8c2f2f; border: 1px solid #eecdcd; }
.sk-alert--info  { background: #eef4ee; color: #2f5c33; border: 1px solid #d3e4d4; }

/* --- tabela zamówień --- */
.sk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sk-table th {
    text-align: left; font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--espresso, #6c757d);
    padding: 10px 8px; border-bottom: 2px solid var(--hairline, #ddd);
}
.sk-table td { padding: 12px 8px; border-bottom: 1px solid var(--hairline, #eee); vertical-align: middle; }
.sk-table tr:hover td { background: rgba(0,0,0,.015); }

/* --- statusy zamówienia/płatności --- */
.sk-badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.sk-badge--new       { background: #fdf3e3; color: #8a6116; }
.sk-badge--paid      { background: #e7f3e7; color: #2f6b33; }
.sk-badge--sent      { background: #e7eef8; color: #2c528c; }
.sk-badge--completed { background: #e7f3e7; color: #2f6b33; }
.sk-badge--cancelled { background: #f1f1f1; color: #777; }
.sk-badge--failed    { background: #fbeaea; color: #8c2f2f; }

/* --- wishlist grid --- */
.sk-wishlist { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.sk-wishlist-item {
    border: 1px solid var(--hairline, #e3e6ea); border-radius: 10px;
    overflow: hidden; background: var(--paper, #fff);
    text-decoration: none; color: var(--ink, #222);
    display: flex; flex-direction: column;
}
.sk-wishlist-item img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.sk-wishlist-item .sk-wl-body { padding: 12px 14px; }
.sk-wishlist-item .sk-wl-name { font-size: 14px; line-height: 1.3; }
.sk-wishlist-item .sk-wl-price { font-weight: 600; margin-top: 6px; }

/* --- przycisk serduszka (strona produktu) --- */
.sk-heart {
    background: none; border: 1px solid var(--hairline, #ccc);
    border-radius: 999px; cursor: pointer;
    padding: 9px 16px; font-size: 14px; font-family: inherit;
    color: var(--ink, #444); transition: all .15s ease;
}
.sk-heart:hover { border-color: var(--terracotta, #1a1a1a); color: var(--terracotta, #1a1a1a); }
.sk-heart.sk-heart--active { background: var(--terracotta, #1a1a1a); border-color: var(--terracotta, #1a1a1a); color: #fff; }

/* --- neutralny szkielet (fallback core, sklepy bez motywu) --- */
.sk-neutral-body { margin: 0; font-family: system-ui, sans-serif; background: #fafafa; color: #222; }
.sk-neutral-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 24px; background: #fff; border-bottom: 1px solid #e5e5e5;
}
.sk-neutral-logo { font-weight: 700; font-size: 18px; text-decoration: none; color: #222; }
.sk-neutral-header nav a { margin-left: 18px; text-decoration: none; color: #444; font-size: 14px; }
.sk-neutral-footer { text-align: center; padding: 26px; color: #999; font-size: 13px; }
.sk-neutral-footer a { color: inherit; }

/* --- drobiazgi --- */
.sk-row-split { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sk-muted { color: var(--espresso, #6c757d); font-size: 13px; }
.sk-mt { margin-top: 22px; }
.sk-link { color: var(--terracotta, #1a5ba8); }

/* ============================================================
   v2 — redesign strefy konta (wzorce Cartzilla):
   split-layout auth, sidebar konta, karty wishlisty z akcjami.
   ============================================================ */

/* --- AUTH: dwie kolumny (formularz | panel korzyści) --- */
.sk-auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 40px; align-items: start; }
@media (max-width: 860px) { .sk-auth { grid-template-columns: 1fr; } }

.sk-auth-aside {
    background: var(--paper, #fff);
    border: 1px solid var(--hairline, #e3e6ea);
    border-radius: 14px; padding: 30px 28px;
    position: sticky; top: 24px;
}
.sk-auth-aside h2 {
    font-family: var(--font-display, inherit);
    font-size: 22px; margin: 0 0 18px; color: var(--ink, #222);
}
.sk-benefit { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.sk-benefit:last-child { margin-bottom: 0; }
.sk-benefit-icon {
    flex: 0 0 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.04); border: 1px solid var(--hairline, #e3e6ea);
    font-size: 18px;
}
.sk-benefit b { display: block; font-size: 15px; color: var(--ink, #222); margin-bottom: 2px; }
.sk-benefit span { font-size: 13px; color: var(--espresso, #6c757d); line-height: 1.45; }

/* --- KONTO: shell z sidebar --- */
.sk-account { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; }
@media (max-width: 860px) { .sk-account { grid-template-columns: 1fr; } }

.sk-sidebar {
    background: var(--paper, #fff);
    border: 1px solid var(--hairline, #e3e6ea);
    border-radius: 14px; padding: 20px 0 10px;
    position: sticky; top: 24px;
}
.sk-sidebar-user { display: flex; align-items: center; gap: 12px; padding: 0 18px 16px; border-bottom: 1px solid var(--hairline, #eee); margin-bottom: 8px; }
.sk-avatar {
    flex: 0 0 44px; height: 44px; border-radius: 50%;
    background: var(--terracotta, #444); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 600; text-transform: uppercase;
}
.sk-sidebar-user .sk-user-email { font-size: 13px; color: var(--espresso, #6c757d); word-break: break-all; line-height: 1.3; }

.sk-nav { list-style: none; margin: 0; padding: 6px 8px; }
.sk-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px;
    text-decoration: none; font-size: 14px; color: var(--ink, #333);
    transition: background .12s ease;
}
.sk-nav a:hover { background: rgba(0,0,0,.04); }
.sk-nav a.sk-nav--active { background: var(--terracotta, #1a1a1a); color: #fff; }
.sk-nav a.sk-nav--active .sk-nav-ico { opacity: 1; }
.sk-nav-ico { width: 18px; text-align: center; opacity: .65; font-style: normal; }
.sk-nav-sep { border-top: 1px solid var(--hairline, #eee); margin: 8px 10px; }
.sk-nav a.sk-nav--muted { color: var(--espresso, #6c757d); font-size: 13px; }

.sk-content h1.sk-title { margin-top: 0; }

/* --- karty wishlisty z akcjami --- */
.sk-wishlist { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.sk-wishlist-item { position: relative; transition: box-shadow .15s ease, transform .15s ease; }
.sk-wishlist-item:hover { box-shadow: 0 8px 22px rgba(0,0,0,.08); transform: translateY(-2px); }
.sk-wl-remove {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.93); border: 1px solid var(--hairline, #ddd);
    cursor: pointer; font-size: 15px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    color: var(--terracotta, #c0392b);
    transition: transform .12s ease, background .12s ease;
}
.sk-wl-remove:hover { background: var(--terracotta, #c0392b); color: #fff; transform: scale(1.08); }
.sk-wishlist-item .sk-wl-cta {
    margin: 0 14px 14px; text-align: center;
    padding: 9px 0; border-radius: 7px; font-size: 13px;
    border: 1px solid var(--ink, #222); color: var(--ink, #222);
    transition: background .12s ease, color .12s ease;
}
.sk-wishlist-item:hover .sk-wl-cta { background: var(--ink, #222); color: #fff; }

/* --- stan pusty (wishlist / zamówienia) --- */
.sk-empty { text-align: center; padding: 46px 20px; }
.sk-empty-icon { font-size: 44px; opacity: .3; margin-bottom: 12px; }
.sk-empty p { color: var(--espresso, #6c757d); margin: 0 0 18px; }

/* --- newsletter toggle card --- */
.sk-consent-state { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.sk-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sk-dot--on { background: #2f8f37; }
.sk-dot--off { background: #b5b5b5; }

/* --- dashboard: rząd skrótów --- */
.sk-quick { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 20px; }
