:root {
    --primary-color: hsl(207, 88%, 70%);
    --accent-color: hsl(45, 100%, 66%);
    --secondary-color: hsl(210, 40%, 96.1%);
    --text-color: #333;
}

/* General Styles */
body {
    font-family: 'Literata', serif;
    margin: 0;
    background-color: var(--secondary-color);
    color: var(--text-color);
}

/* Header */
header {
    background-color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.logo {
    font-size: 1.5rem; /* 24px */
    font-weight: bold;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    margin: 0 1rem;
    font-size: 0.875rem; /* 14px */
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background-color: var(--secondary-color);
}

.hero h1 {
    font-size: 2.25rem; /* 36px */
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.125rem; /* 18px */
}

.cta-button {
    background-color: var(--accent-color);
    color: #000;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: filter 0.3s;
}

.cta-button:hover {
    filter: brightness(0.95);
}

/* Offers Section */
.offers {
    padding: 4rem 1rem;
    text-align: center;
}

.offers h2 {
    font-size: 1.875rem;
    color: var(--text-color);
}

.offer-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: stretch;
    margin-top: 2rem;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem;
    width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 2.5rem;
}

.card:not(.featured) img {
    width: 70%;
    margin: 0 auto 1rem auto;
}


.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card.featured {
    border-color: var(--accent-color);
    border-width: 2px;
}

.most-sold {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: #000;
    font-weight: bold;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    z-index: 10;
}

.card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.card p {
    font-size: 1rem;
    color: #666;
}

.card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.price {
    margin-top: auto;
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
}

.new-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.new-price.featured-price {
    color: var(--accent-color);
}

.buy-button,
.buy-button-featured {
    display: block;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: filter 0.3s;
    font-size: 1rem;
    margin-top: auto;
    box-sizing: border-box;
}

.buy-button {
    background-color: var(--primary-color);
    color: #fff;
}

.buy-button:hover {
    filter: brightness(0.9);
}

.buy-button-featured {
    background-color: var(--accent-color);
    color: #000;
}

.buy-button-featured:hover {
    filter: brightness(0.95);
}

.featured-images {
    position: relative;
    height: 300px; /* Increased height again */
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-images img {
    position: absolute;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    height: 237px; /* 182px * 1.3 */
    width: auto;
}

.book-cover-1 {
    z-index: 1;
    transform: translateX(-40%) rotate(-8deg);
}

.book-cover-2 {
    z-index: 2;
    height: 270px; /* 208px * 1.3 */
}

.book-cover-3 {
    z-index: 1;
    transform: translateX(40%) rotate(8deg);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
    align-self: center;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.feature-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: #000;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 2rem 1rem;
    background-color: #fff;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.875rem;
    color: var(--primary-color);
}

.testimonial-carousel {
    overflow-x: auto;
}

.testimonial-cards {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
}

.testimonial-card {
    background-color: var(--secondary-color);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1.5rem;
    min-width: 280px;
}

.testimonial-card p {
    font-size: 0.875rem;
}

.author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.stars {
    color: var(--accent-color);
}

/* Pop-up Notification */
.compra-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    max-width: 320px;
    background: #111827;
    color: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.35;
    display: none;
    z-index: 999999;
}

.compra-toast__linha {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.compra-toast__icone {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22c55e;
    display: grid;
    place-items: center;
    font-size: 16px;
}

.compra-toast__titulo {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}

.compra-toast__msg {
    font-size: 13px;
    opacity: .95;
}

.compra-toast__fechar {
    margin-left: auto;
    opacity: .7;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    user-select: none;
}

.compra-toast--show {
    display: block;
    animation: toast-in .35s ease-out forwards;
}

.compra-toast--hide {
    animation: toast-out .25s ease-in forwards;
}

@keyframes toast-in {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes toast-out {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(12px); opacity: 0; }
}

/* Footer */
footer {
    background-color: #fff;
    padding: 2rem 1rem;
}

.donation-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.donation-container img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.donation-text h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.donation-text p {
    font-size: 1rem;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 4.5rem;
    }

    .offers h2, .testimonials h2, .donation-text h4 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .donation-container {
        flex-direction: column;
        text-align: center;
    }
    .card {
        width: 90%;
    }
    .offer-cards {
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .compra-toast { 
        left: 12px; right: 12px; bottom: 12px; 
        max-width: none;
    }
}
