﻿/* ===== RESET ===== */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f5f7;
    margin: 0;
    padding: 0;
}

/* ===== HEADER ===== */

.main-header {
    background: #fff;
    padding: 15px 40px;
    border-bottom: 1px solid #eee;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */

.logo a {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
}

/* MENU */

.center-menu a {
    margin: 0 14px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.2s;
}

    .center-menu a:hover {
        color: #0071e3;
    }

/* ICONS */

.header-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

    .header-icons a {
        color: #111;
        font-size: 18px;
    }

        .header-icons a:hover {
            opacity: 0.6;
        }

/* USER MENU */

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-link {
    color: red;
    font-size: 13px;
    text-decoration: none;
}

    .logout-link:hover {
        text-decoration: underline;
    }

/* ===== MAIN CONTENT ===== */

.main-content {
    padding: 40px;
}

/* ===== PRODUCT GRID ===== */

.product-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 30px;
}

/* PRODUCT CARD */

.product-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    }

    .product-card img {
        width: 100%;
        height: 200px;
        object-fit: contain;
        margin-bottom: 10px;
    }

    .product-card h3 {
        font-size: 18px;
        margin: 10px 0;
    }

/* PRICE */

.price {
    color: red;
    font-weight: 600;
    margin-bottom: 10px;
}

/* PRODUCT ACTIONS */

.product-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

/* DETAIL LINK */

.link-detail {
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
}

    .link-detail:hover {
        text-decoration: underline;
    }

/* BUY BUTTON */

.btn-buy {
    background: #0071e3;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

    .btn-buy:hover {
        background: #005ecb;
    }

/* ===== SEARCH PAGE ===== */

.search-page {
    max-width: 1100px;
    margin: auto;
    padding: 40px;
}

.search-box {
    text-align: center;
    margin-bottom: 40px;
}

    .search-box input {
        width: 500px;
        padding: 14px 20px;
        border-radius: 30px;
        border: 1px solid #ddd;
        font-size: 16px;
    }

/* ===== AUTH (LOGIN / REGISTER) ===== */

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.auth-card {
    background: white;
    padding: 40px;
    width: 400px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

    .auth-card h2 {
        font-weight: 700;
        margin-bottom: 20px;
    }

    .auth-card input {
        width: 100%;
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 10px;
        border: 1px solid #ddd;
        background: #f2f2f7;
    }

    .auth-card textarea {
        width: 100%;
        padding: 12px;
        border-radius: 10px;
        border: 1px solid #ddd;
        background: #f2f2f7;
        margin-bottom: 15px;
    }

    .auth-card button {
        width: 100%;
        padding: 12px;
        border-radius: 25px;
        border: none;
        background: #0071e3;
        color: white;
        font-weight: 600;
    }

        .auth-card button:hover {
            background: #005ecb;
        }

/* ===== FOOTER ===== */

.footer {
    text-align: center;
    padding: 30px;
    background: white;
    border-top: 1px solid #eee;
    margin-top: 40px;
}

/* ===== CHAT BUBBLE ===== */

#chat-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #0071e3;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: 0.2s;
    z-index: 9999;
}

    #chat-bubble:hover {
        transform: scale(1.1);
    }


/* ===== CHATBOX ===== */

#chatbox {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 330px;
    height: 420px;
    background: white;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    z-index: 9999;
}


/* ===== CHAT HEADER ===== */

.chat-header {
    background: #0071e3;
    color: white;
    padding: 12px 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .chat-header span {
        cursor: pointer;
        font-size: 18px;
    }


/* ===== CHAT BODY ===== */

#chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
    background: #f5f5f7;
}


/* MESSAGE */

.user-msg {
    text-align: right;
    margin-bottom: 8px;
}

.bot-msg {
    text-align: left;
    margin-bottom: 8px;
}

.user-msg span {
    background: #0071e3;
    color: white;
    padding: 6px 10px;
    border-radius: 10px;
    display: inline-block;
}

.bot-msg span {
    background: #e5e5ea;
    padding: 6px 10px;
    border-radius: 10px;
    display: inline-block;
}


/* ===== CHAT INPUT ===== */

.chat-input-area {
    display: flex;
    border-top: 1px solid #eee;
}

#chat-input {
    flex: 1;
    border: none;
    padding: 12px;
    outline: none;
    font-size: 14px;
}

.chat-input-area button {
    background: #0071e3;
    color: white;
    border: none;
    padding: 0 18px;
    cursor: pointer;
}

    .chat-input-area button:hover {
        background: #005ecb;
    }
/* ===== HERO VIDEO ===== */

.hero-video {
    width: 100%;
    height: 420px; /* chỉnh chiều cao video */
    overflow: hidden;
    margin-bottom: 40px;
}

    .hero-video video {
        width: 100%;
        height: 100%;
        object-fit: cover; /* giúp video không bị méo */
    }

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 50%;
    font-weight: 600;
}
/* ===== CHECKOUT PAGE ===== */

body {
    background: #f5f6fa;
}

.checkout-box {
    width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    text-align: center;
}

    .checkout-box h2 {
        margin-bottom: 25px;
        font-weight: bold;
    }

    .checkout-box .form-control {
        margin-bottom: 15px;
        border-radius: 10px;
        padding: 12px;
    }

