:root {
    --bg: #FCF9F9;
    --surface: #FFFFFF;
    --surface-alt: #F8EEEC;
    --text: #1E1412;
    --text-muted: #78635E;
    --border: #E4DAD8;
    --primary: #F98168;
    --primary-hover: #F76041;
    --accent: #3B2686;
    --dark-band: #1F173C;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
    color: var(--text);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Orbit', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 400;
    line-height: 1.25;
    color: inherit;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, opacity 0.2s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    transition: all 0.2s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

.cookieConsentCard {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    width: calc(100% - 48px);
    max-width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 16px 36px rgba(31, 23, 60, 0.12);
}

.cookieConsentHeader {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cookieConsentDot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    display: inline-block;
}

.cookieConsentTitle {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.cookieConsentText {
    font-size: 0.825rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 16px 0;
}

.cookieConsentPolicyLink {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

.cookieConsentActions {
    display: flex;
    gap: 10px;
}

.cookieConsentBtn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.825rem;
    font-weight: 600;
    text-align: center;
}

.cookieConsentBtnPrimary {
    background-color: var(--primary);
    color: #111111;
}

.cookieConsentBtnPrimary:hover {
    background-color: var(--primary-hover);
}

.cookieConsentBtnSecondary {
    background-color: var(--surface-alt);
    color: var(--text);
    border: 1px solid var(--border);
}

.cookieConsentBtnSecondary:hover {
    background-color: #f1deda;
}

.cookieConsentModalWrapper {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cookieConsentBackdrop {
    position: fixed;
    inset: 0;
    background: rgba(31, 23, 60, 0.6);
    backdrop-filter: blur(4px);
}

.cookieConsentModalBox {
    position: relative;
    z-index: 10;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 24px 48px rgba(31, 23, 60, 0.2);
    overflow: hidden;
}

.cookieConsentModalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}

.cookieConsentModalTitle {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.cookieConsentCloseBtn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.cookieConsentCloseBtn:hover {
    background-color: var(--surface-alt);
    color: var(--text);
}

.cookieConsentModalBody {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 65vh;
    overflow-y: auto;
}

.cookieConsentModalDesc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 4px 0;
}

.cookieConsentCategoryItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    gap: 12px;
}

.cookieConsentCategoryMeta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cookieConsentCategoryName {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.cookieConsentCategoryExplain {
    font-size: 0.775rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.cookieConsentCheckbox {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.cookieConsentModalFooter {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    h2 {
        font-size: clamp(1.4rem, 4vw, 1.85rem);
    }

    h3 {
        font-size: clamp(1.15rem, 3.5vw, 1.4rem);
    }

    h4,
    h5,
    h6 {
        font-size: clamp(1rem, 3vw, 1.15rem);
    }

    a,
    p,
    span {
        overflow-wrap: break-word;
        word-break: keep-all;
    }

    .cookieConsentCard {
        bottom: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 18px 20px;
    }
}

/* ===== header_section ===== */
header#header {
    overflow: hidden;
}

.js-mobile-menu.open {
    max-height: 320px;
}

/* ===== hero_section ===== */
#hero {
    overflow: hidden;
}

#hero .js-hero-row {
    transition: background-color 0.25s ease, padding 0.25s ease;
}

/* ===== quick_categories_section ===== */
#quick-categories {
    hyphens: auto;
}

#quick-categories .js-category-card {
    min-height: 190px;
}

/* ===== catalog_section ===== */
#catalog {
    overflow: hidden;
}

#catalog button:focus {
    outline: 2px solid #F98168;
    outline-offset: 2px;
}

/* ===== featured_devices_section ===== */
#featured article {
    min-height: 100%;
}

#component-featured-modal {
    transition: opacity 0.25s ease-in-out;
}

/* ===== faq_section ===== */
#faq {
    background-color: var(--surface-alt);
}

.js-faq-item.is-active {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(249, 129, 104, 0.12);
}

.js-faq-item.is-active .js-faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

/* ===== contact_section ===== */
#contact input::placeholder,
#contact textarea::placeholder {
    color: #78635E;
    opacity: 1;
}

#contact select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2378635E%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1rem;
    appearance: none;
    -webkit-appearance: none;
}

/* ===== footer_section ===== */
#footer {
    overflow: hidden;
}

#footer a {
    text-decoration: none;
}

/* Shared navigation and anchor destinations */
#header .brand-link { gap: 12px; }
#header .brand-link > span { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
#header .brand-link img { width: 44px; height: 48px; object-fit: contain; }
section[id] { scroll-margin-top: 120px; }
#top { scroll-margin-top: 0; }

/* A clear introduction without the former numbered product rows. */
#hero { padding: 72px 0 80px; background: radial-gradient(ellipse at 70% 10%, #f8eeec 0%, transparent 65%), #fcf9f9; }
#hero > div { max-width: 1000px; text-align: center; }
#hero > div > div:first-child { align-items: center; max-width: 900px; margin: 0 auto; }
#hero h1 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.3; text-wrap: balance; margin: 8px 0 20px; }
#hero p { max-width: 650px; font-size: 16px; line-height: 1.8; }
#hero > div > div:last-child { justify-content: center; margin-top: 32px; }
#hero .js-smooth-link { color: #1e1412; }
#hero .js-smooth-link span, #hero .js-smooth-link i { color: inherit; }

/* Explicit foreground/background pairs also cover active hover states. */
#catalog .js-cat-filter { color: #1e1412; background: #fff; border: 1px solid #e4dad8; }
#catalog .js-cat-filter:hover, #catalog .js-cat-filter:focus-visible { color: #3b2686; background: #f8eeec; border-color: #3b2686; }
#catalog .js-cat-filter[aria-pressed="true"] { color: #fff; background: #3b2686; border-color: #3b2686; }
#catalog .js-cat-filter[aria-pressed="true"]:hover { color: #fff; background: #1f173c; border-color: #1f173c; }

/* One wide policy surface, with no repeated inner page padding. */
.policy-page .legal-main-container { padding: 28px 0 64px !important; }
.policy-page .legal-main-container > div { width: 100%; max-width: 1280px; padding: 0 32px; }
.policy-page .legal-content-card { padding: 40px 48px; }
.policy-page .policy-document { padding: 0 !important; min-height: 0; background: transparent; }
.policy-page .policy-document > div { max-width: none; width: 100%; padding: 0; }
.policy-page .policy-document > div > .bg-white { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
.policy-page .policy-document header { padding-bottom: 20px; margin-bottom: 24px; }
.policy-page .policy-text-body { font-size: 16px; }

/* Leave the consultation card fully inside the footer. */
#footer { padding-top: 64px; }
#footer .footer-consultation { margin-top: 0; }
@media (max-width: 767px) {
    #header .brand-link { gap: 8px; }
    #header .brand-link > span { font-size: 16px; }
    #header .brand-link img { width: 32px; height: 38px; }
    section[id] { scroll-margin-top: 100px; }
    #hero { padding: 40px 0 48px; }
    #hero p { font-size: 14px; }
    .policy-page .legal-main-container { padding: 16px 0 40px !important; }
    .policy-page .legal-main-container > div { padding: 0 16px; }
    .policy-page .legal-content-card { padding: 24px 20px; }
    .policy-page .policy-text-body { font-size: 14px; }
    #footer { padding-top: 40px; }
}

#header .js-mobile-menu:not(.open) { border-width: 0; margin-top: 0; }
