:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-soft: #fff7f1;
    --text: #172033;
    --muted: #627084;
    --line: #e4e7ee;
    --primary: #f05a28;
    --primary-dark: #d94316;
    --accent: #d71920;
    --accent-soft: #fff0ec;
    --success: #14805f;
    --warning: #f59e0b;
    --shadow: 0 16px 40px rgba(20, 31, 50, 0.08);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Be Vietnam Pro", Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

input,
button,
select,
textarea {
    font-family: inherit;
}

.icon {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    vertical-align: -0.15em;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    background: #202633;
    color: #ffffff;
    font-size: 14px;
}

.topbar__inner,
.header-main,
.main-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar__inner {
    min-height: 36px;
}

.topbar strong {
    color: #ffd4c0;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(20, 31, 50, 0.04);
}

.header-main {
    min-height: 82px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: #ffffff;
}

.brand__text {
    display: block;
    font-size: 20px;
}

.brand__tagline {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.search {
    display: flex;
    flex: 1;
    max-width: 520px;
}

.search input {
    width: 100%;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 13px 14px;
    font: inherit;
}

.search button,
.button,
.header-action {
    border: 0;
    border-radius: var(--radius);
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 12px 18px;
}

.search button {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.header-action {
    background: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-support {
    display: none;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.header-support strong {
    display: block;
    color: var(--accent);
    font-size: 15px;
}

.main-nav {
    background: #fff7f1;
    border-top: 1px solid #ffe0d2;
}

.main-nav__inner {
    justify-content: flex-start;
    min-height: 46px;
}

.main-nav a {
    color: #4b5565;
    font-weight: 700;
}

.main-nav a:hover {
    color: var(--accent);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main--desktop {
    display: grid;
    grid-template-columns: 210px minmax(280px, 1fr) auto;
    gap: 22px;
    min-height: 86px;
}

.brand--image img,
.brand--mobile img {
    display: block;
    max-width: 168px;
    max-height: 62px;
    object-fit: contain;
}

.header-search {
    display: flex;
    width: 100%;
    border: 2px solid var(--primary);
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
}

.header-search input,
.mobile-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    padding: 13px 18px;
    font: inherit;
    outline: 0;
}

.header-search button,
.mobile-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0 22px;
    transition: background 0.18s ease;
    white-space: nowrap;
}

.header-search button:hover,
.mobile-search button:hover {
    background: var(--primary-dark);
}

.header-utilities {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hotline-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    min-width: 138px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.hotline-card .icon {
    grid-row: 1 / span 2;
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.hotline-card strong {
    color: var(--accent);
    font-size: 16px;
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 8px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 800;
    padding: 10px 16px;
    transition: transform 0.18s ease, background 0.18s ease;
}

.cart-link:hover {
    transform: translateY(-1px);
    background: #bf1218;
}

.cart-link__icon {
    font-size: 18px;
    line-height: 1;
}

.cart-link__badge {
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 999px;
    background: #ffffff;
    color: var(--accent);
    font-size: 12px;
}

.desktop-nav {
    background: var(--secondary, #202633);
    border-top: 0;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-menu > li {
    position: relative;
}

.desktop-menu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    border-radius: 6px;
    color: #ffffff;
    padding: 0 20px;
    transition: background 0.18s ease, color 0.18s ease;
    gap: 7px;
    text-transform: uppercase;
}

.desktop-menu > li > a:hover,
.desktop-menu > li:hover > a {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 18px;
    width: min(860px, calc(100vw - 32px));
    border: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    padding: 22px;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.mega-menu--simple {
    grid-template-columns: minmax(220px, 1fr);
    width: min(320px, calc(100vw - 32px));
    gap: 10px;
    padding: 14px;
}

.has-dropdown:hover .mega-menu,
.has-dropdown:focus-within .mega-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mega-menu__col {
    display: grid;
    align-content: start;
    gap: 8px;
}

.mega-menu a {
    color: var(--text);
    font-weight: 700;
}

.mega-menu a:hover {
    color: var(--accent);
}

.mega-menu__title {
    color: var(--accent) !important;
    font-size: 16px;
}

.mega-menu__sub {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.mega-menu__sub strong {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.mobile-header,
.mobile-menu {
    display: none;
}

.mobile-menu-toggle,
.mobile-menu-close,
.mobile-submenu-toggle {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.mobile-menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: var(--radius);
    background: #fff3ec;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(23, 32, 51, 0.5);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu__panel {
    width: min(88vw, 380px);
    height: 100%;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow-y: auto;
    padding: 18px;
}

.mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.mobile-menu-close {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: var(--radius);
    background: #fff3ec;
    color: var(--accent);
    font-size: 28px;
    line-height: 1;
}

.mobile-search {
    display: flex;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}

.mobile-nav,
.mobile-submenu {
    display: grid;
    gap: 6px;
}

.mobile-nav a,
.mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    border-radius: var(--radius);
    background: #f6f7fb;
    color: var(--text);
    font-weight: 800;
    padding: 0 12px;
    text-align: left;
}

.mobile-submenu-toggle::after {
    content: "+";
    color: var(--accent);
    font-size: 20px;
}

.mobile-submenu-toggle.is-open::after {
    content: "-";
}

.mobile-submenu {
    display: none;
    padding-left: 12px;
}

.mobile-submenu.is-open {
    display: grid;
}

.mobile-submenu--child a {
    min-height: 40px;
    background: #fff7f1;
    font-weight: 700;
}

body.menu-open {
    overflow: hidden;
}

.hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 188, 122, 0.45), transparent 28%),
        linear-gradient(135deg, #fff7f1 0%, #ffffff 56%, #ffe8df 100%);
    border-bottom: 1px solid var(--line);
}

.home-slider {
    position: relative;
    overflow: hidden;
    background: #202633;
}

.home-slider__track {
    position: relative;
    min-height: clamp(280px, 34vw, 630px);
    touch-action: pan-y;
}

.home-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.home-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.home-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(32, 38, 51, 0.82), rgba(32, 38, 51, 0.32), rgba(32, 38, 51, 0.08));
}

.home-slide img {
    display: block;
    width: 100%;
    height: clamp(280px, 34vw, 630px);
    object-fit: cover;
}

.home-slide__content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: max(24px, calc((100vw - 1180px) / 2 + 16px));
    width: min(520px, calc(100% - 48px));
    color: #ffffff;
    transform: translateY(-50%);
}

.home-slide__content .eyebrow {
    color: #ffd4c0;
}

.home-slide__content h1,
.home-slide__content h2 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
}

.home-slide__content p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
}

.home-slider__nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.18s ease, transform 0.18s ease;
}

.home-slider__nav:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.home-slider__nav--prev {
    left: 24px;
}

.home-slider__nav--next {
    right: 24px;
}

.home-slider__dots {
    position: absolute;
    z-index: 3;
    bottom: 18px;
    left: 50%;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.home-slider__dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
    transition: width 0.18s ease, background 0.18s ease;
}

.home-slider__dots button.is-active {
    width: 28px;
    background: var(--primary);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 32px;
    align-items: center;
    min-height: 420px;
    padding: 54px 0;
}

.hero h1 {
    max-width: 720px;
    margin: 0 0 16px;
    font-size: 44px;
    line-height: 1.15;
}

.hero p {
    max-width: 640px;
    color: var(--muted);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.button--small {
    min-height: 38px;
    padding: 9px 13px;
    font-size: 14px;
}

.button--primary:hover {
    background: var(--primary-dark);
}

.button--ghost {
    background: #ffffff;
    color: var(--primary-dark);
    border: 1px solid var(--line);
}

.button--light {
    background: var(--accent-soft);
    color: var(--accent);
}

.hero__panel {
    display: grid;
    gap: 12px;
}

.hero__panel div {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    padding: 18px;
    box-shadow: var(--shadow);
}

.hero__panel strong {
    display: block;
    font-size: 34px;
}

.hero__panel span {
    color: var(--muted);
}

.service-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.service-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
}

.service-strip__grid div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    padding: 18px 14px;
}

.service-strip__grid strong,
.service-strip__grid span {
    display: block;
}

.service-strip__grid .icon {
    grid-row: 1 / span 2;
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.service-strip__grid span {
    color: var(--muted);
    font-size: 14px;
}

.section {
    padding: 44px 0;
}

.page-hero {
    padding: 38px 0;
    background: linear-gradient(135deg, #fff7f1, #ffffff);
    border-bottom: 1px solid var(--line);
}

.section--soft {
    background: #ffffff;
    border-block: 1px solid var(--line);
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: 28px;
}

.section-heading h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
}

.section-heading--row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-weight: 700;
}

.section-link--stable {
    flex: 0 0 auto;
    justify-content: center;
    min-height: 38px;
    border: 1px solid #ffc8b2;
    border-radius: 999px;
    background: #fff7f1;
    padding: 8px 13px;
    text-align: center;
    white-space: nowrap;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-category-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-height: 104px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 31, 50, 0.05);
    padding: 14px;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.home-category-card__media,
.home-category-card__icon {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--primary);
    overflow: hidden;
}

.home-category-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 7px;
}

.home-category-card__icon .icon {
    width: 30px;
    height: 30px;
}

.home-category-card strong {
    display: block;
    line-height: 1.25;
    margin-bottom: 5px;
}

.home-category-card span:last-child {
    color: var(--muted);
    font-size: 13px;
}

.home-product-banner {
    padding: 10px 0 34px;
}

.promo-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.promo-banner {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.promo-banner img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    transition: transform 0.22s ease;
}

.promo-banner:hover img {
    transform: scale(1.02);
}

.category-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.category-card,
.product-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(20, 31, 50, 0.05);
}

.category-card {
    display: block;
    padding: 20px;
}

.category-card--shop {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card--shop:hover,
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-card__icon {
    display: grid;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
}

.category-card__icon .icon {
    width: 22px;
    height: 22px;
}

.category-card h3,
.product-card h3 {
    margin: 0 0 8px;
}

.category-card p,
.product-card p {
    margin: 0;
    color: var(--muted);
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.product-card__badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
}

.product-card__image {
    display: grid;
    min-height: 0;
    width: 100%;
    height: 170px;
    place-items: center;
    background: linear-gradient(135deg, #fff7f1, #edf2f7);
    color: var(--primary);
    font-weight: 700;
    padding: 12px;
    overflow: hidden;
}

.product-card__image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 146px;
    object-fit: contain;
    object-position: center;
}

.product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.product-card__meta {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    min-height: 18px;
}

.product-card h3 {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.35;
}

.product-card__desc {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.55;
}

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

.product-card__price {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    min-height: 30px;
    margin-top: 14px;
}

.product-card__price strong {
    color: var(--accent);
    font-size: 18px;
    line-height: 1.25;
}

.product-card__price span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
    text-decoration: line-through;
}

.product-card__status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    background: #eafaf2;
    color: var(--success);
    font-size: 12px;
    font-weight: 800;
    margin-top: 10px;
    padding: 5px 9px;
}

.product-card__actions {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 10px;
    align-items: stretch;
    margin-top: auto;
    padding-top: 16px;
}

.product-card__actions .button,
.product-card__actions .compare-link {
    min-height: 38px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.product-card__actions .compare-link {
    display: inline-flex;
    align-items: center;
}

.product-card__actions .compare-link .icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}

.product-card__actions:not(.product-card__actions--triple) {
    margin-top: 16px;
}

.product-card__actions--triple {
    grid-template-columns: 1fr 0.82fr;
}

.product-card__actions--triple .compare-link--card {
    grid-column: 1 / -1;
}

.product-card__bottom strong {
    color: var(--accent);
    font-size: 20px;
}

.product-card__bottom span {
    color: var(--success);
    font-weight: 700;
}

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

.category-product-block {
    display: grid;
    grid-template-columns: 260px minmax(230px, 0.72fr) minmax(0, 1.28fr);
    gap: 22px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 31, 50, 0.05);
    margin-bottom: 18px;
    overflow: hidden;
}

.category-product-block__media img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.category-product-block__content {
    padding: 22px 22px 22px 0;
}

.category-product-block__content h2 {
    margin: 0 0 10px;
}

.category-product-block__content p:not(.eyebrow) {
    color: var(--muted);
}

.category-product-samples {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    padding: 16px 18px 16px 0;
}

.mini-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

.mini-product-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: contain;
    background: #fff7f1;
}

.mini-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.mini-product-card h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.mini-product-card h3 a {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mini-product-card strong {
    margin-top: auto;
    color: var(--accent);
    font-size: 15px;
    line-height: 1.25;
}

.mini-product-card__body > span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.2;
    text-decoration: line-through;
}

.mini-product-card .rating {
    display: flex;
    flex-wrap: nowrap;
    min-width: 0;
    margin: 0;
    gap: 4px;
    padding: 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
}

.mini-product-card .rating span {
    overflow: hidden;
    text-decoration: none;
    text-overflow: ellipsis;
}

.mini-product-card .rating__stars {
    flex: 0 0 auto;
    font-size: 12px;
}

.mini-product-card .rating span:last-child {
    max-width: 72px;
}

.brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.brand-list a {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 10px 16px;
    font-weight: 700;
}

.brand-list a:hover {
    border-color: #ffc8b2;
    color: var(--accent);
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: start;
}

.product-page {
    background: #ffffff;
}

.product-gallery {
    display: grid;
    gap: 12px;
}

.product-detail__media {
    display: grid;
    min-height: 360px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #edf2f7;
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
}

.product-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.product-thumbs button {
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--muted);
    cursor: pointer;
    font-weight: 700;
}

.product-detail__info h1 {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.2;
}

.product-detail__price {
    margin: 18px 0;
    color: var(--accent);
    font-size: 30px;
    font-weight: 700;
}

.rating-row,
.share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--muted);
}

.stars {
    color: var(--warning);
    letter-spacing: 1px;
}

.rating {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    align-items: center;
    margin: 8px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.rating__stars {
    color: #f5a623;
    font-size: 15px;
    letter-spacing: 0;
    line-height: 1;
}

.rating__stars--muted {
    color: #c9ced8;
}

.rating--empty {
    color: #7a8494;
}

.rating--detail a {
    color: var(--primary);
    font-weight: 900;
    text-decoration: none;
}

.rating--detail a:hover {
    text-decoration: underline;
}

.option-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.option-list label {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 12px;
}

.option-list label:hover {
    border-color: #ffc8b2;
    background: #fff9f5;
}

.buy-actions,
.share-row {
    margin-top: 18px;
}

.buy-actions {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 12px;
}

.share-row a {
    color: var(--accent);
    font-weight: 700;
}

.product-description {
    margin-top: 34px;
    border-top: 1px solid var(--line);
    padding-top: 30px;
}

.product-detail-page {
    background: #f6f7fb;
    font-family: "Be Vietnam Pro", Arial, Helvetica, sans-serif;
}

.product-detail-page button,
.product-detail-page input,
.product-detail-page textarea,
.product-detail-page select {
    font-family: inherit;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary-dark);
    font-weight: 700;
}

.breadcrumb strong {
    color: var(--text);
    font-weight: 700;
}

.product-detail-shell {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    gap: 24px;
    align-items: start;
}

.product-gallery--detail,
.product-purchase-panel,
.product-policy-grid,
.product-description--detail,
.product-spec-card,
.product-reviews,
.related-products {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 31, 50, 0.05);
}

.product-gallery--detail {
    position: sticky;
    top: 154px;
    padding: 16px;
    min-width: 0;
}

.product-main-image {
    position: relative;
    display: grid;
    min-height: 440px;
    width: 100%;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    cursor: zoom-in;
    overflow: hidden;
    padding: 0;
    font: inherit;
}

.product-info-badge {
    display: inline-flex;
    align-items: center;
    max-width: min(260px, 100%);
    min-height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), #d92718);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    padding: 7px 12px;
    box-shadow: 0 10px 22px rgba(217, 39, 24, 0.2);
    text-align: left;
}

.product-main-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.product-main-image__hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    background: rgba(23, 32, 51, 0.78);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 11px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.product-main-image:hover .product-main-image__hint,
.product-main-image:focus-visible .product-main-image__hint {
    opacity: 1;
    transform: translateY(0);
}

