/* ============================================
   WISHRITE — LAYOUT
   Header, Footer, Navigation, Announcement Bar
   ============================================ */

/* ── Announcement Bar (Section 1: Dark Aubergine Promotional Bar) ── */
.announcement-bar {
    background: #53374F;
    color: #FFFFFF;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 101;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 16px;
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
}

.announcement-item svg {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.announcement-sep {
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    user-select: none;
}

@media (max-width: 768px) {
    .announcement-bar-inner {
        gap: 12px;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        scrollbar-width: none;
    }
    .announcement-bar-inner::-webkit-scrollbar {
        display: none;
    }
    .announcement-item {
        font-size: 10px;
        flex-shrink: 0;
    }
}

/* ── Header (Section 2: Solid Ivory Navigation Header Separate from Hero) ── */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px var(--page-gutter);
    border-bottom: 1px solid rgba(85, 68, 83, 0.10);
    background: #F5F2EC;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    box-shadow: 0 1px 4px rgba(40, 33, 44, 0.04);
    transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.header.scrolled {
    background: rgba(245, 242, 236, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(40, 33, 44, 0.06);
}

/* Header Scrolled Fixed State (Transitions smoothly into frosted white luxury header) */
.header.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--wr-border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    animation: headerSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Logo */
.header-logo {
    cursor: pointer;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-left: clamp(20px, 2.5vw, 40px);
    transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}

.header-logo:hover {
    opacity: 0.92;
}

.header-logo-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.header-logo-svg {
    height: 48px;
    width: auto;
    max-width: 175px;
    display: block;
    color: var(--wr-primary);
    fill: currentColor;
    overflow: visible;
    transition: color 0.35s ease, filter 0.35s ease;
}

.header-logo-svg > path {
    stroke: currentColor;
    stroke-width: 2.2px;
    stroke-linejoin: round;
}

.header-logo-svg .logo-star path {
    stroke: currentColor;
    stroke-width: 1.2px;
}

/* Star Heartbeat Breathing Pulse */
.logo-star {
    transform-origin: 297.8px 58.3px;
    transform-box: view-box;
    animation: starHeartbeat 2.6s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    will-change: transform;
}

@keyframes starHeartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.15);
    }
    28% {
        transform: scale(0.97);
    }
    42% {
        transform: scale(1.18);
    }
    65% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

.header-logo:hover .logo-star {
    animation-duration: 1.8s;
}

.header-logo-text {
    font-family: var(--font-body);
    font-size: 1.65rem;
    font-weight: 300;
    letter-spacing: 0.22em;
    color: var(--wr-primary);
    line-height: 1;
    transition: color 0.35s ease;
}

.header-logo-sub {
    font-family: var(--font-body);
    font-size: 9.5px;
    letter-spacing: 3.5px;
    font-weight: 700;
    color: #53374F;
    margin-top: 3px;
    text-transform: uppercase;
    transition: color 0.35s ease;
}

