/* === CUSTOM CSS — Pixwell Fashion Style for stoliki-kawowe.pl === */

/* === HEADER TOP BAR === */
.stb-header { border-bottom: 1px solid var(--color-border); }
.stb-header-top { padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.stb-header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stb-header-top-left { flex: 1; }
.stb-newsletter-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-secondary);
}
.stb-newsletter-link:hover { color: var(--color-primary); }
.stb-newsletter-text { display: inline; }

/* Logo center */
.stb-header-top-center { flex: 0 0 auto; text-align: center; }
.stb-logo { line-height: 0; }
.stb-logo .custom-logo { max-height: 40px; width: auto; }
.stb-logo-text {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    font-style: italic;
    color: var(--color-text);
    letter-spacing: -0.02em;
}
.stb-logo-text:hover { color: var(--color-text); }

.stb-header-top-right { flex: 1; display: flex; justify-content: flex-end; }
.stb-header-social {
    display: flex;
    gap: 12px;
    align-items: center;
}
.stb-header-social a {
    color: var(--color-text);
    transition: color 0.2s;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.stb-header-social a:hover { color: var(--color-primary); }

/* === HEADER NAV === */
.stb-header-nav { padding: 0; }
.stb-header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.stb-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
    z-index: 101;
}
.stb-hamburger span {
    width: 20px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s;
}

.stb-nav { flex: 1; display: flex; justify-content: center; }
.stb-nav-list {
    display: flex;
    gap: 0;
    align-items: center;
}
.stb-nav-list > li > a {
    display: block;
    padding: 14px 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text);
    transition: color 0.2s;
}
.stb-nav-list > li > a:hover,
.stb-nav-list > .current-menu-item > a,
.stb-nav-list > .current_page_item > a {
    color: var(--color-primary);
}

/* Dropdown */
.stb-nav-list > li { position: relative; }
.stb-nav-list > li > .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 8px 0;
}
.stb-nav-list > li:hover > .sub-menu,
.stb-nav-list > li:focus-within > .sub-menu { display: block; }
.stb-nav-list .sub-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
}
.stb-nav-list .sub-menu a:hover { color: var(--color-primary); background: var(--color-surface); }

.stb-header-actions { display: flex; align-items: center; gap: 12px; }
.stb-search-toggle {
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: color 0.2s;
}
.stb-search-toggle:hover { color: var(--color-primary); }

/* === TICKER BAR === */
.stb-ticker-bar {
    background: var(--color-surface);
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}
.stb-ticker-wrap {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.stb-ticker-wrap::-webkit-scrollbar { display: none; }
.stb-ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 0;
}
.stb-ticker-num {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-light);
    flex-shrink: 0;
}
.stb-ticker-thumb {
    width: 80px;
    height: 56px;
    flex-shrink: 0;
    overflow: hidden;
    line-height: 0;
}
.stb-ticker-thumb img { width: 100%; height: 100%; object-fit: cover; }
.stb-ticker-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.3;
    max-width: 180px;
}
.stb-ticker-title a:hover { color: var(--color-primary); }

/* === HERO 3-COLUMN SECTION === */
.stb-hero-section { padding: 24px 0 40px; }
.stb-hero-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 16px;
    min-height: 420px;
}

/* Hero column — shared */
.stb-hero-col { display: flex; flex-direction: column; gap: 12px; }

/* Hero small cards (left + right) */
.stb-hero-card { display: flex; flex-direction: column; flex: 1; }
.stb-hero-card-thumb {
    position: relative;
    overflow: hidden;
    line-height: 0;
    flex: 1;
}
.stb-hero-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.stb-hero-card:hover .stb-hero-card-thumb img { transform: scale(1.03); }
.stb-hero-card-thumb .stb-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
}
.stb-hero-card-title {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
    padding: 8px 0 2px;
}
.stb-hero-card-title a:hover { color: var(--color-primary); }
.stb-hero-card .stb-card-meta { font-size: 0.6875rem; }

/* Hero slider (center) */
.stb-hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    line-height: 0;
}
.stb-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}
.stb-hero-slide.active { opacity: 1; z-index: 2; }
.stb-hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}
.stb-hero-slide-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stb-hero-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    line-height: 1.4;
    z-index: 3;
}
.stb-hero-slide-overlay .stb-badge { margin-bottom: 8px; }
.stb-hero-slide-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.25;
}
.stb-hero-slide-title a { color: #fff; }
.stb-hero-slide-title a:hover { opacity: 0.85; }

/* Progress bar */
.stb-hero-slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.25);
    z-index: 10;
}
.stb-hero-slider-bar {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    transition: width 0.1s linear;
}

