/* v20260320 — Header & Navigation Moamoa */
:root {
    --rose-poudre: #f4e4e6;
    --framboise: #d63384;
    --vert-moderne: #20b2aa;
    --bleu-moderne: #4dabf7;
    --terracotta: #e9724c;
    --poudre: #f8f6f3;
    --gris-doux: #6c757d;
    --blanc: #ffffff;
    --noir-doux: #2d3436;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--noir-doux);
    background: var(--poudre);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* HEADER */
.header {
    background: #fff;
    padding: 5px 0;
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 64px;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 80px;
    height: auto;
    object-fit: contain;
    transition: opacity .2s ease;
}

.logo:hover img {
    opacity: .8;
}

/* Search bar */
.search-container {
    width: 100%;
    padding-left: 30px;
    display: block;
}

.search-form {
    width: 100%;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f6f9fc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    height: 40px;
}

.search-wrapper:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.search-wrapper:focus-within {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
    background: #fff;
}

.search-input {
    flex: 1;
    padding: 0 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    color: #0a2540;
    background: transparent;
    height: 100%;
    box-shadow: none !important;
    min-width: 0;
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-btn {
    background: #1a1f36;
    color: #fff;
    border: none;
    padding: 0 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    border-radius: 0 11px 11px 0;
    margin: -1.5px -1.5px -1.5px 0;
}

.search-btn:hover {
    background: #0a2540;
}

.search-btn i {
    font-size: 1rem;
}

/* Categories button */
.nav-right {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.categories-dropdown {
    position: relative;
}

.categories-btn {
    background: #1a1f36;
    color: #fff;
    border: none;
    padding: .5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
    font-weight: 600;
    font-family: inherit;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
    border-radius: 10px;
    letter-spacing: .01em;
}

.categories-btn:hover {
    background: #0a2540;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,31,54,.25);
}

.categories-btn .hamburger-icon {
    width: 14px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.categories-btn .hamburger-icon span {
    width: 100%;
    height: 1.5px;
    background: #fff;
    border-radius: 1px;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}

.categories-btn .chevron {
    font-size: .7rem;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    opacity: .7;
}

.categories-dropdown.active .categories-btn .chevron {
    transform: rotate(180deg);
}

.categories-dropdown.active .categories-btn .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 4px);
}
.categories-dropdown.active .categories-btn .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.categories-dropdown.active .categories-btn .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -4px);
}

/* Mega menu */
.categories-menu {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fff;
    box-shadow: 0 25px 60px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.04);
    width: 1000px;
    max-width: 95vw;
    opacity: 0;
    visibility: hidden;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    border-radius: 16px;
    z-index: 999;
    pointer-events: none;
}

.categories-dropdown.active .categories-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.categories-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.category-section {
    padding: 2rem 1.75rem;
    border-right: 1px solid #f1f5f9;
}

.category-section:last-child {
    border-right: none;
}

