:root {
    --primary: #d70018;
    --primary-dark: #b80015;
    --primary-light: #fff0f1;
    --text: #1a1a1a;
    --text-muted: #666;
    --border: #e5e7eb;
    --bg: #f5f5f5;
    --white: #fff;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,.08);
    --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

/* Header utility bar (CellphoneS: marquee một phần + link cố định) */
.header-promo-ticker {
    background: var(--primary);
    color: rgba(255, 255, 255, .95);
    font-size: 12px;
    line-height: 1.35;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.header-utility-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 7px 16px;
    min-height: 34px;
}

.header-utility-marquee {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 58%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.header-utility-marquee-track {
    display: flex;
    width: max-content;
    animation: header-utility-marquee 24s linear infinite;
}

.header-utility-marquee:hover .header-utility-marquee-track {
    animation-play-state: paused;
}

.header-utility-messages {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-utility-msg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 0 22px;
}

.header-utility-msg strong {
    font-weight: 700;
    color: var(--white);
}

.header-utility-icon {
    display: inline-flex;
    flex-shrink: 0;
    color: rgba(255, 255, 255, .9);
}

.header-utility-icon svg {
    display: block;
}

.header-utility-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 22px;
}

.header-utility-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: .95;
    transition: opacity .15s;
}

.header-utility-link:hover {
    opacity: 1;
}

.header-utility-link--hotline {
    font-weight: 700;
}

@keyframes header-utility-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (min-width: 1100px) {
    .header-utility-marquee {
        max-width: 52%;
    }
}

/* Header */
.header-wrap {
    position: sticky;
    top: 0;
    z-index: 200;
}

.main-header {
    background: var(--primary);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

.logo-s {
    font-style: italic;
}

.btn-category {
    background: rgba(255,255,255,.15);
    border: none;
    color: var(--white);
    padding: 10px 14px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-category[aria-expanded="true"] {
    background: rgba(255,255,255,.25);
}

.dropdown-arrow {
    font-size: 10px;
    opacity: .85;
}

.hamburger {
    width: 14px;
    height: 2px;
    background: var(--white);
    box-shadow: 0 -5px 0 var(--white), 0 5px 0 var(--white);
}

.location-select {
    background: rgba(255,255,255,.15);
    color: var(--white);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.location-select[aria-expanded="true"] {
    background: rgba(255,255,255,.25);
}

.location-label {
    opacity: .85;
    font-size: 12px;
}

.location-name {
    font-weight: 600;
}

/* Category mega menu */
.category-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 200;
    padding: 8px 0 0;
}

.category-dropdown-inner {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
    overflow: hidden;
    border: 1px solid var(--border);
}

.mega-menu {
    display: flex;
    min-height: 400px;
    max-height: calc(100vh - 120px);
}

.mega-menu-sidebar {
    width: 268px;
    flex-shrink: 0;
    background: #fafafa;
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.mega-menu-nav {
    list-style: none;
    padding: 8px 0;
}

.mega-menu-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
    text-align: left;
    transition: background .15s, color .15s;
}

.mega-menu-nav-item:hover,
.mega-menu-nav-item.active {
    background: var(--white);
    color: var(--primary);
}

.mega-menu-nav-item.active {
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--primary);
}

.mega-cat-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-cat-icon img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.mega-cat-label {
    flex: 1;
    line-height: 1.3;
}

.mega-cat-arrow {
    color: #bbb;
    font-size: 16px;
    line-height: 1;
}

.mega-menu-nav-item.active .mega-cat-arrow,
.mega-menu-nav-item:hover .mega-cat-arrow {
    color: var(--primary);
}

.mega-menu-panels {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--white);
}

.mega-panel {
    display: none;
    flex-direction: column;
    height: 100%;
    padding: 20px 24px 16px;
    overflow-y: auto;
}

.mega-panel.active {
    display: flex;
}

.mega-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 24px;
    flex: 1;
}

.mega-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.mega-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mega-tag {
    display: inline-block;
    padding: 7px 12px;
    font-size: 12px;
    color: var(--text);
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: border-color .15s, color .15s, background .15s;
}

.mega-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.mega-tag.highlight {
    color: var(--primary);
    font-weight: 600;
    border-color: rgba(215, 0, 24, .3);
    background: var(--primary-light);
}

.mega-link-list {
    list-style: none;
}

.mega-link-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text);
    transition: color .15s;
}

.mega-link-list li a:hover {
    color: var(--primary);
}

.mega-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.mega-view-all {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.mega-view-all:hover {
    text-decoration: underline;
}

/* Location modal */
.location-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 16px 16px;
}

.location-modal[hidden] {
    display: none;
}

.location-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

.location-modal-box {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 100px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0,0,0,.2);
}

.location-modal-header {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.location-modal-header input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}

.location-modal-header input:focus {
    border-color: var(--primary);
}

.location-modal-close {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.location-modal-desc {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.province-list {
    list-style: none;
    overflow-y: auto;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    flex: 1;
}

.province-list li button {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    color: var(--text);
    transition: background .2s, color .2s;
}

.province-list li button:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.province-list li button.active {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.province-list li button.hidden {
    display: none;
}

.header-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 90;
}

.header-overlay[hidden] {
    display: none;
}

/* Promo GIF banner */
.promo-gif-section {
    padding: 0 0 12px;
}

.promo-gif-link {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.promo-gif-link img {
    width: 100%;
    height: auto;
    display: block;
}

.header-search-wrap {
    flex: 1;
    min-width: 0;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color .15s;
}

.search-form:focus-within {
    border-color: rgba(255, 255, 255, .6);
}

.search-form-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 14px;
    color: #9aa0a6;
    flex-shrink: 0;
}

.search-form input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 11px 10px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.search-form-submit {
    background: transparent;
    border: none;
    padding: 0 16px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
}

/* Gợi ý tìm kiếm (CellphoneS style) */
.search-suggest-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 210;
    padding: 8px 0 16px;
    pointer-events: none;
}

.search-suggest-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
    border: 1px solid var(--border);
    padding: 16px 20px 20px;
    max-height: min(520px, calc(100vh - 120px));
    overflow-y: auto;
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.search-suggest-section + .search-suggest-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.search-suggest-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.search-suggest-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.search-suggest-icon {
    color: #5f6368;
    flex-shrink: 0;
}

.search-suggest-icon--fire {
    color: var(--primary);
}

.search-suggest-clear {
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
    white-space: nowrap;
}

.search-suggest-clear:hover {
    text-decoration: underline;
}

.search-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: background .15s;
}

.search-history-item:hover {
    background: #f5f5f5;
    color: var(--primary);
}

.search-history-icon {
    color: #9aa0a6;
    flex-shrink: 0;
}

.search-trending-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
}

.search-trending-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: background .15s;
}

.search-trending-item:hover {
    background: #f5f5f5;
}

