/* ========================================
   Shared foundations
======================================== */

.rt-announcement,
.rt-header {
    --rt-header-black: #111111;
    --rt-header-gold: #c9a46a;
    --rt-header-white: #ffffff;
    --rt-header-text: #181818;
    --rt-header-border: #e7e1d8;

    font-family: "Inter", Arial, sans-serif;
}

.rt-announcement,
.rt-announcement *,
.rt-header,
.rt-header * {
    box-sizing: border-box;
}

/* ========================================
   Announcement bar
======================================== */

.rt-announcement {
    background-color: var(--rt-header-black);
    color: var(--rt-header-white);
}

.rt-announcement__list {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 1200px;
    min-height: 32px;

    margin: 0 auto;
    padding: 8px 16px;

    list-style: none;
}

.rt-announcement__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 0;

    color: #e5e5e5;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.rt-announcement__icon {
    display: block;
    flex-shrink: 0;

    width: 16px;
    height: 16px;

    color: var(--rt-header-gold);
}

.rt-announcement__item--secondary {
    display: none;
}

/* ========================================
   Header layout
======================================== */

.rt-header {
    background-color: var(--rt-header-white);
    color: var(--rt-header-text);

    border-bottom: 1px solid var(--rt-header-border);
}

.rt-header__inner {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 88px;
    align-items: center;

    width: 100%;
    max-width: 1200px;
    min-height: 64px;

    margin-inline: auto;
    padding-inline: 16px;
}

.rt-header__leading,
.rt-header__actions {
    display: flex;
    align-items: center;
}

.rt-header__leading {
    justify-content: flex-start;
}

.rt-header__actions {
    justify-content: flex-end;
}

/* ========================================
   Wordmark
======================================== */

.rt-header__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;

    min-width: 0;

    text-align: center;
}

.rt-header__brand-name {
    display: block;

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(0.875rem, 4.6vw, 1.5rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.035em;

    text-transform: uppercase;
    white-space: nowrap;
}

.rt-header__brand-tagline {
    display: block;
    margin-top: 2px;

    font-size: 0.4375rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.24em;

    text-transform: uppercase;
    white-space: nowrap;
}

/* ========================================
   Icon controls
======================================== */

.rt-header__icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;

    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;

    appearance: none;
    border: 0;
    border-radius: 6px;
    background: transparent;

    color: inherit;
    font: inherit;
    text-decoration: none;

    cursor: pointer;
}

.rt-header__icon-button svg {
    display: block;
    flex-shrink: 0;

    width: 24px;
    height: 24px;
}

/* Keep the intended visual appearance while behavior is pending. */
.rt-header__icon-button:disabled {
    opacity: 1;
    color: inherit;
    cursor: default;
}

.rt-header__icon-button:focus-visible {
    outline: 2px solid var(--rt-header-black);
    outline-offset: 2px;
}

/* ========================================
   Shopping bag badge
======================================== */

.rt-header__cart {
    position: relative;
}

.rt-header__cart-count {
    position: absolute;
    top: 3px;
    right: 1px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 16px;
    height: 16px;
    padding-inline: 4px;

    border-radius: 999px;
    background-color: var(--rt-header-gold);
    color: var(--rt-header-black);

    font-size: 0.5625rem;
    font-weight: 600;
    line-height: 1;
}

/* ========================================
   Wider mobile screens
======================================== */

@media (min-width: 400px) {
    .rt-announcement__list {
        flex-wrap: wrap;
        column-gap: 8px;
        row-gap: 4px;
    }

    .rt-announcement__item {
        font-size: 0.6875rem;
    }

    .rt-announcement__item--secondary {
        display: flex;

        padding-inline-start: 8px;
        border-inline-start: 1px solid rgb(255 255 255 / 45%);
    }

    .rt-header__brand-tagline {
        font-size: 0.5rem;
    }
}

/* ========================================
   Tablet and desktop spacing
======================================== */

@media (min-width: 768px) {
    .rt-announcement__list {
        column-gap: 12px;
        padding-inline: 24px;
    }

    .rt-announcement__item {
        font-size: 0.75rem;
    }

    .rt-announcement__item--secondary {
        padding-inline-start: 12px;
    }

    .rt-header__inner {
        min-height: 72px;
        padding-inline: 24px;
    }
}


/* ========================================
   Sidebar css
======================================== */

