/* Variables y Tema Oscuro/Premium */
:root {
    --bg-color: #0f111a;
    --text-main: #ffffff;
    --text-muted: #a0aabf;
    --accent-color: #ffb703; /* Dorado King */
    --accent-hover: #fb8500;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --danger: #ef233c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background dinámico (fuego/humo sutil) */
.background-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 183, 3, 0.15) 0%, rgba(15, 17, 26, 1) 70%);
    z-index: -1;
}

/* Utilidad Glassmorphism */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.brand-title .accent {
    color: var(--accent-color);
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    height: 20px;
    width: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

/* App Menu (Header) */
.app-menu-container {
    position: relative;
    display: flex;
    align-items: center;
}

.app-menu-btn {
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--text-main);
}

.app-menu-btn:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.app-menu-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 15px;
    width: 250px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    padding: 0.5rem;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

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

.app-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    color: var(--text-main);
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}

.app-menu-item:hover {
    background: rgba(255,183,3,0.15);
    color: var(--accent-color);
}

.app-menu-item i {
    font-size: 1.2rem;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

/* Categories */
.categories {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    scrollbar-width: none; /* Firefox */
}
.categories::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category-btn.active, .category-btn:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

/* Sections */
.menu-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.menu-section.active {
    display: block;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: cardEntrance 0.5s ease-out forwards;
    animation-delay: var(--card-delay, 0s);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(255, 183, 3, 0.15), 0 10px 25px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 183, 3, 0.4);
}

.product-img-wrapper {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(145deg, #1a0a00 0%, #2d1200 40%, #1a0a00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 40%, rgba(255,183,3,0.18) 0%, rgba(210,40,20,0.12) 50%, transparent 80%);
}

.product-img-wrapper::after {
    content: '👑🍔';
    font-size: 3.5rem;
    opacity: 0.55;
    filter: drop-shadow(0 4px 16px rgba(255,183,3,0.5));
    transition: transform 0.5s ease, opacity 0.5s ease;
    position: relative;
    z-index: 2;
    line-height: 1;
}

.product-card:hover .product-img-wrapper::after {
    transform: scale(1.12) rotate(-5deg);
    opacity: 0.8;
}

/* Real image styling */
.product-img-wrapper.has-image::after {
    display: none;
}

.product-img-wrapper.has-image::before {
    z-index: 2;
    background: linear-gradient(to top, rgba(15, 17, 26, 0.75) 0%, transparent 45%);
    pointer-events: none;
}

.product-img-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ffb703 0%, #fb8500 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(251, 133, 0, 0.4);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-color);
    transition: transform 0.2s ease, color 0.2s ease;
}

.price-pop {
    animation: pricePopAnim 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pricePopAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); color: #fff; }
    100% { transform: scale(1); }
}

.add-to-cart {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart:hover {
    background: var(--accent-color);
    color: #000;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(15, 17, 26, 0.95);
    border-left: 1px solid var(--glass-border);
}

.cart-modal.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.cart-header h2 {
    font-size: 1.5rem;
}

#close-cart {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

#close-cart:hover {
    color: var(--danger);
}

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-items {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.item-price {
    color: var(--accent-color);
    font-weight: 600;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 25px;
    height: 25px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-btn:hover {
    background: var(--text-main);
    color: #000;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 2rem;
    font-style: italic;
}

/* Checkout Form */
.checkout-form {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    border-top: 1px solid var(--glass-border);
}

.checkout-form input,
.checkout-form select {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

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

.checkout-form input:focus,
.checkout-form select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.checkout-form select option {
    background: var(--bg-color);
    color: var(--text-main);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#cart-total {
    color: var(--accent-color);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    border: none;
    background: #25D366; /* WhatsApp Color */
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease, transform 0.2s;
}

.checkout-btn:hover {
    background: #128C7E;
    transform: scale(1.02);
}

/* Toast */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    z-index: 2000;
    transition: bottom 0.4s ease;
    background: rgba(255, 183, 3, 0.9);
    color: #000;
    border: none;
}

.toast.show {
    bottom: 20px;
}

/* Selector de Tamaño Premium (Segmented Control) */
.size-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 1.2rem;
    gap: 4px;
}

.size-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.size-btn.active {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 183, 3, 0.2);
}

.size-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

/* =============== SMOOTH SCROLL =============== */
html {
    scroll-behavior: smooth;
}

