* {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            font-family: Arial, sans-serif;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            background: linear-gradient(-45deg, #667eea, #764ba2, #6dd5ed, #2193b0);
            background-size: 400% 400%;
            animation: gradientBG 12s ease infinite;
        }

        @keyframes gradientBG {
            0% {
                background-position: 0% 50%;
            }
            50% {
                background-position: 100% 50%;
            }
            100% {
                background-position: 0% 50%;
            }
        }

        form {
            width: 100%;
            max-width: 460px;
            background: rgba(255, 255, 255, 0.95);
            padding: 28px 24px;
            border-radius: 22px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
            backdrop-filter: blur(10px);
            animation: fadeUp 0.8s ease;
        }

        @keyframes fadeUp {
            from {
                opacity: 0;
                transform: translateY(25px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        h2 {
            margin: 0 0 24px;
            text-align: center;
            font-size: 28px;
            color: #222;
            font-weight: 700;
        }

        label {
            display: block;
            margin-bottom: 8px;
            margin-top: 14px;
            font-size: 14px;
            font-weight: 600;
            color: #333;
        }

        input {
            width: 100%;
            padding: 14px 16px;
            border: 1px solid #d9d9d9;
            border-radius: 14px;
            font-size: 15px;
            outline: none;
            transition: all 0.3s ease;
            background: #fff;
        }

        input:focus {
            border-color: #5b7cff;
            box-shadow: 0 0 0 4px rgba(91, 124, 255, 0.15);
            transform: translateY(-1px);
        }

        input:hover {
            border-color: #aab8ff;
        }

        button {
            width: 100%;
            margin-top: 22px;
            padding: 15px;
            border: none;
            border-radius: 14px;
            background: linear-gradient(135deg, #5b7cff, #7b5cff);
            color: #fff;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 12px 24px rgba(91, 124, 255, 0.28);
        }

        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 16px 30px rgba(91, 124, 255, 0.35);
        }

        button:active {
            transform: scale(0.98);
        }

        @media (max-width: 768px) {
            body {
                padding: 16px;
                align-items: center;
            }

            form {
                max-width: 100%;
                padding: 22px 18px;
                border-radius: 18px;
            }

            h2 {
                font-size: 24px;
                margin-bottom: 20px;
            }

            input {
                font-size: 16px;
                padding: 13px 14px;
            }

            button {
                font-size: 16px;
                padding: 14px;
            }
        }

        @media (max-width: 480px) {
            h2 {
                font-size: 22px;
            }

            label {
                font-size: 13px;
            }

            form {
                padding: 20px 16px;
            }
        }


        /* ===== Product Card Animation ===== */

.product-card{
    border: none;
    border-radius: 14px;
    overflow: hidden;
    transition: all .35s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.product-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

/* ===== Image Hover Zoom ===== */

.product-card img{
    transition: transform .5s ease;
}

.product-card:hover img{
    transform: scale(1.08);
}

/* ===== Product Title ===== */

.product-name{
    font-weight: 600;
    min-height: 45px;
    transition: color .3s;
}

.product-card:hover .product-name{
    color: #5a4cff;
}

/* ===== Price Style ===== */

.old-price{
    font-size: 18px;
    font-weight: bold;
    color: #ff3b3b;
    margin-bottom: 12px;
}

/* ===== Buy Button Animation ===== */

.buy-now{
    width: 100%;
    border-radius: 10px;
    transition: all .3s ease;
    background: linear-gradient(135deg,#4f46e5,#7c3aed);
    border: none;
}

.buy-now:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: linear-gradient(135deg,#4338ca,#6d28d9);
}

/* ===== Modal Animation ===== */

.modal-content{
    border-radius: 16px;
    animation: popupFade .4s ease;
}

@keyframes popupFade{
    from{
        transform: translateY(30px);
        opacity:0;
    }
    to{
        transform: translateY(0);
        opacity:1;
    }
}

/* ===== Popup Image ===== */

#popupImage{
    transition: transform .4s;
}

#popupImage:hover{
    transform: scale(1.05);
}

/* ===== Responsive ===== */

@media (max-width:768px){

    .product-card{
        margin-bottom:20px;
    }

    .product-name{
        font-size:14px;
        min-height:auto;
    }

    .old-price{
        font-size:16px;
    }

}

/* ===== Page Fade Animation ===== */

.container{
    animation: pageFade .6s ease;
}

@keyframes pageFade{
    from{
        opacity:0;
        transform: translateY(20px);
    }
    to{
        opacity:1;
        transform: translateY(0);
    }
}

/* ===============================
   SHOP PREMIUM UI 2025
   Không đổi dữ liệu HTML/PHP
================================= */

:root{
    --shop-primary: #6a5cff;
    --shop-primary-2: #4f8cff;
    --shop-dark: #14162b;
    --shop-text: #22253a;
    --shop-muted: #7c839f;
    --shop-white: #ffffff;
    --shop-danger: #ff4d67;
    --shop-shadow: 0 18px 45px rgba(26, 31, 67, 0.12);
    --shop-shadow-hover: 0 24px 60px rgba(26, 31, 67, 0.20);
    --shop-radius: 18px;
}

body{
    background:
        radial-gradient(circle at top left, rgba(120,140,255,0.08), transparent 25%),
        radial-gradient(circle at bottom right, rgba(170,100,255,0.08), transparent 20%),
        #f5f7ff;
}

/* container animation */
.container{
    animation: shopPageFade 0.8s ease;
}

@keyframes shopPageFade{
    from{
        opacity: 0;
        transform: translateY(20px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

/* cột card */
.row > div{
    margin-bottom: 24px;
}

/* ===== PRODUCT CARD ===== */
.product-card{
    position: relative;
    border: none;
    border-radius: var(--shop-radius);
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
    box-shadow: var(--shop-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.product-card::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(106,92,255,0.06), rgba(79,140,255,0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover{
    box-shadow: var(--shop-shadow-hover);
}

.product-card:hover::before{
    opacity: 1;
}

/* sticker góc */
.product-card::after{
    content: "HOT";
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: linear-gradient(135deg, #ff6a88, #ff8a5b);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(255,106,136,0.28);
    letter-spacing: 0.3px;
}

/* ảnh */
.card-img-top{
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 0;
}

.product-card:hover .card-img-top{
    transform: scale(1.06);
}

/* body card */
.product-card .card-body{
    position: relative;
    z-index: 2;
    padding: 18px;
}

/* tên sản phẩm */
.product-name{
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--shop-text);
    min-height: 48px;
    transition: color 0.25s ease;
    margin-bottom: 12px;
}

.product-card:hover .product-name{
    color: var(--shop-primary);
}

/* giá */
.old-price{
    font-size: 22px;
    font-weight: 800;
    color: var(--shop-danger);
    margin-bottom: 14px;
    letter-spacing: 0.2px;
}

/* ===== NÚT MUA NGAY PHÁT SÁNG ===== */
.buy-now{
    position: relative;
    overflow: hidden;
    width: 100%;
    border: none !important;
    border-radius: 14px !important;
    padding: 12px 18px !important;
    font-size: 15px;
    font-weight: 700 !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--shop-primary-2), var(--shop-primary)) !important;
    box-shadow: 0 14px 28px rgba(95, 96, 255, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.buy-now:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(95, 96, 255, 0.38);
    filter: brightness(1.03);
}

.buy-now:active{
    transform: scale(0.985);
}

.buy-now::before{
    content: "";
    position: absolute;
    top: -40%;
    left: -120%;
    width: 60%;
    height: 180%;
    transform: rotate(25deg);
    background: rgba(255,255,255,0.35);
    transition: left 0.7s ease;
}

.buy-now:hover::before{
    left: 140%;
}

/* ===== MODAL ===== */
.modal-content{
    border: none !important;
    border-radius: 22px !important;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(16, 20, 50, 0.24);
    animation: modalRise 0.35s ease;
}

@keyframes modalRise{
    from{
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to{
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header{
    background: linear-gradient(135deg, #fafaff, #f3f6ff);
    border-bottom: 1px solid rgba(120,130,180,0.12) !important;
    padding: 18px 20px !important;
}

.modal-title{
    font-weight: 800;
    color: var(--shop-text);
}

.modal-body{
    padding: 20px !important;
}

#popupImage{
    border-radius: 16px !important;
    box-shadow: 0 12px 28px rgba(20, 22, 43, 0.10);
    transition: transform 0.35s ease;
}

#popupImage:hover{
    transform: scale(1.03);
}

.modal-body p{
    margin-bottom: 10px;
    color: var(--shop-text);
}

.modal-body strong{
    color: #1c2240;
}

.modal-body .form-control{
    border-radius: 14px;
    min-height: 48px;
    border: 1px solid rgba(120,130,180,0.18);
    box-shadow: none !important;
}

.modal-body .form-control:focus{
    border-color: rgba(106,92,255,0.55);
    box-shadow: 0 0 0 4px rgba(106,92,255,0.10) !important;
}

.modal-body .btn-success{
    border: none !important;
    border-radius: 14px;
    min-height: 50px;
    font-weight: 700;
    background: linear-gradient(135deg, #17b26b, #08a04b) !important;
    box-shadow: 0 14px 28px rgba(23,178,107,0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.modal-body .btn-success:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(23,178,107,0.30);
}

/* ===== SKELETON ===== */
.shop-skeleton .product-card{
    overflow: hidden;
}

.shop-skeleton .card-img-top,
.shop-skeleton .product-name,
.shop-skeleton .old-price,
.shop-skeleton .buy-now{
    position: relative;
    color: transparent !important;
    background: #e9edf8 !important;
    border-color: transparent !important;
}

.shop-skeleton .card-img-top{
    min-height: 240px;
}

.shop-skeleton .product-name{
    border-radius: 10px;
    min-height: 18px;
    margin-bottom: 12px;
}

.shop-skeleton .old-price{
    height: 22px;
    border-radius: 10px;
    width: 45%;
}

.shop-skeleton .buy-now{
    height: 44px;
    border-radius: 14px !important;
}

.shop-skeleton .card-img-top::after,
.shop-skeleton .product-name::after,
.shop-skeleton .old-price::after,
.shop-skeleton .buy-now::after{
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.58) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: skeletonMove 1.4s infinite;
}

@keyframes skeletonMove{
    100%{
        transform: translateX(100%);
    }
}

/* ===== SCROLL ANIMATION ===== */
.reveal-on-scroll{
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible{
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px){
    .card-img-top{
        height: 220px;
    }
}

@media (max-width: 767px){
    .container{
        margin-top: 18px !important;
        padding-left: 14px;
        padding-right: 14px;
    }

    .row > div{
        margin-bottom: 18px;
    }

    .product-card{
        border-radius: 16px;
    }

    .card-img-top{
        height: 210px;
    }

    .product-card .card-body{
        padding: 16px;
    }

    .product-name{
        font-size: 15px;
        min-height: auto;
    }

    .old-price{
        font-size: 20px;
    }

    .buy-now{
        font-size: 14px;
        padding: 11px 16px !important;
    }

    .modal-dialog{
        padding: 8px;
    }

    .modal-content{
        border-radius: 18px !important;
    }
}

@media (max-width: 480px){
    .card-img-top{
        height: 200px;
    }

    .product-card::after{
        top: 10px;
        right: 10px;
        font-size: 10px;
        padding: 5px 9px;
    }

    .old-price{
        font-size: 18px;
    }
}