.product-thumb-strip {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
    align-items: center;
}

.product-thumbs--image {
    display: flex;
    gap: 10px;
    min-width: 0;
    overflow-x: auto;
    padding: 3px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-thumbs--image::-webkit-scrollbar {
    display: none;
}

.product-thumbs--image button {
    position: relative;
    display: grid;
    flex: 0 0 78px;
    min-height: 74px;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    padding: 4px;
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-thumbs--image button.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.12);
}

.product-thumbs--image button:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.product-thumbs--image img {
    display: block;
    width: 100%;
    height: 64px;
    object-fit: contain;
}

.product-thumb-zoom {
    position: absolute;
    right: 4px;
    bottom: 4px;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border-radius: 999px;
    background: rgba(23, 32, 51, 0.82);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    opacity: 0;
    padding: 5px 7px;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

.product-thumbs--image button:hover .product-thumb-zoom,
.product-thumbs--image button:focus-visible .product-thumb-zoom,
.product-thumbs--image button.is-active .product-thumb-zoom {
    opacity: 1;
    transform: translateY(0);
}

.product-thumb-nav,
.product-lightbox__close,
.product-lightbox__nav {
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: var(--radius);
    background: #fff7f1;
    color: var(--primary-dark);
    cursor: pointer;
    font: inherit;
}

.product-thumb-nav {
    width: 38px;
    height: 74px;
    border: 1px solid #ffd4c0;
}

.product-thumb-nav:hover,
.product-lightbox__close:hover,
.product-lightbox__nav:hover {
    background: var(--primary);
    color: #ffffff;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    gap: 14px;
    align-items: center;
    justify-items: center;
    background: rgba(12, 18, 30, 0.86);
    opacity: 0;
    pointer-events: none;
    padding: 24px;
    transition: opacity 0.18s ease;
}

.product-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.product-lightbox__figure {
    display: grid;
    gap: 12px;
    width: min(1040px, 100%);
    margin: 0;
    justify-items: center;
}

.product-lightbox__figure img {
    display: block;
    max-width: min(100%, 94vw);
    max-height: min(82vh, 780px);
    border-radius: var(--radius);
    background: #ffffff;
    object-fit: contain;
    padding: 12px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.product-lightbox__figure figcaption {
    color: #ffffff;
    font-weight: 700;
    text-align: center;
}

.product-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.94);
    font-size: 30px;
    line-height: 1;
}

.product-lightbox__nav {
    width: 50px;
    height: 58px;
    background: rgba(255, 255, 255, 0.94);
}

.product-purchase-panel {
    padding: 24px;
}

.product-purchase-panel h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.2;
}

.product-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--muted);
    font-size: 14px;
}

.product-meta-row strong {
    color: var(--text);
}

.product-status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.stock-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: #e7f7ef;
    color: var(--success);
    font-size: 14px;
    padding: 7px 11px;
}

.stock-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--warning);
}

.stock-dot--on {
    background: var(--success);
}

.product-summary {
    margin: 16px 0 0;
    color: var(--muted);
}

.product-price-box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: baseline;
    margin: 20px 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff4ed, #ffffff);
    padding: 18px;
}

.product-price-box span {
    width: 100%;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-price-box strong {
    color: var(--accent);
    font-size: 34px;
    line-height: 1;
}

.product-price-box del {
    color: var(--muted);
}

.product-option-box__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.product-option-box h2 {
    margin: 0;
    font-size: 17px;
}

.product-option-box__head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.short-related-box {
    margin: 0 0 20px;
}

.short-related-box--after-compare {
    margin: 16px 0 0;
}

.product-meta-row a {
    color: var(--primary-dark);
    font-weight: 800;
}

.product-meta-row a:hover {
    color: var(--primary);
}

.short-related-box__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.short-related-box__head h2 {
    margin: 0;
    font-size: 20px;
}

.short-related-box__head span {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff7f1;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
}

.short-related-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.short-related-item {
    display: grid;
    min-width: 0;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 11px 12px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.short-related-item:hover,
.short-related-item.is-active {
    border-color: var(--primary);
    background: #fff8f4;
    box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.12);
}

.short-related-item:hover {
    transform: translateY(-1px);
}

.short-related-item strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.short-related-item span {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

.short-related-item.is-active strong {
    color: var(--primary-dark);
}

.option-list--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.option-card {
    position: relative;
    cursor: pointer;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

.option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card span {
    display: grid;
    min-height: 58px;
    gap: 3px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 9px 10px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.option-card strong {
    color: var(--text);
    font-size: 13px;
    line-height: 1.25;
}

.option-card em {
    color: var(--accent);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
}

.option-card small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
}

.option-card input:checked + span {
    border-color: var(--primary);
    background: #fff8f4;
    box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.12);
}

.option-card input:checked + span em {
    display: none;
}

.option-card input:checked + span::after {
    content: "Đã chọn";
    width: fit-content;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
}

.buy-actions--detail {
    grid-template-columns: 1fr 0.82fr;
}

.buy-actions--detail .button {
    min-height: 52px;
    gap: 8px;
}

.share-row--detail button {
    align-self: center;
}

.share-row--detail .js-copy-link {
    border-radius: 999px;
    color: var(--primary-dark);
    font-weight: 800;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.share-row--detail .js-copy-link.is-copied {
    background: #e7f7ef;
    color: var(--success);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.14);
}

.product-policy-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 22px;
    overflow: hidden;
}

.product-policy-grid div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    align-content: start;
    padding: 18px;
}

.product-policy-grid .icon {
    grid-row: 1 / span 2;
    width: 26px;
    height: 26px;
    color: var(--primary);
}

.product-policy-grid strong {
    line-height: 1.25;
}

.product-policy-grid span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.product-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 22px;
    align-items: start;
    margin-top: 22px;
}

.product-main-column {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.product-description--detail {
    position: relative;
    margin-top: 0;
    padding: 24px;
    overflow: hidden;
}

.product-description__head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.product-description__head .section-heading {
    margin-bottom: 0;
}

.product-description__head > a {
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #fff1e8;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    padding: 8px 11px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.product-description__head > a:hover {
    background: var(--accent);
    color: #ffffff;
}

.product-description__note strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
}

.product-description__note p,
.product-description--detail p {
    color: #405069;
    line-height: 1.75;
    margin: 0;
}

.product-description__note-content {
    display: grid;
    gap: 8px;
}

.product-description__note-content > :first-child {
    margin-top: 0;
}

.product-description__note-content > :last-child {
    margin-bottom: 0;
}

.product-description__content {
    position: relative;
    transition: max-height 0.24s ease;
}

.product-description--detail.is-collapsed .product-description__content {
    max-height: 620px;
    overflow: hidden;
}

.product-description--detail.is-collapsed .product-description__content::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 96px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 72%);
    content: "";
    pointer-events: none;
}

.product-description--detail.is-expanded .product-description__content {
    max-height: none;
}

.product-description__toggle {
    display: none;
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 18px;
    border: 1px solid #ffd6c3;
    border-radius: 8px;
    background: #fff7f1;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 12px 14px;
}

.product-description--detail.has-toggle .product-description__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-video {
    display: grid;
    gap: 14px;
}

.product-video--standalone {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 24px;
}

.product-video .section-heading {
    margin-bottom: 0;
}

.product-video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    background: #0f172a;
}

.product-description__note {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 20px;
}

.product-description__note > div {
    display: grid;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 14px;
}

.product-description--detail img,
.category-seo-content img {
    max-width: 100%;
    height: auto;
}

.product-description__content figure {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 14px auto;
    text-align: center;
}

.product-description__content figure img,
.product-description__content > img,
.product-description__content p > img {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.product-description__content figcaption {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.product-description__content a {
    color: #0f6fc6;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.product-description__content a:hover {
    color: var(--accent);
    text-decoration-thickness: 2px;
}

.category-summary {
    color: #405069;
}

.category-summary img {
    max-width: 100%;
    height: auto;
}

.rich-content {
    display: grid;
    gap: 14px;
    color: #405069;
    line-height: 1.8;
    overflow-x: auto;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
    margin: 10px 0 0;
    color: var(--text);
    line-height: 1.3;
}

.rich-content h2 {
    font-size: 24px;
}

.rich-content h3 {
    font-size: 20px;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote {
    margin: 0;
}

.rich-content ul,
.rich-content ol {
    display: grid;
    gap: 8px;
    padding-left: 22px;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
    overflow: hidden;
    border-radius: 8px;
}

.rich-content th,
.rich-content td {
    border: 1px solid var(--line);
    padding: 10px;
    text-align: left;
}

.rich-content th {
    background: #fff7f1;
    color: var(--text);
}

.rich-content blockquote {
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    background: #fffaf6;
    padding: 14px 16px;
}

.rich-content img {
    display: block;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    margin: 2px auto;
}

.product-spec-card {
    padding: 24px;
}

.product-description--detail .section-heading {
    margin-bottom: 16px;
}

.product-spec-card__head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 12px;
}

.product-spec-card__head .section-heading {
    margin-bottom: 0;
}

.product-spec-card__head > span {
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #eef7ff;
    color: #1d5d9b;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    padding: 7px 10px;
}

.product-spec-groups {
    position: relative;
    display: grid;
    gap: 14px;
    max-height: none;
    overflow: hidden;
}

.product-spec-card.is-collapsed .product-spec-groups--preview {
    max-height: 520px;
}

.product-spec-card.is-collapsed .product-spec-groups--preview::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 86px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 74%);
    content: "";
    pointer-events: none;
}

.product-spec-group {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.product-spec-group h3 {
    margin: 0;
    border-bottom: 1px solid var(--line);
    background: #f7f9fc;
    color: var(--text);
    font-size: 15px;
    line-height: 1.35;
    padding: 12px 14px;
}

.spec-table--detail {
    border: 0;
    border-radius: 0;
}

.spec-table--detail div {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    padding: 13px 16px;
}

.spec-table--detail div:nth-child(even) {
    background: #fbfcff;
}

.spec-table--detail strong {
    color: #5b6678;
    font-size: 13px;
    line-height: 1.45;
}

.spec-table--detail span {
    min-width: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
}

.product-spec-groups--preview .spec-table--detail div {
    align-items: start;
}

.product-spec-groups--preview .spec-table--detail span {
    display: block;
    color: #111827;
}

.product-spec-groups--full .spec-table--detail div {
    grid-template-columns: minmax(180px, 0.38fr) minmax(0, 0.62fr);
    gap: 18px;
}

.product-detail-page .product-spec-card .product-spec-groups--preview .spec-table--detail div {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(118px, 0.85fr);
    gap: 16px;
    align-items: center;
    min-height: auto;
    padding: 13px 16px;
}

.product-detail-page .product-spec-card .product-spec-groups--preview .spec-table--detail strong,
.product-detail-page .product-spec-card .product-spec-groups--preview .spec-table--detail span {
    display: block;
    min-width: 0;
    max-width: 100%;
    text-align: left;
    white-space: normal;
}

.product-detail-page .product-spec-card .product-spec-groups--preview .spec-table--detail span {
    color: #172033;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: break-word;
}

.product-spec-empty {
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
    font-weight: 800;
    padding: 16px;
}

.product-spec-card__toggle {
    display: none;
    width: 100%;
    margin-top: 14px;
    border: 1px solid #cfe4ff;
    border-radius: 8px;
    background: #f4f9ff;
    color: #1d5d9b;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 11px 14px;
}

.product-spec-card.has-toggle .product-spec-card__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-spec-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.product-spec-modal.is-open {
    display: flex;
}

.product-spec-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}

.product-spec-modal__panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(920px, 100%);
    max-height: min(86vh, 820px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.product-spec-modal__head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    padding: 20px 22px;
}

.product-spec-modal__head h2 {
    margin: 4px 0 0;
    font-size: 22px;
    line-height: 1.3;
}

.product-spec-modal__close {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 24px;
    line-height: 1;
}

.product-spec-modal__body {
    overflow: auto;
    padding: 18px 22px 22px;
}

.product-spec-groups--full {
    gap: 16px;
    overflow: visible;
}

.product-spec-group--modal h3 {
    background: #fff7f1;
    color: var(--accent);
}

.product-reviews,
.related-products,
.recently-viewed-products {
    margin-top: 22px;
    padding: 24px;
}

.review-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: start;
}

.review-form {
    display: grid;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    padding: 18px;
}

.review-form__website {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.review-form h3 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
}

.review-form p,
.review-form small {
    color: var(--muted);
    line-height: 1.55;
}

.review-form p {
    margin: 4px 0 0;
}

.review-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 800;
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    padding: 11px 12px;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.12);
    outline: 0;
}

.review-form input.is-invalid,
.review-form select.is-invalid,
.review-form textarea.is-invalid {
    border-color: #d94335;
    background: #fff8f7;
}

.review-form textarea {
    resize: vertical;
}

.form-field-error {
    color: #c4362c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.review-rating-select {
    position: absolute;
    width: 1px !important;
    height: 1px;
    padding: 0 !important;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0 !important;
}

.review-star-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}

.review-star-picker__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ffe0b6;
    border-radius: 8px;
    background: #ffffff;
    color: #d4d9e2;
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
    transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.review-star-picker__button:hover,
.review-star-picker__button:focus,
.review-star-picker__button.is-active {
    border-color: #f5a623;
    background: #fff8e8;
    color: #f5a623;
}

.review-star-picker__button:hover,
.review-star-picker__button:focus {
    transform: translateY(-1px) scale(1.04);
    outline: 0;
}

.review-star-picker__text {
    margin-left: 4px;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
}

.review-form .button.is-loading {
    cursor: wait;
    opacity: 0.78;
    pointer-events: none;
}

.review-submit {
    width: fit-content;
    min-height: 46px;
}

.review-submit__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: review-submit-spin 0.75s linear infinite;
}

.review-submit.is-loading .review-submit__spinner {
    display: inline-block;
}

@keyframes review-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

.review-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.review-approved,
.review-list {
    display: grid;
    gap: 14px;
}

.review-approved.is-loading {
    opacity: 0.62;
    pointer-events: none;
}

.review-results-box {
    display: grid;
    gap: 14px;
}

.review-list.is-empty-filter {
    display: none;
}

.review-card.is-filter-hidden,
.review-card.is-collapse-hidden {
    display: none;
}

.review-list.has-toggle {
    position: relative;
}

.review-list.has-toggle.is-collapsed {
    max-height: 425px;
    overflow: hidden;
}

.review-list.has-toggle.is-collapsed::after {
    content: "";
    position: sticky;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    height: 86px;
    margin-top: -86px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 74%);
    pointer-events: none;
}

.review-list-toggle {
    justify-self: center;
    min-height: 46px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    margin-top: 6px;
    padding: 10px 22px;
}

.review-list-toggle:hover {
    background: var(--primary);
    color: #ffffff;
}

.review-summary {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf6;
    padding: 16px;
}

.review-summary__score {
    display: grid;
    grid-template-columns: auto auto;
    align-content: center;
    justify-content: center;
    justify-items: center;
    gap: 2px;
    text-align: center;
}

.review-summary__score strong {
    color: var(--accent);
    font-size: 42px;
    line-height: 1;
    white-space: nowrap;
}

.review-summary__score span {
    color: var(--text);
    align-self: end;
    padding-bottom: 4px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.review-summary__score small {
    grid-column: 1 / -1;
}

.review-summary__score small,
.review-summary__bar em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.review-summary__bars {
    display: grid;
    gap: 8px;
}

.review-summary__bar {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 28px;
    gap: 9px;
    align-items: center;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.review-summary__bar i {
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf0f5;
}

.review-summary__bar b {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #f5a623;
}

.review-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.review-filters a {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
    text-decoration: none;
}

.review-filters a.is-active,
.review-filters a:hover {
    border-color: var(--accent);
    background: #fff7f1;
    color: var(--accent);
}

.review-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
}

.review-pagination[hidden] {
    display: none !important;
}

.review-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    font-weight: 900;
    text-decoration: none;
    padding: 8px 12px;
}

