/* ═══════════════════════════════════════════════
   Ark Header — Custom Header with Mega Menu
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap');

/* ─── Variables ─── */
:root {
    --ark-header-font: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    --ark-header-nav-color: #ffffff;
    --ark-header-nav-hover: #ffffff;
    --ark-header-accent: #e8a0bf;
    --ark-header-bg: #2e2142;
    --ark-header-mega-bg: #FAFAF8;
    --ark-header-mega-text: #333336;
    --ark-header-mega-link: #333336;
    --ark-header-mega-link-hover: #000000;
    --ark-header-max-width: 1400px;
    --ark-header-mobile-gutter: clamp(12px, 4vw, 18px);
    --ark-header-mobile-sticky-gap: clamp(8px, 2.5vw, 12px);
    --ark-header-tablet-gutter: clamp(14px, 2.5vw, 28px);
    --ark-header-sticky-top: 0px;
    --ark-header-mega-overlay-bg: rgba(16, 18, 24, 0.22);
    --ark-header-mega-overlay-blur: 3px;
    --ark-header-mega-overlay-transition: 0.25s ease;
}

/* ─── Reset ─── */
.ark-header *,
.ark-header *::before,
.ark-header *::after,
.ark-header-topbar *,
.ark-header-topbar *::before,
.ark-header-topbar *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ark-header {
    font-family: var(--ark-header-font);
    position: sticky;
    top: var(--ark-header-sticky-top);
    z-index: 99999;
    /* Break out of Elementor's boxed container to full viewport width */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow-x: clip;
}

.ark-header.ark-header--force-fixed {
    position: fixed;
    top: var(--ark-header-sticky-top);
    left: 0;
    right: 0;
    width: 100vw;
    margin-left: 0;
    transform: none;
}

.ark-header-sticky-spacer {
    height: 0;
    pointer-events: none;
}

body.admin-bar {
    --ark-header-sticky-top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar {
        --ark-header-sticky-top: 46px;
    }
}

/* Remove Elementor container padding when it wraps the header shortcode */
.elementor-shortcode .ark-header {
    margin-top: -10px;
}

.elementor-shortcode .ark-header-topbar {
    margin-top: -10px;
}

.elementor-shortcode .ark-header-topbar + .ark-header {
    margin-top: 0;
}

.elementor-widget-shortcode .elementor-widget-container {
    overflow: visible;
}

/* ═══════════════════════════════════════════════
   Top Bar
   ═══════════════════════════════════════════════ */

.ark-header-topbar {
    font-family: var(--ark-header-font);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow-x: clip;
    position: relative;
    z-index: 2;
}

.ark-header-topbar-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 5px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ark-header-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ark-header-social-link {
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.ark-header-social-link:hover {
    opacity: 1;
}

.ark-header-topbar-center {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.ark-header-topbar-cta {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: inherit;
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.ark-header-topbar-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
}

.ark-header-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ark-header-topright-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    text-transform: uppercase;
    transition: opacity 0.2s;
}

.ark-header-topright-link:hover {
    opacity: 0.8;
}

.ark-header-topright-link--button_outline {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    padding: 3px 12px;
    font-weight: 600;
}

.ark-header-topright-link--button_outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ark-header-topright-link--button_filled {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 3px 12px;
    font-weight: 600;
}

.ark-header-topright-link--button_filled:hover {
    background: rgba(255, 255, 255, 0.25);
}

.ark-header-topright-badge {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
    text-transform: none;
}

/* Remove outer container styling when link has a badge */
.ark-header-topright-link:has(.ark-header-topright-badge) {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
}

/* ═══════════════════════════════════════════════
   Main Header (Floating Pill)
   ═══════════════════════════════════════════════ */

.ark-header-pill-wrap {
    position: relative;
    margin: 20px auto 0;
    max-width: 1440px;
    z-index: 2;
}

.ark-header-main {
    background: var(--ark-header-bg);
    color: #fff;
    position: relative;
    border-radius: 10px;
    transition: background 0.25s ease, border-radius 0.2s ease;
    z-index: 2;
}

/* When mega menu is open: pill becomes white, text goes dark */
#ark-header.ark-header--mega-open .ark-header-main {
    background: #FAFAF8;
    border-radius: 15px 15px 0 0;
}

#ark-header.ark-header--mega-open .ark-header-nav-link {
    color: #333336;
}

