:root {
    --tnb-bg: #fcf1db;
    --tnb-bg-soft: #fcf1db;
    --tnb-brown: #6b4733;
    --tnb-brown-dark: #5a3c2b;
    --tnb-line: rgba(110, 73, 51, 0.12);
    --tnb-accent: #e9d5b7;
    --tnb-text: #3d3530;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--tnb-bg) !important;
    font-family: 'Outfit', sans-serif;
    color: var(--tnb-text);
}

.page-title-wrapper,
.page-header,
.page-footer,
.nav-sections {
    display: none !important;
}

.page-main,
.page-wrapper,
body,
.columns,
#maincontent {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100% !important;
}

.tnb-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: var(--tnb-bg);
    align-items: flex-start;
}

/* SIDEBAR */
.tnb-sidebar {
    width: 220px;
    padding: 16px 12px 0 12px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--tnb-line);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--tnb-bg-soft);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
    z-index: 100;
}

.tnb-sidebar .logo {
    margin-bottom: 40px;
    text-align: center;
    padding: 0;
}

.tnb-sidebar .logo img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.btn-category {
    background: var(--tnb-brown);
    color: #fff;
    border-radius: 18px;
    padding: 9px 0;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 13px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.btn-category:hover {
    background: var(--tnb-brown-dark);
}

.tnb-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #9f7860 #f4ebdd;
}

.tnb-sidebar ul::-webkit-scrollbar {
    width: 12px;
}

.tnb-sidebar ul::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #fffaf1, #f2e7d7);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(107, 71, 51, 0.08);
}

.tnb-sidebar ul::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #bc947c, #9f7860);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: padding-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.tnb-sidebar ul::-webkit-scrollbar-button:single-button {
    display: block;
    height: 12px;
    background: transparent;
    background-repeat: no-repeat;
    background-position: center;
}

.tnb-sidebar ul::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23b19482' d='M5 0 10 6H0z'/%3E%3C/svg%3E");
}

.tnb-sidebar ul::-webkit-scrollbar-button:single-button:vertical:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23b19482' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
}

.tnb-sidebar ul li {
    padding: 9px 8px;
    border-bottom: 1px dashed rgba(110, 73, 51, 0.15);
}

