
/* ========================================
   VELORA HEADER - MAIN CSS
   Theme: Pink, Off-white and Dark
======================================== */

:root {
    --velora-pink: #e25d7a;
    --velora-pink-dark: #c94a68;
    --velora-text: #2a1f24;
    --velora-muted: #8a6f76;
    --velora-bg: #fffaf7;
    --velora-border: #f0d8d0;

    /* Compatibility with existing stylesheet */
    --primary-color: #e25d7a;
    --dark-color: #2a1f24;
    --border-color: #f0d8d0;
}

/* HEADER BASE */

.velora-header,
.velora-header * {
    box-sizing: border-box;
}

.velora-header {
    position: relative;
    z-index: 1040;
    width: 100%;
    color: var(--velora-text);
    background: rgba(255, 250, 247, 0.96);
    box-shadow: 0 3px 18px rgba(42, 31, 36, 0.045);
    font-family: var(--body, 'Nunito', sans-serif);
}

/* ANNOUNCEMENT BAR
   Use .announce only if your Blade contains this element. */

.announce {
    background: linear-gradient(
        90deg,
        #2a1f24,
        #5c3140 40%,
        #e25d7a
    );
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 0;
    letter-spacing: 0.02em;
}

.announce .btn-close {
    filter: invert(1);
    opacity: 0.7;
}

.announce .btn-close:hover {
    opacity: 1;
}

/* HEADER CONTAINER */

.velora-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-right: 32px;
    padding-left: 32px;
}

/* TOP BAR */

.velora-topbar {
    border-bottom: 1px solid var(--velora-border);
}

.velora-topbar-inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: 190px minmax(200px, 1fr) 160px;
    align-items: center;
    gap: 28px;
}

/* LOGO */

.velora-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    white-space: nowrap;
    color: var(--velora-text) !important;
    text-decoration: none !important;
}

.velora-logo:hover {
    color: var(--velora-pink) !important;
}

.velora-logo-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--velora-pink);
    color: #fff;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
}

.velora-logo-text {
    font-family: var(--heading, 'Fraunces', serif);
    color: var(--velora-text);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* SEARCH BAR */

.velora-search {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 3px 4px 3px 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--velora-border);
    border-radius: 999px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.velora-search:focus-within {
    border-color: var(--velora-pink);
    box-shadow: 0 0 0 3px rgba(226, 93, 122, 0.10);
}

.velora-search input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 18px;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--velora-text);
    font-family: inherit;
    font-size: 14px;
}

.velora-search input::placeholder {
    color: var(--velora-muted);
    opacity: 0.9;
}

.velora-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--velora-pink);
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.velora-search button:hover {
    background: var(--velora-pink-dark);
    transform: scale(1.03);
}

/* HEADER ICONS: ACCOUNT, WISHLIST, CART */

.velora-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.velora-action,
.icon-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--velora-border);
    border-radius: 50%;
    background: #fff;
    color: var(--velora-text) !important;
    font-size: 19px;
    text-decoration: none !important;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.velora-action:hover,
.icon-chip:hover {
    color: var(--velora-pink) !important;
    border-color: var(--velora-pink);
    background: #fff5f6;
    transform: translateY(-2px);
}

/* BADGE / COUNT */

.velora-badge,
.icon-chip .count {
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 4px;
    border: 2px solid var(--velora-bg);
    border-radius: 999px;
    background: var(--velora-pink);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

/* MAIN NAVIGATION */

.velora-nav,
.nav-main {
    display: block;
    width: 100%;
    background: transparent;
}

.velora-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 27px;
    min-height: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.velora-nav-list li {
    margin: 0;
    padding: 0;
}

.velora-nav-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--velora-text);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.velora-nav-list a:hover,
.velora-nav-list a.active {
    color: var(--velora-pink);
}

.velora-nav-list a.active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--velora-pink);
    content: "";
}

/* COMPATIBILITY WITH BOOTSTRAP NAVBAR */

.nav-main .navbar-nav {
    flex-wrap: wrap;
}

.nav-main .nav-link {
    position: relative;
    padding: 0.85rem;
    color: var(--velora-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.nav-main .nav-link:hover,
.nav-main .nav-link.active {
    color: var(--velora-pink);
}

.nav-main .nav-link.active::after {
    position: absolute;
    right: 0.85rem;
    bottom: 0.45rem;
    left: 0.85rem;
    height: 3px;
    border-radius: 99px;
    background: var(--velora-pink);
    content: "";
}

/* MOBILE MENU BUTTON */

.velora-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--velora-border);
    border-radius: 10px;
    background: #fff;
    color: var(--velora-text);
    font-size: 25px;
    cursor: pointer;
}

.velora-mobile-toggle:hover {
    border-color: var(--velora-pink);
    color: var(--velora-pink);
}

/* TABLET */

@media (max-width: 1100px) {
    .velora-container {
        padding-right: 24px;
        padding-left: 24px;
    }

    .velora-topbar-inner {
        grid-template-columns: 170px minmax(180px, 1fr) 145px;
        gap: 16px;
    }

    .velora-logo-text {
        font-size: 23px;
    }

    .velora-actions {
        gap: 8px;
    }

    .velora-action,
    .icon-chip {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .velora-nav-list {
        gap: 0 18px;
    }
}

/* MOBILE AND SMALL TABLET */

@media (max-width: 850px) {
    .velora-container {
        padding-right: 18px;
        padding-left: 18px;
    }

    .velora-topbar-inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 12px;
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .velora-logo {
        grid-column: 1;
        grid-row: 1;
    }

    .velora-mobile-toggle {
        display: inline-flex;
        grid-column: 2;
        grid-row: 1;
    }

    .velora-actions {
        grid-column: 3;
        grid-row: 1;
        gap: 8px;
    }

    .velora-search {
        grid-column: 1 / -1;
        grid-row: 2;
        height: 44px;
    }

    .velora-search button {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .velora-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        border-top: 1px solid var(--velora-border);
        background: #fff;
        box-shadow: 0 12px 24px rgba(42, 31, 36, 0.10);
    }

    .velora-nav.is-open {
        display: block;
    }

    .velora-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        min-height: auto;
        padding: 8px 0 14px;
    }

    .velora-nav-list li {
        width: 100%;
    }

    .velora-nav-list a {
        display: flex;
        width: 100%;
        min-height: 44px;
        padding: 0 8px;
        border-bottom: 1px solid #f8eeeb;
        white-space: normal;
    }

    .velora-nav-list a.active::after {
        top: 9px;
        right: auto;
        bottom: 9px;
        left: 0;
        width: 3px;
        height: auto;
        border-radius: 4px;
    }

    .nav-main .navbar-nav {
        align-items: stretch;
    }
}

/* SMALL MOBILE */

@media (max-width: 420px) {
    .velora-container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .velora-topbar-inner {
        gap: 8px;
    }

    .velora-logo {
        gap: 7px;
    }

    .velora-logo-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 18px;
    }

    .velora-logo-text {
        font-size: 19px;
        letter-spacing: 1px;
    }

    .velora-mobile-toggle {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .velora-actions {
        gap: 5px;
    }

    .velora-action,
    .icon-chip {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    .velora-badge,
    .icon-chip .count {
        top: -5px;
        right: -5px;
        min-width: 17px;
        height: 17px;
        font-size: 9px;
    }

    .velora-search input {
        padding-right: 8px;
        padding-left: 13px;
        font-size: 12px;
    }
}