.search-trending-thumb {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-trending-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-trending-thumb--text {
    font-size: 18px;
}

.search-trending-label {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
}

/* Overlay chỉ làm tối nội dung trang, không phủ lên header (tránh ô tìm kiếm bị mờ) */
body.search-suggest-open .header-overlay {
    display: block !important;
    z-index: 150;
    cursor: pointer;
}

body.search-suggest-open .header-wrap {
    z-index: 220;
}

body.search-suggest-open .search-suggest-panel {
    z-index: 221;
}

body.search-suggest-open .header-search-wrap {
    position: relative;
    z-index: 222;
}

@media (max-width: 768px) {
    .search-trending-grid {
        grid-template-columns: 1fr;
    }

    .search-suggest-box {
        padding: 14px 16px 16px;
    }
}

.header-cart-icon {
    display: none;
}

.header-cart, .btn-login {
    background: rgba(255,255,255,.15);
    color: var(--white);
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    white-space: nowrap;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--white);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-user {
    color: var(--white);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-user a {
    color: var(--white);
    opacity: .8;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin: 12px auto;
    max-width: var(--container);
}

.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* Hero */
.hero-section { padding: 16px 0; }

.hero-section .container,
.hero-grid {
    overflow: visible;
}

.hero-grid {
    display: grid;
    grid-template-columns: 268px 1fr 240px;
    gap: 12px;
    align-items: stretch;
}

/* Mega menu trang chủ (hover danh mục bên trái) */
.home-category-mega {
    position: relative;
    min-height: 100%;
    align-self: stretch;
}

.mega-menu--home {
    display: block;
    min-height: 0;
    max-height: none;
}

.mega-menu--home .mega-menu-sidebar {
    width: 100%;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: none;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.mega-menu--home .mega-menu-nav {
    padding: 0;
}

.mega-menu--home .mega-menu-nav-item {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.mega-menu--home .mega-menu-nav-item:last-child {
    border-bottom: none;
}

.mega-menu--home .mega-menu-panels {
    position: absolute;
    left: 100%;
    top: 0;
    margin-left: -2px;
    padding-left: 10px;
    width: min(920px, calc(100vw - 300px));
    min-height: 380px;
    max-height: min(480px, calc(100vh - 140px));
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .14);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .15s ease, visibility .15s ease;
    z-index: 50;
}

.home-category-mega.is-active .mega-menu--home .mega-menu-panels {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mega-menu--home .mega-panel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-main-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.hero-banner {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-sub-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hero-sub-banner {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
    transition: transform .15s ease, box-shadow .15s ease;
}

.hero-sub-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.hero-sub-banner img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 230 / 86;
    object-fit: cover;
}

.banner-slider {
    position: relative;
    overflow: hidden;
    aspect-ratio: 690 / 300;
    background: #f0f0f0;
}

.banner-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease;
    display: block;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: background .2s;
}

.banner-nav:hover {
    background: var(--white);
}

.banner-prev { left: 10px; }
.banner-next { right: 10px; }

.banner-tabs {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

.banner-tabs::-webkit-scrollbar { display: none; }

.banner-tabs span {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    text-align: center;
    transition: color .2s, border-color .2s;
}

.banner-tabs span:hover {
    color: var(--primary);
}

.banner-tabs span.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.hero-sidebar { display: flex; flex-direction: column; gap: 12px; }

.smember-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
}

.smember-box h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.smember-box p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.promo-list {
    list-style: none;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.promo-list li a {
    display: block;
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.promo-list li a:hover { color: var(--primary); }

/* Sub banners */
.sub-banners { padding-bottom: 16px; }

.sub-banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sub-banner {
    background: linear-gradient(135deg, var(--primary), #ff4757);
    color: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Products */
.products-section {
    padding: 24px 0 48px;
}

.products-showcase {
    border: 2px solid #7ec8f0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 120, 200, .08);
}

.showcase-tabs {
    display: flex;
    align-items: stretch;
    background: #eef4f8;
    border-bottom: 2px solid #7ec8f0;
}

.showcase-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    min-height: 56px;
    background: #eef4f8;
    border: none;
    border-right: 1px solid #d0e8f5;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s;
}

.showcase-tab:last-child {
    border-right: none;
}

.showcase-tab-text {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #009ee2;
    letter-spacing: .02em;
    text-align: center;
    line-height: 1.3;
}

.showcase-tab-img {
    display: none;
    height: 36px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.showcase-tab:hover {
    background: #e3f0f8;
}

.showcase-tab.active {
    background: #009ee2;
    border-right-color: #009ee2;
    border-radius: 12px 12px 0 0;
    margin-top: -2px;
    padding-top: 12px;
    position: relative;
    z-index: 1;
}

.showcase-tab.active .showcase-tab-text {
    display: none;
}

.showcase-tab.active .showcase-tab-img {
    display: block;
}

.showcase-panels {
    position: relative;
    min-height: 320px;
    padding: 0 4px;
}

.showcase-panel {
    display: none;
}

.showcase-panel.active {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 44px 8px 4px;
}

.showcase-panel.active::-webkit-scrollbar {
    display: none;
}

.showcase-panel[hidden] {
    display: none !important;
}

.showcase-panel.active .product-card {
    flex: 0 0 200px;
    width: 200px;
    scroll-snap-align: start;
    border: 1px solid #e8f4fc;
}

.showcase-scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    transition: background .2s, color .2s, box-shadow .2s;
}

.showcase-scroll-nav:hover {
    background: var(--white);
    color: #009ee2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

.showcase-scroll-nav[hidden] {
    display: none;
}

.showcase-scroll-prev {
    left: 0;
}

.showcase-scroll-next {
    right: 0;
}

.showcase-body {
    padding: 16px 20px 20px;
    background: var(--white);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.chip {
    padding: 7px 18px;
    border-radius: 24px;
    border: 1.5px solid #d0d5dd;
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    transition: border-color .2s, color .2s, background .2s;
}

.chip.active,
.chip:hover {
    border-color: #009ee2;
    color: #009ee2;
    background: #f0f9ff;
}

.showcase-loading {
    opacity: .5;
    pointer-events: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.product-image img {
    max-height: 180px;
    object-fit: contain;
}

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.product-info { padding: 12px 16px 16px; }

.product-info h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.price-current {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
}

.price-old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 13px;
}

.product-tag {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px;
    color: var(--text-muted);
}

/* Promo week (Tuần lễ Huawei, …) */
.promo-week-section {
    padding: 8px 0 28px;
}

.promo-week-box {
    border: 1px solid #c5dff5;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 80, 150, .06);
}

.promo-week-section--huawei-week .promo-week-box {
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 100, 180, .08);
}

.promo-week-banner {
    display: block;
    line-height: 0;
}

.promo-week-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.promo-week-section--huawei-week .promo-week-banner img {
    border-radius: 16px 16px 0 0;
}

.promo-week-body {
    background: #fff;
}

.promo-week-section--huawei-week .promo-week-body {
    background: linear-gradient(180deg, #dceefb 0%, #d2e8f9 100%);
    border-radius: 0 0 16px 16px;
}

.promo-week-products-wrap {
    position: relative;
    padding: 16px 44px;
}

.promo-week-section--huawei-week .promo-week-products-wrap {
    padding: 14px 52px 6px;
}

.promo-week-scroll {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.promo-week-scroll::-webkit-scrollbar {
    height: 6px;
}

.promo-week-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.cps-products-row {
    display: flex;
    gap: 12px;
    padding-bottom: 4px;
}

.cps-products-row .cps-product-card {
    flex: 0 0 220px;
    width: 220px;
    max-width: 220px;
}

.promo-week-section--huawei-week .cps-products-row .cps-product-card {
    flex: 0 0 228px;
    width: 228px;
    max-width: 228px;
    border-radius: 12px;
    border-color: #e5e5e5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.cps-products-row .no-products {
    flex: 1 1 100%;
    padding: 24px;
}

.promo-week-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    font-size: 22px;
    line-height: 1;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-week-section--huawei-week .promo-week-nav {
    width: 40px;
    height: 40px;
    border-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
    font-size: 24px;
    color: #444;
}

.promo-week-nav--prev { left: 8px; }
.promo-week-nav--next { right: 8px; }

.promo-week-section--huawei-week .promo-week-nav--prev { left: 10px; }
.promo-week-section--huawei-week .promo-week-nav--next { right: 10px; }

.promo-week-nav:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.promo-week-see-all {
    text-align: center;
    padding: 12px 16px 16px;
    border-top: 1px solid #f0f0f0;
}

.promo-week-section--huawei-week .promo-week-see-all {
    border-top: none;
    padding: 4px 16px 18px;
    background: transparent;
}

.promo-week-see-all a {
    font-size: 14px;
    font-weight: 600;
    color: #009ee2;
}

.promo-week-see-all a:hover {
    text-decoration: underline;
}

/* Thẻ SP — Tuần lễ Huawei (CellphoneS) */
.cps-badge-huawei {
    right: 8px;
    left: auto;
    background: #e53935;
    color: #fff;
    font-size: 9px;
    padding: 3px 7px;
}

.cps-product-card--huawei .cps-card-badges {
    min-height: 32px;
}

.cps-product-card--huawei .cps-badge-sale {
    background: #e53935;
}

.cps-product-card--huawei .cps-card-image {
    background: #fff;
    padding: 12px 12px 0;
    aspect-ratio: auto;
    min-height: 160px;
}

.cps-product-card--huawei .cps-card-image img {
    max-height: 150px;
}

.cps-product-card--huawei .cps-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    min-height: 40px;
}

.cps-product-card--huawei .cps-price-current {
    font-size: 16px;
    color: #d70018;
}

.cps-member-pills {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.cps-member-pill {
    display: block;
    font-size: 10px;
    line-height: 1.35;
    padding: 4px 8px;
    border-radius: 4px;
    background: #e3f2fd;
    color: #0277bd;
    font-weight: 500;
}

.cps-member-pill--student {
    background: #fce4ec;
    color: #c2185b;
}

.cps-promo-box {
    margin: 0;
    padding: 8px 10px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 10px;
    line-height: 1.45;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
}

.cps-product-card--huawei .cps-card-footer {
    border-top: 1px solid #eee;
    margin-top: auto;
}

.cps-product-card--huawei .cps-wishlist {
    color: #888;
}

/* Ưu đãi giáo dục + thanh toán */
.promo-duo-section {
    padding: 8px 0 32px;
}

.promo-duo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.promo-duo-col {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
    padding: 16px 16px 20px;
    min-width: 0;
}

.promo-duo-title {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a1a1a;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.promo-duo-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.promo-duo-banner {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
    border: 1px solid #f0f0f0;
    transition: box-shadow .2s, transform .2s;
}

.promo-duo-banner:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.promo-duo-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* Phone & Tablet block (CellphoneS style) */
.phone-tablet-section {
    padding: 0 0 40px;
}

.phone-tablet-layout {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.phone-tablet-layout--no-promo {
    grid-template-columns: 1fr;
}

.phone-tablet-promo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.phone-tablet-promo-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}

.phone-tablet-promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.phone-tablet-promo-link img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.phone-tablet-main {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pt-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.pt-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border: none;
    background: var(--white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--text);
    cursor: pointer;
    position: relative;
    transition: color .2s;
}

.pt-tab-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 2px;
}

.pt-tab-label {
    line-height: 1.2;
}

.pt-tab:hover {
    color: var(--primary);
}

.pt-tab.active {
    color: var(--primary);
}

.pt-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--primary);
}

.pt-panels {
    padding: 16px 16px 20px;
}

.pt-panel[hidden] {
    display: none !important;
}

.pt-subfilters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.pt-subfilter {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafafa;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    transition: border-color .2s, background .2s;
    min-width: 0;
    flex: 1 1 140px;
    max-width: calc(33.333% - 6px);
}

.pt-subfilter:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.pt-subfilter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
}

.pt-subfilter-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.pt-subfilter-label {
    line-height: 1.3;
}

.pt-brands {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.pt-brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.pt-brand {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    transition: border-color .2s, color .2s;
}

.pt-brand:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pt-see-all {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #009ee2;
    white-space: nowrap;
}

.pt-see-all:hover {
    text-decoration: underline;
}

.pt-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

/* Đồng hồ & Âm thanh */
.watch-audio-section {
    padding: 0 0 40px;
}

.watch-audio-section .phone-tablet-layout {
    grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
}

.watch-audio-promo-link {
    display: block;
    min-height: 100%;
}

.watch-audio-promo-link img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: center top;
}

.pt-subfilter--text {
    justify-content: center;
    padding: 10px 12px;
    flex: 1 1 120px;
    max-width: calc(33.333% - 6px);
}

.pt-subfilter--text .pt-subfilter-label {
    text-align: center;
}

.pt-products-scroll {
    overflow-x: auto;
    margin: 0 -4px;
    padding: 4px 4px 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.pt-products-grid--scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    min-width: min-content;
}

.pt-products-grid--scroll .cps-product-card {
    flex: 0 0 220px;
    width: 220px;
}

.pt-products-grid--scroll .no-products {
    flex: 1 1 100%;
    min-width: 200px;
}

.cps-product-card {
    width: 100%;
    min-width: 0;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.cps-product-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
    transform: translateY(-2px);
}

.cps-card-badges {
    position: relative;
    min-height: 28px;
    padding: 8px 8px 0;
}

.cps-badge {
    position: absolute;
    top: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    line-height: 1.2;
    z-index: 1;
}

.cps-badge-sale {
    left: 8px;
    background: var(--primary);
    color: var(--white);
}

.cps-badge-installment {
    right: 8px;
    background: #009ee2;
    color: var(--white);
}

.cps-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px 4px;
    aspect-ratio: 1;
    background: #fafafa;
}

.cps-card-image img {
    max-height: 140px;
    width: auto;
    object-fit: contain;
}

.cps-card-body {
    padding: 8px 12px;
    flex: 1;
}

.cps-card-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.cps-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.cps-price-current {
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
}

.cps-price-old {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: line-through;
}

.cps-member-line {
    font-size: 11px;
    color: #009ee2;
    line-height: 1.4;
    margin-bottom: 2px;
}

.cps-member-line.cps-student {
    color: #7c3aed;
}

.cps-installment-note {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.35;
    margin-top: 4px;
}

.cps-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 12px;
    border-top: 1px solid #f0f0f0;
    font-size: 12px;
}

.cps-rating {
    color: #f59e0b;
    font-weight: 600;
}

.cps-wishlist {
    color: var(--text-muted);
    font-size: 11px;
}

.pt-products-grid .no-products {
    grid-column: 1 / -1;
    padding: 32px 16px;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-block { width: 100%; }

/* Product detail — CellphoneS style */
.product-page { padding: 16px 0 48px; }

.breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.breadcrumb a:hover { color: var(--primary); }

.product-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 28px 32px;
    background: var(--white);
    padding: 20px 24px 24px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    margin-bottom: 20px;
    align-items: start;
}

.product-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-gallery .main-image {
    background: linear-gradient(145deg, #fff5f0 0%, #fff 45%, #f8f9fa 100%);
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    aspect-ratio: 1 / 1;
    max-height: 520px;
}

.product-gallery .main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-thumbs-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.gallery-thumbs-scroll {
    flex: 1;
    overflow: hidden;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px;
    scrollbar-width: thin;
}

.gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 4px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
    border-color: var(--primary);
}

.gallery-nav {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.product-commitments-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.commitment-strip-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.4;
    background: #fafafa;
}

.commitment-icon {
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

.product-summary {
    padding-top: 4px;
}

.product-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.product-specs-line {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 10px;
}

.product-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.product-meta .rating {
    color: #f59e0b;
    font-weight: 500;
}

.product-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.quick-action {
    font-size: 13px;
    color: #444;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quick-action:hover { color: var(--primary); }

.price-box--cps {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.price-main {
    flex: 1;
    min-width: 200px;
}

.price-box .price-current {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.price-box .price-old {
    font-size: 15px;
    color: #999;
    text-decoration: line-through;
    margin-top: 4px;
}

.price-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.price-save {
    color: var(--primary);
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

.price-tradein {
    flex: 0 0 auto;
    min-width: 160px;
    padding: 12px 14px;
    background: #e8f4fc;
    border-radius: 10px;
    border: 1px solid #c5e3f7;
    font-size: 12px;
    line-height: 1.4;
}

.price-tradein-label {
    display: block;
    color: #555;
    margin-bottom: 4px;
}

.price-tradein strong {
    color: #0066b3;
    font-size: 13px;
}

.promo-box--cps {
    background: #fff8f8;
    border: 1px solid #ffd4d9;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.promo-box--cps h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo-box ul {
    list-style: none;
    font-size: 13px;
    color: #333;
}

.promo-box li {
    padding: 5px 0 5px 14px;
    position: relative;
    line-height: 1.45;
}

.promo-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.quantity-row--inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.quantity-row--inline label {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

.qty-btn:hover { background: #eee; }

.qty-stepper input {
    width: 48px;
    height: 36px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    padding: 0;
}

.action-buttons--cps {
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    gap: 10px;
    margin-bottom: 0;
    align-items: stretch;
}

.btn-installment {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 8px;
}

.btn-installment:hover {
    background: #fff5f5;
}

.btn-buy-now {
    background: var(--primary);
    color: var(--white);
    padding: 14px 16px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 56px;
}

.btn-buy-now small {
    font-size: 10px;
    font-weight: 400;
    opacity: .92;
    margin-top: 4px;
    line-height: 1.3;
}

.btn-add-cart-icon {
    width: 56px;
    min-height: 56px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 10px;
    cursor: pointer;
}

.btn-add-cart-icon:hover {
    background: #fff5f5;
}

/* Smember login modal */
.smember-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, .45);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.smember-modal-overlay.is-open {
    display: flex !important;
}

body.modal-open {
    overflow: hidden;
}

.smember-modal {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    padding: 22px 20px 20px;
    max-width: 300px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}

.smember-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    font-size: 18px;
    color: #9aa0a6;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.smember-modal .smember-logo {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    font-style: italic;
    line-height: 1.2;
}

.smember-modal-mascot {
    display: block;
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    margin: 0 auto 12px;
    object-fit: contain;
}

.smember-modal-text {
    font-size: 13px;
    line-height: 1.55;
    color: #3c4043;
    margin: 0 0 18px;
}

.smember-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.smember-modal-actions .btn {
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.smember-btn-register {
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    background: #fff !important;
}

.smember-btn-register:hover {
    background: #fff5f5 !important;
}

.smember-btn-login {
    border: 1px solid var(--primary) !important;
}

.store-check h4 {
    font-size: 14px;
    margin-bottom: 12px;
}

.store-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.store-selects select {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
}

.store-item {
    background: #fafafa;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 13px;
}

.store-item span {
    display: block;
    color: var(--text-muted);
    margin-top: 4px;
}

.product-detail-tabs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.commitments, .specs-section, .description-section {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.commitments h3, .specs-section h3, .description-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.commitment-item {
    background: #fafafa;
    padding: 16px;
    border-radius: var(--radius);
    font-size: 13px;
    text-align: center;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.specs-table td:first-child {
    width: 40%;
    color: var(--text-muted);
}

.description-content {
    font-size: 14px;
    line-height: 1.7;
}

.description-content ul, .description-content ol {
    margin-left: 20px;
    margin-top: 8px;
}

/* Product variants */
.product-variant-pickers {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.variant-picker-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-option {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, background .15s;
}

.variant-option.is-active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.variant-option--color {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 88px;
    padding: 8px;
}

.variant-option-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 4px;
}

.variant-option-price {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

.price-tradein-link {
    display: block;
    font-size: 12px;
    color: #009ee2;
    margin-top: 4px;
}

.specs-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.specs-see-all {
    font-size: 13px;
    font-weight: 600;
    color: #009ee2;
}

.specs-table--cps th {
    font-weight: 600;
    color: #555;
    background: #fafafa;
}

.promo-box--cps ol {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.6;
}

/* Reviews */
.product-reviews-section {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.reviews-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.reviews-head h2 {
    font-size: 18px;
}

.reviews-summary-grid {
    display: grid;
    grid-template-columns: 160px 1fr 200px;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.reviews-score-big {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.reviews-stars .star,
.product-meta .star {
    color: #ddd;
}

.reviews-stars .star.is-on,
.product-meta .star.on {
    color: #f59e0b;
}

.review-bar-row {
    display: grid;
    grid-template-columns: 36px 1fr 28px;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 6px;
}

.review-bar-track {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.review-bar-fill {
    display: block;
    height: 100%;
    background: var(--primary);
}

.reviews-experience h4 {
    font-size: 13px;
    margin-bottom: 8px;
}

.reviews-experience ul {
    list-style: none;
    font-size: 12px;
    line-height: 1.8;
}

.reviews-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.review-filter-chip {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
}

.review-filter-chip.is-active {
    border-color: #009ee2;
    color: #009ee2;
    background: #f0f9ff;
}

.review-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.review-stars-inline .on {
    color: #f59e0b;
}

.review-verified {
    font-size: 12px;
    color: #16a34a;
    margin: 4px 0;
}

.review-exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
}

.review-exp-tags span {
    font-size: 11px;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
}

.review-text {
    font-size: 14px;
    line-height: 1.5;
    margin: 6px 0;
}

.review-time {
    font-size: 12px;
    color: var(--text-muted);
}

.review-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.review-modal[hidden] {
    display: none !important;
}

.review-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
}

.review-modal-box {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px 24px 24px;
    z-index: 1;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
}

.review-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.review-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.review-modal-close {
    border: none;
    background: #f5f5f5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.review-modal-product {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.review-form fieldset {
    border: none;
    margin: 0 0 20px;
    padding: 0;
    min-width: 0;
}

.review-form legend {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    padding: 0;
    width: 100%;
}

.review-legend-note {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 12px;
}

.review-star-pick {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.review-star-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-align: center;
    padding: 4px 2px;
}

.review-star-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.review-star-icon {
    font-size: 28px;
    line-height: 1;
    color: #ddd;
    transition: color .15s;
}

.review-star-option small {
    font-size: 10px;
    line-height: 1.25;
    color: #666;
    display: block;
    min-height: 2.5em;
}

.review-star-option:hover .review-star-icon,
.review-star-option input:focus-visible + .review-star-icon {
    color: #fbbf24;
}

.review-star-option input:checked + .review-star-icon {
    color: #f59e0b;
}

.review-exp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.review-exp-row:last-child {
    margin-bottom: 0;
}

.review-exp-label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
    min-width: 110px;
}

.review-mini-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}

.review-mini-star {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.review-mini-star input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.review-mini-star span {
    font-size: 22px;
    color: #ddd;
    line-height: 1;
}

.review-mini-star:hover span,
.review-mini-star input:focus-visible + span {
    color: #fbbf24;
}

.review-mini-star input:checked + span {
    color: #f59e0b;
}

.review-field--comment {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.review-field--comment label {
    font-size: 14px;
    font-weight: 600;
}

.review-field--comment textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
}

.review-field--comment textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(215, 0, 24, .12);
}

.review-submit-btn {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 14px;
}

.review-form-msg {
    font-size: 13px;
    margin-bottom: 12px;
}

.review-form-msg.is-success {
    color: #16a34a;
}

.review-form-msg.is-error {
    color: var(--primary);
}

body.review-modal-open {
    overflow: hidden;
}

/* Sticky buy bar */
body.has-product-sticky {
    padding-bottom: 72px;
}

@media (max-width: 768px) {
    body.has-product-sticky {
        padding-bottom: calc(72px + 56px + env(safe-area-inset-bottom, 0px));
    }

    .product-sticky-bar {
        bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }
}

.product-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 190;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
    padding: 10px 0;
}

.product-sticky-bar[hidden] {
    display: none !important;
}

.product-sticky-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sticky-product-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.sticky-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
}

.sticky-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-variant {
    font-size: 11px;
    color: var(--text-muted);
}

.sticky-prices strong {
    color: var(--primary);
    font-size: 16px;
}

.sticky-price-old {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

.sticky-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.admin-repeat-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    margin-bottom: 8px;
}

.admin-variant-row {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fafafa;
}

.cart-variant-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

@media (max-width: 768px) {
    .reviews-summary-grid {
        grid-template-columns: 1fr;
    }

    .review-star-pick {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .review-star-option small {
        font-size: 9px;
        min-height: 2.2em;
    }

    .review-exp-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .product-sticky-inner {
        flex-wrap: wrap;
    }

    .sticky-product-info {
        flex: 1 1 100%;
    }

    .checkout-product {
        flex-wrap: wrap;
    }

    .checkout-product-actions {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
}

/* Auth pages */
.auth-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}

.auth-card-wide { max-width: 640px; }

.auth-logo {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.auth-logo span { font-style: italic; }

.auth-card h1 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 24px;
}

.social-login { text-align: center; margin-bottom: 20px; }

.social-login p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-social {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: border-color .2s;
}

.btn-social:hover { border-color: var(--primary); }

.auth-divider {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin: 20px 0;
    position: relative;
}

.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: var(--border);
}

.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-form .form-group { margin-bottom: 16px; }

.auth-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.auth-form input, .auth-form select, .auth-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-form small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-section-title {
    font-size: 14px;
    margin: 20px 0 12px;
    color: var(--text-muted);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 12px;
    cursor: pointer;
}

.terms-text {
    font-size: 12px;
    color: var(--text-muted);
    margin: 16px 0;
}

.terms-text a { color: #0066cc; }

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn { flex: 1; }

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-link a { color: var(--primary); font-weight: 600; }

/* Smember login (CellphoneS style) */
.page-login-smember .cps-footer {
    margin-top: 0;
}

.page-login-smember .auth-page--smember {
    background: #fff;
}

.auth-page--smember {
    min-height: calc(100vh - 120px);
    padding: 28px 16px 40px;
    background: #fff;
    align-items: center;
}

.auth-smember-container {
    max-width: 1060px;
    padding: 0;
}

.auth-smember-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 0;
    align-items: stretch;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    min-height: 520px;
}

.auth-smember-promo {
    padding: 8px 40px 24px 8px;
}

.auth-smember-brands {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.auth-brand-cps {
    display: inline-block;
    padding: 6px 14px 6px 12px;
    background: #d70018;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.2;
    border-radius: 6px;
    letter-spacing: -0.02em;
}

.auth-brand-cps span {
    font-style: italic;
    font-weight: 800;
}

.auth-brand-dtv {
    font-size: 20px;
    font-weight: 700;
    color: #d70018;
    letter-spacing: -0.03em;
    text-transform: lowercase;
}

.auth-smember-heading {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
    margin-bottom: 10px;
    max-width: 520px;
}

.auth-smember-heading strong {
    color: #d70018;
    font-weight: 800;
}

.auth-smember-sub {
    font-size: 15px;
    color: #333;
    margin-bottom: 22px;
    line-height: 1.45;
    max-width: 480px;
}

.auth-benefits-box {
    position: relative;
    max-width: 520px;
    margin-bottom: 0;
    padding: 22px 28px 20px;
    background: #f5f5f5;
}

.auth-benefit-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: #d70018;
    border-style: solid;
    pointer-events: none;
}

.auth-benefit-corner--tl {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
}

.auth-benefit-corner--tr {
    top: 0;
    right: 0;
    border-width: 3px 3px 0 0;
}

.auth-benefit-corner--bl {
    bottom: 0;
    left: 0;
    border-width: 0 0 3px 3px;
}

.auth-benefit-corner--br {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
}

.auth-benefits-inner {
    position: relative;
    z-index: 1;
}

.auth-benefits-list {
    list-style: none;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
}

.auth-benefits-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
}

.auth-benefits-list li:last-child {
    margin-bottom: 0;
}

.auth-benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    background: #d70018 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M8 1l1.8 3.7 4 .6-2.9 2.8.7 4L8 10.4 4.4 12.1l.7-4L2.2 5.3l4-.6L8 1z'/%3E%3C/svg%3E") center / 10px no-repeat;
    border-radius: 3px;
}

.auth-benefits-list strong {
    color: #d70018;
    font-weight: 700;
}

.auth-benefits-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #d70018;
}

.auth-benefits-link:hover {
    text-decoration: underline;
}

.auth-mascot-wrap {
    margin-top: -12px;
    text-align: center;
    max-width: 480px;
}

.auth-smember-mascot {
    display: block;
    width: 100%;
    max-width: 460px;
    height: auto;
    margin: 0 auto;
}

.auth-smember-form-wrap {
    padding: 12px 8px 24px 48px;
    border-left: 1px solid #e8e8e8;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.auth-smember-card {
    width: 100%;
    max-width: 360px;
}

.auth-smember-form-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #d70018;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.auth-form--smember .form-group {
    margin-bottom: 18px;
}

.auth-form--smember label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.auth-form--smember input {
    padding: 11px 14px;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    font-size: 14px;
    background: #fff;
}

.auth-form--smember input::placeholder {
    color: #aaa;
}

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap input {
    padding-right: 44px;
}

.auth-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #888;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-password-toggle:hover {
    color: #333;
}

.btn-smember-login {
    width: 100%;
    padding: 13px 20px;
    border: none;
    border-radius: 6px;
    background: #d70018;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 6px;
    transition: background .2s;
}

.btn-smember-login:hover {
    background: #c40016;
}

.auth-forgot {
    text-align: center;
    margin: 14px 0 22px;
    font-size: 14px;
}

.auth-forgot a {
    color: #1a73e8;
    text-decoration: none;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

.auth-social-divider {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin: 0 0 16px;
    position: relative;
}

.auth-social-divider::before,
.auth-social-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 32%;
    height: 1px;
    background: #e5e5e5;
}

.auth-social-divider::before { left: 0; }
.auth-social-divider::after { right: 0; }

.social-buttons--icons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.social-buttons--icons .btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    min-height: 48px;
    transition: border-color .2s, box-shadow .2s;
}

.social-buttons--icons .btn-social img {
    flex-shrink: 0;
}

.social-buttons--icons .btn-social:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.auth-register-line {
    text-align: center;
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
}

.auth-register-line a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-register-line a:hover {
    text-decoration: underline;
}

.auth-smember-foot {
    text-align: center;
    font-size: 12px;
    color: #999;
    line-height: 1.65;
    padding-top: 20px;
    margin-top: 8px;
    border-top: none;
}

.auth-smember-foot a {
    color: #d70018;
    font-weight: 600;
    text-decoration: none;
}

.auth-smember-foot a:hover {
    text-decoration: underline;
}

@media (max-width: 960px) {
    .auth-smember-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-smember-promo {
        padding: 16px 16px 8px;
    }

    .auth-smember-form-wrap {
        border-left: none;
        border-top: 1px solid #e8e8e8;
        padding: 28px 16px 32px;
    }

    .auth-smember-heading,
    .auth-smember-sub,
    .auth-benefits-box {
        max-width: none;
    }

    .auth-mascot-wrap {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .auth-smember-brands {
        justify-content: flex-start;
    }
}

/* Cart */
.cart-page { padding: 24px 0 48px; }

.cart-page h1 { margin-bottom: 24px; }

.empty-cart {
    text-align: center;
    padding: 64px;
    background: var(--white);
    border-radius: var(--radius);
}

.cart-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr 80px 120px 60px;
    gap: 16px;
    align-items: center;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.cart-item-info h3 { font-size: 14px; margin-bottom: 4px; }

.cart-qty-form input {
    width: 60px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.cart-item-total { font-weight: 700; color: var(--primary); }

.btn-remove {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 13px;
}

.cart-summary {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 400px;
    margin-left: auto;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 16px;
}

/* Checkout — CellphoneS payment-info style */
body.page-checkout-cps {
    background: #f3f4f6;
}

body.page-checkout-cps .float-buttons {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

.checkout-page--cps {
    padding: 12px 0 100px;
}

.checkout-container {
    max-width: 640px;
    margin: 0 auto;
}

.checkout-page-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.checkout-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    color: #333;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.checkout-page-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.checkout-steps--cps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: none;
    background: transparent;
}

.checkout-steps--cps .step {
    text-align: center;
    padding: 10px 8px 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    color: #9ca3af;
    border-bottom: 3px solid #e5e7eb;
    margin-bottom: 0;
}

.checkout-steps--cps .step.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.checkout-steps--cps a.step {
    text-decoration: none;
    color: #9ca3af;
}

.checkout-steps--cps a.step.done {
    color: #374151;
}

.checkout-steps--cps a.step.done:hover {
    color: var(--primary);
}

.checkout-alert {
    margin-bottom: 16px;
}

.checkout-card {
    background: var(--white);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 12px;
    border: 1px solid #eee;
    box-shadow: none;
}

.checkout-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #1a1a1a;
    margin: 0 0 14px;
}

.checkout-card--products {
    padding: 14px 18px;
}

.checkout-product {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-product:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.checkout-product:first-child {
    padding-top: 0;
}

.checkout-product-thumb {
    flex-shrink: 0;
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    background: #fafafa;
}

.checkout-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-product-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.checkout-product-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 4px;
}

.checkout-product-name:hover {
    color: var(--primary);
}

.checkout-variant {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.checkout-product-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.checkout-product-prices .price-current {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.checkout-product-prices .price-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

.checkout-product-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    padding-top: 4px;
}

.checkout-qty {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

.checkout-remove-form {
    margin: 0;
}

.checkout-remove-link {
    border: none;
    background: none;
    padding: 0;
    font-size: 12px;
    color: #009ee2;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
}

.checkout-customer-summary {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-customer-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.checkout-customer-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.smember-badge--checkout {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #fce7f3;
    color: #be185d;
    font-weight: 700;
}

.checkout-customer-phone {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}

.checkout-fields-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.checkout-fields-grid--2 {
    grid-template-columns: 1fr 1fr;
}

.checkout-fields-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.checkout-form .form-group {
    margin-bottom: 12px;
}

.checkout-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.checkout-input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

.checkout-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(215, 0, 24, .1);
}

.checkout-field-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 6px 0 0;
}

.checkout-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.45;
    cursor: pointer;
    margin-top: 4px;
}

.checkout-checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.delivery-toggle--cps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.delivery-option--cps {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    transition: border-color .15s, background .15s;
    margin: 0;
}

.delivery-option--cps input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.delivery-option--cps input[type="radio"]:checked {
    border-color: var(--primary);
    border-width: 6px;
    background: #fff;
}

.delivery-option--cps:has(input:checked) {
    border-color: var(--primary);
    background: #fff5f6;
}

.checkout-delivery-panel {
    margin-bottom: 4px;
}

.checkout-note-field {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.invoice-choice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.invoice-question {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #1a1a1a;
    flex: 1;
    min-width: 200px;
}

.invoice-toggle--cps {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.invoice-radio--cps {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
    color: #374151;
}

.invoice-radio--cps input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.invoice-radio--cps input[type="radio"]:checked {
    border-color: var(--primary);
    border-width: 6px;
    background: #fff;
}

.checkout-invoice-policy {
    font-size: 13px;
    line-height: 1.55;
    color: #4b5563;
    margin-bottom: 4px;
}

.checkout-invoice-policy p {
    margin: 0 0 10px;
}

.checkout-invoice-policy p:last-child {
    margin-bottom: 0;
}

.checkout-policy-link {
    color: #009ee2;
    font-weight: 600;
    text-decoration: none;
}

.checkout-policy-link:hover {
    text-decoration: underline;
}

.checkout-invoice-fields {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.checkout-invoice-note {
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
    margin: 12px 0 0;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.checkout-sticky-bar--cps {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: #fff;
    border-top: 2px solid #fecaca;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
}

.checkout-sticky-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.checkout-sticky-total {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.checkout-sticky-label {
    font-size: 13px;
    color: #4b5563;
}

.checkout-sticky-amount {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.checkout-sticky-btn {
    flex-shrink: 0;
    min-width: 140px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-transform: none;
}

/* Payment step (cart/payment) */
.payment-page--cps {
    padding-bottom: 100px;
}

.checkout-card--coupon {
    padding: 14px 16px;
}

.coupon-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.coupon-input-row .coupon-input {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.coupon-apply-btn {
    flex-shrink: 0;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
}

.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
}

.coupon-applied-code {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #166534;
}

.coupon-applied-label {
    display: block;
    font-size: 12px;
    color: #15803d;
}

.coupon-remove-form {
    margin: 0;
}

.coupon-remove-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
}

.coupon-picker-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #009ee2;
    border-radius: 8px;
    font-size: 13px;
    color: #009ee2;
    cursor: pointer;
    text-align: left;
}

.coupon-picker-trigger.is-open .coupon-picker-chevron {
    transform: rotate(90deg);
}

.coupon-picker-chevron {
    font-size: 18px;
    transition: transform .2s;
}

.coupon-picker-panel {
    margin-top: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.coupon-picker-item {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.coupon-picker-item:last-child {
    border-bottom: none;
}

.coupon-picker-item-btn {
    display: block;
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
}

.coupon-picker-item-btn:hover {
    background: #f9fafb;
}

.coupon-picker-item-btn strong {
    display: block;
    color: var(--primary);
    margin-bottom: 2px;
}

.coupon-picker-item-btn span {
    color: #6b7280;
    font-size: 12px;
}

.order-summary--cps .summary-line {
    padding: 6px 0;
}

.order-summary-vat-note {
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0 0;
}

.summary-free {
    color: #16a34a;
    font-weight: 500;
}

.payment-method-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s;
}

.payment-method-picker:hover {
    border-color: #d1d5db;
}

.payment-method-picker-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9ff;
    border-radius: 8px;
}

.payment-method-picker-body {
    flex: 1;
    min-width: 0;
}

.payment-method-picker-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.payment-method-picker-title.is-selected {
    color: #1a1a1a;
}

.payment-method-picker-hint {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.payment-method-picker-chevron {
    flex-shrink: 0;
    font-size: 22px;
    color: var(--primary);
    line-height: 1;
}

.checkout-recap-list {
    margin: 0;
}

.checkout-recap-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.checkout-recap-row:last-child {
    border-bottom: none;
}

.checkout-recap-row dt {
    color: #6b7280;
    font-weight: 400;
    margin: 0;
    flex-shrink: 0;
}

.checkout-recap-row dd {
    margin: 0;
    text-align: right;
    color: #1a1a1a;
    font-weight: 500;
}

.checkout-checkbox--terms span {
    font-size: 13px;
    line-height: 1.5;
}

.checkout-terms-note {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.5;
    margin: 10px 0 0;
    padding-left: 28px;
}

.checkout-review-link-wrap {
    text-align: center;
    margin: 8px 0 0;
}

.checkout-review-link {
    font-size: 13px;
    color: #009ee2;
    font-weight: 600;
    text-decoration: none;
}

.checkout-review-link:hover {
    text-decoration: underline;
}

body.page-payment-cps .payment-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 400;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

body.page-payment-cps .payment-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

@media (min-width: 640px) {
    body.page-payment-cps .payment-modal-overlay {
        align-items: center;
        padding: 20px;
    }
}

body.page-payment-cps .payment-modal {
    width: 100%;
    max-width: 640px;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
}

@media (min-width: 640px) {
    body.page-payment-cps .payment-modal {
        border-radius: 16px;
        max-height: min(90vh, 680px);
    }
}

.payment-modal-close {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

@media (max-width: 768px) {
    body.page-checkout-cps {
        padding-bottom: calc(88px + 56px + env(safe-area-inset-bottom, 0px));
    }

    .checkout-sticky-bar--cps {
        bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }

    .checkout-fields-grid--2,
    .checkout-fields-grid--3 {
        grid-template-columns: 1fr;
    }

    .delivery-toggle--cps {
        grid-template-columns: 1fr;
    }

    .checkout-product {
        flex-wrap: wrap;
    }

    .checkout-product-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-top: 8px;
        border-top: 1px dashed #eee;
        margin-top: 4px;
    }

    .checkout-sticky-inner {
        flex-wrap: wrap;
    }

    .checkout-sticky-btn {
        width: 100%;
        min-width: 0;
    }
}

.order-summary .summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-line.discount span:last-child { color: var(--primary); }

.summary-line.total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 16px;
}

.payment-methods { display: flex; flex-direction: column; gap: 8px; }

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
}

.payment-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-light);
}

.sticky-total strong { color: var(--primary); font-size: 18px; }

.order-complete {
    padding: 48px 16px;
    text-align: center;
}

.success-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.success-box h1 { color: var(--primary); margin-bottom: 12px; }

/* Payment method modal */
.checkout-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.payment-select-page .payment-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.payment-select-page .payment-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.payment-modal {
    background: var(--white);
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    max-height: min(90vh, 680px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
}

.payment-modal-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.payment-modal-header h2 { font-size: 16px; font-weight: 700; }

.payment-modal-close { color: var(--primary); font-size: 14px; font-weight: 600; }

.payment-modal-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.payment-modal-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.payment-modal-label {
    flex-shrink: 0;
    padding: 12px 20px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .04em;
}

.payment-modal-list {
    flex: 1;
    min-height: 120px;
    max-height: 42vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 16px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.payment-modal-list::-webkit-scrollbar {
    width: 6px;
}

.payment-modal-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.payment-modal-footer {
    flex-shrink: 0;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border);
    background: var(--white);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, .06);
}

.payment-modal-footer .btn {
    min-height: 48px;
    font-size: 15px;
    font-weight: 600;
}

.payment-modal-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.payment-modal-option:hover {
    border-color: #ccc;
    background: #fafafa;
}

.payment-modal-option:has(input:checked) {
    border-color: var(--primary);
    background: #fff5f5;
}

.payment-modal-option input[type="radio"] {
    flex-shrink: 0;
    accent-color: var(--primary);
}

.payment-modal-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-modal-icon img {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.payment-modal-option-body {
    flex: 1;
    min-width: 0;
}

.payment-modal-option-body strong { display: block; font-size: 14px; margin-bottom: 4px; }

.payment-modal-option-body small { font-size: 12px; color: var(--text-muted); line-height: 1.4; }

.payment-modal-footer .btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.pay-qr-image-custom {
    width: 280px;
    height: 280px;
    object-fit: contain;
}

.checkout-customer-card .checkout-customer-name {
    font-size: 18px;
    text-transform: uppercase;
}

.smember-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #e91e63, #f48fb1);
    border-radius: 4px;
    vertical-align: middle;
}

.checkout-customer-head { margin-bottom: 12px; }


.pay-method-logo {
    display: block;
    max-width: 120px;
    max-height: 48px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.pay-gateway-info {
    text-align: left;
    background: #f5f5f5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.pay-page { background: #f5f5f5; min-height: 60vh; padding-bottom: 48px; }

.pay-notice {
    background: #fff8e1;
    color: #c62828;
    text-align: center;
    padding: 12px 16px;
    font-size: 13px;
}

.pay-container { max-width: 640px; padding-top: 24px; }

.pay-container--card {
    max-width: 980px;
    padding-top: 20px;
}

.pay-timer { font-size: 14px; color: var(--primary); margin-bottom: 16px; }

.pay-timer-center { text-align: center; }

.pay-qr-box {
    background: var(--white);
    border: 2px solid #7ec8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.pay-qr-box h2 { font-size: 14px; margin-bottom: 12px; }

.pay-bank-info {
    background: var(--white);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.btn-copy {
    background: #333;
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 8px;
}

.btn-pay-confirm {
    width: 100%;
    background: #e91e63;
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
}

.pay-card-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 20px;
    align-items: start;
}

.pay-card-form-wrap {
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.pay-gateway-bar {
    background: #f5f5f5;
    border-bottom: 1px solid #e8e8e8;
    padding: 14px 20px;
}

.pay-gateway-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pay-gateway-bar .pay-logo {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    font-style: italic;
}

.pay-gateway-bar .pay-logo span { color: var(--primary); }

.pay-hotline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.pay-method-panel-title {
    background: #f0f0f0;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e5e5e5;
}

.pay-method-block {
    border-bottom: 1px solid #eee;
}

.pay-method-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    flex-wrap: wrap;
}

.pay-method-radio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: default;
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

.pay-method-radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pay-method-radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid #1a73e8;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.pay-method-radio input:checked + .pay-method-radio-mark::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #1a73e8;
    border-radius: 50%;
}

.pay-card-brands {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pay-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .02em;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
}

.pay-brand--visa {
    color: #1a1f71;
    border-color: #c5cae9;
}

.pay-brand--mc {
    width: 32px;
    padding: 0;
    background: linear-gradient(90deg, #eb001b 45%, #f79e1b 55%);
    border: none;
    font-size: 0;
}

.pay-brand--amex {
    background: #006fcf;
    color: #fff;
    border: none;
}

.pay-brand--jcb {
    background: linear-gradient(90deg, #0b4ea2, #c41230 50%, #007b40);
    color: #fff;
    border: none;
    font-size: 8px;
}

.pay-brand--up {
    font-size: 8px;
    color: #c41e3a;
}

.pay-method-block-body {
    padding: 0 20px 20px;
    border-top: 1px solid #f0f0f0;
}

.pay-card-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.pay-card-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    font-family: inherit;
    margin-bottom: -1px;
}

.pay-card-tab.is-active {
    color: #1a1a1a;
    border-bottom-color: #1a1a1a;
    font-weight: 600;
}

.pay-card-tab:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.card-pay-form {
    max-width: 100%;
}

.opay-field {
    margin-bottom: 18px;
}

.opay-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.opay-field label .req {
    color: #d32f2f;
    margin-left: 2px;
}

.opay-cvv-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-left: 4px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #555;
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    vertical-align: middle;
}

.opay-input-wrap {
    position: relative;
}

.opay-input {
    width: 100%;
    padding: 12px 44px 12px 14px;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.opay-input:hover {
    border-color: #999;
}

.opay-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, .12);
}

.opay-input-wrap .opay-input {
    padding-right: 48px;
}

.opay-input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9e9e9e;
    pointer-events: none;
}

.opay-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.opay-field-row .opay-field {
    margin-bottom: 0;
}

.opay-field-row .opay-input {
    padding-right: 14px;
}

.opay-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
    cursor: pointer;
}

.opay-privacy input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: #1a73e8;
}

.opay-privacy a {
    color: #1a73e8;
    text-decoration: none;
}

.opay-privacy a:hover {
    text-decoration: underline;
}

.opay-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding-top: 4px;
}

.opay-help-link {
    font-size: 14px;
    color: #1a73e8;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.opay-help-link:hover {
    text-decoration: underline;
}

.opay-cvv-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 4px;
    padding: 0;
    border: 1px solid #9ca3af;
    border-radius: 50%;
    background: #fff;
    color: #6b7280;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
}

.opay-cvv-hint:hover {
    border-color: #1a73e8;
    color: #1a73e8;
}

/* OnePay — modal hướng dẫn thẻ & điều khoản */
.opay-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
}

.opay-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.opay-modal-overlay[hidden] {
    display: none;
}

.opay-modal-overlay.is-open[hidden] {
    display: flex;
}

.opay-modal {
    background: #fff;
    width: 100%;
    max-width: 960px;
    max-height: min(92vh, 720px);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
}

.opay-modal--policy {
    max-width: 640px;
}

.opay-modal-head {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.opay-modal-head h2 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.opay-modal-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
}

.opay-modal-close:hover {
    color: #1a1a1a;
}

.opay-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 20px;
    -webkit-overflow-scrolling: touch;
}

.opay-modal-body--guide {
    padding: 20px;
}

.opay-modal-foot {
    flex-shrink: 0;
    padding: 12px 20px 20px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.btn-opay-modal-close {
    min-width: 120px;
    padding: 10px 32px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #1a73e8;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-opay-modal-close:hover {
    background: #1558b0;
}

.pay-cancel-form-hidden {
    display: none;
}

.opay-modal-overlay--confirm {
    z-index: 600;
}

.opay-modal--cancel-confirm {
    max-width: 400px;
    border-radius: 4px;
    position: relative;
    text-align: center;
}

.opay-modal-close--corner {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 1;
}

.opay-cancel-confirm-body {
    padding: 32px 28px 28px;
}

.opay-cancel-confirm-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px;
    text-transform: none;
    letter-spacing: 0;
}

.opay-cancel-confirm-text {
    font-size: 14px;
    line-height: 1.55;
    color: #374151;
    margin: 0 0 24px;
}

.opay-cancel-confirm-text strong {
    font-weight: 700;
    color: #1a1a1a;
}

.btn-opay-cancel-confirm {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 0 auto 16px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #1a73e8;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

.btn-opay-cancel-confirm:hover {
    background: #1558b0;
}

.opay-cancel-dismiss {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 4px;
    font-size: 14px;
    color: #1a73e8;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.opay-cancel-dismiss:hover {
    text-decoration: underline;
}

.card-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
}

.card-guide-col {
    font-size: 12px;
    line-height: 1.55;
    color: #374151;
}

.card-guide-text {
    margin: 0 0 12px;
}

.card-guide-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin: 0 auto;
}

