/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: #333;
    min-height: 100vh;
}
a { color: inherit; }

/* ============ HEADER ============ */
.header {
    background: #1a1a1a;
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    position: relative;
    z-index: 100;
}
.logo {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-right: 60px;
    text-decoration: none;
    user-select: none;
    line-height: 1;
}
.logo .slevo { color: #b8b8b8; }
.logo .lux   { color: #c9a04a; }

.search-container {
    flex: 1;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}
.search-input {
    width: 100%;
    height: 40px;
    background: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 0 90px 0 20px;
    font-size: 15px;
    font-family: inherit;
    color: #555;
    outline: none;
}
.search-input::placeholder { color: #999; font-style: italic; }
.search-icons {
    position: absolute; right: 15px; top: 50%;
    transform: translateY(-50%);
    display: flex; gap: 15px; color: #666;
}
.search-icons svg { cursor: pointer; transition: color .2s; }
.search-icons svg:hover { color: #1a1a1a; }

.header-links { display: flex; gap: 35px; margin-left: 40px; }
.header-links a {
    color: #fff; text-decoration: none;
    font-size: 13px; font-weight: 500;
    letter-spacing: 1.5px; text-transform: uppercase;
    transition: color .2s;
}
.header-links a:hover { color: #f4c430; }

/* ============ NAV ============ */
.nav {
    background: #e8e8e8;
    height: 50px;
    display: flex; justify-content: center; align-items: center;
}
.nav a {
    color: #333; text-decoration: none;
    font-size: 13px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 0 25px;
    border-right: 1px solid #c8c8c8;
    line-height: 1;
    transition: color .2s;
}
.nav a:last-child { border-right: none; }
.nav a:hover, .nav a.active { color: #f4c430; }

/* ============ MAIN ============ */
.main-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============ FILTER BAR ============ */
.filter-bar {
    background: #f5f5f5;
    border-radius: 3px;
    display: flex; align-items: center;
    margin-bottom: 40px;
    overflow: hidden;
}
.filter-pin {
    width: 60px; display: flex; justify-content: center;
    align-items: center; color: #e91e63;
}
.filter-tabs { flex: 1; display: flex; }
.filter-tab {
    flex: 1;
    padding: 22px 10px;
    text-align: center;
    font-size: 13px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: #333; cursor: pointer;
    text-decoration: none;
    border-right: 1px solid #dcdcdc;
    transition: background .2s, color .2s;
}
.filter-tab:hover { background: #eeeeee; }
.filter-tab.active { color: #f4c430; }
.filter-close {
    width: 60px; background: #dcdcdc;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; color: #666;
    align-self: stretch;
    transition: background .2s;
}
.filter-close:hover { background: #cccccc; }

/* ============ DEALS GRID ============ */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.deal-card {
    background: #efefef;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.deal-image {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #d0d0d0;
}
.deal-badge {
    position: absolute; bottom: 15px; left: 15px;
    background: #00e5a0; color: #000;
    font-size: 15px; font-weight: 900;
    padding: 6px 12px;
    letter-spacing: .5px;
    z-index: 2;
}
.super-akce {
    position: absolute; top: 0; right: 0;
    width: 90px; height: 90px;
    overflow: hidden; z-index: 2;
    pointer-events: none;
}
.super-akce::before {
    content: 'SUPER AKCE';
    position: absolute;
    top: 18px; right: -22px;
    width: 130px;
    transform: rotate(45deg);
    background: #e91e63; color: #fff;
    text-align: center;
    font-size: 10px; font-weight: 900;
    letter-spacing: 1px;
    padding: 5px 0;
    line-height: 1.2;
}
.deal-title {
    background: rgba(0,0,0,.75);
    color: #fff;
    padding: 14px 18px;
    font-size: 16px; font-weight: 500;
    white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis;
    margin-top: auto;
}
.deal-info {
    padding: 15px 18px 18px;
    font-size: 14px;
    color: #666;
    flex-grow: 1;
}
.deal-info .row {
    display: flex; align-items: center;
    gap: 8px; margin-bottom: 6px;
}
.deal-info .row svg { flex-shrink: 0; color: #999; }
.deal-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 10px;
}
.deal-days {
    color: #f4a017;
    font-size: 22px; font-weight: 700;
    display: flex; align-items: baseline; gap: 4px;
}
.deal-days .days-label { font-size: 13px; color: #999; font-weight: 400; }
.deal-price-old {
    text-decoration: line-through;
    color: #aaa; font-size: 13px;
}
.deal-price-new {
    color: #f4a017;
    font-size: 22px; font-weight: 700;
}

/* ============ SIDEBAR ============ */
.sidebar-tab {
    position: fixed; left: 0; top: 50%;
    transform: translateY(-50%);
    background: #00e5a0; color: #fff;
    width: 40px; min-height: 220px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: space-between;
    padding: 20px 0; cursor: pointer;
    z-index: 50;
    border-radius: 0 5px 5px 0;
    box-shadow: 2px 2px 10px rgba(0,0,0,.15);
    transition: transform .2s;
}
.sidebar-tab:hover { background: #00cc8e; }
.sidebar-tab-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 12px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
}

.sidebar-panel {
    position: fixed; left: -280px; top: 50%;
    transform: translateY(-50%);
    width: 280px;
    background: #1a1a1a; color: #fff;
    padding: 25px 0; z-index: 49;
    transition: left .3s ease;
    border-radius: 0 5px 5px 0;
    box-shadow: 4px 4px 20px rgba(0,0,0,.3);
    max-height: 90vh;
    overflow-y: auto;
}
.sidebar-panel.open { left: 0; }
.sidebar-panel ul { list-style: none; }
.sidebar-panel li {
    padding: 8px 25px;
    font-size: 15px;
    cursor: pointer;
    transition: background .15s, color .15s;
    display: flex; align-items: center; gap: 6px;
}
.sidebar-panel li:hover { background: #2a2a2a; color: #f4c430; }
.sidebar-panel li .count { color: #f4a017; font-weight: 700; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .deals-grid       { grid-template-columns: repeat(2, 1fr); }
    .header-links     { gap: 15px; margin-left: 15px; }
    .header           { padding: 0 15px; }
    .logo             { font-size: 24px; margin-right: 20px; }
    .search-container { max-width: none; }
}
@media (max-width: 600px) {
    .deals-grid       { grid-template-columns: 1fr; }
    .nav              { overflow-x: auto; justify-content: flex-start; }
    .nav a            { padding: 0 15px; white-space: nowrap; }
    .filter-tab       { font-size: 11px; padding: 15px 5px; }
    .header-links a   { font-size: 11px; }
}
