:root {
    --ss-wine: #74070e;
    --ss-gold: #ffeda8;
    --ss-blue: #d2e8ff;
    --ss-black: #111111;
    --ss-muted: #5c5c5c;
    --ss-border: #e5e5e5;
}

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

html {
    background: var(--ss-wine);
    width: 100%;
    max-width: 100%;
    font-size: 15px;
}

body {
    font-family: 'Sora', 'Poppins', sans-serif;
    color: var(--ss-black);
    background: #ffffff;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.site-header,
.main-navigation,
.ss-announcement,
.ss-hero,
.ss-custom-footer,
.main-content {
    width: 100%;
    max-width: 100%;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.site-header {
    width: 100%;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2000;
}

.ss-announcement {
    position: relative;
    overflow: hidden;
    background: repeating-linear-gradient(
        90deg,
        var(--ss-gold) 0 4px,
        #ffffff 4px 5.5px
    );
    color: var(--ss-wine);
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.ss-announcement marquee,
.ss-announcement span,
.ss-announcement a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    font-family: inherit;
    line-height: 1.4;
}

.ss-announcement marquee {
    width: 100%;
    white-space: nowrap;
}

.ss-announcement span {
    display: inline-block;
    padding: 0 56px;
}

.ss-announcement a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.main-navigation {
    border-bottom: 1px solid var(--ss-border);
    background: #fff;
}

.nav-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 14px 4%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.nav-center {
    order: 0;
}

.logo-link {
    display: block;
}

.logo {
    height: 58px;
    width: auto;
    display: block;
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    color: var(--ss-black);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    position: relative;
    padding: 6px 0;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--ss-wine);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--ss-wine);
    transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.ss-currency-switch {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4000;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ss-border);
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.12);
}

.ss-currency-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 78px;
    height: 40px;
    padding: 0 10px;
    color: var(--ss-black);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.4px;
}

.ss-currency-switch a.is-active {
    background: var(--ss-wine);
    color: var(--ss-gold);
}

.ss-currency-switch .ss-currency-usd,
.ss-currency-switch .ss-currency-usd.is-active {
    background: #d2e8ff;
    color: #74070e;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--ss-black);
    font-size: 17px;
    cursor: pointer;
    padding: 8px;
    position: relative;
    transition: color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 40px;
    height: 40px;
}

.icon-btn:hover {
    color: var(--ss-wine);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    background-color: var(--ss-wine);
    color: #fff;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.mobile-menu-toggle {
    display: none;
}

.site-alert {
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    padding: 15px 4%;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
}

.site-alert-dynamic {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4%;
}

.site-alert-success {
    background: #eef8f0;
    color: #1f7a3b;
    border: 1px solid #b3e2c3;
}

.site-alert-error {
    background: #fdecea;
    color: var(--ss-wine);
    border: 1px solid #f5c6c0;
}

