/* tarifebi.ge — v4.5 */
:root {
    --bg: #f5f6fa;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --primary: #2563eb;
    --primary-light: #dbeafe;
    --accent: #e11d48;
    --accent-light: #fee2e2;
    --green: #059669;
    --green-light: #d1fae5;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'BPG Glaho Bold', 'Noto Sans Georgian', 'Inter', system-ui, sans-serif;
    --font-nav: 'BPG No9', 'Noto Sans Georgian', sans-serif;
    --font-input: 'ALK Sanet', 'Noto Sans Georgian', sans-serif;
    --font-display: 'BPG LE Studio 04 Caps', 'Inter', sans-serif;
    --font-heading: 'BPG Banner SuperSquare Caps', 'Noto Sans Georgian', sans-serif;
    --font-cat: 'BPG No9', 'Noto Sans Georgian', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==================== HEADER ==================== */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-dot {
    color: var(--primary);
}

.search-wrap {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.search-wrap input {
    width: 100%;
    padding: 10px 44px 10px 16px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 15px;
    font-family: var(--font-input);
    background: var(--bg);
    transition: border-color .2s;
    outline: none;
}

.search-wrap input:focus {
    border-color: var(--primary);
    background: white;
}

.search-wrap button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}

.search-wrap button:hover { background: #1d4ed8; }

.header-stats {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.stat-badge {
    background: var(--green-light);
    color: var(--green);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.btn-back {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: background .2s;
}

.btn-back:hover {
    background: var(--primary-light);
}

/* ==================== HEADER NAV — DROPDOWNS ==================== */
.header-nav {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text);
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

.dropdown-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.dropdown-btn svg:first-child {
    flex-shrink: 0;
}

.dropdown-arrow {
    transition: transform .2s;
    flex-shrink: 0;
}

.dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown.open .dropdown-btn {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    max-height: 380px;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    padding: 6px;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: none;
    font-size: 14px;
    font-family: var(--font);
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background .15s;
    text-align: left;
    text-decoration: none;
}

.dropdown-item:hover {
    background: var(--bg);
}

.dropdown-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.dropdown-item.hidden {
    display: none;
}

.item-logo {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

.item-name {
    flex: 1;
}

.item-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
}

/* ==================== CATEGORY NAV ==================== */
.cat-nav {
    background: var(--bg);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.cat-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.cat-pills::-webkit-scrollbar { display: none; }

/* Pill arrow buttons */
.cat-nav .container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pills-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all .2s;
    padding: 0;
    font-family: var(--font);
}

.pills-arrow:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* Discount pill */
.discount-pill {
    border-color: var(--green) !important;
    color: var(--green) !important;
    gap: 5px;
    display: flex;
    align-items: center;
}

.discount-pill.active {
    background: var(--green) !important;
    color: white !important;
    border-color: var(--green) !important;
}

.cat-pill {
    flex-shrink: 0;
    padding: 6px 14px;
    border: 2px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    text-decoration: none;
}

.cat-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cat-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==================== CITY PILLS (store page) ==================== */
.city-nav {
    background: var(--surface);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.city-pills {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.city-pills::-webkit-scrollbar { display: none; }

.city-pill {
    flex-shrink: 0;
    padding: 5px 12px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.city-pill:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.city-pill.active {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.pill-count {
    font-size: 11px;
    background: rgba(255,255,255,.2);
    padding: 1px 7px;
    border-radius: 50px;
}

.city-pill:not(.active) .pill-count {
    background: var(--bg);
    color: var(--text-muted);
}

/* ==================== TOOLBAR ==================== */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 12px;
}

.results-info {
    color: var(--text-muted);
    font-size: 14px;
}

.sort-wrap select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 14px;
    font-family: var(--font);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.toolbar-sort-select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-family: var(--font-cat);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    flex-shrink: 0;
}
.toolbar-sort-select:focus {
    border-color: var(--primary);
}

/* ==================== PRODUCT GRID ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding-bottom: 24px;
    min-height: 200px;
    position: relative;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 80%;
    background: #fafafa;
    overflow: hidden;
}

.card-img-wrap img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

.discount-badge.big {
    font-size: 18px;
    padding: 8px 16px;
}

.store-badge {
    position: absolute;
    top: 10px;
    right: 8px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    border: none;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

/* Store badge brand colors */
.store-badge[data-store="alcorium"]    { background: rgba(178,29,33,.12); color: #b21d21; }
.store-badge[data-store="europroduct"] { background: rgba(0,126,63,.12); color: #007e3f; }
.store-badge[data-store="goodwill"]    { background: rgba(2,70,47,.12); color: #02462f; }
.store-badge[data-store="carrefour"]   { background: rgba(0,20,135,.12); color: #001487; }
.store-badge[data-store="orinabiji"]   { background: rgba(0,122,63,.12); color: #007a3f; }
.store-badge[data-store="georgita"]    { background: rgba(1,82,63,.12); color: #01523f; }
.store-badge[data-store="spar"]        { background: rgba(238,58,67,.12); color: #ee3a43; }
.store-badge[data-store="magniti"]     { background: rgba(221,39,46,.12); color: #dd272e; }
.store-badge[data-store="zgapari"]     { background: rgba(247,211,52,.2); color: #b5960a; }
.store-badge[data-store="nikora"]      { background: rgba(143,0,42,.12); color: #8f002a; }
.store-badge[data-store="libre"]       { background: rgba(53,53,175,.12); color: #3535af; }
.store-badge[data-store="ioli"]        { background: rgba(232,97,45,.12); color: #e8612d; }
.store-badge[data-store="madart"]      { background: rgba(26,139,78,.12); color: #1a8b4e; }

/* City badge on cards */
.city-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(99,102,241,.1);
    color: #6366f1;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.card-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.price-sale {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.price-original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-currency {
    font-size: 14px;
    font-weight: 500;
}

.product-card:not(.has-discount) .price-sale {
    color: var(--text);
}

/* Card rating */
.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 12px;
}

.card-stars {
    color: #f59e0b;
    letter-spacing: -1px;
}

.card-rating-num {
    color: var(--text-muted);
    font-weight: 600;
}

/* ==================== STORE HERO (store page) ==================== */
.store-hero {
    background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, #000) 100%);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.store-hero.has-bg {
    background-size: cover;
    background-position: center;
}

.store-hero.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.35) 100%);
    z-index: 0;
}

.store-hero.has-bg > .container {
    position: relative;
    z-index: 1;
}

.store-hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: white;
    padding: 8px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.store-hero-info {
    flex: 1;
    min-width: 200px;
}

.store-hero-info h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.store-website {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: 14px;
}

.store-website:hover {
    color: white;
}

.store-hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    padding: 12px 20px;
    background: #111;
    border-radius: var(--radius-sm);
    min-width: 80px;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
    border: 1px solid rgba(255,255,255,.08);
}

.hero-stat-num {
    display: block;
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-display);
    color: #fff;
}

.hero-stat-label {
    display: block;
    font-size: 12px;
    font-family: var(--font-input);
    opacity: .85;
    margin-top: 2px;
    color: #fff;
}

/* ==================== PRODUCT DETAIL ==================== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 32px 0;
}

.pd-image {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.pd-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pd-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.pd-breadcrumb a:hover {
    text-decoration: underline;
}

.pd-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 16px;
}

.pd-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pd-store-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    background: color-mix(in srgb, var(--brand) 10%, transparent);
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}

.pd-store-tag:hover {
    background: color-mix(in srgb, var(--brand) 18%, transparent);
}

.pd-store-tag img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    object-fit: contain;
}

.pd-city-tag, .pd-unit-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 50px;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.pd-prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
}

.pd-sale {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
}

.pd-sale small {
    font-size: 20px;
}

.pd-original {
    font-size: 20px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.pd-save {
    font-size: 14px;
    color: var(--green);
    font-weight: 600;
    background: var(--green-light);
    padding: 4px 12px;
    border-radius: 50px;
}

/* ==================== RATING ==================== */
.pd-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    transition: transform .15s;
}

.star-btn:hover {
    transform: scale(1.2);
}

.star-btn svg path {
    fill: none;
    stroke: #d1d5db;
    stroke-width: 1.5;
    transition: all .15s;
}

.rating-info {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.rating-info #rating-count {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 14px;
}

.rating-msg {
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
}

/* ==================== OTHER CITIES ==================== */
.pd-other-cities {
    margin-bottom: 24px;
}

.pd-other-cities h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.other-cities-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.other-city-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    transition: all .2s;
}

.other-city-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.oc-city {
    font-weight: 600;
}

.oc-price {
    font-weight: 700;
    color: var(--accent);
}

.oc-disc {
    background: var(--accent-light);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

/* ==================== SIMILAR SECTION ==================== */
.similar-section {
    padding: 24px 0 40px;
    border-top: 1px solid var(--border);
}

.similar-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px 0 40px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font);
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: .4; cursor: default; }

/* ==================== LOADING ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,.6);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== EMPTY STATE ==================== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: .4;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ==================== BRAND DOT (header dropdown) ==================== */
.brand-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
    border: 2px solid rgba(255,255,255,.6);
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}

/* ==================== CITY HERO ICON ==================== */
.city-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==================== OLYMPICS ==================== */
.olympics-section {
    background: var(--surface);
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.olympics-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    text-align: center;
}

.olympics-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

.olympics-podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 750px;
    margin: 0 auto;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: all .2s;
    position: relative;
    background: var(--surface);
}

.podium-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.podium-gold {
    border-color: #fbbf24;
    background: linear-gradient(180deg, #fffbeb 0%, var(--surface) 100%);
}

.podium-silver {
    border-color: #9ca3af;
    background: linear-gradient(180deg, #f3f4f6 0%, var(--surface) 100%);
}

.podium-bronze {
    border-color: #d97706;
    background: linear-gradient(180deg, #fef3c7 0%, var(--surface) 100%);
}

.podium-medal {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 6px;
}

.podium-place {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.podium-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: white;
    padding: 6px;
    object-fit: contain;
    margin-bottom: 8px;
    box-shadow: var(--shadow);
}

.podium-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-bottom: 8px;
    box-shadow: var(--shadow);
}

.podium-product-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
}

.podium-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podium-rating {
    font-size: 16px;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 4px;
}

.podium-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==================== LISTING PAGES ==================== */
.listing-hero {
    background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, #000) 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.listing-hero.has-bg {
    background-size: cover;
    background-position: center;
}

.listing-hero.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.35) 100%);
    z-index: 0;
}

.listing-hero.has-bg > .container {
    position: relative;
    z-index: 1;
}

.listing-hero h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.listing-hero p {
    font-size: 16px;
    opacity: .8;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 24px 0 40px;
}

.listing-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all .2s;
}

.listing-card:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.listing-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.listing-card-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.listing-card-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: white;
    padding: 4px;
    object-fit: contain;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.listing-card-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.listing-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.listing-card-stats span {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg);
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 500;
}

/* ==================== FOOTER VERSION ==================== */
.footer-version {
    font-size: 12px;
    color: var(--text-muted);
    opacity: .6;
    margin-top: 4px;
}

/* ==================== STORE PILL BRAND INDICATOR ==================== */
.store-pill {
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-pill[style*="--pill-brand"]::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pill-brand);
    flex-shrink: 0;
}

.store-pill.active[style*="--pill-brand"]::before {
    background: white;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .site-header .container {
        flex-wrap: wrap;
    }

    .header-nav {
        order: 2;
        width: 100%;
        justify-content: stretch;
    }

    .header-nav .dropdown {
        flex: 1;
    }

    .dropdown-btn {
        width: 100%;
        justify-content: center;
        font-size: 13px;
        padding: 7px 10px;
    }

    .dropdown-menu {
        min-width: 100%;
        left: 0;
        right: 0;
    }

    .search-wrap {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .header-stats {
        margin-left: auto;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .card-body { padding: 10px; }
    .card-name { font-size: 13px; }
    .price-sale { font-size: 17px; }

    .toolbar {
        flex-wrap: wrap;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }

    .pd-image {
        aspect-ratio: auto;
        padding: 20px;
    }

    .pd-name { font-size: 20px; }
    .pd-sale { font-size: 28px; }

    .store-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .store-hero-info h1 { font-size: 22px; }
    .store-hero-stats { justify-content: center; }

    .olympics-podium {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .listing-grid {
        grid-template-columns: 1fr;
    }

    .listing-hero h1 { font-size: 22px; }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .card-img-wrap { padding-top: 90%; }
    .discount-badge { font-size: 11px; padding: 3px 7px; top: 6px; left: 6px; }
    .store-badge { font-size: 10px; padding: 3px 7px; top: 6px; right: 6px; }
    .stat-badge { font-size: 12px; padding: 4px 8px; }
    .dropdown-btn { font-size: 12px; padding: 6px 8px; }
}

/* ==================== HEADER NAV LINKS (V4.1) ==================== */
.header-nav-links {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.nav-link {
    padding: 7px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-nav);
    color: var(--text-muted);
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 700;
}

/* Nav Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-dd-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    cursor: pointer;
    background: none;
    line-height: 1;
}

.nav-dd-arrow {
    font-size: 9px;
    transition: transform .2s;
    opacity: .5;
}

.nav-dropdown:hover .nav-dd-arrow,
.nav-dropdown.open .nav-dd-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dd-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s;
    transform: translateX(-50%) translateY(4px);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dd-menu,
.nav-dropdown.open .nav-dd-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dd-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text, #1f2937);
    text-decoration: none;
    transition: background .15s;
    white-space: nowrap;
}

.nav-dd-item i {
    width: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted, #6b7280);
}

.nav-dd-item:hover {
    background: var(--primary-light, #eff6ff);
    color: var(--primary, #2563eb);
}

.nav-dd-item:hover i {
    color: var(--primary, #2563eb);
}

.nav-dd-item.active {
    background: var(--primary-light, #eff6ff);
    color: var(--primary, #2563eb);
    font-weight: 600;
}

.nav-dd-item.active i {
    color: var(--primary, #2563eb);
}

/* ==================== HOME HERO (V4.1) ==================== */
.home-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: white;
    padding: 48px 0 40px;
    text-align: center;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 8px;
}

.hero-accent {
    color: #60a5fa;
}

.hero-subtitle {
    font-size: 16px;
    opacity: .75;
    font-weight: 400;
}

/* ==================== HOME MAIN & SECTIONS GRID (V4.1) ==================== */
.home-main {
    padding-top: 24px;
    padding-bottom: 40px;
}

.home-sections-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.home-section-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all .2s;
}

.home-section-card:hover {
    border-color: var(--section-color, var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.section-card-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.section-card-body {
    flex: 1;
    min-width: 0;
}

.section-card-body h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
    font-family: var(--font-heading);
}

.section-card-body p {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-input);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-card-arrow {
    font-size: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform .2s;
}

.home-section-card:hover .section-card-arrow {
    transform: translateX(4px);
    color: var(--section-color, var(--primary));
}

/* ==================== HOME WIDGETS (V4.1) ==================== */
.home-widgets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.home-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.widget-header h3 {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-nav);
}

.widget-more {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.widget-more:hover {
    text-decoration: underline;
}

.widget-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget-rate-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.rate-flag {
    font-size: 18px;
    flex-shrink: 0;
}

.rate-label {
    font-weight: 700;
    min-width: 36px;
}

.rate-buy {
    color: var(--green);
    font-weight: 600;
}

.rate-sep {
    color: var(--text-muted);
    font-size: 12px;
}

.rate-sell {
    color: var(--accent);
    font-weight: 600;
}

.rate-nbg {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
}

.widget-fuel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.fuel-type-label {
    font-weight: 600;
}

.fuel-price-range {
    font-weight: 700;
    color: var(--text);
}

/* ==================== HOME STORE SECTIONS (V4.1) ==================== */
.home-section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-nav);
}

.section-more {
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.section-more:hover {
    text-decoration: underline;
}

.home-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.home-store-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all .2s;
    text-align: center;
}

.home-store-card:hover {
    border-color: var(--brand, var(--primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.home-store-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    padding: 4px;
    box-shadow: var(--shadow);
}

.home-store-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.home-store-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

.home-store-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 50px;
}

/* ==================== FOOTER ENHANCED (V4.1) ==================== */
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 1px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
}

/* ==================== SECTION TITLE (shared V4.1) ==================== */
.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* ==================== CURRENCY PAGE (V4.1) ==================== */
.currency-section {
    padding: 24px 0;
}

.currency-section + .currency-section {
    border-top: 1px solid var(--border);
}

.nbg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.nbg-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: box-shadow .2s;
}

.nbg-card:hover {
    box-shadow: var(--shadow-md);
}

.nbg-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.nbg-flag {
    font-size: 22px;
}

.nbg-code {
    font-size: 16px;
    font-weight: 700;
}

.nbg-qty {
    font-size: 11px;
    background: var(--bg);
    padding: 1px 6px;
    border-radius: 50px;
    color: var(--text-muted);
    font-weight: 600;
}

.nbg-rate {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.nbg-diff {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.nbg-diff.up {
    color: var(--green);
}

.nbg-diff.down {
    color: var(--accent);
}

.nbg-name {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Currency Tabs */
.currency-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.currency-tab {
    padding: 10px 24px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--surface);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    color: var(--text-muted);
    cursor: pointer;
    transition: all .2s;
}

.currency-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.currency-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Best Rates Bar */
.best-rates-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.best-rate-item {
    flex: 1;
    min-width: 160px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    text-align: center;
}

.best-rate-item.best-buy {
    background: var(--green-light);
}

.best-rate-item.best-sell {
    background: var(--accent-light);
}

.best-rate-item.nbg-official {
    background: var(--primary-light);
}

.best-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.best-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
}

.best-buy .best-value { color: var(--green); }
.best-sell .best-value { color: var(--accent); }
.nbg-official .best-value { color: var(--primary); }

/* Exchange Table */
.currency-table-wrap {
    overflow-x: auto;
}

.exchange-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.exchange-table thead {
    background: var(--bg);
}

.exchange-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}

.exchange-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.exchange-table tbody tr:hover {
    background: #f8fafc;
}

.rate-col {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.bank-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.bank-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.type-commercial_bank {
    background: var(--primary-light);
    color: var(--primary);
}

.type-exchange_bureau {
    background: #fef3c7;
    color: #92400e;
}

.type-online {
    background: var(--green-light);
    color: var(--green);
}

.best-highlight {
    background: #ecfdf5;
    color: var(--green);
    font-weight: 700;
}

.spread-col {
    color: var(--text-muted);
    font-size: 13px;
}

/* Converter */
.converter-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius);
    flex-wrap: wrap;
}