.review-pagination a.is-active,
.review-pagination a:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.review-card {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 14px 16px;
}

.review-card__body {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.review-card__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.review-card__head strong {
    color: var(--text);
    line-height: 1.25;
}

.review-card .rating {
    margin: 0;
}

.review-card p {
    margin: 0;
    color: #405069;
    line-height: 1.45;
}

.review-media-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 0;
}

.review-media-thumb,
.review-media-video-thumb {
    display: block;
    border: 0;
    border-radius: 8px;
    background: #f3f5f9;
}

.review-media-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    overflow: hidden;
    cursor: zoom-in;
    padding: 0;
}

.review-media-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.18s ease;
}

.review-media-thumb:hover img,
.review-media-thumb:focus-visible img {
    transform: scale(1.06);
}

.review-media-video-thumb {
    position: relative;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
}

.review-media-video-thumb video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-media-video-thumb span {
    position: absolute;
    inset: auto 5px 5px 5px;
    display: inline-flex;
    justify-content: center;
    border-radius: 999px;
    background: rgba(23, 32, 51, 0.82);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    padding: 6px 7px;
}

.review-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1510;
    display: grid;
    place-items: center;
    background: rgba(12, 18, 30, 0.86);
    opacity: 0;
    pointer-events: none;
    padding: 22px;
    transition: opacity 0.18s ease;
}

.review-image-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.review-image-lightbox__figure {
    display: grid;
    place-items: center;
    width: min(860px, 100%);
    margin: 0;
}

.review-image-lightbox__figure img {
    display: block;
    max-width: min(100%, 92vw);
    max-height: min(82vh, 760px);
    border-radius: 8px;
    background: #ffffff;
    object-fit: contain;
    padding: 10px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.review-image-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-dark);
    cursor: pointer;
    font: inherit;
    font-size: 30px;
    line-height: 1;
}

.review-image-lightbox__close:hover {
    background: var(--primary);
    color: #ffffff;
}

.review-video-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1510;
    display: grid;
    place-items: center;
    background: rgba(12, 18, 30, 0.88);
    opacity: 0;
    pointer-events: none;
    padding: 22px;
    transition: opacity 0.18s ease;
}

.review-video-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.review-video-lightbox__figure {
    display: grid;
    place-items: center;
    width: min(980px, 100%);
    margin: 0;
}

.review-video-lightbox__figure video {
    display: block;
    width: min(100%, 92vw);
    max-height: min(82vh, 760px);
    border-radius: 8px;
    background: #000000;
    object-fit: contain;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.review-video-lightbox__close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--primary-dark);
    cursor: pointer;
    font: inherit;
    font-size: 30px;
    line-height: 1;
}

.review-video-lightbox__close:hover {
    background: var(--primary);
    color: #ffffff;
}

@media (max-width: 760px) {.review-layout,
    .review-form__grid,
    .review-summary {
        grid-template-columns: 1fr;
    }

    .review-card__head {
        display: grid;
    }

    .review-card {
        padding: 13px;
    }

    .review-media-list {
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .review-media-list::-webkit-scrollbar {
        display: none;
    }

    .review-media-thumb {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .review-media-video-thumb {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }
}

.recently-viewed-products {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 31, 50, 0.05);
}

.related-products .section-heading--row {
    align-items: center;
}

.related-products .section-heading--row > div,
.recently-viewed-products .section-heading--row > div {
    min-width: 0;
}

.related-products .section-heading--row h2,
.recently-viewed-products .section-heading--row h2 {
    overflow-wrap: anywhere;
}

.related-product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.related-product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 142px;
    gap: 14px;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 12px;
}

.related-product-card__image {
    display: grid;
    width: 112px;
    height: 92px;
    place-items: center;
    border-radius: 8px;
    background: #fff7f1;
    overflow: hidden;
}

.related-product-card__image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 96px;
    max-height: 78px;
    object-fit: contain;
}

.related-product-card__body {
    min-width: 0;
}

.related-product-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.related-product-card__meta span {
    border-radius: 999px;
    background: #eafaf2;
    color: var(--success);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    padding: 4px 7px;
}

.related-product-card__meta span:first-child:not(:last-child) {
    background: var(--accent-soft);
    color: var(--accent);
}

.related-product-card h3 {
    display: -webkit-box;
    min-height: 40px;
    margin: 0 0 6px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-product-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.related-product-card .rating {
    margin: 0;
    padding: 0;
    font-size: 12px;
}

.related-product-card__price {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: baseline;
    margin-top: 8px;
}

.related-product-card__price strong {
    color: var(--accent);
    font-size: 17px;
    line-height: 1.2;
}

.related-product-card__price span {
    color: var(--muted);
    font-size: 12px;
    text-decoration: line-through;
}

.related-product-card__actions {
    display: grid;
    gap: 8px;
}

.related-product-card__actions .button,
.related-product-card__actions .compare-link {
    min-width: 0;
    white-space: nowrap;
}

.compare-link--compact {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.product-grid--recent {
    grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
    align-items: stretch;
}

.product-grid--recent .product-card {
    min-width: 0;
}

.product-grid--recent .product-card__image {
    height: 170px;
}

.product-grid--recent .product-card__image img {
    width: auto;
    height: auto;
    max-height: 146px;
    object-fit: contain;
    background: #fff7f1;
}

.product-grid--recent .product-card__body {
    min-width: 0;
    padding: 14px;
}

.product-grid--recent .product-card h3 {
    display: -webkit-box;
    min-height: 42px;
    overflow: hidden;
    font-size: 15px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-grid--recent .product-card__desc {
    min-height: 0;
    -webkit-line-clamp: 1;
}

.product-grid--recent .product-card__price strong {
    font-size: 18px;
}

.product-grid--recent .product-card__actions {
    grid-template-columns: 1fr;
}

.product-grid--recent .product-card__actions .button,
.product-grid--recent .product-card__actions .compare-link {
    width: 100%;
    min-width: 0;
    white-space: normal;
}

.compare-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #ffd4c0;
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--primary-dark);
    cursor: pointer;
    font-weight: 800;
    text-align: center;
}

.compare-link:hover {
    border-color: var(--primary);
    background: #fff7f1;
}

.compare-link--panel {
    width: 100%;
    min-height: 46px;
    margin-top: 12px;
}

.compare-link--card {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 14px;
}

.compare-bar {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 1100;
    pointer-events: none;
}

.compare-bar__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: min(1180px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(240, 90, 40, 0.28);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(20, 31, 50, 0.18);
    padding: 12px;
    pointer-events: auto;
}

.compare-bar__summary {
    display: grid;
    gap: 2px;
}

.compare-bar__summary span {
    color: var(--muted);
    font-size: 13px;
}

.compare-bar__items {
    display: flex;
    gap: 10px;
    min-width: 0;
    overflow-x: auto;
}

.compare-bar__item {
    display: grid;
    grid-template-columns: 42px minmax(120px, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 220px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 7px;
}

.compare-bar__item img {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff7f1;
}

.compare-bar__item span {
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compare-bar__item a {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.compare-bar__actions {
    display: flex;
    gap: 8px;
}

.compare-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 16px;
}

.compare-toolbar div:first-child {
    display: grid;
    gap: 3px;
}

.compare-toolbar span {
    color: var(--muted);
}

.compare-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.notice--warning {
    border: 1px solid #f8d28a;
    background: #fff8e6;
}

.compare-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 31, 50, 0.05);
}

.compare-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    width: 220px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 14px;
    text-align: left;
    vertical-align: top;
}

.compare-table th:first-child,
.compare-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 180px;
    background: #fff7f1;
    color: #4b5565;
    font-weight: 800;
}

.compare-table thead th {
    background: #ffffff;
}

.compare-product-head {
    display: grid;
    gap: 9px;
}

.compare-product-head img {
    width: 100%;
    height: 130px;
    border-radius: var(--radius);
    object-fit: contain;
    background: #fff7f1;
}

.compare-product-head strong {
    font-size: 15px;
    line-height: 1.35;
}

.compare-remove {
    display: inline-flex;
    margin-top: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

.price-text {
    color: var(--accent);
}

.review-list {
    display: grid;
    gap: 12px;
}

.review-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    padding: 16px;
}

.review-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.empty-state--compact {
    padding: 22px;
}

.empty-state--compact h3 {
    margin: 0 0 8px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
}

.filter-panel,
.form-panel,
.cart-empty {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 31, 50, 0.05);
}

.empty-state {
    border: 1px dashed #ffc8b2;
    border-radius: var(--radius);
    background: #fff9f5;
    padding: 28px;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 8px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.post-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 31, 50, 0.05);
    padding: 22px;
}

.post-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
}

.post-card p:last-child {
    color: var(--muted);
}
.post-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}
.post-category-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: #344054;
    font-size: 14px;
    font-weight: 900;
    padding: 10px 14px;
    box-shadow: 0 8px 20px rgba(20, 31, 50, 0.04);
}
.post-category-nav a:hover,
.post-category-nav a.is-active {
    border-color: rgba(238, 77, 45, 0.28);
    background: #fff7f1;
    color: var(--primary-dark);
}
.post-category-nav span {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: #f2f4f7;
    color: #667085;
    font-size: 12px;
}
.post-category-nav a.is-active span {
    background: var(--primary);
    color: #ffffff;
}

.post-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 31, 50, 0.05);
    margin-bottom: 18px;
    padding: 16px;
}

.post-search-form label {
    display: grid;
    gap: 7px;
}

.post-search-form span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.post-search-form input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #202633;
    font: inherit;
    padding: 9px 11px;
}

.post-search-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.12);
    outline: 0;
}

.post-search-summary {
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
    color: #255a9b;
    font-weight: 700;
    margin: 0 0 18px;
    padding: 12px 14px;
}
.post-detail-intro {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    align-items: center;

    margin-top: 18px;
}
.post-detail-intro > p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}
.post-detail-intro__image {
    display: block;
    width: 190px;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    cursor: zoom-in;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(20, 31, 50, 0.08);
}
.post-detail-intro__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 15, 25, 0.82);
}
.post-image-lightbox.is-open {
    display: flex;
}
.post-image-lightbox__figure {
    position: relative;
    width: min(960px, 96vw);
    margin: 0;
    color: #ffffff;
    text-align: center;
}
.post-image-lightbox__figure img {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
    background: #ffffff;
}
.post-image-lightbox__figure figcaption {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
}
.post-image-lightbox__close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #172033;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.static-page .container {
    max-width: 1020px;
}
.static-page-article {
    margin: 0 auto;
}
.static-page-article:empty::before {
    content: "Nội dung trang đang được cập nhật.";
    display: block;
    color: var(--muted);
}
.about-page-hero {
    padding: 46px 0 28px;
    background: linear-gradient(135deg, #fff7f1 0%, #ffffff 54%, #eef6ff 100%);
}
.about-page-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: stretch;
}
.about-page-hero__content {
    display: grid;
    align-content: center;
    gap: 14px;
}
.about-page-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #172033;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.04;
}
.about-page-hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 0;
    color: #475467;
    font-size: 18px;
    line-height: 1.7;
}
.about-page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.about-page-hero__actions p {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}
.about-page-hero__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.about-page-hero__actions a:first-child {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(238, 77, 45, 0.24);
}
.about-page-hero__actions a:not(:first-child) {
    border-color: rgba(238, 77, 45, 0.28);
    background: #ffffff;
    color: var(--primary-dark);
}
.about-page-hero__actions a:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(31, 41, 55, 0.12);
}
.about-page-hero__panel {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(238, 77, 45, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 44px rgba(31, 41, 55, 0.08);
}
.about-page-hero__panel ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.about-page-hero__panel li {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid #eef1f5;
    border-radius: 8px;
    background: #ffffff;
    color: var(--muted);
    font-weight: 800;
}
.about-page-hero__panel strong {
    display: block;
    color: var(--primary-dark);
    font-size: 24px;
    line-height: 1.15;
}
.about-page {
    background: #f7f9fc;
}
.about-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}
.about-page-content {
    padding: 28px;
    border: 1px solid #e7edf5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.06);
}
.about-page-content:empty::before {
    content: "Nội dung giới thiệu đang được cập nhật trong admin.";
    color: var(--muted);
}
.about-page-sidebar {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 92px;
}
.about-page-card {
    padding: 22px;
    border: 1px solid #e7edf5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(31, 41, 55, 0.06);
}
.about-page-card h2 {
    margin: 0 0 14px;
    color: #172033;
    font-size: 20px;
}
.about-page-card ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.about-page-card li {
    position: relative;
    padding-left: 24px;
    color: #475467;
    line-height: 1.55;
}
.about-page-card li::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--primary);
}
.about-page-card--contact {
    display: grid;
    gap: 8px;
    background: #172033;
    color: #ffffff;
}
.about-page-card--contact p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 800;
}
.about-page-card--contact strong {
    display: block;
    margin: 0 0 8px;
    font-size: 28px;
}
.about-page-card--contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    font-weight: 900;
    text-decoration: none;
}
.about-page-card--contact a:hover {
    background: var(--primary);
    color: #ffffff;
}
@media (max-width: 980px) {
    .about-page-hero__inner,
    .about-page-grid {
        grid-template-columns: 1fr;
    }
    .about-page-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .about-page-hero {
        padding: 32px 0 22px;
    }
    .about-page-hero h1 {
        font-size: 34px;
    }
    .about-page-hero p:not(.eyebrow) {
        font-size: 16px;
    }
    .about-page-hero__actions .button,
    .about-page-card--contact a {
        width: 100%;
    }
    .about-page-sidebar {
        grid-template-columns: 1fr;
    }
    .about-page-content,
    .about-page-card {
        padding: 18px;
    }
}
@media (max-width: 760px) {
    .post-detail-intro {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .post-detail-intro__image {
        width: min(100%, 320px);
    }
    .post-detail-intro > p {
        font-size: 15px;
    }
    .post-image-lightbox {
        padding: 14px;
    }
    .post-image-lightbox__close {
        top: 8px;
        right: 8px;
    }
}

.featured-news {
    padding: 44px 0;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.featured-news__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 22px;
}

.featured-news__main,
.featured-news__list article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 31, 50, 0.05);
    overflow: hidden;
}

.featured-news__main img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.featured-news__main div {
    padding: 20px;
}

.featured-news time {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.featured-news h3 {
    margin: 8px 0;
}

.featured-news p {
    color: var(--muted);
}

.featured-news__list {
    display: grid;
    gap: 14px;
}

.featured-news__list article {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 14px;
}

.featured-news__list img {
    width: 128px;
    height: 100%;
    min-height: 112px;
    object-fit: cover;
}

.featured-news__list div {
    padding: 14px 14px 14px 0;
}

.table-wrap {
    margin-top: 16px;
    overflow-x: auto;
}

.status-pill {
    display: inline-flex;
    border-radius: 999px;
    background: #eef1f6;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.status-pill--on {
    background: #e7f7ef;
    color: var(--success);
}

.status-pill--new {
    background: #fff1eb;
    color: var(--primary);
}

.status-pill--processing {
    background: #fff8e7;
    color: #a56500;
}

.status-pill--danger {
    background: #fff0ef;
    color: #c0392b;
}

.link-button {
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0;
}

.post-card__image {
    display: block;
    margin: 0 0 14px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #f3f5f9;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.filter-panel {
    align-self: start;
    padding: 18px;
}

.filter-panel h2,
.form-panel h2,
.cart-empty h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.filter-group {
    display: grid;
    gap: 8px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.filter-group span {
    color: var(--muted);
}

.catalog-layout--filters {
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
}

.catalog-filter {
    position: sticky;
    top: 96px;
    overflow: hidden;
}

.catalog-filter__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    margin: -18px -18px 16px;
    padding: 18px;
}

.catalog-filter__head span,
.catalog-toolbar span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.catalog-filter__head a {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.catalog-filter__form {
    display: grid;
    gap: 14px;
}

.filter-field {
    display: grid;
    gap: 7px;
}

.filter-field > span,
.filter-group--price > strong,
.filter-group--price label span {
    color: #293345;
    font-size: 13px;
    font-weight: 800;
}

.filter-field select,
.filter-field input[type="search"],
.filter-group--price input,
.catalog-toolbar select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #202633;
    font: inherit;
    padding: 9px 11px;
}

.filter-field select:focus,
.filter-field input[type="search"]:focus,
.filter-group--price input:focus,
.catalog-toolbar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(240, 90, 40, 0.12);
    outline: 0;
}

