/* Modern Premium CSS for Lojas Kalbir Home Page */

.home-page main > h1.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Home sections */
.home-highlights-section {
    background-color: var(--bg-light);
    border-top: 1px solid rgba(0, 44, 237, 0.05);
    border-bottom: 1px solid rgba(0, 44, 237, 0.05);
    padding: 48px 0;
}

.home-highlights-no-banner {
    padding-top: 72px;
}

.home-articles-section {
    background-color: #fafafa;
}

.home-section-heading {
    color: var(--primary-dark);
}

.home-article-image {
    height: 200px;
    object-fit: cover;
}

.home-article-title {
    color: #333333;
    font-size: 1.1rem;
}

.home-article-link {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Custom Animations & Transitions */
.hover-effect {
    transition: all 0.35s ease;
}

/* Glassmorphism & Modern Card Styles */
.highlight-card {
    background: #ffffff;
    border: 1px solid rgba(0, 63, 217, 0.08);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.35s ease;
    height: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.highlight-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 45px rgba(0, 63, 217, 0.1);
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 63, 217, 0.02), transparent);
    pointer-events: none;
}

.highlight-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    transition: all 0.35s ease;
}

.highlight-icon-wrapper svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.highlight-card:hover .highlight-icon-wrapper {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 20px rgba(0, 63, 217, 0.2);
}

.highlight-card h2 {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.highlight-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

.stores-section {
    background-color: var(--bg-light);
}

.stores-section-title {
    margin-bottom: 32px;
}

.stores-section-title h2 {
    color: var(--primary-dark);
}

.store-filter-panel {
    max-width: 960px;
    margin: 0 auto 40px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(0, 63, 217, 0.1);
    border-radius: 20px;
    box-shadow: 0 12px 36px rgba(0, 28, 96, 0.07);
}

.store-filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.store-filter-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.store-filter-icon {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: var(--primary-light);
    border-radius: 13px;
    font-size: 1.1rem;
}

.store-filter-heading h3 {
    margin: 0 0 2px;
    color: var(--primary-dark);
    font-size: 1.08rem;
    font-weight: 700;
}

.store-filter-heading p,
.store-filter-results {
    margin: 0;
    color: var(--text-light);
    font-size: 0.88rem;
}

.store-filter-results {
    flex: 0 0 auto;
    padding: 7px 12px;
    background: var(--primary-light);
    border-radius: 999px;
    color: var(--primary-color);
    white-space: nowrap;
}

.store-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.store-filter-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.store-filter-control {
    position: relative;
}

.store-filter-control > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 16px;
    color: var(--primary-color);
    pointer-events: none;
    transform: translateY(-50%);
}

.store-filter-control::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 17px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #667085;
    border-bottom: 2px solid #667085;
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.store-filter-control select {
    width: 100%;
    height: 52px;
    padding: 0 42px;
    appearance: none;
    color: var(--text-dark);
    background: #ffffff;
    border: 1px solid #d7deea;
    border-radius: 12px;
    font: inherit;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-filter-control select:hover {
    border-color: #aab8d0;
}

.store-filter-control select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 63, 217, 0.12);
}

.store-filter-clear,
.store-filter-empty button {
    min-height: 52px;
    padding: 0 18px;
    color: var(--primary-color);
    background: #ffffff;
    border: 1px solid rgba(0, 63, 217, 0.25);
    border-radius: 12px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.store-filter-clear:hover,
.store-filter-clear:focus-visible,
.store-filter-empty button:hover,
.store-filter-empty button:focus-visible {
    background: var(--primary-light);
    border-color: var(--primary-color);
    outline: none;
}

.store-filter-clear i {
    margin-right: 6px;
}

.store-filter-empty {
    width: 100%;
    padding: 48px 20px;
    text-align: center;
}

.store-filter-empty-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: var(--primary-color);
    background: var(--primary-light);
    border-radius: 50%;
    font-size: 1.25rem;
}

.store-filter-empty h3 {
    margin-bottom: 6px;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.store-filter-empty p {
    margin-bottom: 18px;
    color: var(--text-light);
}

.store-filter-empty button {
    min-height: 44px;
}

/* Custom 40px Spaced Lojas Grid Row */
.store-grid-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -20px;
    margin-left: -20px;
}

.store-grid-col {
    padding-right: 20px;
    padding-left: 20px;
    margin-bottom: 40px;
}

/* Premium Lojas Cards */
.store-premium-card {
    background: #ffffff;
    border: 1px solid var(--line-warm);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.35s ease;
}

.store-premium-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.store-premium-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #ffffff;
}

.store-premium-img-wrapper picture {
    display: block;
    width: 100%;
    height: 100%;
}

.store-premium-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.store-premium-card:hover .store-premium-img {
    transform: scale(1.05);
}

