.topsale {
    background: #ff38d3;
}
.shopwidth {
    width: 1188px;
    margin: 0 auto;
}
.toplinks-bar {
    background: rgba(0, 0, 0, .03);
    height: 25px;
    min-width: 1006px;
    position: relative;
    text-align: right;
    transition: height .25s linear, zIndex 0s linear .25s;
    z-index: 310;
}

.toplinks-bar .shopwidth .toplinks-item {
    color: #9e9e9e;
    cursor: pointer;
    display: inline-block;
    font-size: 12px;
    height: 25px;
    line-height: 25px;
    padding: 0 17px;
    position: relative;
    text-align: left;
    transition: color .2s;
    white-space: nowrap;
}
.toplinks-bar .shopwidth .toplinks-item > a {
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s;
    color: #0f1568;
}
.toplinks-bar .shopwidth .toplinks-item > a:hover{
    color: #f36d00;
}

/***
 * 
 * Top Search
 * 
 * ***/
 .cart-icon {
    display: block;
    width: 32px;
    height: 32px;
    background: no-repeat center / contain url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23212121' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2 3h3l2.7 12.4a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.5-1.1L21 8H6'/%3E%3C/svg%3E);
}

/* ===== Top search bar - phong cách Lazada ===== */
:root {
    --ts-orange: #f57224;
    --ts-orange-dark: #e0620f;
    --ts-orange-soft: #fff3ec;
    --ts-text: #212121;
    --ts-muted: #9e9e9e;
    --ts-border: #e8e8e8;
}