.converter-input-group {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.converter-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font);
    outline: none;
    transition: border-color .2s;
}

.converter-input-group input:focus {
    border-color: var(--primary);
}

.converter-input-group select {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    background: var(--surface);
    cursor: pointer;
    outline: none;
}

.converter-arrow {
    font-size: 24px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.converter-result {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 2px solid var(--primary);
}

.converter-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.converter-currency {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==================== FUEL PAGE (V4.1) ==================== */
.fuel-section {
    padding: 24px 0;
}

.fuel-section + .fuel-section {
    border-top: 1px solid var(--border);
}

.fuel-comparison-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.fuel-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.fuel-cat-icon {
    font-size: 24px;
}

.fuel-cat-header h3 {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
}

.fuel-range {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg);
    padding: 4px 12px;
    border-radius: 50px;
}

.fuel-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fuel-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.fuel-bar-row.cheapest {
    background: #ecfdf5;
    margin: -4px -8px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.fuel-bar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 200px;
    flex-shrink: 0;
}

.fuel-station-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fuel-station-name {
    font-weight: 600;
    font-size: 14px;
}

.fuel-product-name {
    font-size: 12px;
    color: var(--text-muted);
}

.fuel-bar-track {
    flex: 1;
    height: 24px;
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
}

.fuel-bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width .4s ease;
    min-width: 20px;
}