@media (max-width: 992px) {
    .nav-container {
        grid-template-columns: auto 1fr auto;
        padding: 12px 18px;
    }

    .logo {
        height: 48px;
    }

    .nav-left {
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .ss-announcement marquee,
    .ss-announcement span,
    .ss-announcement a {
        font-size: 11px;
        letter-spacing: 1.8px;
    }

    .ss-announcement span {
        padding: 0 36px;
    }

    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 14px;
    }

    .nav-left {
        position: fixed;
        top: 0;
        left: -100%;
        width: 260px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 90px 28px 30px;
        gap: 22px;
        box-shadow: 12px 0 30px rgba(0, 0, 0, 0.08);
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .nav-left.active {
        left: 0;
    }

    .nav-link {
        font-size: 13px;
        width: 100%;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--ss-border);
    }

    .nav-center {
        order: 0;
    }

    .logo {
        height: 42px;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .ss-announcement {
        height: auto;
        min-height: 46px;
        padding: 10px 0;
    }

    .ss-currency-switch a {
        min-width: 68px;
        height: 36px;
        font-size: 11px;
    }
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.search-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-bar-container.active {
    opacity: 1;
    visibility: visible;
}

.search-bar-content {
    width: 100%;
    max-width: 100%;
    padding: 0 4%;
}

.search-title {
    font-size: 27px;
    font-weight: 400;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.search-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--ss-black);
}

.search-form {
    width: 100%;
}

.search-input {
    flex-grow: 1;
    padding: 16px 0;
    border: none;
    font-size: 1.1em;
    outline: none;
    font-family: inherit;
    background: transparent;
}

.search-submit-btn,
.search-close-btn {
    background: transparent;
    color: var(--ss-black);
    border: none;
    padding: 15px 12px;
    font-size: 1.1em;
    cursor: pointer;
}

.search-submit-btn:hover,
.search-close-btn:hover {
    color: var(--ss-wine);
}

.ss-purchase-popup {
    position: fixed;
    left: 20px;
    bottom: 24px;
    z-index: 4500;
    display: flex;
    align-items: center;
    gap: 16px;
    width: min(420px, calc(100vw - 40px));
    padding: 16px 44px 16px 16px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(17, 17, 17, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.7s ease;
}

.ss-purchase-popup.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.ss-purchase-popup img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fafafa;
}

.ss-purchase-popup-copy {
    min-width: 0;
}

.ss-purchase-popup-copy p {
    margin: 0;
    color: #888;
    font-size: 14px;
    line-height: 1.35;
}

.ss-purchase-popup-copy strong {
    display: block;
    margin: 6px 0;
    color: #111;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
}

.ss-purchase-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #888;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.ss-store-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.ss-store-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ss-store-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.58);
}

.ss-store-modal-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: 42px 36px 34px;
    background: #fffdf8;
    border: 1px solid rgba(255, 237, 168, 0.8);
    box-shadow: 0 24px 70px rgba(17, 17, 17, 0.28);
    text-align: center;
}

.ss-store-modal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(90deg, #ffeda8 0 4px, #ffffff 4px 5.5px);
}

.ss-store-modal-kicker {
    margin: 0 0 10px;
    color: #74070e;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.ss-store-modal-card h2 {
    margin: 0 0 18px;
    color: #74070e;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 400;
    letter-spacing: -0.6px;
    line-height: 1.15;
}

.ss-store-modal-card p {
    margin: 0 0 12px;
    color: #333;
    font-size: 15px;
    line-height: 1.65;
}

.ss-store-modal-card a {
    color: #74070e;
    font-weight: 600;
}

.ss-store-modal-hours {
    display: inline-block;
    margin: 8px 0 14px;
    padding: 8px 16px;
    background: #d2e8ff;
    color: #74070e;
    font-weight: 600;
}

.ss-store-modal-cta {
    display: inline-flex;
    margin-top: 12px;
    padding: 12px 28px;
    border: 0;
    background: #74070e;
    color: #ffeda8;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    cursor: pointer;
}

.ss-store-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #74070e;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 767px) {
    .ss-store-modal-card {
        padding: 32px 22px 26px;
    }

    .ss-store-modal-kicker {
        font-size: 7.7px;
        letter-spacing: 1.7px;
    }

    .ss-store-modal-card h2 {
        font-size: clamp(18px, 2.8vw, 25px);
        margin-bottom: 12px;
    }

    .ss-store-modal-card p {
        font-size: 10.5px;
        margin-bottom: 8px;
    }

    .ss-store-modal-hours {
        padding: 6px 12px;
        font-size: 10.5px;
    }

    .ss-store-modal-cta {
        font-size: 7.7px;
        padding: 10px 20px;
        letter-spacing: 1.1px;
    }

    .ss-store-modal-close {
        font-size: 20px;
    }

    .ss-purchase-popup-copy p {
        font-size: 9.8px;
    }

    .ss-purchase-popup-copy strong {
        font-size: 15.4px;
    }
}
