/**
 * Homepage Styles
 * Premium design for the custom homepage
 *
 * @package Stevie_Parks_Books
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */

/* Fix header-hero spacing and layout */
.home .site-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: none !important;
    gap: 0 !important;
}

/* Remove gap between last container and footer on home */
.home .site-content > .container {
    margin-bottom: 0 !important;
}

/* Hero Section - Full Screen Atmospheric */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    z-index: 1;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) contrast(1.1); /* Darker for better text contrast */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.6) 70%, 
        rgba(0, 0, 0, 0.8) 100%
    );
}

.hero-content-center {
    position: relative;
    z-index: 10;
    max-width: 900px;
    text-align: center;
    padding: 2rem;
    color: var(--color-white);
}

.hero-subtitle {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #d4af37; /* Amber gold accent */
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-family: var(--font-primary);
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Variants for Hero Overlay — Standardized */
.button-accent {
    background: #d4af37;
    color: #000000 !important;
    border: none;
    padding: 16px 36px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
}

.button-accent:hover {
    background: #ffffff;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.button-outline-white {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    padding: 16px 36px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
    text-decoration: none;
}

.button-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.button-large {
    padding: 18px 40px;
    font-size: 1rem;
}

/* ==========================================================================
   The Project Manifesto Section
   ========================================================================== */

.manifesto-section {
    position: relative;
    z-index: 2;
    padding: 8rem var(--spacing-lg);
    width: 100%;
    box-sizing: border-box;
    background: var(--color-background-soft);
}

.manifesto-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Más espacio para la frase larga a la izquierda */
    gap: 6rem;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    align-items: start;
}

.manifesto-title-side {}

.manifesto-lead-header {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.03em;
}

.manifesto-body {
    width: 100%;
}

.manifesto-body p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin: 0;
    max-width: 100%; /* El contenedor lateral ya limita el ancho */
}

/* ==========================================================================
   Responsive Breakpoints — Mobile-first
   ========================================================================== */

/* --- TABLET (≤1024px) -------------------------------------------------- */
@media (max-width: 1024px) {

    /* Hero: columna. Imagen debajo del texto */
    .hero-editorial-container {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .hero-content-side {
        padding-right: 0;
        order: 1;  /* Texto primero */
        margin-bottom: 3rem;
    }

    .hero-image-side {
        order: 2;  /* Imagen despues */
        width: 100%;
        justify-content: stretch;
    }

    .hero-image-wrapper {
        max-width: 100%;
        aspect-ratio: 16/9;
    }

    /* Manifesto: 1 columna */
    .manifesto-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .manifesto-body p {
        margin-left: 0;
        max-width: 100%;
    }
}

/* --- MOBILE (≤768px) --------------------------------------------------- */
@media (max-width: 768px) {

    /* Hero */
    .hero-section {
        padding: 5rem 1.5rem 3rem;
        min-height: auto;
    }

    .hero-editorial-container {
        gap: 2.5rem;
    }

    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
        letter-spacing: -0.03em;
        line-height: 0.95;
    }

    .hero-description {
        font-size: 1.0625rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .hero-image-wrapper {
        aspect-ratio: 4/3;
    }

    /* Manifesto */
    .manifesto-section {
        padding: 5rem var(--spacing-lg);
    }

    .manifesto-label {
        font-size: 2rem;
    }

    .manifesto-lead {
        font-size: clamp(1.5rem, 6vw, 2.25rem);
        margin-bottom: 2rem;
    }

    .manifesto-body p {
        font-size: 1rem;
    }
}

/* --- SMALL MOBILE (≤480px) --------------------------------------------- */
@media (max-width: 480px) {

    .hero-section {
        padding: 4rem 1.25rem 2.5rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 13vw, 4rem);
    }

    .hero-image-wrapper {
        aspect-ratio: 1/1;
    }

    .manifesto-section {
        padding: 4rem var(--spacing-md);
    }
}

