﻿/* ==============================================
   1. DISCOUNT PRODUCTS PANEL
================================================= */
.discount-panel-orange {
    position: relative;
    padding: 20px;
    background: #E6511B;
    border-radius: 12px;
    margin: 20px;
    color: #fff;
}

    .discount-panel-orange .panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 0 10px;
        margin-bottom: 15px;
    }

    .discount-panel-orange .vertical-line {
        width: 8px;
        height: 34px;
        background: #E6511B;
        border-radius: 6px;
    }

    .discount-panel-orange .line {
        flex: 1;
        height: 3px;
        background: #fff;
        border-radius: 3px;
    }

    .discount-panel-orange .panel-title {
        font-size: 1.5rem;
        font-weight: bold;
        margin: 0;
        text-align: center;
    }

    .discount-panel-orange .view-all-wrapper a {
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        padding: 6px 12px;
    }

        .discount-panel-orange .view-all-wrapper a:hover {
            font-weight: bold;
        }

.discount-products {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

    .discount-products::-webkit-scrollbar {
        height: 8px;
    }

    .discount-products::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.5);
        border-radius: 4px;
    }

.product-card {
    width: 200px;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    text-align: center;
    padding: 10px;
}

    .product-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 8px;
    }

.product-info {
    padding: 10px;
    color: #333;
}

    .product-info h5 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

.old-price {
    text-decoration: line-through;
    color: #999;
}

.new-price {
    color: #E6511B;
    font-weight: bold;
}

.discount-slider {
    overflow: hidden;
    width: 100%;
}

.discount-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: scroll-right 45s linear infinite;
    animation-delay: 7s;
    animation-fill-mode: both;
}

.discount-slider:hover .discount-track {
    animation-play-state: paused;
}

@keyframes scroll-right {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(50%);
    }
}

@media (max-width:768px) {
    .discount-products .product-card {
        width: 150px;
        min-width: 150px;
    }

    .discount-panel-orange .panel-title {
        font-size: 1.05rem;
    }

    .discount-panel-orange .view-all-wrapper a {
        font-size: 0.85rem;
        padding: 4px 6px;
    }
}

/* ==============================================
   2. BANNERS
================================================= */
.banner-container {
    display: flex;
    gap: 15px;
    margin: 20px;
}

.banner-item {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.banner-image {
    width: 100%;
    transition: transform .3s ease;
}

.banner-item:hover .banner-image {
    transform: scale(1.05);
}

@media (max-width: 768px) {

    .banner-container {
        flex-direction: column;
        gap: 15px;
    }

    .banner-item {
        width: 100%;
        height: auto;
    }

        .banner-item img {
            width: 100%;
            height: auto;
            object-fit: contain;
        }
}

/* ==============================================
   3. RECOMMENDED PRODUCTS PANEL
================================================= */

.recommend-panel {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    margin: 15px;
}

.recommend-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.recommend-vertical-line {
    width: 8px;
    height: 34px;
    background: #E6511B;
    border-radius: 6px;
}

.recommend-title {
    font-size: 1.2rem;
    font-weight: bold;
    white-space: nowrap;
}

.recommend-line {
    flex: 1;
    height: 2px;
    background: #ccc;
}


.recommend-view-all-link {
    color: #000;
    background: none;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 0;
    transition: font-weight 0.2s ease;
}

.recommend-slider {
    overflow: hidden;
    width: 100%;
}

.recommend-track {
    display: flex;
    gap: 15px;
    width: max-content;
    padding-bottom: 10px;
    animation: recommend-scroll 45s linear infinite;
    animation-delay: 6s;
    animation-fill-mode: both;
}

.recommend-slider:hover .recommend-track {
    animation-play-state: paused;
}

.recommend-card {
    width: 200px;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: none;
}

    .recommend-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .recommend-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

.recommend-info {
    padding: 10px;
    color: #333;
}

    .recommend-info h5 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .recommend-info .price {
        font-weight: normal;
    }

@keyframes recommend-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(var(--scroll-direction, 50%));
    }
}

[dir="ltr"] .recommend-track {
    --scroll-direction: -50%;
}

[dir="rtl"] .recommend-track {
    --scroll-direction: 50%;
}

@media (max-width:768px) {
    .recommend-panel {
        padding: 10px;
        margin: 8px;
    }

    .recommend-vertical-line {
        width: 6px;
        height: 28px;
    }

    .recommend-card {
        width: 150px;
        min-width: 150px;
    }

    .recommend-title {
        font-size: 0.85rem;
        margin-top: 5px;
    }

    .recommend-view-all-link {
        font-size: 0.85rem;
        padding: 4px 6px;
    }
}
/* ==============================================
   4. CAR SECTION PANEL
================================================= */

.car-panel {
    background: #085A72;
    border-radius: 12px;
    padding: 20px;
    margin: 15px;
}

.car-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    gap: 10px;
}

