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

body{
    background:#f5f5f5;
}

.header{
    background:white;
    text-align:center;
    padding:35px 20px;
    border-bottom:3px solid #DC2626;
}

.header h2{
    margin-top:15px;
    color:#111;
    font-size:34px;
    font-weight:bold;
}

.header p{
    margin-top:10px;
    color:#666;
    font-size:18px;
}

.search-section{
    padding:20px;
    text-align:center;
}

#searchBox{

    width:100%;

    max-width:500px;

    padding:12px;

    border:1px solid #ccc;

    border-radius:8px;

    font-size:16px;

    margin-bottom:15px;

}

#productContainer{
    width:90%;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    padding-bottom:40px;
}
.product-card{
    background:#ffffff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
    cursor:pointer;
    border:1px solid #ececec;
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.product-card img{
    width:100%;
    height:240px;
    object-fit:contain;
    background:#fafafa;
    padding:20px;
    border-bottom:1px solid #eee;
}

.product-name{
    padding:15px 15px 5px;
    font-size:18px;
    font-weight:700;
    color:#222;
    min-height:55px;
}

.product-category{
    padding:0 15px;
    color:#777;
    font-size:14px;
}

.product-price{
    padding:10px 15px;
    color:#E30613;
    font-size:28px;
    font-weight:bold;
}

.whatsapp-btn{
    display:block;
    margin:15px;
    padding:12px;
    text-align:center;
    background:#25D366;
    color:white;
    border-radius:10px;
    text-decoration:none;
    font-weight:bold;
}
.logo{
    font-family:"Courier New", Courier, monospace;
    font-size:60px;
    font-weight:bold;
    letter-spacing:2px;
}

.logo-red{
    color:#DC2626;
}

.logo-black{
    color:#111111;
}

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

.header h2{
    margin-top:10px;
    font-size:28px;
}

.header p{
    margin-top:8px;
    font-size:18px;
}
.navbar{
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
    padding:18px;
    background:white;
    border-bottom:1px solid #e5e5e5;
}

.nav-btn{
    padding:10px 20px;
    border:none;
    border-radius:25px;
    background:#f2f2f2;
    cursor:pointer;
    font-size:15px;
    font-weight:bold;
    transition:.3s;
}

.nav-btn:hover{
    background:#DC2626;
    color:white;
}

.nav-btn.active{
    background:#DC2626;
    color:white;
}
.category-section{
    width:90%;
    margin:20px auto;
}

.category-section h2{
    margin-bottom:20px;
    text-align:center;
    font-size:28px;
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
}

.category-card{
    background:white;
    padding:25px;
    text-align:center;
    border-radius:12px;
    cursor:pointer;
    font-weight:bold;
    font-size:18px;
    box-shadow:0 3px 10px rgba(0,0,0,.12);
    transition:.3s;
}

.category-card:hover{
    background:#E30613;
    color:white;
}
.hero{
    background:linear-gradient(135deg,#111,#333);
    color:white;
    padding:80px 20px;
    text-align:center;
}

.hero h1{
    font-size:48px;
    margin-bottom:20px;
}

.hero p{
    font-size:20px;
    color:#ddd;
    margin-bottom:35px;
}

.shop-btn{
    display:inline-block;
    background:#E30613;
    color:white;
    padding:15px 35px;
    border-radius:50px;
    text-decoration:none;
    font-size:18px;
    font-weight:bold;
    transition:.3s;
}

.shop-btn:hover{
    background:#c40010;
}
.logout-btn{
    position:absolute;
    top:20px;
    right:20px;
    background:#E30613;
    color:#fff;
    border:none;
    padding:10px 20px;
    border-radius:8px;
    cursor:pointer;
    font-weight:bold;
}

.logout-btn:hover{
    background:#c40010;
}
.page-container{
    width:95%;
    margin:30px auto;
}

.product-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

.product-table th,
.product-table td{
    border:1px solid #ddd;
    padding:12px;
}

.product-table th{
    background:#E30613;
    color:#fff;
}

.product-table tr:nth-child(even){
    background:#f7f7f7;
}

.product-table button{
    padding:8px 14px;
    margin-right:6px;
    cursor:pointer;
}
/* ===========================
   ADMIN LOGIN
=========================== */

.admin-login{
    width:420px;
    margin:80px auto;
    background:#ffffff;
    padding:40px;
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.15);
    text-align:center;
}

.admin-login .logo{
    margin-bottom:25px;
}

.admin-login h2{
    margin-bottom:25px;
    font-size:28px;
}

.admin-login input{
    width:100%;
    padding:14px;
    margin-bottom:18px;
    border:1px solid #ddd;
    border-radius:8px;
    font-size:16px;
}

.admin-login button{
    width:100%;
    padding:14px;
    border:none;
    border-radius:8px;
    background:#E30613;
    color:#fff;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
}

.admin-login button:hover{
    background:#c40010;
}

#loginMessage{
    margin-top:15px;
    font-weight:bold;
}
/* ===========================
   DASHBOARD
=========================== */

.dashboard-container{
    width:90%;
    max-width:1200px;
    margin:40px auto;

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:25px;
}

