/* Variables and Base Styles */
:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f48fb1;
    --primary-lighter: #fce4ec;
    --secondary: #8a7f8c;
    --secondary-dark: #6d6570;
    --secondary-light: #b8b1ba;
    --light: #fefefe;
    --dark: #4a4a4a;
    --gray: #8a8a8a;
    --success: #4caf50;
    --whatsapp: #25D366;
    --pink-light: #fce4ec;
    --gray-light: #f8f8f8;
    --sale-color: #4caf50;
    --sale-dark: #388e3c;
    --rent-color: #e91e63;
    --rent-dark: #c2185b;
    --container-max-width: 1400px;
    --section-padding: 40px;
    --border-radius: 16px;
    --border-radius-lg: 20px;
    --border-radius-xl: 25px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
    --shadow-sm: 0 2px 8px rgba(233, 30, 99, 0.2);
    --shadow-md: 0 6px 20px rgba(233, 30, 99, 0.25);
    --shadow-lg: 0 10px 35px rgba(233, 30, 99, 0.3);
    --shadow-primary: 0 8px 25px rgba(233, 30, 99, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-bottom: 1px solid var(--primary-dark);
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 0;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
}

.header.scrolled {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #ad1457 100%);
    box-shadow: 0 6px 25px rgba(233, 30, 99, 0.5);
}

.nav {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    transition: all var(--transition-normal);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: all var(--transition-normal);
    z-index: 1001;
}

.nav-brand i {
    font-size: 26px;
    color: white;
    transition: transform var(--transition-normal);
}

.nav-brand:hover {
    color: var(--primary-lighter);
}

.nav-brand:hover i {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-lighter);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link.active {
    color: white;
}

.nav-link.active::before {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 4px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.service-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.service-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-login, .btn-cart {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.btn-login:hover, .btn-cart:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition-normal);
}


.hero-slide {
    min-width: 100%;
    position: relative;
    height: 100%;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Escurecimento de 40% */
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    object-position: center;
}

.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: white;
    max-width: 400px;
    padding: 40px;
    z-index: 2;
    
    /* Gradiente profissional */
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.9) 0%, rgba(194, 24, 91, 0.9) 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-slide-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    opacity: 0.95;
}

/* ========== MOBILE - CONTEÚDO POR BAIXO DA IMAGEM ========== */

/* Tablets e Mobile */
@media (max-width: 768px) {
    .hero-slider {
        position: relative;
        height: auto; /* Altura automática */
        min-height: 400px; /* Altura mínima */
    }
    
    .hero-slide {
        display: flex;
        flex-direction: column;
        min-height: 500px; /* Altura mínima do slide */
    }
    
    .hero-slide img {
        height: 300px; /* Altura fixa para a imagem */
        object-fit: contain;
        flex-shrink: 0; /* Não reduzir altura */
    }
    
    .hero-slide-content {
        position: center; /* Remove posicionamento absoluto */
        transform: none;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 25px 20px;
        border-radius: 0;
        box-shadow: none;
        
        /* Mantém o gradiente */
        background: linear-gradient(135deg, rgba(233, 30, 99, 0.95) 0%, rgba(194, 24, 91, 0.95) 100%);
    }
    
    .hero-slide-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .hero-slide-content p {
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Mobile Large */
@media (max-width: 480px) {
    .hero-slider {
        min-height: 450px;
    }
    
    .hero-slide {
        min-height: 450px;
    }
    
    .hero-slide img {
        height: 250px; /* Imagem um pouco menor */
    }
    
    .hero-slide-content {
        padding: 20px 15px;
    }
    
    .hero-slide-content h2 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .hero-slide-content p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .hero-slider {
        min-height: 420px;
    }
    
    .hero-slide {
        min-height: 420px;
    }
    
    .hero-slide img {
        height: 220px;
    }
    
    .hero-slide-content {
        padding: 18px 12px;
    }
    
    .hero-slide-content h2 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .hero-slide-content p {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

/* Ajuste para orientação paisagem em móveis */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        min-height: 300px;
    }
    
    .hero-slide {
        flex-direction: row; /* Layout lado a lado em paisagem */
        min-height: 280px;
    }
    
    .hero-slide img {
        height: 100%;
        width: 50%; /* Imagem ocupa metade */
        flex-shrink: 0;
    }
    
    .hero-slide-content {
        width: 50%;
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-slide-content h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .hero-slide-content p {
        font-size: 0.8rem;
        line-height: 1.2;
    }
}

/* Opção alternativa: Conteúdo sobreposto na parte inferior */
@media (max-width: 768px) {
    .hero-slide-content.alternative {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        padding: 20px;
        
        /* Fundo semi-transparente */
        background: linear-gradient(135deg, rgba(233, 30, 99, 0.95) 0%, rgba(194, 24, 91, 0.95) 100%);
    }
    
    .hero-slide-content.alternative h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .hero-slide-content.alternative p {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

/* Altura aumentada para 600px */
.hero-slider {
    position: relative;
    height: 600px; /* Alterado de 500px para 600px */
    overflow: hidden;
    margin-top: 70px;
    width: 100%;
}

.hero-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%;
}







.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.hero-slider-btn:hover {
    background: rgba(255,255,255,0.3);
}

.hero-prev {
    left: 10px;
}

.hero-next {
    right: 10px;
}

.hero-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Service Toggle Section */
.service-toggle-section {
    margin: 30px 0;
    animation: fadeIn 1s ease;
    padding: 0 10px;
}

.main-service-toggle {
    display: flex;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 6px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.main-service-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
    white-space: nowrap;
}

.main-service-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.main-service-btn[data-service="rent"]:hover,
.main-service-btn[data-service="rent"].active {
    background: linear-gradient(135deg, var(--rent-color) 0%, var(--rent-dark) 100%);
    color: white;
}

.main-service-btn[data-service="sale"]:hover,
.main-service-btn[data-service="sale"].active {
    background: linear-gradient(135deg, var(--sale-color) 0%, var(--sale-dark) 100%);
    color: white;
}

.service-info {
    text-align: center;
}

.service-desc {
    display: none;
    padding: 15px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-top: 15px;
}

.service-desc.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.service-desc p {
    color: var(--gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.service-desc i {
    color: var(--primary);
}

/* Section Headers */
.section-header {
    margin-bottom: 25px;
    text-align: center;
    padding: 0 10px;
}

.section-title {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--gray);
    font-size: 16px;
    font-weight: 500;
}

/* Service Sections */
.rent-section, .sale-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.rent-section.active, .sale-section.active {
    display: block;
}

/* Categories Styles */
.categories {
    margin: 40px 0;
    animation: fadeIn 1s ease;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-primary);
}

.categories h2 {
    margin-bottom: 25px;
    font-size: 28px;
    color: var(--primary);
    border-left: 6px solid var(--primary);
    padding-left: 15px;
    font-weight: 700;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    justify-content: center;
}

.category-item {
    background: linear-gradient(135deg, white 0%, var(--pink-light) 100%);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-weight: 600;
    border: 3px solid var(--pink-light);
    font-size: 16px;
    text-align: center;
    justify-content: center;
    min-height: 70px;
}

.category-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.25);
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--pink-light) 0%, white 100%);
}