.fuel-bar-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 90px;
    flex-shrink: 0;
}

.fuel-price-main {
    font-size: 16px;
    font-weight: 700;
}

.fuel-price-card {
    font-size: 11px;
    color: var(--text-muted);
}

.cheapest-badge {
    background: var(--green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Station Cards */
.fuel-stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.fuel-station-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .2s;
}

.fuel-station-card:hover {
    border-color: var(--brand, var(--primary));
    box-shadow: var(--shadow-md);
}

.fuel-station-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--brand) 0%, color-mix(in srgb, var(--brand) 70%, #000) 100%);
    color: white;
}

.fuel-station-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.fuel-station-link {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: 13px;
}

.fuel-station-link:hover {
    color: white;
}

.fuel-price-list {
    padding: 12px 20px;
}

.fuel-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.fuel-price-row:last-child {
    border-bottom: none;
}

.fuel-type-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.fuel-type-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.fuel-type-card {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
}

.fuel-no-data {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ==================== PHARMACY PAGE (V4.1) ==================== */
.hero-type-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255,255,255,.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 12px;
    vertical-align: middle;
}

.pharmacy-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

/* ==================== V4.1 RESPONSIVE ADDITIONS ==================== */
@media (max-width: 1024px) {
    .home-sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-main-v5 .home-sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-nav-links {
        order: 10;
        width: 100%;
        justify-content: center;
        gap: 4px;
    }

    .nav-link {
        font-size: 13px;
        padding: 5px 10px;
    }

    .nav-dd-menu {
        position: fixed;
        left: 4px;
        right: 4px;
        top: auto;
        transform: none;
        width: auto;
        min-width: 0;
    }

    .nav-dropdown:hover .nav-dd-menu,
    .nav-dropdown.open .nav-dd-menu {
        transform: none;
    }

    .home-hero {
        padding: 32px 0;
    }

    .hero-title {
        font-size: 24px;
    }

    .home-sections-grid {
        grid-template-columns: 1fr;
    }

    .home-widgets-grid {
        grid-template-columns: 1fr;
    }

    .home-store-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Currency page */
    .nbg-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .best-rates-bar {
        flex-direction: column;
    }

    .exchange-table { font-size: 13px; }
    .exchange-table th,
    .exchange-table td { padding: 8px 10px; }

    .converter-wrap {
        flex-direction: column;
    }

    .converter-input-group,
    .converter-result {
        width: 100%;
        min-width: 0;
    }

    .converter-arrow {
        transform: rotate(90deg);
    }

    /* Fuel page */
    .fuel-bar-label {
        min-width: 140px;
    }

    .fuel-stations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .home-store-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nbg-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .currency-tabs {
        flex-direction: column;
    }

    .fuel-bar-row {
        flex-wrap: wrap;
    }

    .fuel-bar-label {
        width: 100%;
        min-width: 0;
    }

    .fuel-bar-track {
        order: 3;
        width: 100%;
    }
}

