/* ============================================
   fasoEbook - Stylesheet
   Palette de couleurs naturelle et douce
   ============================================ */

/* Variables CSS */
:root {
    --color-forest: #14532D;
    --color-beige: #F5F5DC;
    --color-orange: #D97706;
    --color-light: #FAFAF9;
    --color-text: #1C1917;
    --color-text-secondary: #78716C;
    --color-white: #FFFFFF;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--color-forest);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    background-color: var(--color-white);
    box-shadow: var(--shadow-soft);
    padding: 0.1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
@media (max-width: 768px) {
    .navbar {
        padding: 0.05rem 0;
    }
    .navbar.scrolled {
        box-shadow: var(--shadow-medium);
        padding: 0.05rem 0;
    }
}


.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    padding: 0;
}

.nav-brand a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 100%;
}

.logo-img {
    height: 40px;
    width: auto;
    transform: scale(1.5);
    transform-origin: center;
    object-fit: contain;
    display: block;
    max-width: none;
}

.nav-center {
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-form {
    display: flex;
    width: 100%;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: 2px solid var(--color-beige);
    border-radius: 25px;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: var(--color-light);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-orange);
    background-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.search-btn:hover {
    color: var(--color-orange);
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.active {
    display: block;
}

.search-results-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--color-beige);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.search-results-item:last-child {
    border-bottom: none;
}

.search-results-item:hover {
    background-color: var(--color-light);
}

.search-results-item-cover {
    width: 50px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--color-beige);
}

.search-results-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-results-item-info {
    flex: 1;
    min-width: 0;
}

.search-results-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    color: var(--color-forest);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-results-item-info p {
    font-size: 0.85rem;
    color: var(--color-orange);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.search-results-item-info span {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.search-results-empty {
    padding: 2rem;
    text-align: center;
    color: var(--color-text-secondary);
}

.search-results-loading {
    padding: 1rem;
    text-align: center;
    color: var(--color-text-secondary);
}

.search-results-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Contact Page */
.contact {
    padding: 4rem 0;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info h2 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-orange);
    font-size: 1.5rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-forest);
}

.contact-item p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.contact-form-container {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.contact-form-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-beige);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    resize: vertical;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-orange);
}

/* FAQ Page */
.faq {
    padding: 4rem 0;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.faq-item {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--color-forest);
    flex: 1;
}

.faq-question i {
    color: var(--color-orange);
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin: 0;
}

.faq-footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.faq-footer p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

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

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover {
    color: var(--color-orange);
}

.nav-icon {
    position: relative;
}

.cart-link,
.account-link {
    font-size: 1.25rem;
    color: var(--color-text);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.cart-link:hover,
.account-link:hover {
    background-color: var(--color-light);
    color: var(--color-orange);
    transform: scale(1.1);
}

/* Account Dropdown Menu */
.account-dropdown {
    position: relative;
}

.account-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    list-style: none;
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.account-dropdown.active .account-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-menu li {
    margin: 0;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--color-text);
    font-weight: 500;
    transition: var(--transition);
    border-radius: 0;
    width: 100%;
    height: auto;
}

.account-menu a:hover {
    background-color: var(--color-light);
    color: var(--color-orange);
    transform: none;
}

.account-menu a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-orange);
    color: var(--color-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.mobile-menu-toggle,
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-search-toggle:hover,
.mobile-menu-toggle:hover {
    background-color: var(--color-light);
    color: var(--color-orange);
}

.mobile-search-toggle:active,
.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Messages */
.messages {
    padding: 1rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: var(--color-beige);
    border-left: 4px solid var(--color-orange);
}

.alert-error {
    background-color: #FEE2E2;
    border-left-color: #DC2626;
    color: #991B1B;
}

.alert-success {
    background-color: #D1FAE5;
    border-left-color: #10B981;
    color: #065F46;
}

/* Main content */
main {
    flex: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: #B45309;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-forest);
    border: 2px solid var(--color-forest);
}

.btn-secondary:hover {
    background-color: var(--color-forest);
    color: var(--color-white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-beige) 0%, var(--color-light) 100%);
    padding: 6rem 0;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    text-align: left;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-forest);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

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

