:root {
    --primary-color: #fc222a;
    --primary-hover: #e01e25;
    --secondary-color: #64748b;
    --success-color: #059669;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --light-bg: #f1f5f9;
    --card-bg: #ffffff;

    --teal-800: #00695C;
    --blue-gray-500: #607D8B;
    --blue-gray-600: #546E7A;

    --border-color: #28242d;
    --text-primary: #28242d;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --badge-hot: #ff6b35;
    --badge-new: #4ade80;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --color: #3c3163;
    --transition-time: 0.5s;
}

* {
    box-sizing: border-box;
}

body {
    /** background-color: var(--light-bg); */
    background-color: #f4f2f2;
    font-family: Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
}

.station-prices-page {
    position: relative;
    width: 100%;
    min-height: calc(100dvh - 60px);
    background: #eef2f3;
}

.station-prices-navbar {
    height: 60px;
    padding: 0 0.75rem;
}

.station-prices-navbar .container-fluid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0;
}

.station-prices-navbar__title {
    flex: 1 1 auto;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.station-prices-navbar__menu {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
    font-size: 2rem;
    line-height: 1;
}

@media (max-width: 500px) {
    .station-prices-navbar .station-prices-navbar__logo {
        display: flex;
        width: 40px;
        margin-right: 0.5rem;
    }

    .station-prices-navbar .station-prices-navbar__logo .titulo {
        display: none;
    }

    .station-prices-navbar .station-prices-navbar__logo .navbar-brand-mark {
        width: 40px;
        height: 40px;
        margin-right: 0;
    }
}

.station-prices-gps {
    width: 50px !important;
    height: 50px !important;
    font-size:  35px !important;
}

.station-prices-toolbar {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem;
    background: transparent;
}

.station-prices-source-link {
    overflow-wrap: anywhere;
}

.station-prices-fuels {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    max-width: 100%;
    padding: 0.4rem 0.4rem 0.4rem 0.55rem;
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    color: var(--text-primary);
    font: inherit;
}

.station-prices-map-shell {
    --station-prices-map-control-bottom: 0px;
    position: relative;
    width: 100%;
    height: calc(100dvh - 60px);
    min-height: 520px;
}

.station-prices-map {
    width: 100%;
    height: 100%;
}

.station-prices-map .leaflet-bottom.leaflet-right {
    bottom: calc(var(--station-prices-map-control-bottom) + env(safe-area-inset-bottom) + 10px);
}

.station-prices-top-messages {
    position: absolute;
    top: 72px;
    left: 50%;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    width: max-content;
    max-width: calc(100vw - 24px);
    transform: translateX(-50%);
}

.station-prices-search-area {
    padding: 0.55rem 0.8rem;
    background: rgba(40, 36, 45, 0.92);
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
    font-weight: 400;
}

.station-prices-info {
    position: absolute;
    left: 10px;
    top: 15px;
    z-index: 999 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: #ffffff;
    color: #28242d;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    box-shadow: none;
    font-size: 1rem;
}

.station-prices-info:hover,
.station-prices-info:focus {
    color: var(--text-primary);
}

.station-prices-gps {
    position: absolute;
    right: 10px;
    bottom: calc(var(--station-prices-map-control-bottom) + 96px + 10px + env(safe-area-inset-bottom));
    z-index: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    background: #ffffff;
    color: #28242d;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    box-shadow: none;
}

.station-prices-gps:disabled {
    color: #94a3b8;
}

.station-prices-status {
    width: max-content;
    max-width: 100%;
    padding: 0.55rem 0.8rem;
    background: rgba(40, 36, 45, 0.92);
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.95rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.station-price-pin {
    background: transparent;
    border: 0;
}

.station-user-location {
    background: transparent;
    border: 0;
}

.station-user-location__dot {
    display: block;
    width: 18px;
    height: 18px;
    background: #2563eb;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.22), 0 2px 8px rgba(0, 0, 0, 0.28);
}

.station-price-pin__label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 25px;
    padding: 0 0.35rem;
    color: #ffffff;
    background: var(--pin-color);
    border: 2px solid #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
    font-weight: 800;
    line-height: 1;
}

.station-price-pin__price {
    display: block;
}

.station-price-pin__label::after {
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 0;
    height: 0;
    content: "";
    border-top: 8px solid var(--pin-color);
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
    transform: translateX(-50%);
}

.station-price-pin__label--cheap {
    --pin-color: #087f5b;
}

.station-price-pin__label--low {
    --pin-color: #046597;
}

.station-price-pin__label--medium {
    --pin-color: #fbbf24;
    color: #28242d;
}

.station-price-pin__label--high {
    --pin-color: #d97706;
}

.station-price-pin__label--expensive {
    --pin-color: #dc2626;
}

.station-prices-map .leaflet-popup-content .station-price-popup-directions {
    display: block;
    margin-top: 0.65rem;
    padding: 0.4rem 0.65rem;
    background: #2f3438;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.station-prices-map .leaflet-popup-content .station-price-popup-directions:hover,
.station-prices-map .leaflet-popup-content .station-price-popup-directions:focus {
    background: #24282c;
    color: #ffffff;
}

@media (max-width: 768px) {
    .station-prices-toolbar {
        gap: 0.5rem;
    }

    .station-prices-map-shell {
        height: calc(100vh - 60px);
        height: calc(100dvh - 60px);
        min-height: 0;
    }
}

@media (max-height: 579px) {
    .station-prices-map-shell {
        min-height: 0;
    }
}

.navbar {
    background-color: #424242 !important;
    box-shadow: var(--shadow-sm);
    color:white;
    padding-left: 0.3em;
    padding-bottom: 5px;
}

.navbar-main-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
    
}


.navbar-brand {
    margin: 0 !important;
    outline: none;
}

.navbar-search-container {
    width: 100%;
    padding: 0;
    margin: 0 3px 0 7px !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.navbar-secondary-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.navbar-secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: white;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0.2rem 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.navbar-secondary-link i {
    flex: 0 0 auto;
    font-size: 1rem;
}

.navbar-secondary-link__emoji {
    flex: 0 0 auto;
    font-size: 1rem;
}

.navbar-secondary-link:hover,
.navbar-secondary-link:focus {
    color: #facc15;
}

.navbar-secondary-link.dropdown-toggle::after {
    margin-left: 0.25rem;
}

.navbar-secondary-links .dropdown-menu {
    min-width: 18rem;
}



.navbar-telegram-button {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    border-color: white;
    color: #168acd;
    background: transparent;
    text-decoration: none;
}

.navbar-telegram-button .telegram-card__icon {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    color: #168acd;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
}

.navbar-telegram-button .telegram-card__icon::before {
    /*color: #168acd;*/
    color: white !important;
}

.more-resources-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(252, 34, 42, 0.2);
}

.more-resources-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 34, 42, 0.3);
}