/* ==================== V4.2 ADDITIONS ==================== */

/* Stat badge variants */
.stat-badge.stores {
    background: var(--primary-light);
    color: var(--primary);
}

/* Smooth scroll offset for anchored sections */
.currency-section[id],
.fuel-comparison-card[id],
.fuel-section[id] {
    scroll-margin-top: 80px;
}

/* Currency/Fuel page top padding when no toolbar */
.currency-section:first-child,
.fuel-section:first-child {
    padding-top: 16px;
}

/* ==================== V4.3 — CURRENCY SUMMARY CARDS ==================== */
.currency-summary {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 24px 0 8px;
}

.currency-summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow .2s;
}

.currency-summary-card:hover {
    box-shadow: var(--shadow-md);
}

.summary-flag {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}

.summary-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-nbg {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.summary-diff {
    font-size: 12px;
    font-weight: 600;
}

.summary-diff.up { color: var(--green); }
.summary-diff.down { color: var(--accent); }

.summary-rates {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.summary-rate-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.sr-label {
    color: var(--text-muted);
    font-weight: 500;
}

.sr-value {
    font-weight: 700;
    font-size: 15px;
}

.sr-value.buy { color: var(--green); }
.sr-value.sell { color: var(--accent); }

/* Converter inline (inside summary card) */
.converter-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.converter-card .summary-flag {
    font-size: 24px;
    text-align: center;
}

.converter-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.converter-row {
    display: flex;
    gap: 6px;
    flex: 1;
}

.converter-row input {
    width: 70px;
    padding: 8px 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font);
    outline: none;
    flex: 1;
}

.converter-row input:focus {
    border-color: var(--primary);
}

.converter-row select {
    padding: 8px 10px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    background: var(--surface);
    cursor: pointer;
    outline: none;
}

.converter-eq {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.converter-out {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
}

.converter-out span:first-child {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.converter-out span:last-child {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==================== V4.3 — FUEL SUMMARY GRID ==================== */
.fuel-summary-grid {
    display: flex;
    gap: 12px;
    padding: 24px 0 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.fuel-summary-grid::-webkit-scrollbar { display: none; }

.fuel-summary-card {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow .2s;
}

.fuel-summary-card:hover {
    box-shadow: var(--shadow-md);
}

.fuel-summary-icon {
    font-size: 22px;
}

.fuel-summary-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.fuel-summary-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
    white-space: nowrap;
}

.fuel-summary-range {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* ==================== V4.3 RESPONSIVE ==================== */
@media (max-width: 768px) {
    .currency-summary {
        grid-template-columns: 1fr;
    }

    .converter-inline {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .fuel-summary-grid {
        gap: 8px;
    }

    .fuel-summary-card {
        padding: 10px 14px;
    }

    .fuel-summary-name {
        font-size: 13px;
    }
}

/* ==================== V4.4 — HOMEPAGE DEALS, FUEL PODIUM, CURRENCY HERO ==================== */

/* --- Homepage Hero Stats Bar --- */
.home-hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 24px 0 8px;
    flex-wrap: wrap;
}

.home-hero-stats .hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: #111;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    min-width: 90px;
}

.home-hero-stats .hero-stat-num {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-display);
}

.home-hero-stats .hero-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-input);
}

/* --- Deal Cards (Horizontal Scroll) --- */
.deals-section {
    margin-top: 8px;
}

.deals-wrapper {
    position: relative;
}

.deals-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    transition: opacity .25s, box-shadow .2s, background .2s;
    font-size: 14px;
}
.deals-arrow:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.deals-arrow-left { left: -12px; }
.deals-arrow-right { right: -12px; }

.deals-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 12px 4px 18px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
}
.deals-scroll::-webkit-scrollbar { display: none; }

.deal-card {
    flex-shrink: 0;
    width: 200px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: box-shadow .25s, transform .25s, border-color .25s;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.deal-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-4px);
    border-color: var(--accent);
}

.deal-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(204,0,0,.3);
    letter-spacing: 0.3px;
}

.pharmacy-deal .deal-badge {
    background: linear-gradient(135deg, #0091ea, #005cb2);
    box-shadow: 0 2px 6px rgba(0,92,178,.3);
}

.deal-img {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.deal-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .3s;
}
.deal-card:hover .deal-img img {
    transform: scale(1.05);
}

.deal-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.deal-store-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.deal-store-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
}

.deal-store {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.deal-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.deal-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
}

.deal-price-new {
    font-size: 17px;
    font-weight: 700;
    color: var(--green);
}

.deal-price-old {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* --- 3-column Widgets Grid --- */
.home-widgets-grid.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

/* --- Stats Widget --- */
.widget-stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

.widget-stat-row:last-child {
    border-bottom: none;
}

.stat-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.stat-lbl {
    flex: 1;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

/* Fuel widget cheapest highlight */
.fuel-cheapest {
    font-weight: 700;
    color: var(--green);
    font-size: 15px;
}

.fuel-type-sep {
    color: var(--text-muted);
    font-size: 12px;
}

/* Store sale badge */
.home-store-sale {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 2px;
}

/* --- CURRENCY PAGE HERO --- */
.currency-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 24px 0 16px;
}

.currency-hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: box-shadow .2s;
    position: relative;
    overflow: hidden;
}