/* --- EXTRA SMALL (≤375px) ---------------------------------------------- */
@media (max-width: 375px) {

    .hero-section {
        padding: 3.5rem 1rem 2rem;
    }

    .hero-title {
        font-size: clamp(2.25rem, 14vw, 3.5rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .manifesto-section {
        padding: 3.5rem var(--spacing-sm);
    }

    .manifesto-lead {
        font-size: clamp(1.35rem, 7vw, 2rem);
    }
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--container-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    color: var(--color-text-light);
    font-style: italic;
}

.section-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: var(--spacing-md) var(--container-padding);
    background: transparent;
    margin-bottom: var(--spacing-sm);
}

.section-footer .button {
    max-width: 300px;
    width: 100%;
    display: inline-block;
}

/* Editorial Navigation Link */
.editorial-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    font-weight: 500;
}

.editorial-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: var(--color-primary);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateX(-50%);
}

.editorial-link:hover {
    color: var(--color-primary);
}

.editorial-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   Featured Books Section (Slider)
   ========================================================================== */

.featured-books-section {
    padding: 5rem 0; /* Espaciado más natural entre secciones */
    background: transparent;
    position: relative;
    /* For absolute arrows if needed */
}

/* Swiper Container */
.featured-swiper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: var(--spacing-lg) !important;
    /* Bottom padding for shadow/hover space */
}

.featured-books-section .swiper-wrapper {
    align-items: stretch;
}

.swiper-slide {
    height: auto;
    /* Let content dictate height */
    display: flex;
    justify-content: center;
    align-items: stretch;
    /* Stretch to fill height */
}

/* Ensure individual product cards in slider take full height */
/* Card Styles for Featured Books to ensure equal height */
/* Card visual styles inherited from main.css */
.featured-books-section .swiper-slide .product {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin-bottom: 0 !important;
    min-height: 100%;
    position: relative;
    width: 100%;
}

.featured-books-section .product-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Ensure the link wrapper grows to fill space, pushing button down */
.featured-books-section .woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    color: inherit;
    text-decoration: none;
}

/* Image Wrapper - fixed aspect ratio */
.featured-books-section .product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--color-background-alt);
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    width: 100%;
    margin-bottom: 0;
}

.featured-books-section .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-books-section .product:hover .product-image-wrapper img {
    transform: scale(1.08);
}

/* Content Area - Grows to fill space */
.featured-books-section .product-details {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.featured-books-section .woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-xs);
    width: 100%;
}