/* === DISCOVER SECTION (numerowana lista) === */
.stb-discover-post {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}
.stb-discover-post:first-of-type { padding-top: 0; }
.stb-discover-post:last-of-type { border-bottom: none; }
.stb-discover-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
    flex-shrink: 0;
    min-width: 48px;
}
.stb-discover-content { flex: 1; min-width: 0; }
.stb-discover-content .stb-badge { margin-bottom: 8px; }
.stb-discover-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}
.stb-discover-title a:hover { color: var(--color-primary); }
.stb-discover-excerpt {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.stb-discover-meta {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}
.stb-discover-thumb {
    width: 200px;
    flex-shrink: 0;
    overflow: hidden;
    line-height: 0;
}
.stb-discover-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.stb-discover-post:hover .stb-discover-thumb img { transform: scale(1.03); }

/* === FOOTER (dark Pixwell Fashion) === */
.stb-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 48px 0 0;
}
.stb-footer a { color: var(--color-footer-text); }
.stb-footer a:hover { color: #fff; }

.stb-footer-top {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stb-footer-logo-wrap { margin-bottom: 16px; }
.stb-footer-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.04em;
    position: relative;
    display: inline-block;
}
.stb-footer-logo::before,
.stb-footer-logo::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--color-primary);
}
.stb-footer-logo::before { margin-bottom: 8px; }
.stb-footer-logo::after { margin-top: 8px; }
.stb-footer-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--color-footer-text);
}
.stb-footer-social {
    display: flex;
    gap: 12px;
}
.stb-footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
}
.stb-footer-social a:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.stb-footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    margin-bottom: 16px;
}
.stb-footer-col ul li {
    margin-bottom: 8px;
}
.stb-footer-col ul a {
    font-size: 0.875rem;
    color: var(--color-footer-text);
}
.stb-footer-col ul a:hover { color: #fff; }

.stb-footer-bottom {
    padding: 20px 0;
    text-align: center;
}
.stb-footer-copy {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
}
.stb-footer-copy a { color: var(--color-primary); }

/* === MOBILE RESPONSIVE === */
@media (max-width: 1024px) {
    .stb-hero-grid {
        grid-template-columns: 1fr 1fr;
        min-height: 300px;
    }
    .stb-hero-col--left { display: none; }
    .stb-hero-col--center { grid-column: 1; }
    .stb-hero-col--right { grid-column: 2; }
    .stb-footer-top { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Header */
    .stb-header-top-inner { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .stb-header-top-left { display: none; }
    .stb-header-top-right { display: none; }
    .stb-header-top-center { flex: 0 0 100%; }

    .stb-hamburger { display: flex; }
    .stb-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 12px rgba(0,0,0,0.15);
        z-index: 1000;
        padding: 60px 20px 20px;
        overflow-y: auto;
    }
    .stb-nav.active { display: block; }
    .stb-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .stb-nav-list > li > a { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
    .stb-nav-list > li > .sub-menu {
        position: static;
        box-shadow: none;
        padding: 0 0 0 16px;
    }

    /* Overlay for mobile nav */
    .stb-nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 999;
    }
    .stb-nav-overlay.active { display: block; }

    /* Ticker */
    .stb-ticker-item { min-width: 260px; }

    /* Hero */
    .stb-hero-grid { grid-template-columns: 1fr; min-height: 280px; }
    .stb-hero-col--left, .stb-hero-col--right { display: none; }
    .stb-hero-col--center { min-height: 280px; }
    .stb-hero-slide-title { font-size: 1.125rem; }

    /* Discover */
    .stb-discover-post { flex-wrap: wrap; }
    .stb-discover-num { font-size: 1.75rem; min-width: 36px; }
    .stb-discover-thumb { width: 100%; order: -1; }
    .stb-discover-thumb img { height: 180px; }
    .stb-discover-title { font-size: 1.125rem; }

    /* Footer */
    .stb-footer-top { grid-template-columns: 1fr; gap: 24px; }
    .stb-footer-logo { font-size: 1.5rem; }
}
