/* ===== home.css ===== */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 1280px) {
    .nav-container {
        padding: 1.15rem 2.6rem;
    }

    .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    html.is-drawer-active,
    html.is-drawer-active body {
        overflow: hidden;
    }

    body {
        padding-bottom: calc(94px + env(safe-area-inset-bottom, 0));
    }

    .nav-container {
        position: relative;
        align-items: center;
        gap: 0.85rem;
        padding: 1.1rem clamp(1.5rem, 5vw, 2.4rem);
    }

    .brand .brand-emblem {
        animation: brandFloatMobile 6s ease-in-out infinite;
        will-change: transform, box-shadow;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: 0.4rem;
        z-index: 1102;
    }

    .search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        width: 46px;
        height: 46px;
        border-radius: 16px;
        border: 1px solid rgba(214, 129, 54, 0.28);
        background: rgba(255, 255, 255, 0.82);
        color: #5c3720;
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
        transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
        z-index: 1102;
    }

    .search-toggle:hover,
    .search-toggle:focus-visible {
        background: rgba(255, 255, 255, 0.95);
        border-color: rgba(214, 129, 54, 0.4);
        box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
        outline: none;
    }

    .search-toggle-icon svg {
        width: 20px;
        height: 20px;
    }

    .primary-nav {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(360px, 86vw);
        transform: translateX(-104%);
        transition: transform 0.32s cubic-bezier(0.35, 0, 0.25, 1);
        pointer-events: none;
        visibility: hidden;
        z-index: 1200;
    }

    .primary-nav.is-drawer-open {
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
    }

    .mobile-drawer__inner {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: calc(28px + env(safe-area-inset-top, 0)) clamp(1.6rem, 6vw, 2.2rem) calc(30px + env(safe-area-inset-bottom, 0));
        background: linear-gradient(180deg, #fff7ee 0%, #ffe7d0 45%, #ffd9b0 100%);
        color: #5c3720;
        box-shadow: 0 28px 72px -28px rgba(92, 55, 32, 0.28);
        border-right: 1px solid rgba(214, 129, 54, 0.18);
        overflow: hidden;
    }

    .mobile-drawer__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.15rem;
        padding-bottom: 1.6rem;
        border-bottom: 1px solid rgba(214, 129, 54, 0.18);
    }

    .mobile-drawer__brand {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .mobile-drawer__logo {
        display: grid;
        place-items: center;
        width: 56px;
        height: 56px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.92);
        border: 1px solid rgba(214, 129, 54, 0.22);
        box-shadow: 0 14px 28px -18px rgba(92, 55, 32, 0.35);
        animation: brandFloatMobile 7s ease-in-out infinite;
    }

    .mobile-drawer__logo svg {
        width: 36px;
        height: 36px;
    }

    .mobile-drawer__brand-text {
        font-size: 1.16rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        color: #5c3720;
    }

    .mobile-drawer__close {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 14px;
        border: 1px solid rgba(214, 129, 54, 0.26);
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 12px 26px -18px rgba(92, 55, 32, 0.35);
        transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    }

    .mobile-drawer__close span {
        position: absolute;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: rgba(214, 129, 54, 0.86);
        transition: background 0.2s ease;
    }

    .mobile-drawer__close span:first-child {
        transform: rotate(45deg);
    }

    .mobile-drawer__close span:last-child {
        transform: rotate(-45deg);
    }

    .mobile-drawer__close:hover,
    .mobile-drawer__close:focus-visible {
        background: rgba(255, 255, 255, 0.98);
        border-color: rgba(214, 129, 54, 0.42);
        transform: translateY(-1px);
        outline: none;
    }

    .mobile-drawer__body {
        flex: 1;
        overflow-y: auto;
        margin: 1.6rem 0;
        padding-right: 0.25rem;
        padding-bottom: calc(130px + env(safe-area-inset-bottom, 0));
        display: flex;
        flex-direction: column;
        gap: 1.4rem;
    }

    .mobile-drawer__body::-webkit-scrollbar {
        width: 5px;
    }

    .mobile-drawer__body::-webkit-scrollbar-thumb {
        background: rgba(214, 129, 54, 0.28);
        border-radius: 999px;
    }

    .mobile-drawer__eyebrow {
        font-size: 0.78rem;
        letter-spacing: 0.26em;
        text-transform: uppercase;
        color: rgba(214, 129, 54, 0.72);
        margin: 0;
    }

    .mobile-drawer__section {
        display: grid;
        gap: 1rem;
        color: #7a3d11;
    }

    .mobile-drawer__section-eyebrow {
        font-size: 0.74rem;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: rgba(214, 129, 54, 0.78);
        margin: 0;
    }

    .mobile-drawer__section-title {
        margin: 0;
        font-size: 1.32rem;
        font-weight: 600;
        color: #7a3d11;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu__list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 0.75rem;
    }

    .mobile-menu__item {
        min-width: 0;
    }

    .mobile-menu__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.65rem;
        padding: 0.85rem 1rem;
        border-radius: 16px;
        background: rgba(255, 236, 209, 0.68);
        border: 1px solid rgba(214, 129, 54, 0.18);
        color: #7a3d11;
        font-weight: 600;
        letter-spacing: 0.01em;
        text-decoration: none;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    .mobile-menu__link:hover,
    .mobile-menu__link:focus-visible {
        background: rgba(255, 215, 182, 0.85);
        border-color: rgba(214, 129, 54, 0.32);
        color: #5c3720;
        transform: translateY(-1px);
        outline: none;
    }

    .mobile-menu__link.is-active {
        background: rgba(244, 58, 9, 0.12);
        border-color: rgba(244, 58, 9, 0.36);
        color: #f43a09;
    }

    .mobile-menu__details {
        border-radius: 18px;
        border: 1px solid rgba(214, 129, 54, 0.18);
        background: rgba(255, 236, 209, 0.6);
        overflow: hidden;
        transition: box-shadow 0.25s ease, border-color 0.25s ease;
    }

    .mobile-menu__details[open] {
        box-shadow: 0 16px 34px rgba(214, 129, 54, 0.24);
        border-color: rgba(214, 129, 54, 0.32);
        background: rgba(255, 215, 182, 0.72);
    }

    .mobile-menu__details.is-active {
        border-color: rgba(244, 58, 9, 0.28);
    }

    .mobile-menu__details > summary {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
        cursor: pointer;
        font-weight: 600;
        color: #7a3d11;
    }

    .mobile-menu__details > summary::-webkit-details-marker {
        display: none;
    }

    .mobile-menu__details > summary:focus-visible {
        outline: 2px solid rgba(214, 129, 54, 0.45);
        outline-offset: 4px;
    }

    .mobile-menu__label {
        flex: 1;
        min-width: 0;
        font-size: 1.02rem;
    }

    .mobile-menu__label.is-active {
        color: #f43a09;
    }

    .mobile-menu__caret {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        color: rgba(122, 61, 17, 0.52);
        transition: transform 0.2s ease;
    }

    .mobile-menu__details[open] .mobile-menu__caret {
        transform: rotate(90deg);
        color: rgba(122, 61, 17, 0.78);
    }

    .mobile-menu__panel {
        padding: 0 1rem 1rem;
        display: grid;
        gap: 0.9rem;
    }

    .mobile-menu__panel-link {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.45rem 0.75rem;
        border-radius: 999px;
        background: rgba(255, 183, 102, 0.2);
        color: #d68136;
        font-size: 0.74rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        text-decoration: none;
    }

    .mobile-menu__panel-link:hover,
    .mobile-menu__panel-link:focus-visible {
        background: rgba(255, 183, 102, 0.32);
        color: #a3561c;
    }

    .mobile-menu__panel-heading {
        margin: 0;
        font-size: 0.74rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: rgba(214, 129, 54, 0.68);
    }

    .mobile-menu__panel-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 0.45rem;
    }

    .mobile-menu__panel-list a {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.55rem 0.75rem;
        border-radius: 14px;
        background: rgba(255, 236, 209, 0.6);
        color: #7a3d11;
        text-decoration: none;
        font-size: 0.95rem;
        letter-spacing: 0.01em;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .mobile-menu__panel-list a:hover,
    .mobile-menu__panel-list a:focus-visible {
        background: rgba(255, 215, 182, 0.72);
        color: #5c3720;
        transform: translateX(3px);
    }

    .mobile-menu__panel-list a.is-active {
        background: rgba(244, 58, 9, 0.12);
        color: #f43a09;
        transform: none;
    }

    .mobile-collection-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 0.9rem;
    }

    .mobile-collection {
        border-radius: 18px;
        background: rgba(255, 183, 102, 0.12);
        border: 1px solid rgba(214, 129, 54, 0.18);
        overflow: hidden;
    }

    .mobile-collection[open] {
        box-shadow: 0 16px 34px rgba(214, 129, 54, 0.22);
        border-color: rgba(214, 129, 54, 0.32);
    }

    .mobile-collection > summary {
        list-style: none;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 0.85rem;
        padding: 0.85rem 1rem;
        cursor: pointer;
    }

    .mobile-collection > summary::-webkit-details-marker {
        display: none;
    }

    .mobile-collection > summary:focus-visible {
        outline: 2px solid rgba(214, 129, 54, 0.45);
        outline-offset: 4px;
    }

    .mobile-collection__media {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        background: rgba(255, 183, 102, 0.22);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        color: #8b4a14;
        overflow: hidden;
    }

    .mobile-collection__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .mobile-collection__info {
        display: grid;
        gap: 0.3rem;
    }

    .mobile-collection__title {
        font-size: 1.05rem;
        font-weight: 600;
        color: #7a3d11;
    }

    .mobile-collection__teaser {
        font-size: 0.82rem;
        line-height: 1.5;
        color: rgba(122, 61, 17, 0.7);
    }

    .mobile-collection__caret {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        color: rgba(122, 61, 17, 0.48);
        transition: transform 0.2s ease;
    }

    .mobile-collection[open] .mobile-collection__caret {
        transform: rotate(90deg);
        color: rgba(122, 61, 17, 0.72);
    }

    .mobile-collection__panel {
        padding: 0 1rem 1rem;
        display: grid;
        gap: 0.8rem;
    }

    .mobile-collection__all {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.45rem 0.75rem;
        border-radius: 999px;
        background: rgba(255, 183, 102, 0.2);
        color: #d68136;
        font-size: 0.74rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        text-decoration: none;
    }

    .mobile-collection__all:hover,
    .mobile-collection__all:focus-visible {
        color: #a3561c;
        background: rgba(255, 183, 102, 0.28);
    }

    .mobile-collection__children {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 0.35rem;
    }

    .mobile-collection__children a {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.85rem;
        color: rgba(122, 61, 17, 0.82);
        text-decoration: none;
        padding: 0.25rem 0;
        border-bottom: 1px solid rgba(214, 129, 54, 0.18);
    }

    .mobile-collection__children a:hover,
    .mobile-collection__children a:focus-visible {
        color: #a3561c;
        border-color: rgba(214, 129, 54, 0.36);
    }

    .mobile-collection__children li:last-child a {
        border-bottom: none;
    }

    .mobile-link-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 0.75rem;
    }

    .mobile-link-item {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 1.02rem;
        font-weight: 600;
        color: rgba(92, 55, 32, 0.88);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .mobile-link-item.is-active,
    .mobile-link-item:hover,
    .mobile-link-item:focus-visible {
        color: #d68136;
        outline: none;
    }

    .mobile-link-accordion {
        border-radius: 16px;
        border: 1px solid rgba(214, 129, 54, 0.18);
        background: rgba(255, 183, 102, 0.12);
        overflow: hidden;
    }

    .mobile-link-accordion[open] {
        box-shadow: 0 14px 28px rgba(214, 129, 54, 0.22);
        border-color: rgba(214, 129, 54, 0.32);
    }

    .mobile-link-accordion > summary {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
        padding: 0.75rem 0.9rem;
        cursor: pointer;
    }

    .mobile-link-accordion > summary::-webkit-details-marker {
        display: none;
    }

    .mobile-link-accordion > summary:focus-visible {
        outline: 2px solid rgba(214, 129, 54, 0.45);
        outline-offset: 4px;
    }

    .mobile-link-accordion__title {
        font-size: 1rem;
        font-weight: 600;
        color: rgba(122, 61, 17, 0.9);
    }

    .mobile-link-accordion__caret {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        color: rgba(122, 61, 17, 0.48);
        transition: transform 0.2s ease;
    }

    .mobile-link-accordion[open] .mobile-link-accordion__caret {
        transform: rotate(90deg);
        color: rgba(122, 61, 17, 0.72);
    }

    .mobile-link-accordion__panel {
        padding: 0 0.9rem 0.8rem;
        display: grid;
        gap: 0.6rem;
    }

    .mobile-link-accordion__all {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-size: 0.78rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #d68136;
        text-decoration: none;
    }

    .mobile-link-accordion__all:hover,
    .mobile-link-accordion__all:focus-visible {
        color: #a3561c;
    }

    .mobile-link-accordion__list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 0.3rem;
    }

    .mobile-link-accordion__list a {
        display: inline-flex;
        align-items: center;
        font-size: 0.86rem;
        color: rgba(122, 61, 17, 0.78);
        text-decoration: none;
        padding: 0.2rem 0;
    }

    .mobile-link-accordion__list a:hover,
    .mobile-link-accordion__list a:focus-visible {
        color: #a3561c;
    }

    .menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 1.05rem;
    }

    .menu-link {
        font-size: 1.02rem;
        font-weight: 600;
        color: rgba(92, 55, 32, 0.88);
        padding: 0.3rem 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: color 0.2s ease;
    }

    .menu-link:hover,
    .menu-link:focus-visible {
        color: #d68136;
        outline: none;
    }

    .menu-link.is-active {
        color: #d68136;
    }

    .menu-link.is-active::after {
        display: none;
    }

    .menu-item.has-children > .menu-dropdown {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        padding: 0;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 18px;
        border: 1px solid rgba(214, 129, 54, 0.16);
        box-shadow: none;
        transition: max-height 0.25s ease, opacity 0.18s ease;
    }

    .menu-item.has-children.is-open > .menu-dropdown {
        opacity: 1;
        visibility: visible;
        padding: 1rem 1.2rem;
        margin-top: 0.6rem;
        max-height: 360px;
    }

    .menu-dropdown-inner {
        display: grid;
        gap: 0.9rem;
    }

    .menu-dropdown-title {
        font-size: 0.78rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: rgba(92, 55, 32, 0.6);
        margin: 0;
    }

    .submenu-list {
        display: grid;
        gap: 0.45rem;
    }

    .submenu-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 0.9rem;
        color: rgba(92, 55, 32, 0.85);
        padding: 0.45rem 0;
        border-bottom: 1px solid rgba(214, 129, 54, 0.14);
    }

    .submenu-link:last-child {
        border-bottom: none;
    }

    .submenu-link:hover,
    .submenu-link:focus-visible {
        color: #d68136;
        outline: none;
    }

    .submenu-highlight {
        margin-top: 0.65rem;
        padding: 0.85rem 0.9rem;
        border-radius: 16px;
        background: rgba(255, 221, 186, 0.32);
        border: 1px solid rgba(214, 129, 54, 0.18);
        color: rgba(92, 55, 32, 0.85);
    }

    .submenu-eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: rgba(92, 55, 32, 0.6);
    }

    .mobile-drawer__footer {
        margin-top: auto;
        padding-top: 1.4rem;
        border-top: 1px solid rgba(214, 129, 54, 0.18);
        display: grid;
        gap: 1.1rem;
    }

    .mobile-drawer__profile {
        display: grid;
        gap: 0.8rem;
        padding: 0.85rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.82);
        border: 1px solid rgba(214, 129, 54, 0.24);
    }

    .mobile-drawer__profile-header {
        display: flex;
        align-items: center;
        gap: 0.85rem;
    }

    .mobile-drawer__avatar {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: rgba(255, 221, 186, 0.8);
        font-weight: 700;
        letter-spacing: 0.08em;
        color: #5c3720;
    }

    .mobile-drawer__profile-text {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .mobile-drawer__profile-name {
        font-size: 0.95rem;
        font-weight: 600;
    }

    .mobile-drawer__profile-role {
        font-size: 0.75rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: rgba(92, 55, 32, 0.52);
    }

    .mobile-drawer__profile-toggle {
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.5rem 0.9rem;
        border-radius: 999px;
        border: 1px solid rgba(214, 129, 54, 0.28);
        background: rgba(214, 129, 54, 0.08);
        color: #d68136;
        font-size: 0.72rem;
        font-weight: 600;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .mobile-drawer__profile-toggle:hover,
    .mobile-drawer__profile-toggle:focus-visible {
        color: #a3561c;
        border-color: rgba(214, 129, 54, 0.42);
        background: rgba(214, 129, 54, 0.16);
        outline: none;
    }

    .mobile-drawer__profile-toggle svg {
        width: 16px;
        height: 16px;
        transition: transform 0.2s ease;
    }

    .mobile-drawer__profile.is-open .mobile-drawer__profile-toggle svg {
        transform: rotate(180deg);
    }

    .mobile-drawer__profile-menu {
        display: grid;
        gap: 0.55rem;
        padding: 0.75rem 0.85rem;
        border-radius: 14px;
        background: rgba(255, 247, 238, 0.92);
        border: 1px solid rgba(214, 129, 54, 0.2);
    }

    .mobile-drawer__profile-menu[hidden] {
        display: none;
    }

    .mobile-drawer__profile-menu a,
    .mobile-drawer__profile-menu button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        padding: 0.45rem 0;
        border: none;
        background: none;
        color: #5c3720;
        font-size: 0.86rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-align: left;
        cursor: pointer;
        transition: color 0.2s ease;
    }

    .mobile-drawer__profile-menu a:hover,
    .mobile-drawer__profile-menu a:focus-visible,
    .mobile-drawer__profile-menu button:hover,
    .mobile-drawer__profile-menu button:focus-visible {
        color: #a3561c;
        outline: none;
    }

    .mobile-drawer__auth-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.85rem 1.4rem;
        border-radius: 18px;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #5c3720;
        background: linear-gradient(135deg, #fde2bd 0%, #ffb766 100%);
        border: 1px solid rgba(244, 124, 61, 0.28);
        box-shadow: 0 18px 32px -20px rgba(92, 55, 32, 0.4);
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }

    .mobile-drawer__auth-cta:hover,
    .mobile-drawer__auth-cta:focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 24px 46px -20px rgba(92, 55, 32, 0.45);
        outline: none;
    }

    .mobile-drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(92, 55, 32, 0.28);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.24s ease, visibility 0.24s ease;
        z-index: 1100;
    }

    .mobile-drawer-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

    .nav-actions {
        margin-left: 0;
        display: flex;
        align-items: center;
    }

    .nav-actions #login-button,
    .nav-actions .profile-nav {
        display: none;
    }

    .search {
        position: absolute;
        top: calc(100% + 10px);
        left: clamp(1.15rem, 4vw, 2rem);
        right: clamp(1.15rem, 4vw, 2rem);
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(214, 129, 54, 0.24);
        border-radius: 20px;
        box-shadow: 0 28px 56px rgba(15, 23, 42, 0.16);
        padding: 0;
        max-height: 0;
        opacity: 0;
        pointer-events: none;
        overflow: hidden;
        transform: translateY(-8px);
        transition: max-height 0.3s ease, opacity 0.22s ease, transform 0.24s ease;
        z-index: 1300;
    }

    .search.is-mobile-open {
        padding: 1.2rem clamp(1.1rem, 6vw, 1.8rem) 1.4rem;
        max-height: 400px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .search-field {
        width: 100%;
        border-radius: 14px;
        padding: 0.4rem 0.9rem;
    }

    .search-field input {
        width: 100%;
        font-size: 0.95rem;
    }

    .search-panel {
        position: static;
        width: 100%;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
    }

    .search-panel:not(.is-active) {
        display: none;
    }

    .search-panel.is-active {
        display: block;
    }

    .search-panel-inner {
        max-height: 240px;
        padding: 0;
    }

    .mobile-bottom-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(72px + env(safe-area-inset-bottom, 0));
        padding: 0 clamp(1rem, 6vw, 1.6rem) calc(env(safe-area-inset-bottom, 0.7rem) + 10px);
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;
        gap: 0.65rem;
        background: rgba(255, 247, 238, 0.96);
        background-color: #fff7ee;
        backdrop-filter: blur(18px);
        border-top: 1px solid rgba(214, 129, 54, 0.2);
        box-shadow: 0 -20px 44px -24px rgba(92, 55, 32, 0.32);
        z-index: 1020;
        transition: transform 0.24s ease, opacity 0.24s ease;
    }

    .is-drawer-active .mobile-bottom-bar {
        transform: translateY(110%);
        opacity: 0;
        pointer-events: none;
    }

    .mobile-bottom-bar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.28rem;
        padding: 0.55rem 0.4rem;
        border-radius: 18px;
        color: rgba(92, 55, 32, 0.72);
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    }

    .mobile-bottom-bar__item:hover,
    .mobile-bottom-bar__item:focus-visible {
        color: #d68136;
        background: rgba(255, 183, 102, 0.2);
        transform: translateY(-2px);
        outline: none;
    }

    .mobile-bottom-bar__item.is-active {
        color: #d68136;
        background: linear-gradient(140deg, rgba(255, 207, 170, 0.6) 0%, rgba(255, 183, 102, 0.35) 100%);
        box-shadow: 0 12px 24px -16px rgba(92, 55, 32, 0.35);
    }

    .mobile-bottom-bar__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        color: inherit;
        transition: color 0.2s ease;
    }

    .mobile-bottom-bar__icon svg {
        width: 24px;
        height: 24px;
    }

    .mobile-bottom-bar__label {
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .hero {
        padding: 4rem clamp(1.4rem, 6vw, 2.4rem);
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .insight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.9rem clamp(1.05rem, 6vw, 1.5rem);
    }

    .search-toggle {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .nav-toggle {
        width: 44px;
        height: 44px;
    }

    .search {
        left: clamp(0.9rem, 6vw, 1.4rem);
        right: clamp(0.9rem, 6vw, 1.4rem);
    }

    .search.is-mobile-open {
        max-height: 360px;
    }

    .search-panel-inner {
        max-height: 220px;
    }

    .mobile-bottom-bar {
        padding: 0 clamp(0.85rem, 6vw, 1.3rem) calc(env(safe-area-inset-bottom, 0.6rem) + 8px);
        height: calc(68px + env(safe-area-inset-bottom, 0));
    }

    .mobile-bottom-bar__label {
        font-size: 0.66rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3.6rem 1.6rem;
    }

    .collections,
    .trust,
    .insights {
        padding: 3.7rem 1.6rem;
    }

    .insight-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .brand-emblem {
        width: 50px;
        height: 50px;
    }

    .brand-line {
        font-size: 0.85rem;
    }

    .search-toggle {
        width: 40px;
        height: 40px;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
    }

    .search {
        border-radius: 18px;
    }

    .search-field {
        padding: 0.32rem 0.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.6rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-outline {
        width: 100%;
    }
}

@media (min-width: 1025px) {
    .mobile-drawer__inner {
        display: contents;
        padding: 0;
        background: none;
        box-shadow: none;
        border: 0;
    }

    .mobile-drawer__header,
    .mobile-drawer__footer,
    .mobile-drawer__eyebrow,
    .mobile-drawer__brand,
    .mobile-drawer__close,
    .mobile-drawer__profile,
    .mobile-drawer__auth-cta {
        display: none !important;
    }
}


/* ===== home-listings.css ===== */
@media (max-width: 1024px) {
    .home-listing {
        padding: clamp(28px, 6vw, 40px);
    }

    .home-listing__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-listing__action {
        align-self: flex-start;
    }

    .home-listing__nav {
        display: none;
    }
}

@media (max-width: 860px) {
    .home-listing__viewport,
    .home-category-stack__viewport {
        overflow: visible;
    }

    .home-listing__track,
    .home-category-stack__track {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .home-listing__track::-webkit-scrollbar,
    .home-category-stack__track::-webkit-scrollbar {
        display: none;
    }

    .home-listing__track {
        scrollbar-width: none;
    }

    .home-listing__item,
    .home-category-stack__track .home-listing__item {
        flex: 0 0 clamp(220px, 72vw, 288px);
        scroll-snap-align: start;
    }

    .home-listing__item--cta {
        display: flex;
    }

    .home-listing__cta-card {
        width: 100%;
        min-width: clamp(210px, 68vw, 250px);
        padding: 20px 22px;
        border-radius: 18px;
        background: linear-gradient(140deg, rgba(255, 215, 182, 0.92) 0%, rgba(255, 236, 209, 0.88) 100%);
        border: 1px solid rgba(214, 129, 54, 0.25);
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
        color: #5c3720;
    }

    .home-listing__cta-title {
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0.01em;
    }

    .home-listing__cta-note {
        font-size: 13px;
        color: rgba(92, 55, 32, 0.78);
    }

    .home-listing__cta-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 12px;
        background: rgba(244, 58, 9, 0.12);
        color: #f43a09;
        font-size: 18px;
        margin-top: 8px;
    }
}

@media (max-width: 720px) {
    .home-listing {
        margin-top: clamp(32px, 7vw, 48px);
        border-radius: 22px;
    }

    .home-listing__track,
    .home-category-stack__track {
        gap: 14px;
    }

    .product-mini-card {
        flex-basis: clamp(236px, 74vw, 284px);
        border-radius: 16px;
    }

    .product-mini-card__body {
        padding: 14px 16px 0;
    }

    .product-mini-card__pricing {
        margin: 10px 16px 0;
    }

    .product-mini-card__stock {
        margin: 12px 16px 14px;
    }
}

@media (max-width: 520px) {
    .home-listing__title {
        font-size: 24px;
    }

    .home-category-stack__title {
        font-size: 20px;
    }
}


/* ===== products.css ===== */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }

    .product-card__body {
        padding: 14px;
    }
}