#ark-header.ark-header--mega-open .ark-header-nav-link:hover,
#ark-header.ark-header--mega-open .ark-header-nav-item--active .ark-header-nav-link {
    color: #000000;
    font-weight: 700;
}

#ark-header.ark-header--mega-open .ark-header-logo,
#ark-header.ark-header--mega-open .ark-header-logo-text {
    color: #1a1a2e;
}

#ark-header.ark-header--mega-open .ark-header-action {
    color: #1a1a2e;
}

#ark-header.ark-header--mega-open .ark-header-mobile-toggle {
    color: #1a1a2e;
}

.ark-header-inner {
    max-width: var(--ark-header-max-width);
    margin: 0 auto;
    padding: 0 32px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo (centered) */
.ark-header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    z-index: 2;
}

.ark-header-logo img {
    display: block;
    height: auto;
}

.ark-header-logo-img {
    display: block;
    height: auto;
    max-width: 100%;
}

.ark-header-logo--has-mega-variant {
    display: grid;
    place-items: center;
}

.ark-header-logo--has-mega-variant .ark-header-logo-img {
    grid-area: 1 / 1;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.ark-header-logo--has-mega-variant .ark-header-logo-img--default {
    opacity: 1;
    visibility: visible;
}

.ark-header-logo--has-mega-variant .ark-header-logo-img--mega {
    opacity: 0;
    visibility: hidden;
}

#ark-header.ark-header--mega-open .ark-header-logo--has-mega-variant .ark-header-logo-img--default {
    opacity: 0;
    visibility: hidden;
}

#ark-header.ark-header--mega-open .ark-header-logo--has-mega-variant .ark-header-logo-img--mega {
    opacity: 1;
    visibility: visible;
}

.ark-header-logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navigation */
.ark-header-nav {
    position: relative;
    z-index: 1;
}

.ark-header-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 40px;
}

.ark-header-nav-link {
    color: var(--ark-header-nav-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    padding: 20px 0;
    display: block;
    transition: color 0.2s;
    white-space: nowrap;
}

.ark-header-nav-link:hover,
.ark-header-nav-item--active .ark-header-nav-link {
    color: white;
}

/* Actions */
.ark-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.ark-header-search-action {
    z-index: 1;
}

.ark-header-action {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.2s;
    font-family: inherit;
}

.ark-header-action:hover {
    scale: 1.1;
    color: white;
}

.ark-header-actions .ark-header-action.ark-favorites-toggle {
    padding: 4px;
}

.ark-header-actions .ark-header-action.ark-favorites-toggle {
    position: relative;
}

.ark-header-actions .ark-header-action.ark-favorites-toggle .ark-heart-icon {
    width: 20px;
    height: 20px;
    transition: fill 0.2s ease, transform 0.2s ease;
}

.ark-header-actions .ark-header-action.ark-favorites-toggle.is-active .ark-heart-icon {
    fill: currentColor;
}

.ark-header-cart-link {
    position: relative;
}

.ark-header-search-action {
    margin-left: auto;
}

/* Hidden ark_product_search trigger used by the header search icon */
.ark-header-search-proxy {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    pointer-events: none;
}

.ark-header-actions .ark-header-cart-link .ark-header-cart-count {
    position: absolute;
    top: -4px;
    right: -8px;
    z-index: 2;
    background: var(--ark-header-accent) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    font-family: inherit;
    text-indent: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    pointer-events: none;
}

.ark-header-actions .ark-header-action.ark-favorites-toggle .ark-header-favorites-count {
    position: absolute;
    top: -4px;
    right: -8px;
    z-index: 2;
    background: var(--ark-header-accent) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    min-width: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

.ark-header-actions .ark-header-action.ark-favorites-toggle .ark-header-favorites-count:empty,
.ark-header-actions .ark-header-action.ark-favorites-toggle .ark-header-favorites-count[data-count="0"] {
    display: flex !important;
}

/* Mobile Toggle */
.ark-header-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    z-index: 1;
}

.ark-header-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 22px;
}

.ark-header-hamburger span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Hamburger animation when open */
.ark-header-mobile-toggle[aria-expanded="true"] .ark-header-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ark-header-mobile-toggle[aria-expanded="true"] .ark-header-hamburger span:nth-child(2) {
    opacity: 0;
}