/* Lock the background while preserving its scroll position. */
html.rt-menu-open {
    overflow: hidden;
}

html.rt-menu-open body {
    position: fixed;
    top: var(--rt-menu-scroll-y, 0px);
    right: 0;
    left: 0;
    overflow: hidden;
}

/* Full-screen modal surface; the panel occupies only its left side. */
.rt-mobile-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: #181818;
    font-family: "Inter", sans-serif;
}

.rt-mobile-menu[open] {
    display: block;
}

.rt-mobile-menu,
.rt-mobile-menu * {
    box-sizing: border-box;
}

.rt-mobile-menu::backdrop {
    background: rgb(17 17 17 / 0%);
    transition: background-color 300ms ease;
}

.rt-mobile-menu.is-open::backdrop {
    background: rgb(17 17 17 / 48%);
}

.rt-mobile-menu__panel {
    display: flex;
    flex-direction: column;
    width: 88%;
    max-width: 400px;
    height: 100%;
    overflow: hidden;
    background: #f8f6f2;
    transform: translateX(-100%);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Brand and close control stay visible while the links scroll. */
.rt-mobile-menu__header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 16px 24px;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
}

.rt-mobile-menu__brand {
    margin: 0;
    color: #111111;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.rt-mobile-menu__close {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #181818;
    cursor: pointer;
}

.rt-mobile-menu__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding: 0 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

.rt-mobile-menu__body > nav,
.rt-mobile-menu__bottom {
    flex-shrink: 0;
}

/* Navigation groups */
.rt-mobile-menu__group {
    margin: 0;
    padding: 8px 0 16px;
    list-style: none;
}

.rt-mobile-menu__group + .rt-mobile-menu__group {
    padding-top: 16px;
    border-top: 1px solid #e7e1d8;
}

.rt-mobile-menu__link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 8px;
    border-radius: 6px;
    color: #6c6862;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.rt-mobile-menu__link--shop {
    color: #181818;
    font-weight: 600;
}

.rt-mobile-menu__link--category {
    min-height: 48px;
    color: #181818;
    font-size: 16px;
    font-weight: 500;
}

.rt-mobile-menu__arrow {
    flex-shrink: 0;
    margin-left: auto;
    color: #c9a46a;
    font-size: 20px;
    line-height: 1;
}

.rt-mobile-menu__icon {
    flex-shrink: 0;
    color: #181818;
}

/* Support and social links */
.rt-mobile-menu__bottom {
    margin-top: auto;
    padding-top: 24px;
}

.rt-mobile-menu__support {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 16px;
    border: 1px solid #e7e1d8;
    border-radius: 8px;
    background: #ffffff;
    color: #181818;
    text-decoration: none;
}

.rt-mobile-menu__support-accent {
    flex: 0 0 4px;
    align-self: stretch;
    border-radius: 2px;
    background: #25d366;
}

.rt-mobile-menu__support-title,
.rt-mobile-menu__support-text {
    display: block;
    overflow-wrap: anywhere;
}

.rt-mobile-menu__support-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.rt-mobile-menu__support-text {
    margin-top: 4px;
    color: #6c6862;
    font-size: 12px;
    line-height: 1.5;
}

.rt-mobile-menu__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    margin-top: 16px;
}

.rt-mobile-menu__socials a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #6c6862;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
}

.rt-mobile-menu [aria-disabled="true"] {
    cursor: default;
}

.rt-mobile-menu :where(button, a):focus-visible {
    outline: 2px solid #8a6735;
    outline-offset: 3px;
}

@media (hover: hover) {
    .rt-mobile-menu__close:hover,
    .rt-mobile-menu__link[href]:hover {
        background: #f1ede6;
        color: #111111;
    }

    .rt-mobile-menu__support[href]:hover {
        border-color: #c9a46a;
    }

    .rt-mobile-menu__socials a[href]:hover {
        color: #181818;
        text-decoration: underline;
        text-underline-offset: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rt-mobile-menu__panel,
    .rt-mobile-menu::backdrop {
        transition: none;
    }
}
/* ========================================
   Sidebar css
======================================== */

.rt-header__brand {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
/* Announcement links inherit the existing strip typography and color. */
.rt-announcement__link { color: inherit; text-decoration: none; }
.rt-announcement__link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.rt-announcement__item > span,
.rt-announcement__link { min-width: 0; overflow-wrap: anywhere; }
