/* Top Page Specific Styles */

/* First View */
.fv {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.fv-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, #000000 0%, #1a0a00 100%); */
}

/* Text Pattern - styles moved to glitch.css */

.fv-content {
    position: relative;
    text-align: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

.fv-logo {
    /* font-size: 72px; */
    font-weight: bold;
    font-style: italic;
    color: var(--primary-orange);
    letter-spacing: 10px;
    margin-bottom: 50px;
    /* text-shadow: 0 0 30px rgba(255, 69, 0, 0.5); */
    top: 20%;
    left: calc( 50% - 75px );
    z-index: 999;
    position: absolute;
    width: 150px;
}

/* Car Image and Copy - styles moved to glitch.css */




.fv-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.fv-nav-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fv-nav-btn:hover {
    background-color: rgba(255, 69, 0, 0.7);
    transform: scale(1.2);
}

.fv-nav-btn.active {
    background-color: var(--primary-orange);
    transform: scale(1.3);
}

/* About Section */
.about {
    background-color: rgba(10, 10, 10, 0.5);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    border: 1px solid #909090;
    /* padding: 40px; */
}

.about-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 40px;
    background-image: url('../img/top/bg_concept.png?v=20251030');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 400px;
}

.about-text {
    color: var(--text-white);
    line-height: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background-color: #0a0a0a;
}