.currency-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.currency-hero-card.usd::before {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.currency-hero-card.eur::before {
    background: linear-gradient(90deg, #1565c0, #64b5f6);
}

.currency-hero-card:hover {
    box-shadow: var(--shadow-md);
}

.hero-card-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-flag {
    font-size: 40px;
    line-height: 1;
}

.hero-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-pair {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-nbg-rate {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

.hero-diff {
    font-size: 13px;
    font-weight: 600;
}

.hero-diff.up { color: var(--green); }
.hero-diff.down { color: var(--accent); }

.hero-card-rates {
    display: flex;
    gap: 12px;
}

.hero-rate-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg);
}

.hero-rate-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hero-rate-val {
    font-size: 17px;
    font-weight: 700;
}

.hero-rate-box.buy .hero-rate-val { color: var(--green); }
.hero-rate-box.sell .hero-rate-val { color: var(--accent); }
.hero-rate-box.spread .hero-rate-val { color: var(--primary); }

/* --- Currency Converter Section --- */
.currency-converter-section {
    padding: 0 0 16px;
}

.converter-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.converter-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.converter-fields {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.converter-input-group {
    display: flex;
    gap: 6px;
}

.converter-input-group input {
    width: 100px;
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font);
    outline: none;
}

.converter-input-group input:focus {
    border-color: var(--primary);
}

.converter-input-group select {
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    background: var(--surface);
    cursor: pointer;
    outline: none;
}

.converter-arrow {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.converter-result {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.converter-result-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.converter-result-cur {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

/* --- FUEL PAGE PODIUM --- */
.fuel-slider-tabs {
    display: flex;
    gap: 8px;
    padding: 24px 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.fuel-slider-tabs::-webkit-scrollbar { display: none; }

.fuel-slider-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    transition: all .2s;
    flex-shrink: 0;
}

.fuel-slider-tab:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.fuel-slider-tab.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.fuel-slider-tab .tab-icon {
    font-size: 18px;
}

.fuel-slider-tab .tab-price {
    font-weight: 700;
    color: var(--green);
}

.fuel-slider-tab.active .tab-price {
    color: #bbf7d0;
}

/* Podium Container */
.fuel-podium-container {
    margin-bottom: 32px;
}

.fuel-podium-slide {
    display: none;
}

.fuel-podium-slide.active {
    display: block;
}

.podium-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.podium-range {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
}

.podium-stage {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 340px;
}

.podium-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 200px;
}

.podium-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.podium-medal {
    font-size: 32px;
    line-height: 1;
}

.podium-station-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.podium-fuel-name {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.podium-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.podium-card-price {
    font-size: 11px;
    color: var(--green);
    font-weight: 600;
}

.podium-bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    min-height: 60px;
    transition: height .4s ease;
}

.podium-place-num {
    font-size: 28px;
    font-weight: 800;
    color: rgba(255,255,255,.5);
}

.podium-column.winner .podium-price {
    color: var(--green);
    font-size: 22px;
}

.podium-column.winner .podium-station-name {
    font-size: 16px;
}

/* Place-specific podium glow */
.podium-column.place-1 .podium-medal { filter: drop-shadow(0 0 6px rgba(255,215,0,.5)); }
.podium-column.place-2 .podium-medal { filter: drop-shadow(0 0 4px rgba(192,192,192,.5)); }
.podium-column.place-3 .podium-medal { filter: drop-shadow(0 0 4px rgba(205,127,50,.5)); }

/* ==================== V4.4 RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .currency-hero {
        grid-template-columns: 1fr;
    }

    .hero-card-rates {
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .home-hero-stats {
        gap: 16px;
        flex-wrap: wrap;
    }

    .home-hero-stats .hero-stat-num {
        font-size: 20px;
    }

    .home-widgets-grid.three-col {
        grid-template-columns: 1fr;
    }

    .deal-card {
        width: 170px;
    }

    .deal-img {
        height: 120px;
    }

    .deals-arrow {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .deals-arrow-left { left: -6px; }
    .deals-arrow-right { right: -6px; }

    .currency-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-card-rates {
        width: 100%;
        justify-content: space-between;
    }

    .converter-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .converter-fields {
        flex-wrap: wrap;
        width: 100%;
    }

    .podium-stage {
        gap: 8px;
        padding: 12px;
        min-height: 280px;
        flex-wrap: wrap;
    }

    .podium-column {
        max-width: 150px;
    }

    .podium-medal {
        font-size: 24px;
    }

    .podium-price {
        font-size: 16px;
    }

    .podium-station-name {
        font-size: 12px;
    }

    .fuel-slider-tabs {
        gap: 6px;
        padding: 16px 0 10px;
    }

    .fuel-slider-tab {
        padding: 8px 12px;
        font-size: 12px;
        gap: 5px;
    }

    .fuel-slider-tab .tab-name {
        display: none;
    }

    .fuel-slider-tab .tab-icon {
        font-size: 14px;
    }

    .podium-title {
        font-size: 16px;
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .podium-range {
        font-size: 13px;
    }

    .podium-column.winner .podium-price {
        font-size: 18px;
    }

    .podium-column.winner .podium-station-name {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .home-hero-stats {
        gap: 12px;
    }

    .home-hero-stats .hero-stat-num {
        font-size: 18px;
    }

    .deal-card {
        width: 155px;
    }

    .deal-img {
        height: 110px;
    }

    .deals-arrow { display: none; }

    .fuel-slider-tab {
        padding: 6px 10px;
        font-size: 11px;
    }

    .podium-stage {
        gap: 6px;
        padding: 8px;
        min-height: 200px;
    }

    .podium-column {
        max-width: 100px;
    }

    .podium-bar {
        min-height: 40px;
    }

    .podium-place-num {
        font-size: 20px;
    }

    .podium-title {
        font-size: 14px;
    }

    .podium-price {
        font-size: 14px;
    }

    .podium-station-name {
        font-size: 11px;
    }

    .pills-arrow {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
}

/* ==================== COUNTER ANIMATION ==================== */
.hero-stat-num {
    transition: color .3s;
}

/* ==================== AJAX SEARCH DROPDOWN ==================== */
.search-wrap {
    position: relative;
}

.search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0,0,0,.15);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.active {
    display: block;
}

.search-group-title {
    padding: 10px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-family: var(--font-input);
    border-bottom: 1px solid var(--border);
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text);
    transition: background .15s;
    border-bottom: 1px solid var(--border);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: var(--primary-light);
}

.search-item-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: var(--bg);
    flex-shrink: 0;
}

.search-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.search-item-info {
    flex: 1;
    min-width: 0;
}

.search-item-name {
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-input);
}

.search-item-price {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    flex-shrink: 0;
}

.search-no-results {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-input);
    font-size: 14px;
}

.search-loading {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
}