.navbar-collapse {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    min-width: 250px;
    height: 100vh;
    z-index: 1000;
}

.navbar-collapse.show {
    display: block;
}

.navbar-brand {
    padding: 0 !important;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    color: var(--primary-hover) !important;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    transition: var(--transition-fast);
    border-radius: 6px;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background: rgba(252, 34, 42, 0.05);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(252, 34, 42, 0.1);
}

.navbar-light .navbar-nav .nav-item {
    margin-right: 0.25rem;
}


.navbar-collapse .navbar-nav {
    padding: 0.5rem;
}

.navbar-collapse .navbar-nav .nav-item {
    margin: 0;
}

.navbar-collapse .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    display: block;
}


.search-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);

    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 999;
    padding: 1.75rem 0;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    border-radius: 30px;
    border: 3px solid #ffd000;
    background: linear-gradient(90deg, #ffffff 0%, #fffdf2 68%, #ffe56b 100%);
    box-shadow: 0 0 0 2px var(--primary-color), 0 5px 0 #28242d, 0 9px 18px rgba(0, 0, 0, 0.28);
    transition: var(--transition-smooth);
}

/*.search-container:focus-within {*/
/*    border-color: var(--primary-color);*/
/*    box-shadow: 0 0 0 3px #ffd000, 0 5px 0 #28242d, 0 9px 22px rgba(252, 34, 42, 0.42);*/
/*}*/

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
    background: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 4px;
    transition: var(--transition-fast);
}