/* ===== products-page.css ===== */
@media (max-width: 768px) {
    .catalog-main {
        padding: 98px clamp(16px, 6vw, 28px) 84px;
    }

    .catalog-hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(24px, 7vw, 36px);
        margin-bottom: clamp(32px, 8vw, 48px);
        text-align: center;
    }

    .catalog-hero__banner {
        width: min(100%, 640px);
        padding: clamp(26px, 7vw, 38px);
        padding-right: clamp(22px, 6vw, 32px);
        border-radius: 26px;
    }

    .catalog-hero__badge,
    .catalog-hero__title,
    .catalog-hero__subtitle {
        text-align: center;
    }

    .catalog-hero__subtitle {
        margin-inline: auto;
        max-width: 520px;
    }

    .catalog-hero__media {
        position: static;
        width: clamp(150px, 48vw, 220px);
        margin: clamp(18px, 6vw, 28px) auto 0;
    }

    .catalog-hero__meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: clamp(12px, 4vw, 20px);
    }

    .catalog-hero__stat {
        align-items: center;
        text-align: center;
        min-width: 140px;
    }

    .catalog-results__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-filter {
        grid-template-columns: 1fr;
    }

    .catalog-results {
        display: grid;
        gap: clamp(20px, 5vw, 30px);
        justify-items: center;
    }

    .catalog-results .home-listing__grid {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        grid-template-columns: 1fr;
        justify-content: center;
        justify-items: center;
        gap: clamp(16px, 5vw, 24px);
    }

    .catalog-results .home-listing__grid .product-mini-card {
        width: min(100%, 320px);
    }
}