.featured-books-section .product-author {
    color: var(--color-text-light);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.featured-books-section .product-year {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Price - Pushed to bottom of details */
.featured-books-section .price,
.new-arrivals-section .price {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* Button - Always at bottom */
.featured-books-section .button:not(.added_to_cart) {
    margin: 0 var(--spacing-md) var(--spacing-md);
    margin-top: 0;
    /* Space is handled by product-details flex-grow */
    width: calc(100% - (var(--spacing-md) * 2));
    /* Inherit standardized styles from main.css */
}

/* Make product titles smaller in Featured and New Arrivals */
.featured-books-section .woocommerce-loop-product__title,
.new-arrivals-section .woocommerce-loop-product__title {
    font-size: 1.1rem !important;
    /* Smaller size */
    min-height: auto;
    /* Allow natural height */
    margin-bottom: 0.5rem;
}

/* Custom Navigation Controls */
.featured-swiper-controls-container {
    position: relative;
    max-width: var(--container-max-width);
    margin: 0 auto;
    height: 0;
    /* Don't take up space */
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    /* Let clicks pass through if empty areas */
}

.featured-prev,
.featured-next {
    position: absolute;
    top: -340px;
    /* Position arrows over image area, not text */
    width: 44px;
    height: 44px;
    background: var(--color-white);
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    pointer-events: auto;
    /* Re-enable clicks */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-prev::after,
.featured-next::after {
    font-size: 1.2rem;
    font-weight: bold;
}

.featured-prev {
    left: 20px;
}

.featured-next {
    right: 20px;
}

.featured-prev:hover,
.featured-next:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

/* Slider Responsive Adjustments */
@media (max-width: 1200px) {
    .featured-prev {
        left: 10px;
    }

    .featured-next {
        right: 10px;
    }
}

@media (max-width: 768px) {

    /* Featured Books: Show navigation arrows on mobile */
    .featured-prev,
    .featured-next {
        display: flex !important;
        /* Override desktop hide */
        width: 40px;
        height: 40px;
        top: -420px;
        /* Position over image area on mobile */
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid var(--color-primary);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        z-index: 20;
    }

    .featured-prev {
        left: 8px;
    }

    .featured-next {
        right: 8px;
    }

    /* Add swipe indicator hint */
    .featured-swiper {
        position: relative;
    }

    .featured-swiper::after {
        content: 'Swipe to browse';
        display: block;
        text-align: center;
        font-size: 0.85rem;
        color: var(--color-text-light);
        margin-top: var(--spacing-sm);
        font-style: italic;
        opacity: 0.7;
    }
}

/* ==========================================================================
   Categories Section
   ========================================================================== */

.categories-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-background-alt);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.category-card {
    position: relative;
    height: 250px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: block;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    color: var(--color-white);
    z-index: 2;
}

.category-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-white);
}

.category-count {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-accent);
    font-weight: 600;
}

/* ==========================================================================
   New Arrivals Section
   ========================================================================== */

.new-arrivals-section {
    padding: 5rem 0; /* Espaciado más natural entre secciones */
    background: transparent;
}

.new-arrivals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .new-arrivals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
}

/* Enforce equal height cards for New Arrivals */
.new-arrivals-grid .product {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin-bottom: 0 !important;
}

.new-arrivals-grid .product .product-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.new-arrivals-grid .product .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.new-arrivals-grid .product .button {
    margin-top: auto !important;
}

.new-arrivals-grid .product-image-wrapper {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.new-arrivals-grid .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.testimonials-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-background-alt) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.testimonial-card {
    background: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    color: var(--color-accent);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: var(--font-heading);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-primary-dark);
}

.testimonial-author span {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */

.newsletter-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.newsletter-description {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    color: var(--color-background-alt);
    line-height: 1.6;
}

.newsletter-signup {
    display: flex;
    gap: var(--spacing-sm);
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   New Arrivals Grid Fix
   ========================================================================== */

/* Target the WooCommerce UL that holds the products in New Arrivals */
.new-arrivals-section ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: var(--spacing-lg) !important;
    width: 100% !important;
    max-width: 1100px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

.new-arrivals-section ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    margin-bottom: 0 !important;
    min-height: 450px !important;
    /* Ensure minimum height */
    width: 100% !important;
}

/* Ensure inner wrapper grows */
.new-arrivals-section .product-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

/* Ensure details section grows to push button down */
.new-arrivals-section .product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Push button to bottom */
/* Push button to bottom and style to match Featured Books (Filled) */
.new-arrivals-section .button {
    margin-top: auto !important;
    transition: all 0.3s ease;
}



/* Consistent image aspect ratio */
.new-arrivals-section .product-image-wrapper {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.new-arrivals-section .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-signup {
        justify-content: center;
    }
}

@media (max-width: 768px) {


    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .new-arrivals-section ul.products {
        grid-template-columns: 1fr !important;
    }

    /* Limit New Arrivals to 2 items on mobile */
    .new-arrivals-section ul.products.mobile-limited li.product:nth-child(n+3) {
        display: none !important;
    }

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

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

    .newsletter-signup {
        flex-direction: column;
    }

    /* Ensure consistent padding across all homepage sections */
    .features-section .container,
    .featured-books-section .container,
    .new-arrivals-section .container,
    .categories-section .container,
    .testimonials-section .container,
    .newsletter-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {


    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        letter-spacing: 1.5px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .button-large {
        width: 100%;
        padding: 14px 24px;
    }
}

/* ==========================================================================
   Button Outline Variant
   ========================================================================== */

.button-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.button-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ==========================================================================
   Enforce "View Cart" consistency
   ========================================================================== */

/* Featured Books */
.featured-books-section .added_to_cart,
.featured-books-section .products .product .added_to_cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 10px auto 16px !important;
    padding: 6px 0 !important;
    width: 100% !important;
    font-family: var(--font-body);
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--color-text) !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    opacity: 0.9;
    border-radius: 0 !important;
}