.search-loading i {
    animation: spin 1s linear infinite;
    font-size: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== SECTION ICON ==================== */
.section-icon {
    margin-right: 8px;
    font-size: 1em;
    vertical-align: middle;
}

/* ==================== CITY CARDS (Markets Page) ==================== */
.city-cards-section {
    padding: 32px 0 8px;
}
.city-cards-section .section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}
.city-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.city-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: transform .25s, box-shadow .25s;
}
.city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.14);
}
.city-card-photo {
    position: relative;
    height: 170px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.city-card-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
}
.city-card-name {
    position: absolute;
    bottom: 14px;
    left: 16px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.city-card-name i {
    font-size: 16px;
    color: #f87171;
}
.city-card-body {
    padding: 14px 16px 16px;
}
.city-card-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.city-card-stats .count-num {
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
}
.city-card-stores {
    display: flex;
    align-items: center;
    gap: -4px;
}
.store-logo-mini {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    border: 2px solid var(--surface);
    padding: 3px;
    margin-left: -6px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.store-logo-mini:first-child {
    margin-left: 0;
}
.store-count-extra {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--surface);
    margin-left: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ==================== STORE MARKET CARDS (City Page) ==================== */
.store-cards-section {
    padding: 24px 0 8px;
}
.store-cards-section .section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}
.store-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.store-market-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: all .2s;
    position: relative;
    overflow: hidden;
}
.store-market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-brand, var(--primary));
    border-radius: 4px 0 0 4px;
}
.store-market-card:hover {
    border-color: var(--card-brand, var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.store-market-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    padding: 4px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}
.store-market-card-info {
    flex: 1;
    min-width: 0;
}
.store-market-card-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.store-market-card-info .card-product-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.store-market-card-info .card-product-count strong {
    color: var(--primary);
}
.store-card-cities {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}
.city-thumb-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid var(--surface);
    margin-left: -4px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.city-thumb-mini:first-child {
    margin-left: 0;
}
.city-thumb-mini[title]::after {
    content: attr(title);
}
.cities-count-badge {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 4px;
    white-space: nowrap;
}
.store-market-card .card-arrow {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
    transition: transform .2s;
}
.store-market-card:hover .card-arrow {
    transform: translateX(3px);
    color: var(--card-brand, var(--primary));
}

/* ==================== CATEGORY LINKS ==================== */
.cat-links-section {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.cat-links-section .section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-muted);
}
.cat-links-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cat-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 2px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.cat-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}
.cat-link-count {
    font-size: 11px;
    background: var(--bg);
    color: var(--text-muted);
    padding: 1px 7px;
    border-radius: 50px;
}

/* ==================== STORE LINKS ROW ==================== */
.store-links-section {
    padding: 20px 0;
}
.store-links-section .section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-muted);
}
.store-links-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.store-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}
.store-link:hover {
    border-color: var(--link-brand, var(--primary));
    color: var(--link-brand, var(--primary));
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.store-link-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
}
.store-link-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--link-brand, var(--primary));
    flex-shrink: 0;
}

/* ==================== STORE CARD WRAP (with cities button) ==================== */
.store-market-card-wrap {
    position: relative;
}
.store-market-card-wrap .store-market-card {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.store-market-card-wrap .store-cities-btn + .store-market-card {
    border-radius: var(--radius);
}
.store-cities-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 16px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-top: 1px dashed var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font-input);
}
.store-cities-btn:hover {
    background: rgba(99, 102, 241, .06);
    border-color: var(--primary);
    color: var(--primary);
}
.store-cities-btn i {
    font-size: 13px;
}

/* ==================== CITIES MODAL ==================== */
.cities-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}
.cities-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.cities-modal {
    background: var(--surface);
    border-radius: 16px;
    width: 90%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    animation: modalSlideUp .3s ease-out;
    padding: 0;
}
@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cities-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}
.cities-modal-store-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cities-modal-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: white;
    padding: 4px;
    border: 1px solid var(--border);
}
.cities-modal-store-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.cities-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    flex-shrink: 0;
}
.cities-modal-close:hover {
    background: var(--border);
    color: var(--text);
}
.cities-modal-title {
    padding: 16px 24px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.cities-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 24px 24px;
}
.cities-modal-city {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: all .2s;
    background: var(--surface);
}
.cities-modal-city:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
}
.cities-modal-city-img {
    height: 80px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.cities-modal-city-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,.3));
}
.cities-modal-city-info {
    padding: 10px 12px;
}
.cities-modal-city-name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.cities-modal-city-name i {
    font-size: 11px;
    color: #f87171;
}
.cities-modal-city-count {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ==================== STORE SIDEBAR LAYOUT ==================== */
.store-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: start;
    padding: 0 24px;
    margin-bottom: 32px;
}
.store-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 240px;
}
.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}
.sidebar-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.sidebar-sort-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-cat);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
}
.sidebar-sort-select:focus {
    border-color: var(--primary);
}
.sidebar-title {
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-cat);
    color: var(--text);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-title i {
    color: var(--primary);
    font-size: 13px;
}
.sidebar-pills {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-pills .city-pill,
.sidebar-pills .cat-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    font-family: var(--font-cat);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    text-align: left;
}
.sidebar-pills .city-pill:hover,
.sidebar-pills .cat-pill:hover {
    background: rgba(99, 102, 241, .08);
    color: var(--primary);
}
.sidebar-pills .city-pill.active,
.sidebar-pills .cat-pill.active {
    background: var(--primary);
    color: #fff;
}
.sidebar-pills .pill-count {
    font-size: 11px;
    opacity: .7;
}
.sidebar-pills .city-pill.active .pill-count,
.sidebar-pills .cat-pill.active .pill-count {
    opacity: .9;
}
.store-content {
    min-width: 0;
}
@media (max-width: 768px) {
    .store-layout {
        grid-template-columns: 1fr;
        padding: 0 12px;
    }
    .store-sidebar {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
    }
    .sidebar-divider {
        display: none;
    }
    .sidebar-section {
        min-width: 200px;
        flex-shrink: 0;
    }
    .sidebar-pills {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .sidebar-pills .city-pill,
    .sidebar-pills .cat-pill {
        width: auto;
        padding: 6px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* ==================== CITY CIRCLE SLIDER ==================== */
.city-circles-section {
    padding: 24px 24px 16px;
    margin-bottom: 0;
}
.store-section-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}
.city-slider-viewport {
    overflow: hidden;
}
.city-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    position: relative;
}
.city-circle-photo {
    display: block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--border);
    transition: all .3s ease;
    flex-shrink: 0;
}
.city-circle-card:hover .city-circle-photo {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
.city-circle-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-family: var(--font-cat);
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
    transition: background .2s;
}
.city-circle-card:hover .city-circle-overlay {
    background: rgba(0,0,0,.55);
}
.city-circle-overlay i {
    font-size: 16px;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}