.category-item i {
    margin-right: 10px;
    color: var(--primary);
    font-size: 20px;
}

/* Featured Books Styles */
.featured-books {
    margin: 50px 0;
    animation: fadeIn 1s ease 0.2s both;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-primary);
}

/* Books Slider */
.books-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    padding: 0 10px;
}

.books-slider {
    display: flex;
    gap: 20px;
    padding: 5px 0;
    transition: transform 0.5s ease;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.books-slider::-webkit-scrollbar {
    display: none;
}

.books-slider-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-normal);
    flex-shrink: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.books-slider-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Book Card Styles */
.book-card {
    background: linear-gradient(135deg, white 0%, var(--pink-light) 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-primary);
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    min-width: 280px;
    border: 2px solid var(--pink-light);
    position: relative;
    overflow: hidden;
    height: 480px;
    flex-shrink: 0;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.15), transparent);
    transition: left 0.6s;
}

.book-card:hover::before {
    left: 100%;
}

.book-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.35);
}

/* Book Badges */
.book-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: var(--shadow-sm);
}

.rent-badge {
    background: linear-gradient(135deg, var(--rent-color) 0%, var(--rent-dark) 100%);
    color: white;
}

.sale-badge {
    background: linear-gradient(135deg, var(--sale-color) 0%, var(--sale-dark) 100%);
    color: white;
}

.stock-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    top: 3.5rem;
}

.book-image {
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--pink-light) 100%);
    position: relative;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.1);
}

.book-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--primary);
    flex-grow: 1;
    line-height: 1.3;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-author {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Book Meta Info */
.book-meta-info {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 11px;
    color: var(--gray);
    flex-wrap: wrap;
    gap: 5px;
}

.book-estado, .book-stock {
    background: var(--pink-light);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 10px;
}

.book-price {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 20px;
    background: var(--pink-light);
    padding: 8px 15px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 700;
}

.price-period {
    font-size: 12px;
    color: var(--gray);
    font-weight: normal;
}

/* Book Actions */
.book-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.rent-button, .buy-button {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
}

.rent-button {
    background: linear-gradient(135deg, var(--rent-color) 0%, var(--rent-dark) 100%);
    color: white;
}

.rent-button:hover:not(.disabled) {
    background: linear-gradient(135deg, var(--rent-dark) 0%, var(--rent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
}

.buy-button {
    background: linear-gradient(135deg, var(--sale-color) 0%, var(--sale-dark) 100%);
    color: white;
}

.buy-button:hover:not(.disabled) {
    background: linear-gradient(135deg, var(--sale-dark) 0%, var(--sale-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.quick-view-btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: 2px solid white;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.quick-view-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    color: var(--primary-dark);
}

/* No Books Message */
.no-books-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
}

.no-books-message i {
    margin-bottom: 15px;
    color: var(--primary-light);
    font-size: 3rem;
}

.no-books-message h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* Benefits Section */
.benefits {
    margin: 50px 0;
    animation: fadeIn 1s ease 0.4s both;
    padding: 30px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.benefit-card {
    background: linear-gradient(135deg, white 0%, var(--pink-light) 100%);
    padding: 25px 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-primary);
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid var(--pink-light);
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.25);
}

.benefit-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

.benefit-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
}

.benefit-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 14px;
}

/* Book Details Section */
.book-details {
    background: linear-gradient(135deg, white 0%, var(--pink-light) 100%);
    border-radius: 25px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    margin: 50px 0;
    animation: fadeIn 1s ease 0.6s both;
    border: 2px solid var(--pink-light);
}

.book-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 25px;
    align-items: center;
}