/* Hero Carousel */
.hero-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.hero-carousel-track {
    position: relative;
    width: 100%;
    height: 450px;
}

.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.hero-image-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, var(--color-forest), #1a4d2e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    opacity: 0.8;
    box-shadow: var(--shadow-medium);
}

.hero-image-placeholder svg {
    width: 200px;
    height: 200px;
    stroke: var(--color-white);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-forest);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-forest);
    text-align: center;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    text-align: center;
}

.shop-header {
    padding: 4rem 0 2rem 0;
    text-align: center;
}

.shop-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Advantages Section */
/* Categories Section */
.categories {
    padding: 5rem 0;
    background-color: var(--color-white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    background-color: var(--color-light);
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.1), transparent);
    transition: left 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    background-color: var(--color-white);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-forest), #1a4d2e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.category-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-white);
    stroke: var(--color-white);
}

.category-icon i {
    font-size: 1.25rem;
    color: var(--color-white) !important;
    width: auto;
    height: auto;
    display: inline-block;
    line-height: 1;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(20, 83, 45, 0.3);
}

.category-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-forest);
    font-weight: 600;
    line-height: 1.3;
}

.category-card p {
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
    flex-grow: 1;
    line-height: 1.5;
    font-size: 0.85rem;
}

.category-link {
    color: var(--color-orange);
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.category-card:hover .category-link {
    gap: 0.75rem;
    color: var(--color-forest);
}

.category-link i {
    transition: var(--transition);
}

.category-card:hover .category-link i {
    transform: translateX(5px);
}

.no-categories {
    text-align: center;
    color: var(--color-text-secondary);
    grid-column: 1 / -1;
    padding: 2rem;
}

/* Category Page */
.category-page {
    padding: 4rem 0;
}

.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-header .page-title {
    margin-bottom: 1rem;
}

.category-header .page-subtitle {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.no-ebooks {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-secondary);
}

.no-ebooks p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Ebooks Grid */
.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.ebook-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.ebook-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.ebook-cover {
    width: 100%;
    height: 180px;
    background-color: var(--color-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ebook-cover img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.ebook-placeholder {
    font-size: 2.5rem;
    color: var(--color-text-secondary);
}

.ebook-info {
    padding: 1rem;
}

.ebook-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--color-forest);
    line-height: 1.3;
}

.ebook-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-orange);
    margin-bottom: 0.4rem;
}

.ebook-price-free {
    color: var(--color-forest) !important;
}

.ebook-pages {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: var(--color-beige);
}

.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-track {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.testimonial-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

.testimonial-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-stars svg {
    color: var(--color-orange);
    width: 18px;
    height: 18px;
}

.testimonial-text {
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-beige);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-avatar svg {
    width: 28px;
    height: 28px;
    color: var(--color-forest);
}

.testimonial-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--color-forest);
}

.testimonial-info p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.testimonial-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* Modal Styles - Mobile First */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--color-white);
    border-radius: 0;
    padding: 1.5rem;
    max-width: 100%;
    width: 100%;
    position: relative;
    box-shadow: none;
    margin: 0;
    animation: modalFadeIn 0.3s ease;
    min-height: 100vh;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--color-text-secondary);
}

.modal-close:hover {
    background-color: var(--color-beige);
    color: var(--color-forest);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    color: var(--color-forest);
}

.modal-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.testimonial-form {
    margin-top: 1.5rem;
}

.testimonial-form .form-group {
    margin-bottom: 1.5rem;
}

.testimonial-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-forest);
    font-weight: 500;
    font-size: 0.95rem;
}