.ark-header-mobile-toggle[aria-expanded="true"] .ark-header-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════
   Mega Menu
   ═══════════════════════════════════════════════ */

.ark-header-mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ark-header-mega-bg);
    color: var(--ark-header-mega-text);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1;
}

.ark-header-mega.ark-header-mega--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ark-header-mega-inner {
    max-width: var(--ark-header-max-width);
    margin: 0 auto;
    padding: 32px 40px;
    display: flex;
    gap: 0;
}

/* ─── Tab Navigation (left column within mega) ─── */

.ark-header-mega-tabs {
    min-width: 170px;
    border-right: 1px solid #eee;
    padding-right: 28px;
    margin-right: 28px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.ark-header-mega-tab-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--ark-header-mega-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 0;
    transition: color 0.15s, font-weight 0.15s;
}

.ark-header-mega-tab-link:hover,
.ark-header-mega-tab-link--active {
    color: #000;
    font-weight: 600;
}

.ark-header-mega-tab-arrow {
    opacity: 0;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.ark-header-mega-tab-link--active .ark-header-mega-tab-arrow,
.ark-header-mega-tab-link:hover .ark-header-mega-tab-arrow {
    opacity: 1;
}

/* ─── Tab Content Panels ─── */

.ark-header-mega-tab-panel {
    display: none;
    flex: 1;
    min-width: 0;
}

.ark-header-mega-tab-panel--active {
    display: flex;
    gap: 0;
    align-items: flex-start;
}

.ark-header-mobile-mega-header {
    display: none;
}

.ark-header-mobile-accordion {
    display: none;
}

/* Backdrop layer for desktop mega and mobile menu states */
.ark-header-backdrop {
    position: fixed;
    inset: 0;
    background: var(--ark-header-mega-overlay-bg);
    -webkit-backdrop-filter: blur(var(--ark-header-mega-overlay-blur));
    backdrop-filter: blur(var(--ark-header-mega-overlay-blur));
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ark-header-mega-overlay-transition), visibility var(--ark-header-mega-overlay-transition);
    pointer-events: none;
}

/* Show backdrop when desktop mega is open */
#ark-header.ark-header--mega-open .ark-header-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ─── Mega Column Base ─── */

.ark-header-mega-col {
    padding: 0 28px;
}

.ark-header-mega-col:first-child {
    padding-left: 0;
}

.ark-header-mega-col:last-child {
    padding-right: 0;
}

/* Per-column alignment controls (driven by ACF alignment field) */
.ark-header-mega-tab-panel--active > .ark-header-mega-col--align-left {
    margin-left: 0;
    margin-right: 0;
}

.ark-header-mega-tab-panel--active > .ark-header-mega-col--align-center {
    margin-left: auto;
    margin-right: auto;
}

.ark-header-mega-col-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 14px;
}

/* ─── Links Column ─── */

.ark-header-mega-col--links {
    min-width: 160px;
    border-right: 1px solid #eee;
    padding-right: 28px;
}

.ark-header-mega-links {
    list-style: none;
}

.ark-header-mega-links li {
    margin-bottom: 4px;
}

.ark-header-mega-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ark-header-mega-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    padding: 6px 0;
    transition: color 0.15s;
}

.ark-header-mega-links a:hover {
    color: #000;
    font-weight: 500;
}