.store-premium-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(0, 63, 217, 0.12);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.store-premium-body {
    padding: 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.store-premium-name {
    color: var(--primary-dark);
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
    padding: 12px 14px;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.3;
    overflow-wrap: break-word;
    margin-bottom: 20px;
}

.store-premium-info {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.store-premium-info i {
    margin-top: 4px;
    margin-right: 12px;
    width: 18px;
    font-size: 1.1rem;
}

/* Custom Colored Icons in Card Info */
.store-premium-info .fa-map-marker-alt {
    color: var(--primary-color) !important;
}

.store-premium-info .fa-clock {
    color: var(--text-light) !important;
}

.store-premium-info .fa-whatsapp,
.store-premium-info .fab.fa-whatsapp {
    color: var(--whatsapp-color) !important;
}

/* Solid CTA Button in Card */
.store-premium-btn {
    margin-top: 20px;
    background: var(--primary-color);
    color: #ffffff !important;
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 4px 10px rgba(0, 63, 217, 0.15);
}

.store-premium-btn:hover {
    background: #0005a3;
    box-shadow: 0 6px 16px rgba(0, 6, 211, 0.25) !important;
}

/* Partners Slider */
.partners-section {
    padding: 70px 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.partners-slider {
    display: flex;
    width: max-content;
    animation: partners-scroll 32s linear infinite;
}

.partners-slider:hover {
    animation-play-state: paused;
}

.partner-logo-item {
    width: 160px;
    height: 70px;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin: 0 12px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.partner-logo-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

.partner-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes partners-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Heading indicators */
.modern-title-indicator {
    width: 45px;
    height: 4px;
    background: var(--primary-color);
    margin-top: 12px;
    border-radius: 99px;
}

/* Partners marquee */
.parceiros-marquee-wrapper {
    position: relative;
    width: 100%;
    padding: 20px 0;
    overflow-x: auto;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.parceiros-marquee-wrapper::-webkit-scrollbar {
    display: none;
}

.parceiros-marquee {
    display: flex;
    width: max-content;
}

.parceiro-item {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

.parceiro-content {
    padding-right: 10px;
    padding-left: 10px;
}

.parceiro-img {
    width: auto;
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.parceiro-item:hover .parceiro-img {
    transform: scale(1.1);
}

.parceiros-control-prev,
.parceiros-control-next {
    position: absolute;
    z-index: 10;
    top: 50%;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    opacity: 0.8;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.parceiros-control-prev:hover,
.parceiros-control-next:hover {
    color: #ffffff;
    background: var(--primary-color);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.parceiros-control-prev {
    left: -20px;
}

.parceiros-control-next {
    right: -20px;
}

/* Depoimentos explicit bg fix */
#depoimentos {
    background-color: var(--bg-light) !important;
}

.store-grid-col[hidden],
.store-filter-empty[hidden],
.store-filter-clear[hidden] {
    display: none !important;
}

@media (max-width: 767.98px) {
    #parceirosContainer {
        padding-right: 22px;
        padding-left: 22px;
    }

    .parceiro-item {
        padding-right: 7px;
        padding-left: 7px;
    }

    .parceiro-content {
        padding-right: 7px;
        padding-left: 7px;
    }

    .parceiros-control-prev {
        left: 0;
    }

    .parceiros-control-next {
        right: 0;
    }

    .partner-logo-item {
        width: 130px;
        margin-right: 8px;
        margin-left: 8px;
    }

    .stores-section-title {
        margin-bottom: 24px;
    }

    .stores-section-title h2 {
        font-size: clamp(1.85rem, 8vw, 2.25rem);
        line-height: 1.12;
    }

    .stores-section-title p {
        max-width: 34rem;
        margin-right: auto;
        margin-left: auto;
        font-size: 0.94rem;
        line-height: 1.55;
    }

    .store-filter-panel {
        margin-bottom: 28px;
        padding: 18px;
        border-radius: 16px;
    }

    .store-filter-panel-header {
        display: block;
        margin-bottom: 18px;
    }

    .store-filter-heading {
        align-items: flex-start;
    }

    .store-filter-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .store-filter-heading p {
        line-height: 1.45;
    }

    .store-filter-results {
        display: inline-block;
        margin-top: 14px;
    }

    .store-filter-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .store-filter-control select {
        height: 54px;
        font-size: 1rem;
    }

    .store-filter-clear {
        width: 100%;
    }

    .store-grid-row {
        margin-right: 0;
        margin-left: 0;
    }

    .store-grid-col {
        width: 100%;
        margin-bottom: 22px;
        padding-right: 0;
        padding-left: 0;
    }

    .store-premium-card {
        border-radius: 16px;
    }

    .store-premium-img-wrapper {
        height: 200px;
    }

    .store-premium-body {
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-filter-control select,
    .store-filter-clear,
    .store-filter-empty button {
        transition: none;
    }
}
