html {
    font-size: 14px;
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

:root {
    --pf-cocoa-900: #241813;
    --pf-cocoa-800: #4d3429;
    --pf-cocoa-700: #6f4b3b;
    --pf-cocoa-600: #926950;
    --pf-cream-100: #fffdfb;
    --pf-cream-200: #f7f0e9;
    --pf-line: rgba(146, 105, 80, 0.18);
    --pf-line-strong: rgba(146, 105, 80, 0.34);
    --pf-shadow: 0 16px 34px rgba(53, 37, 28, 0.08);
    --pf-font-ui: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --pf-weight-regular: 400;
    --pf-weight-medium: 500;
    --pf-weight-semibold: 700;
    --pf-weight-bold: 800;
    --pf-weight-black: 900;
    --pf-header-offset: 96px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem #258cfb;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--pf-cream-100);
    color: var(--pf-cocoa-900);
    font-family: var(--pf-font-ui);
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
}

.navbar {
    position: relative;
    z-index: 1050;
    padding: 0.9rem clamp(1rem, 2vw, 1.45rem);
    border: 1px solid var(--pf-line);
    border-top: 0;
    border-radius: 0 0 26px 26px;
    background: var(--pf-cream-100);
    box-shadow: var(--pf-shadow);
}

.navbar-top {
    display: flex;
    width: min(100%, 1480px);
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 0.95rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-height: 48px;
    text-decoration: none;
    transition: transform 0.18s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--pf-line-strong);
    border-radius: 14px;
    background: linear-gradient(180deg, #fffdfb 0%, #f3e8de 100%);
    box-shadow: 0 10px 20px rgba(53, 37, 28, 0.08);
    overflow: hidden;
}

.navbar-brand-mark img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.navbar-brand-copy {
    display: inline-flex;
    align-items: center;
}

.title-nunito-expanded {
    margin: 0;
    color: var(--pf-cocoa-700);
    font-family: var(--pf-font-ui);
    font-size: clamp(1.34rem, 1.95vw, 1.68rem);
    font-style: italic;
    font-weight: var(--pf-weight-bold);
    font-stretch: 112%;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
}

.navbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.navbar-right .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.62rem 0.92rem;
    border: 1px solid var(--pf-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 18px rgba(53, 37, 28, 0.05);
    color: var(--pf-cocoa-800);
    font-size: 0.68rem;
    font-weight: var(--pf-weight-bold);
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.navbar-right .nav-link:hover,
.navbar-right .nav-link.active {
    background: var(--pf-cream-100);
    border-color: var(--pf-line-strong);
    box-shadow: 0 12px 22px rgba(53, 37, 28, 0.08);
    color: var(--pf-cocoa-900);
    transform: translateY(-1px);
}

.navbar-right .nav-icon-link {
    width: 42px;
    height: 42px;
    padding: 0;
}

.navbar-right .login-link {
    border-color: rgba(43, 28, 22, 0.92);
    background: linear-gradient(145deg, #6f4b3b 0%, #2b1c16 100%);
    box-shadow: 0 12px 22px rgba(43, 28, 22, 0.16);
    color: #fffdfb;
}

.navbar-right .login-link:hover,
.navbar-right .login-link.active {
    background: linear-gradient(145deg, #5d3e30 0%, #241813 100%);
    color: #fffdfb;
}

.nav-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.pf-store-cart-link {
    position: relative;
}

.pf-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--pf-cocoa-900);
    color: #fff;
    font-size: 0.68rem;
    font-weight: var(--pf-weight-semibold);
    line-height: 18px;
    text-align: center;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--pf-line-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 18px rgba(53, 37, 28, 0.08);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(53, 37, 28, 0.12);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--pf-cocoa-600);
    outline-offset: 3px;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--pf-cocoa-900);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

.navbar.mobile-open .nav-toggle-bars {
    transform: rotate(45deg);
}

.navbar.mobile-open .nav-toggle-bars::before {
    transform: rotate(-90deg) translateX(-6px);
}

.navbar.mobile-open .nav-toggle-bars::after {
    opacity: 0;
}

.layout-content {
    padding: calc(var(--pf-header-offset) + 0.4rem) clamp(0.75rem, 2vw, 1.35rem) 2.5rem;
}

footer.footer {
    flex-shrink: 0;
    width: 100%;
    padding: 1rem 0 1.25rem;
    border-top: 1px solid var(--pf-line);
    background: transparent;
    color: var(--pf-cocoa-700);
    font-size: 0.88rem;
    font-weight: var(--pf-weight-medium);
    text-align: center;
}

.footer-link {
    color: var(--pf-cocoa-700);
    font-weight: var(--pf-weight-semibold);
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-link:hover {
    color: var(--pf-cocoa-900);
}

@media (max-width: 900px) {
    :root {
        --pf-header-offset: 90px;
    }

    .navbar {
        padding: 0.88rem 0.85rem;
        border-radius: 0 0 20px 20px;
    }

    .title-nunito-expanded {
        font-size: 1.4rem;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .navbar-right {
        display: none;
        width: 100%;
        padding-top: 0.7rem;
        gap: 0.5rem;
    }

    .navbar.mobile-open .navbar-right {
        display: flex;
    }

    .navbar-right .nav-link:not(.nav-icon-link) {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .navbar-right .nav-icon-link {
        flex: 0 0 40px;
    }
}

@media (max-width: 560px) {
    .layout-content {
        padding-inline: 0.65rem;
    }
}
