
.home-auth {
    min-height: 100vh;
    padding: 100px 0 50px 0;
    background: radial-gradient(#393939, #0c0c0c);
    background-attachment: fixed;
}

.comparator-container {
    max-width: 1600px;
    width: 1600px;
    margin: 0 auto;
    padding: 5vw 30px 30px;
}

.container {
    max-width: 70vw !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.comparator-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    min-height: calc(100vh - 200px);
}

.categories-sidebar {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 0;
    height: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 120px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 30px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-item i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(60, 55, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding-left: 35px;
}

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

.category-item:hover i {
    transform: scale(1.1);
}

.category-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-left-color: #3C37F1;
}

.category-item.active i {
    color: #3C37F1;
}

.category-item-svg {
    width: 20px;
    height: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: center;
}

.search-bar {
    position: relative;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: rgba(60, 55, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(60, 55, 241, 0.1);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 22px;
    z-index: 2;
    transition: color 0.3s ease;
}

.search-bar:focus-within .search-icon {
    color: #3C37F1;
}

.search-input {
    width: 100%;
    padding: 18px 24px 18px 60px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    outline: none;
}

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

.filter-dropdown {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.filter-dropdown:focus-within {
    border-color: rgba(60, 55, 241, 0.5);
}

.filter-select {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    outline: none;
    cursor: pointer;
}

.filter-select option {
    background: #1a1a1a;
    color: #fff;
}

.products-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 200px;
}

.product-item {
    display: grid;
    grid-template-columns: 140px 1fr 250px 200px;
    gap: 25px;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

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

.product-item:nth-child(1) { animation-delay: 0.1s; }
.product-item:nth-child(2) { animation-delay: 0.2s; }
.product-item:nth-child(3) { animation-delay: 0.3s; }
.product-item:nth-child(4) { animation-delay: 0.4s; }
.product-item:nth-child(5) { animation-delay: 0.5s; }

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(60, 55, 241, 0.2);
    border-color: rgba(60, 55, 241, 0.3);
}

.product-item-var:nth-child(1) { animation-delay: 0.1s; }
.product-item-var:nth-child(2) { animation-delay: 0.2s; }
.product-item-var:nth-child(3) { animation-delay: 0.3s; }
.product-item-var:nth-child(4) { animation-delay: 0.4s; }
.product-item-var:nth-child(5) { animation-delay: 0.5s; }

.product-item-var:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(60, 55, 241, 0.2);
    border-color: rgba(60, 55, 241, 0.3);
}


.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}