.tnb-sidebar ul li a {
    color: var(--tnb-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: block;
}

.tnb-sidebar ul li a:hover {
    color: var(--tnb-brown);
    font-weight: 700;
    padding-left: 5px;
}

/* MAIN CONTENT */
.tnb-main {
    flex: 1;
    min-width: 0;
    padding: clamp(10px, 1vw, 18px) clamp(14px, 1.4vw, 26px) 48px;
    display: flex;
    flex-direction: column;
}

/* TOP BAR */
.tnb-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    margin-bottom: 12px;
    min-height: 56px;
    gap: 12px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-left a,
.topbar-right a {
    color: #222;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-left .sep,
.topbar-right .sep {
    color: #999;
    font-size: 14px;
    font-weight: 400;
}

.topbar-center {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    padding: 0 12px;
}

.topbar-center img {
    width: auto;
    max-width: 420px;
    max-height: 44px;
    height: auto;
    mix-blend-mode: multiply;
}

/* header logo (moved from sidebar) */
.tnb-topbar .header-logo {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.tnb-topbar .header-logo img {
    max-height: 72px;
    height: auto;
    display: block;
    mix-blend-mode: multiply;
}

.contact-emoji {
    color: #1877F2;
}

/* constrain cart/shopping icon so it doesn't dominate layout */
.cart-btn img {
    max-height: 36px !important;
    height: auto !important;
    width: auto !important;
}

/* make hero sit closer below header */
.tnb-hero {
    margin-top: 10px;
}

/* SEARCH */
.tnb-search-wrap {
    width: 100%;
    margin-bottom: 15px;
}

.tnb-search-area {
    background: var(--tnb-brown);
    border-radius: 40px;
    padding: 8px 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(107, 71, 51, 0.15);
}

.tnb-search-area input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 15px;
    padding: 8px 10px;
}

.tnb-search-area input::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.search-btn {
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tnb-tags {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 600;
}

.tnb-tags a {
    color: var(--tnb-brown);
    text-decoration: none;
}

.tnb-home-dashboard {
    display: grid;
    grid-template-columns: minmax(220px, 292px) minmax(0, 1fr) minmax(200px, 238px);
    gap: clamp(14px, 1.4vw, 22px);
    align-items: start;
    margin-top: 4px;
}

.tnb-hero-stage {
    min-width: 0;
    display: flex;
    justify-content: center;
}

.tnb-hero {
    position: relative;
    text-align: center;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    z-index: 1;
}

.film-strip {
    padding: 0;
    margin: 0;
    line-height: 0;
    position: relative;
    z-index: 1;
}

.film-strip img,
.polaroids-decor img {
    width: 100%;
    height: auto;
    display: block;
}

.tnb-home-dashboard .film-strip img {
    max-height: min(26vw, 318px);
    object-fit: contain;
}

.polaroids-decor {
    width: 72%;
    margin: 4px auto 0;
    position: relative;
    z-index: 2;
}

.tnb-home-dashboard .polaroids-decor img {
    max-height: min(12.5vw, 154px);
    object-fit: contain;
}

.tnb-currency-widget,
.tnb-news-widget {
    position: relative;
}

.tnb-currency-widget__inner {
    min-height: 430px;
    max-height: 430px;
    padding: 16px 14px 12px;
    background: #ffffff;
    border: 1px solid rgba(110, 73, 51, 0.12);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(110, 73, 51, 0.05);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tnb-currency-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tnb-currency-header__badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FAF4EB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tnb-currency-header__badge span {
    color: #7e4f2f;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.tnb-currency-header__text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.tnb-currency-header__text h3 {
    margin: 0 0 2px;
    font-size: 14.5px;
    font-weight: 800;
    color: #6b4733;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tnb-currency-header__text span {
    font-size: 10px;
    color: rgba(61, 53, 48, 0.58);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.tnb-currency-widget__table-wrap {
    flex: 1 1 auto;
    overflow-y: auto;
    margin-bottom: 10px;
}

.tnb-currency-widget__table {
    width: 92%;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: fixed;
}

.tnb-currency-widget__table th {
    font-size: 11px;
    font-weight: 700;
    color: rgba(90, 60, 43, 0.65);
    padding: 2px 2px 6px;
    border-bottom: 1px solid #f2eedf;
}

.tnb-currency-widget__table td {
    padding: 4px 1px 4px 0px !important;
    border-bottom: 1px solid #f2eedf;
    vertical-align: middle;
}

.tnb-currency-widget__table th:first-child,
.tnb-currency-widget__table td:first-child {
    width: 38% !important;
    text-align: left !important;
    padding-left: 15px !important;
}

.tnb-currency-widget__table th:not(:first-child),
.tnb-currency-widget__table td:not(:first-child) {
    width: 31% !important;
    text-align: right !important;
    white-space: nowrap;
}

.tnb-currency-info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.tnb-currency-flag {
    width: 24px !important;
    height: 24px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.tnb-currency-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
    min-width: 0;
}

.tnb-currency-text strong {
    font-size: 11px;
    font-weight: 700;
    color: #3d3530;
    white-space: nowrap;
}

.tnb-currency-text span {
    font-size: 8.5px;
    color: rgba(61, 53, 48, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 68px;
}

.tnb-currency-val--buy {
    font-size: 11.5px;
    font-weight: 700;
    color: #1b5e20;
    text-align: right;
}

.tnb-currency-val--sell {
    font-size: 11.5px;
    font-weight: 700;
    color: #c62828;
    text-align: right;
}

.tnb-currency-sell-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.tnb-currency-chevron {
    color: rgba(90, 60, 43, 0.35);
    flex-shrink: 0;
}

.tnb-currency-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FAF4EB;
    border-radius: 10px;
    padding: 8px 12px;
    color: #6b4733;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.tnb-currency-footer:hover {
    background: #f4eae0;
    color: #5a3c2b;
}

.tnb-news-widget {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 6px;
}

.tnb-news-widget__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tnb-news-card {
    min-height: 70px;
    padding: 14px 14px 14px 14px;
    background: url('../images/box-decor.svg') center / 100% 100% no-repeat;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
}

.tnb-news-card a,
.tnb-news-card span {
    color: #4a372d;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.tnb-news-card--ghost span {
    color: rgba(74, 55, 45, 0.78);
    font-weight: 600;
}

.tnb-news-card__thumb {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 6px rgba(47, 35, 25, 0.18);
}

.tnb-news-widget__cta {
    align-self: flex-end;
    margin-top: 4px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(107, 71, 51, 0.16);
    color: #6b4733;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(107, 71, 51, 0.08);
}

.recommend-section {
    margin-top: 30px;
    padding-bottom: 88px;
}

.recommend-header {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.recommend-title-wrap {
    background: url('https://img.icons8.com/color/48/000000/pin.png') no-repeat top center;
    padding-top: 15px;
}

.recommend-title {
    background: #fff;
    padding: 10px 40px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 20px;
    color: #d32f2f;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 36px;
    padding: 0 10px;
    align-items: stretch;
    max-width: 1360px;
    margin: 0 auto;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.035);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(107, 71, 51, 0.08);
    min-height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.product-image-box {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 10px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 9px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
    line-height: 1.4;
}

.product-price {
    color: var(--tnb-brown);
    font-weight: 800;
    font-size: 17px;
}

.recommend-section .loading {
    text-align: center;
    padding: 50px;
    font-style: italic;
    color: #888;
}

@media (max-width:1024px) {
    .tnb-container {
        flex-direction: column;
    }

    .tnb-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding-bottom: 0;
        border-right: none;
        border-bottom: 1px solid var(--tnb-line);
    }

    .tnb-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        padding-bottom: 10px;
        overflow: visible;
    }

    .tnb-sidebar ul li {
        width: 50%;
        border-bottom: none;
    }

    .tnb-main {
        width: 100%;
        padding: 15px;
    }

    .tnb-topbar {
        flex-wrap: wrap;
        gap: 15px;
    }

    .topbar-center {
        order: 3;
        width: 100%;
        height: auto;
    }

    .tnb-home-dashboard {
        grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    }

    .tnb-news-widget {
        grid-column: 1 / -1;
    }

    .tnb-news-widget__list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .polaroids-decor {
        width: 82%;
        margin: 6px auto 0;
    }

    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 14px;
        row-gap: 30px;
        max-width: none;
    }
}

/* Header/cart/hero constraints + sticky sidebar + mobile tweaks */
.tnb-sidebar {
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    z-index: 120;
}

.tnb-topbar {
    padding: 6px 12px;
    margin-bottom: 8px;
    min-height: 48px;
    gap: 10px;
}

.tnb-topbar .header-logo img {
    height: 60px !important;
    width: auto !important;
    max-height: none !important;
    mix-blend-mode: normal !important;
}

.cart-btn img {
    max-height: 36px !important;
    width: auto !important;
    height: auto !important;
}

img[src*="shopping"],
img[src*="shopping-logo"],
img[src*="cart"] {
    max-height: 36px !important;
    width: auto !important;
    height: auto !important;
    display: inline-block;
}

/* Cap large decorative hero SVGs */
.tnb-hero .film-strip img,
.tnb-hero .polaroids-decor img {
    max-height: none;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.tnb-main img {
    max-width: 100%;
    height: auto;
}

@media (min-width: 1281px) {
    .tnb-sidebar {
        width: 194px;
        padding: 12px 10px 0;
    }

    .btn-category {
        padding: 8px 0;
        font-size: 13px;
        border-radius: 16px;
    }

    .tnb-sidebar ul li {
        padding: 8px 6px;
    }

    .tnb-sidebar ul li a {
        font-size: 13px;
    }

    .tnb-main {
        padding: 8px 18px 40px;
    }

    .tnb-main>.tnb-storefront-header--home,
    .tnb-main>.tnb-home-dashboard,
    .tnb-main>.recommend-section {
        width: min(100%, 1520px);
        margin-left: auto;
        margin-right: auto;
    }

    .tnb-storefront-header--home {
        margin-bottom: 18px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__frame {
        grid-template-columns: 172px minmax(0, 1fr);
        gap: 14px;
        padding: 12px 14px 12px 22px;
        border-radius: 24px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel {
        min-height: 104px;
        padding: 12px 10px;
        border-radius: 20px;
        transform: translateX(4px);
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel img {
        max-width: 112px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__content {
        padding-left: 10px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__bar {
        gap: 12px;
        margin-bottom: 8px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__left,
    .tnb-storefront-header--home .tnb-storefront-header__right,
    .tnb-storefront-header--home .tnb-storefront-header__meta,
    .tnb-storefront-header--home .tnb-storefront-header__auth {
        gap: 10px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__meta a,
    .tnb-storefront-header--home .tnb-storefront-header__auth a {
        font-size: 14px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__auth-name {
        max-width: 148px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor img {
        width: min(100%, 430px);
        transform: translateX(clamp(12px, 1vw, 22px)) scale(0.72);
    }

    .tnb-storefront-header--home .tnb-storefront-header__cartbtn {
        gap: 7px;
        padding: 7px 12px 7px 10px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__cartbtn img {
        width: 26px;
        height: 26px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__carttext {
        font-size: 13px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__cartcount {
        min-width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__search {
        gap: 8px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbox,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__searchbox {
        width: min(100%, 1030px);
        padding: 5px 6px 5px 12px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbox input {
        font-size: 13.5px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbtn {
        width: 34px;
        height: 34px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbtn svg {
        width: 16px;
        height: 16px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__tags {
        width: min(100%, 1030px);
        padding: 0 4px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags a {
        font-size: 12px;
        padding: 0 8px;
    }

    .tnb-home-dashboard {
        grid-template-columns: minmax(210px, 275px) minmax(0, 1fr) minmax(180px, 216px);
        gap: clamp(12px, 1vw, 18px);
    }

    .tnb-hero-stage {
        align-self: start;
    }

    .tnb-home-dashboard .tnb-hero {
        max-width: min(100%, 1060px);
    }

    .tnb-home-dashboard .film-strip img {
        max-height: min(23vw, 282px);
    }

    .polaroids-decor {
        width: 68%;
        margin: 2px auto 0;
    }

    .tnb-home-dashboard .polaroids-decor img {
        max-height: min(11vw, 134px);
    }

    .tnb-currency-widget__inner {
        min-height: 388px;
        padding: 24px 16px 20px 42px;
    }

    .tnb-currency-widget__title {
        margin-bottom: 12px;
        padding: 4px 14px;
        font-size: 14px;
    }

    .tnb-currency-widget__table {
        font-size: 11px;
    }

    .tnb-currency-widget__table thead th {
        font-size: 11px;
    }

    .tnb-currency-widget__table th,
    .tnb-currency-widget__table td {
        padding: 4px 3px;
    }

    .tnb-currency-widget__table th:not(:last-child),
    .tnb-currency-widget__table td:not(:last-child) {
        border-right: none;
    }

    .tnb-currency-widget__updated {
        font-size: 10px;
    }

    .tnb-news-widget {
        gap: 8px;
        padding-top: 2px;
    }

    .tnb-news-widget__list {
        gap: 10px;
    }

    .tnb-news-card {
        min-height: 62px;
        padding: 12px 12px 12px 13px;
    }

    .tnb-news-card a,
    .tnb-news-card span {
        font-size: 12px;
        line-height: 1.28;
    }

    .tnb-news-widget__cta {
        margin-top: 2px;
        padding: 7px 14px;
        font-size: 12px;
    }

    .recommend-section {
        margin-top: 22px;
    }
}

@media (max-width: 768px) {

    .tnb-news-widget,
    .tnb-currency-widget {
        display: none !important;
    }

    .tnb-sidebar {
        display: none;
    }

    .btn-category {
        display: inline-block;
    }

    .tnb-topbar {
        padding: 8px 12px;
        min-height: 52px;
    }

    .tnb-topbar .header-logo img {
        max-height: 48px;
    }

    .topbar-center img {
        max-height: 36px;
    }

    .cart-btn img {
        max-height: 28px !important;
    }

    .tnb-home-dashboard {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tnb-currency-widget__inner {
        min-height: auto;
        padding: 32px 18px 26px 42px;
    }

    .tnb-news-widget__list {
        grid-template-columns: 1fr;
    }

    .tnb-home-dashboard .film-strip img {
        max-height: none;
    }

    .polaroids-decor {
        width: 88%;
        margin: 8px auto 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 12px;
        row-gap: 18px;
    }
}

/* Home composition closer to the notebook mockup */
.tnb-storefront-header--home {
    z-index: 180;
    margin-bottom: 18px;
}

.tnb-storefront-header--home .tnb-storefront-header__frame {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 10px;
    padding: 0 0 4px;
}

.tnb-storefront-header--home .tnb-storefront-header__brand-panel {
    min-height: 108px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.tnb-storefront-header--home .tnb-storefront-header__brand-panel img {
    max-width: 96px;
}

.tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__content {
    padding-left: 0;
}

.tnb-storefront-header--home .tnb-storefront-header__bar {
    margin-bottom: 7px;
}

.tnb-storefront-header--home .tnb-storefront-header__searchbox {
    box-shadow: none;
}

.tnb-storefront-header--home .tnb-storefront-header__cartbtn {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.tnb-storefront-header--home .tnb-storefront-header__carttext,
.tnb-storefront-header--home .tnb-storefront-header__cartcount {
    display: none;
}

.tnb-storefront-header--home .tnb-storefront-header__cartbtn img {
    width: 40px;
    height: 40px;
}

.tnb-news-widget__cta {
    font-family: inherit;
    cursor: pointer;
}

.tnb-news-widget__cta:hover {
    color: #3d3530;
    box-shadow: 0 10px 24px rgba(107, 71, 51, 0.13);
    transform: translateY(-1px);
}

.tnb-weather-chip {
    position: fixed;
    right: 14px;
    bottom: 10px;
    z-index: 240;
    display: inline-flex;
    align-items: flex-end;
    gap: 6px;
    min-width: 162px;
    border: 0;
    background: transparent;
    color: #221b17;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
}

.tnb-weather-chip__avatar {
    position: relative;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #fff;
    box-shadow: 0 7px 18px rgba(45, 33, 24, 0.18);
    overflow: visible;
}

.tnb-weather-chip__avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.tnb-weather-chip__dot {
    position: absolute;
    top: -3px;
    right: -2px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #e72747;
    border: 2px solid #fff;
}

.tnb-weather-chip__body {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2px 4px;
    padding-bottom: 2px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.tnb-weather-chip__line {
    grid-column: 1 / -1;
    max-width: 156px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tnb-weather-chip__temp {
    color: #1f1a17;
}

.tnb-weather-chip__body img {
    width: 24px;
    height: 24px;
    margin-left: 2px;
}

.tnb-market-modal[hidden] {
    display: none !important;
}

.tnb-market-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
}

.tnb-market-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 39, 31, 0.48);
}

.tnb-market-modal__panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(650px, calc(100vw - 28px));
    max-height: min(82vh, 560px);
    transform: translate(-50%, -50%);
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(rgba(173, 62, 82, 0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(173, 62, 82, 0.14) 1px, transparent 1px),
        #f6f2e7;
    background-size: 18px 18px;
    box-shadow: 0 30px 80px rgba(24, 18, 14, 0.38);
}

.tnb-market-modal__tabs {
    display: inline-flex;
    align-items: end;
    gap: 26px;
    padding: 5px 10px 0;
    background: rgba(246, 242, 231, 0.82);
}

.tnb-market-modal__tab {
    border: 0;
    border-bottom: 2px solid #2a241f;
    background: transparent;
    padding: 0 0 2px;
    color: #050505;
    font: 800 17px/1.1 'Outfit', sans-serif;
    cursor: pointer;
}

.tnb-market-modal__tab.is-active {
    color: #111;
}

.tnb-market-modal__close {
    position: absolute;
    right: 8px;
    top: 4px;
    z-index: 3;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    color: #2b211b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.tnb-market-modal__content {
    padding: 5px;
    display: grid;
    gap: 6px;
}

.tnb-market-weather {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 10px;
    align-items: stretch;
    min-height: 94px;
    padding: 10px 12px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 42%),
        linear-gradient(135deg, #1c3154, #3a6f8c 58%, #f3c46d);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 24px rgba(35, 29, 24, 0.18);
    overflow: hidden;
}

.tnb-market-weather__main {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.tnb-market-weather__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    overflow: hidden;
}

.tnb-market-weather__icon img {
    width: 66px;
    height: 66px;
    object-fit: contain;
    flex: 0 0 auto;
}

.tnb-market-weather__icon img[hidden],
.tnb-market-weather__icon span[hidden] {
    display: none !important;
}

.tnb-market-weather__icon span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    font-size: 34px;
    line-height: 1;
    transform: translateY(-1px);
}

.tnb-market-weather__eyebrow {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tnb-market-weather__main strong {
    display: block;
    margin-top: 1px;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
}

.tnb-market-weather__main p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.tnb-market-weather__detail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    align-content: center;
}

.tnb-market-weather__detail span {
    min-width: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 9px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
}

.tnb-market-weather__detail span:first-child {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 11px;
}

.tnb-market-weather__detail strong {
    color: #fff;
    font-weight: 800;
}

.tnb-market-weather__detail [data-tnb-weather-permission] {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.tnb-market-weather__detail [data-tnb-weather-permission]:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.82);
    outline-offset: 2px;
}

.tnb-market-pane {
    display: none;
}

.tnb-market-pane.is-active {
    display: block;
}

.tnb-news-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 96px;
    gap: 3px;
    height: min(300px, calc(82vh - 178px));
}

.tnb-news-board__loading {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    border-radius: 5px;
    background: #222;
    color: #fff;
    font-weight: 700;
}

.tnb-news-tile {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #252525;
}

.tnb-news-tile.is-wide {
    grid-column: span 2;
}

.tnb-news-tile.is-side {
    grid-row: span 2;
}

.tnb-news-tile a {
    display: block;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.tnb-news-tile__media {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 28% 28%, rgba(247, 210, 151, 0.9), transparent 28%),
        linear-gradient(135deg, #43536b, #111 72%);
    background-size: cover;
    background-position: center;
    opacity: 0.92;
}

.tnb-news-tile:nth-child(2n) .tnb-news-tile__media {
    background:
        radial-gradient(circle at 70% 18%, rgba(205, 222, 232, 0.9), transparent 24%),
        linear-gradient(145deg, #6d665d, #1c1c1e 70%);
}

.tnb-news-tile:nth-child(3n) .tnb-news-tile__media {
    background:
        radial-gradient(circle at 44% 34%, rgba(236, 238, 213, 0.8), transparent 25%),
        linear-gradient(145deg, #2d5870, #151515 70%);
}

.tnb-news-tile__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.84));
}

.tnb-news-tile__body {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 7px;
    display: grid;
    gap: 3px;
}

.tnb-news-tile__body span,
.tnb-news-tile__body em {
    color: rgba(255, 255, 255, 0.74);
    font-size: 9px;
    font-style: normal;
}

.tnb-news-tile__body strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
}

.tnb-rate-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 4px;
    height: min(300px, calc(82vh - 178px));
    color: #dfe9f8;
}

.tnb-rate-board__main,
.tnb-rate-board__side {
    border-radius: 8px;
    background: #16223a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.tnb-rate-board__main {
    padding: 12px;
}

.tnb-rate-board__label {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #2c74bd;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.tnb-rate-board__headline {
    margin-top: 5px;
    color: #f5f8ff;
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    line-height: 1.1;
}

.tnb-rate-board__updated {
    margin-top: 3px;
    color: #88f39d;
    font-size: 11px;
    font-weight: 700;
}

.tnb-rate-board__convert {
    display: grid;
    grid-template-columns: 1fr 28px 1fr;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
}

.tnb-rate-board__box {
    display: grid;
    gap: 8px;
    border-radius: 6px;
    background: #202d48;
    padding: 10px;
}

.tnb-rate-board__box span {
    color: #b8c4d8;
    font-size: 11px;
    font-weight: 700;
}

.tnb-rate-board__box strong {
    color: #f2f6ff;
    font-size: 12px;
}

.tnb-rate-board__box em {
    color: #fff;
    font-size: 21px;
    font-style: normal;
    font-weight: 800;
}

.tnb-rate-board__swap {
    color: #58a7d8;
    font-size: 20px;
    text-align: center;
}

.tnb-rate-board__chart {
    position: relative;
    height: 122px;
    margin-top: 15px;
    border-radius: 6px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        #101a2d;
    background-size: 34px 30px;
    overflow: hidden;
}

.tnb-rate-board__spark {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 22px;
    bottom: 24px;
    background: linear-gradient(90deg, transparent 0 7%, #69e47b 7% 10%, transparent 10% 15%, #69e47b 15% 19%, transparent 19% 34%, #69e47b 34% 38%, transparent 38% 55%, #69e47b 55% 70%, transparent 70%);
    clip-path: polygon(0 68%, 10% 68%, 15% 30%, 18% 72%, 22% 26%, 28% 80%, 34% 64%, 48% 64%, 54% 58%, 66% 58%, 76% 52%, 88% 52%, 100% 25%, 100% 100%, 0 100%);
}

.tnb-rate-board__side {
    display: flex;
    flex-direction: column;
    padding: 7px;
    gap: 6px;
    overflow: auto;
}

.tnb-rate-mini {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    align-items: center;
    min-height: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 5px;
}

.tnb-rate-mini strong,
.tnb-rate-mini span,
.tnb-rate-mini em {
    display: block;
    line-height: 1.1;
}

.tnb-rate-mini strong {
    color: #f8fbff;
    font-size: 9px;
}

.tnb-rate-mini span {
    margin-top: 2px;
    color: #9eaec7;
    font-size: 8px;
}

.tnb-rate-mini em {
    color: #4fe071;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.tnb-rate-mini.is-down em {
    color: #ff6c68;
}

.tnb-rate-board__side-empty {
    color: #dce7f8;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 4px;
}

body.tnb-market-modal-open {
    overflow: hidden;
}

@media (min-width: 1281px) {
    .tnb-storefront-header--home .tnb-storefront-header__frame {
        grid-template-columns: 126px minmax(0, 1fr);
        padding: 0 0 4px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel {
        min-height: 104px;
        padding: 0;
        transform: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor img {
        transform: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbox,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__searchbox,
    .tnb-storefront-header--home .tnb-storefront-header__tags,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__tags {
        width: min(100%, 720px);
        transform: none;
    }
}

@media (max-width: 768px) {
    .tnb-market-weather {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .tnb-market-weather__detail {
        grid-template-columns: 1fr 1fr;
    }

    .tnb-market-weather__main strong {
        font-size: 28px;
    }

    .tnb-news-board,
    .tnb-rate-board {
        height: min(330px, calc(82vh - 230px));
    }

    .tnb-storefront-header--home .tnb-storefront-header__frame {
        grid-template-columns: 1fr;
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel {
        min-height: auto;
        justify-content: center;
    }

    .tnb-weather-chip {
        right: 8px;
        bottom: 8px;
        transform: scale(0.92);
        transform-origin: bottom right;
    }

    .tnb-market-modal__panel {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 24px);
    }

    .tnb-news-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 116px;
        height: calc(100vh - 108px);
    }

    .tnb-news-tile.is-wide,
    .tnb-news-tile.is-side {
        grid-column: span 1;
        grid-row: span 1;
    }

    .tnb-rate-board {
        grid-template-columns: 1fr;
        height: calc(100vh - 108px);
        overflow: auto;
    }

    .tnb-rate-board__side {
        max-height: 210px;
    }

    .tnb-rate-board__convert {
        grid-template-columns: 1fr;
    }

    .tnb-rate-board__swap {
        display: none;
    }
}

/* Currency and weather refinements */
.tnb-currency-widget__inner {
    display: flex;
    flex-direction: column;
}

.tnb-currency-widget__table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 322px;
    overflow: auto;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(126, 79, 47, 0.52) rgba(255, 248, 234, 0.72);
}

.tnb-currency-widget__table-wrap::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.tnb-currency-widget__table-wrap::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(126, 79, 47, 0.45);
}

.tnb-currency-widget__table {
    table-layout: fixed;
    min-width: 100%;
    font-size: 9.6px;
    line-height: 1.18;
    font-variant-numeric: tabular-nums;
}

.tnb-currency-widget__table th,
.tnb-currency-widget__table td {
    padding: 4px 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tnb-currency-widget__table th:first-child,
.tnb-currency-widget__table td:first-child {
    width: 38%;
}

.tnb-currency-widget__table th:not(:first-child),
.tnb-currency-widget__table td:not(:first-child) {
    width: 31%;
    white-space: nowrap;
}

.tnb-currency-widget__table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(250, 245, 235, 0.94);
    font-size: 9.6px;
}

.tnb-weather-chip {
    right: 10px;
    bottom: 8px;
    z-index: 240;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
    max-width: min(260px, calc(100vw - 20px));
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #111;
}

.tnb-weather-chip__action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border: 1px solid rgba(86, 68, 51, 0.35);
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(45, 33, 24, 0.08);
}

.tnb-weather-chip__meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: 100%;
    min-width: 0;
    color: #111;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.tnb-weather-chip__meta span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tnb-weather-chip__meta strong {
    font-weight: 800;
}

.tnb-weather-chip__meta img {
    width: 24px;
    height: 24px;
    margin-left: -2px;
}

/* Keep the home header readable while scrolling over product cards. */
.tnb-storefront-header--home {
    position: sticky;
    top: 0;
    z-index: 220;
    margin-bottom: 18px;
}

.tnb-storefront-header--home .tnb-storefront-header__frame {
    border: 1px solid rgba(107, 71, 51, 0.12);
    border-radius: 26px;
    background: rgba(252, 241, 219, 0.96);
    box-shadow: 0 18px 40px rgba(90, 60, 43, 0.08);
    backdrop-filter: blur(12px);
    padding: 12px 14px 12px 22px;
}

.tnb-storefront-header--home .tnb-storefront-header__brand-panel {
    border: 1px solid rgba(107, 71, 51, 0.06);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(252, 241, 219, 0.78), rgba(248, 236, 212, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
    padding: 10px;
}

/* Responsive category rail */
@media (max-width: 1180px) {
    .tnb-container {
        flex-direction: column;
    }

    .tnb-sidebar {
        display: block;
        position: sticky;
        top: 0;
        z-index: 230;
        width: 100%;
        height: auto;
        max-height: none;
        padding: 10px 12px 8px;
        border-right: none;
        border-bottom: 1px solid rgba(107, 71, 51, 0.12);
        box-shadow: 0 8px 18px rgba(107, 71, 51, 0.08);
        overflow: hidden;
    }

    .btn-category {
        width: auto;
        min-width: 124px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 18px;
        margin: 0 10px 0 0;
        vertical-align: top;
    }

    .tnb-sidebar ul,
    .tnb-sidebar .category-list {
        display: inline-flex;
        width: calc(100% - 146px);
        max-width: calc(100% - 146px);
        gap: 8px;
        padding: 0 6px 4px;
        margin: 0;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        vertical-align: top;
        scrollbar-width: thin;
    }

    .tnb-sidebar ul li {
        flex: 0 0 auto;
        width: auto;
        max-width: 190px;
        padding: 0;
        border-bottom: none;
    }

    .tnb-sidebar ul li a {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 8px 12px;
        border: 1px solid rgba(107, 71, 51, 0.12);
        border-radius: 999px;
        background: rgba(255, 250, 241, 0.72);
        font-size: 13px;
        line-height: 1.2;
    }

    .tnb-main {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .tnb-sidebar {
        padding: 8px 10px;
    }

    .btn-category {
        display: flex;
        width: 100%;
        margin: 0 0 8px;
        min-width: 0;
    }

    .tnb-sidebar ul,
    .tnb-sidebar .category-list {
        width: 100%;
        max-width: 100%;
        display: flex;
    }

    .tnb-sidebar ul li {
        max-width: 155px;
    }
}

/* Final home header and mobile navigation pass */
.tnb-storefront-header__mobile-toggle {
    display: none;
}

@media (min-width: 769px) {
    .tnb-storefront-header--home {
        margin-bottom: 14px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__frame {
        grid-template-columns: 108px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        min-height: 112px;
        padding: 8px 12px 8px 14px;
        border-radius: 22px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel {
        width: 96px;
        min-height: 82px;
        padding: 6px;
        border-radius: 16px;
        transform: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel img {
        max-width: 78px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__content {
        padding-left: 0;
    }

    .tnb-storefront-header--home .tnb-storefront-header__bar {
        gap: 10px;
        margin-bottom: 5px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__meta a,
    .tnb-storefront-header--home .tnb-storefront-header__auth a {
        font-size: 13px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor img {
        width: min(100%, 380px);
        max-height: 30px;
        transform: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__cartbtn img {
        width: 30px;
        height: 30px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__search {
        gap: 6px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbox,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__searchbox {
        width: min(100%, 900px);
        padding: 4px 5px 4px 12px;
        transform: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbtn {
        width: 32px;
        height: 32px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__tags {
        width: min(100%, 900px);
        transform: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags a {
        font-size: 11px;
        padding: 0 7px;
    }
}

@media (max-width: 768px) {
    .tnb-container {
        display: block;
    }

    .tnb-main {
        width: 100%;
        padding: 0 8px 28px;
    }

    .tnb-storefront-header--home {
        position: sticky;
        top: 0;
        z-index: 280;
        margin: 0 0 12px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__frame {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 58px;
        padding: 7px 12px;
        border-radius: 0;
        border: 0;
        border-bottom: 1px solid rgba(107, 71, 51, 0.14);
        background: rgba(252, 241, 219, 0.98);
        box-shadow: 0 8px 18px rgba(61, 53, 48, 0.08);
        backdrop-filter: blur(10px);
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel {
        width: auto;
        min-height: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel img {
        width: auto;
        max-width: 116px;
        max-height: 44px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__content {
        display: none !important;
    }

    .tnb-storefront-header--home .tnb-storefront-header__mobile-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        cursor: pointer;
    }

    .tnb-storefront-header--home .tnb-storefront-header__mobile-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 0 auto;
        border-radius: 999px;
        background: #51443b;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__mobile-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__mobile-toggle span:nth-child(2) {
        opacity: 0;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__mobile-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .tnb-sidebar {
        display: none !important;
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar {
        display: block !important;
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        z-index: 270;
        width: auto;
        height: auto;
        max-height: calc(100vh - 58px);
        padding: 14px 18px 18px;
        overflow-y: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(107, 71, 51, 0.14);
        background: rgba(252, 241, 219, 0.98);
        box-shadow: 0 18px 36px rgba(61, 53, 48, 0.18);
    }

    .tnb-container.is-mobile-menu-open .btn-category {
        display: block;
        width: 100%;
        min-width: 0;
        margin: 0 0 14px;
        padding: 10px 14px;
        border-radius: 0;
        text-align: left;
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar ul,
    .tnb-container.is-mobile-menu-open .tnb-sidebar .category-list {
        display: grid;
        width: 100%;
        max-width: 100%;
        gap: 0;
        padding: 0;
        margin: 0;
        overflow: visible;
        white-space: normal;
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar ul li {
        width: 100%;
        max-width: none;
        padding: 0;
        border-bottom: 1px solid rgba(107, 71, 51, 0.1);
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar ul li a {
        position: relative;
        display: block;
        padding: 13px 28px 13px 6px;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #241d18;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.25;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar ul li a::after {
        content: "+";
        position: absolute;
        right: 4px;
        top: 50%;
        transform: translateY(-50%);
        color: #111;
        font-size: 22px;
        font-weight: 700;
    }

    .tnb-home-dashboard {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 0;
    }

    .tnb-currency-widget {
        order: 2;
        width: min(100%, 360px);
        margin: 0 auto;
    }

    .tnb-hero-stage {
        order: 1;
    }

    .tnb-news-widget {
        order: 3;
        width: min(100%, 360px);
        margin: 0 auto;
        padding-top: 0;
    }

    .tnb-currency-widget__inner {
        min-height: 340px;
        padding: 38px 12px 24px 44px;
        background-size: 100% 100%;
    }

    .tnb-currency-widget__title {
        margin-bottom: 8px;
        padding: 4px 12px;
        font-size: 13px;
        letter-spacing: 0.03em;
    }

    .tnb-currency-widget__table-wrap {
        max-height: 236px;
        overflow: auto;
        padding-right: 0;
    }

    .tnb-currency-widget__table {
        table-layout: fixed;
        font-size: 9.6px;
        line-height: 1.2;
    }

    .tnb-currency-widget__table thead th {
        font-size: 9.6px;
    }

    .tnb-currency-widget__table th,
    .tnb-currency-widget__table td {
        padding: 3px 2px;
    }

    .tnb-currency-widget__table th:not(:last-child),
    .tnb-currency-widget__table td:not(:last-child) {
        border-right: none;
    }

    .tnb-currency-widget__updated {
        margin-top: 8px;
        font-size: 9px;
        text-align: center;
    }

    .tnb-news-widget__list {
        display: grid;
        gap: 9px;
        width: 100%;
    }

    .tnb-news-card {
        min-height: 64px;
        padding: 12px 16px 12px 40px;
        background-size: 100% 100%;
    }

    .tnb-news-card a,
    .tnb-news-card span {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        font-size: 11.5px;
        line-height: 1.28;
        overflow-wrap: anywhere;
    }

    .tnb-news-card::before {
        left: 17px;
        top: 3px;
        width: 18px;
        height: 26px;
    }
}

/* Final alignment requested for the home header and mobile drawer */
@media (min-width: 769px) {
    .tnb-storefront-header--home .tnb-storefront-header__frame {
        min-height: 104px;
        align-items: center;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__content {
        position: relative;
        min-height: 88px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__bar {
        margin-bottom: 0;
    }

    .tnb-storefront-header--home .tnb-storefront-header__left {
        transform: translateY(12px);
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor {
        transform: translateY(-2px);
    }

    .tnb-storefront-header--home .tnb-storefront-header__right {
        transform: translateY(2px);
    }

    .tnb-storefront-header--home .tnb-storefront-header__search {
        transform: translateY(-9px);
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbox,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__searchbox {
        width: min(100%, 950px);
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__tags {
        width: min(100%, 950px);
    }
}

@media (max-width: 768px) {
    .tnb-storefront-header--home .tnb-storefront-header__brand-panel img {
        max-width: 124px;
        max-height: 48px;
        opacity: 1 !important;
        filter: none !important;
        mix-blend-mode: normal !important;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__content {
        display: block !important;
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        z-index: 275;
        padding: 12px 18px 14px;
        border-bottom: 1px solid rgba(107, 71, 51, 0.12);
        background: rgba(252, 241, 219, 0.99);
        box-shadow: 0 14px 26px rgba(61, 53, 48, 0.13);
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__bar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 0 0 12px;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__decor {
        display: flex;
        justify-content: center;
        margin-bottom: 8px;
        order: -1;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__decor img {
        display: block;
        width: 100%;
        max-width: 250px;
        height: auto;
        margin: 0 auto;
        mix-blend-mode: multiply;
        opacity: 0.9;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__left,
    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__right,
    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__meta,
    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__auth {
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__meta a,
    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__auth a {
        font-size: 14px;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__right {
        gap: 12px;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__cartbtn {
        width: auto;
        min-width: 44px;
        justify-content: center;
        padding: 4px 8px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__cartbtn img {
        width: 30px;
        height: 30px;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__carttext {
        display: none;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__cartcount {
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__search {
        display: block;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__searchbox,
    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__searchbox {
        width: 100%;
        padding: 5px 5px 5px 14px;
        margin: 0;
        transform: none;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__searchbtn {
        width: 32px;
        height: 32px;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__tags {
        display: none;
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar {
        top: 236px;
        max-height: 286px;
        padding: 10px 18px 12px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(107, 71, 51, 0.48) rgba(255, 248, 234, 0.75);
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(107, 71, 51, 0.46);
    }

    .tnb-container.is-mobile-menu-open .btn-category {
        margin-bottom: 8px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar ul li a {
        padding-top: 11px;
        padding-bottom: 11px;
        font-size: 14px;
    }

    .tnb-currency-widget {
        width: min(100%, 360px);
    }

    .tnb-currency-widget__inner {
        min-height: 330px;
        padding: 38px 15px 22px 44px;
    }

    .tnb-currency-widget__table-wrap {
        max-height: 226px;
        width: 100%;
    }

    .tnb-currency-widget__table {
        min-width: 0;
        width: 92%;
        margin: 0 auto;
        font-size: 9.6px;
        line-height: 1.2;
    }

    .tnb-currency-widget__table thead th {
        font-size: 9.6px;
    }

    .tnb-currency-widget__table th:first-child,
    .tnb-currency-widget__table td:first-child {
        width: 38%;
    }

    .tnb-currency-widget__table th:not(:first-child),
    .tnb-currency-widget__table td:not(:first-child) {
        width: 31%;
        white-space: nowrap;
    }

    .tnb-currency-widget__table th,
    .tnb-currency-widget__table td {
        padding: 4px 2px;
    }

    .tnb-currency-widget__table th:not(:last-child),
    .tnb-currency-widget__table td:not(:last-child) {
        border-right: none;
    }

    .tnb-news-widget {
        width: min(100%, 360px);
    }

    .tnb-news-card {
        min-height: 62px;
        padding: 12px 18px 12px 42px;
    }

    .tnb-news-card a,
    .tnb-news-card span {
        -webkit-line-clamp: 2;
        font-size: 10.8px;
        line-height: 1.22;
        max-width: 100%;
    }
}

/* Header composition polish */
@media (min-width: 769px) {
    .tnb-storefront-header--home .tnb-storefront-header__frame {
        grid-template-columns: 112px minmax(0, 1fr);
        min-height: 100px;
        align-items: center;
        gap: 18px;
        padding: 8px 16px 8px 18px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel {
        width: 104px;
        min-height: 78px;
        padding: 4px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel img {
        max-width: 84px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__content {
        display: grid;
        grid-template-rows: 30px 40px 20px;
        align-content: center;
        min-height: 90px;
        padding: 0 !important;
    }

    .tnb-storefront-header--home .tnb-storefront-header__bar {
        display: grid;
        grid-template-columns: minmax(170px, 1fr) minmax(260px, 1.1fr) minmax(230px, 1fr);
        align-items: start;
        gap: 14px;
        margin: 0;
    }

    .tnb-storefront-header--home .tnb-storefront-header__left,
    .tnb-storefront-header--home .tnb-storefront-header__decor,
    .tnb-storefront-header--home .tnb-storefront-header__right,
    .tnb-storefront-header--home .tnb-storefront-header__search {
        transform: none !important;
    }

    .tnb-storefront-header--home .tnb-storefront-header__left {
        justify-content: flex-start;
        align-self: end;
        padding-bottom: 1px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor {
        justify-content: center;
        align-self: start;
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor img {
        width: min(100%, 360px);
        max-height: 24px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__right {
        justify-content: flex-end;
        align-self: start;
        gap: 12px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__search {
        align-items: flex-start;
        gap: 4px;
        margin-top: -2px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbox,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__searchbox {
        width: min(100%, 1080px);
        max-width: calc(100% - 54px);
        margin: 0;
        transform: none;
        padding: 4px 5px 4px 14px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__tags {
        width: min(100%, 1080px);
        max-width: calc(100% - 54px);
        margin: 0;
        padding: 0 4px;
        transform: none;
        justify-content: space-between;
    }

    .tnb-storefront-header--home .tnb-storefront-header__cartbtn {
        padding: 0 4px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__cartbtn img {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 768px) {
    .tnb-storefront-header--home .tnb-storefront-header__frame {
        min-height: 84px;
        padding: 10px 18px;
        border-bottom: 1px solid rgba(61, 53, 48, 0.12);
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel img {
        max-width: 150px;
        max-height: 66px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__mobile-toggle {
        width: 48px;
        height: 48px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__mobile-toggle span {
        width: 28px;
        height: 3px;
        background: #4b4038;
        box-shadow: 0 1px 2px rgba(61, 53, 48, 0.18);
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__content {
        top: 84px;
        padding: 10px 16px 12px;
        background: rgba(252, 241, 219, 0.96);
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__bar {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 6px 14px;
        margin-bottom: 10px;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__left {
        grid-column: 1;
        grid-row: 1;
        justify-content: flex-start;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__right {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: center;
        gap: 10px;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__auth {
        justify-content: center;
        gap: 10px;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__meta {
        justify-content: flex-start;
        gap: 8px;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__meta a,
    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__auth a {
        font-size: 12px;
        font-weight: 700;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__cartbtn {
        justify-self: end;
        min-width: 42px;
        width: 42px;
        height: 38px;
        padding: 0;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__cartbtn img {
        width: 32px;
        height: 32px;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__cartcount {
        position: absolute;
        top: 1px;
        right: 0;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__searchbox {
        border-radius: 999px;
        box-shadow: none;
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar {
        top: 230px;
        left: 14px;
        right: 14px;
        width: auto;
        max-height: 286px;
        padding: 0;
        border: 1px solid rgba(107, 71, 51, 0.18);
        border-radius: 0;
        background: rgba(255, 250, 241, 0.94);
        box-shadow: 0 18px 34px rgba(61, 53, 48, 0.18);
    }

    .tnb-container.is-mobile-menu-open .btn-category {
        position: sticky;
        top: 0;
        z-index: 1;
        margin: 0;
        padding: 10px 14px;
        background: #6b4733;
        color: #fff;
        box-shadow: 0 1px 0 rgba(61, 53, 48, 0.12);
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar ul,
    .tnb-container.is-mobile-menu-open .tnb-sidebar .category-list {
        max-height: 235px;
        overflow-y: auto;
        background: rgba(255, 250, 241, 0.72);
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar ul::-webkit-scrollbar {
        width: 8px;
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar ul::-webkit-scrollbar-track {
        background: rgba(255, 248, 234, 0.95);
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar ul::-webkit-scrollbar-thumb {
        border: 2px solid rgba(255, 248, 234, 0.95);
        border-radius: 999px;
        background: rgba(107, 71, 51, 0.58);
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar ul li a {
        padding: 12px 34px 12px 14px;
        font-size: 14px;
        background: rgba(255, 250, 241, 0.52);
    }
}

/* Final collision fix for desktop header and right-side mobile category drawer */
@media (min-width: 769px) {
    .tnb-storefront-header--home .tnb-storefront-header__frame {
        grid-template-columns: 112px minmax(0, 1fr);
        min-height: 118px;
        align-items: center;
        padding: 10px 18px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__content {
        display: grid;
        grid-template-rows: 30px 42px 20px;
        row-gap: 2px;
        min-width: 0;
        min-height: 96px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__bar {
        display: grid;
        grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.1fr) minmax(250px, 1fr);
        align-items: center;
        gap: 16px;
        min-width: 0;
    }

    .tnb-storefront-header--home .tnb-storefront-header__left,
    .tnb-storefront-header--home .tnb-storefront-header__decor,
    .tnb-storefront-header--home .tnb-storefront-header__right,
    .tnb-storefront-header--home .tnb-storefront-header__search {
        transform: none !important;
    }

    .tnb-storefront-header--home .tnb-storefront-header__left {
        justify-content: flex-start;
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor {
        justify-content: center;
    }

    .tnb-storefront-header--home .tnb-storefront-header__right {
        justify-content: flex-end;
        gap: 16px;
        min-width: 0;
    }

    .tnb-storefront-header--home .tnb-storefront-header__auth {
        flex: 0 0 auto;
    }

    .tnb-storefront-header--home .tnb-storefront-header__cartbtn {
        flex: 0 0 auto;
        padding: 0 2px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__search {
        grid-row: 2;
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(360px, calc(100% - 92px));
        justify-content: start;
        align-items: center;
        gap: 4px;
        margin: 0;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbox,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__searchbox {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        transform: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__tags {
        width: min(100%, 980px);
        max-width: calc(100% - 92px);
        margin: 0;
        transform: none;
    }
}

@media (max-width: 768px) {
    .tnb-storefront-header--home .tnb-storefront-header__frame {
        min-height: 92px;
        padding: 10px 22px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel {
        flex: 0 0 auto;
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel img {
        width: 168px;
        max-width: 56vw;
        max-height: 72px;
        object-fit: contain;
        object-position: left center;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__content {
        top: 92px;
        padding: 8px 8px 10px;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__bar {
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 5px 8px;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__left {
        grid-column: 1;
        grid-row: 1;
        justify-content: start;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__right {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 8px;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__auth {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-width: 0;
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__auth a,
    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__meta a {
        font-size: 10.5px;
        line-height: 1;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__auth .tnb-storefront-header__sep,
    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__meta .tnb-storefront-header__sep {
        flex: 0 0 auto;
    }

    .tnb-storefront-header--home.is-mobile-menu-open .tnb-storefront-header__searchbox {
        padding-left: 12px;
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar {
        top: 228px;
        left: auto;
        right: 14px;
        width: min(55vw, 210px);
        max-height: 278px;
        border-left: 1px solid rgba(107, 71, 51, 0.18);
    }

    .tnb-container.is-mobile-menu-open .btn-category {
        text-align: center;
        padding: 9px 10px;
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar ul,
    .tnb-container.is-mobile-menu-open .tnb-sidebar .category-list {
        max-height: 226px;
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar ul li a {
        padding: 11px 28px 11px 12px;
        font-size: 12px;
        line-height: 1.15;
    }

    .tnb-container.is-mobile-menu-open .tnb-sidebar ul li a::after {
        right: 9px;
        font-size: 20px;
    }
}

/* Desktop header final layout */
@media (min-width: 769px) {
    .tnb-storefront-header--home {
        margin: 10px auto 22px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__frame {
        grid-template-columns: 132px minmax(0, 1fr);
        gap: 18px;
        align-items: center;
        min-height: 132px;
        padding: 14px 20px 13px 18px;
        overflow: visible;
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel {
        width: 112px;
        min-height: 92px;
        padding: 0;
        transform: none;
        align-self: center;
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel img {
        width: 100%;
        max-width: 104px;
        max-height: 72px;
        object-fit: contain;
    }

    .tnb-storefront-header--home .tnb-storefront-header__content,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__content {
        display: grid;
        grid-template-rows: 34px 42px 22px;
        row-gap: 6px;
        min-height: 116px;
        min-width: 0;
        align-content: center;
        padding: 0 !important;
    }

    .tnb-storefront-header--home .tnb-storefront-header__bar {
        display: grid;
        grid-template-columns: minmax(160px, max-content) minmax(250px, 1fr) minmax(220px, max-content);
        gap: 14px;
        align-items: start;
        min-width: 0;
        margin: 0;
    }

    .tnb-storefront-header--home .tnb-storefront-header__left,
    .tnb-storefront-header--home .tnb-storefront-header__decor,
    .tnb-storefront-header--home .tnb-storefront-header__right,
    .tnb-storefront-header--home .tnb-storefront-header__search,
    .tnb-storefront-header--home .tnb-storefront-header__searchbox,
    .tnb-storefront-header--home .tnb-storefront-header__tags {
        transform: none !important;
    }

    .tnb-storefront-header--home .tnb-storefront-header__left {
        grid-column: 1;
        grid-row: 1;
        justify-content: flex-start;
        min-width: 0;
    }

    .tnb-storefront-header--home .tnb-storefront-header__meta {
        gap: 9px;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .tnb-storefront-header--home .tnb-storefront-header__meta a,
    .tnb-storefront-header--home .tnb-storefront-header__auth a {
        font-size: 13px;
        line-height: 1;
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor {
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
        min-width: 0;
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor img {
        width: min(100%, 350px);
        max-height: 22px;
        transform: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__right {
        grid-column: 3;
        grid-row: 1;
        display: inline-flex;
        justify-content: flex-end;
        align-items: center;
        gap: 14px;
        min-width: 0;
        white-space: nowrap;
    }

    .tnb-storefront-header--home .tnb-storefront-header__auth {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        max-width: 250px;
        min-width: 0;
        flex: 0 1 auto;
        overflow: hidden;
    }

    .tnb-storefront-header--home .tnb-storefront-header__auth-name {
        max-width: 132px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tnb-storefront-header--home .tnb-storefront-header__cartbtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 40px;
        min-width: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        flex: 0 0 auto;
    }

    .tnb-storefront-header--home .tnb-storefront-header__cartbtn:hover {
        background: transparent;
        box-shadow: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__cartbtn img {
        width: 38px;
        height: 38px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__carttext {
        display: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__cartcount {
        position: absolute;
        top: -2px;
        right: -2px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__search {
        grid-row: 2;
        display: block;
        width: 100%;
        min-width: 0;
        margin: 2px 0 0;
        padding: 0;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbox,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__searchbox {
        width: min(100%, 1080px);
        max-width: calc(100% - 70px);
        min-width: 0;
        height: 38px;
        min-height: 38px;
        margin: 0;
        padding: 4px 5px 4px 16px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbox input {
        height: 30px;
        font-size: 14px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbtn {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__tags {
        width: min(100%, 1080px);
        max-width: calc(100% - 70px);
        margin: 0;
        padding: 0 8px;
        justify-content: space-between;
        gap: 12px;
        white-space: nowrap;
        overflow: hidden;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags a {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px;
        line-height: 18px;
    }
}

@media (min-width: 1280px) {
    .tnb-storefront-header--home .tnb-storefront-header__frame {
        grid-template-columns: 146px minmax(0, 1fr);
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel {
        width: 122px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbox,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__searchbox,
    .tnb-storefront-header--home .tnb-storefront-header__tags,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__tags {
        max-width: calc(100% - 62px);
    }
}

/* Desktop header remake aligned to the reference */
@media (min-width: 769px) {
    .tnb-storefront-header--home {
        position: sticky;
        top: 0;
        z-index: 280;
        margin: 0 auto 22px;
        padding: 0;
    }

    .tnb-storefront-header--home .tnb-storefront-header__frame {
        position: relative;
        display: block;
        height: 122px;
        min-height: 122px;
        padding: 0 10px;
        border: 1px solid rgba(107, 71, 51, 0.12);
        border-radius: 22px;
        background: rgba(252, 241, 219, 0.96);
        box-shadow: 0 14px 32px rgba(90, 60, 43, 0.1);
        backdrop-filter: blur(10px);
        overflow: visible;
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel {
        position: absolute;
        left: 14px;
        top: 24px;
        z-index: 2;
        display: flex;
        width: 126px;
        height: 94px;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__brand-panel img {
        width: 126px;
        max-width: 126px;
        max-height: 94px;
        object-fit: contain;
    }

    .tnb-storefront-header--home .tnb-storefront-header__content,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__content {
        display: block;
        position: static;
        min-height: 0;
        padding: 0 !important;
    }

    .tnb-storefront-header--home .tnb-storefront-header__bar {
        position: absolute;
        inset: 0 0 auto;
        z-index: 3;
        display: block;
        height: 24px;
        margin: 0;
    }

    .tnb-storefront-header--home .tnb-storefront-header__left {
        position: absolute;
        left: 144px;
        top: 2px;
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .tnb-storefront-header--home .tnb-storefront-header__meta {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        white-space: nowrap;
    }

    .tnb-storefront-header--home .tnb-storefront-header__meta a,
    .tnb-storefront-header--home .tnb-storefront-header__auth a {
        font-size: 13px;
        line-height: 1;
        font-weight: 700;
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor {
        position: absolute;
        left: 50%;
        top: 1px;
        display: flex;
        justify-content: center;
        width: 350px;
        min-width: 0;
        transform: translateX(-50%) !important;
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor img {
        width: 350px;
        max-width: 350px;
        max-height: 22px;
        transform: none !important;
    }

    .tnb-storefront-header--home .tnb-storefront-header__right {
        position: absolute;
        top: 2px;
        right: 54px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        min-width: 0;
        height: 24px;
        white-space: nowrap;
    }

    .tnb-storefront-header--home .tnb-storefront-header__auth {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        max-width: 260px;
        min-width: 0;
        overflow: hidden;
    }

    .tnb-storefront-header--home .tnb-storefront-header__auth-name {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .tnb-storefront-header--home .tnb-storefront-header__cartbtn {
        position: fixed;
        top: auto;
        right: auto;
        display: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__right .tnb-storefront-header__cartbtn {
        position: absolute;
        top: 29px;
        right: -50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__cartbtn:hover {
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__cartbtn img {
        width: 42px;
        height: 42px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__carttext {
        display: none;
    }

    .tnb-storefront-header--home .tnb-storefront-header__cartcount {
        position: absolute;
        top: -2px;
        right: -3px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__search {
        position: absolute;
        left: 144px;
        right: 130px;
        top: 34px;
        z-index: 2;
        display: block;
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        transform: none !important;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbox,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__searchbox {
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 40px;
        min-height: 40px;
        margin: 0;
        padding: 4px 6px 4px 18px;
        transform: none !important;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbox input {
        height: 32px;
        font-size: 14px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__searchbtn {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__tags {
        position: absolute;
        left: 144px;
        right: 86px;
        top: 69px;
        z-index: 1;
        display: flex;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0 8px;
        justify-content: space-between;
        gap: 14px;
        white-space: nowrap;
        overflow: hidden;
        transform: none !important;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags a {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px;
        line-height: 20px;
    }
}

@media (min-width: 1280px) {
    .tnb-storefront-header--home .tnb-storefront-header__search {
        left: 148px;
        right: 136px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__tags {
        left: 148px;
        right: 92px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__left {
        left: 148px;
    }
}

/* Shared desktop header polish */
@media (min-width: 769px) {
    .tnb-storefront-header--home .tnb-storefront-header__left {
        top: 8px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__right {
        top: 8px;
        right: 62px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor {
        top: 5px;
        width: 520px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor img {
        width: 520px;
        max-width: 520px;
        max-height: 24px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__right .tnb-storefront-header__cartbtn {
        top: 22px;
        right: -18px;
        width: auto;
        min-width: 146px;
        height: 42px;
        padding: 0 12px 0 10px;
        border: 1px solid rgba(107, 71, 51, 0.16);
        border-radius: 999px;
        background: rgba(255, 248, 234, 0.96);
        box-shadow: none;
        gap: 8px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__right .tnb-storefront-header__cartbtn img {
        width: 30px;
        height: 30px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__right .tnb-storefront-header__carttext {
        display: inline-flex;
        font-size: 14px;
        font-weight: 800;
        line-height: 1;
        color: #3d3530;
    }

    .tnb-storefront-header--home .tnb-storefront-header__right .tnb-storefront-header__cartcount {
        position: static;
        min-width: 28px;
        height: 24px;
        padding: 0 8px;
        margin-left: 2px;
        font-size: 12px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__search {
        right: 190px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__tags {
        right: 210px;
    }
}

/* Header overlap/counter correction */
@media (min-width: 769px) {
    .tnb-storefront-header--home .tnb-storefront-header__frame {
        height: 136px;
        min-height: 136px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__left {
        top: 14px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__right {
        top: 14px;
        right: 78px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor {
        top: 8px;
        width: 596px;
        gap: 0;
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor::after {
        content: "";
        display: block;
        width: 298px;
        height: 24px;
        margin-left: -76px;
        background: url('../images/string-decor.svg') center / contain no-repeat;
        opacity: 0.9;
        mix-blend-mode: multiply;
    }

    .tnb-storefront-header--home .tnb-storefront-header__decor img {
        width: 298px;
        max-width: 298px;
        max-height: 24px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__search {
        top: 42px;
        right: 330px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__tags {
        top: 74px;
        left: 170px;
        right: 56px;
        justify-content: center;
        gap: 18px;
        padding: 0 18px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags a {
        flex: 0 1 auto;
        max-width: none !important;
        min-width: 0;
        overflow: visible;
        text-overflow: clip;
        font-size: 12px;
        line-height: 20px;
        white-space: nowrap;
    }

    .tnb-storefront-header--home .tnb-storefront-header__right .tnb-storefront-header__cartbtn {
        top: 40px;
        right: -42px;
        min-width: 160px;
        height: 44px;
        padding: 0 12px 0 10px;
        z-index: 4;
    }

    .tnb-storefront-header--home .tnb-storefront-header__right .tnb-storefront-header__carttext {
        display: inline-flex !important;
    }

    .tnb-storefront-header--home .tnb-storefront-header__right .tnb-storefront-header__cartcount {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        position: static !important;
        min-width: 28px;
        height: 24px;
        padding: 0 8px;
        border-radius: 999px;
        background: #6b4733;
        color: #fff;
        font-size: 12px;
        font-weight: 800;
        line-height: 1;
    }
}

/* Final popular tags and mobile floating market controls */
@media (min-width: 769px) {

    .tnb-storefront-header--home .tnb-storefront-header__tags,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__tags {
        top: 76px;
        left: 300px;
        right: 150px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 26px;
        padding: 0;
        overflow: hidden;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags a {
        display: block;
        flex: 0 1 auto;
        min-height: 16px;
        min-width: max-content;
        max-width: none !important;
        overflow: hidden;
        color: #6b4733;
        font-size: clamp(8.8px, 0.64vw, 10.4px);
        font-weight: 800;
        line-height: 1.12;
        text-align: center;
        text-overflow: clip;
        white-space: nowrap;
        -webkit-line-clamp: initial;
        overflow-wrap: normal;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags a:nth-child(n+6) {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1280px) {

    .tnb-storefront-header--home .tnb-storefront-header__tags,
    .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__tags {
        left: 230px;
        right: 180px;
        gap: 16px;
    }

    .tnb-storefront-header--home .tnb-storefront-header__tags a {
        font-size: 8.8px;
    }
}

@media (max-width: 768px) {
    .tnb-weather-chip {
        position: fixed !important;
        right: 10px !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        z-index: 1200 !important;
        max-width: calc(100vw - 20px);
        transform: none !important;
    }

    .tnb-weather-chip__action {
        max-width: 112px;
        justify-content: center;
        font-size: 10.5px;
    }

    .tnb-weather-chip__meta {
        max-width: 172px;
        font-size: 10px;
    }

    .tnb-news-widget {
        width: min(100%, 336px);
    }

    .tnb-news-card {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 60px;
        padding: 10px 12px 10px 34px;
        overflow: hidden;
        background-size: 100% 100%;
    }

    .tnb-news-card a,
    .tnb-news-card span:not(.tnb-news-card__thumb) {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        font-size: 10.4px;
        line-height: 1.18;
        overflow-wrap: anywhere;
    }

    .tnb-news-card__thumb {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        margin-right: 0;
    }

    .tnb-market-modal__panel {
        width: calc(100vw - 14px);
        max-height: calc(100dvh - 18px);
        overflow: auto;
    }

    .tnb-news-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 112px;
        gap: 4px;
        height: auto;
        max-height: calc(100dvh - 132px);
        overflow: auto;
    }

    .tnb-news-tile__body {
        left: 6px;
        right: 6px;
        bottom: 6px;
    }

    .tnb-news-tile__body strong {
        -webkit-line-clamp: 3;
        font-size: 10px;
        line-height: 1.16;
    }

    .tnb-rate-board {
        height: auto;
        max-height: calc(100dvh - 132px);
        overflow: auto;
    }

    .tnb-rate-board__main {
        padding: 10px;
    }

    .tnb-rate-board__headline {
        font-size: 22px;
        overflow-wrap: anywhere;
    }

    .tnb-rate-board__box em {
        font-size: 17px;
        overflow-wrap: anywhere;
    }
}
/* Stable tablet composition for the home page. */
@media (min-width: 769px) and (max-width: 1180px) {
    html, body, .page-wrapper, .page-main, .columns, #maincontent, .tnb-container, .tnb-main { max-width: 100%; overflow-x: clip; }
    .tnb-container { display: block; min-width: 0; }
    .tnb-sidebar { position: relative; top: auto; z-index: 1; display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; height: auto; min-height: 58px; padding: 8px 14px; overflow: hidden; box-sizing: border-box; }
    .btn-category { display: flex; align-items: center; justify-content: center; width: 132px; height: 40px; margin: 0; padding: 0 12px; box-sizing: border-box; white-space: nowrap; }
    .tnb-sidebar ul, .tnb-sidebar .category-list { display: flex; flex-wrap: nowrap; gap: 8px; width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 2px 2px 5px; overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: thin; scrollbar-color: rgba(116, 76, 52, .48) transparent; }
    .tnb-sidebar ul li, .tnb-sidebar .category-list li { flex: 0 0 auto; max-width: 170px; margin: 0; padding: 0; border: 0; }
    .tnb-sidebar ul li a, .tnb-sidebar .category-list li a { display: block; max-width: 170px; padding: 7px 11px; overflow: hidden; border: 1px solid rgba(116, 76, 52, .14); border-radius: 18px; background: rgba(255, 255, 255, .48); text-overflow: ellipsis; white-space: nowrap; }
    .tnb-main { width: 100%; min-width: 0; padding: 12px 16px 36px; box-sizing: border-box; }
    .tnb-storefront-header--home { position: sticky; top: 0; z-index: 220; width: 100%; margin: 0 0 18px; }
    .tnb-storefront-header--home .tnb-storefront-header__frame, .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent { position: relative; display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; width: 100%; height: auto; min-height: 154px; padding: 10px 12px; box-sizing: border-box; }
    .tnb-storefront-header--home .tnb-storefront-header__brand-panel { position: static; inset: auto; display: flex; align-items: center; justify-content: center; width: 100px; min-height: 132px; transform: none; }
    .tnb-storefront-header--home .tnb-storefront-header__brand-panel img { width: 82px; height: auto; max-height: 108px; object-fit: contain; }
    .tnb-storefront-header--home .tnb-storefront-header__content, .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__content { position: static; inset: auto; display: grid; grid-template-rows: auto auto auto; gap: 8px; width: 100%; min-width: 0; transform: none; }
    .tnb-storefront-header--home .tnb-storefront-header__bar { position: static; inset: auto; display: grid; grid-template-columns: minmax(110px, .8fr) minmax(140px, 1fr) minmax(245px, 1.25fr); align-items: center; gap: 10px; width: 100%; min-width: 0; transform: none; }
    .tnb-storefront-header--home .tnb-storefront-header__left, .tnb-storefront-header--home .tnb-storefront-header__decor, .tnb-storefront-header--home .tnb-storefront-header__right, .tnb-storefront-header--home .tnb-storefront-header__search, .tnb-storefront-header--home .tnb-storefront-header__searchbox-wrap, .tnb-storefront-header--home .tnb-storefront-header__searchbox, .tnb-storefront-header--home .tnb-storefront-header__tags { position: static; inset: auto; width: auto; min-width: 0; height: auto; transform: none; }
    .tnb-storefront-header--home .tnb-storefront-header__left, .tnb-storefront-header--home .tnb-storefront-header__right { display: flex; align-items: center; gap: 8px; }
    .tnb-storefront-header--home .tnb-storefront-header__right { justify-content: flex-end; }
    .tnb-storefront-header--home .tnb-storefront-header__meta, .tnb-storefront-header--home .tnb-storefront-header__auth { min-width: 0; white-space: nowrap; }
    .tnb-storefront-header--home .tnb-storefront-header__decor { display: flex; align-items: center; justify-content: center; }
    .tnb-storefront-header--home .tnb-storefront-header__decor::after { display: none; content: none; }
    .tnb-storefront-header--home .tnb-storefront-header__decor img { width: min(100%, 240px); max-width: 240px; max-height: 22px; object-fit: contain; transform: none; }
    .tnb-storefront-header--home .tnb-lang-switcher { position: static; flex: 0 0 auto; margin: 0; transform: none; }
    .tnb-storefront-header--home .tnb-lang-switcher__label, .tnb-storefront-header--home .tnb-lang-switcher-label { display: none; }
    .tnb-storefront-header--home .tnb-storefront-header__cartbtn, .tnb-storefront-header--home .tnb-storefront-header__right .tnb-storefront-header__cartbtn { position: static; flex: 0 0 auto; width: auto; min-width: 104px; height: 36px; margin: 0; padding: 4px 9px; transform: none; }
    .tnb-storefront-header--home .tnb-storefront-header__search { display: grid; gap: 6px; width: 100%; }
    .tnb-storefront-header--home .tnb-storefront-header__searchbox-wrap, .tnb-storefront-header--home .tnb-storefront-header__searchbox, .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__searchbox-wrap, .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__searchbox { width: 100%; min-width: 0; max-width: none; }
    .tnb-storefront-header--home .tnb-storefront-header__tags, .tnb-storefront-header--home .tnb-storefront-header__frame.is-logo-prominent .tnb-storefront-header__tags { display: flex; gap: 12px; width: 100%; min-width: 0; padding-bottom: 2px; overflow-x: auto; overflow-y: hidden; white-space: nowrap; scrollbar-width: none; }
    .tnb-storefront-header--home .tnb-storefront-header__tags a { flex: 0 0 auto; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tnb-home-dashboard { display: grid; grid-template-columns: minmax(230px, 29%) minmax(0, 1fr); gap: 16px; width: 100%; min-width: 0; }
    .tnb-currency-widget { grid-column: 1; grid-row: 1; min-width: 0; }
    .tnb-currency-widget__inner { min-height: 392px; max-height: 410px; padding: 14px 10px 10px; box-sizing: border-box; }
    .tnb-currency-widget__table-wrap { max-width: 100%; overflow-x: auto; }
    .tnb-hero-stage { grid-column: 2; grid-row: 1; min-width: 0; overflow: hidden; }
    .tnb-home-dashboard .film-strip img { width: 100%; max-height: 290px; object-fit: contain; }
    .tnb-home-dashboard .polaroids-decor { width: 76%; max-width: 520px; }
    .tnb-news-widget { grid-column: 1 / -1; grid-row: 2; width: 100%; min-width: 0; }
    .tnb-news-widget__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; width: 100%; min-width: 0; }
    .tnb-news-card { min-width: 0; min-height: 72px; padding: 12px 14px 12px 28px; overflow: hidden; box-sizing: border-box; }
    .tnb-news-card a, .tnb-news-card span:not(.tnb-news-card__thumb) { display: -webkit-box; overflow: hidden; font-size: 11px; line-height: 1.22; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
    .recommend-section { width: 100%; min-width: 0; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; min-width: 0; }
}

@media (min-width: 769px) and (max-width: 900px) {
    .tnb-storefront-header--home .tnb-storefront-header__bar { grid-template-columns: minmax(110px, 1fr) minmax(230px, auto); }
    .tnb-storefront-header--home .tnb-storefront-header__decor { display: none; }
    .tnb-home-dashboard { grid-template-columns: minmax(220px, 32%) minmax(0, 1fr); gap: 12px; }
    .tnb-news-widget__list { grid-template-columns: 1fr; }
}

/* Keep tablet news content inside the paper artwork. */
@media (min-width: 769px) and (max-width: 1180px) {
    .tnb-news-widget__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px 12px;
        justify-items: center;
    }

    .tnb-news-card {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 46px;
        align-items: center;
        gap: 8px;
        width: 100%;
        max-width: 340px;
        min-height: 88px;
        padding: 14px 13px 14px 36px;
        overflow: hidden;
        box-sizing: border-box;
        background-position: center;
        background-size: 100% 100%;
    }

    .tnb-news-card a,
    .tnb-news-card span:not(.tnb-news-card__thumb) {
        position: static !important;
        inset: auto !important;
        min-width: 0;
        max-width: none !important;
        margin: 0 !important;
        transform: none !important;
        font-size: 10.5px;
        line-height: 1.2;
        -webkit-line-clamp: 3;
    }

    .tnb-news-card__thumb {
        position: static !important;
        inset: auto !important;
        width: 46px;
        height: 46px;
        margin: 0 !important;
        transform: none !important;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .tnb-news-widget__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
