:root {
    --tw-blue: #0007a3;
    --tw-blue-bright: #1934d7;
    --tw-blue-deep: #03164f;
    --tw-blue-soft: #eef2ff;
    --tw-text: #0c1737;
    --tw-muted: #6f7891;
    --tw-border: #e4e8f1;
    --tw-surface: #ffffff;
    --tw-bg: #f7f9fd;
    --tw-shadow: 0 14px 40px rgba(11, 28, 74, .09);
}

body {
    background: var(--tw-bg);
    color: var(--tw-text);
}

/* HOME HEADER */
.tw-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(105deg, var(--tw-blue-deep), var(--tw-blue));
    box-shadow: 0 10px 30px rgba(0, 7, 100, .18);
}

.tw-header__inner {
    position: relative;
    width: min(1600px, calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto auto minmax(300px, 1fr) minmax(170px, 220px) auto;
    gap: 18px;
    align-items: center;
}

.tw-header__brand {
    display: inline-flex;
    align-items: center;
    min-width: 120px;
}

.tw-header__brand img {
    width: auto;
    max-width: 145px;
    height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.tw-header__nav {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.tw-header__nav a {
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease, transform .2s ease;
}

.tw-header__nav a:hover,
.tw-header__nav a.is-active {
    color: #fff;
    transform: translateY(-1px);
}

.tw-header__search {
    position: relative;
    display: flex;
    min-width: 0;
    height: 48px;
    overflow: visible;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

.tw-header__search input[type="search"] {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 16px;
    border-radius: 14px 0 0 14px;
    color: var(--tw-text);
    background: transparent;
    font-size: 14px;
}

.tw-header__search button {
    min-width: 94px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 0 13px 13px 0;
    background: var(--tw-blue-bright);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.tw-header__search button i {
    font-size: 18px;
}

.tw-header__search-results {
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    display: none;
    max-height: 420px;
    overflow: auto;
    border: 0;
    border-radius: 16px;
    box-shadow: var(--tw-shadow);
}

.tw-header__location-wrap {
    position: relative;
    min-width: 0;
}

.tw-header__location {
    width: 100%;
    height: 48px;
    padding: 0 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    cursor: pointer;
    text-align: left;
    backdrop-filter: blur(8px);
}

.tw-header__location > i:first-child {
    font-size: 19px;
}

.tw-header__location > i:last-child {
    font-size: 11px;
}

.tw-header__location span {
    min-width: 0;
    display: block;
}

.tw-header__location small,
.tw-header__location strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tw-header__location small {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 600;
}

.tw-header__location strong {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.tw-location-panel {
    position: absolute;
    top: 57px;
    right: 0;
    z-index: 1060;
    width: min(390px, calc(100vw - 28px));
    padding: 18px;
    border: 1px solid var(--tw-border);
    border-radius: 18px;
    background: #fff;
    color: var(--tw-text);
    box-shadow: 0 24px 70px rgba(6, 22, 70, .22);
}

.tw-location-panel[hidden] {
    display: none !important;
}

.tw-location-panel__head {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.tw-location-panel__head strong,
.tw-location-panel__head small {
    display: block;
}

.tw-location-panel__head strong {
    font-size: 16px;
}

.tw-location-panel__head small {
    margin-top: 3px;
    color: var(--tw-muted);
    font-size: 11px;
    line-height: 1.45;
}

.tw-location-panel__head button {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border: 0;
    border-radius: 50%;
    background: #f0f3fa;
    color: var(--tw-text);
    font-size: 20px;
    cursor: pointer;
}

.tw-location-panel label {
    display: block;
    margin: 10px 0 5px;
    color: var(--tw-text);
    font-size: 11px;
    font-weight: 800;
}

.tw-location-panel input[type="text"] {
    width: 100%;
    height: 43px;
    padding: 0 12px;
    border: 1px solid #dce1ec;
    border-radius: 11px;
    outline: none;
    color: var(--tw-text);
    background: #fff;
}

.tw-location-panel input[type="text"]:focus {
    border-color: var(--tw-blue);
    box-shadow: 0 0 0 3px rgba(0, 7, 163, .08);
}

.tw-location-panel__actions {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tw-location-panel__actions button {
    min-height: 42px;
    padding: 8px 11px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.tw-location-current {
    border: 1px solid rgba(0, 7, 163, .2);
    background: var(--tw-blue-soft);
    color: var(--tw-blue);
}

.tw-location-save {
    border: 1px solid var(--tw-blue);
    background: var(--tw-blue);
    color: #fff;
}

.tw-location-status {
    min-height: 18px;
    margin: 10px 0 0;
    color: #18864b;
    font-size: 11px;
    font-weight: 700;
}

.tw-location-status.is-error {
    color: #d43434;
}

.tw-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tw-header__cart,
.tw-header__account,
.tw-header__menu {
    color: #fff;
}

.tw-header__cart {
    position: relative;
    font-size: 23px;
}

.tw-header__cart > span {
    position: absolute;
    top: -10px;
    right: -12px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #3d70ff;
    border: 2px solid #fff;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.tw-header__account {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.tw-header__account-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    font-size: 15px;
}

.tw-header__account-copy small,
.tw-header__account-copy strong {
    display: block;
}

.tw-header__account-copy small {
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
}

.tw-header__account-copy strong {
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.tw-header__menu {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    font-size: 20px;
    cursor: pointer;
}

.tw-header__cart-source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* HOME CONTENT */
.tw-home {
    padding-bottom: 60px;
}

.tw-hero {
    height: 30vh;
    min-height: 240px;
    max-height: 390px;
    background: var(--tw-blue-deep);
    overflow: hidden;
}

.tw-hero__link,
.tw-hero__link img {
    display: block;
    width: 100%;
    height: 100%;
}

.tw-hero__link img {
    object-fit: cover;
    object-position: center;
}

.tw-hero__fallback {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 30px max(5vw, 24px);
    color: #fff;
    background:
        radial-gradient(circle at 70% 30%, rgba(55, 113, 255, .55), transparent 28%),
        linear-gradient(115deg, #061d55, #0007a3);
}

.tw-hero__fallback span {
    display: block;
    margin-bottom: 8px;
    color: #a8c0ff;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.tw-hero__fallback h1 {
    max-width: 680px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(30px, 4vw, 58px);
    line-height: 1.05;
}

.tw-hero__fallback a {
    display: inline-flex;
    padding: 12px 20px;
    border-radius: 12px;
    background: #fff;
    color: var(--tw-blue);
    font-weight: 700;
}

.tw-section {
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    padding-top: 30px;
}

.tw-section__heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.tw-section__heading h2 {
    margin: 0;
    color: var(--tw-text);
    font-size: clamp(23px, 2.3vw, 31px);
    font-weight: 800;
}

.tw-section__eyebrow {
    color: var(--tw-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.tw-section__heading > a {
    color: var(--tw-blue);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

/* Categories always remain in one horizontal row. */
.tw-category-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 80px) / 6);
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.tw-category-card {
    min-width: 0;
    padding: 12px 10px 11px;
    text-align: center;
    border: 1px solid var(--tw-border);
    border-radius: 18px;
    background: var(--tw-surface);
    box-shadow: 0 8px 24px rgba(15, 34, 82, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    scroll-snap-align: start;
}

.tw-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 7, 163, .22);
    box-shadow: var(--tw-shadow);
}

.tw-category-card__image {
    display: grid;
    place-items: center;
    width: 100%;
    height: 118px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(145deg, #f6f8fd, #edf1f8);
}

.tw-category-card__image img {
    width: 84%;
    height: 84%;
    object-fit: contain;
}

.tw-category-card strong {
    display: block;
    overflow: hidden;
    color: var(--tw-text);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tw-category-card small {
    display: block;
    margin-top: 3px;
    color: var(--tw-muted);
    font-size: 11px;
}

.tw-product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.tw-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--tw-border);
    border-radius: 20px;
    background: var(--tw-surface);
    box-shadow: 0 8px 26px rgba(16, 36, 83, .05);
    transition: transform .2s ease, box-shadow .2s ease;
}

.tw-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tw-shadow);
}

.tw-product-card__media {
    position: relative;
    aspect-ratio: 1 / .82;
    overflow: hidden;
    background: linear-gradient(145deg, #f8f9fc, #eef1f6);
}

.tw-product-card__media > a,
.tw-product-card__media img {
    display: block;
    width: 100%;
    height: 100%;
}

.tw-product-card__media img {
    padding: 13px;
    object-fit: contain;
    transition: transform .28s ease;
}

.tw-product-card:hover .tw-product-card__media img {
    transform: scale(1.04);
}

.tw-product-card__discount {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    border-radius: 8px;
    background: #ff4d5f;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.tw-product-card__wish {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--tw-blue);
    box-shadow: 0 5px 15px rgba(20, 36, 78, .1);
    cursor: pointer;
}

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

.tw-product-card__name {
    min-height: 40px;
    display: -webkit-box;
    overflow: hidden;
    color: var(--tw-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tw-product-card__rating {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f5a200;
    font-size: 12px;
}

.tw-product-card__rating small {
    color: var(--tw-muted);
}

.tw-product-card__bottom {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 10px;
}

.tw-product-card__price strong {
    display: block;
    color: var(--tw-blue);
    font-size: 15px;
    line-height: 1.2;
}

.tw-product-card__price del {
    display: block;
    margin-top: 3px;
    color: #9aa1b1;
    font-size: 11px;
}

.tw-product-card__add {
    min-width: 58px;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 10px;
    background: var(--tw-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.tw-feed-banner {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    min-height: 120px;
    max-height: 260px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--tw-blue-soft);
    box-shadow: var(--tw-shadow);
}

.tw-feed-banner[hidden] {
    display: none !important;
}

.tw-feed-banner img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 120px;
    max-height: 260px;
    object-fit: cover;
}

.tw-empty-products {
    padding: 50px 20px;
    text-align: center;
    border: 1px dashed #cfd5e3;
    border-radius: 20px;
    background: #fff;
    color: var(--tw-muted);
}

.tw-empty-products i {
    display: block;
    margin-bottom: 10px;
    color: var(--tw-blue);
    font-size: 34px;
}

@media (max-width: 1399px) {
    .tw-header__inner {
        grid-template-columns: auto minmax(300px, 1fr) minmax(170px, 210px) auto;
    }

    .tw-header__nav {
        position: absolute;
        top: 67px;
        left: 0;
        display: none;
        min-width: 430px;
        padding: 14px 16px;
        flex-wrap: wrap;
        border-radius: 15px;
        background: #fff;
        box-shadow: var(--tw-shadow);
    }

    .tw-header__nav.is-open {
        display: flex;
    }

    .tw-header__nav a,
    .tw-header__nav a.is-active {
        color: var(--tw-text);
    }

    .tw-header__menu {
        display: inline-grid;
        place-items: center;
    }
}

@media (max-width: 1199px) {
    .tw-header__inner {
        width: min(100% - 28px, 1160px);
        grid-template-columns: auto minmax(250px, 1fr) minmax(165px, 195px) auto;
        gap: 13px;
    }

    .tw-header__account-copy {
        display: none;
    }

    .tw-category-strip {
        grid-auto-columns: calc((100% - 56px) / 5);
        gap: 14px;
    }

    .tw-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .tw-header__inner {
        min-height: 132px;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: 60px 52px;
        gap: 8px 12px;
    }

    .tw-header__brand {
        grid-column: 1;
        grid-row: 1;
    }

    .tw-header__actions {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .tw-header__search {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .tw-header__location-wrap {
        grid-column: 3;
        grid-row: 2;
        min-width: 190px;
    }

    .tw-header__nav {
        top: 58px;
        left: auto;
        right: 0;
        min-width: min(430px, calc(100vw - 28px));
    }

    .tw-category-strip {
        grid-auto-columns: minmax(150px, 28vw);
    }

    .tw-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tw-header__inner {
        width: calc(100% - 20px);
        min-height: 178px;
        grid-template-columns: 1fr auto;
        grid-template-rows: 56px 48px 48px;
        gap: 7px 10px;
    }

    .tw-header__brand {
        grid-column: 1;
        grid-row: 1;
    }

    .tw-header__brand img {
        max-width: 120px;
        height: 36px;
    }

    .tw-header__actions {
        grid-column: 2;
        grid-row: 1;
    }

    .tw-header__search {
        grid-column: 1 / -1;
        grid-row: 2;
        height: 46px;
    }

    .tw-header__location-wrap {
        grid-column: 1 / -1;
        grid-row: 3;
        min-width: 0;
    }

    .tw-header__location {
        height: 44px;
    }

    .tw-location-panel {
        top: 50px;
        left: 0;
        right: auto;
    }

    .tw-header__search button {
        min-width: 50px;
        width: 50px;
        padding: 0;
    }

    .tw-header__search button span {
        display: none;
    }

    .tw-header__nav {
        top: 52px;
    }

    .tw-hero {
        height: 30vh;
        min-height: 195px;
        max-height: 280px;
    }

    .tw-section {
        width: calc(100% - 24px);
        padding-top: 24px;
    }

    .tw-section__heading h2 {
        font-size: 22px;
    }

    .tw-category-strip {
        grid-auto-columns: minmax(138px, 43vw);
        gap: 12px;
    }

    .tw-category-card__image {
        height: 104px;
    }

    .tw-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .tw-product-card {
        border-radius: 16px;
    }

    .tw-product-card__body {
        padding: 11px;
    }

    .tw-product-card__name {
        min-height: 37px;
        font-size: 12px;
    }

    .tw-product-card__bottom {
        align-items: center;
    }

    .tw-product-card__add span {
        display: none;
    }

    .tw-product-card__add {
        min-width: 36px;
        width: 36px;
        padding: 0;
    }

    .tw-feed-banner,
    .tw-feed-banner img {
        min-height: 90px;
        max-height: 150px;
        border-radius: 16px;
    }
}

@media (max-width: 420px) {
    .tw-header__brand img {
        max-width: 105px;
    }

    .tw-header__actions {
        gap: 10px;
    }

    .tw-header__account-icon {
        width: 32px;
        height: 32px;
    }

    .tw-location-panel__actions {
        grid-template-columns: 1fr;
    }

    .tw-product-card__price strong {
        font-size: 13px;
    }
}

/* V3: product cards open the product details page when the card surface is clicked. */
.tw-product-card[role="link"] {
    cursor: pointer;
}

.tw-product-card[role="link"]:focus-visible {
    outline: 3px solid rgba(0, 7, 163, .25);
    outline-offset: 3px;
}

/* V3: admin-controlled in-feed advertisement card after three product rows. */
.tw-feed-banner {
    position: relative;
    padding: 8px;
    min-height: 150px;
    max-height: 290px;
    border: 1px solid rgba(0, 7, 163, .13);
    background: #fff;
}

.tw-feed-banner__link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 134px;
    overflow: hidden;
    border-radius: 16px;
    background: var(--tw-blue-soft);
}

.tw-feed-banner__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(4, 20, 70, .82);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    backdrop-filter: blur(7px);
}

.tw-feed-banner__link img {
    width: 100%;
    height: 100%;
    min-height: 134px;
    max-height: 274px;
    object-fit: cover;
    transition: transform .35s ease;
}

.tw-feed-banner:hover .tw-feed-banner__link img {
    transform: scale(1.015);
}

/* V5 consolidated UI refinements */
.tw-home {
    padding-bottom: 54px;
}

.tw-hero {
    height: 30vh;
    min-height: 240px;
    max-height: 420px;
}

.tw-hero__link,
.tw-hero__link img {
    width: 100%;
    height: 100%;
}

.tw-hero__link img {
    object-fit: cover;
    object-position: center;
}

.tw-category-strip {
    grid-auto-columns: calc((100% - 80px) / 6);
    scrollbar-width: none;
}

.tw-category-strip::-webkit-scrollbar {
    display: none;
}

.tw-feed-banner {
    grid-column: 1 / -1;
    min-height: 170px;
    max-height: 300px;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(120deg, #071769, #0007a3 62%, #394ff0);
    box-shadow: 0 18px 38px rgba(0, 7, 163, .16);
}

.tw-feed-banner__link,
.tw-feed-banner__fallback {
    position: relative;
    width: 100%;
    min-height: 170px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: inherit;
}

.tw-feed-banner__link img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 170px;
    max-height: 300px;
    object-fit: cover;
}

.tw-feed-banner__link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 13, 64, .86), rgba(3, 13, 64, .2) 65%, transparent);
}

.tw-feed-banner__content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    padding: 28px 34px;
    display: grid;
    gap: 7px;
    color: #fff;
}

.tw-feed-banner__content small,
.tw-feed-banner__fallback small {
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .8;
}

.tw-feed-banner__content strong,
.tw-feed-banner__fallback strong {
    color: #fff;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 850;
    line-height: 1.1;
}

.tw-feed-banner__content span {
    font-weight: 800;
}

.tw-feed-banner__fallback {
    justify-content: space-between;
    gap: 22px;
    padding: 30px 38px;
    color: #fff;
}

.tw-feed-banner__fallback > span:nth-child(2) {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 7px;
}

.tw-feed-banner__fallback em {
    max-width: 620px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    font-style: normal;
}

.tw-feed-banner__fallback b {
    position: relative;
    z-index: 2;
    padding: 12px 17px;
    border-radius: 11px;
    background: #fff;
    color: #0007a3;
    white-space: nowrap;
}

.tw-feed-banner__shape {
    position: absolute;
    right: -60px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.tw-header__brand img {
    object-fit: contain;
}

@media (max-width: 1199px) {
    .tw-category-strip {
        grid-auto-columns: calc((100% - 64px) / 5);
    }
}

@media (max-width: 991px) {
    .tw-category-strip {
        grid-auto-columns: calc((100% - 32px) / 3);
    }
}

@media (max-width: 767px) {
    .tw-hero {
        min-height: 210px;
        max-height: 300px;
    }

    .tw-category-strip {
        grid-auto-columns: minmax(138px, 43vw);
    }

    .tw-feed-banner,
    .tw-feed-banner__link,
    .tw-feed-banner__fallback,
    .tw-feed-banner__link img {
        min-height: 128px;
    }

    .tw-feed-banner__content,
    .tw-feed-banner__fallback {
        padding: 20px;
    }

    .tw-feed-banner__fallback b,
    .tw-feed-banner__fallback em {
        display: none;
    }
}
.tw-feed-banner.has-fallback img {
    display: none;
}

.tw-feed-banner.has-fallback .tw-feed-banner__link {
    background: linear-gradient(120deg, #071769, #0007a3 62%, #394ff0);
}

/* Townway fixed marketplace groups: five cards in one desktop row. */
.tw-category-strip.tw-category-strip--fixed {
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    overflow: visible;
    padding-bottom: 4px;
}

.tw-category-strip--fixed .tw-category-card {
    width: 100%;
}

@media (max-width: 991px) {
    .tw-category-strip.tw-category-strip--fixed {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(175px, 31vw);
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
        padding-bottom: 10px;
    }
}

@media (max-width: 767px) {
    .tw-category-strip.tw-category-strip--fixed {
        grid-auto-columns: minmax(148px, 44vw);
        gap: 12px;
    }
}


/* Exact five homepage category cards: clean fallback icons when media is absent. */
.tw-category-card__fallback-icon {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: inherit;
    background: linear-gradient(145deg, #f7f9ff, #e9efff);
    color: #0007a3;
    font-size: 44px;
}

.tw-category-card__fallback-icon i {
    line-height: 1;
}

/* Townway V5.3 final UI polish */
/* Keep the customer account readable on all catalogue pages. */
.tw-header .tw-header__account,
.tw-header .tw-header__account:hover,
.tw-header .tw-header__account:focus,
.tw-header .tw-header__account:active {
    min-width: 118px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 12px;
    background: rgba(255, 255, 255, .10) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.tw-header .tw-header__account-icon,
.tw-header .tw-header__account-icon i,
.tw-header .tw-header__account-copy small,
.tw-header .tw-header__account-copy strong {
    color: #fff !important;
}

.tw-header .tw-header__account-copy {
    min-width: 0;
}

.tw-header .tw-header__account-copy small,
.tw-header .tw-header__account-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* A different colour treatment is rotated after every three product rows. */
.tw-feed-banner--theme-1 {
    --tw-feed-bg: linear-gradient(120deg, #071769, #0007a3 62%, #5d4dff);
    --tw-feed-overlay: linear-gradient(90deg, rgba(3, 13, 64, .90), rgba(34, 23, 150, .38) 68%, transparent);
}

.tw-feed-banner--theme-2 {
    --tw-feed-bg: linear-gradient(120deg, #075b55, #008b74 58%, #43c77f);
    --tw-feed-overlay: linear-gradient(90deg, rgba(1, 67, 62, .92), rgba(0, 139, 116, .40) 68%, transparent);
}

.tw-feed-banner--theme-3 {
    --tw-feed-bg: linear-gradient(120deg, #9c3d00, #e56b16 56%, #ffba45);
    --tw-feed-overlay: linear-gradient(90deg, rgba(106, 35, 0, .92), rgba(229, 107, 22, .42) 68%, transparent);
}

.tw-feed-banner--theme-4 {
    --tw-feed-bg: linear-gradient(120deg, #4c156d, #7d2eb7 56%, #d353ad);
    --tw-feed-overlay: linear-gradient(90deg, rgba(55, 12, 83, .92), rgba(125, 46, 183, .42) 68%, transparent);
}

.tw-feed-banner--theme-1,
.tw-feed-banner--theme-2,
.tw-feed-banner--theme-3,
.tw-feed-banner--theme-4,
.tw-feed-banner--theme-1 .tw-feed-banner__fallback,
.tw-feed-banner--theme-2 .tw-feed-banner__fallback,
.tw-feed-banner--theme-3 .tw-feed-banner__fallback,
.tw-feed-banner--theme-4 .tw-feed-banner__fallback,
.tw-feed-banner.has-fallback.tw-feed-banner--theme-1 .tw-feed-banner__link,
.tw-feed-banner.has-fallback.tw-feed-banner--theme-2 .tw-feed-banner__link,
.tw-feed-banner.has-fallback.tw-feed-banner--theme-3 .tw-feed-banner__link,
.tw-feed-banner.has-fallback.tw-feed-banner--theme-4 .tw-feed-banner__link {
    background: var(--tw-feed-bg) !important;
}

.tw-feed-banner--theme-1 .tw-feed-banner__link::after,
.tw-feed-banner--theme-2 .tw-feed-banner__link::after,
.tw-feed-banner--theme-3 .tw-feed-banner__link::after,
.tw-feed-banner--theme-4 .tw-feed-banner__link::after {
    background: var(--tw-feed-overlay) !important;
}

@media (max-width: 1199px) {
    .tw-header .tw-header__account {
        min-width: 42px;
        padding: 4px;
    }
}

/* Townway V5.4 progressive Home feed */
.tw-product-grid .tw-product-card {
    content-visibility: auto;
    contain-intrinsic-size: 360px;
}

.tw-home-feed-sentinel {
    min-height: 72px;
    margin: 22px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: #5f6c8c;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.tw-home-feed-sentinel[hidden] {
    display: none !important;
}

.tw-home-feed-spinner {
    display: none;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 3px solid rgba(0, 7, 163, .15);
    border-top-color: #0007a3;
    border-radius: 50%;
    animation: tw-home-feed-spin .75s linear infinite;
}

.tw-product-grid[aria-busy="true"] + .tw-home-feed-sentinel .tw-home-feed-spinner {
    display: inline-block;
}

@keyframes tw-home-feed-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .tw-home-feed-spinner {
        animation: none;
    }
}

/* Final Townway account button and dropdown fix */
body .tw-header .tw-header__account-dropdown {
    position: relative !important;
    display: block !important;
    background: transparent !important;
    border: 0 !important;
}

body .tw-header .tw-header__account-dropdown > a.tw-header__account,
body .tw-header .tw-header__account-dropdown > a.tw-header__account:hover,
body .tw-header .tw-header__account-dropdown > a.tw-header__account:focus,
body .tw-header .tw-header__account-dropdown.show > a.tw-header__account {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    min-width: 150px !important;
    min-height: 48px !important;
    padding: 6px 10px !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, .10) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, .28) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

body .tw-header .tw-header__account-dropdown
.tw-header__account-icon,
body .tw-header .tw-header__account-dropdown
.tw-header__account-icon i,
body .tw-header .tw-header__account-dropdown
.tw-header__account-copy,
body .tw-header .tw-header__account-dropdown
.tw-header__account-copy small,
body .tw-header .tw-header__account-dropdown
.tw-header__account-copy strong {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    background: transparent !important;
}

body .tw-header .tw-header__account-dropdown .dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    min-width: 220px !important;
    padding: 8px !important;
    background: #ffffff !important;
    border: 1px solid #dfe5f1 !important;
    border-radius: 10px !important;
    box-shadow: 0 12px 30px rgba(16, 35, 80, .18) !important;
}

body .tw-header .tw-header__account-dropdown
.dropdown-menu .dropdown-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    padding: 10px 14px !important;
    color: #17213b !important;
    background: transparent !important;
    border-radius: 7px !important;
}

body .tw-header .tw-header__account-dropdown
.dropdown-menu .dropdown-item:hover {
    color: #2449c5 !important;
    background: #edf2ff !important;
}


/* Townway homepage header/banner spacing */
body .tw-home {
    padding-top: 14px;
}

@media (max-width: 767px) {
    body .tw-home {
        padding-top: 8px;
    }
}
