/* Variables and Base Styles - Baseado no aluguer.css */
: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: 2px;
    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: 3px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.service-btn {
    padding: 6px 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: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.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;
    text-decoration: none;
}

.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);
}

/* Main Content */
.main-content {
    margin-top: 90px;
    min-height: calc(100vh - 200px);
    padding: 20px 0;
}

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-title {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.section-subtitle {
    color: var(--gray);
    font-size: 16px;
    font-weight: 500;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow-primary);
    margin-bottom: 25px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    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;
    width: 100%;
}

.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;
    grid-column: 1 / -1;
}

.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;
    flex: 1;
    justify-content: center;
}

.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;
}

/* Sale Books Section */
.sale-section {
    margin: 40px 0;
    padding: 25px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-primary);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.book-card {
    background: linear-gradient(135deg, white 0%, var(--pink-light) 100%);
    border-radius: 15px;
    padding: 20px;
    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: 480px;
}

.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(-8px);
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.35);
}

.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);
}

.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: 12px;
    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);
}

.book-estado, .book-stock {
    background: var(--pink-light);
    padding: 3px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.book-price {
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 20px;
    background: var(--pink-light);
    padding: 8px 16px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 700;
}

.book-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.buy-button {
    flex: 1;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    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 6px 15px 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: 10px;
    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 6px 15px 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: 50px 20px;
    color: var(--gray);
    grid-column: 1 / -1;
}

.no-books-message i {
    margin-bottom: 15px;
    color: var(--primary-light);
}

.no-books-message h3 {
    margin-bottom: 10px;
    color: var(--primary);
}

/* Benefits Section */
.benefits-section {
    margin: 50px 0;
    padding: 25px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.benefit-card {
    background: linear-gradient(135deg, white 0%, var(--pink-light) 100%);
    padding: 25px 20px;
    border-radius: 15px;
    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 12px 30px rgba(233, 30, 99, 0.25);
}

.benefit-icon {
    font-size: 40px;
    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;
}

/* 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 6px 20px 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 8px 25px rgba(37, 211, 102, 0.6);
}

/* 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: 15px;
    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: 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: 10001;
}

.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: 250px 1fr;
    gap: 30px;
    align-items: start;
}

.modal-image {
    width: 100%;
    border-radius: 12px;
    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: 10px;
    text-align: center;
}

.meta-label {
    display: block;
    font-size: 11px;
    color: var(--gray);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.meta-value {
    display: block;
    font-weight: bold;
    color: var(--primary);
    font-size: 14px;
}

.modal-description {
    line-height: 1.6;
    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: 12px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.modal-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.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 6px 15px 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: 50px 20px;
}

.modal-loading i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.modal-loading p {
    color: var(--gray);
    font-size: 16px;
}

/* Notifications */
.notification {
    position: fixed;
    top: 80px;
    right: 15px;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 4px solid #e91e63;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 10000;
    max-width: 280px;
}

.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;
}

/* 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 16px;
    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;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ========== RESPONSIVE STYLES ========== */

/* Tablets */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .nav {
        padding: 0 15px;
    }
    
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .book-card {
        height: 460px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        max-width: 90%;
        padding: 25px;
    }
    
    .modal-body {
        grid-template-columns: 200px 1fr;
        gap: 25px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .modal-price {
        font-size: 24px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .nav {
        padding: 0 10px;
        height: 60px;
    }
    
    .nav-brand {
        font-size: 18px;
        gap: 6px;
    }
    
    .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: 30px 15px;
        gap: 0;
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .nav-link {
        padding: 12px 0;
        font-size: 16px;
        justify-content: center;
        width: 100%;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .service-toggle {
        display: none;
    }
    
    .btn-login, .btn-cart {
        padding: 6px 10px;
        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);
    }
    
    .main-content {
        margin-top: 70px;
        padding: 15px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .filters-section {
        padding: 15px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-filter {
        width: 100%;
        justify-content: center;
    }
    
    .sale-section {
        padding: 20px 15px;
        margin: 25px 0;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .book-card {
        height: 440px;
        padding: 15px;
    }
    
    .book-image {
        height: 180px;
    }
    
    .book-title {
        font-size: 16px;
        min-height: 40px;
    }
    
    .book-price {
        font-size: 18px;
        padding: 6px 12px;
    }
    
    .buy-button, .quick-view-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .benefits-section {
        padding: 20px 15px;
        margin: 30px 0;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .benefit-card {
        padding: 20px 15px;
    }
    
    .benefit-icon {
        font-size: 35px;
    }
    
    .modal-content {
        margin: 10px;
        padding: 20px;
        max-height: 85vh;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-image {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-author {
        font-size: 14px;
    }
    
    .modal-price {
        font-size: 22px;
        padding: 12px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .modal-meta {
        grid-template-columns: 1fr;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
    
    .user-dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        border-radius: 0;
        margin-top: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .nav {
        padding: 0 8px;
    }
    
    .nav-brand {
        font-size: 16px;
    }
    
    .nav-brand i {
        font-size: 20px;
    }
    
    .btn-login, .btn-cart {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .filters-section {
        padding: 12px;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    .book-card {
        height: 420px;
        padding: 12px;
    }
    
    .book-image {
        height: 160px;
    }
    
    .book-title {
        font-size: 15px;
        min-height: 38px;
    }
    
    .book-author {
        font-size: 13px;
    }
    
    .book-price {
        font-size: 16px;
    }
    
    .book-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .buy-button, .quick-view-btn {
        width: 100%;
    }
    
    .quick-view-btn {
        order: -1;
    }
    
    .benefit-card {
        padding: 15px 12px;
    }
    
    .benefit-icon {
        font-size: 30px;
        margin-bottom: 15px;
    }
    
    .benefit-card h3 {
        font-size: 18px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
    
    .modal-content {
        padding: 15px;
        margin: 5px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-price {
        font-size: 20px;
        padding: 10px;
    }
    
    .modal-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .notification {
        top: 70px;
        right: 8px;
        left: 8px;
        padding: 10px 12px;
    }
    
    .notification-content {
        font-size: 14px;
    }
}

/* Very Small Screens */
@media (max-width: 360px) {
    .nav-brand {
        font-size: 15px;
    }
    
    .book-card {
        height: 400px;
    }
    
    .book-image {
        height: 140px;
    }
    
    .book-title {
        font-size: 14px;
    }
    
    .book-price {
        font-size: 15px;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }
    
    .modal-content {
        padding: 12px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-price {
        font-size: 18px;
    }
    
    .modal-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Orientation-specific styles */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        padding: 20px;
        overflow-y: auto;
    }
    
    .book-card {
        height: 380px;
    }
    
    .book-image {
        height: 130px;
    }
    
    .modal-content {
        max-height: 80vh;
    }
    
    .modal-body {
        grid-template-columns: 150px 1fr;
        gap: 15px;
    }
    
    .modal-image {
        max-width: 150px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .whatsapp-float,
    .filters-section,
    .benefits-section {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .book-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        height: auto;
    }
    
    .book-actions {
        display: none;
    }
}