.city-circle-count {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}
/* Hover popup: other stores in this city */
.city-circle-hover-stores {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(12,12,22,.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: all .2s ease;
    z-index: 100;
    width: 260px;
    max-height: none;
    overflow: visible;
    white-space: normal;
    pointer-events: none;
}
.city-circle-card:hover .city-circle-hover-stores {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
/* Arrow pointing down */
.city-circle-hover-stores::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(12,12,22,.95);
    border-bottom: 0;
}
.city-hover-title {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,.7);
    margin-bottom: 16px;
    font-weight: 700;
    text-align: center;
    font-family: var(--font-cat);
}
.city-hover-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 12px;
    justify-items: center;
}
.city-hover-logos img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    padding: 4px;
    transition: all .2s;
}
.city-hover-logos img:hover {
    transform: scale(1.12);
    border-color: var(--primary);
    background: rgba(255,255,255,.12);
}

/* ==================== CATEGORY SLIDER ==================== */
.cat-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.cat-slider-title {
    font-family: var(--font-cat);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cat-slider-title i {
    color: var(--primary);
}
.cat-slider-arrows {
    display: flex;
    gap: 8px;
}
.cat-slider-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all .2s;
}
.cat-slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.cat-slider-viewport {
    overflow: hidden;
}
.cat-slider-track {
    display: flex;
    gap: 14px;
    transition: transform .35s ease;
}
.cat-slide {
    flex: 0 0 calc((100% - 56px) / 5);
    min-width: 0;
}
.cat-slide .cat-card {
    width: 100%;
}
.cat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.cat-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    min-height: 160px;
    background: #1a1a2e;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: all .2s;
    overflow: hidden;
    position: relative;
}
.cat-card::after {
    content: '';
    position: absolute;
    inset: -8px;
    background: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    z-index: 0;
}
.cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 50%, rgba(0,0,0,.15) 100%);
    z-index: 1;
    transition: background .2s;
}
.cat-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}
.cat-card:hover::before {
    background: linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.1) 100%);
}
.cat-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 4px;
    position: relative;
    z-index: 2;
}
.cat-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.cat-card-info {
    flex: 1;
    min-width: 0;
}
.cat-card-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    font-family: var(--font-cat);
}
.cat-card-count {
    font-size: 12px;
    color: rgba(255,255,255,.75);
    font-weight: 500;
}
.cat-card-stores {
    display: flex;
    align-items: center;
    padding: 6px 16px 12px;
    position: relative;
    z-index: 2;
}

/* ==================== CATEGORY STORES MODAL ==================== */
.cat-modal-stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    padding: 16px 24px;
}
.cat-modal-store {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: all .2s ease;
}
.cat-modal-store:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
.cat-modal-store-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 10px;
}
.cat-modal-store-logo-placeholder {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker, #f0f0f0);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 22px;
}
.cat-modal-store-name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}
.cat-modal-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
}
.cat-modal-count {
    font-size: 13px;
    color: var(--text-muted);
    margin-left: auto;
}

/* ==================== STATS SUMMARY BAR ==================== */
.stats-summary-bar {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
    flex-wrap: wrap;
}
.stats-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-muted);
    white-space: nowrap;
}
.stats-summary-item i {
    color: var(--primary);
    font-size: 14px;
}
.stats-summary-num {
    font-weight: 700;
    color: var(--text);
    font-size: 16px;
    font-family: var(--font-display);
}
.stats-summary-label {
    font-size: 13px;
}

/* City/Store Cards Responsive */
@media (max-width: 992px) {
    .city-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 600px) {
    .city-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .city-card-photo {
        height: 140px;
    }
    .city-card-name {
        font-size: 17px;
    }
    .store-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .cat-cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .cat-slide {
        flex: 0 0 calc((100% - 28px) / 3);
    }
    .cities-modal-grid {
        grid-template-columns: 1fr;
    }
    .cat-modal-stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    .cities-modal {
        width: 95%;
        max-height: 90vh;
    }
    .stats-summary-bar {
        gap: 8px;
    }
    .stats-summary-item {
        padding: 8px 12px;
        font-size: 12px;
    }
    .stats-summary-num {
        font-size: 14px;
    }
}

/* ==================== V5.0 — HOMEPAGE MODERNIZATION ==================== */

:root {
    --sec-markets: #059669;
    --sec-markets-light: #f0fdf4;
    --sec-pharmacy: #0284c7;
    --sec-pharmacy-light: #f0f9ff;
    --sec-electronics: #7c3aed;
    --sec-electronics-light: #faf5ff;
    --sec-currency: #1d4ed8;
    --sec-currency-light: #eff6ff;
    --sec-fuel: #ea580c;
    --sec-fuel-light: #fff7ed;
    --font-counter: 'Orbitron', monospace;
}

/* --- Hero Banner --- */
.hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a365d 100%);
    color: #fff;
    padding: 48px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(5,150,105,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 50%, rgba(234,88,12,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 10%, rgba(124,58,237,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.hero-banner .container { position: relative; z-index: 1; }
.hero-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-family: var(--font-nav);
    font-size: 1rem;
    opacity: 0.75;
    margin-bottom: 32px;
    letter-spacing: 3px;
}
.hero-banner .home-hero-stats {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 24px 40px;
    display: inline-flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-banner .hero-stat { text-align: center; }
.hero-banner .hero-stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.hero-banner .hero-stat-label {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
    margin-top: 4px;
    font-family: var(--font-nav);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Home Main V5 --- */
.home-main-v5 { padding: 0; }

/* --- Section Cards V5 --- */
.home-main-v5 .home-sections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 36px 0 20px;
}
.home-main-v5 .home-section-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 14px 24px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
    border: none;
    min-height: 152px;
    justify-content: center;
}
.home-main-v5 .home-section-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}
.home-main-v5 .home-section-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
    transition: opacity 0.3s;
}
.home-main-v5 .home-section-card:hover::after { opacity: 0.7; }

