/* Vape Cloud (epapierosy) - katalogowy motyw inspirowany klasycznym sklepem z filtrami. */
:root {
    --red: #d71920;
    --red-dark: #a80f15;
    --ink: #252525;
    --muted: #777;
    --line: #e3e3e3;
    --soft: #f5f5f5;
    --panel: #fff;
    --dark: #333;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    background: #e9e9e9;
}
a { color: inherit; text-decoration: none; }
input, button { font: inherit; }
.muted { color: var(--muted); }
.shop-seller-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}
.shop-seller-picker label {
    font-weight: 800;
    color: #333;
}
.shop-seller-picker select {
    min-width: 210px;
    min-height: 38px;
    border: 1px solid #d6d6d6;
    border-radius: 3px;
    background: #fff;
    padding: 0 10px;
}
.shop-seller-picker button,
.shop-seller-picker a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 3px;
    padding: 0 13px;
    border: 1px solid var(--red);
    background: var(--red);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.shop-seller-picker a {
    background: #fff;
    color: var(--red);
}
.vc-page {
    max-width: 1210px;
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 24px rgba(0,0,0,.12);
}

/* Header */
.vc-service {
    background: #3c3c3c;
    color: #ececec;
    font-size: .86rem;
}
.vc-service-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    min-height: 34px;
    padding: 0 24px;
}
.vc-service a { color: #fff; font-weight: 700; }
.vc-head {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
}
.vc-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    text-transform: uppercase;
}
.vc-logo-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: var(--red);
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
}
.vc-logo b {
    display: block;
    color: #111;
    font-size: 1.55rem;
    line-height: 1;
}
.vc-logo small {
    display: block;
    color: var(--red);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
}
.vc-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(3, auto);
    gap: 12px;
    align-items: center;
}
.vc-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 94px;
}
.vc-search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d2d2d2;
    border-right: 0;
    padding: 0 14px;
    outline: 0;
}
.vc-search input:focus { border-color: #999; }
.vc-search button {
    border: 0;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.vc-search button:hover,
.vc-add:hover { background: var(--red-dark); }
.vc-account,
.vc-logout,
.vc-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid var(--line);
    background: var(--soft);
    color: #333;
    font-weight: 700;
    white-space: nowrap;
}
.vc-cart {
    background: #2f2f2f;
    color: #fff;
    border-color: #2f2f2f;
}
.vc-cart span {
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    margin-left: 8px;
    border-radius: 10px;
    background: var(--red);
    font-size: .78rem;
}
.vc-nav {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 0 24px;
    background: #222;
}
.vc-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    font-size: .88rem;
}
.vc-nav a:hover,
.vc-nav a.active { background: var(--red); }

