*{
    box-sizing:border-box
}

body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    color:#17324d;
    background:#fff
}

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

img{
    max-width:100%;
    display:block
}

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

.topbar{
    background:#f1f5f9;
    color:#64748b;
    font-size:13px
}

.topbar .container{
    display:flex;
    justify-content:space-between;
    padding:8px 0
}

.main-header{
    background:#fff
}

.header-row{
    height:92px;
    display:flex;
    align-items:center;
    gap:30px
}

.brand{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:245px
}

.brand-mark{
    width:55px;
    height:55px;
    border-radius:18px;
    background:linear-gradient(135deg,#08a7df,#1165d8);
    color:#fff;
    font-size:34px;
    font-weight:900;
    display:grid;
    place-items:center
}

.brand strong{
    font-size:24px
}

.brand small{
    display:block;
    color:#64748b;
    margin-top:2px
}

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

.search input{
    width:100%;
    padding:13px 15px;
    border:1px solid #d7e0ea;
    border-right:0;
    border-radius:8px 0 0 8px;
    outline:none
}

.search button{
    width:52px;
    border:0;
    background:#f59e0b;
    color:#fff;
    border-radius:0 8px 8px 0;
    font-size:21px
}

.header-links{
    display:flex;
    gap:20px;
    font-size:14px;
    font-weight:700
}

.nav{
    background:#087bbd;
    color:#fff
}

.nav .container{
    display:flex;
    align-items:center
}

.nav a{
    display:block;
    padding:15px 16px;
    font-weight:700;
    font-size:14px
}

.nav a:hover,
.nav a.active{
    background:#f59e0b
}

.nav .category-button{
    background:#f59e0b;
    min-width:245px
}

.mobile-toggle{
    display:none
}

.hero-wrap{
    display:grid;
    grid-template-columns:245px minmax(0,1fr);
    gap:22px;
    margin-top:20px
}

.category-list{
    border:1px solid #dbe4ee;
    background:#fff
}

.category-list a{
    padding:13px 15px;
    display:flex;
    justify-content:space-between;
    border-bottom:1px solid #e5eaf0;
    color:#087bbd;
    font-size:14px
}

.hero{
    min-height:340px;
    border-radius:4px;
    overflow:hidden;
    background:
        linear-gradient(90deg,rgba(0,35,56,.82),rgba(0,0,0,.18)),
        url('../img/hero.svg') center/cover;
    display:flex;
    align-items:center;
    padding:55px;
    color:#fff
}

.hero h1{
    font-size:40px;
    margin:0 0 10px
}

.hero p{
    font-size:18px;
    max-width:590px;
    line-height:1.6
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:0;
    border-radius:8px;
    padding:11px 18px;
    background:#087bbd;
    color:#fff;
    font-weight:700;
    cursor:pointer
}

.btn:hover{
    filter:brightness(.95)
}

.btn.orange{
    background:#f59e0b
}

.btn.outline{
    background:#fff;
    color:#087bbd;
    border:1px solid #087bbd
}

.btn.danger{
    background:#dc2626
}

.section{
    clear:both;
    padding:34px 0
}

.section-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:2px solid #087bbd;
    margin-bottom:20px
}

.section-title h2{
    margin:0;
    background:#087bbd;
    color:#fff;
    font-size:18px;
    padding:12px 22px;
    clip-path:polygon(0 0,90% 0,100% 100%,0 100%)
}

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

.product-card{
    min-width:0;
    height:auto;
    border:1px solid #dfe6ed;
    background:#fff;
    position:relative;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    transition:transform .2s,box-shadow .2s
}

.product-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(15,23,42,.1)
}

.product-card .pic{
    display:block;
    width:100%;
    flex:0 0 auto;
    aspect-ratio:1/1;
    background:#f8fafc;
    overflow:hidden
}

.product-card .pic img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:10px
}

.product-card .body{
    position:static;
    width:100%;
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    padding:13px;
    background:#fff
}

.product-card .category{
    font-size:11px;
    text-transform:uppercase;
    color:#94a3b8
}

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

.product-price{
    position:static;
    margin-top:auto;
    min-height:23px
}

.price{
    color:#00a313;
    font-size:17px;
    font-weight:800
}

.old-price{
    font-size:13px;
    color:#94a3b8;
    text-decoration:line-through;
    margin-right:6px
}

.badge{
    position:absolute;
    z-index:2;
    top:10px;
    left:10px;
    background:#f59e0b;
    color:#fff;
    border-radius:999px;
    padding:7px 8px;
    font-size:12px;
    font-weight:700
}

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

