/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f5f5;
}

/* =========================
   TOP BAR
========================= */
.logo{
    width:60px;
    height:60px;
    border-radius:50%;
    object-fit:cover;
}
#top{
    width:100%;
    background:#1f2937;
    color:white;
}

#top-content{
    width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:8px 10px;
}

.top-bar-left span {
    margin-right: 15px;
}
.top-bar-right {
    display: flex;
    gap: 8px;
}
.top-bar-right a {
    color: white;
    text-decoration: none;
}
.top-bar-right a:hover {
    text-decoration: underline;
}

.header-container {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
}
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.brand-logo h1 {
    font-size: 20px;
    color: #2f5597;
    font-weight: 700;
    margin: 0;
}

/* Horizontal menu in header */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.main-nav ul li {
    position: relative;
}
.main-nav ul li a {
    display: block;
    padding: 8px 12px;
    color: #4b5563;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.main-nav ul li a:hover, .main-nav ul li a.active-link {
    color: #2f5597;
    background: #f3f4f6;
}

/* Dropdown menu */
.main-nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0px 4px 15px 0px rgba(0,0,0,0.08);
    padding: 8px 0;
    z-index: 999;
}
.main-nav ul li:hover ul {
    display: block;
}
.main-nav ul li ul li {
    width: 100%;
}
.main-nav ul li ul li a {
    padding: 10px 20px;
    font-size: 14px;
    color: #374151;
    border-radius: 0;
}
.main-nav ul li ul li a:hover {
    background: #f3f4f6;
    color: #2f5597;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-right .search-box {
    display: flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 20px;
    padding: 4px 12px;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}
.header-right .search-box:focus-within {
    border-color: #2f5597;
    background: white;
}
.header-right .search-box input {
    border: none;
    background: transparent;
    outline: none;
    padding: 6px 0;
    font-size: 14px;
    color: #374151;
    width: 150px;
}
.header-right .search-box .search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
}
.cart-btn {
    background: #2f5597;
    color: white !important;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: box-shadow 0.2s ease;
}
.cart-btn:hover {
    box-shadow: 0px 3px 8px 0px rgba(0,0,0,0.2);
}

/* =========================
   BANNER
========================= */

#anhnen{
    width:100%;
    max-width:1200px;
    height:auto;
    margin:20px auto;
}

#anh{
    width:100%;
    height:auto;
}

/* =========================
   WRAPPER
========================= */

#wapper{
    width:1200px;
    margin:30px auto;
}

/* =========================
   DANH MỤC
========================= */

#list-cate{
    background:white;
    padding:20px;
    border-radius:10px;
    margin-bottom:30px;
    box-shadow:0px 2px 10px 0px rgba(0,0,0,0.08);
}

#list-cate h1{
    margin-bottom:15px;
    color:#2f5597;
}

#list-cate ul{
    list-style:none;
}

#list-cate ul li{
    border-bottom:1px solid #ddd;
}

#list-cate ul li a{
    display:block;
    padding:10px;
    color:#333;
    text-decoration:none;
}

#list-cate ul li a:hover{
    color:#2f5597;
}

/* =========================
   CATE TITLE
========================= */

.cate-title{
    background:#2f5597;
    color:white;
    padding:15px;
    border-radius:8px;
    margin-bottom:20px;
}

/* =========================
   DANH SÁCH SẢN PHẨM
========================= */

.list-product{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}

.col-s-12,
.col-m-6,
.col-x-3{
    width:280px;
}

/* =========================
   PRODUCT CARD
========================= */

.product{
    background:white;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0px 2px 10px 0px rgba(0,0,0,0.08);
    transition:box-shadow 0.3s ease;
}

.product:hover{
    box-shadow:0px 8px 20px 0px rgba(0,0,0,0.15);
}

.kichco{
    height:280px;
    overflow:hidden;
}

.kichco img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.name{
    text-align:center;
    padding:10px;
}

.product p{
    min-height:60px;
}

.p-divider{
    margin:10px;
}

.buy{
    margin-left:10px;
    padding:8px 15px;
    background:#2f5597;
    color:white;
    border:none;
    border-radius:5px;
    cursor:pointer;
    transition:box-shadow 0.2s ease;
}