.testimonial-form input[type="text"],
.testimonial-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-beige);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--color-white);
}

.testimonial-form input[type="text"]:focus,
.testimonial-form textarea:focus {
    outline: none;
    border-color: var(--color-forest);
    box-shadow: 0 0 0 3px rgba(20, 83, 45, 0.1);
}

.testimonial-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Rating Input */
.rating-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-star {
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #ddd;
}

.rating-star svg {
    width: 100%;
    height: 100%;
}

.rating-input input[type="radio"]:checked ~ .rating-star,
.rating-star:hover,
.rating-star:hover ~ .rating-star {
    color: var(--color-orange);
}

.rating-input:hover .rating-star {
    color: var(--color-orange);
    opacity: 0.5;
}

.rating-input:hover .rating-star:hover,
.rating-input:hover .rating-star:hover ~ .rating-star {
    opacity: 1;
}

/* Home FAQ Section */
.home-faq {
    padding: 5rem 0 0 0;
    margin-bottom: 0;
    background-color: var(--color-white);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.home-faq .faq-list {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-faq .faq-item {
    background-color: var(--color-light);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
}

.home-faq .faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.home-faq .faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.home-faq .faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--color-forest);
    flex: 1;
    font-weight: 600;
}

.home-faq .faq-icon {
    width: 20px;
    height: 20px;
    color: var(--color-orange);
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 1rem;
}

.home-faq .faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.home-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.home-faq .faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.home-faq .faq-answer p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.faq-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Newsletter Section */
.newsletter {
    padding: 5rem 0 0 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    color: var(--color-white);
    background: linear-gradient(135deg, #0d2818 0%, var(--color-forest) 25%, #1a4d2e 50%, var(--color-forest) 75%, #0d2818 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(217, 119, 6, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(217, 119, 6, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(245, 245, 220, 0.08) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.newsletter::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    animation: patternMove 20s linear infinite;
    pointer-events: none;
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-bottom: 5rem;
}

.newsletter-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.newsletter-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
    border-radius: 2px;
}

.newsletter-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.newsletter-form {
    margin-top: 2rem;
}

.newsletter-input-group {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background-color: rgba(255, 255, 255, 0.98);
    color: var(--color-text);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-orange);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.25), 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.newsletter-input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.7;
}

.newsletter-btn {
    padding: 0.875rem 2rem;
    white-space: nowrap;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
    position: relative;
    overflow: hidden;
}

.newsletter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.newsletter-btn:hover::before {
    left: 100%;
}

.newsletter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.newsletter-btn:active {
    transform: translateY(-1px);
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px dashed var(--color-beige);
    border-radius: 8px;
    background-color: var(--color-light);
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-forest);
    font-size: 0.95rem;
}

.file-label:hover {
    border-color: var(--color-forest);
    background-color: var(--color-beige);
}

.file-label svg {
    width: 20px;
    height: 20px;
}

.file-label-text {
    font-weight: 500;
}

.file-preview {
    margin-top: 1rem;
    display: none;
}

.file-preview.active {
    display: block;
}

.file-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.file-preview-remove {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--color-orange);
    color: var(--color-white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
}

.file-preview-remove:hover {
    background-color: var(--color-forest);
}

/* Desktop styles for modal */
@media (min-width: 768px) {
    .modal {
        align-items: center;
        padding: 1rem;
    }
    
    .modal-content {
        border-radius: 16px;
        padding: 2.5rem;
        max-width: 600px;
        width: 100%;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        margin: auto;
        min-height: auto;
    }
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-white);
    border: 2px solid var(--color-forest);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    box-shadow: var(--shadow-soft);
}

.carousel-btn:hover {
    background-color: var(--color-forest);
    color: var(--color-white);
    box-shadow: var(--shadow-medium);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-forest);
    transition: var(--transition);
}

.carousel-btn:hover svg {
    stroke: var(--color-white);
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-forest);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-indicator:hover {
    background-color: var(--color-forest);
    opacity: 0.7;
}

