/* ===========================
   FYRETECH - Favoritos Page
   Light Theme
   =========================== */

/* --- Light theme variables --- */
.fav-page-header,
.fav-section {
    --fav-bg: #f5f5f5;
    --fav-surface: #ffffff;
    --fav-border: rgba(0, 0, 0, 0.08);
    --fav-text: #333333;
    --fav-text-light: #666666;
    --fav-text-muted: #999999;
    --fav-heading: #111111;
}

/* ===========================
   PAGE HEADER (sem banner)
   =========================== */
.fav-page-header {
    padding-top: calc(var(--header-height, 80px) + 32px);
    padding-bottom: 28px;
    background: var(--color-bg);
}

/* Breadcrumb */
.fav-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 500;
}

.fav-breadcrumb a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.fav-breadcrumb a:hover {
    color: var(--color-primary-light);
}

.fav-breadcrumb svg {
    color: var(--color-text-muted);
    opacity: 0.5;
}

.fav-breadcrumb span {
    color: var(--color-text);
}

.fav-page-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--color-white);
}

/* ===========================
   FAVORITES SECTION
   =========================== */
.fav-section {
    padding: 64px 0 80px;
    background: var(--fav-bg);
}

/* --- Toolbar --- */
.fav-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.fav-count {
    font-size: 15px;
    font-weight: 600;
    color: var(--fav-text);
}

.fav-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--fav-surface);
    border: 1px solid var(--fav-border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--fav-text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.fav-clear-btn:hover {
    color: var(--color-primary);
    border-color: rgba(200, 16, 46, 0.2);
    background: rgba(200, 16, 46, 0.03);
}

/* --- Grid --- */
.fav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* --- Card --- */
.fav-card {
    display: flex;
    flex-direction: column;
    background: var(--fav-surface);
    border: 1px solid var(--fav-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.fav-card:hover {
    border-color: rgba(200, 16, 46, 0.25);
    box-shadow: 0 8px 30px rgba(200, 16, 46, 0.08), 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.fav-card-image {
    aspect-ratio: 1 / 1;
    background: var(--fav-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.fav-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.fav-card:hover .fav-card-image img {
    transform: scale(1.06);
}

.fav-card-info {
    padding: 16px;
}

.fav-card-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.fav-card-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--fav-heading);
    line-height: 1.3;
    margin: 0;
}

/* --- Remove button --- */
.fav-card-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--color-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fav-card-remove:hover {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.25);
}

/* --- Empty state --- */
.fav-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
}

.fav-empty.visible {
    display: flex;
}

.fav-empty svg {
    color: var(--fav-text-muted);
    opacity: 0.25;
    margin-bottom: 24px;
}

.fav-empty-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--fav-heading);
    margin-bottom: 12px;
}

.fav-empty-text {
    font-size: 15px;
    color: var(--fav-text-light);
    line-height: 1.6;
    max-width: 420px;
    margin-bottom: 32px;
}

.fav-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(200, 16, 46, 0.25);
}

.fav-empty-cta:hover {
    background: #a80d26;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.3);
}

/* Hide toolbar when empty */
.fav-toolbar.hidden {
    display: none;
}

/* ===========================
   RESPONSIVE
   =========================== */

/* Tablet */
@media (max-width: 991px) {

    .fav-section {
        padding: 48px 0 64px;
    }

    .fav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 767px) {

    .fav-section {
        padding: 32px 0 48px;
    }

    .fav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .fav-toolbar {
        margin-bottom: 24px;
    }

    .fav-count {
        font-size: 14px;
    }

    .fav-clear-btn {
        font-size: 12px;
        padding: 8px 16px;
    }

    .fav-empty-title {
        font-size: 20px;
    }

    .fav-empty-text {
        font-size: 14px;
    }

    .fav-empty-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* Small */
@media (max-width: 479px) {
    .fav-grid {
        grid-template-columns: 1fr;
    }

    .fav-card {
        flex-direction: row;
    }

    .fav-card-image {
        width: 120px;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
        padding: 12px;
    }

    .fav-card-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 14px 16px;
    }

    .fav-card-remove {
        top: 6px;
        right: 6px;
        width: 30px;
        height: 30px;
    }

    .fav-card-remove svg {
        width: 14px;
        height: 14px;
    }
}
