.mr-0.5 { margin-right: 0.125rem; }
.inline-block { display: inline-block; }
.h-sp14 { height: 14px; }

.shopee-container { 
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.shopee-header-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0px;
    background-color: #fff;
    border-bottom: 1px solid #e8e8e8;
}

.shopee-header-section__header__title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.shopee-button-no-outline {
    background: none;
    border: none;
    font-size: 14px;
    color: #ee4d2d;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
    margin-top: 10px;
    margin-left: auto;
    text-align: right;
}

.shopee-button-no-outline:hover { color: #ff6347; }
.shopee-svg-icon { width: 11px; height: 11px; fill: #ee4d2d; }
.shopee-svg-icon path { fill: inherit; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

:root {
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 6px 20px rgba(0,0,0,.06);
    --shadow-hover: 0 4px 10px rgba(0,0,0,.12), 0 14px 28px rgba(0,0,0,.10);
    --primary: #ee4d2d;
    --text: #111;
    --muted: #666;
    --border: #e9ecef;
    --bg: #fff;
    --chip-bg: #fff8e4;
    --chip-border: #ffbb00;
}

body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: #fafafa; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 16px;
    }
    .price-value { font-size: 17px; }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }
    .price-value { font-size: 18px; }
}

.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .12s ease, box-shadow .12s ease;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.product-link {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
    outline: none;
}

.product-media {
    position: relative;
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: hidden;
    background: #fff;
}
.product-image {
    position: absolute;
    inset: 0;
    object-fit: contain;
    width: 100%;
    height: 100%;
}
.badge-video {
    position: absolute;
    right: 6px; bottom: 6px;
    width: 22px; height: 22px;
    background-image: url("https://deo.shopeemobile.com/shopee/modules-federation/live/0/shopee__item-card-centralisation/0.0.51/pc/43bd6a890841685e2fea.svg");
    background-size: cover;
    background-repeat: no-repeat;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}

.product-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 6px;
    padding: 10px 10px 0;
}

.product-title {
    font-size: 14px;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 5em;
    font-weight: 700;
}

.product-pricing {
    padding: 8px 10px 0;
}

.price-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.old-price {
    font-size: 12px;
    color: #666;
    text-decoration: line-through;
}

.price-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    color: var(--primary);
    font-weight: 600;
}
.price-value { font-size: 16px; }
.currency { font-size: 12px; opacity: .9; }

.discount-tag {
    background: #ffe5e5;
    color: var(--primary);
    font-weight: 600;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 12px;
}

.badges-container {
    display: flex;
    gap: 6px;
    height: 22px;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    align-items: center;
    margin-bottom: 10px;
    margin-left: 10px;
    width: auto;
}
.badge {
    display: flex;
    align-items: center;
    height: 18px;
    padding: 3px 6px;
    border-radius: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, filter 0.2s ease;
    width: auto;
}
.badge:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    width: auto;
}
.discount-badge {
    background-color: rgb(246, 145, 19);
    color: white;
    border: 1px solid rgb(246, 145, 19);
    width: auto;
}
.gift-badge {
    color: rgb(238, 77, 45);
    border: 1px solid rgb(238, 77, 45);
    background-color: rgba(238, 77, 45, 0.05);
    width: auto;
}
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    width: auto;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 10px;
    color: var(--muted);
    font-size: 12px;
}
.rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--chip-bg);
    border-radius: 4px;
    padding: 2px 6px;
    box-shadow: 0 0 0 .5px var(--chip-border);
    color: #000;
}
.icon-star {
    width: 10px; height: 10px;
}
.rating-score { font-weight: 600; }

.divider {
    display: inline-block;
    width: 1px; height: 10px;
    background: #cfd3d7;
    transform: scaleX(.6);
}
.sold { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Sửa lại CSS cho banner trên mobile */
.OUF59_ {
    height: auto;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.b29iei {
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

.b29iei a {
    display: block;
    width: 100%;
    height: auto;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.lArtnt.kFRbp9 {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.ewoUBM.vuaoGH {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

/* Responsive cho mobile */
@media screen and (max-width: 767px) {
    .OUF59_ {
        height: auto;
        max-height: 200px;
        margin: 5px 0;
    }
    
    .shopee-container {
        padding: 0 10px;
    }
    
    .shopee-header-section__header {
        padding: 10px 0;
    }
    
    .shopee-header-section__header__title {
        font-size: 16px;
    }
    
    .product-grid {
        gap: 8px;
    }
    
    .product-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    
    .price-line {
        gap: 5px;
    }
    
    .price-value {
        font-size: 15px;
    }
    
    .old-price {
        font-size: 11px;
    }
    
    .discount-tag {
        font-size: 11px;
        padding: 1px 4px;
    }
}

/* Thêm margin cho desktop nếu cần */
@media screen and (min-width: 768px) {
    .OUF59_ {
        margin: 10px 0;
    }
}