.product-image-var {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.product-image-var img {
    width: 80% !important;
    height: 80% !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.product-item-var:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-name {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.product-name-details {
    font-size: 16px;
    text-transform: none;
}

.product-desc {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    margin: 0;
    text-transform: none;
    line-height: 1.3;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.price-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-value {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.seller-logo {
    width: 110px;
    height: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.seller-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.vendor-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.vendor-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vendor-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vendor-btn:hover {
    background: rgba(60, 55, 241, 0.2);
    border-color: rgba(60, 55, 241, 0.5);
    transform: translateY(-2px);
}

.components-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.components-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #3C37F1;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    border-top-color: rgba(60, 55, 241, 0.7);
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: rgba(60, 55, 241, 0.5);
    animation-duration: 0.9s;
}

.spinner-ring:nth-child(4) {
    width: 20%;
    height: 20%;
    top: 40%;
    left: 40%;
    border-top-color: rgba(60, 55, 241, 0.3);
    animation-duration: 0.6s;
    animation-direction: reverse;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}




.comparison-item-arrow {
    color: rgba(130, 130, 130, 0.5);
    font-size: 40px;
    transition: all 0.3s ease;
}

.comparison-item-arrow {
    color: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.product-item-var {
    display: grid;
    grid-template-columns: 140px 15fr 0px 20px;
    gap: 25px;
    align-items: center;
    background: rgba(5, 5, 5, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}



@media screen and (max-width: 1400px) {
    .comparator-layout {
        grid-template-columns: 250px 1fr;
    }

    .product-item {
        grid-template-columns: 120px 1fr 220px 180px;
        gap: 20px;
        padding: 20px;
    }
    .product-item-var {
        grid-template-columns: 120px 1fr 220px 180px;
        gap: 20px;
        padding: 20px;
    }
}

@media screen and (max-width: 1200px) {
    .comparator-layout {
        grid-template-columns: 220px 1fr;
        gap: 25px;
    }

    .category-item {
        padding: 16px 25px;
        font-size: 14px;
    }

    .category-item i {
        font-size: 18px;
    }

    .search-section {
        grid-template-columns: 1fr 250px;
    }
}

@media screen and (max-width: 992px) {
    .comparator-container {
        padding: 80px 20px 20px;
    }

    .comparator-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .categories-sidebar {
        display: flex;
        overflow-x: auto;
        padding: 15px;
        gap: 10px;
        white-space: nowrap;
        position: static;
        border-radius: 15px;
        scrollbar-width: thin;
        scrollbar-color: rgba(60, 55, 241, 0.3) transparent;
    }

    .categories-sidebar::-webkit-scrollbar {
        height: 6px;
    }

    .categories-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .categories-sidebar::-webkit-scrollbar-thumb {
        background: rgba(60, 55, 241, 0.3);
        border-radius: 3px;
    }

    .category-item {
        padding: 12px 20px;
        border-radius: 25px;
        border-left: none;
        border: 1px solid rgba(255, 255, 255, 0.1);
        flex-shrink: 0;
        font-size: 13px;
    }

    .category-item:hover {
        padding-left: 20px;
    }

    .category-item.active {
        border-color: #3C37F1;
        background: rgba(60, 55, 241, 0.2);
    }

    .search-section {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-item {
        grid-template-columns: 100px 1fr;
        grid-template-areas:
            "image info"
            "image price"
            "image vendor";
        gap: 15px;
        padding: 15px 20px;
    }

    .product-item-var {
        grid-template-columns: 100px 1fr;
        grid-template-areas:
            "image info"
            "image price"
            "image vendor";
        gap: 15px;
        padding: 15px 20px;
    }

    .product-image {
        grid-area: image;
        height: 100px;
    }

    .product-info {
        grid-area: info;
    }

    .product-price {
        grid-area: price;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        gap: 15px;
    }

    .vendor-section {
        grid-area: vendor;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        gap: 15px;
    }

    .price-value {
        font-size: 24px;
    }
}

@media screen and (max-width: 768px) {
    .home-auth {
        padding: 80px 0 20px 0;
    }

    .comparator-container {
        padding: 70px 15px 15px;
    }

    .product-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
        padding: 15px;
    }
    .product-item-var {
        grid-template-columns: 80px 1fr;
        gap: 12px;
        padding: 15px;
    }


    .product-name {
        font-size: 16px;
    }

    .price-value {
        font-size: 20px;
    }

    .vendor-btn {
        padding: 10px 18px;
        font-size: 12px;
    }

    .search-input,
    .filter-select {
        padding: 16px 20px 16px 55px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .product-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "info"
            "price"
            "vendor";
        text-align: center;
        gap: 15px;
    }

    .product-item-var {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "info"
            "price"
            "vendor";
        text-align: center;
        gap: 15px;
    }

    .product-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .product-price,
    .vendor-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .price-label,
    .vendor-label {
        font-size: 11px;
    }

    .seller-logo {
        width: 90px;
    }

    .categories-sidebar {
        justify-content: flex-start;
        padding: 10px;
    }

    .category-item {
        padding: 10px 16px;
        font-size: 12px;
    }

    .category-item i {
        font-size: 16px;
    }
}

.back-button-container {
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    max-width: 280px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.back-button:hover {
    background: rgba(60, 55, 241, 0.2);
    border-color: rgba(60, 55, 241, 0.5);
    transform: translateX(-5px);
}

.back-button i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

/* Animations supplémentaires */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    animation: slideIn 0.3s ease;
}

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


.comparator-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.comparator-title {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #ffffff;
}


.comparator-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}





.component-info-box {
    background: rgb(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.component-info-box.active {
    opacity: 1;
    transform: translateY(0);
}

.component-info-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 35px;
    align-items: center;
}

.component-info-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.component-info-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.component-info-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.component-info-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.component-info-title {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.component-info-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
}

.component-info-stats {
    display: flex;
    gap: 40px;
    padding-top: 10px;
}

.info-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.info-stat:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(60, 55, 241, 0.3);
}

.info-stat i {
    font-size: 24px;
    color: #3C37F1;
}

.info-stat-value {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.info-stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media screen and (max-width: 1200px) {
    .component-info-content {
        grid-template-columns: 180px 1fr;
        gap: 25px;
    }

    .component-info-image {
        height: 160px;
    }

    .component-info-title {
        font-size: 22px;
    }

    .component-info-stats {
        gap: 30px;
    }
}

@media screen and (max-width: 992px) {
    .component-info-box {
        padding: 25px;
        margin-bottom: 25px;
    }

    .component-info-content {
        grid-template-columns: 150px 1fr;
        gap: 20px;
    }

    .component-info-image {
        height: 140px;
    }

    .component-info-title {
        font-size: 20px;
    }

    .component-info-description {
        font-size: 15px;
    }

    .component-info-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .info-stat {
        padding: 12px 20px;
        flex: 1;
        min-width: calc(50% - 10px);
    }

    .info-stat-value {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .component-info-box {
        padding: 20px;
        margin-bottom: 20px;
    }

    .component-info-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .component-info-image {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    .component-info-title {
        font-size: 18px;
    }

    .component-info-description {
        font-size: 14px;
    }

    .component-info-stats {
        justify-content: center;
        gap: 15px;
    }

    .info-stat {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 15px 20px;
        min-width: calc(50% - 7.5px);
    }

    .info-stat i {
        font-size: 20px;
    }

    .info-stat-value {
        font-size: 16px;
    }

    .info-stat-label {
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .component-info-box {
        padding: 15px;
    }

    .component-info-image {
        width: 120px;
        height: 120px;
    }

    .component-info-title {
        font-size: 16px;
    }

    .component-info-description {
        font-size: 13px;
    }

    .component-info-stats {
        flex-direction: column;
        gap: 10px;
    }

    .info-stat {
        width: 100%;
        min-width: auto;
        flex-direction: row;
        justify-content: center;
    }
}

.arrow-container {

}

