.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(87, 64, 43, 0.08);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-logo {
    width: 220px;
    height: auto;
    display: block;
}

.header-bridal-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-decoration: none;
    color: #6b4b35;
    font-weight: 700;
    padding: 6px 0 7px 18px;
    border-radius: 0;
    border: 0;
    border-left: 1px solid rgba(186, 151, 121, 0.32);
    background: transparent;
    box-shadow: none;
    transition: transform 0.22s ease, color 0.22s ease, opacity 0.22s ease, border-color 0.22s ease;
    white-space: nowrap;
    position: relative;
}

.header-bridal-link:hover {
    transform: translateX(1px);
    box-shadow: none;
    border-color: rgba(179, 139, 109, 0.5);
    color: #825739;
}

.header-bridal-link:active {
    transform: translateX(1px) translateY(1px);
}

.header-bridal-link__eyebrow {
    font-size: 0.58rem;
    line-height: 1;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(147, 112, 84, 0.74);
}

.header-bridal-link__title {
    font-size: 0.95rem;
    line-height: 1.1;
    color: #6a4831;
    position: relative;
    padding-right: 18px;
}

.header-bridal-link__title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: calc(100% - 18px);
    height: 1px;
    background: rgba(141, 98, 64, 0.65);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s ease, background 0.22s ease;
}

.header-bridal-link__title::after {
    content: "\2197";
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.82rem;
    color: rgba(147, 112, 84, 0.75);
    transition: transform 0.22s ease, color 0.22s ease;
}

.header-bridal-link:hover .header-bridal-link__title::after {
    transform: translate(2px, -1px);
    color: rgba(130, 87, 57, 0.95);
}

.header-bridal-link:hover .header-bridal-link__title::before {
    transform: scaleX(1);
    background: rgba(130, 87, 57, 0.78);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
}

.nav-menu a:hover {
    color: var(--brand-gold-deep);
    background: #f7f0e8;
}

.menu-icon {
    display: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.menu-icon:hover {
    border-color: var(--border-soft);
    background: #fbf8f4;
}

.bar {
    width: 24px;
    height: 2px;
    background-color: #5a5045;
    margin: 5px 0;
    transition: 0.35s ease;
    display: block;
}

.change .bar1 {
    transform: rotate(-45deg) translate(-4px, 6px);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: rotate(45deg) translate(-4px, -6px);
}

.basket-link {
    position: relative;
    display: inline-block;
    padding: 6px;
    border-radius: 50%;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.basket-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(76, 56, 37, 0.14);
    background: #f7f1eb;
}

.basket-link__inner {
    position: relative;
    display: inline-block;
}

.basket-icon {
    width: 26px;
    height: 26px;
    background-image: url('https://cdn.jsdelivr.net/npm/lucide-static@latest/icons/shopping-basket.svg');
    background-size: cover;
    display: inline-block;
    cursor: pointer;
}

.basket-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #c9a180, #b38b6d);
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.74rem;
    font-weight: 700;
    z-index: 2;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 3px 8px rgba(87, 62, 40, 0.24);
}

.basket-count-badge-flash {
    animation: badgePulse 0.45s ease;
}

.basket-count-popup {
    position: absolute;
    top: -24px;
    right: -2px;
    background: var(--accent-success);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 10px;
    padding: 2px 7px;
    opacity: 0;
    transform: translateY(0);
    pointer-events: none;
}

.basket-count-popup-show {
    animation: badgePopupRise 0.8s ease forwards;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); background: var(--accent-success); }
    100% { transform: scale(1); }
}

@keyframes badgePopupRise {
    0% { opacity: 0; transform: translateY(4px); }
    30% { opacity: 1; transform: translateY(-4px); }
    100% { opacity: 0; transform: translateY(-16px); }
}

footer {
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
    margin-top: var(--space-6);
    background: #fff;
    border-top: 1px solid var(--border-soft);
    color: #7d7369;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 26px 12px 32px;
}

footer a {
    text-decoration: none;
    font-weight: 600;
    overflow-wrap: anywhere;
}

@media screen and (max-width: 768px) {
    .site-header {
        padding: 10px 14px;
    }

    .header-brand {
        gap: 10px;
    }

    .site-logo {
        width: 150px;
    }

    .header-bridal-link {
        gap: 3px;
        padding: 7px 10px 8px 12px;
        border-left: 0;
        border-radius: 12px;
        background: rgba(248, 241, 232, 0.9);
        box-shadow: inset 0 0 0 1px rgba(186, 151, 121, 0.2);
    }

    .header-bridal-link__eyebrow {
        font-size: 0.48rem;
        letter-spacing: 0.18em;
    }

    .header-bridal-link__title {
        font-size: 0.76rem;
        padding-right: 14px;
    }

    .header-bridal-link__title::before {
        width: calc(100% - 14px);
        bottom: -3px;
        transform: scaleX(1);
        background: rgba(130, 87, 57, 0.72);
    }

    .header-bridal-link__title::after {
        font-size: 0.68rem;
        color: rgba(130, 87, 57, 0.88);
    }

    .menu-icon {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 54px;
        right: 12px;
        background: #fff;
        border: 1px solid var(--border-soft);
        border-radius: 12px;
        width: 180px;
        padding: 12px;
        box-shadow: var(--shadow-soft);
        z-index: 30;
        animation: fadeInUpSoft 0.28s ease;
    }
}

