﻿.products {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    width: 260px;
    padding: 15px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.18);
    }

    .product-card img {
        width: 100%;
        height: 190px;
        object-fit: cover;
        border-radius: 10px;
    }

.product-info {
    margin-top: 12px;
}

    .product-info h4 {
        font-size: 1.1em;
        font-weight: 600;
        color: #333;
    }

    .product-info p {
        color: #ff3d00;
        font-weight: bold;
        margin-top: 5px;
        font-size: 1.05em;
    }
/* ================= FEEDBACK SECTION ================= */
.feedback-section {
    background-color: white;
    margin: 50px auto;
    padding: 50px 20px;
    text-align: center;
    border-radius: 14px;
    max-width: 1050px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    animation: fadeIn 1s ease-in;
}

    .feedback-section h2 {
        color: #ff5722;
        margin-bottom: 30px;
        font-size: 1.9em;
        font-weight: 700;
    }

.feedback-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.feedback-card {
    background-color: #fff7f3;
    border: 1px solid #ffccbc;
    border-radius: 12px;
    width: 280px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

    .feedback-card:hover {
        transform: translateY(-5px);
    }

    .feedback-card p:nth-child(1) {
        font-style: italic;
        color: #555;
    }

    .feedback-card p:nth-child(2) {
        color: #ffc107;
        margin: 8px 0;
        font-size: 1.2em;
    }

    .feedback-card p:nth-child(3) {
        font-weight: 500;
        color: #444;
    }
/*Sale*/
.sale-section {
    max-width: 1150px;
    margin: 40px auto;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

    .sale-section h2 {
        font-size: 1.9em;
        color: #e53935;
        margin-bottom: 25px;
        font-weight: 700;
    }

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
    font-size: 0.95em;
}

.new-price {
    color: #ff3d00;
    font-weight: 700;
    font-size: 1.1em;
}
/* SLIDER SECTION */
.slider-section {
    max-width: 1200px;
    margin: 25px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.carousel-inner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slider-section img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-inner > .item {
    transition: opacity 1s ease-in-out;
}

    .carousel-inner > .item.active.left,
    .carousel-inner > .item.active.right {
        opacity: 0;
    }

    .carousel-inner > .item.next.left,
    .carousel-inner > .item.prev.right {
        opacity: 1;
    }

.carousel-caption {
    /* background: rgba(0, 0, 0, 0.45); 
border-radius: 10px; 
padding: 15px 25px;*/
    background: rgba(0,0,0,0.5);
    padding: 15px 25px;
    border-radius: 10px;
}

    .carousel-caption h3 {
        font-size: 1.8em;
        font-weight: 700;
        color: #fff;
    }

    .carousel-caption p {
        color: #ffe0b2;
        font-size: 1.1em;
    }

@media (max-width: 768px) {
    .carousel-inner img {
        height: 230px;
    }

    .carousel-caption {
        padding: 10px 15px;
    }

        .carousel-caption h3 {
            font-size: 1.3em;
        }

        .carousel-caption p {
            font-size: 1em;
        }
}
/* ======================= PHÂN TRANG ======================= */
.pagination-container {
    margin-top: 30px;
    text-align: center;
}

/* Khung chung */
.pagination {
    display: inline-flex;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    border-radius: 10px;
}

    /* Nút chung */
    .pagination .page-link {
        display: inline-block;
        padding: 8px 13px;
        border-radius: 8px;
        border: 1px solid #ff6600;
        color: #ff6600;
        font-weight: 600;
        text-decoration: none;
        background: #fff;
        transition: all 0.2s ease-in-out;
    }

        /* Hover */
        .pagination .page-link:hover {
            background: #ff6600;
            color: #fff;
            box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
        }

    /* Active (trang hiện tại) */
    .pagination .page-item.active .page-link {
        background: linear-gradient(135deg, #ff7b00, #ff6600);
        color: #fff;
        border-color: #ff6600;
        box-shadow: 0 3px 8px rgba(255, 102, 0, 0.35);
    }

    /* Focus */
    .pagination .page-link:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.25);
    }

    /* Icon điều hướng (>>) */
    .pagination .page-link i {
        vertical-align: middle;
    }
/* Responsive */
@media (max-width: 576px) {
    .pagination .page-link {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
}

.buy-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    background-color: #ff6600;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .buy-btn:hover {
        background-color: #e65c00;
        transform: scale(1.05);
        text-decoration: none;
    }

.product-name {
    text-decoration: none;
    color: #333;
}

    .product-name:hover {
        color: #ff6600;
    }

.product-img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

/*    .product-img:hover {
        transform: scale(1.05);
    }*/

/*.product-card a {
    position: relative;
    z-index: 5;
}

.product-card img,
.product-card h4 a {
    cursor: pointer;
}*/

.product-info {
    position: static !important;
}

.footer {
    background-color: #f5f5f5;
    color: #333;
    padding: 40px 0 10px 0;
    font-size: 15px;
    border-top: 1px solid #ddd;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    padding: 0 20px;
}

.footer-column {
    flex: 1 1 220px;
    min-width: 200px;
    text-align: center; /* căn giữa tiêu đề */
}

    .footer-column h4 {
        font-size: 17px;
        color: #ee4d2d;
        margin-bottom: 15px;
        font-weight: 600;
    }
    /* Căn trái nội dung dưới h4 */
    .footer-column ul,
    .footer-column p,
    .footer-column .social-icons,
    .footer-column .app-links {
        text-align: left;
        margin: 0 auto;
        display: inline-block;
    }

    .footer-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .footer-column ul li {
            margin-bottom: 8px;
        }

            .footer-column ul li a {
                text-decoration: none;
                color: #555;
                transition: color 0.2s ease;
            }

                .footer-column ul li a:hover {
                    color: #ee4d2d;
                }
    /* Liên hệ & mạng xã hội */
    .footer-column p {
        margin: 4px 0;
    }

.social-icons {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ✅ căn trái lại */
    margin-top: 10px;
    gap: 8px;
    color: white;
}

    .social-icons a {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: white;
        font-size: 15px;
        transition: all 0.2s ease;
    }

        .social-icons a:hover {
            color: white;
        }

    .social-icons i {
        font-size: 18px;
        width: 20px;
        text-align: center;
    }
/* Ứng dụng */
.app-links img {
    width: 130px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

    .app-links img:hover {
        transform: scale(1.05);
    }
/* Dòng bản quyền */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
    font-size: 14px;
    color: #666;
}
/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-column {
        width: 100%;
        text-align: left; /* khi về mobile -> tất cả căn trái */
    }

        .footer-column ul,
        .footer-column .social-icons,
        .footer-column .app-links {
            display: block;
            text-align: left;
        }
}
/* ==================== TRANG SẢN PHẨM (PRODUCT LIST) ==================== */
/* Bố cục 2 cột: sidebar (filter) + product list */
.product-page {
    display: flex;
    justify-content: center;
    gap: 24px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: flex-start;
}
/* Sidebar container (đặt partial _FilterSidebar ở đây) */
.sidebar {
    width: 250px;
    flex-shrink: 0;
}
/* Giao diện bộ lọc */
.filter-sidebar {
    background: #fff7f3;
    border: 1px solid #ffd7c2;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    animation: fadeIn 0.35s ease;
}

    .filter-sidebar h3 {
        font-size: 1.15rem;
        color: #ff6600;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .filter-sidebar .filter-section {
        margin-bottom: 14px;
    }

        .filter-sidebar .filter-section h4 {
            font-size: 0.95rem;
            color: #333;
            margin-bottom: 8px;
        }

    .filter-sidebar label {
        display: block;
        margin: 6px 0;
        font-size: 0.95rem;
        cursor: pointer;
    }

    .filter-sidebar input[type="checkbox"] {
        margin-right: 8px;
        vertical-align: middle;
    }

    .filter-sidebar input[type="number"] {
        width: 100%;
        padding: 8px 10px;
        margin: 6px 0 10px 0;
        border: 1px solid #e6e6e6;
        border-radius: 6px;
    }
    /* nút lọc */
    .filter-sidebar .btn-filter,
    .filter-sidebar button {
        width: 100%;
        padding: 8px 10px;
        border-radius: 6px;
        border: none;
        background: #ff6600;
        color: #fff;
        font-weight: 600;
        cursor: pointer;
    }

        .filter-sidebar .btn-filter:hover {
            background: #e65c00;
        }