.filter-group--price {
    gap: 10px;
    padding: 14px 0 0;
}

.filter-group--price label {
    display: grid;
    gap: 6px;
}

.filter-price-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-price-presets a,
.catalog-active-filters span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.filter-price-presets a {
    border: 1px solid #ffd4c0;
    background: #fff7f1;
    color: var(--primary-dark);
    padding: 7px 10px;
}

.filter-price-presets a:hover {
    border-color: var(--primary);
    color: var(--accent);
}

.filter-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #ffe0d2;
    border-radius: 8px;
    background: #fff9f5;
    color: #293345;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    padding: 11px;
}

.filter-check input {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--primary);
}

.catalog-results {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 31, 50, 0.05);
    padding: 16px;
}

.catalog-toolbar h2 {
    margin: 3px 0 0;
    font-size: 22px;
}

.catalog-toolbar form {
    min-width: 210px;
}

.catalog-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-active-filters span {
    background: #eef5ff;
    color: #255a9b;
    padding: 7px 10px;
}

.catalog-page {
    display: grid;
    gap: 16px;
}

.catalog-filter-bar {
    position: relative;
    z-index: 5;
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 31, 50, 0.05);
    padding: 16px;
}

.catalog-filter-bar__head,
.catalog-filter-bar__actions,
.catalog-chip-row,
.catalog-active-filters--selected {
    display: flex;
    align-items: center;
    gap: 10px;
}

.catalog-filter-bar__head {
    justify-content: space-between;
}

.catalog-filter-bar__head h2 {
    margin: 3px 0 0;
    font-size: 22px;
}

.catalog-filter-bar__head span,
.catalog-active-filters--selected strong {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.catalog-filter-bar__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.catalog-clear-link {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.catalog-chip-row {
    align-items: flex-start;
    flex-wrap: wrap;
}

.filter-chip-dropdown {
    position: relative;
}

.filter-chip-dropdown summary,
.filter-sale-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    border: 1px solid #dfe5ee;
    border-radius: 999px;
    background: #ffffff;
    color: #202633;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    list-style: none;
    padding: 8px 13px;
    user-select: none;
}

.filter-chip-dropdown summary span,
.filter-chip-dropdown summary b {
    display: inline-block;
    min-width: 0;
}

.filter-chip-dropdown summary b {
    max-width: 170px;
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-chip-dropdown summary b::before {
    content: ": ";
    font-weight: 700;
}

.filter-chip-dropdown summary::-webkit-details-marker {
    display: none;
}

.filter-chip-dropdown summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.filter-chip-dropdown[open] summary,
.filter-chip-dropdown.is-selected summary,
.filter-sale-chip:has(input:checked),
.filter-sale-chip.is-selected {
    border-color: var(--primary);
    background: #fff7f1;
    color: var(--accent);
}

.filter-chip-dropdown.is-selected summary,
.filter-sale-chip.is-selected {
    box-shadow: inset 0 0 0 1px rgba(240, 90, 40, 0.12);
}

.filter-chip-dropdown__panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    left: 0;
    display: grid;
    width: min(360px, calc(100vw - 32px));
    max-height: 360px;
    overflow: auto;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(20, 31, 50, 0.16);
    padding: 12px;
}

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

.filter-choice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    color: #293345;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    padding: 9px 10px;
}

.filter-choice:hover,
.filter-choice:has(input:checked) {
    border-color: #ffd4c0;
    background: #fff7f1;
    color: var(--accent);
}

.filter-choice input,
.filter-sale-chip input {
    flex: 0 0 auto;
    accent-color: var(--primary);
}

.filter-price-panel {
    gap: 12px;
}

.filter-price-presets--dropdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-price-choice {
    align-items: center;
    min-height: 40px;
}

.filter-price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.filter-price-inputs label,
.catalog-filter-search label {
    display: grid;
    gap: 6px;
}

.filter-price-inputs span,
.catalog-filter-search span {
    color: #293345;
    font-size: 13px;
    font-weight: 800;
}

.filter-price-inputs input,
.catalog-filter-search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #202633;
    font: inherit;
    padding: 9px 11px;
}

.catalog-filter-search {
    max-width: 520px;
}

.catalog-toolbar--inline {
    margin-top: 0;
}

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

.catalog-active-filters--selected {
    align-items: center;
    flex-wrap: wrap;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: start;
}

.contact-hero {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, #fff7f1 0%, #ffffff 56%, #eef4ff 100%);
}
.contact-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: center;
    padding: 36px 0;
}
.contact-hero h1 {
    margin: 6px 0 10px;
    color: #202633;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.12;
}
.contact-hero p:not(.eyebrow) {
    max-width: 680px;
    margin: 0;
    color: #566174;
    font-size: 16px;
    line-height: 1.65;
}
.contact-hero__hotline {
    display: grid;
    gap: 7px;
    border: 1px solid rgba(238, 77, 45, 0.18);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(20, 31, 50, 0.08);
    padding: 22px;
}
.contact-hero__hotline span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}
.contact-hero__hotline strong {
    color: var(--primary-dark);
    font-size: 25px;
}
.contact-page .contact-layout {
    grid-template-columns: 390px minmax(0, 1fr);
}
.contact-info-grid {
    display: grid;
    gap: 14px;
}
.contact-info-card,
.contact-form-panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(20, 31, 50, 0.06);
}
.contact-info-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
}
.contact-info-icon {
    display: inline-grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: #fff7f1;
    color: var(--primary-dark);
}
.contact-info-icon--mail {
    background: #eef4ff;
    color: #2457c5;
}
.contact-info-icon--pin {
    background: #ecfdf3;
    color: #15803d;
}
.contact-info-icon--time {
    background: #fff8e7;
    color: #a56500;
}
.contact-info-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contact-info-card h2 {
    margin: 0 0 6px;
    color: #202633;
    font-size: 17px;
}
.contact-info-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}
.contact-info-card a {
    color: var(--primary-dark);
    font-weight: 900;
}
.contact-form-panel {
    padding: 24px;
}
.contact-form-panel .notice {
    margin: 0 0 16px;
}
.contact-form {
    display: grid;
    gap: 16px;
}
.contact-form__head h2 {
    margin: 0;
    color: #202633;
    font-size: 24px;
}
.contact-form__head p {
    margin: 6px 0 0;
    color: var(--muted);
}
.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.contact-form label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 800;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    padding: 13px 14px;
}
.contact-form select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #667085 50%), linear-gradient(135deg, #667085 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(238, 77, 45, 0.5);
    outline: 3px solid rgba(238, 77, 45, 0.12);
}
.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    justify-self: start;
    min-width: 180px;
}
.contact-submit.is-loading {
    cursor: wait;
    opacity: 0.86;
}
.contact-submit__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.46);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: warrantyButtonSpin 0.7s linear infinite;
}
.contact-submit.is-loading .contact-submit__spinner {
    display: inline-block;
}

.form-panel {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.form-panel label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.form-panel input,
.form-panel textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 13px;
    font: inherit;
}

.cart-empty {
    display: grid;
    min-height: 260px;
    place-items: center;
    text-align: center;
    padding: 28px;
}

.product-cart-form {
    display: grid;
    gap: 14px;
}

.product-cart-form__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: end;
}

.product-quantity-field,
.quantity-control {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.product-quantity-field:has(input[type="hidden"]) {
    display: none;
}

.product-quantity-field input,
.quantity-control input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-weight: 800;
    padding: 0 12px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    align-items: start;
}

.cart-panel,
.checkout-panel,
.order-success,
.order-detail-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(20, 31, 50, 0.06);
}

.cart-panel,
.checkout-panel,
.order-success {
    padding: 22px;
}

.checkout-panel {
    position: sticky;
    top: 132px;
}

.cart-panel__head,
.cart-panel__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-panel__head {
    margin-bottom: 16px;
}

.cart-panel__head h2,
.checkout-form h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cart-panel__head h2 .icon,
.checkout-form h2 .icon {
    width: 22px;
    height: 22px;
    padding: 5px;
    border-radius: 999px;
    background: #fff1eb;
    color: var(--primary);
    box-sizing: content-box;
}

.cart-panel__head h2,
.checkout-form h2,
.order-detail-card h3 {
    margin: 0;
}

.cart-list,
.cart-items {
    display: grid;
    gap: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) minmax(150px, 0.2fr) minmax(150px, 0.18fr);
    gap: 16px;
    align-items: center;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    padding: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cart-item:hover {
    border-color: rgba(238, 77, 45, 0.22);
    box-shadow: 0 12px 26px rgba(20, 31, 50, 0.07);
}

.cart-item img {
    display: block;
    width: 104px;
    height: 104px;
    border-radius: 8px;
    border: 1px solid #edf0f5;
    background: #ffffff;
    object-fit: contain;
    padding: 8px;
}

.cart-item__info,
.cart-item__body {
    min-width: 0;
}

.cart-item__info h3,
.cart-item__body h3 {
    margin: 0 0 6px;
    color: #202633;
    font-size: 16px;
    line-height: 1.35;
}

.cart-item__info a,
.cart-item__body a {
    color: inherit;
}

.cart-item__info p,
.cart-item__body p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.cart-item__info > strong {
    display: inline-flex;
    color: var(--primary);
    font-size: 18px;
    font-weight: 900;
}

.cart-item__quantity {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.cart-item__quantity input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-weight: 900;
    padding: 0 12px;
}

.cart-item__total {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.cart-item__total strong {
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.cart-item__total strong,
.checkout-summary strong {
    color: var(--primary);
}

.cart-item__total .link-button,
.cart-clear-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-item__total .link-button::before,
.cart-clear-button::before {
    content: "";
    width: 15px;
    height: 15px;
    background: currentColor;
    display: inline-block;
    clip-path: path("M7 2h4l1 2h4v2H2V4h4l1-2Zm-1 6h8l-.6 10H6.6L6 8Z");
}

.order-item-price {
    color: var(--text);
    font-weight: 800;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}

.order-item-total {
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.order-total-highlight {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 18px;
    border: 1px solid #ffd4c0;
    border-radius: 10px;
    background: #fff7f1;
    padding: 16px 18px;
}

.order-total-highlight span {
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}

.order-total-highlight strong {
    color: var(--primary);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.cart-panel__actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.cart-items-form > .cart-panel__actions button[type="submit"] {
    display: none;
}

.cart-clear-button {
    color: var(--primary);
}

.checkout-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #ffd7c6;
    border-radius: 8px;
    background: #fff7f1;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.checkout-summary span {
    color: var(--muted);
    font-weight: 700;
}

.checkout-summary strong {
    font-size: 26px;
    line-height: 1;
}

.checkout-form {
    display: grid;
    gap: 13px;
}

.checkout-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--text);
    font: inherit;
    padding: 12px 13px;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.cart-item__quantity input:focus {
    border-color: rgba(238, 77, 45, 0.5);
    outline: 3px solid rgba(238, 77, 45, 0.12);
}

.checkout-submit {
    width: 100%;
    margin-top: 4px;
    min-height: 48px;
    font-size: 16px;
}

.checkout-submit__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: checkout-submit-spin 0.75s linear infinite;
}

.checkout-submit:not(.is-loading)::before {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    display: inline-block;
    clip-path: polygon(9% 42%, 0 52%, 39% 90%, 100% 13%, 89% 4%, 37% 68%);
}

.checkout-submit.is-loading {
    cursor: wait;
    opacity: 0.86;
    pointer-events: none;
}

.checkout-submit.is-loading .checkout-submit__spinner {
    display: inline-block;
}

@keyframes checkout-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

.checkout-form p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.order-success {
    display: grid;
    gap: 20px;
}

.order-success__head {
    display: flex;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
}

.order-success__head h2 {
    margin: 4px 0;
    color: var(--primary);
    font-size: 30px;
}

.order-success__head p:last-child {
    margin: 0;
    color: var(--muted);
}

.order-success__icon {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    border-radius: 50%;
    background: #ecfff4;
    color: var(--success);
    font-size: 28px;
    font-weight: 900;
}

.order-email-notice {
    border: 1px solid rgba(215, 25, 32, 0.28);
    border-radius: 8px;
    background: #fff0f0;
    color: var(--accent);
    padding: 14px 16px;
}

.order-email-notice strong {
    display: block;
    color: var(--accent);
    font-size: 15px;
    line-height: 1.35;
}

.order-email-notice p {
    margin: 5px 0 0;
    color: var(--accent);
    font-size: 14px;
    line-height: 1.55;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.order-detail-card {
    padding: 16px;
}

.order-detail-card dl {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
}

.order-detail-card dl div {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
}

.order-detail-card dt {
    color: var(--muted);
    font-weight: 700;
}

.order-detail-card dd {
    margin: 0;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.order-detail-card dd strong {
    display: inline-flex;
    border-radius: 999px;
    background: #fff1eb;
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    padding: 9px 13px;
    white-space: nowrap;
}

.product-spec-heading {
    margin-top: 34px;
}

.spec-table {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.spec-table div {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
    padding: 14px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.spec-table div:last-child {
    border-bottom: 0;
}

.notice {
    margin-top: 24px;
    border-radius: var(--radius);
    padding: 18px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notice--success {
    border: 1px solid #bfe8cf;
    background: #ecfff4;
    color: #12733f;
}

.notice--error {
    border: 1px solid #f0b8b3;
    background: #fff1f0;
    color: #a9352b;
}

.notice.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.warranty-hero {
    background: linear-gradient(135deg, #fff7f1 0%, #ffffff 54%, #eef4ff 100%);
    border-bottom: 1px solid var(--line);
}
.warranty-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: center;
    padding: 34px 0;
}
.warranty-hero__content {
    max-width: 720px;
}
.warranty-hero h1 {
    margin: 6px 0 10px;
    color: #202633;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.12;
}
.warranty-hero p:not(.eyebrow) {
    max-width: 620px;
    margin: 0;
    color: #566174;
    font-size: 16px;
    line-height: 1.65;
}
.warranty-hero__badge {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(238, 77, 45, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 40px rgba(20, 31, 50, 0.08);
    padding: 22px;
}
.warranty-hero__badge span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}
.warranty-hero__badge strong {
    color: var(--primary-dark);
    font-size: 22px;
    line-height: 1.25;
}
.warranty-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}
.warranty-main,
.warranty-sidebar {
    display: grid;
    gap: 18px;
}
.warranty-main .notice {
    margin-top: 0;
}
.warranty-panel,
.warranty-side-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(20, 31, 50, 0.06);
}
.warranty-panel {
    display: grid;
    gap: 20px;
    padding: 24px;
}
.warranty-panel__head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.warranty-panel__head h2,
.warranty-side-card h2 {
    margin: 0;
    color: #202633;
    font-size: 22px;
}
.warranty-panel__head p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.6;
}
.warranty-icon {
    display: inline-grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: #eef4ff;
    color: #2457c5;
}
.warranty-icon--activate {
    background: #ecfdf3;
    color: #15803d;
}
.warranty-icon svg,
.warranty-status-control svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.warranty-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}
.warranty-search-form label,
.warranty-activate-form label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-weight: 800;
}
.warranty-search-form input,
.warranty-activate-form input,
.warranty-activate-form select,
.warranty-activate-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    padding: 13px 14px;
}
.warranty-search-form input:focus,
.warranty-activate-form input:focus,
.warranty-activate-form select:focus,
.warranty-activate-form textarea:focus {
    border-color: rgba(238, 77, 45, 0.5);
    outline: 3px solid rgba(238, 77, 45, 0.12);
}
.warranty-activate-form select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #667085 50%), linear-gradient(135deg, #667085 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    cursor: pointer;
    font-weight: 800;
}
.warranty-success-modal {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: grid;
    place-items: center;
    background: rgba(23, 32, 51, 0.44);
    backdrop-filter: blur(4px);
    padding: 18px;
    animation: warrantyModalFade 0.18s ease both;
}
.warranty-success-modal.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.warranty-success-modal__box {
    display: grid;
    justify-items: center;
    width: min(430px, 100%);
    border: 1px solid rgba(21, 128, 61, 0.18);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(20, 31, 50, 0.28);
    padding: 30px;
    text-align: center;
    animation: warrantyModalPop 0.22s ease both;
}
.warranty-success-modal__icon {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    box-shadow: 0 12px 28px rgba(21, 128, 61, 0.18);
}
.warranty-success-modal__icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.warranty-success-modal__box strong {
    margin-top: 18px;
    color: #202633;
    font-size: 24px;
    line-height: 1.25;
}
.warranty-success-modal__box p {
    margin: 10px 0 20px;
    color: #566174;
    line-height: 1.65;
}
.warranty-success-modal__box button {
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 12px 18px;
    box-shadow: 0 12px 26px rgba(238, 77, 45, 0.22);
}
.warranty-success-modal__box button:hover {
    background: var(--primary-dark);
}
.warranty-results {
    display: grid;
    gap: 12px;
}
.warranty-results__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.warranty-results__head strong {
    color: #202633;
    font-size: 18px;
}
.warranty-results__head span {
    border-radius: 999px;
    background: #fff7f1;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 900;
    padding: 6px 10px;
}
.warranty-empty {
    border: 1px dashed #f0c8bd;
    border-radius: 14px;
    background: #fffaf7;
    padding: 18px;
}
.warranty-empty strong {
    color: var(--primary-dark);
}
.warranty-empty p {
    margin: 6px 0 0;
    color: var(--muted);
}
.warranty-card {
    display: grid;
    gap: 14px;
    border: 1px solid #edf0f5;
    border-radius: 14px;
    background: #fbfcfe;
    padding: 18px;
}
.warranty-card__top {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
}
.warranty-card h3 {
    margin: 0;
    color: #202633;
    font-size: 18px;
    line-height: 1.35;
}
.warranty-card p {
    margin: 5px 0 0;
    color: var(--muted);
}
.warranty-status {
    display: inline-flex;
    flex: 0 0 auto;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    padding: 7px 10px;
}
.warranty-status--active {
    background: #ecfdf3;
    color: #15803d;
}
.warranty-status--pending {
    background: #fff8e7;
    color: #a56500;
}
.warranty-status--expired {
    background: #fff0ef;
    color: #b42318;
}
.warranty-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.warranty-meta div {
    border-radius: 12px;
    background: #ffffff;
    padding: 11px;
}
.warranty-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}
.warranty-meta dd {
    margin: 5px 0 0;
    color: #202633;
    font-weight: 900;
}
.warranty-product-link {
    justify-self: start;
    color: var(--primary-dark);
    font-weight: 900;
}
.warranty-activate-form {
    display: grid;
    gap: 16px;
}
.warranty-submit-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.warranty-submit-button.is-loading {
    cursor: wait;
    opacity: 0.86;
    pointer-events: none;
}
.warranty-submit-button__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: warrantyButtonSpin 0.7s linear infinite;
}
.warranty-submit-button.is-loading .warranty-submit-button__spinner {
    display: inline-block;
}
.warranty-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.warranty-side-card {
    padding: 20px;
}
.warranty-side-card ol {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding-left: 20px;
    color: #566174;
    line-height: 1.55;
}
.warranty-side-card--hotline {
    display: grid;
    gap: 8px;
    background: #202633;
    color: #ffffff;
}
.warranty-side-card--hotline span {
    color: rgba(255, 255, 255, 0.7);
}
.warranty-side-card--hotline strong {
    font-size: 28px;
}
.warranty-side-card--hotline a {
    justify-self: start;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 900;
    padding: 10px 14px;
}

