:root {
    --bg-main: #FCFAEF; /* Cream background */
    --bg-card: #FFFFFF; /* Pure white for cards */
    --bg-card-hover: #F6F4EB;
    --text-primary: #3E2723;  /* Deep dark brown */
    --text-secondary: #8D6E63; /* Medium warm brown */
    --accent-primary: #5D4037; /* Brown accent */
    --accent-secondary: #D7CCC8;
    --gradient-1: linear-gradient(135deg, #5D4037 0%, #8D6E63 100%);
    --gradient-2: linear-gradient(135deg, #F6F4EB 0%, #EFEBE0 100%);
    --nav-glass: rgba(252, 250, 239, 0.85);
    --border-color: rgba(93, 64, 55, 0.1); 
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.1;
    font-weight: 800;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--nav-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #A39B9B;
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.btn-primary-small {
    background: var(--text-primary);
    color: var(--bg-card);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    background: #333333;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.2);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* Landing Entry */
.landing-entry {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--bg-main);
    padding: 0 5%;
}

.landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    width: 100%;
}

.landing-logo {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 2rem;
}

.landing-logo-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #A39B9B;
    font-weight: 400;
}

.landing-divider-horizontal {
    width: 100%;
    height: 1px;
    background-color: rgba(93, 64, 55, 0.1); /* Subtle track */
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.landing-divider-horizontal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--text-primary), transparent);
    animation: slideHorizontal 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transform: translateX(-100%);
}

@keyframes slideHorizontal {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.landing-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.4em;
    color: #9C908D;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    font-weight: 400;
}

.landing-divider-vertical {
    width: 1px;
    height: 50px;
    background-color: #D3C9C6;
    margin-bottom: 2.5rem;
}

.landing-tagline {
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

/* Decorative background glowing orb */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,0,0,0.03) 0%, rgba(253,252,248,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.floating-notebook {
    animation: float 6s ease-in-out infinite;
    max-width: 450px;
    width: 100%;
}

.floating-notebook img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px -12px rgba(0, 0, 0, 0.15));
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Features */
.features {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-main), #F7F5EF);
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #FFFFFF;
    color: var(--text-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.feature-svg {
    stroke: var(--accent-primary);
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Subjects */
.subjects {
    padding: 6rem 5%;
    text-align: center;
    background: var(--bg-main);
}

.subjects h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.subjects-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.subject-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.subject-svg {
    stroke: var(--accent-primary);
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.subject-card {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.subject-card:hover {
    background: #111111;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Products */
.products {
    padding: 8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.products-desc {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -3rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.products h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.product-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.product-card {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.premium-card {
    border-color: rgba(0, 0, 0, 0.2);
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.05);
}

.best-seller {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-1);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.product-image {
    background: #F8F7F3;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05) rotate(-2deg);
}

.product-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.strike {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-left: 0.5rem;
    font-weight: 400;
}

.product-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.product-features li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.bundle-card {
    grid-column: 1 / -1;
    background: var(--gradient-2);
    display: flex;
    flex-direction: row;
    position: relative;
    border: 1px solid var(--border-color);
}

.bundle-info {
    text-align: center;
    padding: 3rem;
    color: var(--text-primary);
}

.bundle-btn {
    background: #111111;
    color: white;
    margin-top: 1.5rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.bundle-btn:hover {
    background: #333333;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* FAQ Section */
.faq {
    padding: 8rem 5%;
    max-width: 800px;
    margin: 0 auto;
}

.faq h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--text-primary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* Cart Styles */
.nav-cart-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.basket-icon {
    stroke: var(--accent-primary);
    transition: stroke 0.3s ease;
}

.nav-cart-btn:hover .basket-icon {
    stroke: var(--text-primary);
}

.cart-count {
    background: #111111;
    color: white;
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 50px;
    font-weight: 800;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 1000;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-primary);
    line-height: 1;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.cart-item-price {
    font-weight: 600;
    color: var(--text-secondary);
}

.remove-item {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
}

.remove-item:hover {
    text-decoration: underline;
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-main);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .product-showcase {
        grid-template-columns: 1fr;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .stats {
        justify-content: center;
    }

    .nav-links {
        display: none; /* simple mobile override */
    }
}