/* Product list area (bên phải) */
.product-list {
    flex: 1;
    min-width: 0; /* để text-overflow hoạt động đúng */
    animation: fadeInUp 0.45s ease;
}
    /* Tiêu đề */
    .product-list h2 {
        color: #ff5722;
        font-size: 1.6rem;
        margin-bottom: 18px;
        font-weight: 700;
    }
/* Lưới sản phẩm (dùng riêng cho TrangSanPham) */
.grid-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
    align-items: start;
}
/* Nếu bạn vẫn có .products dùng cho featured, giữ như cũ. 
.grid-products chỉ dành cho trang danh sách sản phẩm. */
/* Thẻ sản phẩm (mở rộng trên .product-card hiện có) */
.product-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    }
    /* ảnh sản phẩm (hợp nhất selector để chắc chắn) */
    .product-card img,
    .product-img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
    }
    /* tên, giá */
    .product-card h5,
    .product-name,
    .product-card h4 {
        font-size: 1.02rem;
        margin: 10px 0 6px;
        color: #333;
        font-weight: 600;
    }

    .product-card .price,
    .product-price {
        color: #ff3d00;
        font-weight: 700;
        margin-bottom: 8px;
    }
    /* del cho giá cũ */
    .product-card del,
    .old-price {
        color: #888;
        margin-left: 8px;
        text-decoration: line-through;
        font-size: 0.95rem;
    }
    /* nút -> giữ dạng a.btn (không dùng button trong a) */
    .product-card .btn-primary,
    .product-card .btn-buy,
    .buy-btn,
    .btn-buy {
        display: inline-block;
        background: #ff6600;
        color: #fff;
        padding: 7px 12px;
        border-radius: 6px;
        text-decoration: none;
        border: none;
        font-weight: 600;
        cursor: pointer;
    }

        .product-card .btn-primary:hover,
        .product-card .btn-buy:hover,
        .buy-btn:hover,
        .btn-buy:hover {
            background: #e65c00;
        }
/* Responsive cho trang sản phẩm */
@media (max-width: 992px) {
    .product-page {
        flex-direction: column-reverse;
        gap: 18px;
        padding: 0 16px;
    }

    .sidebar {
        width: 100%;
    }

    .filter-sidebar {
        width: 100%;
    }

    .grid-products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 576px) {
    .grid-products {
        grid-template-columns: 1fr;
    }

    .product-card img,
    .product-img {
        height: 180px;
    }
}
.otp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
}

/* Card chứa form */
.otp-card {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* Tiêu đề */
.otp-title {
    text-align: center;
    margin-bottom: 20px;
}

/* Input OTP */
.otp-input {
    text-align: center;
    letter-spacing: 3px;
    font-weight: 500;
    font-size: 1.1rem;
}

/* Nút xác nhận */
.otp-btn {
    width: 100%;
    margin-top: 15px;
    transition: all 0.2s ease-in-out;
}

    .otp-btn:hover {
        background-color: #28a745cc;
        transform: translateY(-2px);
    }

/* Responsive điện thoại */
@media (max-width: 576px) {
    .otp-card {
        padding: 20px;
        border-radius: 10px;
    }

    .otp-input {
        font-size: 1rem;
    }
}