* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #000;
}

body {
    font-family: Roboto, sans-serif;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


.banner-carousel {
position: relative;
    width: 100%;
    overflow: hidden;
    height: 78%;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.bot-sale {
    padding: 10px 30px 30px;
    background: linear-gradient(331deg, #ec1f1f 0%, #d70018c4 100%);
    border: 0;
    top: 0;
    border-radius: 0 0 4px 4px;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 8px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #d70018;
    
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.header-layout {
    display: flex;
    justify-content: end;
    gap: 15px;
    padding: 12px 0px;
}

.sidebar {
    width: 460px;
    border-radius: 8px;
}

.owl-controls {
    display: flex;
    height: 22%;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE và Edge */
    padding: 0;
    user-select: none; /* Ngăn chọn text khi kéo */
    -webkit-user-select: none;
    -moz-user-select: none;
}

.owl-controls::-webkit-scrollbar {
    display: none; /* Chrome, Safari và Opera */
}
.owl-controls {
    scroll-behavior: smooth;
}
.owl-controls * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}
    .owl-controls::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 3px;
    }

    .owl-controls::-webkit-scrollbar-thumb {
        background: #fd5f00;
        border-radius: 3px;
    }

    .owl-controls::-webkit-scrollbar-thumb:hover {
        background: #e55100;
    }

    .owl-pagination {
        display: flex;
        gap: 0;
        height: 100%;
        flex-shrink: 0;
    }

    .owl-page {
border-left: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    padding: 0px 8px;
    cursor: pointer;
    align-items: center;
    display: flex
;
    transition: all 0.3s ease;
    white-space: unset;
    width: 138px;
    flex-shrink: 0;
    background: white;
    }

    .owl-page:hover {
        background-color: #f8f9fa;
        border-bottom: 2.5px solid #d70019d7;
    }

    .owl-page.active {
        border-bottom: 2.5px solid #d70018;
        font-weight: 700;
    }

    .owl-page span {
        display: block;
        line-height: 1;
        font-size: 12px;
    }

    /* Responsive cho mobile */
    @media (max-width: 768px) {
        .owl-page {
            min-width: 150px;
            font-size: 13px;
            padding: 6px 12px;
        }

        .owl-controls {
            gap: 0;
        }
    }

    @media (max-width: 480px) {
        .owl-page {
            min-width: 120px;
            font-size: 12px;
            padding: 5px 10px;
        }
    }

.flash-sale-container {
    margin: 10px auto;
    position: relative;
}

.section-title {
    padding: 16px 40px;
    background: linear-gradient(-90deg, #ec1f1f 0%, #d70018c4 100%);
    margin-bottom: 0;
    border-radius: 4px 4px 0 0;
    color: #fff;
    font-weight: bold;
}

.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.3s ease;
}

.product-card {
    flex: 0 0 calc(20% - 16px);
    margin: 0 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.discount-badge {
    position: absolute;
    background: #d0021c;
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    display: inline-block;
    border-radius: 4px;
    margin: 10px;
    font-size: 14px;
    min-width: 83px;
}

.customer-id {
font-size: 12px;
    color: #666;
    text-align: center;
}

.section-label {
    font-size: 12px;
    color: #666;
    margin: 5px 10px 0;
}

.product-name {
    font-weight: bold;
    margin: 5px 10px;
    font-size: 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
display: flex;
    color: #d0021c;
    font-weight: bold;
    margin: 5px 10px;
    font-size: 14px;
}

.time-left {
    background: #f0f2f5;
    padding: 8px 10px;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.services {
    display: flex;
    margin: 5px 10px;
    gap: 5px;
}

.service-badge {
    background: #f0f2f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 10px;
    color: #666;
}


.flash-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 30px;
    height: 65px;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.flash-nav-button.prev {
    left: 0px;
}

.flash-nav-button.next {
    right: 0px;
}

.flash-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


@media (max-width: 1200px) {
    .product-card {
        flex: 0 0 calc(25% - 16px);
    }
}

@media (max-width: 992px) {
    .product-card {
        flex: 0 0 calc(33.333% - 16px);
    }
}

@media (max-width: 768px) {
    .product-card {
        flex: 0 0 calc(50% - 16px);
    }



    .bot-sale {
        padding: 10px 0px 10px;
    }

    .flash-nav-button.prev {
        left: 5px;
    }

    .flash-nav-button.next {
        right: 5px;
    }
    .product-price {
            font-size: 13px;
    }
    .item {
        margin: 0 !important;
    }
}


.iphone-header-section {
    display: flex;
    justify-content: space-between;
    background: white;
    border-radius: 0px 0px 8px 8px;
    padding: 10px 20px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px #fd5f0036;
}

.my-4 {
    background-color: #fff;
}

.iphone-title-main {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0;
}

.iphone-nav-tabs {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.iphone-nav-tab {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.iphone-nav-tab:hover,
.iphone-nav-tab.active {
    color: #fd5f00;
    border-bottom-color: #fd5f00;
}

.iphone-grid-container {
    display: grid;
    gap: 20px;
}

.iphone-item-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.iphone-item-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.iphone-badge-installment {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff6634;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.iphone-badge-percent {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.iphone-flash-icon {
    background: #f13500;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 3;
}

.iphone-flash-icon img {
    width: 10px;
}

.iphone-image-area {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.iphone-product-img {
    width: 160px;
    height: 180px;
    object-fit: contain;
}

.iphone-overlay-labels {
    position: absolute;
    right: 8px;
    top: 8px;
}

.iphone-official-badge {
    background: linear-gradient(135deg, #ff6634 0%, #ff8a50 100%);
    color: white;
    padding: 8px 6px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 4px;
    box-shadow: 0 2px 4px rgba(255, 102, 52, 0.3);
    width: 85px;
}

.iphone-official-line1 {
    display: block;
}

.iphone-official-line2 {
    display: block;
    margin: 1px 0;
}

.iphone-official-line3 {
    display: block;
    font-size: 8px;
}

.iphone-official-line4 {
    display: block;
    font-size: 8px;
}

.iphone-trade-badge {
    background: white;
    color: #ff6634;
    padding: 3px;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 700;
    text-align: center;
    margin: 3px 0;
    border: 1px solid #ff6634;
}

.iphone-percent-circle {
    background: #dc3545;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin: 4px auto;
}

.iphone-content-info {
    text-align: left;
}

.iphone-name-text {
    font-size: 14px;
    color: #333;
    line-height: 1.3;
    margin-bottom: 8px;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.iphone-pricing-area {
    margin-bottom: 8px;
}

.iphone-main-price {
    font-size: 16px;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 4px;
}

.iphone-old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.iphone-upgrade-price {
    font-size: 13px;
    color: #dc3545;
    font-weight: 600;
}

.iphone-stock-alert {
    font-size: 11px;
    color: #ff8800;
    font-weight: 600;
    margin-bottom: 6px;
}

.iphone-rating-area {
    display: flex;
    align-items: center;
    gap: 4px;
}

.iphone-star-group {
    color: #ffc107;
    font-size: 12px;
}

.iphone-review-count {
    font-size: 11px;
    color: #777;
}

.acs {
    border-radius: 15px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .1), 0 2px 6px 2px rgba(60, 64, 67, .15);
    display: block;
    height: 376px;
    margin-right: 15px;
    overflow: auto;
    width: 400px;
}

.left-bane {
    padding: 8px 15px;
    font-size: 14px;
}

iconify-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 5px;
}

.stfu {
    display: flex;
    align-items: center;
}

@media (max-width: 1200px) {
    .iphone-grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .iphone-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .iphone-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .iphone-header-section {
        display: block;
    }

    .iphone-item-card {
        padding: 12px;
    }

    .iphone-nav-tabs {
        gap: 15px;
    }

    .acs {
        display: none;
    }

    .mobile-menu-item {
        padding: 6px 0px;
    }
.carousel-slide img {
    height: 200px;
}
.carousel-container1 {
    height: 200px;
}
    .banner-carousel {
        position: relative;
        width: 100%;
        /* height: 200px; */
        overflow: hidden;
    }
}

.cust {
    background: linear-gradient(-90deg, #ec1f1f 0%, #d70018 100%);
    display: inline-flex;
    border-radius: 30px;
    padding-right: 8px;
    font-size: 12px;
    align-items: center;
    color: #fff;
}

.iphone-catalog-wrapper {
    margin: 10px 0px;
}

.card-text {
    font-size: 14px;
}

.item {
    margin: 10px;
    box-shadow: 0 4px 20px -8px rgba(0, 0, 0, .11), 0 0 10px 0 rgba(0, 0, 0, .059);
}

.card {
    border: 3px solid transparent;
}

.small,
small {
    font-size: 13px;
}

.products-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(2em * 1.2);
    line-height: 1.2;
    word-break: break-word;
}

@supports (-webkit-line-clamp: 2) or (line-clamp: 2) {
    .products-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-clamp: 2 !important;
    }
}
.mid-bann {
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .1), 0 2px 6px 2px rgba(60, 64, 67, .15); border-radius: 8px;     width: calc(100% - 490px);
}
.me-md-1,
.btn-secondary {
    display: flex;
    height: 33px;
}

.description-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
    border-radius: 6px;
    padding: 0 5px;
    background-color: #f2f2f3;
    font-size: 12px;
    
}
        .product-description .description-text {
            word-wrap: break-word;
            word-break: break-word;
            hyphens: auto;
        }

        .product-description .description-text {
            position: relative;
        }

        .product-description .description-text::after {
            content: "";
            position: absolute;
            bottom: 0;
            right: 0;
            width: 20px;
            height: 1.4em;
            background: linear-gradient(to right, transparent, white 50%);
        }

        @supports (-webkit-line-clamp: 2) {
            .product-description .description-text::after {
                display: none;
            }
        }

        /* Responsive cho mô tả */
        @media (max-width: 768px) {
            .product-description {
                margin: 8px !important;
                font-size: 12px !important;
            }
            .card-body {
                padding: 0;
            }
            .card-text {
    font-size: 11px;
}
.mid-bann {
    width: 100%;
}
        }
        .btn-danger {
            background-color: #00000000;
            color: #eb1616;
        }