/* Section card gradient colors */
.home-main-v5 .home-section-card[href="/markets"] {
    background: linear-gradient(135deg, #059669 0%, #34d399 100%);
    box-shadow: 0 4px 16px rgba(5,150,105,0.25);
}
.home-main-v5 .home-section-card[href="/pharmacies"] {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    box-shadow: 0 4px 16px rgba(2,132,199,0.25);
}
.home-main-v5 .home-section-card[href="/electronics"] {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    box-shadow: 0 4px 16px rgba(124,58,237,0.25);
}
.home-main-v5 .home-section-card[href="/currency"] {
    background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
    box-shadow: 0 4px 16px rgba(29,78,216,0.25);
}
.home-main-v5 .home-section-card[href="/fuel"] {
    background: linear-gradient(135deg, #ea580c 0%, #fb923c 100%);
    box-shadow: 0 4px 16px rgba(234,88,12,0.25);
}
.home-main-v5 .home-section-card[href="/mobile-tariffs"] {
    background: linear-gradient(135deg, #4338ca 0%, #818cf8 100%);
    box-shadow: 0 4px 16px rgba(67,56,202,0.25);
}
.home-main-v5 .home-section-card .section-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.home-main-v5 .home-section-card .section-card-body {
    position: relative; z-index: 1;
}
.home-main-v5 .home-section-card .section-card-body h2 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: #fff;
}
.home-main-v5 .home-section-card .section-card-body p {
    font-size: 0.8rem;
    opacity: 0.85;
    color: #fff;
}
.home-main-v5 .home-section-card .section-card-arrow {
    position: absolute;
    bottom: 12px;
    right: 14px;
    opacity: 0.4;
    font-size: 0.9rem;
    transition: all 0.3s;
    z-index: 1;
    color: #fff;
}
.home-main-v5 .home-section-card:hover .section-card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* --- Section Blocks --- */
.section-block {
    padding: 48px 0 40px;
    position: relative;
}
.section-block--markets {
    background: linear-gradient(180deg, var(--sec-markets-light) 0%, #f8fdfb 50%, var(--bg) 100%);
    border-top: 4px solid var(--sec-markets);
}
.section-block--pharmacy {
    background: linear-gradient(180deg, var(--sec-pharmacy-light) 0%, #f8fcff 50%, var(--bg) 100%);
    border-top: 4px solid var(--sec-pharmacy);
}
.section-block--electronics {
    background: linear-gradient(180deg, var(--sec-electronics-light) 0%, #fcfaff 50%, var(--bg) 100%);
    border-top: 4px solid var(--sec-electronics);
}
.section-block--widgets {
    background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
    padding: 48px 0 40px;
}

/* --- Section Headers V5 --- */
.section-header-v5 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.section-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.section-icon-badge.sm {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 12px;
}
.section-icon-badge.bg-markets { background: var(--sec-markets); }
.section-icon-badge.bg-pharmacy { background: var(--sec-pharmacy); }
.section-icon-badge.bg-electronics { background: var(--sec-electronics); }
.section-icon-badge.bg-currency { background: var(--sec-currency); }
.section-icon-badge.bg-fuel { background: var(--sec-fuel); }
.section-icon-badge.bg-stats { background: var(--primary); }

.section-header-v5 h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text);
    margin: 0;
    flex: 1;
    min-width: 180px;
}
.section-more-v5 {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.2s;
    white-space: nowrap;
    font-family: var(--font-nav);
}
.section-more-v5:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.section-block--markets .section-more-v5:hover {
    border-color: var(--sec-markets);
    color: var(--sec-markets);
}
.section-block--pharmacy .section-more-v5:hover {
    border-color: var(--sec-pharmacy);
    color: var(--sec-pharmacy);
}
.section-block--electronics .section-more-v5:hover {
    border-color: var(--sec-electronics);
    color: var(--sec-electronics);
}

/* --- Widgets V5 --- */
.home-widget-v5 {
    background: var(--surface);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
}
.home-widget-v5:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.home-widget-v5.wg-currency { border-top-color: var(--sec-currency); }
.home-widget-v5.wg-fuel { border-top-color: var(--sec-fuel); }
.home-widget-v5.wg-stats { border-top-color: var(--sec-markets); }

/* --- Fuel Counter --- */
.fuel-counter {
    font-family: var(--font-counter) !important;
    font-weight: 700;
    letter-spacing: 1px;
}
.wg-fuel .fuel-cheapest {
    color: var(--sec-fuel);
    font-size: 1rem;
}
.wg-fuel .fuel-price-range {
    font-family: var(--font-counter);
    font-weight: 500;
}

/* --- Store Cards V5 --- */
.home-main-v5 .home-store-card {
    background: var(--surface);
    border-radius: 14px;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    border: 2px solid var(--border);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}
.home-main-v5 .home-store-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--brand, var(--primary));
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    transform-origin: left;
}
.home-main-v5 .home-store-card:hover::before { transform: scaleX(1); }
.home-main-v5 .home-store-card:hover {
    border-color: color-mix(in srgb, var(--brand, var(--primary)) 40%, transparent);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}
.home-main-v5 .home-store-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.3s;
}
.home-main-v5 .home-store-card:hover .home-store-logo { transform: scale(1.08); }
.home-main-v5 .home-store-name {
    font-family: var(--font-nav);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
}
.home-main-v5 .home-store-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.home-main-v5 .home-store-sale {
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 700;
}

/* --- Deal Cards V5 --- */
.home-main-v5 .deal-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}
.home-main-v5 .deal-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.section-block--markets .deal-badge { background: var(--sec-markets); }
.section-block--pharmacy .deal-badge { background: var(--sec-pharmacy); }
.section-block--electronics .deal-badge { background: var(--sec-electronics); }

/* --- V5 Mobile Responsive --- */
@media (max-width: 1024px) {
    .home-main-v5 .home-sections-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .home-main-v5 .home-section-card {
        min-height: 130px;
        padding: 20px 12px;
    }
}
@media (max-width: 768px) {
    .hero-banner { padding: 32px 0 28px; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.85rem; margin-bottom: 20px; letter-spacing: 1.5px; }
    .hero-banner .home-hero-stats { gap: 20px; padding: 16px 24px; }
    .hero-banner .hero-stat-num { font-size: 1.5rem; }
    .hero-banner .hero-stat-label { font-size: 0.7rem; }
    .home-main-v5 .home-sections-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 24px 0 16px;
    }
    .home-main-v5 .home-section-card {
        min-height: 115px;
        padding: 18px 12px 16px;
    }
    .home-main-v5 .home-section-card .section-card-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    .home-main-v5 .home-section-card .section-card-body h2 { font-size: 0.92rem; }
    .home-main-v5 .home-section-card .section-card-body p { font-size: 0.72rem; }
    .section-block { padding: 32px 0 24px; }
    .section-header-v5 h2 { font-size: 1.05rem; min-width: 0; }
    .section-header-v5 { gap: 10px; }
    .section-icon-badge { width: 34px; height: 34px; font-size: 15px; }
    .home-main-v5 .home-widgets-grid.three-col {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .home-main-v5 .home-store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .hero-banner { padding: 24px 0 22px; }
    .hero-title { font-size: 1.25rem; }
    .hero-subtitle { font-size: 0.78rem; }
    .hero-banner .home-hero-stats {
        gap: 14px; padding: 14px 16px; border-radius: 14px;
    }
    .hero-banner .hero-stat-num { font-size: 1.2rem; }
    .home-main-v5 .home-sections-grid { gap: 8px; padding: 16px 0 12px; }
    .home-main-v5 .home-section-card {
        min-height: 100px;
        padding: 14px 10px;
        border-radius: 12px;
    }
    .home-main-v5 .home-section-card .section-card-icon {
        font-size: 1.3rem; margin-bottom: 6px;
    }
    .home-main-v5 .home-section-card .section-card-body h2 { font-size: 0.82rem; }
    .home-main-v5 .home-section-card .section-card-body p { font-size: 0.68rem; }
    .home-main-v5 .home-sections-grid .home-section-card:nth-child(5) {
        grid-column: 1 / -1;
    }
    .section-block { padding: 24px 0 20px; }
    .section-header-v5 h2 { font-size: 0.95rem; }
    .home-main-v5 .home-store-card { padding: 14px 10px; }
    .home-main-v5 .home-store-logo { width: 48px; height: 48px; }
    .home-main-v5 .home-store-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
