:where([class^="ri-"])::before {
    content: "\f3c2";
}
.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('https://readdy.ai/api/search-image?query=modern%20gaming%20setup%20with%20rgb%20lighting%20and%20high%20tech%20gaming%20peripherals%20in%20dark%20futuristic%20environment%20with%20neon%20green%20accents%20and%20professional%20gaming%20atmosphere&width=1920&height=1080&seq=hero-gaming&orientation=landscape');
    background-size: cover;
    background-position: center;
}
.gradient-bg {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

.product-hover:hover img {
    transform: scale(1.1);
}

.product-hover:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}


.price-range-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #374151;
    outline: none;
    border-radius: 2px;
}

.price-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #00ff41;
    cursor: pointer;
    border-radius: 50%;
}

.price-range-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00ff41;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #374151;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.custom-checkbox.checked {
    background-color: #00ff41;
    border-color: #00ff41;
}

.custom-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
    font-weight: bold;
}

.rating-stars {
    color: #fbbf24;
}
.product-hover {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}
.product-hover .p-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Đảm bảo tiêu đề có chiều cao tối thiểu */
.product-hover h3 {
    min-height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Đảm bảo mô tả có chiều cao tối thiểu */
.product-hover p {
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-hover .flex.items-center.justify-between,
.product-hover .block {
    margin-top: auto;
}
.product-image-zoom {
    transform-origin: center;
    transition: transform 0.3s ease;
}

.product-image-zoom:hover {
    transform: scale(1.2);
}

.star-rating {
    color: #fbbf24;
}

.thumbnail-active {
    border: 2px solid #00ff41;
}

.spec-section {
    border-bottom: 1px solid #374151;
}

.review-helpful:hover {
    color: #00ff41;
}
.animate-spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Alert Animations */
@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

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

.alert {
    animation: slideDown 0.3s ease-out;
}

.alert.hiding {
    animation: slideUp 0.3s ease-out;
}

/* Button States */
.btn-loading {
    pointer-events: none;
}

#add-to-cart-btn:disabled,
#buy-now-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 65, 0.3);
}

#buy-now-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* Quantity Controls */
.quantity-btn {
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #374151;
    color: #00ff41;
}

.quantity-btn:active {
    transform: scale(0.95);
}

#quantity {
    transition: border-color 0.2s ease;
}

#quantity:focus {
    border-color: #00ff41;
    outline: none;
}

/* Variation Selects */
.variations select {
    transition: all 0.2s ease;
}

.variations select:focus {
    border-color: #00ff41;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.1);
}

.variations select:hover {
    border-color: #6b7280;
}

/* Cart Notification */
#cart-notification {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

#cart-notification.show {
    transform: translateX(0);
}

/* Stock Status */
.stock-status {
    transition: all 0.2s ease;
}

.stock-status.in-stock {
    color: #10b981;
}

.stock-status.out-of-stock {
    color: #ef4444;
}

.stock-status.low-stock {
    color: #f59e0b;
}

/* Product Image Zoom Effect */
.product-image-zoom {
    transition: transform 0.3s ease;
}

.product-image-zoom:hover {
    transform: scale(1.05);
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 2px;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: #00ff41;
    border-radius: 2px;
}

.thumbnail-active {
    border: 2px solid #00ff41 !important;
    opacity: 1 !important;
}

.thumbnail-gallery img {
    transition: all 0.2s ease;
    opacity: 0.7;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
}

.thumbnail-gallery img:hover {
    opacity: 1;
    border-color: #6b7280;
}

/* Reviews Section */
.review-helpful:hover {
    color: #00ff41;
    transform: translateY(-1px);
}

.star-rating {
    color: #00ff41;
    transition: color 0.2s ease;
}

/* Specification Table */
.spec-section {
    border-bottom: 1px solid #374151;
    transition: background-color 0.2s ease;
}

.spec-section:hover {
    background-color: rgba(55, 65, 81, 0.3);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Tab Navigation */
.tab-button {
    transition: all 0.2s ease;
    position: relative;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #00ff41;
    transition: width 0.3s ease;
}

.tab-button.active::after,
.tab-button:hover::after {
    width: 100%;
}

/* Related Products */
.related-product {
    transition: transform 0.2s ease;
}

.related-product:hover {
    transform: translateY(-4px);
}

.related-product:hover .product-image {
    transform: scale(1.1);
}

.product-image {
    transition: transform 0.3s ease;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .quantity-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .add-to-cart-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    #cart-notification {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    
    .thumbnail-gallery {
        justify-content: center;
    }
}

/* Dark Mode Improvements */
@media (prefers-color-scheme: dark) {
    .alert-success {
        background-color: rgba(16, 185, 129, 0.1);
        border-color: rgba(16, 185, 129, 0.3);
        color: #10b981;
    }
    
    .alert-error {
        background-color: rgba(239, 68, 68, 0.1);
        border-color: rgba(239, 68, 68, 0.3);
        color: #ef4444;
    }
}

/* Accessibility Improvements */
.btn:focus-visible,
.quantity-btn:focus-visible {
    outline: 2px solid #00ff41;
    outline-offset: 2px;
}

.variations select:focus-visible {
    outline: 2px solid #00ff41;
    outline-offset: 2px;
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    background-color: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    z-index: 1000;
    border: 1px solid #374151;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #374151;
    border-top: 4px solid #00ff41;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success Checkmark Animation */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 100;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.checkmark {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmark 0.6s ease-in-out forwards;
}

/* Price Highlight */
.price-highlight {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}