.topsearch {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid var(--ts-border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    position: relative;
    z-index: 100;
}


/* Phần nội dung 988px, bên phải 200px để trống */
.shopwidth-short988 {
    width: 988px;
    flex: 0 0 988px;
    display: flex;
    align-items: center;
    gap: 28px;
    box-sizing: border-box;
}

.shopwidth-empty {
    flex: 1 1 auto;
    min-width: 0;
}

/* ----- Logo ----- */
.topsearch-logo {
    flex: 0 0 auto;
}

.topsearch-logo a {
    display: flex;
    align-items: center;
}

.topsearch-logo img {
    display: block;
    height: 90px;
    /*width: auto;
    max-width: 180px;*/
    object-fit: contain;
}

/* ----- Ô tìm kiếm ----- */
.topsearch-form {
    flex: 1 1 auto;
    min-width: 0;
}

.topsearch-form form {
    display: flex;
    align-items: stretch;
    height: 44px;
    margin: 0;
    /*border: 1px solid var(--ts-border);*/
    /*border-radius: 4px;*/
    background: #fff;
    overflow: hidden;
    /*transition: border-color .2s, box-shadow .2s;*/
}

/*.topsearch-form form:hover {
    border-color: #d5d5d5;
}*/

/*.topsearch-form form:focus-within {
    border-color: var(--ts-orange);
    box-shadow: 0 0 0 3px rgba(245, 114, 36, .15);
}*/

.topsearch-text {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 16px;
    border: none !important;
    outline: 0;
    background: #eff0f5 !important;
    font-size: 15px;
    color: #212121 !important;
    font-family: inherit;
    height: 43px !important;
    border-radius: 0 !important;
}

.topsearch-text::placeholder {
    color: var(--ts-muted);
}

.topsearch-search {
    flex: 0 0 64px;
    border: 0;
    outline: 0;
    cursor: pointer;
    background: #f57224;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}

/*.topsearch-search:hover,
.topsearch-search:focus-visible {
    background: var(--ts-orange);
    color: #fff;
}*/

.topsearch-search:active {
    background: var(--ts-orange-dark);
}

/* ----- Giỏ hàng ----- */
.topsearch-cart {
    flex: 0 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s;
}

.topsearch-cart:hover {
    background: var(--ts-orange-soft);
}

.cart-icon {
    display: block;
    width: 28px;
    height: 28px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* Icon giỏ hàng (SVG nhúng) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f57224' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.6'/%3E%3Ccircle cx='18' cy='20' r='1.6'/%3E%3Cpath d='M2 3h3l2.7 12.4a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.5-1.1L21 8H6'/%3E%3C/svg%3E");
}

/* Huy hiệu số lượng (nếu thêm <span class="cart-count">3</span>) */
.topsearch-cart .cart-count {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 9px;
    background: var(--ts-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

/* ----- Responsive ----- */
@media (max-width: 1200px) {
    .shopwidth-short988 {
        width: 100%;
        flex-basis: 100%;
        padding: 0 16px;
    }
    .shopwidth-empty {
        display: none;
    }
}

@media (max-width: 640px) {
    .shopwidth {
        height: 64px;
    }
    .shopwidth-short988 {
        gap: 12px;
        padding: 0 10px;
    }
    .topsearch-logo img {
        height: 32px;
    }
    .topsearch-form form {
        height: 38px;
    }
    .topsearch-search {
        flex-basis: 48px;
    }
}


/***
 * topslide
***/
.topslide{background:#eff0f5;padding:0}
.topslide .shopwidth{width:1188px;max-width:100%;height:auto;margin:0 auto;display:flex;align-items:stretch}
.topslide .shopwidth-short988{flex:0 0 988px;width:988px;min-width:0}
.topslide .shopwidth-short200{
    flex:0 0 200px;
    width:200px;
    box-sizing:border-box;
    padding-left:8px;
    display:flex;
    flex-direction:column;
    gap:8px;
    min-height: 344px;
}
.topslide .shopwidth-short200 img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ts-side{flex:1 1 0;display:block;border-radius:4px;overflow:hidden;background:#fff}
.ts-side img{display:block;width:100%;height:100%;object-fit:cover}

.ts-slider{position:relative;width:988px;height:344px;border-radius:4px;overflow:hidden;background:#ddd;user-select:none}
.ts-slide{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden;transition:opacity .4s,visibility .4s}
.ts-slide.active{opacity:1;visibility:visible;z-index:1}
.ts-slide a,.ts-slide img{display:block;width:100%;height:100%;object-fit:cover}

.ts-dots{position:absolute;left:0;right:0;bottom:10px;z-index:5;display:flex;justify-content:center;gap:6px}
.ts-dot{width:9px;height:9px;border-radius:50%;background:#fff;opacity:.8;cursor:pointer;box-shadow:0 0 3px rgba(0,0,0,.5);transition:width .2s,background .2s}
.ts-dot.active{width:24px;border-radius:5px;background:#f57224;opacity:1}

.ts-nav{position:absolute;top:0;bottom:0;width:64px;z-index:5;display:flex;align-items:center;cursor:pointer;opacity:0;transition:opacity .15s}
.ts-prev{left:0}
.ts-next{right:0;justify-content:flex-end}
.ts-slider:hover .ts-nav{opacity:1}
.ts-nav i{display:block;width:36px;height:60px;background:rgba(0,0,0,.4);transition:background .15s}
.ts-nav:hover i{background:rgba(0,0,0,.7)}
.ts-nav i:after{content:"";display:block;width:12px;height:12px;margin:24px 0 0 14px;border-top:3px solid #fff;border-right:3px solid #fff}
.ts-prev i{border-radius:0 4px 4px 0}
.ts-prev i:after{transform:rotate(-135deg);margin-left:16px}
.ts-next i{border-radius:4px 0 0 4px}
.ts-next i:after{transform:rotate(45deg);margin-left:8px}

@media (max-width:1200px){
.topslide .shopwidth-short200{display:none}
.topslide .shopwidth-short988{flex-basis:100%;width:100%}
.ts-slider{width:100%;height:auto;aspect-ratio:988/344}
}
/***
 * topslide - end
***/


/***
 * topbrands
***/
.topbrands{background:#eff0f5;padding:15px 0}
.topbrands .shopwidth{width:1188px;max-width:100%;height:auto;margin:0 auto;display:block}

.tb-cards{display:flex;gap:12px}
.tb-card{position:relative;flex:1 1 0;min-width:0;height:134px;box-sizing:border-box;padding:18px 160px 0 16px;background:#fff;border-radius:4px;overflow:hidden;text-decoration:none;color:#212121;transition:box-shadow .2s,transform .2s}
.tb-card:hover{box-shadow:0 4px 14px rgba(0,0,0,.12)}
.tb-title{display:block;font-size:17px;font-weight:700;line-height:24px;margin-bottom:10px}
.tb-desc{display:block;font-size:14px;line-height:20px;color:#424242}
.tb-card img{position:absolute;right:10px;bottom:0;width:140px;height:112px;object-fit:contain;object-position:right bottom}

.tb-banner{display:block;margin-top:24px;height:140px;border-radius:4px;overflow:hidden;background:#ddd}
.tb-banner img{display:block;width:100%;height:100%;object-fit:cover}

@media (max-width:1200px){
.topbrands .shopwidth{padding:0 12px;box-sizing:border-box}
}
@media (max-width:720px){
.tb-cards{flex-direction:column}
.tb-banner{height:auto;aspect-ratio:1188/140}
}
/***
 * topbrands - end
***/


/***
 * topflash
***/
.topflash{background:#eff0f5;padding:0 0 20px}
.topflash .shopwidth{width:1188px;max-width:100%;height:auto;margin:0 auto;display:block}
.tf-title{margin:0;padding:6px 0 12px;font-size:22px;font-weight:400;line-height:30px;color:#424242}

.tf-box{background:#fff;border-radius:2px}
.tf-head{display:flex;align-items:center;height:60px;padding:0 24px 0 20px;border-bottom:1px solid #eee}
.tf-now{font-size:14px;color:#f57224;margin-right:64px}
.tf-end{font-size:14px;color:#424242;margin-right:16px}
.tf-time{display:flex;align-items:center;gap:8px}
.tf-time b{display:block;min-width:40px;height:32px;line-height:32px;text-align:center;background:#d32027;color:#fff;font-size:18px;font-weight:700;border-radius:2px}
.tf-time i{font-style:normal;font-weight:700;color:#424242}
.tf-range{margin-left:20px;font-size:12px;color:#9e9e9e}
.tf-time b{padding:0 6px;box-sizing:border-box}
.tf-all{margin-left:auto;display:block;height:36px;line-height:34px;padding:0 10px;box-sizing:border-box;border:1px solid #f57224;border-radius:2px;color:#f57224;font-size:14px;text-decoration:none;text-transform:uppercase;transition:background .2s,color .2s}
.tf-all:hover{background:#f57224;color:#fff}

.tf-list{display:flex;gap:12px;padding-bottom:10px}
.tf-item{display:block;flex:1 1 0;min-width:0;text-decoration:none;color:#212121;background:#fff;padding-bottom:10px;transition:box-shadow .2s}
.tf-item:hover{box-shadow:0 2px 10px rgba(0,0,0,.18)}
.tf-img{display:block;width:100%;aspect-ratio:1/1;background:#f2f2f2;overflow:hidden}
.tf-img img{display:block;width:100%;height:100%;object-fit:cover}
.tf-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:10px 8px 6px;height:40px;font-size:14px;line-height:20px;word-break:break-word}
.tf-price{display:block;margin:0 8px;font-size:20px;line-height:28px;color:#f57224}
.tf-old{display:flex;align-items:center;gap:6px;margin:2px 8px 0;font-size:12px;line-height:18px;color:#9e9e9e}
.tf-old s{color:#9e9e9e}
.tf-old span{color:#424242}

@media (max-width:1200px){
.topflash .shopwidth{padding:0 12px;box-sizing:border-box}
.tf-list{overflow-x:auto;padding:0 0 10px}
.tf-item{flex:0 0 160px}
}
@media (max-width:640px){
.tf-head{height:auto;flex-wrap:wrap;gap:8px;padding:10px 12px}
.tf-now{margin-right:12px}
.tf-all{margin-left:0}
}
/***
 * topflash - end
***/



/***
 * TopJustForYo
***/
.topjfy{background:#eff0f5;padding:0 0 32px}
.topjfy .shopwidth{width:1188px;max-width:100%;height:auto;margin:0 auto;display:block}
.tj-title{margin:0;padding:6px 0 12px;font-size:22px;font-weight:400;line-height:30px;color:#424242}

.tj-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:20px 12px}
.tj-item{display:block;min-width:0;background:#fff;color:#212121;text-decoration:none;padding-bottom:12px;transition:box-shadow .2s}
.tj-item:hover{box-shadow:0 2px 10px rgba(0,0,0,.18)}
.tj-hide{display:none}
.tj-new{animation:tjIn .45s ease both}
@keyframes tjIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

.tj-img{display:block;width:100%;aspect-ratio:1/1;background:#f2f2f2;overflow:hidden}
.tj-img img{display:block;width:100%;height:100%;object-fit:cover}
.tj-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:10px 8px 4px;height:36px;font-size:14px;line-height:18px;word-break:break-word}
.tj-badge{display:inline-block;margin-right:5px;padding:0 4px;background:#d0121b;color:#fff;font-size:11px;font-weight:700;line-height:16px;border-radius:2px;vertical-align:1px}
.tj-price{display:block;margin:0 8px;font-size:18px;line-height:26px;color:#f57224}
.tj-price small{margin-left:6px;font-size:12px;color:#424242}
.tj-rate{display:flex;align-items:center;margin:2px 8px 0;font-size:12px;line-height:18px;color:#9e9e9e}
.tj-stars{position:relative;display:inline-block;margin-right:3px;color:#ddd;letter-spacing:1px;white-space:nowrap}
.tj-stars i{position:absolute;left:0;top:0;overflow:hidden;color:#ffb400;font-style:normal;white-space:nowrap}

.tj-more{display:flex;justify-content:center;margin-top:28px}
.tj-btn{min-width:300px;height:44px;padding:0 24px;box-sizing:border-box;background:#fff;border:1px solid #f57224;border-radius:2px;color:#f57224;font-size:15px;cursor:pointer;transition:background .2s,color .2s}
.tj-btn:hover{background:#f57224;color:#fff}
.tj-btn.loading{pointer-events:none;opacity:.75}
.tj-btn.loading:before{content:"";display:inline-block;width:12px;height:12px;margin:0 8px -1px 0;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:tjSpin .7s linear infinite}
@keyframes tjSpin{to{transform:rotate(360deg)}}

@media (max-width:1200px){
.topjfy .shopwidth{padding:0 12px;box-sizing:border-box}
.tj-grid{grid-template-columns:repeat(5,1fr)}
}
@media (max-width:960px){.tj-grid{grid-template-columns:repeat(4,1fr)}}
@media (max-width:640px){.tj-grid{grid-template-columns:repeat(2,1fr);gap:10px 8px}.tj-btn{min-width:0;width:100%}}
/***
 * TopJustForYou - end
***/




/***
 * Footer
***/
/*.topfooter{background:#eff0f5;padding:8px 0 48px}
.topfooter .shopwidth{width:1188px;max-width:100%;height:auto;margin:0 auto;display:block}

.tfo-promos{display:flex;gap:12px}
.tfo-promo{display:block;flex:1 1 0;min-width:0;border-radius:6px;overflow:hidden;line-height:0;transition:transform .2s,box-shadow .2s}
.tfo-promo:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.18)}
.tfo-promo img{display:block;width:100%;height:auto;aspect-ratio:388/80}

.tfo-cols{display:flex;align-items:flex-start;padding:44px 8px 0}
.tfo-col{flex:0 0 297px;min-width:0}
.tfo-col h3{margin:0 0 12px;font-size:17px;font-weight:400;line-height:24px;color:#1f2d6b;text-transform:uppercase}
.tfo-col ul{margin:0;padding:0;list-style:none}
.tfo-col li{line-height:25px;font-size:13px}
.tfo-col li a{color:#212121;text-decoration:none}
.tfo-col li a:hover{color:#f57224;text-decoration:underline}

.tfo-app{flex:0 0 214px;display:flex;align-items:center;gap:10px;padding-top:16px}
.tfo-app svg{flex:0 0 44px;width:44px;height:44px}
.tfo-app b{display:block;font-size:16px;font-weight:400;line-height:22px;color:#f57224}
.tfo-app span{display:block;font-size:14px;line-height:20px;color:#212121}
.tfo-stores{flex:1 1 auto;display:flex;flex-wrap:wrap;gap:12px;padding-top:12px;max-width:280px}
.tfo-store{display:block;width:124px;height:42px;box-sizing:border-box;padding:5px 10px;border:1px solid #a6a6a6;border-radius:6px;background:#000;color:#fff;text-decoration:none;transition:background .2s}
.tfo-store:hover{background:#2b2b2b}
.tfo-store small{display:block;font-size:9px;line-height:11px;color:#ddd}
.tfo-store strong{display:block;font-size:15px;font-weight:600;line-height:19px;white-space:nowrap}

@media (max-width:1200px){
.topfooter .shopwidth{padding:0 12px;box-sizing:border-box}
.tfo-cols{flex-wrap:wrap;gap:28px 0}
.tfo-col{flex:0 0 50%}
.tfo-app{flex:0 0 50%}
.tfo-stores{flex:0 0 50%}
}
@media (max-width:760px){
.tfo-promos{flex-direction:column}
.tfo-col,.tfo-app,.tfo-stores{flex:0 0 100%;max-width:none}
}*/
 .topfooter{background:#f7f7f7;border-top:1px solid #e5e5e5;padding:30px 0 10px}
    .topfooter .shopwidth{max-width:1200px;margin:0 auto;padding:0 15px;box-sizing:border-box}
    .tfo-promos{display:flex;gap:15px;margin-bottom:30px}
    .tfo-promo{flex:1;display:block;border-radius:6px;overflow:hidden}
    .tfo-promo img{width:100%;height:auto;display:block;transition:transform .25s}
    .tfo-promo:hover img{transform:scale(1.03)}
    .tfo-cols{display:grid;grid-template-columns:repeat(4,1fr);gap:30px;padding-bottom:25px}
    .tfo-col h3{font-size:15px;font-weight:700;text-transform:uppercase;color:#222;margin:0 0 14px;padding-bottom:8px;border-bottom:2px solid #e60012;display:inline-block}
    .tfo-col ul{list-style:none;margin:0;padding:0}
    .tfo-col li{margin-bottom:9px;font-size:13.5px;line-height:1.5}
    .tfo-col li a{color:#555;text-decoration:none;transition:color .2s,padding-left .2s}
    .tfo-col li a:hover{color:#e60012;padding-left:4px}
    .tfo-info li{color:#555}
    .tfo-info li b{color:#222;display:inline-block;min-width:78px}
    .tfo-tags{display:flex;flex-wrap:wrap;gap:8px}
    .tfo-tags a{display:inline-block;padding:6px 12px;background:#fff;border:1px solid #ddd;border-radius:20px;font-size:13px;color:#555;text-decoration:none;transition:all .2s}
    .tfo-tags a:hover{background:#e60012;border-color:#e60012;color:#fff}
    .tfo-apps{margin-top:18px}
    .tfo-apps h4{font-size:13px;margin:0 0 8px;color:#222}
    .tfo-apps a{display:inline-flex;flex-direction:column;margin:0 6px 6px 0;padding:5px 12px;background:#222;color:#fff;border-radius:6px;text-decoration:none;line-height:1.2}
    .tfo-apps a small{font-size:10px;opacity:.8}
    .tfo-apps a strong{font-size:13px}

    .shop-copyright{background:#222;color:#bbb;text-align:center;padding:14px 0;font-size:13px}
    .shop-copyright a{color:#fff;text-decoration:none}
    .shop-copyright a:hover{text-decoration:underline}
    @media(max-width:991px){
        .tfo-cols{grid-template-columns:repeat(2,1fr)}
        .tfo-promos{flex-direction:column}
    }
    @media(max-width:575px){
        .tfo-cols{grid-template-columns:1fr;gap:20px}
    }
/***
 * Footer - end
***/



.shop-copyright {
    padding: 18px 0;
    /*color: #6b7280;*/
    font-size: 14px;
    line-height: 1.5;
}
.shop-copyright .shopwidth {
    max-width: 1188px; /* Dùng max-width để không bị vỡ giao diện trên mobile */
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;   /* Tạo khoảng thở hai bên khi thu nhỏ màn hình */
    text-align: center;
    box-sizing: border-box;
}
.shop-copyright a {
    color: #bbb;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
.shop-copyright a:hover {
    color: #2563eb;
    text-decoration: underline;
}