/* Desktop Nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.header-nav a {
    font-size: 11px;
    font-weight: 500;
    color: #53374F;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #53374F;
    transition: width var(--duration-normal) var(--ease-out);
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 100%;
}

.header-nav a:hover {
    color: #53374F;
    opacity: 0.8;
}

.header-nav a.active {
    color: #53374F;
}

/* Header Icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.header-icon {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: var(--transition-fast);
}

.header-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--wr-text);
    stroke-width: 1.5;
    fill: none;
    transition: var(--transition-fast);
}

.header-icon:hover svg {
    stroke: var(--wr-primary);
}

.header-icon .badge-count {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 17px;
    height: 17px;
    border-radius: var(--radius-full);
    background: var(--wr-primary);
    color: var(--wr-white);
    font-size: 9px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    z-index: var(--z-modal);
    display: none;
    flex-direction: column;
    padding: var(--space-8) var(--container-padding);
}

.search-overlay.active {
    display: flex;
}

.search-overlay-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--wr-border);
}

.search-overlay-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 400;
    color: var(--wr-text);
    background: transparent;
}

.search-overlay-input::placeholder {
    color: var(--wr-text-light);
}

.search-overlay-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: none;
}

.search-overlay-close svg {
    width: 24px;
    height: 24px;
    stroke: var(--wr-text);
    stroke-width: 1.5;
}

.search-results {
    padding-top: var(--space-8);
    overflow-y: auto;
    flex: 1;
}

.search-results-section {
    margin-bottom: var(--space-8);
}

.search-results-title {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--wr-text-light);
    margin-bottom: var(--space-4);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-result-item:hover {
    opacity: 0.7;
}

.search-result-image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    background: var(--wr-bg-cream);
    flex-shrink: 0;
}

.search-result-info h4 {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    margin-bottom: 2px;
}

.search-result-info span {
    font-size: var(--text-xs);
    color: var(--wr-text-muted);
}

/* User Dropdown */
.user-menu-wrapper {
    position: relative;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--wr-white);
    border: 1px solid var(--wr-border);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 210px;
    flex-direction: column;
    z-index: var(--z-dropdown);
    overflow: hidden;
}

.user-dropdown.show {
    display: flex;
}

.user-dropdown a {
    padding: 11px 18px;
    font-size: var(--text-sm);
    color: var(--wr-text);
    border-bottom: 1px solid var(--wr-border-light);
    transition: var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: var(--wr-bg-warm);
    color: var(--wr-primary);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--wr-border-light);
    margin: 2px 0;
}

.user-dropdown a.creator-account-link {
    background: #FAF7F6;
    border-left: 3px solid #5E3435;
    padding: 10px 16px;
}

.user-dropdown a.creator-account-link:hover {
    background: #F5ECE8;
}

.creator-menu-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.creator-menu-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.creator-menu-title {
    font-weight: 600;
    color: #5E3435;
    font-size: 0.88rem;
}

.creator-menu-badge {
    font-size: 0.65rem;
    background: #5E3435;
    color: #fff;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.creator-menu-sub {
    font-size: 0.72rem;
    color: var(--wr-text-muted);
    letter-spacing: 0.3px;
}

/* ── Mobile Menu ── */
.mobile-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.hamburger {
    width: 22px;
    height: 14px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--wr-text);
    position: absolute;
    transition: var(--transition-base);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 6px; }
.hamburger span:nth-child(3) { bottom: 0; }

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--wr-white);
    z-index: var(--z-overlay);
    transform: translateX(-100%);
    transition: transform var(--duration-normal) var(--ease-out);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--wr-border-light);
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    background: none;
}

.mobile-menu-close svg {
    width: 22px;
    height: 22px;
    stroke: var(--wr-text);
    stroke-width: 1.5;
}

.mobile-menu-nav {
    padding: var(--space-6) var(--space-6);
    flex: 1;
}

.mobile-menu-nav a {
    display: block;
    padding: var(--space-4) 0;
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--wr-text);
    border-bottom: 1px solid var(--wr-border-light);
    transition: var(--transition-fast);
}

.mobile-menu-nav a:hover {
    color: var(--wr-primary);
}

.mobile-menu-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--wr-border);
}

.mobile-menu-footer a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    font-size: var(--text-sm);
    color: var(--wr-text-muted);
}

.mobile-menu-footer a svg {
    width: 18px;
    height: 18px;
    stroke: var(--wr-text-muted);
    stroke-width: 1.5;
    fill: none;
}

/* ── Footer (Editorial Luxury 925 Sterling Silver Design) ── */
.site-footer {
    position: relative;
    background-color: #432C40;
    background-image: url('../assets/decorations/footer-floral-bg.jpg');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    color: rgba(255, 255, 255, 0.88);
    padding: 56px 64px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

/* Hide legacy repeat pattern so photographic floral silk background is displayed cleanly */
.site-footer::before {
    display: none;
}

.footer-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-bottom: 0;
}

/* Brand Column */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand .footer-logo-brand {
    cursor: pointer;
    display: inline-flex;
    margin-bottom: 4px;
}

