/**
 * SmileTech premium shell — Electro-inspired header/search UX,
 * yellow + anthracite identity (not a clone of Electro or other ShopyIA stores).
 */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ── Kill mauve / purple / chocolate leftovers ── */
.badge-custom,
.product-badge.badge-custom {
    background: var(--clr-secondary) !important;
    color: #fff !important;
}

.bg-cream,
.section-padding.bg-cream {
    background: var(--clr-bg-alt) !important;
}

/* ── Top info bar ── */
.st-topbar {
    background: linear-gradient(90deg, #0B0F14 0%, #1A1F27 50%, #0B0F14 100%);
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--ff-body);
    font-size: 0.8125rem;
    border-bottom: 1px solid rgba(255, 209, 0, 0.18);
}

.st-topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 38px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
    flex-wrap: wrap;
}

.st-topbar-left,
.st-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.st-topbar a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
}

.st-topbar a:hover {
    color: var(--clr-primary);
}

.st-topbar .st-topbar-sep {
    opacity: 0.25;
}

.st-topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--clr-primary);
    font-weight: 600;
}

.st-topbar select {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    padding: 0.15rem 0.35rem;
}

.st-topbar select option {
    color: #111;
}

/* Hide legacy top-bar when upgraded */
.top-bar.st-topbar-legacy-hidden {
    display: none !important;
}

/* ── Premium sticky header ── */
.site-header.st-header {
    background: #fff !important;
    border-bottom: none;
    box-shadow: 0 8px 28px rgba(11, 15, 20, 0.08);
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: box-shadow 0.25s ease, padding 0.25s ease;
}

.site-header.st-header.scrolled {
    box-shadow: 0 10px 32px rgba(11, 15, 20, 0.14);
}

.site-header.st-header .header-main {
    padding: 1.1rem 0;
    gap: 1.25rem;
    align-items: center;
}

.site-header.st-header.scrolled .header-main {
    padding: 0.65rem 0;
}

.site-header.st-header .header-logo .st-brand-logo {
    height: 58px;
    max-width: 220px;
    transition: height 0.25s ease;
}

.site-header.st-header.scrolled .header-logo .st-brand-logo {
    height: 44px;
}

/* Search — Electro-like category + input + button */
.site-header.st-header .header-search {
    flex: 1;
    max-width: 640px;
    position: relative;
}

.st-search {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 2px solid var(--clr-primary);
    border-radius: 10px;
    overflow: visible;
    background: #fff;
    box-shadow: 0 2px 0 rgba(255, 209, 0, 0.35);
    position: relative;
}

.st-search:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 209, 0, 0.28);
}

.st-search-cat {
    flex: 0 0 auto;
    max-width: 170px;
    border: none;
    border-right: 1px solid var(--clr-border);
    background: var(--clr-bg-alt);
    color: var(--clr-secondary);
    font-family: var(--ff-body);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0 0.75rem;
    outline: none;
    cursor: pointer;
    border-radius: 8px 0 0 8px;
}

.st-search .search-input {
    flex: 1;
    min-width: 0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.9375rem !important;
    background: #fff !important;
    border-radius: 0 !important;
}

.st-search .search-btn {
    flex-shrink: 0;
    min-width: 54px;
    border: none !important;
    background: linear-gradient(180deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%) !important;
    color: var(--clr-dark) !important;
    font-size: 1.1rem;
    border-radius: 0 8px 8px 0 !important;
    transition: filter 0.2s ease, transform 0.15s ease;
}

.st-search .search-btn:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
}

.st-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(11, 15, 20, 0.16);
    z-index: 1200;
    max-height: 420px;
    overflow-y: auto;
    display: none;
}

.st-search-dropdown.is-open {
    display: block;
    animation: stDropIn 0.18s ease;
}

@keyframes stDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.st-search-group-title {
    padding: 0.65rem 1rem 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    background: var(--clr-bg-alt);
    border-bottom: 1px solid var(--clr-border-light);
}

.st-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    background: #fff;
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid var(--clr-border-light);
    transition: background 0.15s ease;
}

.st-search-item:hover {
    background: rgba(255, 209, 0, 0.12);
}

.st-search-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--clr-bg-alt);
}

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

.st-search-item .meta strong {
    display: block;
    font-size: 0.875rem;
    color: var(--clr-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-search-item .meta small {
    color: var(--clr-text-light);
    font-size: 0.75rem;
}

.st-search-item .price {
    font-weight: 700;
    color: var(--clr-secondary);
    font-size: 0.875rem;
    white-space: nowrap;
}

.st-search-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--clr-dark);
    color: var(--clr-primary);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
}

.st-search-badge.is-service {
    background: var(--clr-primary);
    color: var(--clr-dark);
}