.card-guide-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 24px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.card-guide-empty code {
    font-size: 12px;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

.onepay-policy-text {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

@media (max-width: 768px) {
    .card-guide-grid {
        grid-template-columns: 1fr;
    }

    .opay-modal-head h2 {
        font-size: 13px;
    }
}

.btn-opay-submit {
    min-width: 140px;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    background: #bdbdbd;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s ease;
}

.btn-opay-submit:not(:disabled) {
    background: #1a73e8;
}

.btn-opay-submit:not(:disabled):hover {
    background: #1557b0;
}

.btn-opay-submit:disabled {
    cursor: not-allowed;
}

.pay-cancel-form--bar {
    padding: 12px 20px 16px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.pay-order-sidebar {
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    padding: 20px;
    height: fit-content;
}

.pay-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

.pay-timer--sidebar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 6px 12px;
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 16px;
}

.pay-order-dl {
    font-size: 13px;
    line-height: 1.5;
}

.pay-order-dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pay-order-dl dt {
    color: #666;
    font-weight: 400;
}

.pay-order-dl dd {
    font-weight: 600;
    color: #222;
    text-align: right;
}

.pay-order-dl--amount dd {
    font-size: 20px;
    font-weight: 700;
    color: #1565c0;
}

.order-status-banner {
    display: flex;
    gap: 16px;
    background: linear-gradient(135deg, #fff8e1, #fff3e0);
    border: 1px solid #ffe082;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.order-status-banner h1 { font-size: 18px; color: #e65100; }

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.text-primary { color: var(--primary) !important; }

.order-processing-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* Footer (CellphoneS style) */
.cps-footer {
    background: #f4f6f8;
    border-top: 1px solid var(--border);
    padding: 32px 0 20px;
    margin-top: 32px;
}

.cps-footer-top {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #dde1e6;
}

.cps-footer-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--text);
}

.cps-footer-hotline {
    list-style: none;
    margin-bottom: 20px;
}

.cps-footer-hotline li {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.5;
}

.cps-footer-hotline strong {
    color: var(--text);
    font-size: 15px;
}

.cps-footer-hotline span {
    font-size: 12px;
}

.cps-footer-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.cps-footer-payments img {
    height: 28px;
    width: auto;
    background: var(--white);
    border-radius: 4px;
    padding: 2px 6px;
    border: 1px solid #e8e8e8;
}

.cps-footer-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.45;
}

.cps-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cps-newsletter-form input[type="email"],
.cps-newsletter-form input[type="tel"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}

.cps-newsletter-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
}