.footer-brand .footer-logo-svg {
    height: 38px;
    width: auto;
    max-width: 160px;
    color: #FFFFFF !important;
    fill: currentColor;
    display: block;
    transition: opacity 0.25s ease;
}

.footer-brand .footer-logo-svg:hover {
    opacity: 0.92;
}

.footer-descriptor {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #D8D5D8 !important;
    font-weight: 500;
    margin-top: 8px;
    margin-bottom: 14px;
    line-height: 1.2;
}

.footer-descriptor::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: #D8D5D8;
    opacity: 0.55;
    margin-top: 10px;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82) !important;
    max-width: 320px;
    margin: 0;
}

/* Navigation Columns */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FFFFFF !important;
    margin: 0 0 18px 0;
    line-height: 1.3;
}

.footer-column h4::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: #D8D5D8;
    opacity: 0.55;
    margin-top: 10px;
}

.footer-column a {
    display: inline-block;
    width: fit-content;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78) !important;
    padding: 6px 0;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-column a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #FFFFFF;
    transition: width 0.25s ease;
}

.footer-column a:hover {
    color: #FFFFFF !important;
}

.footer-column a:hover::after {
    width: 100%;
}

/* Subtle Brand Signature Divider */
.footer-signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 36px auto 20px;
    width: 100%;
    opacity: 0.45;
    pointer-events: none;
}

.footer-signature-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D8D5D8 20%, #D8D5D8 80%, transparent);
}

.footer-signature-icon {
    width: 22px;
    height: 22px;
    color: #D8D5D8;
    fill: currentColor;
    flex-shrink: 0;
}

/* Copyright & Social Area */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.62) !important;
    margin: 0;
    letter-spacing: 0.02em;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #D8D5D8 !important;
    background: transparent;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.45);
    color: #FFFFFF !important;
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 17px;
    height: 17px;
    transition: stroke 0.25s ease, fill 0.25s ease;
}

.footer-social a[aria-label="Instagram"] svg {
    fill: none;
    stroke: #D8D5D8;
    stroke-width: 1.8;
}

.footer-social a[aria-label="Instagram"]:hover svg {
    stroke: #FFFFFF;
}

.footer-social a[aria-label="Facebook"] svg,
.footer-social a[aria-label="Pinterest"] svg {
    fill: #D8D5D8;
    stroke: none;
}

.footer-social a[aria-label="Facebook"]:hover svg,
.footer-social a[aria-label="Pinterest"]:hover svg {
    fill: #FFFFFF;
}

/* Mobile Filter Bottom Sheet */
.filter-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--wr-white);
    z-index: var(--z-modal);
    border-radius: 16px 16px 0 0;
    box-shadow: var(--shadow-overlay);
    transform: translateY(100%);
    transition: transform var(--duration-normal) var(--ease-out);
    max-height: 80vh;
    overflow-y: auto;
    display: none;
}

.filter-sheet.open {
    display: block;
    transform: translateY(0);
}

.filter-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--wr-border);
    position: sticky;
    top: 0;
    background: var(--wr-white);
    z-index: 1;
}

.filter-sheet-header h3 {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 500;
}

.filter-sheet-body {
    padding: var(--space-6);
}

.filter-group-title {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--wr-text-muted);
    margin-bottom: var(--space-3);
    margin-top: var(--space-5);
}

.filter-group-title:first-child {
    margin-top: 0;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--wr-text);
}

.filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--wr-primary);
}

.filter-sheet-footer {
    padding: var(--space-5) var(--space-6);
    border-top: 1px solid var(--wr-border);
    display: flex;
    gap: var(--space-3);
    position: sticky;
    bottom: 0;
    background: var(--wr-white);
}

/* Filter overlay backdrop */
.filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: calc(var(--z-modal) - 1);
    display: none;
    opacity: 0;
    transition: opacity var(--duration-normal);
}

.filter-backdrop.show {
    display: block;
    opacity: 1;
}
