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; }

/* 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 { font-size: 0.72rem; font-weight: 600; color: #495057; }
.jump-count .spinner-border { width: .75rem; height: .75rem; border-width: 2px; }

/* 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); }
