/*
Theme Name: AfricanSxStories Child
Theme URI: https://africansxstories.com
Description: Custom Astra child theme for AfricanSxStories ebook store
Author: William Waithaka
Template: astra
Version: 1.0
*/

:root{
    --bg:#0f0f0f;
    --card:#1a1a1a;
    --accent:#d4af37;
    --text:#f5f5f5;
    --muted:#b3b3b3;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family: 'Poppins', sans-serif;
}

a{
    color:var(--accent);
}

.site{
    background:var(--bg);
}

.ast-container{
    max-width:1200px;
}

.woocommerce ul.products li.product{
    background:var(--card);
    border-radius:18px;
    padding:15px;
    transition:0.3s ease;
    border:1px solid rgba(255,255,255,0.05);
}

.woocommerce ul.products li.product:hover{
    transform:translateY(-5px);
}

.woocommerce ul.products li.product img{
    border-radius:14px;
}

.woocommerce ul.products li.product h2{
    color:var(--text);
    font-size:18px;
}

.price{
    color:var(--accent)!important;
    font-weight:700;
}

.button,
.single_add_to_cart_button{
    background:var(--accent)!important;
    color:#000!important;
    border-radius:10px!important;
    font-weight:700!important;
}

.site-header{
    background:#111;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.main-header-menu a{
    color:var(--text)!important;
}

.main-header-menu a:hover{
    color:var(--accent)!important;
}

footer{
    background:#111;
    color:var(--muted);
}

/* HOMEPAGE */

.axs-homepage{
    background:#0f0f0f;
    color:#fff;
}

.axs-hero{
    position:relative;
    min-height:85vh;
    display:flex;
    align-items:center;
    padding:80px 5%;
    background:
        linear-gradient(to right, rgba(0,0,0,.9), rgba(0,0,0,.4)),
        url('https://images.unsplash.com/photo-1512820790803-83ca734da794?q=80&w=1600');
    background-size:cover;
    background-position:center;
}

.axs-hero-content{
    position:relative;
    z-index:2;
    max-width:650px;
}

.axs-badge{
    display:inline-block;
    background:#d4af37;
    color:#000;
    padding:8px 14px;
    border-radius:40px;
    font-size:14px;
    font-weight:700;
    margin-bottom:20px;
}

.axs-hero h1{
    font-size:58px;
    line-height:1.1;
    margin-bottom:20px;
    color:#fff;
}

.axs-hero p{
    font-size:18px;
    color:#ddd;
    margin-bottom:30px;
}

.axs-hero-buttons{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.axs-btn-primary,
.axs-btn-secondary{
    padding:14px 28px;
    border-radius:12px;
    font-weight:700;
    text-decoration:none;
}

.axs-btn-primary{
    background:#d4af37;
    color:#000;
}

.axs-btn-secondary{
    border:1px solid rgba(255,255,255,.2);
    color:#fff;
}

.axs-section{
    padding:70px 5%;
}

.axs-section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.axs-section-header h2{
    font-size:32px;
    color:#fff;
}

.axs-book-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
    gap:25px;
}

.axs-book-card{
    background:#1a1a1a;
    border-radius:18px;
    overflow:hidden;
    transition:.3s ease;
}

.axs-book-card:hover{
    transform:translateY(-6px);
}

.axs-book-card img{
    width:100%;
    display:block;
}

.axs-book-info{
    padding:18px;
}

.axs-book-info h3{
    font-size:18px;
    margin-bottom:10px;
    color:#fff;
}

.axs-price{
    color:#d4af37;
    font-weight:700;
}

.axs-horizontal-scroll{
    display:flex;
    overflow-x:auto;
    gap:20px;
    padding-bottom:10px;
}

.axs-scroll-card{
    min-width:200px;
    background:#1a1a1a;
    border-radius:16px;
    overflow:hidden;
}

.axs-scroll-card img{
    width:100%;
}

.axs-scroll-card h4{
    padding:12px 12px 4px;
    color:#fff;
}

.axs-scroll-card span{
    display:block;
    padding:0 12px 12px;
    color:#d4af37;
}

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

.axs-category-card{
    position:relative;
    min-height:180px;
    border-radius:20px;
    overflow:hidden;
    background:#1a1a1a;
    display:flex;
    align-items:flex-end;
    padding:25px;
    text-decoration:none;
}

.axs-category-card h3{
    position:relative;
    z-index:2;
    color:#fff;
}

.axs-category-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(to top, rgba(0,0,0,.9), transparent);
}

.axs-newsletter{
    padding:90px 5%;
    background:#111;
}

.axs-newsletter-content{
    max-width:700px;
    margin:auto;
    text-align:center;
}

.axs-newsletter h2{
    font-size:42px;
    margin-bottom:20px;
}

.axs-newsletter p{
    color:#bbb;
    margin-bottom:30px;
}

.axs-newsletter-form{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
    justify-content:center;
}

.axs-newsletter-form input{
    padding:16px;
    min-width:300px;
    border:none;
    border-radius:12px;
    background:#1f1f1f;
    color:#fff;
}

.axs-newsletter-form button{
    padding:16px 28px;
    border:none;
    border-radius:12px;
    background:#d4af37;
    color:#000;
    font-weight:700;
}

/* MOBILE */

@media(max-width:768px){

    .axs-hero{
        min-height:70vh;
    }

    .axs-hero h1{
        font-size:38px;
    }

    .axs-section-header h2{
        font-size:26px;
    }

    .axs-newsletter h2{
        font-size:30px;
    }

}