*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

/* ================= BODY ================= */

body{
    background:url("/static/images/background_login.jpeg") no-repeat center center fixed;
    background-size:cover;
    min-height:100vh;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    z-index:-1;
}

/* ================= NAVBAR ================= */

nav{
    position:fixed;
    top:20px;
    left:50%;
    transform:translateX(-50%);
    width:95%;
    max-width:1450px;
    height:75px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 35px;
    border-radius:18px;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,255,255,.2);
    box-shadow:0 12px 25px rgba(0,0,0,.3);
    z-index:1000;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo img{
    width:55px;
}

.logo h2{
    color:#fff;
    font-size:28px;
    font-weight:600;
}

nav ul{
    display:flex;
    list-style:none;
    gap:30px;
}

nav ul li a{
    color:#fff;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

nav ul li a:hover{
    color:#60a5fa;
}

.menu-toggle{
    display:none;
    color:#fff;
    font-size:30px;
    cursor:pointer;
}

/* ================= HERO ================= */

.hero{
    padding:120px 20px 40px;
}

.container{
    max-width:1500px;
    margin:auto;
}

/* ================= HEADER ================= */

.top-section{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
    margin-bottom:40px;
}

.top-section h1{
    color:#fff;
    font-size:40px;
    margin-bottom:8px;
}

.top-section p{
    color:#ddd;
    font-size:17px;
}

.add-btn{
    padding:14px 30px;
    border-radius:10px;
    background:#2563eb;
    color:#fff;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
    box-shadow:0 10px 20px rgba(37,99,235,.35);
}

.add-btn:hover{
    background:#1d4ed8;
    transform:translateY(-3px);
}

/* ================= PRODUCT GRID ================= */

.product-grid{

    display:flex;

    flex-direction:column;

    gap:40px;

}

/* ================= PRODUCT CARD ================= */

.product-card{
    display:flex;
    flex-direction:column;
    height:100%;
    background:rgba(255,255,255,.12);
    backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,.18);
    border-radius:22px;
    overflow:hidden;
    transition:.35s;
}

.product-card:hover{
    transform:translateY(-8px);
    border-color:#60a5fa;
    box-shadow:0 20px 40px rgba(0,0,0,.35);
}

/* ================= MAIN IMAGE ================= */

.image-box{
    width:100%;
    aspect-ratio:16/9;
    background:#fff;
    overflow:hidden;
}

.image-box img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.4s;
}

.product-card:hover .image-box img{
    transform:scale(1.08);
}

/* ================= CONTENT ================= */

.content{
    flex:1;
    display:flex;
    flex-direction:column;
    padding:24px;
    color:#fff;
}

.content h2{
    font-size:28px;
    margin-bottom:12px;
    line-height:1.3;
}

.content p{

    color:#ddd;
    line-height:28px;
    margin-bottom:20px;

    white-space:pre-wrap;
    word-break:break-word;

    overflow:visible;

    height:auto;

}

/* ================= COUNTS ================= */

.count-box {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    padding:14px 0;
    border-top:1px solid rgba(255,255,255,.15);
    border-bottom:1px solid rgba(255,255,255,.15);
    color:#60a5fa;
    font-weight:600;
}
a{
    text-decoration:none;
    color:#60a5fa;
}

/* ================= GALLERY ================= */

.section-title{
    color:#fff;
    margin:18px 0 12px;
    font-size:18px;
    font-weight:600;
}

/* ================= SUB IMAGES ================= */

.sub-images{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin-bottom:20px;
}

.sub-images img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:10px;
    border:2px solid rgba(255,255,255,.15);
    transition:.3s;
    cursor:pointer;
}

.sub-images img:hover{
    transform:scale(1.05);
    border-color:#60a5fa;
}

/* ================= VIDEOS ================= */

.sub-videos{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    margin-bottom:20px;
}
.video-card{
    width:100%;
    aspect-ratio:16/9;
    background:#000;
    border-radius:12px;
    overflow:hidden;
    border:2px solid rgba(255,255,255,.15);
}
.video-card video{
    width:100%;
    height:100%;
    object-fit:contain;
}

.sub-videos video{
    width:100%;
    height:260px;
    object-fit:contain;
    background:#000;
    border-radius:12px;
    border:2px solid rgba(255,255,255,.15);
    transition:.3s;
}

.sub-videos video:hover{
    transform:scale(1.03);
    border-color:#60a5fa;
}

/* ================= BUTTONS ================= */

.btn-group{
    display:flex;
    gap:15px;
    margin-top:auto;
}

.edit-btn,
.delete-btn{
    flex:1;
    padding:13px;
    text-align:center;
    text-decoration:none;
    color:#fff;
    font-weight:600;
    border-radius:8px;
    transition:.3s;
}

.edit-btn{
    background:#0ea5e9;
}

.edit-btn:hover{
    background:#0284c7;
}

.delete-btn{
    background:#ef4444;
}

.delete-btn:hover{
    background:#dc2626;
}

/* ================= EMPTY ================= */

.empty{
    grid-column:1/-1;
    text-align:center;
    padding:80px;
    color:#fff;
    font-size:28px;
}

/* ================= LAPTOP ================= */

@media(max-width:1200px){

    .product-grid{
        grid-template-columns:repeat(auto-fit,minmax(380px,1fr));
    }

}

/* ================= TABLET ================= */

@media(max-width:1024px){

    nav{
        padding:0 20px;
    }

    nav ul{
        gap:18px;
    }

    .top-section h1{
        font-size:34px;
    }

    .product-grid{
        grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    }

    .sub-images{
        grid-template-columns:repeat(3,1fr);
    }

    .sub-videos{
        grid-template-columns:repeat(2,1fr);
    }

}

/* ================= MOBILE ================= */

@media(max-width:768px){

    nav{
        width:100%;
        top:0;
        left:0;
        transform:none;
        border-radius:0;
        padding:15px 20px;
        height:auto;
        flex-wrap:wrap;
    }

    .logo{
        flex:1;
    }

    .menu-toggle{
        display:block;
    }

    nav ul{
        display:none;
        flex-direction:column;
        width:100%;
        margin-top:15px;
        gap:0;
    }

    nav ul.show{
        display:flex;
    }

    nav ul li{
        width:100%;
    }

    nav ul li a{
        display:block;
        padding:15px;
        border-top:1px solid rgba(255,255,255,.15);
    }

    .hero{
        padding-top:120px;
    }

    .top-section{
        flex-direction:column;
        align-items:flex-start;
    }

    .top-section h1{
        font-size:30px;
    }

    .product-grid{
        grid-template-columns:1fr;
    }

    .image-box{
        aspect-ratio:16/10;
    }

    .sub-images{
        grid-template-columns:repeat(2,1fr);
    }

    .sub-videos{
        grid-template-columns:1fr;
    }

    .btn-group{
        flex-direction:column;
    }

}

/* ================= SMALL MOBILE ================= */

@media(max-width:480px){

    .logo img{
        width:42px;
    }

    .logo h2{
        font-size:20px;
    }

    .top-section h1{
        font-size:24px;
    }

    .content{
        padding:20px;
    }

    .content h2{
        font-size:22px;
    }

    .content p{
        min-height:auto;
    }

    .count-box{
        flex-direction:column;
        gap:8px;
        align-items:flex-start;
    }

    .sub-images{
        gap:10px;
    }

}