.car-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-bottom: 15px;
}

.car-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.car-vertical-line {
    width: 8px;
    height: 34px;
    background: #fff;
    border-radius: 6px;
}

.car-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    margin: 0;
    white-space: nowrap;
}

.car-line {
    flex: 1;
    height: 2px;
    background: #fff;
}

.view-all-wrapper {
}

.car-view-all-btn {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .car-view-all-btn:hover {
        font-weight: bold;
    }

.car-products {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

    .car-products::-webkit-scrollbar {
        height: 8px;
    }

    .car-products::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.5);
        border-radius: 4px;
    }

.car-card {
    width: 200px;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    transition: box-shadow 0.2s ease;
    flex-shrink: 0;
}

    .car-card:hover {
        box-shadow: 0 14px 36px rgba(0,0,0,.35);
    }

    .car-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

.car-info {
    padding: 10px;
    color: #000;
}

    .car-info h5 {
        margin: 0 0 6px 0;
    }

.car-price {
    font-size: 0.9rem;
    font-weight: bold;
    color: #085A72;
}

@media (max-width:768px) {
    .car-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .car-header-line {
        display: none;
    }

    .car-card {
        width: 150px;
        min-width: 150px;
    }

    .car-title {
        font-size: 1rem;
    }

    .car-view-all-btn {
        font-size: 0.9rem;
        padding: 4px 8px;
    }

    .car-view-all-btn {
        font-size: 0.85rem;
        padding: 4px 6px;
    }
}

/* ==============================================
   5. BRAND PANEL
================================================= */
.brand-panel {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 15px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.brand-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-vertical-line {
    width: 8px;
    height: 34px;
    background: #E6511B;
    border-radius: 6px;
}

.brand-title {
    font-size: 1.2rem;
    font-weight: bold;
    white-space: nowrap;
}

.brand-panel a {
    text-decoration: none;
    color: inherit;
}

.brand-header-line {
    flex: 1;
    height: 2px;
    background: #ccc;
}

.brand-view-all {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
}

    .brand-view-all:hover {
        font-weight: bold;
    }

.brand-logos {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    justify-content: center;
}

    .brand-logos::-webkit-scrollbar {
        height: 8px;
    }

    .brand-logos::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.2);
        border-radius: 4px;
    }

    .brand-logos::before,
    .brand-logos::after {
        content: '';
        flex: 0 0 0;
    }

.brand-card {
    width: 200px;
    min-width: 200px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: box-shadow 0.2s;
}


    .brand-card img {
        max-width: 100%;
        max-height: 80px;
        object-fit: contain;
    }

.brand-vertical-line-gry {
    width: 1px;
    background: #656565;
}

@media (max-width:768px) {
    .brand-panel {
        padding: 10px;
        margin: 8px;
    }

    .brand-vertical-line {
        width: 6px;
        height: 28px;
    }

    .brand-title {
        font-size: 0.85rem;
        margin-top: 5px;
    }

    .brand-view-all {
        font-size: 0.85rem;
        padding: 4px 6px;
    }

    .brand-card {
        width: 120px;
        min-width: 120px;
        max-height: 70px;
    }
}

/* ==============================================
   6. CATEGORIES PANEL
================================================= */

.category-panel {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin: 15px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-vertical-line {
    width: 8px;
    height: 34px;
    background: #E6511B;
    border-radius: 6px;
}

.category-title {
    font-size: 1.2rem;
    font-weight: bold;
    white-space: nowrap;
}

.category-header-line {
    flex: 1;
    height: 2px;
    background: #ddd;
    border-radius: 2px;
}

.category-view-all {
    font-weight: 600;
    padding: 6px 12px;
    color: #000;
    text-decoration: none;
    transition: opacity 0.2s;
}

.category-logos {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

    .category-logos::-webkit-scrollbar {
        height: 7px;
    }

    .category-logos::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.25);
        border-radius: 10px;
    }

.category-card {
    width: 405px;
    min-width: 405px;
    height: 240px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #f2f2f2;
    cursor: pointer;
    transition: box-shadow 0.35s ease;
}



    .category-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.45s ease;
    }

    .category-card:hover img {
        transform: scale(1.05);
    }

    .category-card .category-placeholder {
        width: 100%;
        height: 100%;
        background: #eee;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .category-card .category-placeholder i {
            font-size: 2.6rem;
            color: #aaa;
        }

@media (min-width: 992px) {

    .category-logos {
        max-width: calc((405px * 4) + (16px * 4));
    }
}

@media (max-width:768px) {
    .category-panel {
        padding: 10px;
        margin: 8px;
    }

    .category-title {
        font-size: 0.85rem;
        margin-top: 5px;
    }

    .category-vertical-line {
        width: 6px;
        height: 28px;
    }

    .category-view-all {
        font-size: 0.85rem;
        padding: 4px 6px;
    }
}