.carousel-indicator.active {
    background-color: var(--color-forest);
}

/* Ebook Detail */
.ebook-detail {
    padding: 4rem 0;
}

.ebook-detail-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.ebook-detail-cover {
    background-color: var(--color-beige);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.ebook-detail-cover img {
    width: 100%;
    height: auto;
}

.ebook-placeholder-large {
    font-size: 8rem;
    text-align: center;
    padding: 4rem 0;
    color: var(--color-text-secondary);
}

.ebook-detail-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ebook-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

.ebook-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-orange);
    margin-bottom: 2rem;
}

.ebook-price-large.ebook-price-free {
    color: var(--color-forest) !important;
}

.ebook-description {
    margin-bottom: 2rem;
}

.ebook-description h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.ebook-description p {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Ebook Reader */
.ebook-reader {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--color-light);
}

.reader-header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-soft);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.reader-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.reader-title h1 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--color-text);
}

.reader-pages {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.reader-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-icon {
    padding: 0.5rem;
    min-width: auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reader-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.reader-controls {
    background-color: var(--color-white);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.reader-control-btn {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.reader-control-btn:hover {
    background-color: var(--color-light);
    border-color: var(--color-orange);
    color: var(--color-orange);
}

.reader-control-btn:active {
    transform: scale(0.95);
}

.reader-page-info {
    font-weight: 600;
    color: var(--color-text);
    min-width: 80px;
    text-align: center;
    font-size: 0.9rem;
}

.reader-zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid var(--color-border);
}

.zoom-level {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    min-width: 50px;
    text-align: center;
}

.reader-viewer {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #525252;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pdf-viewer,
#pdf-viewer-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #525252;
    display: block;
}

#pdf-viewer {
    min-height: 600px;
}

.reader-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-white);
    z-index: 10;
}

.reader-loading p {
    margin-top: 1rem;
    font-size: 1rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-read {
    background-color: var(--color-forest);
}

.btn-read:hover {
    background-color: #1a5a1a;
}

/* Checkout */
.checkout {
    padding: 4rem 0;
}

.checkout-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}