/* Category page */
.vc-crumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 18px 24px 0;
    color: #777;
    font-size: .9rem;
}
.vc-crumbs a { color: #555; }
.vc-crumbs strong { color: #222; }
.vc-category-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    padding: 16px 24px 34px;
}
.vc-sidebar {
    align-self: start;
    border: 1px solid var(--line);
    background: #fff;
}
.vc-filter-group {
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
}
.vc-filter-group:last-child { border-bottom: 0; }
.vc-filter-group h3,
.vc-filter-toggle summary {
    margin: 0 0 10px;
    color: #222;
    font-size: .92rem;
    font-weight: 800;
    text-transform: uppercase;
}
.vc-filter-toggle summary {
    position: relative;
    display: block;
    padding-right: 24px;
    cursor: pointer;
    list-style: none;
}
.vc-filter-toggle summary::-webkit-details-marker { display: none; }
.vc-filter-toggle summary:after {
    content: "+";
    position: absolute;
    top: -2px;
    right: 0;
    color: var(--red);
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1;
}
.vc-filter-toggle[open] summary:after { content: "-"; }
.vc-filter-toggle.primary summary {
    color: var(--red);
}
.vc-filter-group a,
.vc-filter-group label {
    display: block;
    padding: 6px 0;
    color: #555;
    font-size: .92rem;
}
.vc-filter-group a:hover { color: var(--red); }
.vc-filter-group a.active {
    color: var(--red);
    font-weight: 900;
}
.vc-filter-home a {
    color: #222;
    font-weight: 900;
    text-transform: uppercase;
}
.vc-filter-group input { margin-right: 7px; }
.vc-catalog { min-width: 0; }
.vc-category-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.vc-category-head h1 {
    margin: 0;
    color: #222;
    font-size: 1.8rem;
    line-height: 1.1;
    text-transform: uppercase;
}
.vc-category-head p {
    margin: 6px 0 0;
    color: var(--muted);
}
.vc-filter-note {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    background: #f1f1f1;
    color: var(--red);
    font-weight: 800;
    white-space: nowrap;
}
.vc-promo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0 18px;
}
.vc-promo-row a {
    min-height: 82px;
    padding: 16px;
    border: 1px solid #d9d9d9;
    background: linear-gradient(90deg, #fff, #f2f2f2);
}
.vc-promo-row b {
    display: block;
    margin-bottom: 5px;
    color: var(--red);
    font-size: 1.05rem;
    text-transform: uppercase;
}
.vc-promo-row span { color: #555; }
.vc-product-section { margin-top: 18px; }
.vc-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #f7f7f7;
}
.vc-section-bar h2 {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
}
.vc-section-bar span {
    color: var(--muted);
    font-size: .88rem;
}
.vc-product-list {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.vc-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 12px;
}
.vc-empty {
    padding: 42px 18px;
    border: 1px dashed #bbb;
    color: var(--muted);
    text-align: center;
}

/* Product cards */
.vc-product-row {
    position: relative;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 190px;
    gap: 18px;
    min-height: 190px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.vc-product-row:hover { background: #fcfcfc; }
.vc-product-thumb {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 150px;
    border: 1px solid #ededed;
    background: linear-gradient(180deg, #fff, #f3f3f3);
    overflow: hidden;
}
.vc-device {
    width: 46px;
    height: 122px;
    border-radius: 18px;
    background: linear-gradient(90deg, #1e1e1e, #777 50%, #181818);
    box-shadow: 26px 0 0 #303030, 0 11px 22px rgba(0,0,0,.18);
    transform: rotate(8deg);
}
.vc-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.vc-discount {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    padding: 4px 7px;
    background: var(--red);
    color: #fff;
    font-size: .76rem;
    font-weight: 900;
}
.vc-preview {
    position: absolute;
    right: 9px;
    bottom: 9px;
    z-index: 2;
    padding: 4px 8px;
    background: rgba(0,0,0,.68);
    color: #fff;
    font-size: .78rem;
}
.vc-product-info {
    min-width: 0;
    padding-top: 2px;
}
.vc-product-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 7px;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
}
.vc-product-badge.sale { background: var(--red); }
.vc-product-badge.new { background: #2f8f42; }
.vc-product-name {
    display: block;
    margin-bottom: 8px;
    color: #222;
    font-size: 1.06rem;
    font-weight: 800;
}
.vc-product-name:hover { color: var(--red); }
.vc-product-info p {
    margin: 0;
    color: var(--muted);
    font-size: .93rem;
}
.vc-product-info .vc-stock-line {
    margin-top: 8px;
    color: #333;
    font-weight: 800;
}
.vc-product-buy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    text-align: right;
}
.vc-old-price {
    color: #999;
    font-size: .9rem;
    text-decoration: line-through;
}
.vc-price {
    color: var(--red);
    font-size: 1.35rem;
    font-weight: 900;
}
.vc-tax {
    color: #777;
    font-size: .8rem;
}
.vc-more,
.vc-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    min-height: 34px;
    font-size: .86rem;
    font-weight: 800;
}
.vc-more {
    border: 1px solid #cfcfcf;
    background: #fff;
    color: #333;
}
.vc-add {
    background: var(--red);
    color: #fff;
}
.vc-product-row.is-compact {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 12px;
    border: 1px solid var(--line);
}
.vc-product-row.is-compact .vc-product-thumb { min-height: 130px; }
.vc-product-row.is-compact .vc-product-buy { align-items: stretch; text-align: left; }
.vc-product-row.is-compact .vc-more,
.vc-product-row.is-compact .vc-add { width: 100%; }

/* Seller popup */
.vc-seller-pop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20,20,20,.55);
}
.vc-seller-box {
    position: relative;
    width: min(440px, 100%);
    padding: 26px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(0,0,0,.28);
    text-align: center;
}
.vc-seller-box h2 {
    margin: 6px 0 8px;
    color: #222;
    font-size: 1.35rem;
}
.vc-seller-box p {
    margin: 0 0 18px;
    color: var(--muted);
}
.vc-seller-kicker {
    display: inline-block;
    color: var(--red);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}
.vc-seller-close {
    position: absolute;
    top: 9px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 1.5rem;
    cursor: pointer;
}
.vc-seller-actions {
    display: grid;
    gap: 10px;
}
.vc-seller-actions a,
.vc-seller-actions button {
    display: block;
    width: 100%;
    border: 0;
    padding: 11px 16px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}
.vc-seller-actions .primary { background: var(--red); color: #fff; }
.vc-seller-actions .secondary { background: #eee; color: #333; }

/* Footer */
.vc-foot {
    padding: 30px 24px 12px;
    background: #2f2f2f;
    color: #ddd;
}
.vc-foot-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.vc-foot h4 {
    margin: 0 0 10px;
    color: #fff;
    font-size: .95rem;
    text-transform: uppercase;
}
.vc-foot a {
    display: block;
    padding: 3px 0;
    color: #d7d7d7;
    font-size: .88rem;
}
.vc-foot a:hover { color: #fff; }
.vc-foot .muted { color: #cfcfcf; }
.vc-news-form {
    display: flex;
    margin-top: 8px;
}
.vc-news-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 9px 10px;
}
.vc-news-form button {
    border: 0;
    background: var(--red);
    color: #fff;
    padding: 9px 12px;
    font-weight: 900;
    cursor: pointer;
}
.vc-foot-bottom {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #aaa;
    font-size: .82rem;
}

/* Widok ogloszenia */
.listing-view {
    padding: 24px 26px 40px;
}
.listing-grid {
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
    gap: 30px;
}
.listing-media .big-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 340px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #f3f3f3);
}
.listing-media .big-thumb .brand-mark {
    font-size: 4rem;
    color: #bbb;
}
.listing-info h1 {
    margin: 0 0 8px;
}
.listing-price {
    margin: 12px 0;
    color: var(--red);
    font-size: 2rem;
    font-weight: 900;
}
.listing-desc {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.listing-cond.is-empty {
    color: var(--red);
}
.listing-cond.is-ok {
    color: #2f8f42;
}
.seller-availability {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.seller-availability h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    text-transform: uppercase;
}
.seller-table {
    display: grid;
    gap: 8px;
}
.seller-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 80px 110px 86px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    background: #fff;
}
.seller-row.selected {
    border-color: var(--red);
    background: #fff7f7;
}
.seller-row span {
    display: inline-block;
    margin-left: 6px;
    color: var(--red);
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
}
.seller-row small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
}
.seller-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    background: var(--red);
    color: #fff;
    font-weight: 900;
}
.vc-listing {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 30px;
    padding: 24px 26px 40px;
}
.vc-listing .big {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 340px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #f3f3f3);
}
.listing-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}
.listing-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.listing-thumbs img {
    width: 76px;
    height: 58px;
    object-fit: cover;
    border: 1px solid var(--line);
    background: #fff;
}
.vc-listing .big .cloud {
    width: 68px;
    height: 180px;
    border-radius: 24px;
    background: linear-gradient(90deg, #1e1e1e, #777 50%, #181818);
    box-shadow: 42px 0 0 #303030, 0 16px 28px rgba(0,0,0,.2);
    font-size: 0;
    transform: rotate(8deg);
}
.vc-listing h1 { margin: 0 0 8px; }
.vc-listing .price {
    margin: 12px 0;
    color: var(--red);
    font-size: 2rem;
    font-weight: 900;
}
.vc-listing .desc {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
    .vc-head { grid-template-columns: 1fr; }
    .vc-tools { grid-template-columns: 1fr repeat(3, auto); }
    .vc-category-layout { grid-template-columns: 1fr; }
    .vc-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
    .vc-filter-group { border-right: 1px solid var(--line); }
    .vc-product-row { grid-template-columns: 150px minmax(0, 1fr); }
    .vc-product-buy {
        grid-column: 2;
        align-items: flex-start;
        text-align: left;
    }
    .vc-compact-grid { grid-template-columns: repeat(2, 1fr); }
    .vc-foot-cols { grid-template-columns: repeat(2, 1fr); }
    .vc-listing { grid-template-columns: 1fr; }
    .listing-grid { grid-template-columns: 1fr; }
    .seller-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    body { background: #fff; }
    .vc-page { box-shadow: none; }
    .vc-service-inner {
        justify-content: flex-start;
        gap: 12px;
        overflow-x: auto;
        white-space: nowrap;
    }
    .vc-head,
    .vc-category-layout,
    .vc-crumbs,
    .vc-nav,
    .vc-foot,
    .vc-listing { padding-left: 14px; padding-right: 14px; }
    .vc-tools { grid-template-columns: 1fr; }
    .vc-search { grid-template-columns: 1fr 78px; }
    .vc-account,
    .vc-logout,
    .vc-cart { width: 100%; }
    .vc-nav a { flex: 1 1 50%; justify-content: center; }
    .vc-sidebar { display: block; }
    .vc-category-head {
        display: block;
    }
    .vc-filter-note { margin-top: 12px; }
    .vc-promo-row,
    .vc-compact-grid { grid-template-columns: 1fr; }
    .vc-product-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .vc-product-buy {
        grid-column: auto;
        align-items: stretch;
    }
    .vc-more,
    .vc-add { width: 100%; }
    .vc-foot-cols { grid-template-columns: 1fr; }
}

/* Przelacznik widoku (lista / kafelki) */
.vc-section-tools { display: flex; align-items: center; gap: 14px; }
.vc-view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.vc-view-toggle a {
    padding: 6px 12px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
}
.vc-view-toggle a + a { border-left: 1px solid var(--line); }
.vc-view-toggle a.active { background: var(--red); color: #fff; }
.vc-view-toggle a:hover:not(.active) { background: var(--soft); color: var(--ink); }

/* Widok kafelek z mini-statystykami */
.vc-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 14px 0;
}
.vc-tile {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    overflow: hidden;
    transition: box-shadow .15s, transform .15s;
}
.vc-tile:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .12); transform: translateY(-2px); }
.vc-tile-thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}
.vc-tile-thumb .vc-product-img { max-height: 150px; width: 100%; object-fit: contain; }
.vc-tile-thumb .vc-product-badge { position: absolute; top: 8px; left: 8px; }
.vc-tile-body { display: flex; flex-direction: column; gap: 7px; padding: 12px; flex: 1; }
.vc-tile-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.3;
}
.vc-tile-name:hover { color: var(--red); }
.vc-tile-flavor { font-size: .85rem; color: var(--dark); }
.vc-tile-desc { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.vc-tile-stats {
    list-style: none;
    margin: auto 0 0;
    padding: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-top: 1px solid var(--line);
}
.vc-tile-stats li {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 60px;
    padding: 4px 6px;
    background: var(--soft);
    border-radius: 4px;
    font-size: .72rem;
}
.vc-tile-stats li span { color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.vc-tile-stats li strong { color: var(--ink); font-size: .85rem; }
.vc-tile-buy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--line);
}
.vc-tile-buy .vc-price { font-size: 1.15rem; }
.vc-tile-buy .vc-old-price { font-size: .82rem; color: var(--muted); text-decoration: line-through; }
.vc-tile-buy .vc-more,
.vc-tile-buy .vc-add { width: 100%; }

@media (max-width: 1100px) { .vc-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .vc-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  {
    .vc-product-grid { grid-template-columns: 1fr; }
    .vc-section-tools { flex-direction: column; align-items: flex-end; gap: 8px; }
}
