/* ------ SVG Landing Page ----- */

.shop-trailer-landing {
    padding: 40px 0px;
}
.svg-hero-image {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
/* 3 + 2 rows: three axle cards, then two wheel-end cards (centered) */
.svg-hero-image.svg-hero-image--categories {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    width: 100%;
}
.svg-hero-box:hover {
    box-shadow: 0px 0px 10px 3px #7510126e;
    transition: all 0.5s;
}
.svg-image-box {
    position: relative;
}
.svg-hero-box img.overlay-img {
    position: absolute;
    bottom: 0px;
    left: 0;
}
.svg-hero-box {
    background: var(--primary-color);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all ease-in-out 0.4s;
}
/* Shop Trailer Parts landing / home hero: row 1 = 3 cards, row 2 = 2 centered */
.svg-hero-image--categories .svg-hero-box {
    min-width: 0;
    box-sizing: border-box;
}
.svg-hero-image--categories .svg-hero-box:nth-child(1) {
    grid-column: 1 / 3;
    animation: hero-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.75s both;
}
.svg-hero-image--categories .svg-hero-box:nth-child(2) {
    grid-column: 3 / 5;
    animation: hero-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1s both;
}
.svg-hero-image--categories .svg-hero-box:nth-child(3) {
    grid-column: 5 / 7;
    animation: hero-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.25s both;
}
.svg-hero-image--categories .svg-hero-box:nth-child(4) {
    grid-column: 2 / 4;
    animation: hero-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.5s both;
}
.svg-hero-image--categories .svg-hero-box:nth-child(5) {
    grid-column: 4 / 6;
    animation: hero-in 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.75s both;
}
.svg-part-img {
    position: absolute;
    top: 38%;
    width: 100%;
    height: 260px;
    transform: translateY(-50%);
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
a.svg-hero-box:hover{
    transform: translateY(-10px) !important;
    box-shadow: 0px 10px 60px #ff8e8e4f !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
a.svg-hero-box:hover .svg-part-img img{
    transform: scale(1.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.svg-part-img img {
    max-height: 100%;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.svg-title {
    position: relative;
    font-size: 22px;
    color: #fff;
    display: inline-block;
    padding-right: 30px;
}
.svg-title:before {
    content: "\f061";
    font-family: "FontAwesome";
    position: absolute;
    top: 41%;
    right: 0;
    font-size: 16px;
    transform: rotate(317deg) translateY(-50%);
}


/* -------- Svg Functionality Page -------- */

.svg-parts-page {
    padding: 40px 0px;
    background-color: #fff;
}
.svg-parts-page-inner {
    display: flex;
    gap: 20px;
}
.svg-left-sidebar {
    width: 400px;
    flex: none;
    border-radius: 5px;
    box-shadow: 0px 0px 5px #ccc;
}
.svg-sidebar-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px 5px 0px 0px;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: 600;
    background: #404041;
    color: var(--white-color);
    
}
.svg-sidebar-content{
    max-height: 710px;
    overflow-y: auto;
    padding: 10px;
}
#categoryAccordion .accordion-item:last-child {
    margin-bottom: 0px;
}

.sidebar-close {
    display: none;
    font-size: 12px;
}



@media (max-width:1200px){
    /* ----- Svg Landing Page ----- */
    .svg-hero-image.svg-hero-image--categories {
        gap: 24px;
    }
    .svg-sidebar-title {
        border-radius: 0px;

    }
    /* Shop trailer parts */
    .product-row {
        flex-direction: column;
    }
    .product-img img {
        width: 120px;
    }
    .svg-left-sidebar {
        max-width: 320px;
        position: fixed;
        top: 0;
        left: -120%;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        border-radius: 0px;
    }
    .svg-left-sidebar.active{
        left: 0;
        transition: all 0.5s;
    }
    .path-shop-trailer-parts #main-wrapper {
        z-index: unset;
    }
    .sidebar-close {
        display: block;
    }
    .accordion-item.active {
        border: 1px solid var(--primary-color) !important;
    }
}

@media (max-width:768px){
    /* ----- Svg Landing Page ----- */
    .shop-trailer-landing{
        padding: 20px 0px;
    }
    .svg-hero-image{
        gap: 10px;
    }
    .svg-title {
        font-size: 16px;
        padding-right: 18px;
    }
    .svg-hero-image.svg-hero-image--categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .svg-hero-image--categories .svg-hero-box:nth-child(n) {
        grid-column: auto;
    }
    .svg-hero-image--categories .svg-hero-box {
        padding: 10px;
    }
    .svg-title:before{
        font-size: 10px;
    }
}

@media (max-width:551px){
    /* ----- Svg Landing Page ----- */
    .svg-hero-image.svg-hero-image--categories {
        grid-template-columns: 1fr;
    }
    .svg-title {
        font-size: 14px;
        padding-right: 15px;
    }
    .svg-title:before{
        font-size: 8px;
        top: 41%;
    }
}

@font-face {
  font-family: "slick";
  src: url("https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/fonts/slick.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* Brand row alignment */
.brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
/* Brand label */
.brand-label {
    font-weight: 600;
    color: #333;
}
/* Brand logo */
.brand-badge img {
    height: 30px;
    width: auto;
    display: block;
}
/* SVG CSS Starts**/
.svg-wrapper {
    background: #fff;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 0px 4px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 100%;
    padding: 32px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.svg-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}
.hotspots {
    cursor: pointer;
    pointer-events: all;
    transition: transform 0.2s;
}
/* .hotspots:hover {
    transform: scale(1.1);
} */

.svg-wrapper.part-selected .part,
.svg-wrapper.part-selected line,
.svg-wrapper.part-selected polyline,
.svg-wrapper.part-selected #other-parts,
.svg-wrapper.part-selected .hotspots {
    opacity: 0.2;
}

.svg-wrapper.part-selected .part.active,
.svg-wrapper.part-selected line.active,
.svg-wrapper.part-selected polyline.active,
.svg-wrapper.part-selected .hotspots.active {
    opacity: 1 !important;
}
line.active,
polyline.active {
    stroke-opacity: 1;
}
.product-row {
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid #F4F1F1;
    background-color:#FCFCFC ;
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}
.product-row:hover {
    background: #f9f9f9;
}
.product-img {
    position: relative;
    flex-shrink: 0;
}
.product-img img {
    width: 90px;
    height: auto;
    border-radius: 4px;
}
.product-sku span {
    color: #707070;
}
.product-info {
    flex: 1;
    font-size: 13px;
    min-width: 0;
}
.product-name {
    font-weight: 700;
    color: #00a3a3;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.25;
}
.product-sku {
    color: #000;
    font-size: 12px;
    margin-bottom: 2px;
    font-weight: 600;
}
.product-sku span {
    font-weight: 500;
}
.product-price {
    font-family: var(--font-prize);
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: bold;
    margin: 6px 0;
    color: #D44A40;
    font-weight: 500;
}
.product-actions-inline {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

/* .product-actions-inline button,
.product-actions-inline a {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
} */

.product-actions-inline .btn-cart {
    background: #741012;
    color: #fff;
}

.product-actions-inline .btn-cart:hover {
    background: #5a0c0e;
}

.product-actions-inline .btn-details {
    background: #e0e0e0;
    color: #333;
}

.product-actions-inline .btn-details:hover {
    background: #d0d0d0;
}

.category-panel {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
    min-height: 600px;
    display: flex;
    flex-direction: column;
}

.category-panel h3 {
    background: #3a3a3a;
    color: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 16px;
    flex-shrink: 0;
}

#categoryAccordion {
    flex: 1;
    overflow-y: auto;
}

/* Custom Scrollbar Styles */
#categoryAccordion::-webkit-scrollbar {
    width: 6px;
}

#categoryAccordion::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#categoryAccordion::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 3px;
}

#categoryAccordion::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Firefox */
#categoryAccordion {
    scrollbar-width: thin;
    scrollbar-color: #c0c0c0 #f1f1f1;
}
.svg-container {
    width: 100%;
    display: flex;
    align-items: stretch;
}

/* SVG Loading State */
.svg-wrapper.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    background: white;
    position: relative;
}

.svg-wrapper.loading::before {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #741012;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.svg-wrapper.loading::after {
    content: "Loading Diagram...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 60px));
    color: #741012;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

/* Category Loading State */
.category-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 15px;
}

.category-loading.hidden {
    display: none;
}

.category-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #741012;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.category-loading-text {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

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

#categoryAccordion .accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

#categoryAccordion .accordion-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    cursor: pointer;
    background: #fff;
    font-weight: 600;
}

