/* --- CẤU HÌNH ICON SVG --- */
.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor; /* Màu viền theo màu chữ của phần tử cha */
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.2s ease;
}

/* Icon button reset để căn chỉnh icon đẹp hơn */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
    line-height: 0; /* Loại bỏ khoảng trắng thừa của text */
}

.icon-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Icon trong menu toggle (Mobile) */
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Chỉnh lại vị trí số lượng giỏ hàng khi dùng icon SVG */
.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ff4444;
    color: white;
    font-size: 10px;
    font-weight: bold;
    height: 16px;
    min-width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 4px;
    border: 1px solid white;
}

/* Icon đóng (Close) */
.icon-close {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Hiệu ứng hover cho icon */
.icon-btn:hover .icon {
    stroke: #667eea; /* Màu tím nhạt khi hover */
}