body {
    margin: 0;
    font-family: "SF Pro Display", Arial, sans-serif;
    background-color: #f8f9fa;
    
}


 img,video,iframe {
        max-width: 100% !important;
      
}
    
iframe {
width: 800%;
}

.navbar-custom {
    background-color: #4a4a4a;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-nav {
    flex: 1;
    justify-content: center;
    gap: 24px;
}

/* Navbar ban đầu */
.navbar-custom {
    transition: all 0.3s ease;
}

/* Khi cuộn xuống */
.navbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    color: #d2d2d7;
    font-size: 15px;
    padding: 18px 4px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background-color: #6c6c6c;
    color: #ffffff;
}

.navbar-brand img {
    height: 45px;
}

.dropdown-menu {
    background-color: #5a5a5a;
    border: none;
}

.dropdown-menu .dropdown-item {
    color: #fff;
    font-size: 15px;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #6c6c6c;
}

.icon-box i {
    color: white;
    font-size: 20px;
    margin-left: 20px;
    cursor: pointer;
}

.user-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.user-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%; /* Hiển thị bên dưới icon */
    right: 0;
    z-index: 999;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    min-width: 180px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.cart-badge {
    font-size: 10px;
    background: white;
    color: #4a4a4a;
    border-radius: 50%;
    padding: 0px 5px;
    position: absolute;
    bottom: 0px;
    right: -5px;
}

.icon-box {
    position: relative;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 999;
}

