/* =========================================
   TOAST NOTIFICATIONS
   ========================================= */
.fh-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.fh-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    min-width: 280px;
    max-width: 400px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.fh-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.fh-toast.is-exiting {
    transform: translateX(120%);
    opacity: 0;
}

.fh-toast-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.fh-toast-body {
    flex: 1;
}

.fh-toast-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.fh-toast-msg {
    font-size: 0.8rem;
    color: #94a3b8;
}

.fh-toast-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.fh-toast-close:hover {
    color: #f8fafc;
}

.fh-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 12px 12px;
    background: #06b6d4;
    animation: fh-toast-countdown 3s linear forwards;
}

@keyframes fh-toast-countdown {
    from { width: 100%; }
    to { width: 0%; }
}

/* Toast variants */
.fh-toast--success { border-left: 3px solid #10b981; }
.fh-toast--success .fh-toast-progress { background: #10b981; }

.fh-toast--error { border-left: 3px solid #ef4444; }
.fh-toast--error .fh-toast-progress { background: #ef4444; }

.fh-toast--info { border-left: 3px solid #06b6d4; }
.fh-toast--info .fh-toast-progress { background: #06b6d4; }

/* =========================================
   QUICK VIEW MODAL
   ========================================= */
.fh-quickview-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fh-quickview-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.fh-quickview {
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 182, 212, 0.15);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.fh-quickview-backdrop.is-open .fh-quickview {
    transform: scale(1) translateY(0);
}

.fh-quickview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.fh-quickview-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.fh-quickview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.fh-quickview-image {
    position: relative;
    background: rgba(2, 6, 23, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
}

.fh-quickview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fh-quickview-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.fh-quickview-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.fh-quickview-category {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.fh-quickview-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
}

.fh-quickview-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fh-quickview-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.fh-quickview-actions .fh-btn {
    flex: 1;
}

.fh-quickview-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 99px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.fh-quickview-link:hover {
    border-color: rgba(6, 182, 212, 0.4);
    color: #06b6d4;
}

@media (max-width: 640px) {
    .fh-quickview-grid {
        grid-template-columns: 1fr;
    }
    .fh-quickview-image {
        border-radius: 16px 16px 0 0;
        min-height: 200px;
    }
    .fh-quickview {
        width: 95%;
        max-height: 90vh;
    }
}

/* =========================================
   SKELETON LOADING
   ========================================= */
.fh-skeleton {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.fh-skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, rgba(30,41,59,0.5) 25%, rgba(51,65,85,0.5) 50%, rgba(30,41,59,0.5) 75%);
    background-size: 200% 100%;
    animation: fh-skeleton-shimmer 1.5s infinite;
}

.fh-skeleton-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fh-skeleton-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(30,41,59,0.5) 25%, rgba(51,65,85,0.5) 50%, rgba(30,41,59,0.5) 75%);
    background-size: 200% 100%;
    animation: fh-skeleton-shimmer 1.5s infinite;
}

.fh-skeleton-line--title {
    width: 70%;
    height: 18px;
}

.fh-skeleton-line--short {
    width: 40%;
}

.fh-skeleton-line--price {
    width: 30%;
    height: 20px;
    margin-top: 4px;
}

.fh-skeleton-btn {
    height: 36px;
    border-radius: 99px;
    width: 50%;
    background: linear-gradient(90deg, rgba(30,41,59,0.5) 25%, rgba(51,65,85,0.5) 50%, rgba(30,41,59,0.5) 75%);
    background-size: 200% 100%;
    animation: fh-skeleton-shimmer 1.5s infinite;
    margin-top: 0.5rem;
}

@keyframes fh-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =========================================
   QUICK VIEW CARD BUTTON
   ========================================= */
.fh-card-image-wrap {
    position: relative;
}

.fh-card-qv-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
    padding: 0;
    line-height: 1;
}

.fh-card:hover .fh-card-qv-btn,
.fh-card-image-wrap:hover .fh-card-qv-btn {
    opacity: 1;
    transform: scale(1);
}

.fh-card-qv-btn:hover {
    background: rgba(6, 182, 212, 0.3);
    border-color: rgba(6, 182, 212, 0.5);
    color: #06b6d4;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}