.featured-books-section .added_to_cart:hover,
.featured-books-section .products .product .added_to_cart:hover {
    color: var(--color-primary) !important;
    transform: translateY(-2px);
    opacity: 1;
    background: rgba(139, 69, 19, 0.05) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1) !important;
}

.featured-books-section .added_to_cart::before,
.featured-books-section .products .product .added_to_cart::before {
    display: inline-block !important;
    content: '\f00c';
    /* Checkmark */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    color: var(--color-success);
    font-size: 0.85em;
    background: none !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
}

.featured-books-section .added_to_cart::after,
.featured-books-section .products .product .added_to_cart::after {
    content: '\f178';
    /* Arrow Right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.8em;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    color: var(--color-primary);
}

.featured-books-section .added_to_cart:hover::after,
.featured-books-section .products .product .added_to_cart:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* New Arrivals */
.new-arrivals-section .added_to_cart,
.new-arrivals-section .products .product .added_to_cart {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 10px auto 16px !important;
    padding: 6px 0 !important;
    width: 100% !important;
    font-family: var(--font-body);
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--color-text) !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    opacity: 0.9;
    border-radius: 0 !important;
}

.new-arrivals-section .added_to_cart:hover,
.new-arrivals-section .products .product .added_to_cart:hover {
    color: var(--color-primary) !important;
    transform: translateY(-2px);
    opacity: 1;
    background: rgba(139, 69, 19, 0.05) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1) !important;
}

.new-arrivals-section .added_to_cart::before,
.new-arrivals-section .products .product .added_to_cart::before {
    display: inline-block !important;
    content: '\f00c';
    /* Checkmark */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    color: var(--color-success);
    font-size: 0.85em;
    background: none !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
}

.new-arrivals-section .added_to_cart::after,
.new-arrivals-section .products .product .added_to_cart::after {
    content: '\f178';
    /* Arrow Right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.8em;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
    color: var(--color-primary);
}

.new-arrivals-section .added_to_cart:hover::after,

/* ==========================================================================
   Fix: Hide "Add to Cart" button when added (Home Page specific)
   ========================================================================== */
.featured-books-section .button.added,
.featured-books-section .products .product .button.added,
.new-arrivals-section .button.added,
.new-arrivals-section .products .product .button.added {
    display: none !important;
}
/* ==========================================================================
   Home Closure Section
   ========================================================================== */

.home-closure-section {
    padding: 10rem 0 12rem;
    background-color: var(--color-background-soft);
    background-image: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.02));
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background decorative element */
.home-closure-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, var(--color-primary-dark), transparent);
    opacity: 0.2;
}

.closure-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.closure-subtitle {
    display: block;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.closure-quote {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    color: var(--color-primary-dark);
    margin-bottom: 2rem;
    font-weight: 700;
}

.closure-text {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: 4rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.closure-cta {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    text-decoration: none;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-primary-dark);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-arrow {
    margin-left: 1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.closure-cta:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    padding-left: 10px;
}

.closure-cta:hover .cta-arrow {
    transform: translateX(10px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-closure-section {
        padding: 6rem 0 8rem;
    }
    
    .closure-quote {
        font-size: 2.25rem;
    }
    
    .closure-text {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
}