.search-bar-expanded {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 8px 10px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.search-bar-expanded input {
    width: 60vw;
    padding: 8px 16px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
}

.search-bar-expanded input:focus {
    outline: none;
}

/* //baner */
.carousel-item img {
    width: 100%;
    max-height: 400px;
    height:auto;
    object-fit: cover;
}

.carousel-indicators.custom-indicators button {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 4px;
    opacity: 1;
}

.carousel-indicators.custom-indicators button.active {
    background-color: #000;
}

.carousel-control-prev,
.carousel-control-next {
    border-radius: 50%; /* hình tròn */
    width: 45px;
    height: 45px;
    top: 50%;
    margin: 0 20px;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.flashsale-section {
    background: linear-gradient(to right, #3873e8, #69a0f0);
    border-radius: 15px;
    padding: 20px;
    color: #fff;
}
.flashsale-title {
    font-weight: 800;
    font-size: 2.5rem;
    text-shadow: 1px 1px #222;
}
.timer-box {
    background: #fff;
    color: red;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 1rem;
}

.product-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    color: black;
    font-weight: bold;
}
.price-new {
    color: red;
    font-weight: 700;
    font-size: 1.4rem;
}
.price-old {
    text-decoration: line-through;
    font-size: 0.9rem;
    color: #777;
}
.discount-badge {
    background-color: #ff3b3b;
    color: white;
    font-size: 0.8rem;
    border-radius: 5px;
    padding: 2px 6px;
    font-weight: bold;
}
.stock-badge {
    background-color: #0050d3;
    font-size: 0.8rem;
    color: white;
    padding: 5px 10px;
    border-radius: 999px;
    display: inline-block;
    margin-top: 5px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    background: white;
    padding: 20px;
    border-radius: 12px;
}

.slider {
    display: flex;
    transition: transform 0.3s ease;
}

.product {
    flex: 0 0 220px;
    border: 1px solid #eee;
    margin-right: 20px;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
}

.product img {
    width: 100%;
    height: 230px;
    object-fit: contain;
}

.product-title {
    font-weight: bold;
    margin-top: 10px;
}

.price {
    color: red;
    font-size: 20px;
    font-weight: bold;
}

.old-price {
    text-decoration: line-through;
    font-size: 14px;
    color: #555;
}

.discount {
    background: red;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.remaining {
    margin-top: 5px;
    color: blue;
    font-size: 14px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #444;
    z-index: 2;
}

.arrow.left {
    left: 5px;
}

.arrow.right {
    right: 5px;
}

.custom-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 100%;
    padding: 20px 0;
    background-color: #f6f7f9;
}

.custom-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.custom-slide {
    min-width: 33%;
    max-width: 33%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 10px;
}

.custom-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.custom-slide p {
    margin-top: 10px;
    font-size: 14px;
}

.custom-prev-btn,
.custom-next-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0px;
    z-index: 10;
    color: #333;
}

.badge-discount {
    background-color: #e60000;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
}

.custom-btn {
    width: 200px;
    padding: 6px 16px; /* Điều chỉnh chiều dài và chiều cao của nút */
    border: 1px solid #0066cc; /* Đường viền */
    color: #0066cc; /* Màu chữ */
    background-color: transparent; /* Nền trong suốt */
    border-radius: 5px; /* Bo góc */
    text-decoration: none; /* Không có gạch chân */
    transition: background-color 0.3s; /* Hiệu ứng chuyển màu */
}
.custom-btn:hover {
    background-color: #e7f0ff; /* Màu nền khi hover */
}

footer a {
    color: #d7d7d7;
}

.menuphu {
    background-color: white;
    padding: 10px 30px;
}

.menuphu a {
    font-size: 13px;
    color: #515154;
}

.menuphu i {
    font-size: 8px;
    color: #515154;
}
.btn-series {
    font-size: 0.75rem;
    white-space: nowrap;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.iphone-series {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.iphone-series a {
    padding: 8px 16px;
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons a {
    padding: 8px 16px;
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-btn {
    padding: 8px 16px;
    background: #ffffff;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: none !important; /* ✅ chỉ 1 lần này thôi */
}

.top-box {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.top-box h5 {
    font-weight: 600;
    font-size: 18px;
}

.top-box a {
    font-size: 14px;
    color: #0066cc;
    text-decoration: none;
}

.top-box a:hover {
    text-decoration: underline;
}

.content-box {
    background-color: #fff;
    border-radius: 12px;
    padding: 32px;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.content-box h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.content-box h5 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
}

.read-more {
    color: #0066cc;
    cursor: pointer;
    font-size: 14px;
    margin-top: 24px;
}

.read-more-container a {
    text-decoration: none;
}

.more-content {
    display: none;
}

.show-more .more-content {
    display: block;
}

.read-more-container {
    text-align: center;
}

.img-danhmuc {
    height: 150px;
}

.box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.rating-score {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
}

.rating-count {
    text-align: center;
    font-size: 14px;
    color: #555;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.bar {
    flex: 1;
    background-color: #eee;
    height: 10px;
    border-radius: 5px;
    margin: 0 10px;
    position: relative;
}

.bar-fill {
    height: 100%;
    background-color: #f59e0b;
    border-radius: 5px;
}

.rating-stars i {
    font-size: 20px;
    color: #ccc;
    cursor: pointer;
}

.rating-stars i.active {
    color: #f59e0b;
}

.review-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.review-item .user {
    font-weight: bold;
}

.review-item .date {
    font-size: 12px;
    color: #888;
}

.submit-btn {
    background-color: #0066cc;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #013a72;
    color: white;
}

.upload-btn {
    display: inline-block;
    margin-bottom: 10px;
    cursor: pointer;
}

.thumbnail-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}
.thumbnail-img.active {
    border: 2px solid #0066cc;
}

.main-video {
    width: 100%;
    max-height: 550px;
    height: auto;
    object-fit: contain; /* Giữ nguyên tỉ lệ, không làm méo ảnh */
    border-radius: 8px;
    background-color: #f5f5f5;
    display: block;
    margin: 0 auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #ccc;
    margin-right: 6px;
    cursor: pointer;
}
.color-circle.active {
    border: 3px solid #007bff; /* Màu của vòng tròn ngoài khi active */
    box-shadow: 0 0 10px rgba(0, 49, 101, 0.5); /* Hiệu ứng shadow để làm nổi bật */
}
.info-box {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.capacity-btn {
    min-width: 70px;
}
.capacity-btn.active {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}
.thumbnail-container {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}
.thumbnail-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
}
.thumbnail-scroll-btn {
    background: #eee;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.product_re {
    border-top: 1px solid rgb(214, 214, 214);
}

.custom-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.custom-tabs .nav-link {
    background-color: #fff;
    border: 1px solid #bdbdbd;
    border-radius: 5px;
    color: #000;
    padding: 8px 20px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.custom-tabs .nav-link.active {
    border: 1px solid #0066cc;
    color: #0066cc;
}

.product-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 20px;
}

.product-subtitle {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 40px;
}

.phone-img {
    /* max-width: 600px; */
    width: 100%;
    margin: auto;
    display: block;
}

.product-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-image {
    width: 100%;
    max-width: 120px;
    margin: 0 auto 10px;
    display: block;
}

.product-title {
    font-size: 14px;
    margin-bottom: 6px;
}

.product-box .product-price .price-new {
    color: #d70018;
    font-weight: bold;
}

.product-box .product-price .price-old {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
}

.product-box .product-price .discount-text {
    color: #888;
    font-size: 14px;
}

.discount {
    font-size: 14px;
    color: green;
}

.btn-choose {
    font-size: 14px;
}

.plus-icon {
    font-size: 32px;
    color: #888;
    display: flex;
    justify-content: center;
    align-items: center;
}

.summary-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-price {
    font-size: 20px;
    font-weight: bold;
}

.summary-discount {
    font-size: 14px;
    color: #888;
}

.check-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: green;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    display: none;
}

.selected .check-icon {
    display: block;
}

.selected {
    border-color: green;
}

.search-container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    margin: auto;
}
.search-input {
    height: 40px;
    font-size: 16px;
}
.search-button {
    width: 180px;
    height: 40px;
    font-weight: bold;
    font-size: 16px;
}

.search-fillter {
    padding: 0 65px;
}

.checkout-box {
    max-width: 600px;
    margin: 10px auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cart-box {
    max-width: 600px;
    margin: 10px auto;
    background: #f8f9fa;
}

.cart-box a {
    font-size: 13px;
    color: #000000;
}

.cart-box i {
    font-size: 10px;
    color: #000000;
    font-weight: bold;
}
.section-title {
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 16px;
}
.product-img {
    width: 64px;
    border-radius: 8px;
    margin-right: 12px;
}
.color-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid transparent;
    margin-right: 6px;
    cursor: pointer;
}
.dot-black {
    background-color: black;
}
.dot-white {
    background-color: white;
    border: 1px solid #ccc;
}
.color-dot.active {
    border-color: #007bff;
}
.form-control,
.form-select,
textarea {
    border-radius: 8px;
    font-size: 14px;
    padding: 8px 12px;
}
.form-check-input {
    border-radius: 50%;
}
.form-check-label {
    font-size: 14px;
}

.btn-quantity {
    padding: 0 10px;
}
.btn-delete {
    font-size: 13px;
    color: #dc3545;
    border: none;
    background: none;
    padding: 0;
    margin-top: 4px;
}
.total-text {
    font-weight: 600;
    font-size: 16px;
    color: #000;
}
.total-price {
    color: #e60000;
    font-size: 16px;
    font-weight: bold;
}
.btn-order {
    font-weight: 600;
    font-size: 16px;
    height: 48px;
}
.tintuc {
    height: 420px;
}
.note-text {
    font-size: 13px;
    text-align: center;
}

.news-box {
    position: relative;
    overflow: hidden;
    height: 420px;
    border-radius: 10px;
}
.news-box img {
    width: 100%;
    height: auto;
}
.news-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 1.5rem;
    font-weight: bold;
}
.tab-button {
    background-color: white;
    text-align: center;
    font-size: 0.9rem;
    border-radius: 10px;
    padding: 0;
    margin: 0 8px;
}
.tab-button i {
    display: block;
    font-size: 1.2rem;
}

.news-section {
    background-color: #f8f9fa;
    padding: 2rem;
}

.apple-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.news-date {
    font-size: 0.875rem;
    color: #888;
}

.news-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    gap: 1rem;
    height: 100%;
    transition: box-shadow 0.3s;
}

.news-card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.news-img {
    width: 300px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-content {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 0.5rem;
    flex: 1;
}

.row-divider {
    border-top: 1px solid #ddd;
    margin: 1rem 0;
}

.see-all {
    text-align: center;
    margin-top: 1rem;
}

.see-all a {
    font-size: 0.95rem;
    text-decoration: none;
}
.submit-register {
    background-color: #0066cc;
    color: white;
    padding: 8px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
}

.submit-register:hover {
    background-color: #013a72;
    color: white;
}
.register a {
    text-decoration: none;
    color: #0066cc;
}
.forgot-link {
    text-decoration: none;
    color: #0066cc;
}

.sidebar {
    min-height: 100vh;
    padding-top: 1rem;
}
.sidebar a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;

    font-weight: bold;
}
.sidebar a:hover,
.sidebar a.active {
    background-color: #e9ecef;
    color: #007bff;
}
.sidebar i {
    margin-right: 10px;
}
.card-title {
    font-size: 0.95rem;
    font-weight: 500;
}
.card-text {
    font-size: 0.8rem;
    color: #888;
}
.search-bar input {
    width: 200px;
    border-radius: 30px;
}

.article-container {
    max-width: 800px;
    margin: auto;
    background-color: #fff;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.article-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1rem;
}
.article-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    margin-top: 1.5rem;
}
.article-image {
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    width: 100%;
}
.caption {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
    font-style: italic;
}