.search-icon:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.search-input {
    margin-left: 14px;
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    box-shadow: none !important;
    padding: 5px 68px 5px 4px;
    font-size: 1rem;
    font-weight: 700;
}

.search-input::placeholder {
    color: #514b3f;
    opacity: 1;
}

#abrir-buscador-amazon {
    background: #FFA500;
    color: white;
 }

.navbar-amazon-button {

    padding: 0 8px;
    height: 32px;

    border: solid 1px black;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    display: flex;
    align-items: center;
    background: transparent;
}

#abrir-buscador-amazon:hover {
    background: var(--primary-hover);
}

.footer {
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    background-color: #424242;
    color: white;
}

.footer-brand {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

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

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-legal-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

.footer-menu-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-menu-link:hover {
    color: var(--primary-color);
}

.footer-menu li {
    display: block;
}

.search-btn {
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 62px;
    height: 62px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: none;
    z-index: 1;
    animation: search-mascot-attention 0.65s ease-in-out 0.35s 2 alternate;
}

.search-btn:hover {
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%) scale(1.1) rotate(-6deg);
}

.search-btn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.35));
}

.search-btn:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 2px;
    border-radius: 50%;
}

@keyframes search-mascot-attention {
    from {
        transform: translateY(-50%) scale(1) rotate(0);
    }
    to {
        transform: translateY(-50%) scale(1.13) rotate(-7deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .search-btn {
        animation: none;
    }
}



.results-header {
    padding: 1.5rem 0 1rem 0;

    margin-bottom: 1.5rem;
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.alert {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.intro-section {
    background: var(--card-bg);

    box-shadow: var(--shadow-sm);
}

.intro-section .text-center {
    text-align: left;
}

.intro-section p,
.intro-section ul,
.intro-section li,
.intro-section a {
    color: var(--text-primary);
}

.intro-section a:hover {
    color: var(--primary-color);
}

.text-center.py-5 {
    color: var(--text-muted);
    padding: 4rem 1rem !important;
}

.text-center.py-5 i {
    color: var(--text-muted);
    opacity: 0.5;
}


body {
    font-size: 14px;
}

.navbar-brand {
    font-size: 1.2rem;
}

.search-section {
    padding: 1.25rem 0;
}


.navbar-main-content:has(.a-la-izq) {
    align-items: center;
    justify-content: space-between;
}

.a-la-izq {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.navbar-brand-mark {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin-right: 0.35rem;
    object-fit: contain;
}

.a-la-izq .logo {
    height: 56px;
    width: 56px;

}

.a-la-izq .titulo {
    display: inline-block;
    padding: 0.5em 1em;
    font-size: 3em;
}

.logo {
    width: 100px;
    height: 100px;
    background-image: url('/images/web-app-manifest-192x192-f0965ec7976b71c8ebeefb1fdeb76ddb.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

}

.titulo {
    background-image: url('/images/titulo_w600-362d62cb29222480fb8ecabc4fa9ed9c.png');
    /* background-image: url('/images/favicon-96x96-2fcc23d8b676d5e64ce60e34df6958fd.png'); */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.station-prices-menu-title-logo .titulo {
    width: 200px;
    height: 56px;
    padding: 0;
    background-image: url('/images/titulo_w600_black-f2639c3613b9c25650d28a4cb3fa90df.png');
}

.logo-texto {
    background-image: url('/images/web-app-manifest-192x192-f0965ec7976b71c8ebeefb1fdeb76ddb.png');
    height: 100px;
}



@media (display-mode: standalone) {
    .navbar-main-content:has(.a-la-izq) .navbar-search-container {
        height: 50px !important;
    }
}

.card.external-link-card-card {
    width: 12em !important;
}

.external-links-section {
    padding-top: 1rem;

}

.external-links-section h3 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.external-link-card-wrapper{
    position: relative;
}

.external-link-card {
    text-decoration: none;
    display: block;
    transition: var(--transition-smooth);
    height: 100%;
}

.external-link-card .card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    background: var(--card-bg);
    height: 100%;
}

.external-link-card:hover .card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.external-link-card .card-body {
    padding: 0;
    padding-bottom: 1rem;
}

.external-link-card i {
    color: var(--primary-color);
}

.external-link-card .card-title {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.external-link-card .card-text {
    font-size: 0.75rem;
    margin-bottom: 0;
    color: var(--text-muted);
}

.external-link-card:hover .card-title {
    color: var(--primary-color);
}

.external-links-section h3 {
    font-size: 1.25rem;
}

.external-link-card i {
    font-size: 1.25rem !important;
}

.card.hover-effect {
    transition: var(--transition-smooth);
}

.card.hover-effect:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.post-content-1 {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    
}

/* =======================================
   ESTILOS DE TARJETA DE OFERTA (MEJORADOS)
   ======================================= */

.offer-card {
    background: var(--card-bg);
    width: 100%;
    margin-right: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    padding: 0;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.offer-card__carousel-engine {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.offer-card__carousel-engine-track {
    display: flex;
    height: 100%;
}

.offer-card__carousel-engine-slide {
    flex: 0 0 100%;
    min-width: 0;
}

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

.offer-card__carousel-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 18px;
    height: 47px;
    padding: 0;
    border : 0;
    border-radius: 25px 0 0 25px;
    /*background: #C4E5FB;*/
    background: #f4f2f2;
    color: #ffffff;
    transform: translateY(-50%);
    transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.offer-card__carousel-control.is-hidden {
    display: none;
}

.offer-card__carousel-control--left {
    left: 0;
    border-radius: 0 25px 25px 0;
}

.offer-card__carousel-control--right {
    right: 0;
}

.offer-card__carousel-control span {
    display: none;
}

.offer-card__carousel-control::before,
.offer-card__carousel-control::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    height: 14px;
    background: currentColor;
    border-radius: 999px;
    transform-origin: center bottom;
}

.offer-card__carousel-control::before {
    top: 10px;
}

.offer-card__carousel-control::after {
    bottom: 10px;
    transform-origin: center top;
}

.offer-card__carousel-control--left::before {
    left: calc(50% - 4px);
    transform: translateX(-50%) rotate(16deg);
    color: #164B79;
}

.offer-card__carousel-control--left::after {
    left: calc(50% - 4px);
    transform: translateX(-50%) rotate(-16deg);
    color: #164B79;
}

.offer-card__carousel-control--right::before {
    left: calc(50% + 4px);
    transform: translateX(-50%) rotate(-16deg);
    color: #164B79;
}

.offer-card__carousel-control--right::after {
    left: calc(50% + 4px);
    transform: translateX(-50%) rotate(16deg);
    color: #164B79;
}

.offer-card--carousel-placeholder .offer-card__title-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.offer-card--carousel-placeholder .offer-card__title-row h2 {
    color: inherit;
}

.offer-card--carousel-placeholder .offer-card__title-row a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    color: #212529;
    text-decoration: none;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.offer-card--carousel-placeholder .offer-card__title-row a::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.offer-card--carousel-placeholder .offer-card__title-row a:hover,
.offer-card--carousel-placeholder .offer-card__title-row a:focus {
    color: #212529;
    background-color: #adb5bd;
    border-color: #adb5bd;
}

.offer-card--carousel-placeholder .offer-card__content {
    justify-content: end;
    display: flex;
    align-items: flex-end;
}

.offer-card--carousel-placeholder .offer-card__price-row,
.offer-card--carousel-placeholder .offer-card__cta-row
{
    display: none;
}

.telegram-card {
    height: 150px;
    padding: 0.75rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
    background: white;
    border: 2px solid #229ed9;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.telegram-card__icon {
    margin-bottom: 0.25rem;
    color: #229ed9;
    font-size: 1.5rem;
}

.telegram-card h2 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
}

.telegram-card p {
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    line-height: 1.2;
}

.telegram-card a {
    padding: 0.35rem 0.75rem;
    color: white;
    background: #229ed9;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.home-header {
    position: relative;
    background: transparent;
}

.home-header__content {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.home-header__icon {
    flex: 0 0 auto;
    color: var(--primary-color);
    font-size: 1.6rem;
    line-height: 1;
}

.home-header__title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
}

.home-header__subtitle {
    margin: 0.15rem 0 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.3;
}

.telegram-title {
    position: absolute;
    top: 0;
    right: 0;
    text-align: center;
}

.telegram-title a {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    color: white;
    background: #229ed9;
    border-radius: 0 0 8px 8px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.offer-card__image {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    overflow: hidden;
}


.offer-card__image.product-page {
    flex: 0 0 300px;
    width: 300px;
    height: 300px;
}

.offer-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-card__content a {
    text-decoration: none !important;
}

.offer-card__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1rem 0.8rem 1rem;
}

.offer-card__title-row h2 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.offer-card__mobile-title {
    display: none;
}

.offer-card__price-row {
    line-height: 1;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.offer-card__shop {
    margin-left: 10px;
    padding: 0.22rem 0.45rem;
    border: 1px solid rgba(5, 150, 105, 0.28);
    border-radius: 4px;
    background: rgba(5, 150, 105, 0.12);
    color: var(--success-color);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.offer-card.product-page .offer-card__price-row {
    margin: 0.75rem 0;
}

.previous-price {
    margin-left: 6px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: line-through;
}



.current-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--primary-color);
}



.offer-card__meta_links {
/*    display: flex;*/
/*    justify-content: flex-end;*/
/*    align-items: center;*/
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.offer-card__date-compact {
    display: none;
}

.offer-card__cta-row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.offer-card__cta-row.product-page {
    width: 100%;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}

.offer-card__cta-row.product-page a {
    order: 2;
    flex: 0 0 auto;
    align-self: flex-start;
    width: 50%;
    text-align: center;
}

.offer-card__cta-row.product-page  {
    order: 1;
    margin-top: 0;
}



.offer-card__cta-row a {
    text-decoration: none;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    transition: var(--transition-fast);
    text-transform: uppercase;
    font-size: 0.7rem;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.offer-card__cta-row a:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.products-section-search{
    padding-top: 15px;
    min-height: 80vh;
}


.no-grid-template-columns {
    grid-template-columns: unset !important;
}

.cards-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0 0 1rem 0;
}

#products-container {
    margin-bottom: 0;
}

.product-detail__description {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    padding: 1.5rem;
    min-height: 300px;
}

.product-detail__description h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.product-detail__description p {
    margin-bottom: 0;
    white-space: pre-line;
}

@media (max-width: 768px) {

    .offer-card__date-full {
        display: none;
    }

    .offer-card__date-compact {
        display: inline;
    }

    .offer-card {
        width: 100%;
        margin-right: 0;
    }

    .offer-card__image {
        flex-basis: 120px;
    }

    .offer-card__content {
        min-height: 150px;
    }

    .offer-card.product-page {
        flex-wrap: wrap;
    }

    .offer-card.product-page .offer-card__mobile-title {
        display: block;
        flex: 0 0 100%;
        padding: 1rem 1rem 0;
    }

    .offer-card.product-page .offer-card__image.product-page {
        flex: 0 0 120px;
        width: 120px;
        height: 120px;
    }

    .offer-card.product-page .offer-card__content .offer-card__title-row {
        display: none;
    }
}

.open-all-section {
    /* margin-left: auto; */
    margin-left: 14px;
}


.modal-content-footer-menu {
    background-color: #fefefe;
    position: fixed;
    top: var(--navbar-offset, 0px);
    left: 0;
    width: min(320px, 86vw);
    height: calc(100vh - var(--navbar-offset, 0px));
    margin: 0;
    padding: 25px;
    border: 0;
    border-right: 1px solid #d1d5db;
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
}

#footer-menu-modal-overlay.is-open .modal-content-footer-menu {
    transform: translateX(0);
}

@media (max-width: 991.98px) {
    .modal-content-footer-menu {
        width: 100%;
        max-width: none;
    }
}

.close-btn-footer-menu {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 14px;
    right: 25px;
}
.close-btn-footer-menu:hover,
.close-btn-footer-menu:focus {
    color: #000;
    text-decoration: none;
}
.modal-content-footer-menu h3 {
    margin-top: 0;
    margin-right: 36px;
}
.modal-content-footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.modal-content-footer-menu li {
    margin-bottom: 10px;
}
.modal-content-footer-menu .navbar-menu-heading {
    margin-top: 22px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.modal-content-footer-menu a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
    display: block;
}
.modal-content-footer-menu a:hover {
    color: #007bff;
}

.me-20px {
    margin-right: 20px !important;
}

.hamburger-background {
    background-color: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    color: white;
    border-radius: 5px;
    width: 60px;
    height: 60px;
}

#filter-chips-container {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
}

.filter-chips-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 7px 6px 7px;
    background-color: #f4f5f7;
}

.filter-chips-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1 1 auto;
}

.filter-chips-track::-webkit-scrollbar {
    display: none;
}

.filter-chips-arrow {
    border: none;
    background: transparent;
    color: #1f2937;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
}

.filter-chips-arrow:hover {
    background-color: rgba(15, 23, 42, 0.08);
}

.filter-chips-arrow.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.filter-chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    height: 30px;
    padding: 0.15rem 0.65rem 0.15rem 0.3rem;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #d5dae1;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.filter-chip i {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #475569;
    background: #eef1f5;
    border-radius: 50%;
    font-size: 0.85rem;
}

.filter-chip:hover,
.filter-chip:focus-visible {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-chip.is-active {
    color: #ffffff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(252, 34, 42, 0.22);
}

.filter-chip.is-active i {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.filter-chips-arrow.is-hidden {
    display: none;
}

@media (max-width: 768px) {
    .navbar {
        padding-bottom: 2px;
    }



    .navbar-secondary-link   {
        justify-content: center;
        flex: 1 0 auto;
        padding: 10px 0 7px 0;
        font-size: 0.78rem;
        line-height: 1;
        white-space: nowrap;
    }

    .navbar-secondary-link:last-child {
        border-right: 0;
    }

    .navbar-secondary-link i {
        font-size: 0.95rem;
    }

    .filter-chips-bar::after {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 18px;
        content: "";
        pointer-events: none;
        background: linear-gradient(90deg, rgba(244, 245, 247, 0), #f4f5f7);
    }
}

.page-nav-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 10px;
    border-radius: 0;
    background: rgba(33, 37, 41, 0.94);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.page-nav-bar__center {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.page-nav-bar__status {
    font-size: 0.9rem;
    font-weight: 600;
}

.page-nav-bar__button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: #495057;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-nav-bar__button:hover {
    background: #6c757d;
}

.page-nav-bar__button:disabled {
    background: #343a40;
    opacity: 0.45;
}

.form-control:focus {
    background-color: transparent;
}

.navbar-in {
    margin-right: 7px;
    margin-left: 7px;
    padding-left: 0;
    padding-right: 0;
}