#categoryAccordion .accordion-header:hover {
    background: #f5f5f5;
}

#categoryAccordion .accordion-index {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.25s ease;
}

#categoryAccordion .accordion-item.active .accordion-index {
    background: #741012;
    color: #fff;
}

#categoryAccordion .accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

#categoryAccordion .accordion-item.active .accordion-body {
    max-height: 100%;
}

.accordion-products {
    padding: 12px;
}
/* Custom Scrollbar for Accordion Products */
.svg-sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.svg-sidebar-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.svg-sidebar-content::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 3px;
}

.svg-sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Firefox */
.svg-sidebar-content {
    scrollbar-width: thin;
    scrollbar-color: #c0c0c0 #f1f1f1;
}

/* Tablet & below */
@media (max-width: 1024px) {

    .svg-container {
        justify-content: center;
    }

    .svg-wrapper {
        max-width: 100%;
        min-height: auto;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .category-panel {
        padding: 10px;
    }

    .accordion-header {
        font-size: 14px;
        padding: 10px;
    }

    .accordion-index {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .product-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-img img {
        width: 100%;
        max-width: 120px;
    }

    .product-actions-inline {
        flex-wrap: wrap;
        gap: 6px;
    }

    .btn-cart,
    .btn-details {
        width: auto;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .accordion-header {
        gap: 8px;
    }

    .product-price {
        font-size: 15px;
    }

    .category-panel h3 {
        font-size: 15px;
    }
}

/**SVG CSS Endx*/