.comment-form {
    max-width: 900px;
    margin: auto;
    border-top: 1px solid rgb(210, 210, 210);
    padding-top: 10px;
}

textarea.form-control {
    resize: none;
}

.btn-send {
    float: right;
    margin-top: -10px;
    background-color: #0066cc;
    border-radius: 30px;
    color: white;
}

.btn-send:hover {
    background-color: #01274e;

    color: white;
}

.compare-table {
    text-align: center;
}
.compare-table th,
.compare-table td {
    vertical-align: middle;
    padding: 20px 10px;
}
.phone-image {
    max-height: 100px;
    max-width: 100px;
}

.specs-table td {
    vertical-align: top;
    padding: 8px;
}

.specs-table .fw-bold {
    width: 30%;
    font-weight: 600;
    color: #333;
}

.table-secondary {
    background-color: #f0f0f0;
    text-align: center;
    font-weight: bold;
}
.btn-checkout {
    background-color: none;
    color: rgb(0, 0, 0);
    border: 1px solid black;
    padding: 5px 15px;

    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
}

.btn-checkout:hover {
    background-color: black;
    color: rgb(255, 255, 255);
}

td p {
    color: #4a4a4a;
    font-size: 14px;
}

.tis .form-select {
    padding: 0;
}

.product-title {
    font-size: 22px;
    font-weight: bold;
}