.about-text p {
    margin-bottom: 30px;
    font-size: 14px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about .btn-center {
    text-align: center;
    margin-top: 2rem;
}

/* Latest News */
.latest-news {
    background-color: #000000;
}

.latest-news .btn {
    color: #000000;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 30px;
    background-color: transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.news-item:hover {
    background-color: rgba(255, 69, 0, 0.05);
}

.news-item-highlight {
    background-color: rgba(60, 60, 60, 0.8);
}

.news-item-highlight:hover {
    background-color: rgba(80, 80, 80, 0.8);
}

.news-category {
    color: var(--text-white);
    font-size: 12px;
    padding: 6px 18px;
    border: 1px solid var(--text-white);
    border-radius: 50px;
    white-space: nowrap;
    min-width: 85px;
    text-align: center;
}

.news-item-highlight .news-category {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.news-date {
    color: var(--text-gray);
    font-size: 13px;
    white-space: nowrap;
    min-width: 90px;
}

.news-item-highlight .news-date {
    color: var(--text-gray);
}

.news-title {
    font-size: 14px;
    color: var(--text-white);
    flex: 1;
    margin: 0;
}

.news-item-highlight .news-title {
    color: var(--primary-orange);
}

.news-link {
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.news-item-highlight .news-link {
    color: var(--primary-orange);
}

.news-link:hover {
    transform: translateX(5px);
}

.news-link svg {
    width: 28px;
    height: 28px;
}

.btn-center {
    text-align: center;
}

/* Search Section */
.search-section {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(10, 5, 0, 0.8) 100%);
}

.search-section .container {
    padding: 0 20px;
}

.search-content {
    margin: 0 auto;
    border: 1px solid #909090;
    padding: 60px 40px;
}

.search-description {
    text-align: center;
    color: var(--text-white);
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 14px;
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto 40px;
    background-color: rgba(60, 60, 60, 0.8);
    border: none;
    border-radius: 30px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 12px 25px;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 14px;
    outline: none;
}

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

.search-btn {
    padding: 12px 20px;
    background-color: transparent;
    border: none;
    color: var(--primary-orange);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: #ff6a33;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 50px;
}

.search-tags .check_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
}

.search-tags .check_wrap input[type="checkbox"],
.search-tags .car-checkbox {
    display: none;
}

.tag {
    padding: 10px 20px;
    background-color: rgba(60, 60, 60, 0.8);
    border: 1px solid rgba(60, 60, 60, 0.8);
    color: var(--text-white);
    border-radius: 25px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag:hover {
    background-color: rgba(80, 80, 80, 0.8);
}

.tag-active {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--bg-black);
}

/* Products Sections */
.new-products,
.suggest-products {
    position: relative;
}

.new-products {
    background-color: var(--bg-black);
}

.suggest-products {
    background-color: #232323;
}

.products-slider {
    position: relative;
    overflow: visible !important;
    margin-bottom: 40px;
    margin-top: 50px;
}

.swiper {
    overflow: visible !important;
}

.products-slider > .swiper {
    overflow: visible !important;
}

.products-wrapper {
    /* Swiper handles the layout */
}

.swiper-wrapper {
    /* Swiper handles alignment */
}

/* Hide slides that are not in the active group */
.products-slider .swiper-slide {
    opacity: 1;
    transition: opacity 0s;
}

.products-slider .swiper-slide:not(.swiper-slide-visible) {
    opacity: 0;
    pointer-events: none;
}

.product-card {
    background-color: var(--bg-black);
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
}

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

/* Center slide - only image is larger */
.product-card.center-slide {
    z-index: 10;
}

.product-card.center-slide .product-image {
    transform: scale(1.2);
    transform-origin: center bottom;
}

.product-card.center-slide:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 280px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

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

.product-info {
    padding: 25px 20px;
    background-color: var(--bg-black);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.product-brand {
    font-size: 16px;
    color: var(--text-white);
    margin-bottom: 8px;
    font-weight: normal;
}

.product-model {
    font-size: 14px;
    color: var(--text-white);
    margin-bottom: 20px;
    font-weight: normal;
}

.product-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.product-price {
    font-size: 14px;
    color: var(--text-white);
    margin-bottom: 25px;
}

.product-link {
    color: var(--primary-orange);
    font-weight: normal;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.product-link:hover {
    gap: 12px;
}

.product-link svg {
    flex-shrink: 0;
}

.swiper-button-next,
.swiper-button-prev {
    color: inherit !important;
    width: 50px !important;
    height: 50px !important;
}

.swiper-button-next {
    right: -20px !important;
}

.swiper-button-prev {
    left: -20px !important;
}

.swiper-button-next::after,
.swiper-button-prev::after,
.swiper-rtl .swiper-button-prev::after {
    content: '' !important;
}

.slider-arrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-orange);
    /* border: none; */
    border-radius: 50%;
    color: transparent;
    font-size: 0;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.slider-arrow:hover {
    background-color: #ff6a33;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--primary-orange);
    border-right: 2px solid var(--primary-orange);
}

.slider-prev {
    left: -80px;
}

.slider-prev::after {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.slider-next {
    right: -80px;
}

.slider-next::after {
    transform: rotate(45deg);
    margin-right: 3px;
}

/* Swiper Pagination */
.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px !important;
}

.swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 60px !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #656565 !important;
    opacity: 1 !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #ff3200 !important;
    transform: scale(1.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .products-wrapper {
        /* grid-template-columns: repeat(2, 1fr); */
        /* gap: 20px; */
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .fv {
        height: auto;
        padding: 0;
    }

    .fv-content {
        flex-direction: column;
        gap: 30px;
    }

    .fv-logo {
    font-size: 36px;
    margin-bottom: 20px;
    top: 1.5rem;
    width: 15vw;
    left: calc( 50% - 7.5vw);
    }

    .fv-logo img {
        /* height: 30px; */
        width: 100%;
    }

    .fv-car-image {
        margin: 20px 0;
        width: 300%;
        left: -110%;
    }
    .fv-bg-layer{
        width: 300% !important;
        height: 300% !important;
        background-position: top center !important;
        left: -110% !important;
    }

    .fv-copy-02 {
        width: 14vw !important;
        height: 40vw;
        top: 27vw;
        left: 50%;
        transform: translateX(-50%);
        bottom: auto;
    }

    /* About Section */
    .about {
        padding: 0px 0 60px;
        margin-top: -10vw;
        z-index: 99;
        background-color: inherit;
    }

    .about-content {
        gap: 30px;
    }

    .about-text {
        font-size: 14px;
        line-height: 1.8;
        order: 1;
        padding: 2rem 2rem 0;
    }

    .about-image {
        height: 250px;
        order: 2;
    }

    /* Latest News */
    .latest-news {
        padding: 60px 0;
    }

    .latest-news .container {
        padding-left: 0;
        padding-right: 0;
    }

    .news-list {
        gap: 20px;
    }

    .news-item {
        display: grid;
        grid-template-columns: auto auto 1fr auto;
        grid-template-rows: auto auto;
        column-gap: 15px;
        row-gap: 10px;
        padding: 20px;
        border-radius: 0;
    }

    .news-category {
        font-size: 12px;
        padding: 4px 12px;
        grid-column: 1;
        grid-row: 1;
    }

    .news-date {
        font-size: 13px;
        grid-column: 2;
        grid-row: 1;
    }

    .news-title {
        font-size: 15px;
        grid-column: 1 / 4;
        grid-row: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .news-link {
        grid-column: 4;
        grid-row: 1 / 3;
        align-self: center;
    }

    /* Search Section */
    .search-section {
        padding: 60px 0;
    }

    .search-description {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 30px;
        text-align: left;
    }

    .search-bar {
        flex-direction: column;
        gap: 15px;
    }

    .search-bar input {
        font-size: 14px;
        padding: 15px 20px;
    }

    .search-bar button {
        width: 100%;
        padding: 15px;
        font-size: 14px;
    }

    .search-tags {
        gap: 10px;
        justify-content: center;
    }

    .tag {
        font-size: 12px;
        padding: 10px 20px;
    }

    /* Products Sections */
    .new-products,
    .suggest-products {
        padding: 60px 0;
    }

    /* Swiper fixes for SP */
    .new-products .container,
    .suggest-products .container {
        padding: 0;
    }

    .swiper {
        overflow: hidden !important;
    }

    .products-slider > .swiper {
        overflow: hidden !important;
    }

    .products-slider .swiper-slide:not(.swiper-slide-visible) {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .product-card {
        transform: none !important;
    }

    /* Disable center-slide scaling on SP */
    .product-card.center-slide .product-image {
        transform: none !important;
    }

    .product-card.center-slide .product-info {
        transform: none !important;
    }

    .product-card.center-slide:hover {
        transform: none !important;
    }

    .product-card:hover {
        transform: none !important;
    }

    .product-image {
        height: 200px;
        width: calc(100% - 4rem);
        margin: 2rem auto;
    }

    .new-products .product-card {
        background-color: #232323;
    }

    .product-info {
        align-items: flex-start;
        background-color: #232323;
    }

    .product-link {
        align-self: flex-end;
    }

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

    .product-description {
        font-size: 13px;
    }

    .slider-arrow {
        display: none;
    }

    .swiper-pagination {
        margin-top: 30px !important;
    }

    /* Section Titles */
    .section-title {
        font-size: 28px;
        /* margin-bottom: 15px; */
    }

    .section-title img {
        height: 20px;
    }

    .section-subtitle {
        font-size: 13px;
        margin-bottom: 30px;
    }
    .slider-next::after{
        margin-right: 1rem;
    }
    .slider-prev::after{
        margin-left: 1rem;
    }
    .suggest-products .swiper-backface-hidden .swiper-slide{
        background-color: #232323;
    }
    .new-products .swiper-backface-hidden .swiper-slide{
        background-color: #000000;
    }
    .new-products .product-info{
        background-color: #000000;
    }
}

.suggest-products .swiper-backface-hidden .swiper-slide{
    background-color: #232323;
}
.suggest-products .product-info{
    background-color: #232323;
}
.new-products .swiper-backface-hidden .swiper-slide{
    background-color: #000000;
}
.new-products .product-info{
    background-color: #000000;
}