/* ===== product-detail.css ===== */
@media (max-width: 1024px) {
    .product-detail__grid {
        grid-template-columns: 1fr;
    }

    .product-detail__gallery,
    .product-detail__info {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .product-detail {
        padding: 96px 16px 72px;
    }

    .product-related {
        padding: 32px;
    }
}


/* ===== dashboard.css ===== */
@media (max-width: 960px) {
    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .internal-main {
        width: min(100%, 94vw);
        margin: clamp(36px, 10vw, 60px) auto;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .dashboard-card {
        padding: 18px;
    }

    .btn-primary,
    .btn-ghost,
    .btn-secondary,
    .btn-danger {
        width: 100%;
        justify-content: center;
    }
}


/* ===== auth.css ===== */
@media (max-width: 720px) {
    .auth-page {
        padding: clamp(32px, 10vw, 56px) 12px;
    }

    .auth-card {
        border-radius: 22px;
        width: min(360px, 100%);
    }

    .auth-form__options {
        align-items: flex-start;
        gap: 16px;
        flex-direction: column;
    }
}

.menu-accordion {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    margin-bottom: 0.75rem;
    background: rgba(15, 118, 110, 0.04);
}

.menu-accordion--nested {
    background: rgba(15, 23, 42, 0.03);
    border: none;
    margin-bottom: 0.5rem;
}

.menu-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    list-style: none;
    cursor: pointer;
    padding: 0.85rem 1rem;
    font-weight: 600;
    color: #0f172a;
}

.menu-accordion__panel {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.menu-accordion__list {
    list-style: none;
    margin: 0;
    padding: 0 0 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-accordion__list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: rgba(15, 23, 42, 0.7);
    font-size: 0.9rem;
}

.menu-accordion__list a:hover {
    color: #0f766e;
}

.menu-accordion__thumb {
    width: 56px;
    height: 42px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 118, 110, 0.12);
    flex-shrink: 0;
}

.menu-accordion__thumb--small {
    width: 42px;
    height: 32px;
    border-radius: 10px;
}

.menu-accordion__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pwa-install-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--pwa-banner-offset, 0);
    z-index: 1100;
    background: #ffffff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.18);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.pwa-install-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.pwa-install-banner__inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pwa-install-banner__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(255, 183, 102, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pwa-install-banner__icon img {
    width: 36px;
    height: 36px;
}