.buy:hover{
    box-shadow:0px 4px 10px 0px rgba(0,0,0,0.2);
}

.price{
    color:#b22222;
    text-align:right;
    padding:10px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1200px){

    #top-content,
    .container-inner,
    #wapper{
        width:95%;
    }

    .list-product{
        justify-content:center;
    }
}

@media(max-width:768px){

    #top-content{
        flex-direction:column;
        gap: 6px;
        text-align:center;
    }

    .header-main {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
    }

    .header-right {
        justify-content: center;
        width: 100%;
        gap: 12px;
    }

    .col-s-12,
    .col-m-6,
    .col-x-3{
        width:100%;
    }
}
/* =========================
   FOOTER
========================= */

#footer{
    width:100%;
    background:#1f2937;
    color:white;
    margin-top:50px;
}
.footer-ht a{
	text-decoration:none;
	color:white;
}


#footer-content{
    width:1200px;
    margin:auto;
    padding:40px 20px;

    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}

.footer-ht{
    width:23%;
}
@media(max-width:768px){
    #footer-content{
        flex-direction:column;
    }
    .footer-ht{
        width:100%;
        margin-bottom:20px;
    }
}

.footer-ht h2{
    margin-bottom:20px;
    color:#2f5597;
    font-size:22px;
}

.footer-ht p,
.footer-ht li{
    margin-bottom:12px;
    line-height:1.8;
}

.footer-ht ul{
    list-style:none;
    padding:0;
}

.footer-ht ul li a{
    color:white;
    text-decoration:none;
}

.footer-ht ul li a:hover{
    color:#2f5597;
}
.popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    z-index:9999;
}

.popup-content{
    width:400px;
    background:white;
    padding:30px;
    border-radius:10px;
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}

.popup-content input{
    width:100%;
    padding:12px;
    margin:10px 0;
}

.popup-content button{
    width:100%;
    padding:12px;
    background:#2f5597;
    color:white;
    border:none;
    cursor:pointer;
    transition:box-shadow 0.2s ease;
}

.popup-content button:hover{
    box-shadow:0px 4px 10px 0px rgba(0,0,0,0.2);
}

.popup-content span{
    float:right;
    font-size:30px;
    cursor:pointer;
}
/* =========================
   CHI TIẾT SẢN PHẨM
========================= */

.product-detail{
    width:1200px;
    margin:40px auto;
    background:#fff;
    padding:30px;
    border-radius:12px;
    box-shadow:0px 2px 15px 0px rgba(0,0,0,0.08);

    display:flex;
    gap:40px;
    align-items:flex-start;
}

.product-image{
    width:45%;
}

.product-image img{
    width:100%;
    border-radius:10px;
    border:1px solid #ddd;
}

.product-info{
    width:55%;
}

.product-info h2{
    font-size:32px;
    margin-bottom:15px;
    color:#222;
}

.product-price{
    font-size:30px;
    color:#b22222;
    font-weight:bold;
    margin-bottom:20px;
}

.description{
    line-height:1.8;
    color:#555;
    margin-bottom:20px;
}

.product-info ul{
    margin-left:20px;
    margin-bottom:25px;
}

.product-info ul li{
    margin-bottom:10px;
    line-height:1.6;
}

.quantity-box{
    margin-bottom:25px;
}

.quantity-box label{
    font-weight:bold;
    margin-right:10px;
}

.quantity-box input{
    width:80px;
    padding:8px;
    border:1px solid #ccc;
    border-radius:5px;
    text-align:center;
}

.product1{
    margin-top:20px;
}

.product1 .buy{
    padding:15px 35px;
    background:#2f5597;
    color:white;
    border:none;
    border-radius:6px;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:box-shadow 0.3s ease;
}

.product1 .buy:hover{
    box-shadow:0px 6px 15px 0px rgba(0,0,0,0.25);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    .product-detail{
        width:95%;
        flex-direction:column;
    }

    .product-image,
    .product-info{
        width:100%;
    }

    .product-info h2{
        font-size:26px;
    }

    .product-price{
        font-size:24px;
    }
}