.ark-header-mega-badge {
    background: var(--ark-header-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ─── Swatches Column ─── */

.ark-header-mega-col--swatches {
    max-width: 340px;
    flex-shrink: 0;
}

.ark-header-mega-swatch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.ark-header-mega-swatch {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px;
    border-radius: 4px;
    background-color: #f8f8f8;
    text-decoration: none;
    color: var(--ark-header-mega-text);
    transition: filter 0.15s, box-shadow 0.15s;
    height: 48px;
    width: 150px;
}

.ark-header-mega-swatch:hover {
    filter: brightness(0.96);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.ark-header-mega-swatch:hover > span{
    font-weight: 700;
}

.ark-header-mega-swatch-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.ark-header-mega-swatch-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.ark-header-mega-swatch-label {
    font-size: 12px;
    font-weight: 400;
    color: #333336;
}

.ark-header-mega-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #605BA8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    transition: opacity 0.15s;
}

.ark-header-mega-footer-link:hover {
    opacity: 0.8;
}

/* ─── Link Group Column ─── */

.ark-header-mega-col--link-group {
    min-width: 150px;
}

.ark-header-mega-group-links {
    list-style: none;
}

.ark-header-mega-group-links a {
    display: block;
    color: var(--ark-header-mega-link);
    text-decoration: none;
    font-size: 14px;
    line-height: 2;
    transition: color 0.15s;
}

.ark-header-mega-group-links a:hover {
    color: #000000;
    font-weight: 500;
}

/* ─── Featured Image Column (matches homepage: 206×260px) ─── */

.ark-header-mega-col--featured {
    width: var(--ark-col-width, 206px);
    min-width: var(--ark-col-width, 206px);
    flex-shrink: 0;
    padding: 0;
}

/* Push the featured group to the right without creating extra gap in 2-card layouts */
.ark-header-mega-tab-panel--active > .ark-header-mega-col--featured.ark-header-mega-col--align-right:nth-last-child(2),
.ark-header-mega-tab-panel--active > :not(.ark-header-mega-col--featured) + .ark-header-mega-col--featured.ark-header-mega-col--align-right:last-child {
    margin-left: auto;
}

/* 12px gap between the two featured columns (matching homepage) */
.ark-header-mega-col--featured + .ark-header-mega-col--featured {
    margin-left: 12px;
}

.ark-header-mega-featured {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    height: 260px;
}

#ark-header .ark-header-mega-featured img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ark-header-mega-featured:hover img {
    transform: scale(1.2);
}

.ark-header-mega-featured-caption {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 2px rgb(0 0 0 / 10%);
}

/* ─── Action Cards Column ─── */

.ark-header-mega-col--action-cards {
    display: flex;
    gap: 30px;
}

.ark-header-mega-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--ark-header-mega-text);
    padding: 16px;
    border-radius: 12px;
    transition: background 0.2s;
    max-width: 220px;
}


.ark-header-mega-action-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ark-header-mega-action-card-desc {
    font-size: 12px;
    color: #777;
    margin-bottom: 12px;
    line-height: 1.4;
}

.ark-header-mega-action-card-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 12px;
}

.ark-header-mega-action-card-cta {
    display: inline-block;
    background: #605BA8;
    color: #fff;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 400;
    padding: 10px 30px;
    border-radius: 100px;
    text-decoration: none;
    margin-top: auto;
    transition: background 0.3s;
}

.ark-header-mega-action-card-cta:hover {
    background: #8B88C2;
    color: white;
}

/* ─── Person Cards Column ─── */

.ark-header-mega-col--person-cards {
    display: flex;
    gap: 16px;
    width: max-content;
    min-width: var(--ark-col-width, 206px);
}

/* Push person-cards column group to the right (single and double end-of-panel layouts) */
.ark-header-mega-tab-panel--active > .ark-header-mega-col--person-cards.ark-header-mega-col--align-right:nth-last-child(2),
.ark-header-mega-tab-panel--active > :not(.ark-header-mega-col--person-cards) + .ark-header-mega-col--person-cards.ark-header-mega-col--align-right:last-child {
    margin-left: auto;
}

.ark-header-mega-person-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    width: 160px;
    aspect-ratio: 3/4;
}

#ark-header .ark-header-mega-person-card img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#ark-header .ark-header-mega-person-card:hover img {
    transform: scale(1.2);
}

.ark-header-mega-person-name {
    position: absolute;
    bottom: 14px;
    left: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ─── Product Cards Column ─── */

.ark-header-mega-col--product-cards {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    width: max-content;
    min-width: var(--ark-col-width, 206px);
}

/* Push product-cards column group to the right (single and double end-of-panel layouts) */
.ark-header-mega-tab-panel--active > .ark-header-mega-col--product-cards.ark-header-mega-col--align-right:nth-last-child(2),
.ark-header-mega-tab-panel--active > :not(.ark-header-mega-col--product-cards) + .ark-header-mega-col--product-cards.ark-header-mega-col--align-right:last-child {
    margin-left: auto;
}

.ark-header-mega-product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ark-header-mega-text);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    width: 200px;
    transition: box-shadow 0.2s;
}

.ark-header-mega-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ark-header-mega-product-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    padding: 10px 12px 12px;
}

.ark-header-mega-product-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* ─── FAQ List Column ─── */

.ark-header-mega-col--faq {
    flex: 1;
}

.ark-header-mega-faq-list {
    list-style: none;
}

.ark-header-mega-faq-list li {
    margin-bottom: 2px;
}