.pwa-install-banner__content {
    flex: 1;
    min-width: 0;
}

.pwa-install-banner__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.pwa-install-banner__message {
    margin: 0.125rem 0 0;
    font-size: 0.8rem;
    color: rgba(15, 23, 42, 0.7);
}

.pwa-install-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-left: 0.5rem;
}

.pwa-install-banner__button {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1;
    color: #0f172a;
    background: #ffb766;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 183, 102, 0.45);
}

.pwa-install-banner__button--ghost {
    background: transparent;
    color: rgba(15, 23, 42, 0.65);
    box-shadow: none;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

@media (min-width: 576px) {
    .pwa-install-banner__actions {
        flex-direction: row;
    }

    .pwa-install-banner__button {
        padding: 0.55rem 1.4rem;
    }
}

.pwa-install-banner__button.is-active {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    box-shadow: none;
}

.pwa-install-banner__instructions {
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.06);
    color: rgba(15, 23, 42, 0.85);
    font-size: 0.78rem;
    line-height: 1.4;
    width: 100%;
}

.pwa-install-banner__instructions-title {
    margin: 0 0 0.4rem;
    font-weight: 600;
}

.pwa-install-banner__instructions-list {
    padding-left: 1.15rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pwa-install-banner__instructions-list li {
    list-style: decimal;
    margin: 0;
}

@media (min-width: 576px) {
    .pwa-install-banner__instructions {
        font-size: 0.8rem;
    }
}