.rating i {
    color: #ffc107;
    font-size: 14px;
}

.rating a {
    font-size: 14px;
    text-decoration: none;
}

.storage-buttons .storage-btn {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 16px;
    margin-right: 8px;
    font-weight: 500;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.storage-buttons .storage-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.form-select {
    font-size: 15px;
    height: 45px;
}

.buy-button {
    background-color: #0062cc;
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 12px;
    border-radius: 6px;
}

.buy-button i {
    margin-right: 6px;
}

.scrolling-tabs::-webkit-scrollbar {
    display: none;
}
.scrolling-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.pro {
    height:auto;
    /*max-height: 450px;*/
}

.custom-modal .modal-dialog {
    max-width: 900px; /* nhỏ hơn modal-xl hoặc modal-lg */
    width: 90%; /* responsive hơn */
}

.prices span {
    font-size: 14px;
}

.icon-checkmark {
    display: block;
    margin: 0 auto;
    width: 60px; /* hoặc 40px */
    height: 60px;
}

.checkmark-circle {
    stroke: #28a745;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke: #28a745;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes stroke {
    to {
        stroke-dashoffset: 0;
    }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    z-index: 999;
    border-radius: 12px 12px 0 0; /* Chỉ bo tròn phía trên */
    height: 70px; /* ✅ tăng chiều cao */
    padding: 8px 16px; /* thêm padding trái/phải để khớp với container */
}

.bottom-nav .nav-item {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 11px;
}

.bottom-nav .nav-item i {
    font-size: 18px;
    display: block;
    margin-bottom: 2px;
}

.bottom-nav a {
    color: #000;
    text-decoration: none;
}

.chat-box {
    position: fixed;
    bottom: 70px;
    right: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease; /* Thêm hiệu ứng chuyển động */
    z-index: 9999;
    animation: waveShake 1s infinite;
}

@keyframes waveShake {
    0% {
        transform: scale(1) rotate(0deg); /* Không thay đổi kích thước hoặc góc */
    }
    20% {
        transform: scale(1.1) rotate(10deg); /* Mở rộng và xoay nhẹ */
    }
    40% {
        transform: scale(1.2) rotate(-10deg); /* Mở rộng hơn và xoay ngược */
    }
    60% {
        transform: scale(1.1) rotate(5deg); /* Mở rộng và xoay nhẹ lại */
    }
    80% {
        transform: scale(1) rotate(0deg); /* Quay lại trạng thái ban đầu */
    }
    100% {
        transform: scale(1) rotate(0deg); /* Quay lại trạng thái ban đầu */
    }
}

.chat-box.active {
    animation: none; /* Dừng hiệu ứng rung khi mở */
}

.chat-button {
    background-color: #6c5ce7;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.chat-button img {
    width: 50px;
}

.chat-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.chat-box.active .chat-options {
    transform: translateY(-60px);
    opacity: 1;
    pointer-events: all;
}

.chat-option {
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.call {
    background-color: #2ecc71;
}

.messenger {
    background-color: #3498db;
}

.close {
    background-color: #e74c3c;
}

.chat-option img {
    width: 60px;
}

/* Nút quay lại đầu trang */
.scroll-top-btn {
    position: fixed;
    bottom: 150px;
    right: 15px;
    width: 45px;
    height: 45px;
    background-color: #ccc;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
}

.scroll-top-btn i {
    font-size: 20px;
    color: white;
}

.installment-card {
    border: 1px solid #ccc;
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px;
}
.installment-header {
    color: #fff;
    padding: 6px 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.installment-body {
    padding: 12px;
    background: #fff;
}
.installment-footer {
    padding: 0 12px 12px;
}
.installment-btn {
    width: 100%;
    font-size: 14px;
    font-weight: 500;
}
.note {
    font-size: 12px;
}

.tragops-box {
    max-width: 800px;
    margin: 10px auto;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tragop-box {
    max-width: 800px;
    margin: 10px auto;
    background: #f8f9fa;
}

.tragop-box a {
    font-size: 13px;
    color: #000000;
}

.btn-installment {
    background-color: #0062cc;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 600;
    color: #fff;
    width: 100%;
    border: none;
}

.btn-installment:hover {
    background-color: #013a76;
}

/* Tạo hiệu ứng nền mờ khi popup hiển thị */
.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 61, 61, 0.5);
    /* Màu tối mờ */
    backdrop-filter: blur(8px);
    /* Hiệu ứng mờ */
    z-index: 10;
    /* Đảm bảo nằm dưới popup */
}

/* Popup chính nằm giữa màn hình */
.popup-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 400px;
    text-align: center;
    z-index: 20;
    /* Đảm bảo nằm trên nền mờ */
    animation: popIn 0.5s ease-in-out;
}

.bank-logo.active {
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 4px;
    transition: border 0.2s ease;
}

.installment-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* Hiệu ứng xuất hiện */
@keyframes popIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Biểu tượng thành công */
.magic-tick {
    width: 90px;
    height: 90px;
    margin-bottom: 15px;
}

/* Tiêu đề */
.box-fantasy h2 {
    color: #27ae60;
    font-size: 26px;
}

/* Nội dung */
.box-fantasy p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

/* Nút tiếp tục mua hàng */
.galaxy-button {
    background: #0d8801;
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.popup-glow a {
    text-decoration: none;
}

.galaxy-button:hover {
    background: #074d00;
}

.category-description {
    max-width: 100% !important; /* Đảm bảo không tràn */
    overflow: hidden; /* Chặn nội dung bị tràn */
    word-wrap: break-word; /* Xuống dòng nếu nội dung quá dài */
}

.category-description p {
    text-align: justify;
    margin: 0; /* Xóa margin nếu có */
    padding: 0;
    font-size: 1em; /* Đảm bảo không bị phóng to */
}

.nav-pills .nav-item .nav-link {
    background-color: #f0f0f0;
    border-radius: 50px;
    padding: 10px 20px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    border: 1px solid transparent;
}

.nav-pills .nav-item .nav-link:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
    color: #000;
}

.nav-pills .nav-item .nav-link.active {
    background-color: #ffc107 !important; /* màu vàng nổi bật */
    color: #fff !important;
    border-color: #ffc107;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.installment-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.installment-header {
    font-weight: bold;
    font-size: 16px;
}

.installment-body .info-row {
    margin-bottom: 8px;
    font-size: 14px;
}

.installment-footer .note {
    font-size: 12px;
    color: #555;
}

/* Overlay mờ nhẹ */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Spinner đẹp và nhẹ nhàng cho mobile */
.spinner-mobile {
    width: 48px;
    height: 48px;
    border: 4px solid transparent;
    border-top: 4px solid #4f46e5; /* Indigo-600 */
    border-right: 4px solid #4f46e5;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); /* subtle shadow */
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 500px) {
    


   
    .news-box{
          height: 300px;
    }
    .col-md-7,
    .tintuc {
      width: 50%;
    }
    
    .col-md-7,.tintuc {
      height: 200px;
    }
    
     .col-md-7 .news-box{
          height: 200px;
     }
    
    .tintuc .news-box{
      height: 200px;
    }



    .fls{
       display: none;
    }
    body {
        padding-bottom: 70px; /* cao hơn hoặc bằng chiều cao .bottom-nav */
    }
    .img-thumbnail{
        max-height: 200px;
    }
    .price{
        font-size: 15px;
    }
    .main-video{
        max-height: 300px;
    }
   
    .ps-4 h4{
        margin-top: 20px;
    }

    .product img {
        height: 150px;
    }
    .flashsale-title {
        font-size: 18px;
    }

  
    .product-namee {
        font-size: 20px;
    }

    .news-img {
        width: 150px;
        height: 100px;
    }

    .sidebar {
        display: none;
    }

    /*.pro {*/
    /*    height: 300px;*/
    /*}*/
    * {
        font-size: 12px;
    }

    .form-select, .form-control{
        font-size: 12px;
        height: 35px;
        padding: 6px 10px;
    }
    .btn-order {
        font-size: 15px;
        height: 35px;
    }
    
      img,video {
        max-width: 100% !important;
      
    }
}


/*h1,p,span {*/
/*  width:auto;*/
/*  max-width: 100%;*/
/*  font-size: 1.25em;*/
/*  word-break: break-word;*/
/*}*/

@media (max-width: 768px) {
    
    
    
  
    .carousel-item img {
        max-height: 400px;
        height: auto;
      
    }

    .col-md-3 {
        width: 50%;
    }

    .col-md-4 {
        width: 50%;
    }
    .bottom-nav {
        display: none;
    }
    .plus-icon {
        display: none;
    }
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .iphone-series {
        overflow-x: auto;
        width: 100%;
    }

    .action-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .filter-btn {
        display: block !important; /* ✅ responsive chính xác */
    }
    
    h5{
        font-size:13px;
    }
}

@media (max-width: 992px) {

    .navbar-collapse {
        background-color: #ffffff; /* Hoặc #000 cho nền đen */
        padding: 15px;
    }

    .navbar-collapse .nav-link {
        color: #000 !important; /* Cho dễ đọc trên nền sáng */
    }

    .navbar-collapse {
        max-height: 90vh;  /* Chiếm 90% chiều cao màn hình */
        overflow-y: auto;  /* Cho phép cuộn dọc */
    }
    .navbar-custom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 20px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        border-radius: 50%; /* hình tròn */
        width: 20px;
        height: 20px;
        top: 50%;
        margin: 0 10px;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.7);
        transition: all 0.3s ease;
        font-size: 10px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 14px;
        height: 14px;
        background-size: 100% 100%;
    }

    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    .navbar-toggler {
        border: none;
        background: none;
        padding: 0;
    }

    .icon-box i {
        font-size: 20px;
        margin-left: 12px;
    }

    .cart-badge {
        font-size: 8px;
        padding: 1px 4px;
        bottom: 0px;
        right: -5px;
    }

    .collapse.navbar-collapse {
        width: 100%;
        margin-top: 10px;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 16px;
        gap: 10px;
    }

    .carousel-indicators.custom-indicators button {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background-color: #ccc;
        margin: 3px;
        opacity: 1;
    }

    .carousel-indicators {
        margin-bottom: 0px;
    }
    
   
}
