:root {
    --ah-accent-strong: #c2410c;
    --ah-accent-hover: #9a3412;
    --ah-surface: #ffffff;
    --ah-surface-soft: #f8fafc;
    --ah-muted: #586579;
    --ah-focus: #2563eb;
    --ah-radius-sm: 8px;
    --ah-radius-md: 12px;
    --ah-radius-lg: 18px;
    --ah-shadow-sm: 0 1px 2px rgba(7, 17, 38, .05), 0 4px 14px rgba(7, 17, 38, .04);
    --ah-shadow-md: 0 14px 36px rgba(7, 17, 38, .11);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

body {
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: #ffd9c9;
    color: var(--ah-navy);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ah-navy);
    letter-spacing: -.018em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

a,
button,
input,
select,
textarea,
summary,
[tabindex] {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--ah-focus) !important;
    outline-offset: 3px;
    box-shadow: none !important;
}

.btn {
    border-radius: var(--ah-radius-sm);
    font-weight: 700;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.btn:not(:disabled):active {
    transform: translateY(1px);
}

.btn-ah {
    background: var(--ah-accent-strong);
    border-color: var(--ah-accent-strong);
    box-shadow: 0 6px 16px rgba(194, 65, 12, .18);
}

.btn-ah:hover,
.btn-ah:active {
    background: var(--ah-accent-hover) !important;
    border-color: var(--ah-accent-hover) !important;
}

.form-control,
.form-select {
    border-radius: var(--ah-radius-sm);
    background-color: var(--ah-surface);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ah-focus);
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .14);
}

.alert {
    border-width: 1px;
    border-radius: var(--ah-radius-md);
    box-shadow: var(--ah-shadow-sm);
}

.topbar {
    min-height: 36px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #071126, #111f3d);
}

.topbar .container {
    align-items: center;
    gap: 20px;
}

.topbar a {
    border-bottom: 1px solid transparent;
    font-weight: 700;
}

.topbar a:hover {
    border-bottom-color: rgba(255, 255, 255, .72);
}

.navbar-shop {
    box-shadow: 0 1px 0 rgba(7, 17, 38, .04), 0 8px 24px rgba(7, 17, 38, .045);
}

.shop-brand {
    border-radius: var(--ah-radius-sm);
}

.brand-name {
    letter-spacing: -.045em;
}

.shop-search {
    border-radius: 11px;
    transition: box-shadow .16s ease;
}

.shop-search:focus-within {
    box-shadow: 0 0 0 .24rem rgba(37, 99, 235, .12);
}

.shop-search .search-control {
    min-height: 48px;
    border-radius: 11px;
    background: var(--ah-surface-soft);
}

.shop-search:focus-within .search-control {
    border-color: var(--ah-focus);
    background: #fff;
    box-shadow: none;
}

.shop-search-button,
.shop-menu-button,
.category-open-button {
    border-radius: var(--ah-radius-sm);
    transition: background-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.shop-search-button:hover,
.shop-menu-button:hover {
    background: #202c43;
}

.category-open-button {
    background: var(--ah-accent-strong);
}

.category-open-button:hover {
    background: var(--ah-accent-hover);
}

.shop-header-actions a {
    border-radius: var(--ah-radius-sm);
    transition: color .16s ease, background-color .16s ease;
}

.shop-header-actions a:hover {
    background: #fff3ed;
}

.shop-header-cart b,
.menu-count,
.mobile-cart-link b {
    background: var(--ah-accent-strong);
}

.shop-category-bar {
    background: rgba(255, 255, 255, .98);
}

.shop-quick-link {
    border-radius: 7px;
    transition: color .16s ease, background-color .16s ease;
}

.shop-quick-link:hover,
.shop-quick-link.active {
    background: #fff3ed;
    color: var(--ah-accent-strong);
}

.shop-main-menu .offcanvas-header,
.shop-category-menu .offcanvas-header,
.instant-cart .offcanvas-header {
    background: var(--ah-surface-soft);
}

.shop-menu-links > a,
.shop-menu-links > button {
    border-radius: var(--ah-radius-sm);
}

.shop-menu-links > a:hover,
.shop-menu-links > button:hover {
    background: #f7f9fc;
}

.shop-menu-links > a:hover > i:first-child,
.shop-menu-links > button:hover > i:first-child {
    background: #fff0e9;
    color: var(--ah-accent-strong);
}

.category-menu-section {
    border-radius: var(--ah-radius-md);
    box-shadow: 0 1px 0 rgba(7, 17, 38, .02);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.category-menu-section:hover {
    border-color: #c9d2de;
    box-shadow: var(--ah-shadow-sm);
}

.category-menu-heading a:hover,
.category-view-all:hover {
    color: var(--ah-accent-strong);
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: min(560px, 68vh);
    box-shadow: inset 0 -80px 100px rgba(7, 17, 38, .16);
}

.hero .container {
    position: relative;
    z-index: 1;
    padding-block: clamp(56px, 9vw, 100px);
}

.hero .badge {
    padding: .55rem .75rem;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .94) !important;
    color: var(--ah-navy) !important;
    font-weight: 800;
    letter-spacing: .01em;
}

.hero h1 {
    max-width: 820px;
    color: #fff;
    line-height: 1.01;
    letter-spacing: -.045em;
    text-shadow: 0 2px 26px rgba(0, 0, 0, .22);
}

.hero .lead {
    max-width: 680px;
    color: #f3f6fb;
    line-height: 1.55;
    text-shadow: 0 1px 16px rgba(0, 0, 0, .28);
}

.store-confidence-item strong {
    color: var(--ah-navy);
}

.store-confidence-item i {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    background: #fff0e9;
    color: var(--ah-accent-strong);
}

.footer {
    position: relative;
    background: linear-gradient(135deg, #071126 0%, #0d1c38 100%);
}

.footer::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--ah-orange), #ff9a73);
    content: "";
}

