/*============================================================================*/
/* SLIDER ARROW */
/*============================================================================*/
.rev_slider_wrapper {
    overflow: visible !important;
}
.tp-leftarrow, .tp-rightarrow {
    z-index: 9999 !important;
    display: block !important;
}

/*============================================================================*/
/* MODAL OVERLAY SPECS */
/*============================================================================*/
body.modal-open {
    overflow: hidden;
}

.specs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.specs-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.specs-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 700px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.specs-modal.show {
    opacity: 1;
    visibility: visible;
}

.spec-header {
    color: #c30606;
    font-weight: bold;
}

.specs-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #c30606;
    color: #fff;
    border: none;
    padding: 5px 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    z-index: 1000;
}

/*============================================================================*/
/* COLOR CHANGE */
/*============================================================================*/
.color-circle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    margin: 5px;
}

.color-circle .checkmark {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    display: none;
    pointer-events: none;
}

.color-circle.selected .checkmark {
    display: block;
}

/*============================================================================*/
/* GALLERY */
/*============================================================================*/
.gallery-slider .gallery-item {
    margin: 5px;
    position: relative;
}

.gallery-slider img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.thumb-info-action {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .thumb-info-action {
    opacity: 1;
}

.thumb-info-action-icon {
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
}

/* Owl Carousel navigation arrows */
.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 40px;
    color: red;
    cursor: pointer;
    z-index: 1000;
}

.owl-nav button:hover {
    color: darkred;
}

.owl-nav .arrow-left { left: -25px; }
.owl-nav .arrow-right { right: -25px; }

/* Magnific Popup */
.mfp-close {
    text-indent: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: 16px !important;
    color: #c30606 !important;
    opacity: 1 !important;
    cursor: pointer !important;
    right: 10px !important;
    top: 10px !important;
    line-height: normal !important;
}

.mfp-close:after {
    content: "close";
    display: inline-block;
    font-size: 16px;
    color: white;
    background-color: #7878782e;
    padding: 5px 10px;
    border-radius: 4px;
}

/*============================================================================*/
/* ACCORDION CONTACT */
/*============================================================================*/
.panel {
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 10px;
}

.panel-heading {
    background: #f7f5f5 !important;
    border-radius: 6px;
    padding: 12px 18px;
}

.panel-group .panel-heading + .panel-collapse {
    border-top: none;
    color: #a50b0b;
}

.accordion .panel-heading.active {
    background: #e6e4e4 !important;
}
html .panel-group.panel-group-primary .panel-heading {
  background-color: #b9bfc9 !important;
}
.panel-title a {
    color: #3d3c3c !important;
    font-size: 16px;
    font-weight: 300;
    text-decoration: none;
    display: block;
}

.panel-collapse {
    border: 1px solid #ddd;
    border-top: none;
    padding: 15px;
    border-radius: 0 0 6px 6px;
    background: #fff;
}

/*============================================================================*/
/* SLIDER FIXES */
/*============================================================================*/
.tp-banner-container {
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.tp-banner-container img,
.tp-banner-container .tp-revslider-slidesli img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.tp-banner-container,
.tp-banner-container .tp-revslider-mainul {
    min-height: 400px;
}

/*============================================================================*/
/* ACCESSORIES */
/*============================================================================*/
.accessory-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accessory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.accessory-info {
    padding: 10px;
    text-align: center;
}

.accessory-title {
    font-weight: bold;
    margin-bottom: 10px;
}

/*============================================================================*/
/* SLIDE TEXT & IMAGE WRAPPER */
/*============================================================================*/
.image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
}

.image-wrapper img {
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.image-wrapper.zoom img {
    transform: scale(1.15);
}

.slide-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
    color: #fff;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 5px;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 10;
}

.image-wrapper.active .slide-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.text1 {
    top: 12%;
    font-size: 1.6em;
    opacity: 1;
}

.text2 {
    bottom: 5%;
    font-size: 2.6em;
    opacity: 1;
}

/*============================================================================*/
/* TABS & VARIANTS */
/*============================================================================*/
.tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0;
}

.tab {
    flex: none;
    text-align: left;
    cursor: pointer;
    padding: 10px 15px;
    background: #fff;
    font-weight: 500;
    transition: all 0.2s;
    box-sizing: border-box;
    position: relative;
}

.tab:hover {
    background: #f7f7f7;
}

.tab.active {
    font-weight: bold;
    background: #f5f5f5;
}

.tab.active::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 3px;
    height: 100%;
    background: red;
    border-radius: 1.5px;
}

.variant-section {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.tabs {
    width: 200px;
    flex-shrink: 0;
}

.car-image {
    flex: 1;
    margin-top: -30px;
    text-align: center;
    margin-bottom: 60px;
}

.car-image img {
    max-width: 80%;
    max-height: inherit;
}

.content {
    flex: 1;
    overflow: hidden;
}

#specTable td:nth-child(2) {
    padding-left: 20px;
}

.colors {
    margin-top: 10px;
}

.colors #colorName {
    text-align: center;
    font-weight: bold;
    margin-bottom: 6px;
}

.colors span {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin: 6px;
    cursor: pointer;
    border: 1px solid #ccc;
    position: relative;
    text-align: center;
    line-height: 22px;
    font-weight: bold;
    font-size: 16px;
    color: white;
}

.colors span.checked::after {
    content: "✔";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.colors span.checked[style*="background:#fff"]::after {
    color: gray;
}

/*============================================================================*/
/* SPEC TABLE & MODAL */
/*============================================================================*/
.specs table {
    width: 100%;
    border-collapse: collapse;
}

.specs td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.full-specs {
    color: red;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px 25px;
    width: 90%;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    position: relative;
    font-family: Arial, sans-serif;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #555;
}

.variant-title {
    font-size: 22px;
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 5px;
}

.variant-color-bar {
    height: 4px;
    width: 50px;
    background-color: #d32f2f;
    margin-bottom: 20px;
    border-radius: 2px;
}

.accordion-container {
    font-size: 14px;
    color: #333;
}

.accordion-header {
    padding: 12px 15px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    margin-bottom: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
    border-radius: 5px;
}

.accordion-header:hover {
    background: #eee;
}

.accordion-header.active {
    background: #e0e0e0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 15px;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
    background: #fff;
    border-radius: 0 0 5px 5px;
}

.spec-buttons {
    margin-top: 15px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.spec-buttons .full-specs,
.spec-buttons .spec-btn {
    cursor: pointer;
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.spec-buttons .full-specs:hover,
.spec-buttons .spec-btn:hover {
    color: #d32f2f;
    transform: translateY(-2px);
    text-shadow: 2px 2px 2px rgba(0,0,0,0.3);
}

.spec-buttons i {
    margin-right: 6px;
    font-size: 18px;
}

.nav-tabs .nav-link {
    color: #000;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #d32f2f;
}

.nav-tabs .nav-link.active {
    color: #d32f2f;
}

.accordion-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.accordion-content td {
    padding: 8px 5px;
    border-bottom: 1px solid #eee;
}

/*============================================================================*/
/* MEDIA QUERIES */
/*============================================================================*/
@media(max-width:768px){
  .variant-section{
    flex-direction:column;
  }

  .tabs{
    flex-direction:row;
    overflow-x:auto;
    width:100%;
    padding-bottom:6px;
  }

  .tab{
    min-width:160px;
    text-align:center;
    flex-shrink:0;
  }

  .tab.active::after{
    left:0;
    top:auto;
    bottom:-4px;
    width:100%;
    height:3px;
  }
}