.dashboard-card{
    background:#ffffff;
    border-radius:16px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    cursor:pointer;
    transition:.25s;
    border:1px solid #eee;
}

.dashboard-card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.dashboard-card h3{
    font-size:24px;
    color:#222;
    margin-bottom:12px;
}

.dashboard-card p{
    color:#666;
    line-height:1.6;
}
.stats-container{
    width:95%;
    margin:30px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.stat-card{
    background:#fff;
    padding:25px;
    border-radius:14px;
    text-align:center;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

.stat-card h3{
    font-size:42px;
    color:#E30613;
    margin-bottom:10px;
}

.stat-card p{
    font-size:16px;
    color:#666;
    font-weight:bold;
}

.filter-bar{

    width:95%;
    margin:15px auto 25px;

    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;

}

.filter-bar select{

    min-width:180px;

    padding:12px;

    border:1px solid #ccc;

    border-radius:8px;

    font-size:15px;

    background:#fff;

}
.pagination{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:20px;

    margin:30px 0;

}

.pagination button{

    padding:10px 18px;

    border:none;

    border-radius:8px;

    background:#E30613;

    color:white;

    cursor:pointer;

    font-weight:bold;

}

.pagination button:hover{

    background:#c40010;

}

#pageInfo{

    font-size:16px;

    font-weight:bold;

}
.active-category{

    background:#E30613 !important;

    color:#fff !important;

}
/* ===========================
   CONTACT PAGE
=========================== */

.contact-card{

    width:95%;
    max-width:900px;

    margin:40px auto;

    background:#fff;

    padding:35px;

    border-radius:16px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.contact-card h2{

    margin-bottom:25px;

    color:#E30613;

}

.contact-card p{

    font-size:17px;

    line-height:1.8;

}

.contact-buttons{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

    margin-top:30px;

}

.contact-btn{

    background:#E30613;

    color:#fff;

    padding:14px 24px;

    border-radius:10px;

    text-decoration:none;

    font-weight:bold;

    transition:.3s;

}

.contact-btn:hover{

    background:#c40010;

}
/* ===========================
   PUBLIC NAVIGATION
=========================== */

.top-navbar{

    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;

    background:#ffffff;

    padding:15px 20px;

    border-bottom:1px solid #e5e5e5;

}

.top-nav-link{

    text-decoration:none;

    color:#333;

    font-weight:bold;

    padding:10px 18px;

    border-radius:25px;

    transition:.3s;

}

.top-nav-link:hover{

    background:#E30613;

    color:#fff;

}

.top-nav-link.active{

    background:#E30613;

    color:#fff;

}
/* ===========================
   EDIT PRODUCT
=========================== */

.form-container{

    width:90%;
    max-width:700px;

    margin:40px auto;

    background:#fff;

    padding:30px;

    border-radius:15px;

    box-shadow:0 5px 20px rgba(0,0,0,.10);

}

.form-container input,
.form-container select,
.form-container textarea{

    width:100%;

    padding:14px;

    margin-bottom:18px;

    border:1px solid #ddd;

    border-radius:8px;

    font-size:16px;

}

.form-container textarea{

    height:140px;

    resize:vertical;

}

#previewImage{

    width:220px !important;

    height:220px;

    object-fit:contain;

    display:block;

    margin:15px auto;

    border:1px solid #ddd;

    border-radius:10px;

    background:#fafafa;

    padding:10px;

}

#updateBtn{

    width:100%;

    padding:15px;

    background:#E30613;

    color:#fff;

    border:none;

    border-radius:10px;

    font-size:17px;

    font-weight:bold;

    cursor:pointer;

}

#updateBtn:hover{

    background:#c40010;

}

#message{

    margin-top:18px;

    text-align:center;

    font-weight:bold;

}
/* ===========================
   PRODUCT BUTTONS
=========================== */

.product-buttons{

    display:flex;

    gap:10px;

    margin:15px;

}

.whatsapp-btn,
.video-btn{

    flex:1;

    padding:12px;

    border:none;

    border-radius:10px;

    font-size:15px;

    font-weight:bold;

    cursor:pointer;

    text-align:center;

    text-decoration:none;

    transition:.3s;

}

.whatsapp-btn{

    background:#25D366;

    color:#fff;

}

.whatsapp-btn:hover{

    background:#1fa955;

}

.video-btn{

    background:#E30613;

    color:#fff;

}

.video-btn:hover{

    background:#c40010;

}
/* ===========================
   VIDEO MODAL
=========================== */

.video-modal{

    display:none;

    position:fixed;

    left:0;
    top:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.85);

    z-index:9999;

    justify-content:center;
    align-items:center;

}

.video-box{

    width:90%;
    max-width:900px;

    position:relative;

}

.video-box iframe{

    width:100%;

    aspect-ratio:16/9;

    border:none;

    border-radius:12px;

    background:#000;

}

#closeVideo{

    position:absolute;

    right:-10px;
    top:-45px;

    font-size:40px;

    color:#fff;

    cursor:pointer;

    font-weight:bold;

}

#closeVideo:hover{

    color:#E30613;

}