/* Hot Sales Specific Styles */

.active-page {
    background: linear-gradient(135deg, #ff6666, #cc0000) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(204, 0, 0, 0.05));
    padding: 120px 20px 60px;
    text-align: center;
    margin-top: 110px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff0000, #ff6666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid #ff4444;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 600;
}

/* Remove underline from Hot Sales link */
.nav-link.hot-deals {
    text-decoration: none;
}

/* Ensure fire icon has no underline */
.fire-icon {
    text-decoration: none;
}

/* General fix for all nav links that are anchor tags */
a.nav-link {
    text-decoration: none;
}

/* Filters Section */
.filters-section {
    padding: 2rem 1rem;
    background: rgba(26, 26, 26, 0.5);
}

.filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 600;
}

.filter-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
}

.filter-btn.active {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-color: #ff0000;
}

.sort-options {
    display: flex;
    justify-content: center;
}

.sort-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    min-width: 200px;
}

.sort-select:focus {
    outline: none;
    border-color: #ff4444;
}

.sort-select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* Products Section */
.products-section {
    padding: 3rem 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #ff4444;
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.3);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #25f704, #1fc903);
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}

.condition-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 68, 68, 0.9);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: #ff4444;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.product-specs {
    color: #999999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.defect-info {
    background: rgba(255, 68, 68, 0.1);
    border-left: 3px solid #ff4444;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.defect-title {
    color: #ff6666;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.defect-description {
    color: #cccccc;
    font-size: 0.85rem;
    line-height: 1.5;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #25f704;
}

.original-price {
    font-size: 1.2rem;
    color: #999999;
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.add-to-cart-btn,
.view-details-btn {
    flex: 1;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.add-to-cart-btn:hover,
.view-details-btn:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.view-details-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.view-details-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    border-color: #ff4444;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #1a1a1a;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 68, 68, 0.2);
}

.cart-header h2 {
    font-size: 1.5rem;
    color: #ffffff;
}

.close-cart {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-cart:hover {
    color: #ff4444;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.empty-cart {
    text-align: center;
    color: #999999;
    padding: 3rem 1rem;
}

.cart-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.cart-item-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
}

.cart-item-price {
    color: #25f704;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.cart-footer {
    border-top: 1px solid rgba(255, 68, 68, 0.2);
    padding: 1.5rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.cart-total span:last-child {
    color: #25f704;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #ffffff;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.checkout-btn:hover {
    background: linear-gradient(135deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    padding: 2rem;
    overflow-y: auto;
}

.product-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 68, 68, 0.2);
    border: none;
    color: #ffffff;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.close-modal:hover {
    background: #ff4444;
}

.modal-body {
    padding: 2rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.modal-image-section img {
    width: 100%;
    border-radius: 8px;
}

.modal-info-section h2 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.modal-category {
    color: #ff4444;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.modal-specs {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.modal-specs h3 {
    color: #ff4444;
    margin-bottom: 1rem;
}

.modal-specs ul {
    list-style: none;
    padding: 0;
}

.modal-specs li {
    color: #cccccc;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 68, 68, 0.1);
}

.modal-specs li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .add-to-cart-btn,
    .view-details-btn {
        width: 100%;
    }
}