/* Mama Bhanja Bookstore | Vintage Scholar CSS */

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --primary: #8B4513;
    /* Saddle Brown */
    --secondary: #4A3728;
    /* Dark Wood */
    --accent: #D2B48C;
    /* Tan */
    --bg-parchment: #FDF5E6;
    /* Old Lace */
    --white: #FFFFFF;
    --text-dark: #2E2E2E;
    --text-muted: #555555;
    --border-sepia: rgba(139, 69, 19, 0.2);

    --font-heading: 'Libre Baskerville', serif;
    --font-body: 'Lora', serif;

    --transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-parchment);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.8;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
}

/* Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/p6.png');
    opacity: 0.3;
    pointer-events: none;
    z-index: 10000;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(253, 245, 230, 0.95);
    padding: 1rem 5%;
    border-bottom: 2px double var(--border-sepia);
    backdrop-filter: blur(5px);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo span {
    color: var(--secondary);
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    border-bottom: 1px solid var(--primary);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    background: linear-gradient(rgba(253, 245, 230, 0.7), rgba(253, 245, 230, 0.7)), url('https://picsum.photos/1920/1080?random=35098');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    padding: 1rem 3rem;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(139, 69, 19, 0.2);
}

.btn-filled {
    background: var(--primary);
    color: var(--white);
}

/* Cards */
.book-card {
    background: var(--white);
    padding: 1.5rem;
    border: 1px solid var(--border-sepia);
    transition: var(--transition);
    position: relative;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 55, 40, 0.1);
}

.book-img-wrap {
    width: 100%;
    height: 350px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-sepia);
}

.book-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.book-card:hover .book-img {
    transform: scale(1.05);
}

.book-cat {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

.book-title {
    font-size: 1.25rem;
    margin: 0.5rem 0;
    min-height: 4rem;
}

.book-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Cart Icon */
.cart-wrap {
    position: relative;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sections */
.section {
    padding: 8rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    font-style: italic;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

/* Forms */
.form-input {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-sepia);
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    outline: none;
    transition: 0.3s;
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--white);
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--bg-parchment);
    padding: 8rem 5% 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--bg-parchment);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--secondary);
    color: var(--white);
    padding: 1rem 3rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal */










@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}
/* --- Visibility Protocol CSS --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.reveal.js-hidden {
    opacity: 0;
    transform: translateY(40px);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* --- Global Badge UI Protocol --- */
.product-category, .category-tag {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1A1A1A !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    z-index: 10 !important;
    backdrop-filter: blur(5px) !important;
    border: none !important;
    margin: 0 !important;
    transform: none !important;
}

.product-img-wrapper {
    padding: 0 !important;
}