.ark-header-mega-faq-list a,
.ark-header-mega-faq-list span {
    display: block;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    line-height: 2.2;
    transition: color 0.15s;
}

.ark-header-mega-faq-list a:hover {
    color: #000;
    font-weight: 500;
}

/* ─── Promo Text Column ─── */

.ark-header-mega-col--promo {
    min-width: 200px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    text-align: center;
    padding: 0 28px;
}

.ark-header-mega-promo-title {
    font-family: 'Figtree', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2A213D;
    margin-bottom: 0;
    line-height: 1.3;
}

.ark-header-mega-promo-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-top: 8px;
}

.ark-header-mega-promo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 10px 24px;
    border-radius: 999px;
    background: #605BA8;
    color: #fff;
    text-decoration: none;
    font-family: 'Figtree', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    transition: background 0.2s ease;
}

.ark-header-mega-promo-button:hover {
    background: #8B88C2;
    color: #fff;
}

/* ─── Icon Links Column ─── */

.ark-header-mega-col--icon-links {
    min-width: 200px;
}

.ark-header-mega-icon-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ark-header-mega-icon-links-list li {
    margin-bottom: 0;
}

.ark-header-mega-icon-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ark-header-mega-text);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.35;
    padding: 2px 0;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.ark-header-mega-icon-link:hover {
    color: #000;
    background-color: rgba(0, 0, 0, 0.03);
}

.ark-header-mega-icon-link:focus-visible {
    outline: 2px solid #222;
    outline-offset: 2px;
}

.ark-header-mega-icon-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #21252d;
    background: #fff;
    flex-shrink: 0;
    color: #21252d;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.ark-header-mega-icon-link-icon svg {
    width: 14px;
    height: 14px;
}

.ark-header-mega-icon-link:hover .ark-header-mega-icon-link-icon {
    background: #f5f6f8;
    border-color: #000;
    color: #000;
}

.ark-header-mega-icon-link:focus-visible .ark-header-mega-icon-link-icon {
    background: #f5f6f8;
    border-color: #000;
    color: #000;
}

/* ─── Review Block Column ─── */

.ark-header-mega-col--review {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}

.ark-header-mega-review-inner {
    display: grid;
    grid-template-columns: minmax(180px, 220px) 200px;
    grid-template-rows: 1fr 1fr;
    column-gap: 44px;
    row-gap: 10px;
    align-items: start;
    align-content: stretch;
    text-align: left;
    text-decoration: none;
    color: var(--ark-header-mega-text);
    width: max-content;
    max-width: 100%;
}

a.ark-header-mega-review-inner:hover {
    opacity: 0.9;
}

.ark-header-mega-review-title {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: end;
    font-size: 22px;
    font-weight: 700;
    color: var(--ark-header-bg);
    line-height: 1.3;
    max-width: 220px;
    margin: 0;
    text-align: center;
}

.ark-header-mega-review-stars {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    gap: 2px;
    justify-self: center;
    align-self: start;
    flex-wrap: nowrap;
    justify-content: center;
}