/* Header actions */
.site-header.st-header .header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.site-header.st-header .header-action-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 64px;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    color: var(--clr-secondary);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    position: relative;
}

.site-header.st-header .header-action-item i {
    font-size: 1.25rem;
    line-height: 1;
}

.site-header.st-header .header-action-item:hover {
    background: rgba(255, 209, 0, 0.15);
    color: var(--clr-dark);
    transform: translateY(-1px);
}

.site-header.st-header .header-action-item.is-repair {
    background: var(--clr-dark);
    color: var(--clr-primary);
}

.site-header.st-header .header-action-item.is-repair:hover {
    background: #000;
    color: var(--clr-primary);
}

.site-header.st-header .header-action-item .badge-count {
    position: absolute;
    top: 2px;
    right: 8px;
}

/* Nav bar polish */
.nav-bar.st-navbar {
    background: var(--clr-bg-alt) !important;
    border-bottom: 1px solid var(--clr-border);
}

.nav-bar.st-navbar .st-all-cats-btn {
    background: linear-gradient(180deg, #FFD100, #E6BC00);
    box-shadow: 0 2px 8px rgba(255, 209, 0, 0.35);
    border-radius: 8px;
}

/* Category sidebar — Electro-like permanent block */
.st-cat-sidebar {
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(11, 15, 20, 0.06);
    overflow: hidden;
}

.st-cat-sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--clr-dark);
    color: #fff !important;
    border-bottom: none !important;
    padding: 0.85rem 1rem !important;
    font-family: var(--ff-heading);
    letter-spacing: 0.02em;
}

.st-cat-sidebar-title::before {
    content: '☰';
    color: var(--clr-primary);
    font-weight: 700;
}

.st-cat-link .st-cat-ico {
    width: 1.25rem;
    text-align: center;
    color: var(--clr-text-muted);
}

.st-cat-link:hover .st-cat-ico,
.st-cat-link.is-active .st-cat-ico {
    color: var(--clr-dark);
}

/* Hero dual CTAs + dark tech overlay */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.hero-cta-group .btn-outline-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 1.35rem;
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    background: transparent;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-cta-group .btn-outline-hero:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: var(--clr-dark);
}

.hero-slide .hero-overlay {
    background: linear-gradient(105deg, rgba(11, 15, 20, 0.82) 0%, rgba(11, 15, 20, 0.45) 55%, rgba(11, 15, 20, 0.25) 100%) !important;
    opacity: 1 !important;
}

/* Reviews section */
#cmsTestimonialsSection {
    background: linear-gradient(180deg, #0B0F14 0%, #1A1F27 100%);
    color: #fff;
}

#cmsTestimonialsSection .section-header .subtitle {
    color: var(--clr-primary);
}

#cmsTestimonialsSection .section-header h2,
#cmsTestimonialsSection .divider {
    color: #fff;
}

#cmsTestimonialsSection .divider {
    background: var(--clr-primary);
}

#cmsTestimonialsSection .testimonial-card.cms-testimonial {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
}

#cmsTestimonialsSection .cms-testimonial-author .meta strong {
    color: #fff;
}

#cmsTestimonialsSection .cms-testimonial-author .meta span {
    color: rgba(255, 255, 255, 0.65);
}

#cmsTestimonialsSection .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.35);
}

#cmsTestimonialsSection .swiper-pagination-bullet-active {
    background: var(--clr-primary);
}

/* Brands */
.st-brands-section .st-brand-chip {
    border-radius: 10px;
    min-height: 56px;
}

/* Cart / checkout summary — always light for readability */
.cart-summary,
.order-summary-card,
.order-summary-card.cart-summary {
    background: #fff !important;
    color: var(--clr-text) !important;
    border: 1px solid var(--clr-border) !important;
    box-shadow: 0 12px 32px rgba(11, 15, 20, 0.08);
}

.cart-summary h3,
.order-summary-card h3,
.checkout-total-final,
.cart-summary-row.total {
    color: var(--clr-dark) !important;
}

.checkout-line-item,
.checkout-total-row,
.cart-summary-row {
    color: var(--clr-text) !important;
}

.checkout-section .btn-outline {
    color: var(--clr-dark);
    border-color: var(--clr-border);
    background: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .st-search-cat {
        display: none;
    }

    .site-header.st-header .header-action-item span:not(.badge-count) {
        display: none;
    }

    .site-header.st-header .header-action-item {
        min-width: 44px;
    }
}

@media (max-width: 767px) {
    .st-topbar .st-topbar-left > a:nth-child(n+3),
    .st-topbar .st-hide-xs {
        display: none;
    }

    .site-header.st-header .header-logo .st-brand-logo {
        height: 42px;
    }

    .site-header.st-header .header-search {
        display: none !important;
    }
}
