html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }


/* Store badge colors */
.store-sklavenitis  { background-color: #0d6efd; color: #fff; }
.store-mymarket     { background-color: #fd7e14; color: #fff; }
.store-ab           { background-color: #dc3545; color: #fff; }
.store-masoutis     { background-color: #198754; color: #fff; }
.store-kritikos     { background-color: #6f42c1; color: #fff; }
.store-bazaar       { background-color: #20c997; color: #fff; }
.store-lidl         { background-color: #0050aa; color: #fff; }
.store-galaxias     { background-color: #a4133c; color: #fff; }
.store-marketin     { background-color: #d6336c; color: #fff; }
.store-24hr         { background-color: #e63946; color: #fff; }
.store-kioskys      { background-color: #ff6900; color: #fff; }
.store-xalkiadakis  { background-color: #00963f; color: #fff; }
.store-dailymarket  { background-color: #b5651d; color: #fff; }
.store-synka        { background-color: #00838f; color: #fff; }
.store-biologikoxorio { background-color: #689f38; color: #fff; }

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 3.5rem 1rem;
}
.hero-section .lead { color: #adb5bd; }
.search-main { max-width: 520px; font-size: 1.1rem; }

/* Product cards */
.product-card { transition: transform 0.15s, box-shadow 0.15s; border-radius: 0.6rem; overflow: hidden; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,0.12) !important; }

.product-img {
    height: 160px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 0.5rem;
}
.product-img-placeholder {
    height: 160px;
    background: #f1f3f5;
}
.product-img-placeholder-lg {
    height: 220px;
    background: #f1f3f5;
    width: 100%;
}
.product-detail-img { max-height: 260px; object-fit: contain; }

.product-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.4;
    min-height: 3.7em;
}
.breadcrumb-text {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.75rem;
}

.price-main { font-size: 1.25rem; font-weight: 700; color: #0f5132; }

/* Offers */
.offer-card { position: relative; }
.offer-discount-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1;
}
.price-old { font-size: 0.95rem; }
.price-new { font-size: 1.2rem; }

/* Chart */
.chart-container { position: relative; height: 320px; }

/* Offers jump bar */
.offers-jumpbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #dee2e6;
    padding: 0.55rem 0;
    margin-bottom: 0.25rem;
}
.jump-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: opacity 0.15s;
}
.jump-link:hover { opacity: 0.8; }
.jump-link.jump-empty { opacity: 0.45; }
.jump-link.jump-active .badge { box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor; }
.jump-count { display:inline-flex; align-items:center; justify-content:center; min-width:1.35rem; height:1.35rem; padding:0 0.3rem; border-radius:999px; background:#000; color:#fff; font-size:0.68rem; font-weight:700; line-height:1; }
.jump-count .spinner-border { width: .65rem; height: .65rem; border-width: 2px; color: #fff; }
.store-chip-count { display:inline-flex; align-items:center; justify-content:center; min-width:1.35rem; height:1.35rem; padding:0 0.3rem; border-radius:999px; background:#000; color:#fff; font-size:0.68rem; font-weight:700; line-height:1; }

/* Popular rank badge */
.popular-rank-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    z-index: 1;
}

/* Focus */
.btn:focus, .form-control:focus { box-shadow: 0 0 0 0.15rem rgba(13,110,253,0.35); }

/* Virtual store aisle cards */
.aisle-card {
    border: 1px solid #dee2e6;
    transition: transform .15s, box-shadow .15s;
    color: #212529;
    background: #fff;
}
.aisle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15) !important;
    color: #000;
    border-color: #adb5bd;
}
.aisle-card-img {
    height: 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: .375rem .375rem 0 0;
}
.aisle-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}
.aisle-emoji {
    font-size: 2.5rem;
    opacity: .6;
}
