body {
  margin: 0;
  background: #f1f5f9;
  color: #172033;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}
.dau-trang {
  background: #14253f;
  color: white;
  padding: 28px 6%;
}

.dau-trang h1 {
  margin: 0;
  font-size: 36px;
}

.dau-trang p {
  margin: 4px 0 0;
  color: #d6e4f7;
}
main {
    width: 90%;
    max-width: 1080px;
    margin: 32px auto;
}

.san-pham {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 24px;
    padding: 24px;
    background-color: white;
    border-radius: 16px;
}

.san-pham img {
    width: 100%;
    height: auto;
}

.thong-tin p {
    margin-top: 0;
}

@media (max-width: 700px) {
    .san-pham {
        grid-template-columns: 1fr;
    }
}
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: white;
    color: #202124;
    font-family: Arial, sans-serif;
    padding-bottom: 100px;
}

.thanh-den {
    background: #101424;
    color: white;
    text-align: center;
    padding: 7px 16px;
    font-weight: bold;
}

.thanh-do {
    background: #ca0023;
    color: white;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px max(4%, calc((100% - 1160px) / 2));
}

.thanh-do a {
    color: white;
    text-decoration: none;
}

.ten-shop {
    font-size: 25px;
    font-weight: bold;
}

.gio-tren {
    margin-left: auto;
    background: #a5001d;
    padding: 8px 14px;
    border-radius: 8px;
}

.trang-san-pham {
    width: 92%;
    max-width: 1160px;
    margin: 0 auto;
}

.duong-dan {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #545967;
    font-size: 14px;
}

.duong-dan a,
.lien-ket-nhanh a {
    color: #185cb7;
    text-decoration: none;
}

.bo-cuc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    padding-top: 24px;
}

.cot-anh h1 {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.25;
}

.lien-ket-nhanh {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 16px 0;
}

.khung-anh {
    border: 1px solid #dce0e5;
    border-radius: 18px;
    overflow: hidden;
}

.khung-anh img {
    display: block;
    width: 100%;
    height: clamp(220px, 30vw, 340px);
    object-fit: contain;
}

#thong-so {
    margin: 22px 0;
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
}

#thong-so summary {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

#thong-so li {
    margin-bottom: 6px;
}

.khung-gia {
    padding: 20px;
    background: #f3f7ff;
    border: 1px solid #abc8ff;
    border-radius: 16px;
    text-align: center;
}

.khung-gia span,
.tom-tat span {
    display: block;
}

.khung-gia strong {
    font-size: 32px;
}

.cot-mua h2 {
    font-size: 20px;
    margin: 20px 0 10px;
}

.o-da-chon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 180px;
    padding: 15px 22px;
    border: 2px solid #ca0023;
    border-radius: 10px;
    font-weight: bold;
}

.o-da-chon::after {
    content: "✓";
    position: absolute;
    top: -1px;
    right: -1px;
    background: #ca0023;
    color: white;
    font-size: 12px;
    padding: 0 4px;
    border-radius: 0 8px 0 6px;
}

.mau-san-pham img {
    width: 58px;
    height: 40px;
    object-fit: contain;
}

.hop-tu-van {
    margin-top: 24px;
    padding: 18px;
    background: #f6f7f9;
    border-radius: 14px;
}

.hop-tu-van h2 {
    margin-top: 0;
}

.nut-zalo {
    color: #175bb1;
    font-weight: bold;
}

.thanh-mua {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
    background: white;
    border-top: 1px solid #ddd;
    box-shadow: 0 -4px 16px #0000000d;
}

.thanh-mua-trong {
    width: 92%;
    max-width: 1160px;
    margin: auto;
    padding: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.nut-mua {
    display: flex;
    gap: 8px;
}

.nut-mua button {
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid #ced2d9;
    background: white;
    font: inherit;
    cursor: pointer;
}

#them-k99 {
    background: #ca0023;
    border-color: #ca0023;
    color: white;
    font-weight: bold;
}

#bot-k99:disabled {
    opacity: 0.45;
    cursor: default;
}

@media (max-width: 720px) {
    body {
        padding-bottom: 145px;
    }

    .bo-cuc {
        grid-template-columns: 1fr;
    }

    .thanh-do {
        flex-wrap: wrap;
        gap: 10px 16px;
    }

    .thanh-mua-trong {
        flex-wrap: wrap;
    }
}
button.gio-tren {
    color: white;
    border: 1px solid #ffffff66;
    font: inherit;
    cursor: pointer;
}

#hop-gio {
    width: min(420px, 92vw);
    padding: 24px;
    border: 0;
    border-radius: 16px;
    color: #202124;
}

#hop-gio::backdrop {
    background: rgb(15 23 42 / 55%);
}

#hop-gio h2 {
    margin-top: 0;
}

#hop-gio button {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font: inherit;
    cursor: pointer;
}

#hop-gio #xoa-k99 {
    background: #be0023;
    border-color: #be0023;
    color: white;
}

#hop-gio form {
    margin-top: 16px;
}