.ark-header-mega-review-img {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 200px;
    height: 260px;
    max-width: none;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

@media (max-width: 1200px) {
    .ark-header-mega-review-inner {
        grid-template-columns: minmax(160px, 200px) 170px;
        column-gap: 24px;
    }

    .ark-header-mega-review-img {
        width: 170px;
        height: 220px;
    }
}

/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */

@media (min-width: 993px) and (max-width: 1500px) {
    .ark-header-pill-wrap {
        padding-left: 0;
        padding-right: 0;
    }

    .ark-header-main {
        margin-left: var(--ark-header-tablet-gutter);
        margin-right: var(--ark-header-tablet-gutter);
    }

    .ark-header-mega {
        left: var(--ark-header-tablet-gutter);
        right: var(--ark-header-tablet-gutter);
    }
}

@media (max-width: 992px) {
    html.ark-header-mobile-mega-open,
    body.ark-header-mobile-mega-open {
        overflow: hidden;
        height: 100%;
    }

    .ark-header-pill-wrap {
        padding-left: 0;
        padding-right: 0;
    }

    /* On mobile, reduce the floating gap once the header is pinned without hard-flushing it. */
    .ark-header.ark-header--force-fixed .ark-header-pill-wrap {
        margin-top: var(--ark-header-mobile-sticky-gap);
    }

    .ark-header.ark-header--force-fixed {
        width: auto;
    }

    .ark-header-main {
        margin-left: var(--ark-header-mobile-gutter);
        margin-right: var(--ark-header-mobile-gutter);
    }

    .ark-header-nav {
        display: none;
    }

    .ark-header-mega {
        position: absolute;
        left: var(--ark-header-mobile-gutter);
        right: var(--ark-header-mobile-gutter);
        top: 100%;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0);
        z-index: 3;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
        pointer-events: none;
    }

    .ark-header-mega.ark-header-mega--open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    #ark-header.ark-header--mobile-switching .ark-header-mega {
        transition: none;
        transform: none;
    }

    .ark-header-mega-inner {
        max-width: none;
        max-height: calc(100dvh - 150px);
        padding: 0px 16px 24px;
        flex-direction: column;
        gap: 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ark-header-mobile-mega-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--ark-header-mega-bg);
        padding: 4px 0 0px;
        border-bottom: 1px solid #ece8e2;
    }

    .ark-header-mobile-primary-nav {
        display: flex;
        gap: 0;
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .ark-header-mobile-primary-nav::-webkit-scrollbar {
        display: none;
    }

    .ark-header-mobile-primary-link {
        background: none;
        border: 0;
        border-bottom: 2px solid transparent;
        color: #6a6671;
        border-radius: 0;
        padding: 0 0 10px;
        white-space: nowrap;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        font-family: inherit;
        cursor: pointer;
        flex: 1 1 0;
        min-width: max-content;
        text-align: center;
    }

    .ark-header-mobile-primary-link--active {
        background: none;
        border-bottom-color: #2e2142;
        color: #2e2142;
    }

    .ark-header-mega-tabs {
        display: none;
    }

    .ark-header-mobile-accordion {
        display: block;
        width: 100%;
    }

    .ark-header-mobile-accordion-item {
        border-bottom: 1px solid #ded9d0;
    }

    .ark-header-mobile-accordion-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: none;
        border: 0;
        color: #393542;
        cursor: pointer;
        font-family: inherit;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.3;
        padding: 14px 4px;
        text-align: left;
    }

    .ark-header-mobile-accordion-trigger--active {
        color: #2e2142;
        font-weight: 600;
    }

    .ark-header-mobile-accordion-label {
        display: block;
    }

    .ark-header-mobile-accordion-icon {
        flex-shrink: 0;
        transition: transform 0.2s ease;
    }

    .ark-header-mobile-accordion-trigger--active .ark-header-mobile-accordion-icon {
        transform: rotate(180deg);
    }

    .ark-header-mobile-accordion-panel {
        display: none;
        padding: 0 0 18px;
        padding-left: 4px;
    }

    .ark-header-mobile-accordion-panel--active {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
        align-items: start;
    }

    .ark-header-mega-tab-panel,
    .ark-header-mega-tab-panel--active {
        display: none;
    }

    .ark-header-mega-col {
        width: 100%;
        min-width: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0;
    }

    .ark-header-mega-col + .ark-header-mega-col {
        margin-top: 16px;
    }

    .ark-header-mobile-accordion-panel--active > .ark-header-mega-col {
        margin-top: 0;
    }

    .ark-header-mobile-accordion-panel--active > .ark-header-mega-col--links,
    .ark-header-mobile-accordion-panel--active > .ark-header-mega-col--link-group,
    .ark-header-mobile-accordion-panel--active > .ark-header-mega-col--action-cards-single,
    .ark-header-mobile-accordion-panel--active > .ark-header-mega-col--faq,
    .ark-header-mobile-accordion-panel--active > .ark-header-mega-col--icon-links {
        grid-column: span 1;
    }

    .ark-header-mobile-accordion-panel--active > .ark-header-mega-col--swatches,
    .ark-header-mobile-accordion-panel--active > .ark-header-mega-col--featured,
    .ark-header-mobile-accordion-panel--active > .ark-header-mega-col--action-cards:not(.ark-header-mega-col--action-cards-single),
    .ark-header-mobile-accordion-panel--active > .ark-header-mega-col--person-cards,
    .ark-header-mobile-accordion-panel--active > .ark-header-mega-col--person-cards-single,
    .ark-header-mobile-accordion-panel--active > .ark-header-mega-col--promo,
    .ark-header-mobile-accordion-panel--active > .ark-header-mega-col--product-cards,
    .ark-header-mobile-accordion-panel--active > .ark-header-mega-col--review {
        grid-column: 1 / -1;
    }

    .ark-header-mega-col--links {
        border-right: 0;
        padding-right: 0;
    }

    .ark-header-mega-col--swatches {
        max-width: none;
    }

    .ark-header-mega-swatch-grid {
        gap: 8px;
    }

    .ark-header-mega-swatch {
        width: auto;
        min-height: 52px;
        padding: 8px 10px;
        border-radius: 0;
        box-shadow: none;
    }

    .ark-header-mega-col--featured {
        width: 100%;
        min-width: 0;
        padding: 0;
    }

    .ark-header-mega-col--featured + .ark-header-mega-col--featured {
        margin-left: 0;
        margin-top: 16px;
    }

    .ark-header-mega-featured {
        height: 240px;
        border-radius: 10px;
    }

    .ark-header-mega-col--action-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        min-width: 0;
        gap: 12px;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .ark-header-mega-col--action-cards-single {
        grid-template-columns: minmax(0, 1fr);
    }

    .ark-header-mega-col--person-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100% !important;
        max-width: none;
        min-width: 0 !important;
        flex: none;
        gap: 12px;
        overflow-x: visible;
        padding-bottom: 0;
        justify-content: stretch;
    }

    .ark-header-mega-col--person-cards-single {
        grid-template-columns: minmax(0, 1fr);
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .ark-header-mega-col--product-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        min-width: 0;
        gap: 12px;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .ark-header-mega-action-card {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .ark-header-mega-person-card {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: initial;
    }

    .ark-header-mega-action-card-title {
        font-size: 16px;
    }

    .ark-header-mega-action-card-desc {
        font-size: 11px;
    }

    .ark-header-mega-action-card-cta {
        font-size: 13px;
        padding: 9px 24px;
    }

    .ark-header-mega-person-card,
    .ark-header-mega-product-card {
        flex: 0 0 auto;
        width: 72vw;
        max-width: 280px;
    }

    .ark-header-mega-product-card {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .ark-header-mega-product-title {
        font-size: 14px;
        padding: 8px 10px 10px;
    }

    .ark-header-mega-col--promo,
    .ark-header-mega-col--icon-links,
    .ark-header-mega-col--review {
        max-width: none;
        min-width: 0;
        padding: 0;
    }

    .ark-header-mega-review-inner {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }

    .ark-header-mega-review-title,
    .ark-header-mega-review-stars {
        justify-self: center;
        text-align: center;
        align-self: center;
    }

    .ark-header-mega-review-img {
        width: 100%;
        max-width: 280px;
        height: auto;
    }

    .ark-header-mobile-accordion-panel .ark-header-mega-review-img {
        max-width: none;
    }

    .ark-header-mobile-toggle {
        display: flex;
        order: 1;
        padding: 6px;
    }

    .ark-header-search-action {
        display: flex;
        order: 2;
        margin-left: 6px;
        margin-right: 0;
        flex: 0 0 auto;
    }

    .ark-header-mobile-toggle,
    .ark-header-search-action,
    .ark-header-actions .ark-header-action {
        min-width: 32px;
        min-height: 32px;
    }

    .ark-header-search-action,
    .ark-header-actions .ark-header-action {
        padding: 3px;
    }

    .ark-header-mobile-toggle .ark-header-hamburger {
        width: 20px;
        gap: 4px;
        margin-top: 3px;
    }

    .ark-header-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 3;
        margin: 0;
        max-width: calc(100% - 176px);
    }

    .ark-header-inner {
        justify-content: flex-start;
    }

    .ark-header-actions {
        order: 4;
        margin-left: auto;
        gap: 10px;
        flex: 0 0 auto;
    }

    .ark-header-logo img,
    .ark-header-logo .ark-header-logo-img {
        max-width: 100%;
    }

    .ark-header-logo-text {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Topbar simplification */
    .ark-header-topbar-left,
    .ark-header-topbar-right {
        display: none;
    }

    .ark-header-topbar-center {
        width: 100%;
        justify-content: center;
    }

    .ark-header-topbar-inner {
        justify-content: center;
    }
}

@media (min-width: 993px) {
    .ark-header-mobile-toggle {
        display: none !important;
    }

    .ark-header-search-action {
        margin-right: 16px;
    }
}