.sidebar-box{
    border:1px solid #e0e7ef;
    border-radius:8px;
    overflow:hidden;
    margin-bottom:16px
}

.sidebar-box h3{
    margin:0;
    background:#087bbd;
    color:#fff;
    padding:13px 15px;
    font-size:16px
}

.sidebar-box a{
    display:block;
    padding:11px 14px;
    border-bottom:1px solid #eef2f6
}

.sidebar-box a:hover{
    background:#eff8ff;
    color:#087bbd
}

.page-head{
    background:#f1f5f9;
    padding:26px 0
}

.page-head h1{
    margin:0
}

.product-detail{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:38px
}

.product-main-image{
    border:1px solid #e2e8f0;
    aspect-ratio:1/1
}

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

.variant-list{
    display:flex;
    flex-wrap:wrap;
    gap:10px
}

.variant{
    border:1px solid #cbd5e1;
    border-radius:8px;
    padding:9px 12px;
    cursor:pointer;
    background:#fff
}

.variant.active{
    border-color:#087bbd;
    box-shadow:0 0 0 2px rgba(8,123,189,.15)
}

.qty-row{
    display:flex;
    gap:10px;
    margin:18px 0
}

.qty-row input{
    width:90px;
    padding:10px;
    border:1px solid #cbd5e1;
    border-radius:8px
}

.table-wrap{
    overflow:auto
}

.table{
    width:100%;
    border-collapse:collapse
}

.table th,
.table td{
    padding:13px;
    border-bottom:1px solid #e2e8f0;
    text-align:left
}

.table th{
    background:#f8fafc
}

.cart-thumb{
    width:70px;
    height:70px;
    object-fit:contain;
    border:1px solid #e2e8f0
}

.checkout-grid{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:28px
}

.card{
    background:#fff;
    border:1px solid #e2e8f0;
    border-radius:12px;
    padding:20px
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px
}

.field{
    display:flex;
    flex-direction:column;
    gap:6px
}

.field.full{
    grid-column:1/-1
}

.field input,
.field select,
.field textarea{
    padding:11px 12px;
    border:1px solid #cbd5e1;
    border-radius:8px;
    font:inherit
}

.alert{
    padding:12px 15px;
    border-radius:8px;
    margin:12px 0
}

.alert.success{
    background:#dcfce7;
    color:#166534
}

.alert.error{
    background:#fee2e2;
    color:#991b1b
}

.footer{
    clear:both;
    margin-top:40px;
    background:#0b3a5b;
    border-top:4px solid #f59e0b;
    color:#fff;
    padding:42px 0
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:35px
}

.footer h3{
    margin-top:0;
    color:#fff
}

.footer p,
.footer a{
    color:#dbeafe;
    line-height:1.7
}

.footer a:hover{
    color:#fff
}

.floating{
    position:fixed;
    z-index:20;
    right:22px;
    bottom:22px;
    display:flex;
    flex-direction:column;
    gap:12px
}

.floating a{
    width:52px;
    height:52px;
    border-radius:50%;
    display:grid;
    place-items:center;
    color:#fff;
    font-weight:800;
    box-shadow:0 6px 18px #0003
}

.floating .zalo{
    background:#1688e8
}

.floating .phone{
    background:#ef4444
}

@media(max-width:1000px){
    .product-grid{
        grid-template-columns:repeat(3,minmax(0,1fr))
    }

    .hero-wrap,
    .catalog-layout{
        grid-template-columns:1fr
    }

    .category-list{
        display:none
    }

    .header-links{
        display:none
    }

    .product-detail{
        grid-template-columns:1fr
    }

    .nav .container{
        overflow:auto
    }

    .nav .category-button{
        min-width:auto
    }

    .checkout-grid{
        grid-template-columns:1fr
    }
}

@media(max-width:650px){
    .header-row{
        height:auto;
        padding:14px 0;
        flex-wrap:wrap
    }

    .brand{
        min-width:auto
    }

    .brand strong{
        font-size:19px
    }

    .search{
        order:3;
        flex-basis:100%
    }

    .nav a{
        padding:12px 10px;
        white-space:nowrap;
        font-size:12px
    }

    .hero{
        min-height:280px;
        padding:28px
    }

    .hero h1{
        font-size:30px
    }

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

    .section-title h2{
        font-size:15px
    }

    .form-grid{
        grid-template-columns:1fr
    }

    .footer-grid{
        grid-template-columns:1fr
    }

    .product-card .body{
        padding:9px
    }

    .product-card h3{
        font-size:14px;
        min-height:40px
    }
}