.btn-order {
    width: 100%;
    border-radius: 25px;
    padding: 12px;
    background: linear-gradient(to right, #1e90ff, #007bff);
    border: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

    .btn-order:hover {
        opacity: 0.9;
    }

.confirm.cshtml:@ {
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<div class="checkout-box" >
<h2 > Checkout</h2 >

@using (Html.BeginForm("PlaceOrder", "Cart", FormMethod.Post)) {
    <input type="text" name="name" class="form-control" placeholder="Full Name" required /> <input type="text" name="address" class="form-control" placeholder="Address" required /> <input type="text" name="phone" class="form-control" placeholder="Phone Number" required /> <button class="btn-order">Place Order</button>
}

</div >
/* ===== CHECKOUT PAGE (ADD ONLY - KHÔNG ẢNH HƯỞNG CSS CŨ) ===== */
.checkout-page {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkout-box {
    width: 380px;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
}

    .checkout-box h2 {
        margin-bottom: 20px;
        font-weight: 600;
    }

    .checkout-box input {
        width: 100%;
        margin-bottom: 12px;
        padding: 12px;
        border-radius: 10px;
        border: 1px solid #ddd;
        outline: none;
    }

        .checkout-box input:focus {
            border-color: #0071e3;
        }

.btn-order {
    width: 100%;
    padding: 12px;
    border-radius: 25px;
    background: #0071e3;
    border: none;
    color: white;
    font-weight: 600;
    transition: 0.2s;
}

    .btn-order:hover {
        background: #005ecb;
    }
.success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    background: #f5f7fa;
}

.success-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 400px;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 10px;
}

.success-box h2 {
    color: #28a745;
    margin-bottom: 10px;
}

.success-text {
    font-size: 16px;
}

.success-sub {
    color: gray;
    margin-bottom: 20px;
}

.success-actions a {
    display: inline-block;
    margin: 10px;
    padding: 10px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
}

.btn-home {
    background: #007bff;
    color: white;
}

.btn-continue {
    background: #28a745;
    color: white;
}

.success-actions a:hover {
    opacity: 0.8;
}
.success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: #f5f7fa;
}

.success-box {
    width: 600px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.success-icon {
    font-size: 60px;
    text-align: center;
}

.success-box h2 {
    text-align: center;
    color: #28a745;
}

.order-info p {
    margin: 5px 0;
}

.order-products {
    margin-top: 10px;
}

.product-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

    .product-item img {
        width: 60px;
        height: 60px;
        object-fit: cover;
    }

    .product-item .price {
        color: red;
        font-weight: bold;
    }

.total {
    text-align: right;
    color: red;
}

.success-actions {
    text-align: center;
    margin-top: 20px;
}

    .success-actions a {
        margin: 10px;
        padding: 10px 20px;
        border-radius: 20px;
        text-decoration: none;
        color: white;
    }

.btn-home {
    background: #007bff;
}

.btn-continue {
    background: #28a745;
}
.checkout-container {
    display: flex;
    justify-content: center;
    padding: 40px;
    background: #f5f7fa;
}

.checkout-box {
    width: 600px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 10px;
}

    .form-group input {
        width: 100%;
        padding: 8px;
        border-radius: 10px;
        border: 1px solid #ccc;
    }

.checkout-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}

    .checkout-item img {
        width: 60px;
        height: 60px;
        object-fit: cover;
    }

.item-info {
    flex: 1;
    margin-left: 10px;
}

.item-price {
    color: red;
    font-weight: bold;
}

.total span {
    color: red;
    font-size: 20px;
}

.btn-order {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 20px;
}
.payment-methods {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 10px;
}

    .payment-methods label {
        display: block;
        margin: 5px 0;
        cursor: pointer;
    }
.stock {
    color: green;
    font-size: 14px;
}

.out-stock {
    color: red;
    font-weight: bold;
}

.btn-disabled {
    background: gray;
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    cursor: not-allowed;
}
.filter-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

    .filter-bar select,
    .filter-bar input {
        padding: 8px 12px;
        border-radius: 20px;
        border: 1px solid #ccc;
    }

    .filter-bar button {
        background: #007bff;
        color: white;
        border: none;
        padding: 8px 15px;
        border-radius: 20px;
    }
.filter-bar {
    text-align: center;
    margin: 20px 0;
}

    .filter-bar button {
        margin: 5px;
        padding: 8px 14px;
        border: none;
        background: #007bff;
        color: white;
        border-radius: 20px;
        cursor: pointer;
    }

        .filter-bar button:hover {
            background: #0056b3;
        }
.filter-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

/* FILTER BUTTON */
.filter-dropdown button {
    padding: 10px 18px;
    border-radius: 20px;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
}

/* DROPDOWN */
.filter-menu {
    display: none;
    position: absolute;
    background: white;
    border-radius: 10px;
    padding: 10px;
    margin-top: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

    .filter-menu p {
        padding: 8px;
        cursor: pointer;
    }

        .filter-menu p:hover {
            background: #eee;
        }

/* SEARCH */
.filter-search {
    display: flex;
}

    .filter-search input {
        padding: 10px;
        border-radius: 20px 0 0 20px;
        border: 1px solid #ccc;
        width: 250px;
    }

    .filter-search button {
        padding: 10px 15px;
        border: none;
        background: #007bff;
        color: white;
        border-radius: 0 20px 20px 0;
    }
.filter-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.filter-dropdown button {
    padding: 10px 18px;
    border-radius: 20px;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
}

.filter-menu {
    display: none;
    position: absolute;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

    .filter-menu p {
        padding: 8px;
        cursor: pointer;
    }

        .filter-menu p:hover {
            background: #eee;
        }

.search-box {
    display: flex;
}

    .search-box input {
        padding: 10px;
        border-radius: 20px 0 0 20px;
        border: 1px solid #ccc;
    }

    .search-box button {
        padding: 10px 15px;
        border: none;
        background: #007bff;
        color: white;
        border-radius: 0 20px 20px 0;
    }