/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    background: linear-gradient(145deg, rgba(25,25,30,0.98), rgba(15,15,20,0.98));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    color: #fff;
    font-size: 0.9rem;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
}

.toast.show {
    transform: translateX(0);
}

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

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.toast-message {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #fff;
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.warning { border-left: 4px solid #f59e0b; }
.toast.info { border-left: 4px solid #3b82f6; }

/* ==========================================
   SEARCH BAR
   ========================================== */
.search-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.6);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.search-clear.visible {
    display: flex;
}

.search-clear:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ==========================================
   COUPON SYSTEM
   ========================================== */
.coupon-container {
    margin-bottom: 1rem;
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
}

.coupon-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

.coupon-input::placeholder {
    color: rgba(255,255,255,0.3);
    text-transform: none;
}

.coupon-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.3);
}

.btn-coupon {
    padding: 0.75rem 1.25rem;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    color: #667eea;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.btn-coupon:hover {
    background: rgba(102, 126, 234, 0.3);
}

.btn-coupon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    color: #10b981;
    font-size: 0.85rem;
}

.coupon-applied span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coupon-remove {
    background: none;
    border: none;
    color: rgba(16, 185, 129, 0.6);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0;
    transition: color 0.2s;
}

.coupon-remove:hover {
    color: #10b981;
}

.discount-row {
    color: #10b981 !important;
}

.discount-row span:last-child {
    color: #10b981 !important;
}

/* ==========================================
   PRODUCT IMAGES / ICONS
   ========================================== */
.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.05);
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
}

.product-card:hover .product-icon::before {
    opacity: 1;
}

.product-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

/* Rarity glow effects */
.product-card[data-rarity="mitico"] .product-icon {
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.2), rgba(139, 69, 219, 0.2));
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.product-card[data-rarity="legendario"] .product-icon {
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.2), rgba(245, 158, 11, 0.2));
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.15);
}

/* Placeholder para cuando no hay imagen */
.product-image-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* ==========================================
   ENHANCED HOVER EFFECTS
   ========================================== */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

/* ==========================================
   NO RESULTS STATE
   ========================================== */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255,255,255,0.5);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.no-results p {
    font-size: 0.9rem;
}
