/* ============================================
   BIBLIOTECA DIGITAL ACADÉMICA
   Diseño Profesional - Paleta Marrón Clásica
   Inspirado en bibliotecas universitarias
   ============================================ */

/* Variables CSS - Paleta Marrón Académica */
:root {
    /* Colores Principales - Marrones Nobles */
    --primary-color: #3e2723;        /* Marrón chocolate oscuro */
    --primary-dark: #2c1810;         /* Marrón muy oscuro (tinta) */
    --primary-light: #4e342e;        /* Marrón medio */
    --secondary-color: #5d4037;      /* Marrón noble */
    --secondary-light: #6d4c41;      /* Marrón claro */
    
    /* Acentos - Bronce y Dorado Antiguo */
    --accent-color: #b08d57;         /* Bronce antiguo */
    --accent-hover: #967641;         /* Bronce oscuro */
    --accent-light: #d4b886;         /* Bronce claro */
    --accent-soft: #e8d5a8;          /* Bronce suave */
    
    /* Fondos - Tonos Pergamino */
    --bg-primary: #faf6f1;           /* Crema pergamino (principal) */
    --bg-secondary: #ffffff;         /* Blanco puro */
    --bg-tertiary: #f0e9dd;          /* Beige suave */
    --bg-dark: #3e2723;              /* Marrón oscuro */
    --bg-warm: #f5ede0;              /* Beige cálido */
    
    /* Texto */
    --text-primary: #2c1810;         /* Tinta oscura */
    --text-secondary: #4a3728;       /* Marrón medio */
    --text-muted: #7a6555;           /* Marrón claro */
    --text-light: #faf6f1;           /* Crema */
    --text-accent: #b08d57;          /* Bronce */
    
    /* Estados */
    --success-color: #2e5c3e;        /* Verde biblioteca */
    --warning-color: #a0522d;        /* Marrón rojizo (siena) */
    --danger-color: #8b2500;         /* Rojo oscuro clásico */
    --info-color: #5d4037;           /* Marrón info */
    
    /* Bordes y Sombras */
    --border-color: #d4c4a8;         /* Beige borde */
    --border-dark: #a89078;          /* Marrón borde */
    --shadow-sm: 0 2px 4px rgba(62, 39, 35, 0.08);
    --shadow-md: 0 4px 12px rgba(62, 39, 35, 0.15);
    --shadow-lg: 0 8px 24px rgba(62, 39, 35, 0.20);
    --shadow-xl: 0 12px 32px rgba(62, 39, 35, 0.25);
    
    /* Tipografía - Clásica y Elegante */
    --font-primary: 'Merriweather', 'Georgia', serif;
    --font-secondary: 'Inter', 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', 'Georgia', serif;
    
    /* Transiciones */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

html[data-theme="oscuro"] {
    color-scheme: dark;
    --primary-color: #e8d5a8;
    --primary-dark: #140d0a;
    --primary-light: #d4b886;
    --secondary-color: #b79a85;
    --secondary-light: #c8ad98;
    --accent-color: #d4aa68;
    --accent-hover: #e5bd7c;
    --accent-light: #ecd09f;
    --accent-soft: #5b4937;
    --bg-primary: #17120f;
    --bg-secondary: #241c18;
    --bg-tertiary: #322720;
    --bg-dark: #0f0a08;
    --bg-warm: #2b211b;
    --text-primary: #f4eadc;
    --text-secondary: #dfcfbd;
    --text-muted: #b9a897;
    --text-light: #fffaf3;
    --border-color: #5b493b;
    --border-dark: #806955;
    --success-color: #78bd8c;
    --warning-color: #e3a16d;
    --danger-color: #ed826f;
    --info-color: #c8ad98;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, .28);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, .34);
    --shadow-lg: 0 10px 28px rgba(0, 0, 0, .4);
    --shadow-xl: 0 14px 36px rgba(0, 0, 0, .46);
}

html[data-theme="oscuro"] body {
    background-image: radial-gradient(circle at 10% 20%, rgba(212, 170, 104, .05) 0%, transparent 48%);
}

html[data-theme="oscuro"] input,
html[data-theme="oscuro"] select,
html[data-theme="oscuro"] textarea,
html[data-theme="oscuro"] .favorito-card,
html[data-theme="oscuro"] .book-card,
html[data-theme="oscuro"] .plan-card {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* Importar fuentes clásicas */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Playfair+Display:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    /* Textura sutil tipo papel */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(176, 141, 87, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(62, 39, 35, 0.02) 0%, transparent 50%);
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

/* ============================================
   HEADER SUPERIOR - Marrón Chocolate Profundo
   ============================================ */

.header-top {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--accent-color);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo - Elegante con bronce */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.logo a:hover {
    border-color: var(--accent-color);
    background: rgba(176, 141, 87, 0.1);
}

.logo i {
    font-size: 28px;
    color: var(--accent-color);
}

/* Ubicación */
.location {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}

.location:hover {
    border-color: var(--accent-color);
}

.location i {
    font-size: 18px;
    color: var(--accent-color);
}

.location .label {
    font-size: 11px;
    color: #d4c4a8;
    display: block;
}

.location .value {
    font-size: 13px;
    font-weight: 600;
}

/* Barra de Búsqueda - Estilo pergamino */
.search-bar {
    flex: 1;
    display: flex;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.search-category {
    background: var(--bg-warm);
    border: none;
    padding: 0 12px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
    border-right: 1px solid var(--border-color);
    font-weight: 500;
}

.search-input {
    flex: 1;
    border: none;
    padding: 0 15px;
    font-size: 15px;
    outline: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 0 22px;
    font-size: 18px;
    border: none;
    font-weight: bold;
}

.search-btn:hover {
    background: var(--accent-hover);
}

/* Idioma */
.language {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.language:hover {
    border-color: var(--accent-color);
}

.flag {
    width: 20px;
    height: 15px;
    border-radius: 2px;
}

/* Cuenta */
.account {
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}

.account:hover {
    border-color: var(--accent-color);
}

.account .label {
    font-size: 11px;
    color: #d4c4a8;
    display: block;
}

.account .value {
    font-size: 13px;
    font-weight: 600;
}

/* Pedidos */
.orders {
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
}

.orders:hover {
    border-color: var(--accent-color);
}

.orders .label {
    font-size: 11px;
    color: #d4c4a8;
    display: block;
}

.orders .value {
    font-size: 13px;
    font-weight: 600;
}

/* Carrito - Destacado con bronce */
.cart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.cart:hover {
    border-color: var(--accent-color);
}

.cart i {
    font-size: 28px;
    color: var(--accent-color);
}

.cart-count {
    position: absolute;
    top: 0;
    left: 22px;
    background: var(--accent-color);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 10px;
}

.cart-text {
    font-size: 13px;
    font-weight: 600;
}

/* ============================================
   NAVEGACIÓN SECUNDARIA - Marrón Noble
   ============================================ */

.nav-secondary {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 10px 0;
    border-bottom: 1px solid var(--secondary-light);
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.nav-menu li a {
    color: var(--text-light);
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.nav-menu li a:hover {
    border-color: var(--accent-color);
    background: rgba(176, 141, 87, 0.15);
    color: var(--accent-light);
}

/* ============================================
   BANNER HERO - Gradiente Marrón Elegante
   ============================================ */

.hero-banner {
    position: relative;
    height: 450px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 40%, var(--secondary-color) 100%);
    overflow: hidden;
}

/* Patrón decorativo sutil tipo biblioteca */
.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(176, 141, 87, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(176, 141, 87, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Efecto de textura de madera sutil */
.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(176, 141, 87, 0.02) 2px,
            rgba(176, 141, 87, 0.02) 4px
        );
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: 54px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-content p {
    font-family: var(--font-primary);
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    font-weight: 300;
    font-style: italic;
}

.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 15px 40px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--accent-color);
    font-family: var(--font-secondary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */

.main-content {
    padding: 20px 0;
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

/* Tarjetas de Categorías - Estilo biblioteca clásica */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    /* Efecto sutil tipo pergamino */
    background-image: linear-gradient(to bottom, #ffffff 0%, #fdfbf7 100%);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

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

.card-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
    filter: sepia(10%);
    transition: var(--transition);
}

.card-item:hover img {
    filter: sepia(0%);
    transform: scale(1.02);
}

.card-item p {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: var(--font-primary);
}

.card-link {
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-link:hover {
    color: var(--accent-hover);
}

/* Secciones de Libros */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-left: 25px;
    letter-spacing: 0.5px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 32px;
    background: linear-gradient(to bottom, var(--accent-color), var(--accent-hover));
    border-radius: 2px;
    box-shadow: 2px 0 4px rgba(176, 141, 87, 0.3);
}

.see-all {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
}

.see-all:hover {
    color: var(--accent-hover);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.book-card {
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background-image: linear-gradient(to bottom, #ffffff 0%, #fdfbf7 100%);
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.book-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: sepia(5%);
}

.book-card:hover .book-image img {
    transform: scale(1.05);
    filter: sepia(0%);
}

.book-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--success-color);
    color: white;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.book-badge.bestseller {
    background: var(--accent-color);
    color: var(--primary-dark);
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transition: var(--transition);
}

.book-card:hover .wishlist-btn {
    opacity: 1;
}

.wishlist-btn:hover {
    background: #fdf5f0;
    transform: scale(1.1);
}

.wishlist-btn i {
    color: var(--danger-color);
    font-size: 16px;
}

.book-info {
    padding: 15px;
}

.book-title {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.book-author {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-style: italic;
    font-family: var(--font-primary);
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: var(--accent-color);
    font-size: 14px;
}

.rating-count {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 500;
}

.book-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-display);
}

.price-original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-discount {
    font-size: 11px;
    color: var(--success-color);
    font-weight: 700;
    background: rgba(46, 92, 62, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
}

.book-format {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.book-format i {
    margin-right: 3px;
    color: var(--accent-color);
}

.btn-add-cart {
    width: 100%;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--primary-color);
    letter-spacing: 0.5px;
}

.btn-add-cart:hover {
    background: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color);
}

/* Ofertas Especiales - Banner Premium Clásico */
.special-offers {
    margin: 40px 0;
}

.offer-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    border-radius: 8px;
    padding: 50px;
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent-color);
}

.offer-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(176, 141, 87, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.offer-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(176, 141, 87, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.offer-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.offer-content h2 {
    font-family: var(--font-display);
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.offer-content p {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 300;
    font-family: var(--font-primary);
    font-style: italic;
}

.offer-features {
    margin-bottom: 30px;
}

.offer-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 16px;
}

.offer-features i {
    color: var(--accent-color);
    font-size: 18px;
}

/* ============================================
   FOOTER - Marrón Profundo Clásico
   ============================================ */

.footer {
    margin-top: 40px;
}

.footer-top {
    background: var(--secondary-light);
    padding: 15px 0;
    text-align: center;
}

.back-to-top {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.back-to-top:hover {
    color: var(--accent-light);
}

.footer-main {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 50px 0;
    border-top: 3px solid var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(176, 141, 87, 0.3);
    letter-spacing: 0.5px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #e8d5a8;
    font-size: 14px;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-bottom {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(176, 141, 87, 0.2);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-logo i {
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
}

.footer-links a {
    color: #d4c4a8;
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 12px;
    color: #a89078;
    font-family: var(--font-primary);
    font-style: italic;
}

/* ============================================
   NOTIFICACIONES - Estilo Académico
   ============================================ */

.notification {
    border-left: 4px solid var(--accent-color);
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-success i {
    color: var(--success-color);
}

.notification-warning {
    border-left-color: var(--warning-color);
}

.notification-warning i {
    color: var(--warning-color);
}

.notification-info {
    border-left-color: var(--secondary-color);
}

.notification-info i {
    color: var(--secondary-color);
}

.notification-error {
    border-left-color: var(--danger-color);
}

.notification-error i {
    color: var(--danger-color);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 10;
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .header-content {
        gap: 10px;
    }
    
    .location,
    .language,
    .account,
    .orders {
        display: none;
    }
    
    .nav-menu {
        overflow-x: auto;
        gap: 5px;
    }
    
    .hero-content h1 {
        font-size: 34px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .offer-banner {
        padding: 30px 20px;
    }
    
    .offer-content h2 {
        font-size: 26px;
    }
    
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .logo span {
        display: none;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-banner {
        height: 350px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
}
/* ============================================
   MENÚ DE USUARIO - DROPDOWN ELEGANTE
   ============================================ */

.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.user-menu-trigger:hover {
    border-color: var(--accent-color);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    font-family: var(--font-primary);
    border: 2px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-greeting {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
}

.user-account {
    font-size: 12px;
    color: #d4c4a8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-account i {
    font-size: 10px;
    transition: var(--transition);
}

.user-menu:hover .user-account i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--accent-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2000;
    overflow: hidden;
}

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

/* Dropdown Header */
.dropdown-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
}

.dropdown-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    font-family: var(--font-display);
    border: 3px solid var(--accent-light);
    flex-shrink: 0;
}

.dropdown-user-info h4 {
    font-family: var(--font-primary);
    font-size: 18px;
    margin-bottom: 4px;
    font-weight: 700;
}

.dropdown-user-info p {
    font-size: 12px;
    color: #d4c4a8;
    margin-bottom: 8px;
    word-break: break-all;
}

.user-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

/* Dropdown Menu Items */
.dropdown-menu {
    padding: 10px 0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background: var(--bg-tertiary);
    border-left-color: var(--accent-color);
    padding-left: 25px;
}

.dropdown-menu li a i {
    width: 20px;
    color: var(--accent-color);
    font-size: 16px;
}

.dropdown-menu li.admin-option a {
    background: linear-gradient(135deg, rgba(176, 141, 87, 0.1) 0%, rgba(176, 141, 87, 0.05) 100%);
    border-left-color: var(--accent-color);
    font-weight: 600;
}

.dropdown-menu li.admin-option a:hover {
    background: linear-gradient(135deg, rgba(176, 141, 87, 0.2) 0%, rgba(176, 141, 87, 0.1) 100%);
}

/* Dropdown Footer */
.dropdown-footer {
    padding: 10px 0;
    background: var(--bg-tertiary);
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    margin: 0 15px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.logout-btn:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.logout-btn i {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .user-menu-trigger {
        padding: 5px 8px;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .user-info {
        display: none;
    }
    
    .user-dropdown {
        width: 280px;
        right: -10px;
    }
    
    .dropdown-header {
        padding: 15px;
    }
    
    .dropdown-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .dropdown-user-info h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .user-dropdown {
        width: 260px;
        right: -15px;
    }
    
    .dropdown-menu li a {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .logout-btn {
        margin: 0 10px;
        padding: 10px 15px;
    }
}
/* ============================================
   BOTÓN FLOTANTE DEL CARRITO
   ============================================ */

.cart-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 8px 25px rgba(176, 141, 87, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 3px solid white;
}

.cart-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(176, 141, 87, 0.6);
}

.cart-float-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    font-size: 13px;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cart-float-count:empty,
.cart-float-count[data-count="0"] {
    display: none;
}

/* Animación cuando se agrega al carrito */
@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.cart-float.bounce {
    animation: cartBounce 0.5s ease;
}

/* ============================================
   ARREGLOS DEL HEADER
   ============================================ */

/* Asegurar que el header tenga los estilos correctos */
.header-top {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--text-light);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--accent-color);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-decoration: none;
}

.logo a:hover {
    border-color: var(--accent-color);
    background: rgba(176, 141, 87, 0.1);
}

.logo i {
    font-size: 28px;
    color: var(--accent-color);
}

/* Carrito en header como enlace */
a.cart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: var(--text-light);
}

a.cart:hover {
    border-color: var(--accent-color);
}

a.cart i {
    font-size: 28px;
    color: var(--accent-color);
}

.cart-count {
    position: absolute;
    top: 0;
    left: 22px;
    background: var(--accent-color);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 10px;
}

.cart-text {
    font-size: 13px;
    font-weight: 600;
}

/* Navegación secundaria */
.nav-secondary {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 10px 0;
    border-bottom: 1px solid var(--secondary-light);
}

.nav-menu {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--text-light);
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    text-decoration: none;
}

.nav-menu li a:hover {
    border-color: var(--accent-color);
    background: rgba(176, 141, 87, 0.15);
    color: var(--accent-light);
}

/* Responsive para botón flotante */
@media (max-width: 768px) {
    .cart-float {
        width: 55px;
        height: 55px;
        font-size: 22px;
        bottom: 20px;
        right: 20px;
    }
    
    .cart-float-count {
        font-size: 11px;
        min-width: 20px;
        height: 20px;
    }
}
/* ============================================
   ENLACE ADMIN EN NAVBAR
   ============================================ */

.admin-link {
    background: rgba(176, 141, 87, 0.2) !important;
    border: 1px solid var(--accent-color) !important;
    border-radius: 4px;
    font-weight: 700 !important;
    color: var(--accent-light) !important;
}

.admin-link:hover {
    background: var(--accent-color) !important;
    color: var(--primary-dark) !important;
}

.admin-option a {
    background: linear-gradient(135deg, rgba(176, 141, 87, 0.1) 0%, rgba(176, 141, 87, 0.05) 100%);
    border-left-color: var(--accent-color);
    font-weight: 600;
}

.admin-option a:hover {
    background: linear-gradient(135deg, rgba(176, 141, 87, 0.2) 0%, rgba(176, 141, 87, 0.1) 100%);
}

.admin-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

/* ============================================
   ESTRUCTURA GLOBAL V2
   ============================================ */
:root {
    --site-ink: #241814;
    --site-brown: #3a241d;
    --site-brown-2: #52372e;
    --site-gold: #c9a76a;
    --site-cream: #fbf8f2;
    --site-line: #e7dfd2;
    --site-green: #2f6b55;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background-color: var(--site-cream);
}

button,
input,
select,
textarea {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(201, 167, 106, .55);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 20000;
    padding: 10px 16px;
    border-radius: 8px;
    background: #fff;
    color: var(--site-ink);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    color: #fff;
    box-shadow: 0 8px 30px rgba(36, 24, 20, .16);
}

.site-header-main {
    background: linear-gradient(115deg, var(--site-ink), var(--site-brown) 62%, #4b3128);
}

.site-header-row {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    flex-shrink: 0;
}

.site-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px 12px 12px 3px;
    color: var(--site-ink);
    background: linear-gradient(145deg, #e3c78e, var(--site-gold));
    box-shadow: inset 0 1px rgba(255, 255, 255, .5);
    font-size: 19px;
}

.site-brand-copy {
    display: grid;
    line-height: 1.15;
}

.site-brand-copy strong {
    font: 700 21px/1.1 var(--font-display);
    letter-spacing: .1px;
}

.site-brand-copy small {
    margin-top: 4px;
    color: #d6c9bd;
    font: 500 10px/1 var(--font-secondary);
    letter-spacing: .11em;
    text-transform: uppercase;
}

.site-search {
    min-width: 0;
    height: 46px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding-left: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 12px;
    background: #fff;
    color: #76665e;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .17);
}

.site-search:focus-within {
    box-shadow: 0 0 0 3px rgba(201, 167, 106, .38), 0 5px 18px rgba(0, 0, 0, .17);
}

.site-search input {
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    color: var(--site-ink);
    background: transparent;
}

.site-search button {
    align-self: stretch;
    padding: 0 22px;
    border: 0;
    background: var(--site-gold);
    color: var(--site-ink);
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease;
}

.site-search button:hover {
    background: #dbbb7c;
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-link,
.cart-link,
.account-menu > summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

.login-link:hover,
.cart-link:hover,
.account-menu > summary:hover,
.account-menu[open] > summary {
    border-color: rgba(201, 167, 106, .5);
    background: rgba(255, 255, 255, .06);
}

.login-link > i,
.cart-link > i {
    color: var(--site-gold);
    font-size: 22px;
}

.login-link span,
.account-copy {
    display: grid;
    line-height: 1.15;
}

.login-link small,
.account-copy small {
    color: #d6c9bd;
    font-size: 10px;
}

.login-link strong,
.account-copy strong {
    max-width: 104px;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu {
    position: relative;
}

.account-menu > summary {
    list-style: none;
}

.account-menu > summary::-webkit-details-marker {
    display: none;
}

.account-menu > summary > i {
    color: var(--site-gold);
    font-size: 10px;
    transition: transform .2s;
}

.account-menu[open] > summary > i {
    transform: rotate(180deg);
}

.user-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--site-gold);
    color: var(--site-ink);
    font-weight: 900;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 255px;
    padding: 8px;
    border: 1px solid var(--site-line);
    border-radius: 14px;
    background: #fff;
    color: var(--site-ink);
    box-shadow: 0 18px 55px rgba(36, 24, 20, .2);
}

.account-dropdown::before {
    content: '';
    position: absolute;
    right: 24px;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--site-line);
    border-top: 1px solid var(--site-line);
    transform: rotate(45deg);
}

.account-dropdown-head {
    display: grid;
    gap: 3px;
    padding: 12px 12px 14px;
    border-bottom: 1px solid var(--site-line);
}

.account-dropdown-head span {
    overflow: hidden;
    color: #7c6c64;
    font-size: 12px;
    text-overflow: ellipsis;
}

.account-dropdown-head small {
    width: fit-content;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 99px;
    background: #f0ebe2;
    color: #624d42;
    font-weight: 700;
}

.account-dropdown > a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 3px;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 650;
}

.account-dropdown > a i {
    width: 18px;
    color: #8a6c42;
    text-align: center;
}

.account-dropdown > a:hover {
    background: #f7f2e9;
}

.account-dropdown > .account-logout {
    margin-top: 7px;
    border-top: 1px solid var(--site-line);
    border-radius: 0 0 8px 8px;
    color: #9c3f32;
}

.cart-link {
    position: relative;
    padding-right: 6px;
}

.cart-link .cart-count {
    position: absolute;
    top: 1px;
    left: 25px;
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 2px solid var(--site-brown);
    border-radius: 99px;
    background: #fff;
    color: var(--site-ink);
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.cart-label {
    align-self: flex-end;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 800;
}

.site-nav {
    background: var(--site-brown-2);
    border-bottom: 1px solid rgba(201, 167, 106, .42);
}

.site-nav-inner {
    min-height: 43px;
    display: flex;
    align-items: stretch;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav-inner::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 15px;
    border-bottom: 3px solid transparent;
    color: #f3eae3;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
}

.site-nav a:hover,
.site-nav a.active {
    border-bottom-color: var(--site-gold);
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.site-nav a i {
    color: var(--site-gold);
}

.site-footer {
    margin-top: 84px;
    background: var(--site-ink);
    color: #e8ded5;
}

.footer-callout {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--site-gold);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.footer-callout h2 {
    max-width: 650px;
    margin: 0;
    color: #fff;
    font: 700 clamp(24px, 3vw, 38px)/1.15 var(--font-display);
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 19px;
    border-radius: 9px;
    background: var(--site-gold);
    color: var(--site-ink);
    font-weight: 850;
    white-space: nowrap;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 60px;
    padding-top: 52px;
    padding-bottom: 52px;
}

.footer-brand-link {
    margin-bottom: 17px;
}

.footer-brand p {
    max-width: 390px;
    color: #bfb1a7;
    font-size: 13px;
}

.footer-grid h3 {
    margin: 0 0 17px;
    color: #fff;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-grid > div:not(.footer-brand) a {
    color: #cfc2b8;
    font-size: 13px;
}

.footer-grid > div:not(.footer-brand) a:hover {
    color: var(--site-gold);
}

.footer-secure {
    margin-top: 7px;
    color: #8dbda8;
    font-size: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: #1c1310;
}

.footer-bottom .container {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #aa9d94;
    font-size: 11px;
}

.app-toast {
    position: fixed;
    top: 135px;
    right: 22px;
    z-index: 15000;
    width: min(390px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--site-line);
    border-left: 4px solid #6f635e;
    border-radius: 11px;
    background: #fff;
    color: var(--site-ink);
    box-shadow: 0 16px 50px rgba(36, 24, 20, .22);
    animation: toast-in .24s ease-out;
}

.app-toast-success { border-left-color: var(--site-green); }
.app-toast-success > i { color: var(--site-green); }
.app-toast-error { border-left-color: #a63e32; }
.app-toast-error > i { color: #a63e32; }
.app-toast button {
    border: 0;
    background: none;
    color: #7c6c64;
    font-size: 22px;
    cursor: pointer;
}

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

@media (max-width: 1050px) {
    .site-header-row {
        grid-template-columns: auto 1fr auto;
        gap: 16px;
    }

    .site-brand-copy small,
    .account-copy,
    .cart-label {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1.5fr repeat(2, 1fr);
        gap: 36px;
    }
}

@media (max-width: 760px) {
    .site-header {
        position: relative;
    }

    .site-header-row {
        grid-template-columns: 1fr auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-search {
        grid-column: 1 / -1;
        grid-row: 2;
        order: 3;
        height: 43px;
    }

    .site-search button {
        padding: 0 16px;
    }

    .site-actions {
        justify-self: end;
    }

    .login-link span,
    .account-menu > summary > i {
        display: none;
    }

    .login-link,
    .cart-link,
    .account-menu > summary {
        padding: 7px;
    }

    .site-nav-inner {
        padding-left: 8px;
        padding-right: 8px;
    }

    .site-nav a {
        padding: 0 11px;
    }

    .footer-callout {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        padding-top: 40px;
        padding-bottom: 40px;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .site-brand-mark {
        width: 38px;
        height: 38px;
    }

    .site-brand-copy strong {
        font-size: 18px;
    }

    .site-actions {
        gap: 2px;
    }

    .site-search button {
        font-size: 0;
    }

    .site-search button::after {
        content: 'Ir';
        font-size: 12px;
    }

    .account-dropdown {
        position: fixed;
        top: 68px;
        right: 12px;
        left: 12px;
        width: auto;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom .container {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 17px;
        padding-bottom: 17px;
    }

    .app-toast {
        top: 16px;
        right: 16px;
    }
}