.book-cover {
    width: 100%;
    max-width: 250px;
    height: 350px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.25);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    position: relative;
}

.book-cover:hover {
    transform: scale(1.05);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-options {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.option-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
}

.option-btn.active {
    background: var(--primary);
    color: white;
}

.rent-option.active {
    background: var(--rent-color);
}

.buy-option.active {
    background: var(--sale-color);
}

.book-info {
    flex: 1;
    width: 100%;
    text-align: center;
}

.book-info h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.book-author-large {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 20px;
    font-style: italic;
}

.book-meta-large {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.meta-item {
    background: var(--pink-light);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.meta-value {
    display: block;
    font-weight: bold;
    color: var(--primary);
    font-size: 14px;
}

.book-description {
    margin: 20px 0;
    color: var(--dark);
    line-height: 1.7;
    font-size: 16px;
    text-align: left;
}

.action-buttons {
    margin-top: 25px;
}

.large-btn {
    padding: 16px 25px !important;
    font-size: 16px !important;
    width: 100%;
    margin-bottom: 10px;
    min-height: 54px;
}

.stock-button {
    background: var(--gray) !important;
    color: white !important;
    cursor: not-allowed !important;
}

.hidden {
    display: none !important;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, #2c2c2c 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--whatsapp) 0%, #128C7E 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Notifications */
.notification {
    position: fixed;
    top: 90px;
    right: 15px;
    background: white;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-left: 4px solid #e91e63;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 280px;
    width: calc(100vw - 30px);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #4caf50;
}

.notification-error {
    border-left-color: #f44336;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-content i {
    font-size: 18px;
}

.notification-success .notification-content i {
    color: #4caf50;
}

.notification-error .notification-content i {
    color: #f44336;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 90%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 1;
}

.modal-close:hover {
    background: var(--pink-light);
    color: var(--primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--pink-light);
}

.modal-title {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-author {
    font-size: 16px;
    color: var(--gray);
    font-style: italic;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    align-items: start;
}

.modal-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 15px 0;
}

.meta-item {
    background: var(--pink-light);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.meta-value {
    display: block;
    font-weight: bold;
    color: var(--primary);
    font-size: 14px;
}

.modal-description {
    line-height: 1.7;
    color: var(--dark);
    font-size: 14px;
}

.modal-price {
    font-size: 28px;
    color: var(--primary);
    font-weight: bold;
    text-align: center;
    margin: 15px 0;
    background: var(--pink-light);
    padding: 15px;
    border-radius: 15px;
}

.price-period {
    font-size: 14px;
    color: var(--gray);
    font-weight: normal;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.modal-btn {
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
}

.modal-rent-btn {
    background: linear-gradient(135deg, var(--rent-color) 0%, var(--rent-dark) 100%);
    color: white;
}

.modal-rent-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, var(--rent-dark) 0%, var(--rent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
}

.modal-buy-btn {
    background: linear-gradient(135deg, var(--sale-color) 0%, var(--sale-dark) 100%);
    color: white;
}

.modal-buy-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, var(--sale-dark) 0%, var(--sale-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.modal-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading State */
.modal-loading {
    text-align: center;
    padding: 40px 20px;
}

.modal-loading i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.modal-loading p {
    color: var(--gray);
    font-size: 16px;
}

/* Rental Period Selector Styles */
.rental-period-selector {
    margin: 15px 0;
    padding: 15px;
    background: var(--pink-light);
    border-radius: 12px;
}

.period-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.period-option {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.period-option:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.period-option input[type="radio"] {
    margin-right: 12px;
}

.period-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 5px;
}

.period-duration {
    color: var(--primary);
    font-size: 14px;
}

.period-price {
    color: var(--success);
    font-weight: bold;
    font-size: 14px;
}

.period-discount {
    background: var(--success);
    color: white;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.period-option input[type="radio"]:checked + label {
    color: var(--primary-dark);
}

.period-option input[type="radio"]:checked {
    accent-color: var(--primary);
}

/* Dropdown Menu */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 8px 0;
    z-index: 1000;
    display: none;
    margin-top: 8px;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: var(--dark);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--primary-lighter);
    color: var(--primary);
}

.dropdown-item.logout {
    color: #f44336;
    border-top: 1px solid var(--gray-light);
}

.dropdown-item.logout:hover {
    background: #ffeaea;
    color: #f44336;
}

/* ========== RESPONSIVE STYLES ========== */

/* Tablets */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav {
        padding: 0 15px;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .hero-slide-content h2 {
        font-size: 2rem;
    }
    
    .hero-slide-content p {
        font-size: 1rem;
    }
    
    .book-card {
        min-width: 260px;
        height: 460px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .nav {
        padding: 0 10px;
        height: 60px;
    }
    
    .nav-brand {
        font-size: 20px;
    }
    
    .nav-brand i {
        font-size: 22px;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 20px;
        gap: 0;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .nav-link {
        padding: 15px 0;
        font-size: 18px;
        justify-content: center;
        width: 100%;
    }
    
    .nav-actions {
        gap: 10px;
    }
    
    .service-toggle {
        display: none;
    }
    
    .btn-login, .btn-cart {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero-slider {
        height: 300px;
        margin-top: 60px;
    }
    
    .hero-slide-content {
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 90%;
    }
    
    .hero-slide-content h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .hero-slide-content p {
        font-size: 0.9rem;
    }
    
    .hero-slider-btn {
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    .main-service-toggle {
        max-width: 100%;
    }
    
    .main-service-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .categories {
        padding: 20px 15px;
    }
    
    .categories h2 {
        font-size: 24px;
    }
    
    .category-list {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .category-item {
        padding: 12px 15px;
        font-size: 14px;
        min-height: 60px;
    }
    
    .featured-books {
        padding: 20px 15px;
        margin: 30px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .books-slider-container {
        gap: 5px;
    }
    
    .books-slider-btn {
        width: 40px;
        height: 40px;
        padding: 10px;
    }
    
    .book-card {
        min-width: 240px;
        height: 420px;
        padding: 15px;
    }
    
    .book-image {
        height: 180px;
    }
    
    .book-title {
        font-size: 16px;
        min-height: 40px;
    }
    
    .book-price {
        font-size: 18px;
        padding: 6px 12px;
    }
    
    .rent-button, .buy-button {
        padding: 10px 15px;
        font-size: 13px;
        min-height: 40px;
    }
    
    .benefits {
        padding: 20px 15px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .benefit-card {
        padding: 20px 15px;
    }
    
    .book-details {
        padding: 20px;
        margin: 30px 0;
    }
    
    .book-info h3 {
        font-size: 24px;
    }
    
    .book-meta-large {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .large-btn {
        padding: 14px 20px !important;
        font-size: 14px !important;
        min-height: 50px;
    }
    
    .modal-content {
        padding: 20px;
        max-width: 95%;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-price {
        font-size: 24px;
    }
    
    .modal-btn {
        padding: 14px 18px;
        font-size: 13px;
        min-height: 45px;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .notification {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .nav {
        padding: 0 8px;
    }
    
    .nav-brand {
        font-size: 18px;
        gap: 6px;
    }
    
    .nav-brand i {
        font-size: 20px;
    }
    
    .btn-login, .btn-cart {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .hero-slider {
        height: 250px;
    }
    
    .hero-slide-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-slide-content p {
        font-size: 0.8rem;
    }
    
    .main-service-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .category-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-item {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 55px;
    }
    
    .book-card {
        min-width: 220px;
        height: 400px;
        padding: 12px;
    }
    
    .book-image {
        height: 160px;
    }
    
    .book-title {
        font-size: 15px;
    }
    
    .book-author {
        font-size: 13px;
    }
    
    .book-price {
        font-size: 16px;
    }
    
    .book-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .rent-button, .buy-button {
        width: 100%;
    }
    
    .quick-view-btn {
        width: 100%;
        order: -1;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .modal-header {
        margin-bottom: 15px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-meta {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        gap: 8px;
    }
    
    .modal-btn {
        padding: 12px 15px;
        font-size: 12px;
    }
    
    .period-option label {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .period-price {
        align-self: flex-end;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .nav-brand {
        font-size: 16px;
    }
    
    .hero-slider {
        height: 200px;
    }
    
    .hero-slide-content h2 {
        font-size: 1.3rem;
    }
    
    .category-list {
        grid-template-columns: 1fr;
    }
    
    .book-card {
        min-width: 200px;
        height: 380px;
    }
    
    .book-image {
        height: 140px;
    }
}

/* Orientation-specific styles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 250px;
    }
    
    .nav-menu {
        padding: 20px;
        overflow-y: auto;
    }
    
    .modal-content {
        max-height: 80vh;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .hero-slider,
    .service-toggle-section,
    .books-slider-btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .book-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========== ESTILOS ADICIONAIS DO DESTAQUES.PHP ========== */

/* Featured Section */
.featured-section {
    margin: 50px 0;
    padding: var(--section-padding);
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-primary);
}

.featured-books {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.featured-book {
    background: linear-gradient(135deg, white 0%, var(--pink-light) 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-primary);
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--pink-light);
    position: relative;
    overflow: hidden;
    height: 520px;
}

.featured-book::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.15), transparent);
    transition: left 0.6s;
}

.featured-book:hover::before {
    left: 100%;
}

.featured-book:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.35);
}

/* Featured Badge */
.featured-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #c44569 100%);
    color: white;
}

/* Book Meta Info para featured books */
.book-meta-info {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 12px;
    color: var(--gray);
}

.book-estado, .book-stock {
    background: var(--pink-light);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* New Releases */
.new-releases {
    margin: 60px 0;
    padding: var(--section-padding);
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-primary);
}

.releases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.release-card {
    background: linear-gradient(135deg, white 0%, var(--pink-light) 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--pink-light);
    transition: all var(--transition-normal);
    display: flex;
    gap: 20px;
    align-items: center;
    cursor: pointer;
}

.release-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.release-cover {
    width: 80px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.release-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.release-info {
    flex: 1;
}

.release-info h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 600;
}

.release-info p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 8px;
}

.release-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 16px;
}

/* Popular Authors */
.popular-authors {
    margin: 60px 0;
    padding: var(--section-padding);
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-primary);
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.author-card {
    background: linear-gradient(135deg, white 0%, var(--pink-light) 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--pink-light);
    transition: all var(--transition-normal);
    text-align: center;
    cursor: pointer;
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.author-card h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 600;
}

.author-card p {
    color: var(--gray);
    font-size: 14px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(50px);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.modal-close:hover {
    background: var(--pink-light);
    color: var(--primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--pink-light);
}

.modal-title {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.modal-author {
    font-size: 18px;
    color: var(--gray);
    font-style: italic;
}

.modal-body {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.modal-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.meta-item {
    background: var(--pink-light);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.meta-value {
    display: block;
    font-weight: bold;
    color: var(--primary);
    font-size: 16px;
}

.modal-description {
    line-height: 1.8;
    color: var(--dark);
    font-size: 16px;
}

.modal-price {
    font-size: 32px;
    color: var(--primary);
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    background: var(--pink-light);
    padding: 20px;
    border-radius: 15px;
}

.price-period {
    font-size: 16px;
    color: var(--gray);
    font-weight: normal;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.modal-btn {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-rent-btn {
    background: linear-gradient(135deg, var(--rent-color) 0%, var(--rent-dark) 100%);
    color: white;
}

.modal-rent-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, var(--rent-dark) 0%, var(--rent-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
}

.modal-buy-btn {
    background: linear-gradient(135deg, var(--sale-color) 0%, var(--sale-dark) 100%);
    color: white;
}

.modal-buy-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, var(--sale-dark) 0%, var(--sale-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.modal-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading State */
.modal-loading {
    text-align: center;
    padding: 60px 20px;
}

.modal-loading i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.modal-loading p {
    color: var(--gray);
    font-size: 18px;
}

/* Dropdown Menu */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 10px 0;
    z-index: 1000;
    display: none;
    margin-top: 10px;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--primary-lighter);
    color: var(--primary);
}

.dropdown-item.logout {
    color: #f44336;
    border-top: 1px solid var(--gray-light);
}

.dropdown-item.logout:hover {
    background: #ffeaea;
    color: #f44336;
}

/* ========== RESPONSIVE STYLES ADICIONAIS ========== */

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-meta {
        grid-template-columns: 1fr;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .featured-book {
        height: 500px;
    }
    
    .featured-books, .releases-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .authors-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .release-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .featured-books, .releases-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-book {
        height: 480px;
        padding: 20px;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .modal-btn {
        padding: 15px 20px;
        font-size: 14px;
    }
}

/* ========== ESTILOS ADICIONAIS DA PÁGINA DE ALUGUER ========== */

/* Filters Section */
.filters-section {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-primary);
    margin-bottom: 30px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}

.filter-select, .filter-input {
    padding: 12px 15px;
    border: 2px solid var(--pink-light);
    border-radius: 12px;
    font-size: 14px;
    transition: all var(--transition-normal);
    background: white;
}

.filter-select:focus, .filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.btn-filter {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-apply {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-reset {
    background: var(--gray-light);
    color: var(--gray);
}

.btn-reset:hover {
    background: var(--secondary-light);
    color: white;
}

/* Rent Books Section */
.rent-section {
    margin: 50px 0;
    padding: var(--section-padding);
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-primary);
}

/* Books Grid para aluguer */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Book Card específico para aluguer */
.book-card {
    background: linear-gradient(135deg, white 0%, var(--pink-light) 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow-primary);
    text-align: center;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--pink-light);
    position: relative;
    overflow: hidden;
    height: 520px;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.15), transparent);
    transition: left 0.6s;
}

.book-card:hover::before {
    left: 100%;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.35);
}

/* Book Meta Info para aluguer */
.book-meta-info {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 12px;
    color: var(--gray);
}

.book-estado, .book-stock {
    background: var(--pink-light);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.book-price {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 24px;
    background: var(--pink-light);
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    font-weight: 700;
}

.price-period {
    font-size: 14px;
    color: var(--gray);
    font-weight: normal;
}

.book-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.rent-button {
    flex: 1;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--rent-color) 0%, var(--rent-dark) 100%);
    color: white;
}

.rent-button:hover:not(.disabled) {
    background: linear-gradient(135deg, var(--rent-dark) 0%, var(--rent-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
}

.quick-view-btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    border: 2px solid white;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-view-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    color: var(--primary-dark);
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
}

/* No Books Message */
.no-books-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    grid-column: 1 / -1;
}

.no-books-message i {
    margin-bottom: 20px;
    color: var(--primary-light);
}

.no-books-message h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* Benefits Section para aluguer */
.benefits-section {
    margin: 60px 0;
    padding: var(--section-padding);
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background: linear-gradient(135deg, white 0%, var(--pink-light) 100%);
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-primary);
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid var(--pink-light);
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.25);
}

.benefit-icon {
    font-size: 54px;
    color: var(--primary);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.15);
}

.benefit-card h3 {
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
}

.benefit-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 16px;
}

/* Rental Period Selector Styles */
.rental-period-selector {
    margin: 20px 0;
    padding: 20px;
    background: var(--pink-light);
    border-radius: 12px;
}

.period-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.period-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.period-option:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.period-option input[type="radio"] {
    margin-right: 15px;
}

.period-option label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
}

.period-duration {
    color: var(--primary);
    font-size: 16px;
}

.period-price {
    color: var(--success);
    font-weight: bold;
    font-size: 16px;
}

.period-discount {
    background: var(--success);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.period-option input[type="radio"]:checked + label {
    color: var(--primary-dark);
}

.period-option input[type="radio"]:checked {
    accent-color: var(--primary);
}

/* Estilos para o modal rápido */
.book-info-quick {
    animation: fadeInUp 0.3s ease;
}

#quickRentModal .modal-content {
    max-width: 750px !important;
    width: 80% !important;
    margin: 0 auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-left: 4px solid #e91e63;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #4caf50;
}

.notification-error {
    border-left-color: #f44336;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 20px;
}

.notification-success .notification-content i {
    color: #4caf50;
}

.notification-error .notification-content i {
    color: #f44336;
}

/* Dropdown Menu */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 10px 0;
    z-index: 1000;
    display: none;
    margin-top: 10px;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--dark);
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--primary-lighter);
    color: var(--primary);
}

.dropdown-item.logout {
    color: #f44336;
    border-top: 1px solid var(--gray-light);
}

.dropdown-item.logout:hover {
    background: #ffeaea;
    color: #f44336;
}

/* ========== RESPONSIVE STYLES PARA ALUGUER ========== */

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .book-card {
        height: 500px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .period-option label {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .period-price {
        align-self: flex-end;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-filter {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .book-card {
        height: 480px;
        padding: 20px;
    }
    
    .benefit-card {
        padding: 25px 20px;
    }
    
    .benefit-icon {
        font-size: 48px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Mobile Small */
@media (max-width: 360px) {
    .book-card {
        height: 460px;
    }
    
    .book-image {
        height: 200px;
    }
    
    .book-title {
        font-size: 18px;
    }
    
    .book-price {
        font-size: 20px;
    }
}

/* Orientation-specific styles */
@media (max-height: 500px) and (orientation: landscape) {
    .book-card {
        height: 480px;
    }
    
    .book-image {
        height: 180px;
    }
}

/* Print Styles para aluguer */
@media print {
    .filters-section,
    .benefits-section,
    .whatsapp-float,
    .notification {
        display: none !important;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .book-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        height: auto;
    }
}
/* ========== ESTILOS ADICIONAIS DO CARRINHO ========== */

/* Cart Container */
.cart-container {
    margin-top: 120px;
    padding: 30px;
    animation: fadeIn 0.5s ease;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.cart-empty i {
    font-size: 80px;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.cart-empty h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 28px;
}

.cart-empty p {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 16px;
}

.continue-shopping {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    margin-top: 15px;
    transition: all var(--transition-normal);
}

.continue-shopping:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Cart Content */
.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-items {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: bold;
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 5px;
}

.cart-item-author {
    color: var(--gray);
    margin-bottom: 10px;
    font-size: 14px;
}

.cart-item-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.rent-type {
    background: var(--rent-color);
}

.sale-type {
    background: var(--sale-color);
}

.cart-item-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.quantity-btn:hover {
    background: var(--primary-lighter);
    border-color: var(--primary);
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: 600;
}

.remove-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 5px;
}

.remove-btn:hover {
    background: #ff3742;
    transform: translateY(-2px);
}

.cart-item-total {
    text-align: right;
    font-weight: bold;
    color: var(--primary);
    font-size: 18px;
    min-width: 120px;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.cart-summary h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid var(--primary-lighter);
    padding-bottom: 10px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-total {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    border-bottom: none;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 2px solid var(--primary-lighter);
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.checkout-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Estilos para o seletor de período */
.period-selector {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    margin-left: 8px;
}

.period-selector:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2);
}

/* Loading states */
.quantity-btn:disabled,
.remove-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.quantity-btn.loading,
.remove-btn.loading {
    position: relative;
    color: transparent;
}

.quantity-btn.loading::after,
.remove-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Styles */
.notification-warning {
    border-left-color: #ff9800;
}

.notification-warning .notification-content i {
    color: #ff9800;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 85px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-normal);
    padding: 20px 0;
    display: none;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.mobile-menu a:hover {
    background: var(--primary-lighter);
    color: var(--primary);
}

.mobile-menu a i {
    width: 20px;
    text-align: center;
}

/* ========== RESPONSIVE STYLES PARA CARRINHO ========== */

/* Tablets */
@media (max-width: 1024px) {
    .cart-container {
        margin-top: 110px;
        padding: 20px;
    }
    
    .cart-content {
        grid-template-columns: 1.5fr 1fr;
        gap: 20px;
    }
    
    .cart-items, .cart-summary {
        padding: 20px;
    }
    
    .cart-item {
        gap: 15px;
    }
    
    .cart-item-image {
        width: 90px;
        height: 120px;
    }
    
    .cart-item-title {
        font-size: 16px;
    }
    
    .cart-item-price {
        font-size: 16px;
    }
    
    .cart-item-total {
        font-size: 16px;
        min-width: 100px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .cart-container {
        margin-top: 90px;
        padding: 15px;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-items {
        padding: 20px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px 0;
    }
    
    .cart-item-image {
        width: 100px;
        height: 130px;
    }
    
    .cart-item-details {
        width: 100%;
    }
    
    .cart-item-total {
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }
    
    .cart-summary {
        position: static;
        padding: 20px;
    }
    
    .quantity-controls {
        justify-content: center;
    }
    
    .remove-btn {
        margin: 0 auto;
    }
    
    .mobile-menu {
        display: block;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .cart-container {
        margin-top: 80px;
        padding: 10px;
    }
    
    .cart-items, .cart-summary {
        padding: 15px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 110px;
    }
    
    .cart-item-title {
        font-size: 15px;
    }
    
    .cart-item-author {
        font-size: 13px;
    }
    
    .cart-item-price {
        font-size: 15px;
    }
    
    .cart-item-total {
        font-size: 15px;
    }
    
    .quantity-controls {
        gap: 8px;
    }
    
    .quantity-btn {
        width: 30px;
        height: 30px;
    }
    
    .quantity-input {
        width: 50px;
        padding: 6px;
    }
    
    .remove-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .checkout-btn {
        padding: 12px;
        font-size: 16px;
    }
    
    .summary-line {
        font-size: 14px;
    }
    
    .summary-total {
        font-size: 18px;
    }
    
    .mobile-menu a {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .cart-item-image {
        width: 70px;
        height: 100px;
    }
    
    .cart-item-title {
        font-size: 14px;
    }
    
    .cart-item-type {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .period-selector {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* Orientation-specific adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .cart-container {
        margin-top: 70px;
    }
    
    .cart-item {
        padding: 10px 0;
    }
    
    .cart-item-image {
        width: 70px;
        height: 90px;
    }
    
    .mobile-menu {
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* ========== ESTILOS ADICIONAIS DO CHECKOUT ========== */

/* Main Content */
.main-content {
    margin-top: 120px;
    min-height: calc(100vh - 200px);
}

.section-header {
    margin-bottom: 35px;
}

.section-title {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--gray);
    font-size: 18px;
    font-weight: 500;
}

/* Checkout Styles - LAYOUT MODIFICADO */
.checkout-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 30px;
    align-items: start;
}

.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--pink-light);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pink-light);
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all var(--transition-normal);
}

.step.active .step-circle {
    background: var(--primary);
    color: white;
}

.step.completed .step-circle {
    background: var(--success);
    color: white;
}

.step-label {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.checkout-form-section {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-primary);
    margin-bottom: 30px;
}

.form-section-title {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--pink-light);
    border-radius: 12px;
    font-size: 16px;
    transition: all var(--transition-normal);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method {
    flex: 1;
    border: 2px solid var(--pink-light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.payment-method:hover {
    border-color: var(--primary);
}

.payment-method.selected {
    border-color: var(--primary);
    background: var(--primary-lighter);
}

.payment-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--primary);
}

.payment-method h4 {
    margin-bottom: 5px;
    color: var(--dark);
}

.payment-method p {
    color: var(--gray);
    font-size: 14px;
}

/* M-Pesa Instructions */
.mpesa-instructions {
    background: #f8fff8;
    border: 2px solid #e8f5e8;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.mpesa-steps {
    list-style: none;
    margin: 15px 0;
}

.mpesa-steps li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mpesa-steps li i {
    color: var(--success);
}

.mpesa-code {
    background: white;
    border: 2px dashed #4caf50;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin: 15px 0;
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    color: #2e7d32;
}

/* Transferência Bancária */
.bank-transfer-info {
    background: #f0f8ff;
    border: 2px solid #e3f2fd;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.bank-details {
    margin: 15px 0;
}

.bank-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e3f2fd;
}

.bank-detail:last-child {
    border-bottom: none;
}

/* Order Summary - LAYOUT MODIFICADO */
.order-summary-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.order-summary {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-primary);
}

.summary-title {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 700;
}

.order-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pink-light);
}

.item-image {
    width: 80px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.item-author {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 8px;
}

.item-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.rent-type {
    background: var(--rent-color);
    color: white;
}

.sale-type {
    background: var(--sale-color);
    color: white;
}

.item-price {
    font-weight: bold;
    color: var(--primary);
    font-size: 18px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pink-light);
}

.summary-line.total {
    font-weight: bold;
    font-size: 18px;
    color: var(--primary);
    border-bottom: none;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid var(--pink-light);
}

.delivery-free {
    color: var(--success);
    font-weight: 600;
}

.delivery-fee {
    color: var(--primary);
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 25px 0;
}

.terms-checkbox input {
    margin-top: 3px;
}

.terms-checkbox label {
    font-size: 14px;
    color: var(--gray);
}

.terms-checkbox a {
    color: var(--primary);
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.btn-checkout {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.security-notice {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: var(--pink-light);
    border-radius: 10px;
    font-size: 14px;
    color: var(--gray);
}

.security-notice i {
    color: var(--success);
    margin-right: 5px;
}

/* Botões específicos */
.btn-mpesa {
    background: linear-gradient(135deg, #25a541 0%, #1e7e34 100%);
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-mpesa:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 165, 65, 0.4);
}

.btn-transferencia {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    width: 100%;
    padding: 18px;
    border-radius: 12px;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-transferencia:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(21, 101, 192, 0.4);
}

/* Mensagens de erro */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
}

/* M-Pesa specific styles */
.mpesa-payment-form .form-group {
    margin-bottom: 20px;
}

.mpesa-payment-info {
    background: #f8fff8;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    display: none;
}

/* ========== RESPONSIVE STYLES PARA CHECKOUT ========== */

/* Tablets */
@media (max-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .order-summary-container {
        order: -1;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .main-content {
        margin-top: 100px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .checkout-steps {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .step {
        flex: 1;
        min-width: 100px;
    }
    
    .checkout-form-section, .order-summary {
        padding: 25px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .checkout-form-section, .order-summary {
        padding: 20px 15px;
    }
    
    .form-section-title, .summary-title {
        font-size: 20px;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .btn-checkout,
    .btn-mpesa,
    .btn-transferencia {
        padding: 15px;
        font-size: 16px;
    }
    
    .order-item {
        gap: 12px;
    }
    
    .item-image {
        width: 60px;
        height: 80px;
    }
    
    .item-title {
        font-size: 14px;
    }
    
    .item-author {
        font-size: 12px;
    }
    
    .item-price {
        font-size: 16px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .checkout-steps {
        gap: 10px;
    }
    
    .step {
        min-width: 80px;
    }
    
    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .step-label {
        font-size: 11px;
    }
    
    .checkout-form-section, .order-summary {
        padding: 15px 12px;
    }
    
    .order-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .item-image {
        width: 80px;
        height: 100px;
        margin: 0 auto;
    }
    
    .item-details {
        width: 100%;
    }
}

/* Orientation-specific adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .main-content {
        margin-top: 80px;
    }
    
    .checkout-container {
        gap: 20px;
    }
    
    .checkout-form-section, .order-summary {
        padding: 20px;
    }
    
    .checkout-steps {
        margin-bottom: 20px;
    }
}

/* Print Styles para Checkout */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .btn-checkout,
    .btn-mpesa,
    .btn-transferencia,
    .payment-methods {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .checkout-container {
        display: block;
    }
    
    .checkout-form-section,
    .order-summary {
        box-shadow: none;
        border: 1px solid #ddd;
        margin-bottom: 20px;
        break-inside: avoid;
    }
}

.benefits-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.benefits-image {
    width: 100%;
    max-width: 500px;
    height: 600px; /* Altura reduzida */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.benefits-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.benefits-image img:hover {
    transform: scale(1.05);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .benefits-image {
        max-width: 250px;
        height: 180px;
        margin: 0 auto;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== SLIDERS SIMPLES ========== */
/* ========== SLIDERS SIMPLES ========== */
.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    padding: 10px 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}

.slider-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: translateY(-50%);
    box-shadow: none;
}

.slider-prev {
    left: 15px;
}

.slider-next {
    right: 15px;
}


/* ========== BOTÃO VER MAIS ========== */
.view-more-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--pink-light);
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(233, 30, 99, 0.3);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.view-more-btn i {
    font-size: 14px;
    transition: transform var(--transition-normal);
}

.view-more-btn:hover i {
    transform: translateX(5px);
}

/* Para seção de venda, cor diferente */
.sale-section .view-more-btn {
    background: linear-gradient(135deg, var(--sale-color) 0%, var(--sale-dark) 100%);
}

.sale-section .view-more-btn:hover {
    background: linear-gradient(135deg, var(--sale-dark) 0%, var(--sale-color) 100%);
}

/* Responsividade */
@media (max-width: 768px) {
    .view-more-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .view-more-section {
        margin-top: 25px;
        padding-top: 15px;
    }
}