.cps-newsletter-check input {
    margin-top: 2px;
    flex-shrink: 0;
}

.cps-newsletter-btn {
    width: 100%;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.cps-footer-links {
    list-style: none;
}

.cps-footer-links a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0;
    line-height: 1.35;
}

.cps-footer-links a:hover {
    color: var(--primary);
}

.cps-footer-app-title {
    font-size: 12px;
    font-weight: 600;
    margin: 16px 0 10px;
    line-height: 1.4;
}

.cps-footer-app {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cps-footer-qr {
    width: 72px;
    height: 72px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.cps-footer-store-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cps-store-badge {
    display: inline-block;
    padding: 8px 14px;
    background: #1a1a1a;
    color: var(--white);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.cps-footer-social {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.cps-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.cps-footer-social a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cps-footer-partners {
    list-style: none;
}

.cps-footer-partners li {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.4;
}

.cps-footer-partners strong {
    display: block;
    color: var(--primary);
    font-size: 13px;
    margin-bottom: 2px;
}

.cps-footer-partners span {
    color: var(--text-muted);
}

.cps-footer-seo {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 4px;
    padding: 20px 0;
    border-bottom: 1px solid #dde1e6;
}

.cps-footer-seo a {
    font-size: 12px;
    color: var(--text-muted);
    padding-right: 8px;
    border-right: 1px solid #ccc;
    margin-right: 4px;
    line-height: 1.6;
}

.cps-footer-seo a:last-child {
    border-right: none;
}

.cps-footer-seo a:hover {
    color: var(--primary);
}

.cps-footer-legal {
    padding-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

.cps-footer-copy {
    margin-top: 8px;
}

/* Float buttons */
.float-buttons {
    position: fixed;
    bottom: 80px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 40;
}

.float-btn {
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
}

.float-top { background: #1a1a1a; color: var(--white); }
.float-contact { background: var(--primary); color: var(--white); }

/* Responsive */
@media (max-width: 992px) {
    .phone-tablet-layout {
        grid-template-columns: 1fr;
    }

    .phone-tablet-promo {
        flex-direction: row;
    }

    .phone-tablet-promo-link {
        flex: 1;
    }

    .pt-subfilter {
        max-width: calc(50% - 4px);
        flex: 1 1 45%;
    }

    .pt-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cps-footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid { grid-template-columns: 1fr; }
    .home-category-mega, .hero-sidebar { display: none; }
    .mega-panel-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-tab-img { height: 28px; }
    .showcase-tab { min-height: 48px; padding: 8px 6px; }
    .showcase-panel.active .product-card { flex: 0 0 168px; width: 168px; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .product-gallery .main-image {
        min-height: 280px;
        aspect-ratio: auto;
        max-height: none;
    }
    .product-commitments-strip { grid-template-columns: 1fr; }
    .action-buttons--cps {
        grid-template-columns: 1fr 1fr;
    }
    .btn-add-cart-icon { grid-column: 2; }
    .price-box--cps { flex-direction: column; }
    .commitment-grid { grid-template-columns: repeat(2, 1fr); }
    .cart-item { grid-template-columns: 60px 1fr; }
    .pay-card-layout { grid-template-columns: 1fr; }
    .opay-field-row { grid-template-columns: 1fr; }
    .pay-method-block-head { flex-direction: column; align-items: flex-start; }
    .promo-duo-grid { grid-template-columns: 1fr; }
}

/* Mobile / CellphoneS-style */
.header-mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }

    .header-desktop-only {
        display: none !important;
    }

    .logo-mark.header-mobile-only {
        display: flex !important;
    }

    .location-select--mobile.header-mobile-only {
        display: flex !important;
    }

    .header-mobile-promos.header-mobile-only {
        display: block !important;
    }

    .main-header {
        padding: 0;
    }

    .header-utility-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 6px 12px;
    }

    .header-utility-marquee {
        flex: 1 1 100%;
        max-width: 100%;
        order: 1;
    }

    .header-utility-nav {
        flex: 1 1 100%;
        order: 2;
        justify-content: space-between;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    .header-utility-nav::-webkit-scrollbar {
        display: none;
    }

    .header-utility-link {
        font-size: 11px;
    }

    .header-utility-msg {
        padding: 0 16px;
    }

    .header-inner {
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        grid-template-rows: auto;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        flex-wrap: nowrap;
    }

    .logo--desktop {
        display: none !important;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        background: var(--white);
        border-radius: 8px;
        flex-shrink: 0;
    }

    .logo-mark-s {
        color: var(--primary);
        font-size: 20px;
        font-weight: 800;
        font-style: italic;
        line-height: 1;
    }

    .header-search-wrap {
        grid-column: 2;
        min-width: 0;
    }

    .search-form {
        border-radius: 999px;
        order: unset;
        width: auto;
        flex: none;
    }

    .search-form input {
        padding: 9px 6px 9px 0;
        font-size: 13px;
    }

    .search-form-submit {
        width: 36px;
        height: 36px;
        padding: 0;
        margin-right: 4px;
        border-radius: 50%;
        background: transparent;
        color: transparent;
        position: relative;
        overflow: hidden;
    }

    .search-submit-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .location-select--mobile {
        flex-direction: column;
        align-items: center;
        gap: 0;
        background: transparent;
        padding: 0 2px;
        max-width: 52px;
        min-width: 0;
    }

    .location-select--mobile .location-name {
        font-size: 9px;
        font-weight: 600;
        line-height: 1.2;
        max-width: 52px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
    }

    .location-pin {
        display: flex;
        color: var(--white);
    }

    .header-cart--icon {
        background: transparent;
        padding: 4px;
        min-width: 36px;
        justify-content: center;
    }

    .header-cart-label {
        display: none;
    }

    .header-cart-icon {
        display: flex;
        color: var(--white);
    }

    .header-cart--icon .cart-badge {
        top: 0;
        right: 0;
    }

    .header-mobile-promos {
        padding: 0 0 8px;
        overflow: hidden;
    }

    .header-mobile-promos-scroll {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 0 12px 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .header-mobile-promos-scroll::-webkit-scrollbar {
        display: none;
    }

    .header-promo-chip {
        flex: 0 0 auto;
        padding: 6px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .18);
        color: var(--white);
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
    }

    .header-promo-chip:active {
        background: rgba(255, 255, 255, .28);
    }

    .hero-section {
        padding: 8px 0 0;
    }

    .hero-section .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .hero-sub-banners--desktop,
    .promo-gif-section--desktop {
        display: none !important;
    }

    .banner-slider {
        border-radius: 10px;
        aspect-ratio: 16 / 7;
    }

    .banner-nav {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .banner-tabs span {
        font-size: 10px;
        padding: 8px 6px;
    }

    .phone-tablet-promo,
    .watch-audio-section .watch-audio-promo {
        display: none !important;
    }

    .phone-tablet-layout,
    .watch-audio-section .phone-tablet-layout {
        grid-template-columns: 1fr;
    }

    .pt-products-grid--scroll .cps-product-card {
        flex: 0 0 168px;
        width: 168px;
    }

    .promo-week-section--huawei-week .cps-products-row .cps-product-card {
        flex: 0 0 172px;
        width: 172px;
        max-width: 172px;
    }

    .promo-week-section--huawei-week .promo-week-products-wrap {
        padding-left: 40px;
        padding-right: 40px;
    }

    .promo-duo-section {
        display: none !important;
    }

    .float-buttons {
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .pt-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .cps-footer-top {
        grid-template-columns: 1fr;
    }

    .phone-tablet-promo {
        flex-direction: column;
    }

    .pt-subfilter {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .pt-brands {
        flex-wrap: wrap;
    }

    .pt-see-all {
        width: 100%;
        text-align: right;
    }

    .mega-menu {
        flex-direction: column;
        min-height: auto;
        max-height: calc(100vh - 100px);
    }

    .mega-menu-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 180px;
    }

    .mega-panel-grid {
        grid-template-columns: 1fr;
    }

    .province-list {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .sub-banner-grid {
        grid-template-columns: 1fr;
    }

    .delivery-toggle {
        grid-template-columns: 1fr;
    }
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 180;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .08);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 2px;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 10px;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
}

.mobile-nav-item.is-active {
    color: var(--primary);
}

.mobile-nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
}

.mobile-nav-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.mobile-nav-label {
    line-height: 1.2;
}
