/* =========================
FILE: style.css
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:#f4f4f4;
    color:#222;
}

/* HEADER */

header{
    background:#0b1023;
    color:white;
    padding:20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

.logo h1{
    font-size:35px;
}

.logo p{
    margin-top:10px;
}

.search-box{
    display:flex;
    gap:10px;
}

.search-box input{
    padding:12px;
    width:250px;
    border:none;
    border-radius:5px;
}

.search-box button{
    padding:12px 20px;
    border:none;
    background:#00b894;
    color:white;
    border-radius:5px;
    cursor:pointer;
}

/* HERO */

.hero{
    background:url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?q=80&w=1200');
    background-size:cover;
    background-position:center;
    height:450px;
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-overlay{
    background:rgba(0,0,0,0.7);
    padding:40px;
    border-radius:10px;
    text-align:center;
    color:white;
}

.hero-overlay h2{
    font-size:50px;
}

.hero-overlay p{
    margin-top:20px;
    font-size:22px;
}

/* CAROUSEL */

.carousel-section{
    padding:30px;
}

.carousel{
    position:relative;
    height:400px;
    overflow:hidden;
    border-radius:15px;
}

.carousel img{
    width:100%;
    height:400px;
    object-fit:cover;
    position:absolute;
    opacity:0;
    transition:1s;
}

.carousel img.active{
    opacity:1;
}

/* PRODUCTS */

.products-section{
    padding:40px;
}

.products-section h2{
    text-align:center;
    margin-bottom:30px;
    font-size:35px;
}

.products-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.product-card{
    background:white;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
    transition:0.4s;
}

.product-card:hover{
    transform:translateY(-10px);
}

.product-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.product-card h3{
    padding:15px;
}

.product-card p{
    padding:0 15px;
}

.product-card h4{
    padding:15px;
    color:#00b894;
}

.product-card button{
    margin:15px;
    padding:12px;
    width:calc(100% - 30px);
    border:none;
    background:#0b1023;
    color:white;
    border-radius:5px;
    cursor:pointer;
    font-size:16px;
}

/* PANELS */

.admin-panel,
.pdf-panel,
.ads-panel,
.affiliate-panel,
.newsletter,
.analytics,
.ads-section,
.affiliate-section{
    background:white;
    margin:30px;
    padding:30px;
    border-radius:15px;
}

.admin-panel h2,
.pdf-panel h2,
.ads-panel h2,
.affiliate-panel h2,
.newsletter h2,
.analytics h2,
.ads-section h2,
.affiliate-section h2{
    margin-bottom:20px;
}

.admin-panel input,
.admin-panel textarea,
.pdf-panel input,
.ads-panel textarea,
.affiliate-panel textarea,
.newsletter input{
    width:100%;
    padding:15px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:5px;
}

.admin-panel button,
.pdf-panel button,
.ads-panel button,
.affiliate-panel button,
.newsletter button{
    background:#00b894;
    color:white;
    border:none;
    padding:15px 25px;
    border-radius:5px;
    cursor:pointer;
}

/* ANALYTICS */

.analytics-box{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.analytic-card{
    background:#0b1023;
    color:white;
    padding:30px;
    border-radius:10px;
    text-align:center;
}

.analytic-card p{
    font-size:40px;
    margin-top:20px;
}

/* POPUP */

.popup,
.receipt-page,
.manual-page,
.download-page,
.success-page{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.8);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:1000;
}

.popup-content,
.receipt-box,
.manual-box,
.download-box,
.success-box{
    background:white;
    padding:40px;
    border-radius:15px;
    width:90%;
    max-width:500px;
    text-align:center;
    position:relative;
}

.closePopup{
    position:absolute;
    top:15px;
    right:20px;
    font-size:30px;
    cursor:pointer;
}

.popup-content p{
    margin:10px 0;
}

.popup-content button,
.receipt-box button,
.manual-box button,
.downloadBtn,
.success-box button{
    margin-top:20px;
    background:#00b894;
    color:white;
    border:none;
    padding:15px 25px;
    border-radius:5px;
    cursor:pointer;
}

.receipt-box input,
.manual-box input{
    width:100%;
    padding:15px;
    margin-top:15px;
}

/* ADS */

.ad-card,
.affiliate-card{
    background:#f1f1f1;
    padding:20px;
    margin-bottom:15px;
    border-radius:10px;
}

/* RESPONSIVE */

@media(max-width:768px){

    header{
        flex-direction:column;
        gap:20px;
    }

    .hero-overlay h2{
        font-size:35px;
    }

    .hero-overlay p{
        font-size:18px;
    }

}