* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-size: 12px;
    line-height: 1.6;
    color: #777;
    min-height: 500px;
    padding: auto;
}

.container {
    max-width: 1270px;
    margin: 0 auto;
}

.home {
    background-color: #ffffff;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-search {
    border: 1px solid #ccc;
    width: 300px;
    border-radius: 20px;
    padding: 6px 12px;
    outline: none;
}

.header-search input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.header-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.header-container a {
    font-family: Arial, Helvetica, sans-serif;
    text-decoration: none;
    color: gray;
}

.menu-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.menu-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    color: gray;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}

.arrow {
    font-size: 10px;
    margin-left: 4px;
}

.login-link {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    color: gray;
    text-decoration: none;
}

.kinhlup img {
    width: 30px;
    height: auto;
}

.footer {
    background-color: #7a7a7a;
    color: #fff;
    font-size: 14px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-title::after {
    content: "";
    width: 40px;
    height: 2px;
    background: #ccc;
    position: absolute;
    bottom: -8px;
    left: 0;
}

.footer-text {
    color: #e0e0e0;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 50%;
    margin-right: 8px;
    color: #fff;
    text-decoration: none;
}

.social-icons a:hover {
    background: #fff;
    color: #000;
}

.news-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.date-box {
    width: 48px;
    height: 48px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 12px;
    line-height: 1.2;
    padding-top: 4px;
}

.tag-list a {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #fff;
    margin: 4px 4px 0 0;
    font-size: 13px;
    text-decoration: none;
}

.tag-list a:hover {
    background: #fff;
    color: #000;
}

.footer-bottom {
    background: #666;
    font-size: 13px;
}

.cart-page {
    font-family: 'DM Sans', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    padding: 30px 24px 60px;
    min-height: 60vh;
}

.cart-content {
    max-width: 1270px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px 0;
}

.cart-header {
    display: flex;
    padding: 12px 16px;
    border-bottom: 3px solid #ddd;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #555;
    gap: 15px;
}

.cart-header span:nth-child(1) {
    width: 40px;
}

.cart-header span:nth-child(2) {
    flex: 1;
}

.cart-header span:nth-child(3) {
    width: 130px;
    text-align: center;
}

.cart-header span:nth-child(4) {
    width: 110px;
    text-align: center;
}

.cart-header span:nth-child(5) {
    width: 130px;
    text-align: right;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px 16px;
    border-bottom: 1px solid #eee;
    transition: background .2s ease;
    gap: 15px;
}

.cart-item:hover {
    background: #fdfcfa;
}

.cart-remove {
    width: 26px;
    height: 26px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
    transition: all .2s ease;
}

.cart-remove:hover {
    border-color: #e05c2a;
    color: #e05c2a;
    background: #fff3ee;
}

.cart-product {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-image {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 1px solid #eee;
}

.cart-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
}

.cart-name:hover {
    color: #e05c2a;
}

.cart-price {
    width: 130px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
}

.cart-qty {
    width: 110px;
    display: flex;
    justify-content: center;
}

.cart-subtotal {
    width: 130px;
    text-align: right;
    font-size: 0.95rem;
    font-weight: 600;
}

.qty-control {
    display: flex;
    border: 1px solid #ddd;
    overflow: hidden;
}

.qty-control__btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
}

.qty-control__input {
    width: 40px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-weight: 600;
}

.qty-control__input::-webkit-outer-spin-button,
.qty-control__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.cart-footer {
    padding: 20px 0;
}

.btn-continue {
    display: inline-block;
    padding: 5px 10px;
    border: 2px solid #333;
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-continue:hover {
    background: #446084;
    color: #fff;
}

.order-summary {
    width: 50%;
    background: #fff;
    padding: 30px;
    border-left: 1px solid #eee;
    position: sticky;
    top: 20px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.summary-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.summary-line-label {
    color: #666;
}

.summary-line-value {
    font-weight: 600;
}

.summary-shipping-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
    text-align: right;
    display: block;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-checkout {
    display: block;
    width: 100%;
    background: #e05c2a;
    color: #fff;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 25px;
    transition: background 0.3s;
    text-decoration: none;
}

.btn-checkout:hover {
    background: #c44e20;
    color: #fff;
}

.coupon-section {
    margin-top: 30px;
}

.coupon-section__title {
    border-bottom: 3px solid #ececec;
    font-size: 18px;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.icon-tag::before {
    content: "🎫";
    font-size: 18px;
    color: #e05c2a;
    margin-right: 5px;
}

.coupon-section__row {
    margin-top: 10px;
    padding-top: 10px;
}

.coupon-section__input {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.btn-apply-coupon {
    display: block;
    width: 100%;
    padding: 8px 20px;
    border: 1px solid #666;
    background-color: #f9f9f9;
    cursor: pointer;
}

.btn-apply-coupon:hover {
    background: #666;
    color: #fff;
}

@media (max-width: 991px) {
    .cart-content {
        flex-direction: column;
    }

    .order-summary {
        width: 100%;
        position: static;
    }
}

@media (max-width: 767px) {
    .cart-header {
        display: none;
    }

    .cart-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-bottom: 25px;
    }

    .cart-remove {
        align-self: flex-end;
    }

    .cart-product {
        flex-direction: column;
        text-align: center;
    }

    .cart-price,
    .cart-qty,
    .cart-subtotal {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .cart-price::before {
        content: "Giá:";
        font-weight: 600;
    }

    .cart-qty::before {
        content: "Số lượng:";
        font-weight: 600;
    }

    .cart-subtotal::before {
        content: "Tạm tính:";
        font-weight: 600;
    }

    .cart-qty {
        justify-content: space-between;
    }
}