.footer p,
.footer small {
    color: #c8d1df;
}

.footer a:not(.btn) {
    width: fit-content;
    border-radius: 4px;
    color: #e5eaf2 !important;
}

.footer a:not(.btn):hover {
    color: #fff !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

.cookie-banner {
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--ah-radius-lg);
    box-shadow: 0 22px 70px rgba(3, 8, 20, .34);
}

.cookie-banner strong {
    font-size: 1.02rem;
}

.cookie-banner a {
    color: #ffd38a;
    text-underline-offset: 3px;
}

.cookie-actions .btn {
    min-width: 100px;
    min-height: 44px;
}

.mobile-shop-nav {
    height: calc(68px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 30px rgba(7, 17, 38, .12);
}

.mobile-shop-nav > a,
.mobile-shop-nav > button {
    min-width: 0;
    min-height: 48px;
    font-weight: 700;
}

.mobile-shop-nav > a::before,
.mobile-shop-nav > button::before {
    position: absolute;
    top: 0;
    width: 24px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: transparent;
    content: "";
}

.mobile-shop-nav .active::before {
    background: var(--ah-accent-strong);
}

.mobile-shop-nav .active {
    color: var(--ah-accent-strong);
}

@media (max-width: 991px) {
    .hero {
        min-height: 480px;
        background-position: 64% center;
    }
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 128px;
    }

    body:not(.admin-body) {
        padding-bottom: calc(68px + env(safe-area-inset-bottom));
    }

    body.checkout-body {
        padding-bottom: 0;
    }

    .topbar .container {
        gap: 10px;
    }

    .topbar a {
        flex: 0 0 auto;
    }

    .navbar-shop .container {
        padding-top: .65rem !important;
        padding-bottom: .65rem !important;
    }

    .shop-search .search-control {
        min-height: 46px;
        font-size: .92rem;
    }

    .shop-category-bar .container {
        scrollbar-width: none;
    }

    .shop-category-bar .container::-webkit-scrollbar {
        display: none;
    }

    .hero {
        min-height: 430px;
        background-image: linear-gradient(90deg, rgba(7, 17, 38, .96) 0%, rgba(7, 17, 38, .78) 68%, rgba(7, 17, 38, .45) 100%), url('/assets/achathub-hero-accessoires.webp?v=20260802b');
        background-position: 68% center;
    }

    .hero .container {
        padding-block: 58px;
    }

    .hero h1 {
        max-width: 560px;
        font-size: clamp(2.3rem, 11vw, 3.2rem);
        line-height: 1.03;
    }

    .hero .lead {
        max-width: 520px;
        font-size: 1rem;
    }

    .store-confidence-item i {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
        font-size: 1rem;
    }

    .footer {
        margin-bottom: 0 !important;
    }

    .cookie-banner {
        bottom: calc(78px + env(safe-area-inset-bottom));
        border-radius: var(--ah-radius-md);
    }
}

@media (max-width: 420px) {
    .topbar span {
        max-width: 58%;
    }

    .topbar a {
        font-size: .68rem;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .hero .btn {
        width: 100%;
        margin-inline: 0 !important;
    }

    .hero .btn + .btn {
        margin-top: .65rem !important;
    }

    .mobile-shop-nav > a,
    .mobile-shop-nav > button {
        font-size: .64rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (forced-colors: active) {
    .mobile-shop-nav .active::before,
    .footer::before {
        background: CanvasText;
    }
}
