/* Main Styles for Computer Parts E-commerce */

/* Font Face Definition */
@font-face {
    font-family: 'Smooch Sans';
    src: url('../fonts/SmoochSans.ttf') format('truetype');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --body-bg: #f8f9fa;
    --body-color: #212529;
    --border-color: #dee2e6;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: 'Smooch Sans', 'Roboto', sans-serif;
    background-color: var(--body-bg);
    color: var(--body-color);
    line-height: 1.6;
    font-size: 16px; /* Default for desktop */
}

/* PC Builder Button */
.build-pc-btn {
    background: linear-gradient(135deg, #D46C4E 0%, #F9AD6A 100%);
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}


.build-pc-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Font size for large screens (desktop) */
@media (min-width: 1367px) {
    body {
        font-size: 18px;
    }
}

a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styles */
.site-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-icon {
    position: relative;
    color: var(--dark-color);
}

.header-icon:hover {
    color: var(--primary-color);
}

.header-icon .badge {
    font-size: 0.6rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
}

/* Breadcrumb */
.breadcrumb-container {
    background-color: var(--light-color);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

/* Breadcrumb Modern Styles */
.breadcrumb-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.breadcrumb-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.breadcrumb-container {
    position: relative;
    z-index: 1;
}

.breadcrumb-modern-list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-modern-item {
    display: flex;
    align-items: center;
}

.breadcrumb-modern-link {
    color: rgba(80, 80, 80, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
}

.breadcrumb-modern-link:hover {
    color: #363636;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    text-decoration: none;
}

.breadcrumb-separator {
    color: rgba(80, 80, 80, 0.9);;
    
    font-size: 18px;
    
}

.breadcrumb-modern-current {
    color: #2D82B5;
    font-weight: 600;
    padding: 8px 12px;
    
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    backdrop-filter: blur(10px);
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        font-size: 18px; /* Default font size for mobile */
    }
    
    .breadcrumb-modern {
        padding: 12px 16px;
        margin-bottom: 20px;
    }
    .breadcrumb-container{
        display: none;
    }
    
    .breadcrumb-modern-link,
    .breadcrumb-modern-current {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .breadcrumb-modern-list {
        display:none;
    }
}

/* Filter Sidebar Styles */
.sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.filter-widget {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.filter-widget:last-child {
    border-bottom: none;
}

.filter-header {
    padding: 20px;
    background: linear-gradient(to Bottom, #53A6D8, #2D82B5);
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}



.filter-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
   
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.filter-title i {
    
    font-size: 18px;
}

.filter-content {
    padding: 20px;
    background: #fff;
}

.filter-search {
    position: relative;
}

.filter-search input {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-search input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.filter-options {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.filter-option {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
}

.filter-option:last-child {
    border-bottom: none;
}

.filter-option:hover {
    background: #f8f9fa;
    border-radius: 6px;
    margin: 0 -8px;
    padding: 8px 8px;
}

.modal-header{
    background: linear-gradient(to Bottom, #53A6D8, #2D82B5);
    color: #fff;
    border-bottom: 1px solid #e9ecef;
}

.form-check {
    margin-bottom: 0;
}

.form-check-input {
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-check-label {
    font-size: 16px;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: color 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.form-check-label:hover {
    color: #667eea;
}

.count {
    font-size: 14px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

/* Price Range Slider */
#price-slider {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    position: relative;
    margin: 20px 0;
}

.price-inputs input {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.price-inputs input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-check-input[data-filter="rating"]:checked + .form-check-label .rating-stars i.text-warning {
    transform: scale(1.1);
    filter: drop-shadow(0 0 3px rgba(255, 193, 7, 0.5));
}

/* Filter Actions */
.filter-actions {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

#clear-filters {
    border: 2px solid #6c757d;
    color: #6c757d;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#clear-filters:hover {
    background: #6c757d;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Mobile Filter Toggle */
.btn[data-bs-toggle="collapse"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.btn[data-bs-toggle="collapse"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Loading State */
.filter-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.filter-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .sidebar {
        position: static;
        margin-bottom: 30px;
    }
    
    .filter-content {
        padding: 15px;
    }
    
    .filter-header {
        padding: 15px;
    }
    
    .filter-actions {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .filter-title {
        font-size: 16px;
    }
    
    .form-check-label {
        font-size: 15px;
    }
    
    .count {
        font-size: 13px;
    }
}

/* Product Cards */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: contain;
    padding: 1rem;
    background-color: #fff;
}

.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    height: 2.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card .card-text {
    margin-bottom: 0.5rem;
}

.product-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-card .old-price {
    text-decoration: line-through;
    color: var(--muted-color);
    font-size: 0.875rem;
}

.product-card .discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--danger-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 700;
}

.product-card .card-footer {
    background-color: transparent;
    border-top: none;
    padding-top: 0;
    margin-top: auto;
}

.product-card .btn-add-to-cart {
    width: 100%;
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.feature-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #4dabf7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #4dabf7);
    opacity: 0;
    transform: scale(1.2);
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon {
    transform: rotateY(360deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.4);
}

.feature-item:hover .feature-icon::after {
    opacity: 0.3;
    transform: scale(1.4);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon i {
    transform: scale(1.2);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.feature-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.feature-content p {
    color: var(--secondary-color);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-content h4 {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.feature-item:hover .feature-content p {
    color: var(--dark-color);
    transform: translateY(-2px);
}

/* Animation cho từng item xuất hiện */
.features-section .col-md-3 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.features-section .col-md-3:nth-child(1) { animation-delay: 0.1s; }
.features-section .col-md-3:nth-child(2) { animation-delay: 0.2s; }
.features-section .col-md-3:nth-child(3) { animation-delay: 0.3s; }
.features-section .col-md-3:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .features-section {
        padding: 3rem 0;
    }
    
    .feature-item {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .feature-content h4 {
        font-size: 1.1rem;
    }
}

/* Latest News Section */
.latest-news-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    position: relative;
}

.latest-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.latest-news-section .section-title h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.latest-news-section .section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #6f42c1);
    border-radius: 2px;
}

.news-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #6f42c1, #e83e8c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.15);
}

.news-card:hover::before {
    opacity: 1;
}

.news-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.news-meta .category {
    background: linear-gradient(135deg, #6f42c1, #007bff);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-meta .date {
    color: #6c757d;
    font-weight: 500;
}

.news-title {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 18px;
}

.news-title a:hover {
    color: #007bff;
}

.news-excerpt {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-card .btn {
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    align-self: flex-start;
}

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

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

.news-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Animation for news cards */
@keyframes newsCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.latest-news-section .col-lg-2:nth-child(1) .news-card { animation: newsCardFadeIn 0.6s ease forwards 0.1s; opacity: 0; }
.latest-news-section .col-lg-2:nth-child(2) .news-card { animation: newsCardFadeIn 0.6s ease forwards 0.2s; opacity: 0; }
.latest-news-section .col-lg-2:nth-child(3) .news-card { animation: newsCardFadeIn 0.6s ease forwards 0.3s; opacity: 0; }
.latest-news-section .col-lg-2:nth-child(4) .news-card { animation: newsCardFadeIn 0.6s ease forwards 0.4s; opacity: 0; }
.latest-news-section .col-lg-2:nth-child(5) .news-card { animation: newsCardFadeIn 0.6s ease forwards 0.5s; opacity: 0; }
.latest-news-section .col-lg-2:nth-child(6) .news-card { animation: newsCardFadeIn 0.6s ease forwards 0.6s; opacity: 0; }

/* Responsive adjustments for news section */
@media (max-width: 992px) {
    .news-image {
        height: 200px;
    }
    
    .latest-news-section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 1.2rem;
    }
    
    .latest-news-section {
        padding: 2rem 0;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Product Detail */
.product-detail .product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-detail .product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-detail .product-old-price {
    text-decoration: line-through;
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-left: 0.5rem;
}

.product-detail .product-discount {
    background-color: var(--danger-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.product-detail .product-meta {
    margin-bottom: 1rem;
}

.product-detail .product-meta span {
    margin-right: 1rem;
}

.product-detail .product-description {
    margin-bottom: 1.5rem;
}

.product-detail .product-quantity {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.product-detail .quantity-input {
    width: 80px;
    text-align: center;
    margin: 0 0.5rem;
}

.product-detail .btn-quantity {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail .product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.product-detail .product-actions .btn {
    flex: 1;
}

.product-detail .product-attributes {
    margin-bottom: 1.5rem;
}

.product-detail .product-attributes .attribute-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* Product Gallery */
.product-gallery {
    margin-bottom: 1.5rem;
}

.product-gallery .main-image {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.product-gallery .main-image img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

.product-gallery .thumbnails {
    display: flex;
    gap: 0.5rem;
}

.product-gallery .thumbnail {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.product-gallery .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery .thumbnail.active {
    border-color: var(--primary-color);
}

/* Category Sidebar */
.category-sidebar {
    margin-bottom: 2rem;
}

.category-sidebar .card-header {
    font-weight: 700;
}

.category-sidebar .list-group-item {
    padding: 0.5rem 1rem;
}

.category-sidebar .list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* PC Builder Styles */
.build-pc-card-header {
    background: linear-gradient(135deg, #D46C4E 0%, #F9AD6A 100%);
    color: white;
    border-bottom: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Filter Sidebar */
.filter-sidebar .card {
    margin-bottom: 1.5rem;
}

.filter-sidebar .card-header {
    font-weight: 700;
}

.filter-sidebar .form-check {
    margin-bottom: 0.5rem;
}

/* Cart */
.cart-table th {
    font-weight: 500;
}

.cart-table .product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.cart-table .product-name {
    font-weight: 500;
}

.cart-table .product-price {
    font-weight: 700;
}

.cart-table .product-quantity {
    width: 80px;
}

.cart-table .product-subtotal {
    font-weight: 700;
    color: var(--primary-color);
}

.cart-table .btn-remove {
    color: var(--danger-color);
    background: none;
    border: none;
    padding: 0;
    font-size: 1.25rem;
}

.cart-summary {
    background-color: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.cart-summary .summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.cart-summary .summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

/* Checkout */
.checkout-steps {
    display: flex;
    margin-bottom: 2rem;
}

.checkout-step {
    flex: 1;
    text-align: center;
    padding: 1rem;
    background-color: var(--light-color);
    border-right: 1px solid white;
}

.checkout-step:last-child {
    border-right: none;
}

.checkout-step.active {
    background-color: var(--primary-color);
    color: white;
}

.checkout-step.completed {
    background-color: var(--success-color);
    color: white;
}

/* User Account */
.account-sidebar .list-group-item {
    padding: 0.75rem 1.25rem;
}

.account-sidebar .list-group-item.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.account-sidebar .list-group-item i {
    margin-right: 0.5rem;
}

/* Order History */
.order-card {
    margin-bottom: 1.5rem;
}

.order-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card .order-status {
    font-weight: 500;
}

.order-card .order-status.pending {
    color: var(--warning-color);
}

.order-card .order-status.processing {
    color: var(--info-color);
}

.order-card .order-status.completed {
    color: var(--success-color);
}

.order-card .order-status.cancelled {
    color: var(--danger-color);
}

/* Reviews */
.review-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
}

.review-item .review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-item .review-author {
    font-weight: 500;
}

.review-item .review-date {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.review-item .review-rating {
    margin-bottom: 0.5rem;
}

.review-item .review-rating .fa-star {
    color: var(--warning-color);
}

.review-item .review-rating .fa-star.empty {
    color: var(--secondary-color);
}

/* Star Rating */
.star-rating {
    color: var(--warning-color);
}

.star-rating .far.fa-star {
    color: var(--secondary-color);
}

/* Home Page Sections */
.section-title {
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

.section-title h2 {
    display: inline-block;
    position: relative;
    font-size: 1.75rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    
    width: 150px;
    height: 3px;
    background: linear-gradient(to Bottom, #FA9284, #E06C78);
}

/* Hero Slider */
.hero-slider {
    margin-bottom: 3rem;
    margin-left: 3%;
    margin-right: 3%;
    display: flex;
}

.hero-slider .swiper-slide {
    height: 500px;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.hero-slider .slide-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-slider .slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-slider .slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-slider .slide-description {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.7;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
}

/* Category Boxes */
.category-boxes {
    margin-bottom: 3rem;
}

.category-box {
    position: relative;
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.category-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.category-box .category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
}

.category-box .category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.category-box .category-count {
    font-size: 0.875rem;
}

/* Featured Products */
.featured-products {
    margin-bottom: 3rem;
}

/* Quantity Input Group */
.quantity-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 120px;
    margin: 0 auto;
    
}

.quantity-input-group .btn {
    border-radius: 0;
    min-width: 32px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
}

.quantity-input-group .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
    
}

.quantity-input-group .btn:last-child {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    
}

.quantity-input-group .quantity-input {
    border-radius: 0;
    text-align: center;
    height: 38px;
    padding: 0.375rem 0.25rem;
    font-size: 14px;
    font-weight: 600;
}

.quantity-input-group .quantity-input:focus {
    box-shadow: none;
    border-color: #dee2e6;
}

.quantity-input-group .btn:hover {
    background-color: #f8f9fa;
    border-color: #6c757d;
}

.quantity-input-group .btn:focus {
    box-shadow: none;
}

/* Latest Articles */
.latest-articles {
    margin-bottom: 3rem;
}

.article-card {
    height: 100%;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-5px);
}

.article-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.article-card .card-body {
    padding: 1.5rem;
}

.article-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.article-card .card-text {
    margin-bottom: 1rem;
}

.article-card .card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* Brands Carousel */
.brands-carousel {
    margin-bottom: 3rem;
    padding: 2rem 0;
    background-color: white;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.brands-carousel .brand-item {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brands-carousel .brand-item img {
    max-height: 60px;
    max-width: 120px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.brands-carousel .brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brands-carousel .brand-placeholder {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    color: var(--secondary-color);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    padding: 0.5rem;
    min-width: 120px;
    transition: var(--transition);
}

.brands-carousel .brand-item:hover .brand-placeholder {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Newsletter */
.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.newsletter .newsletter-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter .newsletter-description {
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.newsletter .newsletter-form {
    max-width: 500px;
}

.newsletter .form-control {
    height: 50px;
}

.newsletter .btn {
    height: 50px;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Vertical Menu Styles */
.vertical-menu-container {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1rem;
}

.vertical-menu-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.vertical-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vertical-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

.vertical-menu-item:last-child {
    border-bottom: none;
}

.vertical-menu-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.vertical-menu-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 1.25rem;
    text-decoration: none;
}

.vertical-menu-link i {
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

/* Vertical Submenu Styles */
.vertical-menu-item.has-dropdown > .vertical-menu-link::after {
    content: '\f054';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.vertical-menu-item.has-dropdown.active > .vertical-menu-link::after {
    transform: rotate(90deg);
}

.vertical-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    display: none;
}

.vertical-menu-item.has-dropdown.active .vertical-submenu {
    display: block;
}

.vertical-submenu-item {
    border-bottom: 1px solid #e9ecef;
}

.vertical-submenu-item:last-child {
    border-bottom: none;
}

.vertical-submenu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.vertical-submenu-link:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
    padding-left: 2.75rem;
    text-decoration: none;
}

.vertical-submenu-link i {
    width: 16px;
    text-align: center;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* Active states */
.vertical-menu-link.active,
.vertical-submenu-link.active {
    background-color: var(--primary-color);
    color: white;
}

.vertical-menu-link.active:hover,
.vertical-submenu-link.active:hover {
    background-color: #0056b3;
    color: white;
}

/* Responsive */
@media (max-width: 991.98px) {
    .vertical-menu-container {
        display: none;
    }
}

/* Footer */
.site-footer {
    background-color: var(--dark-color);
    color: white;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
    color: white;
}

.site-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.site-footer .social-links a:hover {
    background-color: var(--primary-color);
}

/* Back to top button */
.back-to-top {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-slider .slide-title {
        font-size: 2rem;
    }
    
    .hero-slider .slide-description {
        font-size: 1rem;
    }
    
    .product-detail .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .hero-slider .swiper-slide {
        height: 300px;
    }
    
    .hero-slider .slide-title {
        font-size: 1.7rem;
    }
    
    .hero-slider .slide-description {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.7rem;
    }
    
    .product-gallery .main-image img {
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .hero-slider .swiper-slide {
        height: 250px;
    }
    
    .hero-slider .slide-title {
        font-size: 1.5rem;
    }
    
    .hero-slider .slide-description {
        display: none;
    }
    
    .product-card .card-img-top {
        height: 150px;
    }
    
    .product-gallery .main-image img {
        height: 250px;
    }
    
    .product-gallery .thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* Banner Sidebar Styles */
.banner-sidebar {
    padding: 0;
}

.banner-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.banner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.banner-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom:-8px;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.swiper-button-next, .swiper-button-prev
{
    color:var(--light-color);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.8), rgba(13, 110, 253, 0.6));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-item:hover .banner-overlay {
    opacity: 1;
}

.banner-item:hover .banner-image {
    filter: brightness(1.1);
}

.banner-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: var(--transition);
}

.banner-item:hover .banner-content {
    transform: translateY(0);
}

.banner-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Banner Styles */
@media (max-width: 991.98px) {
    .banner-sidebar {
        
    }
    
    .banner-item {
        margin-bottom: 1rem;
    }
}

/* Mobile Banner Styles */
@media (max-width: 767px) {
    .banner-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
    }
    
    .banner-container .banner-item {
        width: calc(50% - 5px);
        margin-bottom: 10px;
    }
    
    .banner-container .banner-item-3 {
        display: none; /* Ẩn banner 3 trên thiết bị di động */
    }
}

@media (max-width: 767.98px) {
    .banner-content h4 {
        font-size: 1.2rem;
    }
    
    /* Ẩn slider trên giao diện điện thoại */
    .home-slider-container {
        display: none;
    }
}

/* Sale Section */
.sale-section {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 25%, #ff9ff3 50%, #54a0ff 75%, #5f27cd 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.sale-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.sale-section .container {
    position: relative;
    z-index: 2;
}

.sale-section .section-sale-title h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.sale-section .section-sale-title h2 span {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
        transform: scale(1);
    }
    25% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    75% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

.blink-text {
    animation: blink 2s ease-in-out infinite;
    display: inline-block;
    text-shadow: 0 0 10px rgba(77, 76, 76, 0.8);
}

/* Featured Products Category Section Title */
.featured-products-category .section-title {
    background-image: linear-gradient(to bottom, #53A6D8, #2D82B5);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.featured-products-category .section-title h2 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 0;
    padding-left: 20px;
}

.featured-products-category .section-title .btn {
    background-color: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.featured-products-category .section-title .btn:hover {
    background-color: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

/* Promotional Products Slider */
.promotional-products-slider {
    position: relative;
    overflow: hidden;
}

.promotional-products-slider .swiper-slide {
    height: auto;
    display: flex;
}

.promotional-products-slider .product-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    background: white;
}

.promotional-products-slider .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.promotional-products-slider .product-thumb {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.promotional-products-slider .product-thumb {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Creates square aspect ratio */
}

.promotional-products-slider .product-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    padding: 10px;
}

.promotional-products-slider .product-card:hover .product-thumb img {
    transform: scale(1.05);
}

.promotional-products-slider .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.promotional-products-slider .product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}
.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
}

.promotional-products-slider .product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}
.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.promotional-products-slider .product-actions a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}
.product-actions a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.promotional-products-slider .product-actions a:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}
.product-actions a:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.promotional-products-slider .product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info {
    
    flex: 1;
    display: flex;
    flex-direction: column;
}

.promotional-products-slider .product-category {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.product-category {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.promotional-products-slider .product-title {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.product-title {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    line-height: 1.3;
}

.promotional-products-slider .product-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 18px;
    font-weight: 600;
}

.product-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 18px;
    font-weight: 600;
}

.promotional-products-slider .product-title a:hover {
    color: var(--primary-color);
}
.product-title a:hover {
    color: var(--primary-color);
}

.promotional-products-slider .product-sku {
    margin-bottom: 8px;
}

.product-sku {
    margin-bottom: 8px;
}

.promotional-products-slider .product-stock {
    margin-bottom: 10px;
}

.product-stock {
    margin-bottom: 10px;
}

.promotional-products-slider .product-stock .badge {
    font-size: 14px;
    padding: 3px 8px;
}

.product-stock .badge {
    font-size: 14px;
    padding: 3px 8px;
}

.promotional-products-slider .product-price {
    margin-top: auto;
    
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-price {
    margin-top: auto;
    
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.promotional-products-slider .new-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger-color);
}

.new-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger-color);
}

.promotional-products-slider .old-price {
    font-size: 0.85rem;
    color: var(--muted-color);
    text-decoration: line-through;
}

.old-price {
    font-size: 0.85rem;
    color: var(--muted-color);
    text-decoration: line-through;
}

.promotional-products-slider .btn-add-to-cart-bottom {
    display: block;
    width: 100%;
    padding: 12px 16px;
    
    background-image: linear-gradient(to bottom, #53A6D8, #2D82B5);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-add-to-cart-bottom {
    display: block;
    width: 100%;
    padding: 12px 16px;
    margin-top: 15px;
    background-image: linear-gradient(to bottom, #53A6D8, #2D82B5);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Điều chỉnh padding cho nút thêm vào giỏ hàng trên điện thoại */
@media (max-width: 767px) {
    .btn-add-to-cart-bottom {
        padding: 5px 0px;
        font-size: 16px;
        margin-top:0px;
    }
}

.promotional-products-slider .btn-add-to-cart-bottom:hover {
    background-image: linear-gradient(to bottom, #5BB0E1, #3A8BC2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(45, 130, 181, 0.3);
    color: white;
    text-decoration: none;
}


.btn-add-to-cart-bottom:hover {
    background-image: linear-gradient(to bottom, #5BB0E1, #3A8BC2);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(45, 130, 181, 0.3);
    color: white;
    text-decoration: none;
}

.promotional-products-slider .btn-add-to-cart-bottom:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(45, 130, 181, 0.2);
}

.btn-add-to-cart-bottom:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(45, 130, 181, 0.2);
}

.promotional-products-slider .btn-add-to-cart-bottom i {
    margin-right: 8px;
}

.btn-add-to-cart-bottom i {
    margin-right: 8px;
}

.promotional-products-slider .swiper-button-next,
.promotional-products-slider .swiper-button-prev {
    color: var(--primary-color);
    background: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.promotional-products-slider .swiper-button-next:hover,
.promotional-products-slider .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.promotional-products-slider .swiper-button-next::after,
.promotional-products-slider .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 600;
}

.promotional-products-slider .swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.promotional-products-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--border-color);
    opacity: 1;
    transition: var(--transition);
}

.promotional-products-slider .swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive Promotional Products Slider */
@media (max-width: 1199.98px) {
    .promotional-products-slider .product-thumb img {
        
    }
}

@media (max-width: 991.98px) {
    .promotional-products-slider .product-thumb img {
        
    }
    
    .promotional-products-slider .product-info {
        padding: 12px;
    }
}

@media (max-width: 767.98px) {
    .promotional-products-slider .product-thumb img {
       
    }
    
    .promotional-products-slider .product-title {
        font-size: 1rem;
    }
    
    .promotional-products-slider .new-price {
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .promotional-products-slider .product-thumb img {
       
    }
    .card-body{
        padding:5px;
    }
    
    .promotional-products-slider .product-info {
        padding: 8px;
    }
    
    .promotional-products-slider .product-title {
        font-size: 0.85rem;
        margin-bottom: 5px;
        height: 40px;
        overflow: hidden;
    }
    
    .promotional-products-slider .product-meta {
        margin-bottom: 5px !important;
    }
    
    .promotional-products-slider .product-sku small {
        font-size: 14px;
    }
    
    .promotional-products-slider .product-stock .badge {
        font-size: 14px;
        padding: 0.2rem 0.4rem;
    }
    
    .promotional-products-slider .product-price {
        margin-bottom: 5px;
    }
    
    .promotional-products-slider .new-price {
        font-size: 18px;
    }
    
    .promotional-products-slider .old-price {
        font-size: 16px;
    }
    
    .promotional-products-slider .btn-add-to-cart-bottom {
        padding: 5px 8px;
        font-size: 16px;
    }
    
    .promotional-products-slider .btn-add-to-cart-bottom i {
        font-size: 0.8rem;
        margin-right: 3px;
    }
    
    .promotional-products-slider .product-actions {
        position: static;
        opacity: 1;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 10px;
    }
    
    /* Ẩn icon linh kiện trên mobile */
    .component-icon-mobile {
        display: none;
    }
    
    /* Ẩn cột và ô trạng thái trên mobile */
    .status-column,
    .status-cell,
    .status-badge {
        display: none !important;
    }
    
    /* Ẩn border-bottom-width của tr trong bảng PC Builder */
    .table-responsive .table tbody td {
        border-bottom-width: 0 !important;
    }
    
    /* Điều chỉnh card-header trong PC Builder trên mobile */
    .build-pc-card-header {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px;
        padding: 15px !important;
    }
    
    .build-pc-card-header h2 {
        margin-bottom: 10px !important;
        text-align: center;
    }
    
    .build-pc-card-header > div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .build-pc-card-header .btn {
        font-size: 14px !important;
        padding: 5px 8px !important;
        margin: 3px !important;
        width: calc(50% - 10px);
    }
}

/* PC Builder Banner */
.build-pc-banner {
    background-image: url('../images/build-pc-banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height:auto;
    padding: 40px 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.build-pc-banner h1 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

/* Responsive styles for tablet and mobile */
@media (max-width: 991.98px) {
    .build-pc-banner {
        text-align: right;
        padding: 30px 25px;
    }
    
    /* Ẩn thông số kỹ thuật trong PC Builder trên tablet */
    .component-specs {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
        display: inline-block;
    }
}

@media (max-width: 575.98px) {
    .hero-slider{
        margin-bottom:0px;
        margin-left:0px;
        margin-right:0px;
    }
    .sale-section{
        margin-top:-50px;
    }
    .build-pc-banner {
        text-align: center;
        padding: 25px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* Ẩn thông số kỹ thuật trong PC Builder trên mobile */
    .component-specs {
        display: none;
    }
    
    .build-pc-banner h1 {
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 0 !important;
        line-height: 1.4;
    }
}