.frontend-toast-viewport {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1200;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.frontend-toast {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 12px;
    align-items: start;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(20, 31, 50, 0.16);
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    pointer-events: auto;
}

.frontend-toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.frontend-toast__icon {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: #1d9a57;
}

.frontend-toast p {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.frontend-toast--success {
    border-color: #bfe8cf;
    background: #f2fff7;
}

.frontend-toast--error {
    border-color: #f0b8b3;
    background: #fff4f3;
}

.frontend-toast--error .frontend-toast__icon {
    background: #d94335;
}

.frontend-toast--warning {
    border-color: #f8d28a;
    background: #fff9ea;
}

.frontend-toast--warning .frontend-toast__icon {
    background: #d28a00;
}

.site-footer {
    background: #202633;
    color: #ffffff;
    padding: 42px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-grid h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.footer-grid p {
    margin: 0;
    color: #d2d9e4;
}

.footer-rich-content {
    display: grid;
    gap: 8px;
    color: #d2d9e4;
}

.footer-rich-content p,
.footer-rich-content ul {
    margin: 0;
}

.footer-rich-content ul {
    display: grid;
    gap: 6px;
    padding: 0;
    list-style: none;
}

.footer-rich-content a {
    color: #d2d9e4;
}

.footer-rich-content a:hover {
    color: #ffffff;
}

.footer-brand img {
    display: block;
    max-width: 150px;
    margin-bottom: 12px;
}

.footer-hotline {
    display: inline-flex;
    margin-top: 14px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    padding: 9px 14px;
}

.footer-links {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: #d2d9e4;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.footer-socials p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.footer-socials a {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    padding: 7px 10px;
}

.footer-cert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 180px;
    min-height: 44px;
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    padding: 8px;
}

.footer-cert img {
    display: block;
    max-width: 160px;
    max-height: 52px;
    object-fit: contain;
}

.footer-cert span {
    color: #d2d9e4;
    font-size: 12px;
    line-height: 1.35;
}

.footer-bottom {
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 16px;
}

.footer-bottom p {
    margin: 0;
    color: #aeb8c7;
    font-size: 13px;
    text-align: center;
}

.brand-page {
    padding: 34px 0 48px;
    background: #f6f7fb;
}

.brand-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid rgba(240, 90, 40, 0.14);
    border-radius: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #fff7f1 64%, #eef7ff 100%);
    box-shadow: 0 16px 40px rgba(20, 31, 50, 0.07);
}

.brand-page-hero h1 {
    margin: 0;
    color: #172033;
    font-size: 32px;
    line-height: 1.2;
}

.brand-page-hero p:not(.eyebrow),
.brand-page-hero .brand-summary {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
}

.brand-page-logo {
    display: grid;
    width: 160px;
    min-width: 160px;
    aspect-ratio: 1 / 1;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
}

.brand-page-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-list-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.brand-list-card {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    min-height: 210px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(20, 31, 50, 0.05);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.brand-list-card:hover {
    border-color: rgba(240, 90, 40, 0.3);
    box-shadow: 0 16px 34px rgba(20, 31, 50, 0.08);
    transform: translateY(-2px);
}

.brand-list-card__logo {
    display: grid;
    width: 100%;
    aspect-ratio: 16 / 9;
    place-items: center;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fbfcfe;
    color: var(--primary-dark);
    overflow: hidden;
    padding: 14px;
}

.brand-list-card__logo img {
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.brand-list-card__logo b {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 8px;
    background: #fff0ec;
    color: var(--primary-dark);
    font-size: 28px;
    font-weight: 900;
}

.brand-list-card__body {
    display: grid;
    gap: 6px;
}

.brand-list-card__body strong {
    color: #202633;
    font-size: 18px;
    line-height: 1.25;
}

.brand-list-card__body em {
    display: -webkit-box;
    min-height: 40px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.brand-list-card__meta {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    align-items: center;
    border-radius: 999px;
    background: #eef7ff;
    color: #245985;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px;
}

@media (max-width: 1024px) {
    .brand-list-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .brand-page {
        padding-top: 20px;
    }
    .brand-page-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }
    .brand-page-hero h1 {
        font-size: 26px;
    }
    .brand-page-logo {
        width: 128px;
        min-width: 128px;
    }
    .brand-list-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {.header-main--desktop,
    .desktop-nav,
    .topbar {
        display: none;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 72px;
        gap: 12px;
    }

    .brand--mobile img {
        max-width: 132px;
        max-height: 52px;
    }

    .cart-link--mobile {
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
    }

    .cart-link--mobile .cart-link__badge {
        position: absolute;
        top: -4px;
        right: -4px;
    }

    .topbar__inner,
    .header-main,
    .main-nav__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .header-main {
        padding: 18px 0;
    }

    .search {
        max-width: none;
        width: 100%;
    }

    .header-actions {
        width: 100%;
    }

    .header-action {
        width: 100%;
        text-align: center;
    }

    .main-nav__inner {
        gap: 10px;
        padding: 12px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .home-slider__track,
    .home-slide img {
        min-height: 300px;
        height: 300px;
    }

    .home-slide::after {
        background: linear-gradient(0deg, rgba(32, 38, 51, 0.82), rgba(32, 38, 51, 0.18));
    }

    .home-slide__content {
        top: auto;
        bottom: 34px;
        left: 16px;
        width: calc(100% - 32px);
        transform: none;
    }

    .home-slide__content p {
        display: none;
    }

    .home-slider__nav {
        display: none;
    }

    .product-card__actions {
        grid-template-columns: 1fr;
    }

    .product-card__image {
        height: 180px;
    }

    .product-card__image img {
        width: auto;
        height: auto;
        max-height: 156px;
    }

    .checkout-panel {
        position: static;
    }

    .cart-item {
        grid-template-columns: 74px minmax(0, 1fr);
        align-items: start;
    }

    .cart-item img {
        width: 74px;
        height: 74px;
    }

    .cart-item .quantity-control,
    .cart-item__quantity,
    .cart-item__total,
    .order-item-price,
    .order-item-total {
        grid-column: 1 / -1;
        justify-items: stretch;
        text-align: left;
        white-space: normal;
    }

    .order-total-highlight {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-total-highlight strong {
        white-space: normal;
    }

    .cart-panel__head,
    .cart-panel__actions,
    .order-success__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-detail-card dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .product-grid--recent {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .related-product-list {
        grid-template-columns: 1fr;
    }

    .related-product-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }

    .related-product-card__image {
        width: 92px;
        height: 82px;
    }

    .related-product-card__image img {
        max-width: 80px;
        max-height: 70px;
    }

    .related-product-card__actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }

    .related-product-card__actions .button,
    .related-product-card__actions .compare-link {
        white-space: normal;
    }

    .buy-actions {
        grid-template-columns: 1fr;
    }

    .product-detail-page {
        overflow-x: hidden;
        padding-top: 24px;
    }

    .product-detail-page .container,
    .product-detail-shell,
    .product-gallery--detail,
    .product-purchase-panel,
    .product-policy-grid,
    .product-description--detail,
    .product-spec-card,
    .product-reviews,
    .related-products,
    .recently-viewed-products {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .product-detail-shell {
        display: grid;
        gap: 14px;
    }

    .product-spec-card {
        position: static;
    }

    .breadcrumb {
        gap: 6px;
        overflow-wrap: anywhere;
        font-size: 13px;
    }

    .product-gallery--detail {
        position: static;
        padding: 12px;
        overflow: hidden;
    }

    .product-main-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        height: auto;
        min-height: 260px;
    }

    .product-main-image img {
        width: 100%;
        height: 100%;
        max-height: 320px;
        object-fit: contain;
    }

    .product-main-image__hint {
        right: 10px;
        bottom: 10px;
        opacity: 1;
        transform: none;
        font-size: 12px;
    }

    .product-thumbs--image {
        overflow-x: auto;
    }

    .product-thumb-strip {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 6px;
    }

    .product-thumb-nav {
        width: 34px;
        height: 66px;
    }

    .product-thumbs--image button {
        flex-basis: 68px;
        min-height: 66px;
    }

    .product-thumbs--image img {
        height: 56px;
    }

    .product-lightbox {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 8px;
        padding: 16px 10px;
    }

    .product-lightbox__figure img {
        max-height: 74vh;
        padding: 8px;
    }

    .product-lightbox__nav {
        width: 40px;
        height: 48px;
    }

    .product-lightbox__close {
        top: 10px;
        right: 10px;
    }

    .product-purchase-panel,
    .product-description--detail,
    .product-spec-card,
    .product-reviews,
    .related-products,
    .recently-viewed-products {
        padding: 18px;
    }

    .product-purchase-panel h1 {
        overflow-wrap: anywhere;
        font-size: clamp(24px, 7vw, 28px);
    }

    .product-price-box strong {
        font-size: clamp(24px, 7vw, 28px);
        overflow-wrap: anywhere;
    }

    .product-price-box {
        padding: 14px;
    }

    .product-meta-row,
    .share-row--detail {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-status-row,
    .stock-line {
        max-width: 100%;
        white-space: normal;
    }

    .product-info-badge {
        max-width: 100%;
    }

    .option-list--cards,
    .buy-actions--detail {
        grid-template-columns: 1fr;
    }

    .product-option-box__head {
        display: grid;
        gap: 4px;
    }

    .option-card,
    .option-card span,
    .option-card strong,
    .option-card em,
    .option-card small {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .buy-actions--detail .button,
    .compare-link--panel {
        width: 100%;
        min-width: 0;
        white-space: normal;
    }

    .short-related-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-inline: 0;
        overflow: visible;
        padding: 0;
    }

    .short-related-list::-webkit-scrollbar {
        display: none;
    }

    .short-related-item {
        min-width: 0;
        padding: 9px 8px;
    }

    .short-related-item strong {
        font-size: 12px;
    }

    .short-related-item span {
        font-size: 12px;
    }

    .spec-table--detail div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .product-spec-card__head {
        display: grid;
        gap: 10px;
    }

    .product-spec-card__head > span {
        width: fit-content;
    }

    .product-spec-card.is-collapsed .product-spec-groups--preview {
        max-height: 430px;
    }

    .product-spec-modal {
        align-items: stretch;
        padding: 12px;
    }

    .product-spec-modal__panel {
        max-height: calc(100vh - 24px);
        border-radius: 8px;
    }

    .product-spec-modal__head {
        padding: 16px;
    }

    .product-spec-modal__head h2 {
        font-size: 18px;
    }

    .product-spec-modal__body {
        padding: 14px;
    }

    .product-policy-grid div {
        border-bottom: 1px solid var(--line);
    }

    .product-policy-grid div:last-child {
        border-bottom: 0;
    }

    .product-description__head,
    .product-description__note {
        grid-template-columns: 1fr;
    }

    .product-description__head {
        display: grid;
        gap: 10px;
    }

    .product-description__head > a {
        width: fit-content;
    }

    .product-description--detail.is-collapsed .product-description__content {
        max-height: 540px;
    }

    .section-heading--row {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-link--stable {
        width: 100%;
    }

    .compare-bar {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .compare-bar__inner {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .compare-bar__items {
        padding-bottom: 2px;
    }

    .compare-bar__actions,
    .compare-toolbar,
    .compare-toolbar__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .compare-bar__actions .button,
    .compare-toolbar__actions .button {
        width: 100%;
    }

    .home-category-grid {
        grid-template-columns: 1fr;
    }

    .category-product-block__content {
        padding: 0 18px;
    }

    .category-product-samples {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0 18px 18px;
    }

    .mini-product-card {
        display: flex;
    }

    .mini-product-card img {
        aspect-ratio: 4 / 3;
        height: auto;
        min-height: 0;
    }

    .featured-news__list article {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .featured-news__list img {
        width: 104px;
    }
}

@media (min-width: 980px) {.header-support {
        display: block;
    }
}

@media (min-width: 861px) {.mobile-menu {
        display: none !important;
    }
}

@keyframes adminFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-button--danger {
    color: #c0392b;
}

@keyframes adminSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Frontend header refresh */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 34px rgba(23, 32, 51, 0.09);
    backdrop-filter: saturate(140%) blur(12px);
}

.topbar {
    background: #151b28;
    color: #eef3fb;
    font-size: 13px;
}

.topbar__inner {
    min-height: 34px;
}

.topbar__inner span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    white-space: nowrap;
}

.topbar__inner span:first-child::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.topbar-marquee {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.topbar-marquee span {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 8px;
    padding-left: 100%;
    white-space: nowrap;
    animation: topbarMarquee 18s linear infinite;
}

.topbar-marquee span::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14);
}

.topbar strong {
    color: #ffffff;
}

.header-main--desktop {
    grid-template-columns: 196px minmax(360px, 1fr) auto;
    gap: 18px;
    min-height: 88px;
}

.brand--image,
.brand--mobile {
    min-width: 0;
}

.brand--image img {
    max-width: 174px;
    max-height: 64px;
}

.header-search {
    display: flex;
    align-items: stretch;
    position: relative;
    height: 46px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(20, 31, 50, 0.08);
    box-sizing: border-box;
    overflow: visible;
}

.header-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 31, 50, 0.08), 0 10px 22px rgba(20, 31, 50, 0.10);
}

.header-search input {
    flex: 1 1 auto;
    height: 100%;
    min-width: 0;
    border: 0;
    border-radius: 8px 0 0 8px;
    background: #ffffff;
    color: #172033;
    font-size: 14px;
    line-height: 46px;
    outline: 0;
    padding: 0 16px;
    -webkit-appearance: none;
    appearance: none;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: #8a96a8;
}

.header-search button {
    flex: 0 0 auto;
    min-width: 122px;
    height: 100%;
    border-radius: 0 7px 7px 0;
    background: var(--primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    padding: 0 17px;
}

.header-search button .icon {
    width: 18px;
    height: 18px;
}

.header-search button:hover {
    background: var(--primary-dark);
}

.live-search-panel {
    position: absolute;
    z-index: 1200;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    max-height: 430px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(20, 31, 50, 0.18);
    padding: 8px;
}

.live-search-panel[hidden] {
    display: none;
}

.live-search-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border-radius: 8px;
    color: #172033;
    padding: 8px;
}

.live-search-item:hover {
    background: #fff7f1;
}

.live-search-item img {
    width: 58px;
    height: 58px;
    border: 1px solid #eef1f6;
    border-radius: 8px;
    background: #f8fafc;
    object-fit: contain;
}

.live-search-item span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.live-search-item strong,
.live-search-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-search-item strong {
    font-size: 14px;
    line-height: 1.35;
}

.live-search-item small {
    color: #667085;
    font-size: 12px;
}

.live-search-item b {
    color: var(--accent);
    font-size: 13px;
}

.live-search-status,
.live-search-more {
    border-radius: 8px;
    color: #5b6678;
    font-size: 13px;
    font-weight: 800;
    padding: 10px;
    text-align: center;
}

.live-search-more {
    display: block;
    background: #fff7f1;
    color: var(--accent);
    margin-top: 4px;
}

.header-utilities {
    gap: 10px;
}

.hotline-card {
    min-width: 168px;
    min-height: 48px;
    align-items: center;
    border: 1px solid #ffe1d6;
    border-radius: 10px;
    background: #fff7f3;
    color: #5b6678;
    padding: 8px 11px;
}

.hotline-card:hover {
    border-color: var(--primary);
    background: #fff2ea;
}

.hotline-card .icon {
    width: 24px;
    height: 24px;
}

.hotline-card strong {
    color: var(--accent);
    font-size: 15px;
    line-height: 1.1;
}

.cart-link {
    min-height: 48px;
    border-radius: 10px;
    background: var(--accent);
    box-shadow: 0 10px 20px rgba(20, 31, 50, 0.16);
    padding: 10px 14px;
}

.cart-link:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.cart-link__badge {
    min-width: 22px;
    height: 22px;
    color: var(--accent);
    font-weight: 900;
}

.desktop-nav {
    background: #151b28;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.main-nav__inner {

    position: relative;
}

.desktop-menu {
    gap: 6px;
    overflow: visible;
}

.desktop-menu > li > a {
    position: relative;
    min-height: 50px;
    border-radius: 8px;
    color: #f8fafc;
    font-size: 14px;
    padding: 0 13px;
    white-space: nowrap;
}

.desktop-menu > li > a::after {
    content: "";
    position: absolute;
    right: 12px;
    bottom: 7px;
    left: 12px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.desktop-menu > li > a:hover,
.desktop-menu > li:hover > a,
.desktop-menu > li:focus-within > a {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.desktop-menu > li > a:hover::after,
.desktop-menu > li:hover > a::after,
.desktop-menu > li:focus-within > a::after {
    opacity: 1;
    transform: scaleX(1);
}

.mega-menu {
    top: calc(100% + 0px);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 22px 46px rgba(23, 32, 51, 0.16);
    padding: 18px;
}

.mega-menu--simple {
    width: min(300px, calc(100vw - 32px));
    padding: 10px;
}

.mega-menu a {
    border-radius: 8px;
    padding: 8px 9px;
    color: #263247;
    font-size: 14px;
}

.mega-menu a:hover {
    background: #fff4ed;
    color: var(--accent);
}

.mega-menu__title {
    background: #fff4ed;
    color: #d71920 !important;
}

.mobile-header {
    min-height: 66px;
}

.mobile-menu-toggle,
.mobile-menu-close {
    border: 1px solid #ffe1d6;
    border-radius: 10px;
    background: #fff7f3;
}

.mobile-menu-toggle span {
    width: 21px;
    height: 2px;
}

.cart-link--mobile {
    border-radius: 10px;
}

.mobile-menu {
    background: rgba(15, 23, 42, 0.58);
}

.mobile-menu__panel {
    width: min(90vw, 390px);
    padding: 16px;
    transform: translateX(-16px);
    animation: mobileMenuSlide 0.18s ease forwards;
}

.mobile-menu__head {
    min-height: 48px;
    border-bottom: 1px solid #eef1f6;
    padding-bottom: 12px;
}

.mobile-menu__head strong {
    font-size: 18px;
}

.mobile-search {
    display: flex;
    align-items: stretch;
    position: relative;
    height: 44px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: #ffffff;
    margin: 16px 0;
    box-sizing: border-box;
    overflow: visible;
}

.mobile-search input {
    flex: 1 1 auto;
    height: 100%;
    min-width: 0;
    border: 0;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    line-height: 44px;
    outline: 0;
    padding: 0 13px;
}

.mobile-search button {
    flex: 0 0 auto;
    height: 100%;
    border-radius: 0 7px 7px 0;
    font-size: 14px;
    font-weight: 800;
    padding: 0 15px;
}

.mobile-nav,
.mobile-submenu {
    gap: 8px;
}

.mobile-nav a,
.mobile-submenu-toggle {
    min-height: 46px;
    border: 1px solid #eef1f6;
    border-radius: 10px;
    background: #ffffff;
    color: #172033;
    font-weight: 800;
}

.mobile-nav a:hover,
.mobile-submenu-toggle:hover,
.mobile-submenu-toggle.is-open {
    border-color: #ffe1d6;
    background: #fff7f3;
    color: #d71920;
}

.mobile-submenu {
    border-left: 2px solid #ffe1d6;
    margin-left: 12px;
    padding-left: 10px;
}

.desktop-menu .menu-dropdown,
.desktop-menu .menu-flyout {
    position: absolute;
    z-index: 30;
    min-width: 236px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.desktop-menu .menu-dropdown {
    top: calc(100% - 1px);
    left: 0;
    padding: 8px;
}

.desktop-menu .menu-dropdown--wide {
    width: min(720px, calc(100vw - 32px));
}

.desktop-menu .menu-flyout {
    top: -9px;
    left: calc(100% - 1px);
    padding: 8px;
    transform: translateX(-4px);
}

.desktop-menu > li.has-dropdown::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -12px;
    left: 0;
    height: 14px;
}

.desktop-menu .has-flyout::after {
    content: "";
    position: absolute;
    top: 0;
    right: -12px;
    width: 14px;
    height: 100%;
}

.desktop-menu .menu-dropdown__list {
    display: grid;
    gap: 4px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-menu .menu-dropdown--wide > .menu-dropdown__list {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 6px 10px;
}

.desktop-menu .menu-dropdown--wide > .menu-dropdown__list > li > a {
    min-height: 42px;
    background: #f8fafc;
}

.desktop-menu .menu-dropdown--wide > .menu-dropdown__list > li > a:hover,
.desktop-menu .menu-dropdown--wide > .menu-dropdown__list > li:hover > a,
.desktop-menu .menu-dropdown--wide > .menu-dropdown__list > li:focus-within > a {
    background: #fff4ed;
}

.desktop-menu .menu-dropdown__list > li {
    position: relative;
    min-width: 0;
}

.desktop-menu .menu-dropdown__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    border-radius: 8px;
    color: #172033;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    padding: 9px 10px;
    white-space: nowrap;
}

.desktop-menu .menu-dropdown--wide .menu-flyout {
    left: calc(100% - 1px);
}

.desktop-menu .menu-dropdown__list a:hover,
.desktop-menu .menu-dropdown__list li:hover > a,
.desktop-menu .menu-dropdown__list li:focus-within > a {
    background: #fff4ed;
    color: #d71920;
}

.desktop-menu > li.has-dropdown:hover > .menu-dropdown,
.desktop-menu > li.has-dropdown:focus-within > .menu-dropdown,
.desktop-menu .has-flyout:hover > .menu-flyout,
.desktop-menu .has-flyout:focus-within > .menu-flyout {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.desktop-menu .has-flyout:hover > .menu-flyout,
.desktop-menu .has-flyout:focus-within > .menu-flyout {
    transform: translateX(0);
}

.menu-caret {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.75;
    transform: rotate(45deg) translateY(-1px);
}

.menu-dropdown__list .menu-caret {
    transform: rotate(-45deg);
}

.mobile-nav-item--level-1 {
    margin-left: 10px;
}

.mobile-nav-item--level-2 {
    margin-left: 20px;
}

.mobile-nav-item--level-3,
.mobile-nav-item--level-4 {
    margin-left: 30px;
}

.mobile-submenu--level-2,
.mobile-submenu--level-3,
.mobile-submenu--level-4 {
    margin-left: 18px;
    border-left-color: #ffd0be;
}

.has-product-mega {
    position: static !important;
}

.has-product-mega::before {
    right: auto;
    bottom: auto;
    left: 0;
    top: 100%;
    width: 100%;
    height: 14px;
}

.product-mega-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    z-index: 40;
    width: min(1120px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 170px));
    overflow: auto;
    scrollbar-width: thin;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 0 0 12px 12px;
    background: #ffffff;
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.18);
    opacity: 0;
    padding: 14px;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.product-mega-menu::-webkit-scrollbar {
    width: 8px;
}

.product-mega-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #d8dee9;
}

.has-product-mega:hover > .product-mega-menu,
.has-product-mega:focus-within > .product-mega-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.product-mega-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #edf0f5;
    padding: 2px 2px 12px;
}

.product-mega-menu__head strong {
    color: #172033;
    font-size: 16px;
}

.product-mega-menu__head a {
    color: #d71920;
    font-size: 13px;
    font-weight: 900;
}

.product-mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.product-mega-category {
    display: grid;
    align-content: start;
    gap: 8px;
    min-width: 0;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    background: #fbfcfe;
    padding: 10px;
}

.product-mega-category:hover {
    border-color: #ffd6c7;
    background: #fffaf7;
}

.product-mega-category__title {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 38px;
    color: #172033;
    font-size: 14px;
    font-weight: 900;
}

.product-mega-category__title:hover {
    color: #d71920;
}

.product-mega-category__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #fff1e8 0%, #ffe1d6 100%);
    color: #d71920;
    box-shadow: inset 0 0 0 1px rgba(240, 90, 40, 0.1);
}

.product-mega-category__svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.product-mega-category:hover .product-mega-category__icon {
    background: linear-gradient(135deg, #f05a28 0%, #d71920 100%);
    color: #ffffff;
}

.product-mega-category__links {
    display: grid;
    gap: 3px;
}

.product-mega-category__links a {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    border-radius: 7px;
    color: #4b5565;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    padding: 5px 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-mega-category__links a span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-mega-category__sub-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 999px;
    background: #fff0e8;
    box-shadow: inset 0 0 0 1px rgba(240, 90, 40, 0.12);
}

.product-mega-category__sub-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-top: 2px solid #d71920;
    border-right: 2px solid #d71920;
    transform: translate(-60%, -50%) rotate(45deg);
}

.product-mega-category__sub:hover .product-mega-category__sub-icon {
    background: #d71920;
}

.product-mega-category__sub:hover .product-mega-category__sub-icon::after {
    border-color: #ffffff;
}

.product-mega-category__links a:hover {
    background: #fff0e8;
    color: #d71920;
}

.product-mega-category__links a.is-child {
    display: block;
    color: #738095;
    font-size: 12px;
    padding-left: 36px;
}

.product-mega-category__links a.is-child::before {
    content: "- ";
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .warranty-hero__inner,
    .warranty-layout,
    .contact-hero__inner,
    .contact-page .contact-layout {
        grid-template-columns: 1fr;
    }
    .catalog-layout--filters {
        grid-template-columns: 1fr;
    }
    .catalog-filter {
        position: static;
    }
    .catalog-filter-bar__head {
        align-items: flex-start;
        flex-direction: column;
    }
    .catalog-filter-bar__actions {
        justify-content: flex-start;
    }
    .catalog-page > .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .filter-chip-dropdown__panel {
        position: fixed;
        top: auto;
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        max-height: min(70vh, 520px);
    }
    .catalog-filter__form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .catalog-filter__form .button,
    .filter-field--wide,
    .filter-price-presets,
    .filter-check {
        grid-column: 1 / -1;
    }
    .warranty-hero__badge {
        max-width: 420px;
    }
    .warranty-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .header-main--desktop {
        grid-template-columns: 170px minmax(280px, 1fr) auto;
        gap: 14px;
    }

    .hotline-card span {
        display: none;
    }

    .hotline-card {
        min-width: 132px;
    }
}

@media (max-width: 980px) {
    .desktop-menu .menu-dropdown--wide {
        width: min(560px, calc(100vw - 32px));
    }

    .desktop-menu .menu-dropdown--wide > .menu-dropdown__list {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 860px) {
    .site-header {
        box-shadow: 0 8px 24px rgba(23, 32, 51, 0.09);
    }

    .mobile-header {
        display: flex;
        min-height: 64px;
    }

    .brand--mobile img {
        max-width: 142px;
        max-height: 52px;
    }
}

@media (max-width: 720px) {
    .post-search-form {
        grid-template-columns: 1fr;
    }
    .post-search-form .button {
        width: 100%;
    }
    .catalog-filter-bar {
        padding: 14px;
    }
    .catalog-chip-row {
        gap: 8px;
    }
    .filter-chip-dropdown summary,
    .filter-sale-chip {
        min-height: 36px;
        font-size: 13px;
        padding: 8px 11px;
    }
    .filter-chip-dropdown__panel--grid,
    .filter-price-inputs,
    .filter-price-presets--dropdown {
        grid-template-columns: 1fr;
    }
    .catalog-filter-search {
        max-width: none;
    }
    .catalog-filter-bar__actions .button,
    .catalog-clear-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
    .catalog-page > .product-grid {
        grid-template-columns: 1fr;
    }
    .catalog-filter__form,
    .catalog-toolbar {
        grid-template-columns: 1fr;
    }
    .catalog-filter__form {
        display: grid;
    }
    .catalog-toolbar {
        display: grid;
        align-items: stretch;
    }
    .catalog-toolbar form {
        min-width: 0;
    }
    .catalog-filter__head {
        align-items: center;
    }
    .catalog-layout--filters .product-grid {
        grid-template-columns: 1fr;
    }
    .contact-hero__inner {
        padding: 26px 0;
    }
    .contact-hero h1 {
        font-size: 30px;
    }
    .contact-form__grid {
        grid-template-columns: 1fr;
    }
    .contact-form-panel {
        padding: 18px;
    }
    .contact-submit {
        width: 100%;
    }
    .warranty-hero__inner {
        padding: 24px 0;
    }
    .warranty-hero h1 {
        font-size: 28px;
        line-height: 1.18;
    }
    .warranty-search-form,
    .warranty-form-grid,
    .warranty-meta,
    .warranty-sidebar {
        grid-template-columns: 1fr;
    }
    .warranty-panel {
        padding: 18px;
    }
    .warranty-panel__head,
    .warranty-card__top {
        align-items: stretch;
        flex-direction: column;
    }
    .warranty-status {
        align-self: flex-start;
    }
    .warranty-search-form .button,
    .warranty-activate-form .button {
        width: 100%;
    }
    .product-mega-menu__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 721px) and (max-width: 860px) {
    .catalog-page > .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .product-grid--home,
    .home-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .category-product-block {
        grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    }
    .category-product-samples {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .product-grid--home,
    .home-category-grid,
    .promo-banner-grid,
    .featured-news__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .category-product-block {
        grid-template-columns: 1fr;
    }
    .category-product-block__media img {
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .category-product-block__content {
        padding: 0 18px;
    }
}

@media (max-width: 560px) {
    .product-grid--home,
    .home-category-grid,
    .promo-banner-grid,
    .featured-news__grid,
    .category-product-samples {
        grid-template-columns: 1fr;
    }
}

@keyframes mobileMenuSlide {
    from {
        opacity: 0.9;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes warrantyModalFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes warrantyModalPop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes warrantyButtonSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes topbarMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Responsive hardening */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

.frontend-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.container,
.section,
.page-hero,
.product-card,
.catalog-filter-bar,
.catalog-toolbar,
.product-detail-shell {
    min-width: 0;
}

@media (max-width: 1080px) {
    .header-main--desktop {
        grid-template-columns: 160px minmax(240px, 1fr) auto;
    }

    .header-search button {
        min-width: 104px;
        padding-inline: 14px;
    }

    .hotline-card {
        min-width: 118px;
    }

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

@media (max-width: 860px) {
    .live-search-panel {
        max-height: min(62vh, 420px);
    }

    .mobile-menu__panel {
        max-width: 100vw;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .catalog-chip-row,
    .catalog-active-filters--selected {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .filter-chip-dropdown,
    .filter-sale-chip {
        flex: 0 0 auto;
    }

    .filter-chip-dropdown summary {
        max-width: min(78vw, 320px);
    }

    .filter-chip-dropdown summary b {
        max-width: 150px;
    }

    .catalog-toolbar h2,
    .catalog-filter-bar__head h2 {
        font-size: 20px;
        line-height: 1.25;
    }

    .product-card__actions .button,
    .product-card__actions .compare-link,
    .related-product-card__actions .button,
    .related-product-card__actions .compare-link {
        min-width: 0;
        white-space: normal;
    }
}

@media (max-width: 560px) {
    .mobile-header {
        gap: 8px;
        padding-inline: 0;
    }

    .brand--mobile img {
        max-width: 128px;
        height: auto;
    }

    .cart-link--mobile {
        min-width: 42px;
        padding-inline: 10px;
    }

    .mobile-menu__panel {
        width: min(94vw, 390px);
        padding: 14px;
    }

    .mobile-search button {
        padding-inline: 12px;
    }

    .catalog-filter-bar__head,
    .catalog-filter-bar__actions {
        width: 100%;
    }

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

    .catalog-chip-row,
    .catalog-active-filters--selected {
        margin-right: -14px;
        margin-left: -14px;
        padding-right: 14px;
        padding-left: 14px;
    }

    .filter-chip-dropdown__panel {
        right: 10px;
        bottom: 10px;
        left: 10px;
        max-height: min(74vh, 560px);
    }

    .product-card__body {
        padding: 14px;
    }

    .product-card h3 {
        min-height: auto;
    }

    .product-card__desc {
        min-height: auto;
    }
}

/* Frontend responsive polish 20260614 */
html,
body {
    overflow-x: hidden;
}

.site-header,
.topbar,
.main-nav,
main,
footer {
    max-width: 100%;
}

.desktop-menu,
.desktop-menu > li,
.desktop-menu > li > a,
.mobile-header,
.mobile-menu__panel,
.mobile-nav a,
.mobile-submenu-toggle,
.product-card,
.category-card,
.mini-product-card,
.related-product-card {
    min-width: 0;
}

.brand--image img,
.brand--mobile img {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1180px) {
    .desktop-menu > li > a {
        padding-inline: 10px;
        font-size: 13px;
    }

    .header-main--desktop {
        grid-template-columns: 150px minmax(220px, 1fr) auto;
        gap: 12px;
    }

    .brand--image img {
        max-width: 150px;
    }

    .header-search button span {
        display: none;
    }

    .header-search button {
        min-width: 52px;
        padding-inline: 14px;
    }
}

@media (max-width: 980px) {
    .header-main--desktop,
    .desktop-nav {
        display: none !important;
    }

    .mobile-header {
        display: grid !important;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 10px;
        align-items: center;
        min-height: 66px;
    }

    .brand--mobile {
        justify-content: center;
        max-width: 100%;
    }

    .brand--mobile img {
        max-width: min(150px, 42vw);
        max-height: 52px;
    }

    .mobile-menu {
        display: none !important;
        align-items: stretch;
        background: rgba(15, 23, 42, 0.58);
    }

    .mobile-menu.is-open {
        display: flex !important;
    }

    .mobile-menu__panel {
        width: min(88vw, 400px);
        height: 100dvh;
        max-height: 100dvh;
        padding: 16px;
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(-18px);
        animation: mobileMenuSlide 0.18s ease forwards;
    }

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

    .mobile-search input {
        min-width: 0;
    }

    .mobile-nav a,
    .mobile-submenu-toggle {
        gap: 10px;
        width: 100%;
        min-height: 46px;
        line-height: 1.3;
        white-space: normal;
    }

    .mobile-submenu {
        max-width: 100%;
        margin-left: 8px;
        padding-left: 10px;
    }

    .mobile-nav-item--level-1,
    .mobile-nav-item--level-2,
    .mobile-nav-item--level-3,
    .mobile-nav-item--level-4 {
        margin-left: 0;
    }

    .hero__inner,
    .product-page,
    .product-detail,
    .product-detail__grid,
    .cart-layout,
    .checkout-layout,
    .post-detail-layout,
    .page-layout,
    .contact-layout,
    .warranty-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .product-grid,
    .product-grid--home,
    .home-category-grid,
    .category-grid,
    .promo-banner-grid,
    .featured-news__grid,
    .category-product-samples,
    .related-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .topbar__inner {
        min-height: 32px;
    }

    .topbar-marquee span {
        animation-duration: 14s;
    }

    .mobile-header {
        min-height: 60px;
        gap: 8px;
    }

    .mobile-menu-toggle,
    .cart-link--mobile {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        padding: 0;
    }

    .brand--mobile img {
        max-width: min(136px, 44vw);
        max-height: 48px;
    }

    .mobile-menu__panel {
        width: min(92vw, 390px);
        padding: 14px;
    }

    .mobile-search {
        height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .mobile-search input {
        height: 42px;
        line-height: 42px;
    }

    .mobile-search button {
        min-width: 58px;
        height: 42px;
        padding-inline: 12px;
    }

    .product-grid,
    .product-grid--home,
    .home-category-grid,
    .category-grid,
    .promo-banner-grid,
    .featured-news__grid,
    .category-product-samples,
    .related-product-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 380px) {
    .container {
        width: min(100% - 20px, 1180px);
    }

    .brand--mobile img {
        max-width: 118px;
    }

    .mobile-menu__panel {
        width: 94vw;
        padding: 12px;
    }
}

/* Frontend responsive section polish 20260614 */
.home-category-grid,
.product-grid,
.category-product-samples,
.related-product-list,
.footer-grid,
.catalog-filter-bar,
.catalog-toolbar,
.product-detail,
.product-page,
.product-gallery,
.product-detail__media,
.product-detail__info,
.review-summary {
    min-width: 0;
}

.home-category-card,
.product-card,
.related-product-card,
.catalog-filter-bar,
.catalog-toolbar,
.footer-grid,
.product-gallery,
.product-detail__media,
.product-detail__info {
    overflow-wrap: anywhere;
}

.home-category-card {
    height: 100%;
}

.home-category-card strong,
.home-category-card span:last-child,
.product-card h3,
.product-card__desc,
.related-product-card h3,
.footer-rich-content,
.footer-links a {
    min-width: 0;
}

.product-card__image,
.related-product-card__image,
.product-gallery__main,
.product-detail__media {
    min-height: 0;
}

.product-card__actions .button,
.product-card__actions .compare-link,
.related-product-card__actions .button,
.related-product-card__actions .compare-link,
.buy-actions .button {
    min-width: 0;
    white-space: normal;
}

.catalog-filter-bar {
    overflow: visible;
}

.catalog-chip-row,
.catalog-filter-bar__actions,
.catalog-active-filters--selected,
.review-filters {
    min-width: 0;
}

.filter-chip-dropdown summary,
.filter-sale-chip,
.catalog-clear-link,
.catalog-toolbar select {
    min-width: 0;
}

.filter-chip-dropdown summary b,
.catalog-active-filters span,
.review-filters a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-footer {
    overflow: hidden;
}

.footer-grid {
    align-items: start;
}

.footer-rich-content ul,
.footer-links {
    min-width: 0;
}

.footer-rich-content a,
.footer-links a,
.footer-socials a,
.footer-hotline {
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .product-detail,
    .product-page {
        gap: 22px;
    }

    .catalog-layout--filters {
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

@media (max-width: 980px) {
    .section {
        padding-block: 32px;
    }

    .section-heading--row {
        align-items: flex-start;
        gap: 12px;
    }

    .section-heading--row .section-link {
        flex: 0 0 auto;
    }

    .home-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .home-category-card {
        align-items: flex-start;
        padding: 15px;
        text-align: left;
    }

    .home-category-card__media,
    .home-category-card__icon {
        width: 58px;
        height: 58px;
    }

    .home-category-card__media img {
        width: 58px;
        height: 58px;
    }

    .catalog-layout--filters,
    .catalog-page,
    .product-detail,
    .product-page {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .catalog-filter {
        position: static;
    }

    .catalog-filter-bar {
        padding: 16px;
        border-radius: 10px;
    }

    .catalog-filter-bar__head,
    .catalog-filter-bar__actions,
    .catalog-toolbar,
    .catalog-toolbar--inline {
        align-items: stretch;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .catalog-chip-row,
    .catalog-active-filters--selected,
    .review-filters {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        margin-inline: -4px;
        overflow-x: auto;
        padding: 2px 4px 8px;
        scrollbar-width: thin;
    }

    .filter-chip-dropdown,
    .filter-sale-chip,
    .catalog-active-filters span,
    .review-filters a {
        flex: 0 0 auto;
    }

    .filter-chip-dropdown summary,
    .filter-sale-chip {
        max-width: min(74vw, 320px);
    }

    .filter-chip-dropdown__panel {
        position: fixed;
        top: auto;
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        max-height: min(72dvh, 560px);
        overflow-y: auto;
    }

    .catalog-toolbar form,
    .catalog-toolbar select {
        width: 100%;
    }

    .product-grid,
    .product-grid--home,
    .category-product-samples,
    .related-product-list,
    .product-grid--recent {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .product-card__image {
        aspect-ratio: 1 / 0.78;
    }

    .product-card__body {
        padding: 14px;
    }

    .product-card h3 {
        min-height: auto;
        font-size: 15px;
        line-height: 1.35;
    }

    .product-card__desc {
        display: none;
    }

    .product-card__bottom {
        align-items: flex-start;
        gap: 10px;
    }

    .product-card__actions,
    .product-card__actions--triple,
    .related-product-card__actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-detail__media,
    .product-detail__info,
    .product-description--detail,
    .review-form,
    .review-approved,
    .related-products,
    .recently-viewed-products {
        border-radius: 10px;
    }

    .product-gallery {
        gap: 12px;
    }

    .product-thumbs,
    .product-thumbs--image {
        grid-template-columns: none;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .product-thumbs button,
    .product-thumbs--image button {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
    }

    .buy-actions--detail,
    .buy-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .review-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .review-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .section {
        padding-block: 26px;
    }

    .section-heading--row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .section-heading h2,
    .section-heading h1,
    .catalog-toolbar h2,
    .catalog-filter-bar__head h2 {
        font-size: 22px;
        line-height: 1.25;
    }

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

    .home-category-card {
        gap: 9px;
        padding: 12px;
    }

    .home-category-card__media,
    .home-category-card__icon,
    .home-category-card__media img {
        width: 50px;
        height: 50px;
    }

    .home-category-card strong {
        font-size: 14px;
        line-height: 1.25;
    }

    .home-category-card span:last-child {
        font-size: 12px;
        line-height: 1.35;
    }

    .catalog-filter-bar,
    .catalog-toolbar {
        margin-inline: -2px;
        padding: 13px;
    }

    .filter-chip-dropdown summary,
    .filter-sale-chip {
        max-width: min(82vw, 300px);
        min-height: 38px;
        padding: 8px 11px;
    }

    .filter-chip-dropdown__panel {
        right: 8px;
        bottom: 8px;
        left: 8px;
        max-height: min(76dvh, 560px);
        padding: 14px;
    }

    .filter-price-inputs,
    .filter-price-presets--dropdown,
    .filter-chip-dropdown__panel--grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-grid,
    .product-grid--home,
    .category-product-samples,
    .related-product-list,
    .product-grid--recent {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .product-card {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        min-height: 0;
    }

    .product-card__image {
        height: 100%;
        min-height: 154px;
        aspect-ratio: auto;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .product-card__image img {
        padding: 10px;
    }

    .product-card__body {
        padding: 12px;
    }

    .product-card__meta,
    .product-card__status {
        font-size: 11px;
    }

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

    .product-card__bottom {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .product-card__actions .button,
    .product-card__actions .compare-link {
        min-height: 36px;
        font-size: 12px;
        padding-inline: 8px;
    }

    .product-detail__info h1 {
        font-size: 24px;
        line-height: 1.25;
    }

    .product-detail__price,
    .product-detail__price strong {
        font-size: 22px;
    }

    .product-detail__media,
    .product-detail__info,
    .product-description--detail,
    .review-form,
    .review-approved {
        padding: 14px;
    }

    .product-thumbs button,
    .product-thumbs--image button {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .review-summary__score {
        text-align: left;
    }

    .related-product-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .related-product-card__image {
        height: 100%;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .site-footer {
        padding-top: 28px;
    }

    .footer-brand,
    .footer-grid > div {
        min-width: 0;
    }

    .footer-hotline {
        display: flex;
        justify-content: center;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .home-category-grid {
        gap: 10px;
    }

    .product-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .product-card__image {
        min-height: 142px;
    }

    .product-card__actions {
        gap: 7px;
    }

    .product-card__actions .button,
    .product-card__actions .compare-link {
        font-size: 11px;
    }
}

/* Product list/detail responsive hotfix 20260614 */
.catalog-page,
.catalog-page .product-grid,
.product-detail-page .container,
.product-detail-shell,
.product-gallery--detail,
.product-purchase-panel,
.product-content-grid,
.product-main-column,
.product-spec-card,
.product-policy-grid,
.product-cart-form,
.product-cart-form__bottom,
.product-option-box,
.option-list--cards,
.buy-actions--detail,
.short-related-list,
.share-row--detail,
.product-description--detail,
.related-product-list,
.recently-viewed-products .product-grid {
    min-width: 0;
}

@media (max-width: 1024px) {
    .catalog-page .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px;
    }

    .product-detail-shell {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px;
    }

    .product-content-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 18px;
    }

    .product-policy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .product-spec-card {
        position: static !important;
    }

    .product-gallery--detail,
    .product-purchase-panel,
    .product-description--detail,
    .product-spec-card,
    .related-products,
    .recently-viewed-products {
        width: 100%;
        max-width: 100%;
    }

    .product-purchase-panel h1 {
        font-size: clamp(24px, 4vw, 34px);
        line-height: 1.22;
    }

    .product-main-image {
        aspect-ratio: 1 / 1;
        min-height: 0;
    }

    .product-main-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product-thumb-strip {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 8px;
    }

    .product-thumbs--image {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .product-thumbs--image button {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
    }

    .buy-actions--detail {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }
}

@media (max-width: 760px) {
    .catalog-page .product-grid,
    .product-grid--home,
    .category-product-samples,
    .related-product-list,
    .recently-viewed-products .product-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .catalog-page .product-card,
    .product-grid--home .product-card,
    .category-product-samples .product-card,
    .recently-viewed-products .product-card {
        display: flex !important;
        flex-direction: column !important;
        height: auto;
    }

    .catalog-page .product-card__image,
    .product-grid--home .product-card__image,
    .category-product-samples .product-card__image,
    .recently-viewed-products .product-card__image {
        width: 100%;
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--line) !important;
    }

    .catalog-page .product-card__image img,
    .product-grid--home .product-card__image img,
    .category-product-samples .product-card__image img,
    .recently-viewed-products .product-card__image img {
        width: 100%;
        height: 100%;
        padding: 14px;
        object-fit: contain;
    }

    .product-card__body {
        gap: 10px;
        padding: 14px !important;
    }

    .product-card h3 {
        font-size: 16px !important;
        line-height: 1.35;
    }

    .product-card__desc {
        display: block !important;
        min-height: 0 !important;
        font-size: 13px;
        line-height: 1.45;
    }

    .product-card__bottom {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .product-card__actions,
    .product-card__actions--triple {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px;
    }

    .product-card__actions .button,
    .product-card__actions .compare-link {
        width: 100%;
        min-height: 40px;
        justify-content: center;
        font-size: 13px !important;
    }

    .catalog-filter-bar__head,
    .catalog-filter-bar__actions,
    .catalog-toolbar,
    .catalog-toolbar--inline {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: stretch !important;
    }

    .catalog-clear-link,
    .catalog-filter-bar__actions .button,
    .catalog-toolbar select {
        width: 100%;
        justify-content: center;
    }

    .filter-chip-dropdown__panel {
        position: fixed !important;
        top: auto !important;
        right: 10px !important;
        bottom: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-height: min(76dvh, 560px);
        overflow-y: auto;
    }

    .product-detail-page {
        padding-top: 20px;
    }

    .product-detail-page .container {
        width: min(100% - 24px, 1180px);
    }

    .breadcrumb {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .product-gallery--detail,
    .product-purchase-panel,
    .product-description--detail,
    .product-spec-card,
    .review-form,
    .review-approved {
        padding: 14px !important;
        border-radius: 10px;
    }

    .product-purchase-panel h1 {
        font-size: 24px !important;
        line-height: 1.25;
    }

    .product-meta-row,
    .product-status-row,
    .product-option-box__head,
    .product-cart-form__bottom,
    .share-row--detail {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px;
    }

    .product-summary {
        font-size: 14px;
        line-height: 1.55;
    }

    .product-price-box {
        padding: 14px;
    }

    .product-price-box strong {
        font-size: 26px !important;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .option-list--cards {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px;
    }

    .option-card {
        width: 100%;
        min-width: 0;
    }

    .buy-actions--detail {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .buy-actions--detail .button,
    .compare-link--panel {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .short-related-list {
        display: flex !important;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .short-related-item {
        flex: 0 0 min(76vw, 240px);
    }

    .product-policy-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .product-spec-card__head,
    .review-summary,
    .review-card__head {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px;
    }
}

@media (max-width: 420px) {
    .product-detail-page .container {
        width: min(100% - 20px, 1180px);
    }

    .product-gallery--detail,
    .product-purchase-panel,
    .product-description--detail,
    .product-spec-card,
    .review-form,
    .review-approved {
        padding: 12px !important;
    }

    .product-thumbs--image button {
        flex-basis: 62px;
        width: 62px;
        height: 62px;
    }
}

/* Mobile catalog filter sheet 20260614 */
.catalog-mobile-filter-button,
.catalog-filter-close {
    display: none;
}

@media (max-width: 760px) {
    body.catalog-filter-open {
        overflow: hidden;
    }

    .catalog-mobile-filter-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        width: 100%;
        min-height: 46px;
        border: 1px solid rgba(240, 90, 40, 0.28);
        border-radius: 10px;
        background: #ffffff;
        color: var(--text);
        box-shadow: 0 12px 28px rgba(20, 31, 50, 0.08);
        font-weight: 900;
        margin: 0 0 12px;
        padding: 0 14px;
    }

    .catalog-mobile-filter-button .icon {
        color: var(--primary);
    }

    .catalog-mobile-filter-button strong {
        display: grid;
        min-width: 22px;
        height: 22px;
        place-items: center;
        border-radius: 999px;
        background: var(--accent);
        color: #ffffff;
        font-size: 12px;
        line-height: 1;
    }

    .catalog-filter-bar {
        position: fixed !important;
        z-index: 1600;
        inset: 0;
        display: none !important;
        align-items: end;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: rgba(15, 23, 42, 0.56);
        box-shadow: none !important;
    }

    .catalog-filter-bar.is-mobile-open {
        display: grid !important;
    }

    .catalog-filter-bar::before {
        content: "";
        position: absolute;
        inset: 0;
    }

    .catalog-filter-bar > * {
        position: relative;
        z-index: 1;
    }

    .catalog-filter-bar__head,
    .catalog-chip-row,
    .catalog-filter-search {
        width: min(100%, 520px);
        margin-inline: auto;
        background: #ffffff;
    }

    .catalog-filter-bar__head {
        align-items: start !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 12px !important;
        max-height: none;
        border-radius: 18px 18px 0 0;
        border-bottom: 1px solid var(--line);
        padding: 16px 14px 12px;
    }

    .catalog-filter-bar__head > div:first-child {
        min-width: 0;
    }

    .catalog-filter-bar__head h2 {
        margin: 3px 0 0;
        font-size: 20px !important;
        line-height: 1.25;
    }

    .catalog-filter-bar__actions {
        display: grid !important;
        grid-template-columns: 40px;
        gap: 8px;
        justify-items: end;
    }

    .catalog-filter-close {
        display: grid;
        width: 40px;
        height: 40px;
        place-items: center;
        border: 1px solid #ffe1d6;
        border-radius: 10px;
        background: #fff7f3;
        color: var(--accent);
        cursor: pointer;
        font-size: 28px;
        line-height: 1;
    }

    .catalog-filter-bar__actions .catalog-clear-link,
    .catalog-filter-bar__actions .button {
        position: fixed;
        z-index: 2;
        bottom: 14px;
        width: auto;
    }

    .catalog-filter-bar__actions .catalog-clear-link {
        left: max(14px, calc((100vw - 520px) / 2 + 14px));
        min-height: 44px;
        border: 1px solid var(--line);
        border-radius: 10px;
        background: #ffffff;
        color: var(--muted);
        padding: 11px 14px;
        font-weight: 900;
    }

    .catalog-filter-bar__actions .button {
        right: max(14px, calc((100vw - 520px) / 2 + 14px));
        min-height: 44px;
        padding-inline: 18px;
    }

    .catalog-chip-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        max-height: min(58dvh, 520px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 12px 14px 8px !important;
    }

    .filter-chip-dropdown,
    .filter-sale-chip {
        width: 100%;
        max-width: none;
    }

    .filter-chip-dropdown summary,
    .filter-sale-chip {
        width: 100%;
        max-width: none !important;
        min-height: 44px;
        justify-content: space-between;
        border-radius: 10px;
        padding: 10px 12px;
    }

    .filter-chip-dropdown__panel {
        position: static !important;
        width: 100% !important;
        max-height: 260px;
        margin-top: 8px;
        border-radius: 10px;
        box-shadow: none;
        overflow-y: auto;
    }

    .catalog-filter-search {
        border-radius: 0;
        padding: 4px 14px 72px;
    }

    .catalog-filter-search label {
        display: grid;
        gap: 7px;
    }

    .catalog-filter-search input {
        width: 100%;
        min-height: 42px;
    }
}

/* Mobile catalog filter sheet fix 20260614 */
.catalog-filter-mobile-actions {
    display: none;
}

@media (max-width: 760px) {
    .catalog-mobile-filter-button {
        position: sticky;
        top: 70px;
        z-index: 30;
        display: flex !important;
        margin: 0 0 12px !important;
        background: #ffffff;
    }

    .catalog-filter-bar {
        position: fixed !important;
        inset: 0 !important;
        z-index: 1800 !important;
        display: none !important;
        width: 100% !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: rgba(15, 23, 42, 0.58) !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    .catalog-filter-bar.is-mobile-open {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
    }

    .catalog-filter-bar::before {
        display: none !important;
    }

    .catalog-filter-bar__head,
    .catalog-chip-row,
    .catalog-filter-search,
    .catalog-filter-mobile-actions {
        width: min(100%, 560px) !important;
        margin: 0 auto !important;
        background: #ffffff !important;
    }

    .catalog-filter-bar__head {
        position: relative !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 48px !important;
        gap: 12px !important;
        align-items: start !important;
        border: 0 !important;
        border-bottom: 1px solid var(--line) !important;
        border-radius: 20px 20px 0 0 !important;
        padding: 18px 18px 14px !important;
    }

    .catalog-filter-bar__head > div:first-child span {
        color: var(--primary);
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
    }

    .catalog-filter-bar__head h2 {
        margin: 4px 0 0 !important;
        color: var(--text);
        font-size: 24px !important;
        line-height: 1.2 !important;
    }

    .catalog-filter-bar__actions {
        position: static !important;
        display: flex !important;
        align-items: start !important;
        justify-content: end !important;
        width: auto !important;
        gap: 0 !important;
    }

    .catalog-filter-bar__actions > .catalog-clear-link,
    .catalog-filter-bar__actions > .button {
        display: none !important;
    }

    .catalog-filter-close {
        position: static !important;
        display: grid !important;
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        place-items: center;
        border: 1px solid #ffd9cc !important;
        border-radius: 12px !important;
        background: #fff7f3 !important;
        color: var(--accent) !important;
        font-size: 30px !important;
        line-height: 1 !important;
    }

    .catalog-chip-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 10px !important;
        max-height: calc(100dvh - 266px) !important;
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 14px 18px 10px !important;
        scrollbar-width: thin;
    }

    .filter-chip-dropdown,
    .filter-sale-chip {
        width: 100% !important;
        max-width: none !important;
        flex: none !important;
    }

    .filter-chip-dropdown summary,
    .filter-sale-chip {
        width: 100% !important;
        max-width: none !important;
        min-height: 54px !important;
        border-radius: 12px !important;
        padding: 12px 14px !important;
        font-size: 15px !important;
    }

    .filter-chip-dropdown__panel {
        position: static !important;
        width: 100% !important;
        max-height: 280px !important;
        margin: 8px 0 0 !important;
        border: 1px solid var(--line) !important;
        border-radius: 12px !important;
        box-shadow: none !important;
        overflow-y: auto !important;
        padding: 10px !important;
    }

    .filter-choice {
        min-height: 46px;
        border-radius: 10px;
    }

    .catalog-filter-search {
        border-top: 1px solid var(--line);
        padding: 12px 18px !important;
    }

    .catalog-filter-search label {
        display: grid !important;
        gap: 8px;
        color: var(--text);
        font-weight: 900;
    }

    .catalog-filter-search input {
        min-height: 52px !important;
        border-radius: 12px !important;
        font-size: 16px !important;
        padding-inline: 14px !important;
    }

    .catalog-filter-mobile-actions {
        position: relative;
        z-index: 2;
        display: grid !important;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 10px;
        border-top: 1px solid var(--line);
        border-radius: 0 0 20px 20px;
        box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.08);
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom)) !important;
    }

    .catalog-filter-mobile-actions .catalog-clear-link,
    .catalog-filter-mobile-actions .button {
        position: static !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        min-height: 48px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 900;
        text-align: center;
    }

    .catalog-filter-mobile-actions .catalog-clear-link {
        border: 1px solid var(--line);
        background: #ffffff;
        color: var(--muted);
    }
}

@media (max-width: 380px) {
    .catalog-filter-bar__head,
    .catalog-chip-row,
    .catalog-filter-search,
    .catalog-filter-mobile-actions {
        width: 100% !important;
    }

    .catalog-filter-bar__head {
        padding-inline: 14px !important;
    }

    .catalog-chip-row,
    .catalog-filter-search,
    .catalog-filter-mobile-actions {
        padding-inline: 14px !important;
    }
}

/* Mobile catalog filter solid sheet 20260614 */
.catalog-filter-sheet {
    display: contents;
}

@media (max-width: 760px) {
    .catalog-filter-bar.is-mobile-open {
        padding: 8px 0 0 !important;
    }

    .catalog-filter-bar.is-mobile-open .catalog-filter-sheet {
        position: relative;
        z-index: 1;
        display: flex !important;
        flex-direction: column;
        width: min(100%, 560px);
        max-height: calc(100dvh - 8px);
        min-height: 0;
        margin: 0 auto;
        border-radius: 20px 20px 0 0;
        background: #ffffff;
        box-shadow: 0 -18px 50px rgba(15, 23, 42, 0.24);
        overflow: hidden;
    }

    .catalog-filter-bar.is-mobile-open .catalog-filter-bar__head,
    .catalog-filter-bar.is-mobile-open .catalog-chip-row,
    .catalog-filter-bar.is-mobile-open .catalog-filter-search,
    .catalog-filter-bar.is-mobile-open .catalog-filter-mobile-actions {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background: #ffffff !important;
    }

    .catalog-filter-bar.is-mobile-open .catalog-filter-bar__head {
        flex: 0 0 auto;
        border-radius: 20px 20px 0 0 !important;
    }

    .catalog-filter-bar.is-mobile-open .catalog-chip-row {
        flex: 1 1 auto;
        max-height: none !important;
    }

    .catalog-filter-bar.is-mobile-open .catalog-filter-search,
    .catalog-filter-bar.is-mobile-open .catalog-filter-mobile-actions {
        flex: 0 0 auto;
    }

    .catalog-filter-bar.is-mobile-open .catalog-filter-mobile-actions {
        border-radius: 0 !important;
    }

}

@media (max-width: 380px) {
    .catalog-filter-bar.is-mobile-open .catalog-filter-sheet {
        width: 100%;
    }
}

/* Header mobile/cart theme polish */
.cart-link {
    background: var(--primary) !important;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(20, 31, 50, 0.14);
}

.cart-link:hover {
    background: var(--primary-dark) !important;
}

.cart-link__badge {
    color: var(--primary) !important;
}

@media (max-width: 980px) {
    .mobile-menu-toggle {
        position: relative;
        display: grid !important;
        width: 44px;
        height: 44px;
        min-width: 44px;
        place-items: center;
        border: 1px solid rgba(240, 90, 40, 0.22) !important;
        border-radius: 14px !important;
        background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%) !important;
        box-shadow: 0 8px 18px rgba(20, 31, 50, 0.08);
        padding: 0 !important;
    }

    .mobile-menu-toggle::before {
        content: "";
        position: absolute;
        inset: 8px;
        border-radius: 10px;
        background: rgba(240, 90, 40, 0.08);
        opacity: 0;
        transition: opacity 0.18s ease;
    }

    .mobile-menu-toggle:hover::before,
    .mobile-menu-toggle:focus-visible::before {
        opacity: 1;
    }

    .mobile-menu-toggle span {
        position: relative;
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        border-radius: 999px;
        background: var(--primary) !important;
        box-shadow: none;
    }

    .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(6px);
    }

    .mobile-menu-toggle span:nth-child(2) {
        width: 15px !important;
        justify-self: end;
        margin-right: 12px;
    }

    .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-6px);
    }

    .mobile-menu-toggle[aria-expanded="true"] {
        border-color: var(--primary) !important;
        background: var(--primary) !important;
    }

    .mobile-menu-toggle[aria-expanded="true"] span {
        background: #ffffff !important;
    }

    .cart-link--mobile {
        border-radius: 14px !important;
        background: var(--primary) !important;
        box-shadow: 0 8px 18px rgba(20, 31, 50, 0.12);
    }
}