.checkout-summary {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.checkout-ebook {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.checkout-cover {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.checkout-ebook-info h3 {
    margin-bottom: 0.5rem;
}

.checkout-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-orange);
}

.checkout-form {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.payment-instructions {
    margin-bottom: 2rem;
}

.payment-info-box {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.payment-info-box h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-info-box h3 i {
    font-size: 1.8rem;
}

.payment-number {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.payment-number strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.orange-money-link {
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: var(--transition);
}

.orange-money-link:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.payment-steps {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.payment-steps p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.payment-steps ol {
    margin-left: 1.5rem;
    line-height: 2;
}

.payment-steps li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.payment-steps li strong {
    color: var(--color-white);
    font-weight: 700;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid var(--color-beige);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--color-orange);
    background-color: var(--color-light);
}

.payment-option input[type="radio"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-label {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.payment-label strong {
    font-size: 1.1rem;
    color: var(--color-forest);
    margin-bottom: 0.25rem;
}

.payment-label small {
    color: var(--color-text-secondary);
}

.checkout-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Success Page */
.success {
    padding: 4rem 0;
}

.success-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 2rem;
}

.success-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.success-details {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    margin: 2rem 0;
}

.success-ebook {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.success-ebook img {
    width: 100px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.success-warning {
    background-color: var(--color-beige);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    color: var(--color-text-secondary);
}

.payment-reminder {
    text-align: left;
    margin-top: 2rem;
}

.payment-reminder h3 {
    color: var(--color-forest);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.payment-reminder h3 i {
    color: #ff6600;
}

.payment-reminder p {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.payment-reminder p strong {
    color: var(--color-forest);
}

.payment-instructions-box {
    background-color: #f8f9fa;
    border-left: 4px solid #ff6600;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.payment-instructions-box p {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-forest);
}

.payment-instructions-box ol {
    margin-left: 1.5rem;
    line-height: 2;
}

.payment-instructions-box li {
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.payment-instructions-box li strong {
    color: #ff6600;
}

.payment-instructions-box a {
    color: #ff6600;
    font-weight: 600;
    text-decoration: none;
}

.payment-instructions-box a:hover {
    text-decoration: underline;
}

/* Auth Pages */
.auth {
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.auth-content {
    max-width: 450px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.auth-content h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-forest);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-beige);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-orange);
}

.auth-link {
    text-align: center;
    color: var(--color-text-secondary);
}

.auth-link a {
    color: var(--color-orange);
    font-weight: 600;
}

/* My Orders */
.my-orders {
    padding: 4rem 0;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

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

.order-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.order-status.paid {
    background-color: #D1FAE5;
    color: #065F46;
}

.order-status.pending {
    background-color: #FEF3C7;
    color: #92400E;
}

.order-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.order-ebook {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.order-ebook img {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
}

.order-ebook h4 {
    margin-bottom: 0.5rem;
}

.order-date {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.no-ebooks,
.no-orders {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-secondary);
}

.text-center {
    text-align: center;
}

/* Cart */
.cart {
    padding: 2rem 0;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    background-color: var(--color-white);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cart-item-cover {
    width: 70px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--color-beige);
}

.cart-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h3 {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.3;
}

.cart-item-info h3 a:hover {
    color: var(--color-orange);
}

.cart-item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-orange);
    margin-bottom: 0.3rem;
}

.cart-item-quantity {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
}

.btn-remove {
    color: #DC2626;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.btn-remove:hover {
    background-color: #FEE2E2;
    transform: scale(1.1);
}

.cart-summary {
    position: static;
    height: fit-content;
}

.cart-total {
    background-color: var(--color-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.cart-total h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 2px solid var(--color-beige);
    margin-top: 1rem;
    font-size: 1.1rem;
}

.total-line strong {
    color: var(--color-orange);
    font-size: 1.3rem;
}

.cart-total .btn {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    font-size: 0.95rem;
}

.cart-empty {
    text-align: center;
    padding: 2rem 1rem;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

/* Profile */
.profile {
    padding: 4rem 0;
}

.profile-content {
    max-width: 600px;
    margin: 0 auto;
}

.profile-info {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.profile-avatar {
    font-size: 5rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.profile-info h2 {
    margin-bottom: 0.5rem;
}

.profile-email {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Ebook Card Actions */
.ebook-card-actions {
    padding: 0.75rem;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-beige);
}

.btn-add-cart {
    width: 100%;
    padding: 0.5rem;
    background-color: var(--color-orange);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-cart:hover {
    background-color: #B45309;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-download {
    background-color: var(--color-forest) !important;
}

.btn-download:hover {
    background-color: #0f3d1f !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.ebook-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ebook-checkout-form {
    display: inline-block;
    margin-left: 1rem;
}

.add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Checkout Items */
.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.checkout-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background-color: var(--color-light);
    border-radius: 8px;
}

.checkout-cover-small {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.checkout-item-info p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.checkout-item-price {
    font-weight: 700;
    color: var(--color-orange);
}

.checkout-total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-beige);
    font-size: 1.5rem;
    text-align: right;
    color: var(--color-forest);
}

/* Scroll Effects */
html {
    scroll-behavior: smooth;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.footer {
    background-color: var(--color-forest);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--color-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design - Desktop */
@media (min-width: 769px) {
    .cart {
        padding: 4rem 0;
    }
    
    .cart-content {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
    
    .cart-items {
        gap: 1.5rem;
    }
    
    .cart-item {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .cart-item-cover {
        width: 100px;
        height: 130px;
    }
    
    .cart-item-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-price {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .cart-item-quantity {
        font-size: 0.9rem;
    }
    
    .btn-remove {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .cart-summary {
        position: sticky;
        top: 100px;
    }
    
    .cart-total {
        padding: 2rem;
    }
    
    .cart-total h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .total-line {
        font-size: 1.25rem;
        padding: 1rem 0;
    }
    
    .total-line strong {
        font-size: 1.5rem;
    }
    
    .cart-total .btn {
        padding: 0.75rem 2rem;
        font-size: 1rem;
        width: auto;
        margin-bottom: 1rem;
    }
    
    .cart-empty {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-center {
        display: none !important;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        padding: 1rem;
        box-shadow: var(--shadow-medium);
        z-index: 999;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-center.active {
        display: block !important;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-results {
        max-height: 300px;
        position: fixed;
        top: calc(70px + 60px);
        left: 1rem;
        right: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .search-results-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .search-results-item-cover {
        width: 40px;
        height: 55px;
    }
    
    .search-results-item-info h4 {
        font-size: 0.85rem;
    }
    
    .search-results-item-info p {
        font-size: 0.8rem;
    }
    
    .search-results-item-info span {
        font-size: 0.7rem;
    }
    
    .mobile-search-toggle {
        display: flex;
        order: 2;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 3;
    }
    
    .navbar .container {
        gap: 1rem;
        flex-wrap: nowrap;
    }
    
    .nav-brand {
        order: 1;
    }
    
    .mobile-search-toggle {
        order: 2;
        margin-left: auto;
    }
    
    .mobile-menu-toggle {
        order: 3;
    }
    
    .nav-menu {
        order: 4;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--color-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-medium);
        transition: left 0.3s ease;
        gap: 1rem;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Account dropdown dans le menu mobile */
    .nav-menu .account-dropdown {
        position: static;
    }
    
    .nav-menu .account-menu {
        position: static;
        top: auto;
        right: auto;
        transform: none;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        margin-top: 0;
        box-shadow: none;
        border-radius: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }
    
    .nav-menu .account-dropdown.active .account-menu {
        opacity: 1;
        visibility: visible;
        max-height: 300px;
        padding: 0.5rem 0;
        margin-top: 0.5rem;
        border-top: 1px solid var(--color-beige);
    }
    
    .nav-menu .account-menu li {
        margin: 0;
    }
    
    .nav-menu .account-menu a {
        padding: 0.75rem 1rem;
        border-radius: 0;
    }
    
    .cart {
        padding: 1.5rem 0;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cart-items {
        gap: 0.75rem;
    }
    
    .cart-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .cart-item-cover {
        width: 60px;
        height: 80px;
    }
    
    .cart-item-info h3 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .cart-item-price {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .cart-item-quantity {
        font-size: 0.8rem;
    }
    
    .btn-remove {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        padding: 0.4rem;
    }
    
    .cart-total {
        padding: 1rem;
    }
    
    .cart-total h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .total-line {
        font-size: 1rem;
        padding: 0.5rem 0;
    }
    
    .total-line strong {
        font-size: 1.2rem;
    }
    
    .cart-total .btn {
        padding: 0.65rem;
        font-size: 0.9rem;
    }
    
    .cart-summary {
        position: static;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-carousel-track {
        height: 280px;
    }
    
    .hero-image-placeholder {
        height: 280px;
    }
    
    .hero-image-placeholder svg {
        width: 120px;
        height: 120px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .ebook-detail {
        padding: 2rem 0;
    }
    
    .ebook-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .ebook-detail-info h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .ebook-meta {
        font-size: 0.9rem;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .ebook-price-large {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .ebook-description h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .ebook-description p {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .ebook-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .ebook-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .ebook-checkout-form {
        width: 100%;
        margin-left: 0 !important;
    }
    
    .ebook-checkout-form .btn {
        width: 100%;
    }
    
    .ebook-placeholder-large {
        font-size: 5rem;
        padding: 2.5rem 0;
    }
    
    .reader-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .reader-title h1 {
        font-size: 1.1rem;
    }
    
    .reader-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .reader-actions .btn {
        flex: 1;
        min-width: 120px;
    }
    
    .reader-controls {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .reader-control-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .reader-page-info {
        min-width: 60px;
        font-size: 0.85rem;
    }
    
    .reader-zoom-controls {
        padding-left: 0.5rem;
        gap: 0.25rem;
    }
    
    .zoom-level {
        min-width: 40px;
        font-size: 0.8rem;
    }
    
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .order-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .checkout-actions {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
    
    .testimonials {
        padding: 3rem 0;
    }
    
    .testimonials-carousel {
        max-width: 100%;
        padding: 0 3rem;
    }
    
    .home-faq {
        padding: 3rem 0 0 0;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .home-faq .faq-question {
        padding: 1rem 1.25rem;
    }
    
    .home-faq .faq-question h3 {
        font-size: 1rem;
    }
    
    .home-faq .faq-icon {
        width: 18px;
        height: 18px;
    }
    
    .home-faq .faq-answer {
        padding: 0 1.25rem;
    }
    
    .home-faq .faq-item.active .faq-answer {
        padding: 0 1.25rem 1rem;
    }
    
    .home-faq .faq-answer p {
        font-size: 0.9rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.1rem;
    }
    
    .category-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 0.6rem;
    }
    
    .category-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .category-icon i {
        font-size: 1.15rem;
    }
    
    .category-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.45rem;
    }
    
    .category-card p {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    
    .category-link {
        font-size: 0.75rem;
    }
    
    .newsletter {
        padding: 3rem 0 0 0;
    }
    
    .newsletter-content {
        padding-bottom: 3rem;
    }
    
    .newsletter-title {
        font-size: 1.75rem;
    }
    
    .newsletter-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .newsletter-input-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-input {
        width: 100%;
    }
    
    .newsletter-btn {
        width: 100%;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-prev {
        left: 0;
    }
    
    .carousel-next {
        right: 0;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .testimonials-track {
        min-height: 280px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .testimonials-carousel {
        padding: 0 2.5rem;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonials-track {
        min-height: 260px;
    }
    
    .home-faq {
        padding: 2.5rem 0 0 0;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .home-faq .faq-list {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .home-faq .faq-question {
        padding: 0.875rem 1rem;
    }
    
    .home-faq .faq-question h3 {
        font-size: 0.95rem;
    }
    
    .home-faq .faq-icon {
        width: 16px;
        height: 16px;
    }
    
    .home-faq .faq-answer {
        padding: 0 1rem;
    }
    
    .home-faq .faq-item.active .faq-answer {
        padding: 0 1rem 0.875rem;
    }
    
    .home-faq .faq-answer p {
        font-size: 0.875rem;
        line-height: 1.6;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-wrapper {
        gap: 1.5rem;
    }
    
    .hero-carousel-track {
        height: 230px;
    }
    
    .hero-image-placeholder {
        height: 230px;
    }
    
    .hero-image-placeholder svg {
        width: 100px;
        height: 100px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .ebook-detail {
        padding: 1.5rem 0;
    }
    
    .ebook-detail-content {
        gap: 1.5rem;
    }
    
    .ebook-detail-info h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .ebook-meta {
        font-size: 0.85rem;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .ebook-price-large {
        font-size: 1.35rem;
        margin-bottom: 1.25rem;
    }
    
    .ebook-description {
        margin-bottom: 1.5rem;
    }
    
    .ebook-description h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .ebook-description p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .ebook-actions {
        gap: 0.5rem;
    }
    
    .ebook-actions .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .ebook-placeholder-large {
        font-size: 4rem;
        padding: 2rem 0;
    }
    
    .reader-header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .reader-title h1 {
        font-size: 1rem;
    }
    
    .reader-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .reader-actions .btn {
        width: 100%;
    }
    
    .reader-controls {
        padding: 0.5rem;
        gap: 0.4rem;
    }
    
    .reader-control-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .reader-page-info {
        min-width: 50px;
        font-size: 0.8rem;
    }
    
    .reader-zoom-controls {
        padding-left: 0.4rem;
        gap: 0.2rem;
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding-top: 0.4rem;
        width: 100%;
        justify-content: center;
    }
    
    .zoom-level {
        min-width: 35px;
        font-size: 0.75rem;
    }
    
    .reader-loading p {
        font-size: 0.9rem;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }
    
    .category-card {
        padding: 0.875rem;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.4rem;
    }
    
    .category-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .category-icon i {
        font-size: 1rem;
    }
    
    .category-card h3 {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }
    
    .category-card p {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
        line-height: 1.3;
    }
    
    .category-link {
        font-size: 0.7rem;
        gap: 0.3rem;
    }
    
    .newsletter {
        padding: 2.5rem 0 0 0;
    }
    
    .newsletter-content {
        padding-bottom: 2.5rem;
    }
    
    .newsletter-title {
        font-size: 1.5rem;
    }
    
    .newsletter-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
    
    .newsletter-input-group {
        gap: 0.75rem;
    }
    
    .newsletter-input {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .newsletter-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .modal-content {
        padding: 1.25rem;
    }
    
    .modal-content h2 {
        font-size: 1.25rem;
    }
    
    .modal-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-form .form-group {
        margin-bottom: 1.25rem;
    }
    
    .rating-star {
        width: 32px;
        height: 32px;
    }
    
    .file-label {
        padding: 0.65rem 0.85rem;
        font-size: 0.875rem;
    }
    
    .file-label svg {
        width: 18px;
        height: 18px;
    }
    
    .ebooks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .ebook-cover {
        height: 140px;
    }
    
    .ebook-placeholder {
        font-size: 2rem;
    }
    
    .ebook-info {
        padding: 0.75rem;
    }
    
    .ebook-info h3 {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }
    
    .ebook-price {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .ebook-pages {
        font-size: 0.75rem;
    }
    
    .ebook-card-actions {
        padding: 0.5rem;
    }
    
    .btn-add-cart {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.5rem;
    }
    
    .category-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .category-icon i {
        font-size: 1.1rem;
    }
    
    .category-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .category-card p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }
    
    .category-link {
        font-size: 0.75rem;
    }
    
    .cart {
        padding: 1rem 0;
    }
    
    .cart-item {
        padding: 0.65rem;
        gap: 0.65rem;
    }
    
    .cart-item-cover {
        width: 55px;
        height: 70px;
    }
    
    .cart-item-info h3 {
        font-size: 0.8rem;
    }
    
    .cart-item-price {
        font-size: 0.85rem;
    }
    
    .cart-item-quantity {
        font-size: 0.75rem;
    }
    
    .btn-remove {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .cart-total {
        padding: 0.75rem;
    }
    
    .cart-total h3 {
        font-size: 1rem;
    }
    
    .total-line {
        font-size: 0.95rem;
    }
    
    .total-line strong {
        font-size: 1.1rem;
    }
    
    .cart-empty {
        padding: 1.5rem 1rem;
    }
    
    .cart-empty i {
        font-size: 3rem !important;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form-container {
        order: 1;
    }
}

/* Contact Page */
.contact {
    padding: 4rem 0;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info h2 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-beige);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-orange);
    font-size: 1.5rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-forest);
}

.contact-item p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.contact-form-container {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.contact-form-container h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-beige);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    resize: vertical;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-orange);
}

/* FAQ Page */
.faq {
    padding: 4rem 0;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.faq-item {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--color-forest);
    flex: 1;
}

.faq-question i {
    color: var(--color-orange);
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin: 0;
}

.faq-footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.faq-footer p {
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}