.category-section-title {
    font-size: .75rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.category-item {
    display: block;
    text-decoration: none;
    color: #425466;
    padding: .55rem .75rem;
    font-size: .9rem;
    font-weight: 500;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    border-radius: 8px;
    margin: 0 -.75rem;
}

.category-item:hover {
    color: #db2777;
    background: #fdf2f8;
    transform: translateX(4px);
}

/* Nav icons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: .15rem;
    margin-left: .5rem;
}

.nav-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #425466;
    text-decoration: none;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    font-size: 1.05rem;
    position: relative;
}

.nav-icon-btn:hover {
    background: #f6f9fc;
    color: #7c3aed;
}

.nav-icon-btn .fa-heart {
    color: #db2777;
}

.nav-icon-btn:hover .fa-heart {
    color: #db2777;
}

.nav-icon-btn .cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #db2777;
    color: #fff;
    font-size: .5rem;
    font-weight: 700;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* MOBILE */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    border-radius: 8px;
    transition: background .2s ease;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.hamburger:hover {
    background: #f6f9fc;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #0a2540;
    display: block;
    border-radius: 2px;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: rgba(10,37,64,.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    z-index: 1999;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    box-shadow: -10px 0 40px rgba(0,0,0,.1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu-logo {
    width: 80px;
    height: auto;
}

.mobile-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #425466;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    font-size: 1.1rem;
}

.mobile-close:hover {
    background: #f6f9fc;
    color: #0a2540;
    transform: rotate(90deg);
}

.mobile-menu-content {
    padding: 1.5rem;
}

.mobile-search {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-search-wrapper {
    display: flex;
    background: #f6f9fc;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #e2e8f0;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}

.mobile-search-wrapper:focus-within {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.1);
    background: #fff;
}

.mobile-search-wrapper input {
    flex: 1;
    padding: .85rem 1rem;
    border: none;
    outline: none;
    background: transparent;
    font-size: .9rem;
    font-family: inherit;
    color: #0a2540;
}

.mobile-search-wrapper input::placeholder {
    color: #94a3b8;
}

.mobile-search-wrapper button {
    background: #1a1f36;
    color: #fff;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    border-radius: 0 8px 8px 0;
}

.mobile-search-wrapper button:hover {
    background: #0a2540;
}

.mobile-search-wrapper button i {
    font-size: .95rem;
    color: #fff;
    background: transparent;
    padding: 0;
}

.mobile-quick-nav {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-quick-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    padding: .75rem .5rem;
    background: #f6f9fc;
    border-radius: 12px;
    text-decoration: none;
    color: #425466;
    font-size: .75rem;
    font-weight: 600;
    transition: all .2s ease;
    position: relative;
}

.mobile-quick-item i {
    font-size: 1.1rem;
    color: #0a2540;
}

.mobile-quick-item .fa-heart {
    color: #db2777;
}

.mobile-quick-item:hover {
    background: #eef2ff;
    color: #7c3aed;
}

.mobile-quick-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 18px);
    background: #db2777;
    color: #fff;
    font-size: .55rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Accordion categories */
.mobile-accordion {
    margin-bottom: 1.5rem;
}

.mobile-accordion-label {
    font-size: .7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: .75rem;
}

.accordion-group {
    border-bottom: 1px solid #f1f5f9;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.accordion-link {
    flex: 1;
    text-decoration: none;
    color: #0a2540;
    font-size: .95rem;
    font-weight: 600;
    transition: color .2s ease;
}

.accordion-link:hover {
    color: #db2777;
}

.accordion-chevron {
    font-size: .65rem;
    color: #94a3b8;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    padding: .5rem;
    margin: -.5rem;
}

.accordion-header.open .accordion-chevron {
    transform: rotate(180deg);
    color: #7c3aed;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
    padding-left: .75rem;
}

.accordion-body.open {
    max-height: 800px;
}

.accordion-sub-group {
    border-bottom: 1px solid #f8fafc;
}

.accordion-sub-group:last-child {
    border-bottom: none;
}

.accordion-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.accordion-sub-link {
    flex: 1;
    text-decoration: none;
    color: #425466;
    font-size: .88rem;
    font-weight: 500;
    transition: color .2s ease;
}

.accordion-sub-link:hover {
    color: #db2777;
}

.accordion-sub-header .accordion-chevron {
    font-size: .55rem;
}

.accordion-sub-header.open .accordion-chevron {
    transform: rotate(180deg);
    color: #7c3aed;
}

.accordion-leaf {
    display: block;
    text-decoration: none;
    color: #64748b;
    font-size: .82rem;
    font-weight: 500;
    padding: .5rem 0 .5rem .75rem;
    border-left: 2px solid #f1f5f9;
    transition: all .2s ease;
}

.accordion-leaf:hover {
    color: #db2777;
    border-left-color: #db2777;
}

.accordion-see-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1rem;
    padding: .75rem;
    background: #f6f9fc;
    border-radius: 10px;
    text-decoration: none;
    color: #7c3aed;
    font-size: .85rem;
    font-weight: 600;
    transition: all .2s ease;
}

.accordion-see-all:hover {
    background: #eef2ff;
}

.accordion-see-all i {
    font-size: .7rem;
}

/* Mobile CTA */
.mobile-cta {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.mobile-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: #1a1f36;
    color: #fff;
    text-decoration: none;
    padding: .85rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
    border-radius: 10px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}

.mobile-btn-primary:hover {
    background: #0a2540;
    color: #fff;
    text-decoration: none;
}

.mobile-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: #f6f9fc;
    color: #425466;
    text-decoration: none;
    padding: .75rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}

.mobile-btn-secondary:hover {
    border-color: #db2777;
    color: #db2777;
    background: #fdf2f8;
    text-decoration: none;
}

/* RESPONSIVE */
.desktop-only { display: flex; }
.mobile-only { display: none; }

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .search-container,
    .nav-right,
    .categories-dropdown,
    .categories-btn {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        overflow: hidden !important;
        clip: rect(0,0,0,0) !important;
    }

    .header-inner {
        height: 56px;
    }

    .nav {
        justify-content: space-between !important;
    }

    .logo {
        margin-right: 0 !important;
    }

    .logo img {
        width: 60px;
    }

    .hamburger {
        display: flex !important;
        margin-left: auto !important;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }

    .mobile-overlay,
    .mobile-menu {
        display: none !important;
    }
}