/* =============== HERO BANNER SECTION =============== */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 4rem 2rem;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 183, 3, 0.2) 0%, rgba(251, 133, 0, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    animation: heroGlowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroGlowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.hero-embers {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-embers span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 6px 2px rgba(255, 183, 3, 0.4);
    animation: emberFloat linear infinite;
    opacity: 0;
}

.hero-embers span:nth-child(1) { left: 10%; animation-duration: 6s; animation-delay: 0s; }
.hero-embers span:nth-child(2) { left: 25%; animation-duration: 8s; animation-delay: 1s; }
.hero-embers span:nth-child(3) { left: 40%; animation-duration: 5s; animation-delay: 2s; }
.hero-embers span:nth-child(4) { left: 55%; animation-duration: 7s; animation-delay: 0.5s; }
.hero-embers span:nth-child(5) { left: 70%; animation-duration: 6s; animation-delay: 1.5s; }
.hero-embers span:nth-child(6) { left: 85%; animation-duration: 9s; animation-delay: 3s; }
.hero-embers span:nth-child(7) { left: 15%; animation-duration: 7s; animation-delay: 2.5s; width: 3px; height: 3px; }
.hero-embers span:nth-child(8) { left: 60%; animation-duration: 5.5s; animation-delay: 0.8s; width: 5px; height: 5px; }

@keyframes emberFloat {
    0% { bottom: -10px; opacity: 0; transform: translateX(0) rotate(0deg); }
    10% { opacity: 0.8; }
    50% { transform: translateX(20px) rotate(180deg); }
    90% { opacity: 0.4; }
    100% { bottom: 100%; opacity: 0; transform: translateX(-10px) rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: heroContentReveal 1s ease-out forwards;
}

@keyframes heroContentReveal {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.crown-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    animation: crownFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(255, 183, 3, 0.5));
}

@keyframes crownFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-accent {
    color: var(--accent-color);
    text-shadow: 0 0 40px rgba(255, 183, 3, 0.3);
}

.hero-divider {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.hero-divider span {
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 2px;
    animation: dividerPulse 2.5s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { width: 80px; opacity: 0.6; }
    50% { width: 130px; opacity: 1; }
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.hero-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.hero-info span:hover {
    color: var(--accent-color);
}

.hero-info i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2.5rem;
    background: var(--accent-color);
    color: #000;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 25px rgba(255, 183, 3, 0.3);
}

.hero-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255, 183, 3, 0.5);
}

.hero-cta:active {
    transform: translateY(-1px);
}

/* =============== SECTION TITLE ANIMATION =============== */
.title-animate {
    animation: titleSlideIn 0.4s ease-out;
}

@keyframes titleSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* =============== CARD ENTRANCE ANIMATION =============== */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =============== RESPONSIVE =============== */
@media (max-width: 768px) {
    .brand-title { font-size: 1.5rem; }
    .products-grid { grid-template-columns: 1fr; }
    .hero { min-height: 60vh; padding: 3rem 1.5rem; }
    .hero-title { font-size: 2.2rem; letter-spacing: 3px; }
    .hero-tagline { font-size: 1rem; letter-spacing: 2px; }
    .crown-icon { font-size: 3.5rem; }
    .hero-info { gap: 1rem; }
    .hero-glow { width: 300px; height: 300px; }
}

/* =============== BUSCADOR =============== */
.search-container {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.2);
}

/* =============== WOBBLE ANIMATION FOR CART =============== */
.wobble-cart {
    animation: cartWobble 0.6s ease;
}

@keyframes cartWobble {
    0% { transform: scale(1); }
    15% { transform: scale(1.2) rotate(-15deg); }
    30% { transform: scale(1.2) rotate(10deg); }
    45% { transform: scale(1.2) rotate(-10deg); }
    60% { transform: scale(1.2) rotate(5deg); }
    75% { transform: scale(1.2) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* =============== SISTEMA DE ENVÍO Y ZONAS =============== */
.zone-selector-block {
    background: rgba(255, 183, 3, 0.05);
    border: 1px dashed var(--accent-color);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.zone-select-input {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zone-select-input:focus {
    box-shadow: 0 0 12px rgba(255, 183, 3, 0.3);
}

.delivery-method-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    color: #4ade80;
    gap: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.change-zone-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.change-zone-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.subtotal-line, .delivery-line {
    margin-bottom: 0.5rem !important;
    font-size: 0.9rem !important;
}

.grand-total-line {
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--glass-border);
}


/* ================================================================
   SECCIÓN DE FAVORITOS (App Inteligente - CustomerMemory)
   ================================================================ */

.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.favorites-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--accent-color);
    letter-spacing: 0.5px;
    text-shadow: 0 0 20px rgba(255, 183, 3, 0.3);
}

.favorites-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
}

.favorites-grid {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.fav-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 183, 3, 0.2);
    animation: fadeIn 0.4s ease;
    transition: border-color 0.3s ease, transform 0.2s ease;
    background: rgba(255, 183, 3, 0.04);
}

.fav-card:hover {
    border-color: rgba(255, 183, 3, 0.5);
    transform: translateX(4px);
}

.fav-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.fav-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-card-count {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 500;
}

.fav-add-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.1rem;
    margin-left: 0.8rem;
}