/* =========================
   BADMINTON PREMIUM HEADER
========================= */


/* =========================
   PROMO SECTION
========================= */
.mid-content {
    display: flex;
    gap: 40px;
    margin: 40px auto;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px 0px rgba(0,0,0,0.05);
}
.mid-left {
    width: 45%;
}
.mid-left img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.08);
}
.mid-right {
    width: 55%;
}
.mid-right h2 {
    font-size: 28px;
    color: #2f5597;
    margin-bottom: 20px;
    line-height: 1.3;
}
.mid-right .box {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9fafb;
    border-left: 4px solid #2f5597;
    border-radius: 0 8px 8px 0;
}
.mid-right .box h3 {
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 5px;
}
.mid-right .box p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
    min-height: auto !important; 
}

/* =========================
   CATEGORY CARDS
========================= */
.danh-muc {
    margin: 40px auto;
}
.danh-muc h2 {
    font-size: 24px;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}
.danh-sach-card {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}
.card:hover {
    box-shadow: 0px 6px 15px 0px rgba(0,0,0,0.15);
}
.card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}
.card p {
    font-size: 14px;
    font-weight: bold;
    color: #4b5563;
    text-align: center;
    margin: 0;
}

/* =========================
   AUTHENTICATION STYLES (LOGIN/SIGNUP)
========================= */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 40px 16px;
}
.auth-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0px 4px 30px 0px rgba(0,0,0,0.12);
    padding: 44px 40px;
    width: 100%;
    max-width: 460px;
}
.auth-box h2 {
    font-size: 28px;
    font-weight: 800;
    color: #222;
    margin-bottom: 6px;
    text-align: center;
}
.auth-box .auth-sub {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 30px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: Arial, sans-serif;
    color: #222;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}
.form-group input:focus {
    border-color: #2f5597;
    background: #fff;
}
.form-group input.error { border-color: #e53935; }
.form-group .msg, .msg {
    font-size: 12px;
    margin-top: 4px;
    display: none;
}
.form-group .msg.error, .msg.error  { color: #e53935; display: block; }
.form-group .msg.success, .msg.success{ color: #43a047; display: block; }
.alert-box {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: center;
}
.alert-box.error   { background: #fdecea; color: #e53935; border: 1px solid #f5c6cb; display: block; }
.alert-box.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; display: block; }
.btn-auth {
    width: 100%;
    padding: 14px;
    background: #2f5597;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    margin-top: 6px;
    letter-spacing: 1px;
}
.btn-auth:hover {
    box-shadow: 0px 4px 12px 0px rgba(0,0,0,0.25);
}
.auth-divider {
    text-align: center;
    color: #bbb;
    font-size: 13px;
    margin: 20px 0;
    position: relative;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: #e0e0e0;
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-link {
    text-align: center;
    font-size: 14px;
    color: #555;
}
.auth-link a {
    color: #2f5597;
    font-weight: 700;
    text-decoration: none;
}
.auth-link a:hover { text-decoration: underline; }
.welcome-box, .success-box {
    display: none;
    text-align: center;
    padding: 10px 0;
}
.welcome-box .icon, .success-box .icon { font-size: 56px; margin-bottom: 10px; }
.welcome-box h3, .success-box h3 {
    font-size: 22px;
    margin-bottom: 8px;
}
.welcome-box h3 { color: #2f5597; }
.success-box h3 { color: #43a047; }
.welcome-box p, .success-box p {
    color: #666;
    font-size: 15px;
    margin-bottom: 24px;
}
.welcome-box .btn-home, .success-box a {
    display: inline-block;
    padding: 12px 32px;
    background: #2f5597;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
    margin: 0 6px 10px;
    transition: box-shadow 0.2s ease;
}
.welcome-box .btn-home:hover, .success-box a:hover {
    box-shadow: 0px 4px 10px 0px rgba(0,0,0,0.25);
}
.welcome-box .btn-logout {
    display: inline-block;
    padding: 12px 32px;
    background: #fff;
    color: #2f5597;
    border: 2px solid #2f5597;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0 6px 10px;
}
.welcome-box .btn-logout:hover {
    background: #2f5597;
    color: #fff;
}

/* =========================
   SHOPPING CART STYLES
========================= */
.cart-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px 0px rgba(0,0,0,0.05);
    margin: 40px auto;
    max-width: 1200px;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}
.cart-table th, .cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}
.cart-table th {
    color: #4b5563;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}
.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}
.cart-product img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.cart-product h3 {
    font-size: 16px;
    color: #1f2937;
    margin: 0;
}
.qty-control {
    display: flex;
    align-items: center;
    gap: 5px;
}
.qty-btn {
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s;
}
.qty-btn:hover {
    box-shadow: 0px 2px 5px 0px rgba(0,0,0,0.1);
}
.qty-input {
    width: 45px;
    height: 30px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}
.item-total {
    font-weight: bold;
    color: #b22222;
}
.delete-item-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: box-shadow 0.2s;
}
.delete-item-btn:hover {
    box-shadow: 0px 3px 8px 0px rgba(0,0,0,0.2);
}
.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #e5e7eb;
    padding-top: 20px;
}
.total-price {
    font-size: 24px;
    font-weight: bold;
    color: #b22222;
}
.btn-checkout {
    background: #2f5597;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}
.btn-checkout:hover {
    box-shadow: 0px 4px 12px 0px rgba(0,0,0,0.25);
}
.empty-cart {
    text-align: center;
    padding: 50px 0;
    color: #6b7280;
}
.empty-cart span {
    font-size: 50px;
    display: block;
    margin-bottom: 20px;
}

/* =========================
   SIMPLE ADMIN PANEL STYLES
   ========================= */
.admin-body {
    font-family: Arial, sans-serif !important;
    background-color: #f7f7f7 !important;
    color: #333 !important;
    margin: 20px !important;
    display: block !important;
    min-height: auto !important;
}
.admin-h1 {
    color: #2f5597;
    border-bottom: 2px solid #2f5597;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 24px;
}
.admin-nav-menu {
    margin-bottom: 20px;
}
.admin-nav-menu a, .admin-nav-menu button {
    background-color: #e0e0e0;
    color: black;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    display: inline-block;
}
.admin-nav-menu a:hover, .admin-nav-menu button:hover {
    background-color: #d0d0d0;
}
.admin-btn-logout {
    background-color: #d9534f !important;
    color: white !important;
    border-color: #d43f3a !important;
}
.admin-btn-logout:hover {
    background-color: #c9302c !important;
}
.admin-btn-add {
    background-color: #5cb85c;
    color: white;
    border: 1px solid #4cae4c;
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 20px;
}
.admin-btn-add:hover {
    background-color: #449d44;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.admin-table th, .admin-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.admin-table th {
    background-color: #2f5597;
    color: white;
}
.admin-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.admin-product-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.admin-action-btn {
    padding: 6px 12px;
    border-radius: 3px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-weight: bold;
    margin-right: 5px;
    font-size: 13px;
}
.admin-btn-edit {
    background-color: #f0ad4e;
    color: white;
    border-color: #eea236;
}
.admin-btn-edit:hover {
    background-color: #ec971f;
}
.admin-btn-delete {
    background-color: #d9534f;
    color: white;
    border-color: #d43f3a;
}
.admin-btn-delete:hover {
    background-color: #c9302c;
}
.admin-form-container {
    display: none;
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.admin-form-container h3 {
    margin-top: 0;
    color: #2f5597;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.admin-form-group {
    margin-bottom: 15px;
}
.admin-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.admin-form-group input, .admin-form-group select, .admin-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.admin-form-actions {
    margin-top: 20px;
}
.admin-form-actions button {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid #ccc;
    font-size: 14px;
}
.admin-btn-save {
    background-color: #5cb85c;
    color: white;
    border-color: #4cae4c !important;
    margin-right: 10px;
}
.admin-btn-save:hover {
    background-color: #449d44;
}
.admin-btn-cancel {
    background-color: #e6e6e6;
    color: black;
}
.admin-btn-cancel:hover {
    background-color: #d4d4d4;
}