/* Garmin Product Detail Custom Styles */
.garmin-product-detail {
    text-align: left !important;
    padding-left: 0px;
    padding-top: 0px !important;
    margin-top: 0px !important;
    /* Reset negative margin */
    position: relative;
    z-index: 10;
    display: block !important;
    /* Override grid gap */
}

/* Breadcrumbs */
.garmin-breadcrumbs {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #000;
    font-weight: 600;
    margin-bottom: 5px !important;
    /* Tight spacing as per original Garmin design */
}

/* Title */
.garmin-title {
    font-size: 30px;
    line-height: 1.1;
    color: #000;
    margin-bottom: 5px !important;
}

/* Subtitle */
.garmin-subtitle {
    font-size: 20px;
    line-height: 32px;
    font-weight: 400;
    color: #000;
    margin-bottom: 15px !important;
}

/* Part Number */
.garmin-part-num {
    font-size: 10px;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 15px !important;
}

/* Badge */
.garmin-badge {
    background-color: #5BC2E7;
    color: #000;
    font-weight: 800;
    padding: 5px 12px;
    display: inline-block;
    font-size: 16px;
    text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    margin-bottom: 15px !important;
    font-weight: 400;
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.05rem;
}

/* Price */
.garmin-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 28px;
    color: #000;
    padding-bottom: 2px;
    font-weight: 800 !important;
}

.garmin-price .price-discount {
    display: flex;
    gap: 8px
}

.garmin-price .price-old,
.garmin-price .price-diff {
    font-size: 16px;
    font-weight: 400;
}

/* Installments */
.garmin-installments {
    font-size: 12px;
    color: #333;
    margin-top: 0px;
    margin-bottom: 20px !important;
}

/* Selectors Label */
.garmin-selector-label {
    font-size: 13px;
    font-weight: 800;
    color: #000;
    margin-bottom: 8px;
    /* Slightly looser */
}

.garmin-selector-group {
    margin-bottom: 25px !important;
    /* Increased spacing between groups */
}

.garmin-peopleAlsoBough-product-slider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.garmin-peopleAlsoBough-product-slider .title {
    font-size: 1.5rem;
    font-family: "Oswald", sans-serif!important;
    font-weight: 400!important;
    letter-spacing: .05rem;
    text-transform: uppercase;
}

.garmin-flat-wrap-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px 16px;
}

.garmin-card-product {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    box-shadow: 0 0 2px #0000001f,0 2px 2px #0000003d;
    padding: 16px;
}


.garmin-card-product .name-product {
    font-weight: 400!important;
    font-family: "Oswald", sans-serif;
    letter-spacing: .05rem;
}
.garmin-card-product .price-new {
    font-weight: 400!important;
    color: #000 !important;
}

.garmin-flat-wrap-grid h3.desc {
    font-size: 1.5rem!important;
    line-height: 1.25!important;
    letter-spacing: .05rem;
}

.garmin-flat-wrap-grid p.desc {
    font-size: .875rem!important;
    line-height: 19px!important;
    color: #000!important;
}

.garmin-flat-supportLinkItems {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    padding: 30px 0 0;
}

.garmin-flat-supportLinkItems .tf-icon-box .content .desc {
    font-family: inherit!important;
    font-weight: 500!important;
    text-transform: uppercase;
}

/* Buttons */
.garmin-btn-selector {
    background: #fff;
    border: 1px solid #ddd;
    color: #000;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 15px;
    border-radius: 0;
    text-transform: uppercase;
    transition: all 0.2s;
    min-width: 60px;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.garmin-btn-selector:hover {
    border-color: #000;
}

.garmin-btn-selector.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.garmin-cstTabContent {
    border-bottom: 1px solid #dcdcdc;
}

.garmin-cstTabContent .card-product .name-product {
    font-weight: 400!important;
    font-family: "Oswald", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.garmin-cstTabContent h2.fw-medium {
    font-size: calc(1.6vw * 2.6);
}

.garmin-cstTabContent .flat-spacing-5 {
    margin-left: 24px;
    margin-right: 24px;
}

.garmin-cstTabContent .flat-spacing-5.line-top {
    border-color: #000!important;
}

.garmin-cstTabContent p.display-md-2 {
    font-weight: 300;
    font-family: "Oswald", sans-serif;
    text-align: left;
}
.garmin-cstTabContent p.text-main {
    text-align: left;
}

.rtl .garmin-cstTabContent p.display-md-2 {
    text-align: right;
}
.rtl .garmin-cstTabContent p.text-main {
    text-align: left;
}

/* Thumbnail Grid (Selector) */
.garmin-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: 100%;
    margin-bottom: 20px;
}

.garmin-thumbnail {
    border: 1px solid #eee;
    padding: 2px;
    cursor: pointer;
    transition: border-color 0.2s;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Force size */
    width: 84px;
    height: 84px;
    overflow: hidden;
    box-sizing: border-box;
}

.garmin-thumbnail img {
    width: 100%;
    display: block;
}

.garmin-thumbnail:hover {
    border-color: #ccc;
}

.garmin-thumbnail.selected {
    border: 2px solid #000;
}

/* Actions */
.garmin-add-to-cart {
    border-radius: 0px;
    background: #6dcff6;
    border-color:#0FB0F0;
    color: black;
    font-weight: 400;
    text-transform: uppercase;
    padding: 0 40px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.garmin-add-to-cart:hover {
    background: #0FB0F0;
}

.garmin-actions .wg-quantity {
    background: #f5f5f5;
    border-radius: 99px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    height: 48px;
}

/* ============================================
   PRODUCT GALLERY - CLEAN IMPLEMENTATION
   ============================================ */

/* Main Gallery Wrapper - Side by Side Layout */
.tf-product-media-wrap {
    display: flex !important;
    gap: 20px;
    align-items: flex-start;
    max-width: 100%;
    padding: 0 !important;
    margin-top: 0 !important;
}

/* Thumbnail Column (Left Side) */
.product-thumbs-slider {
    width: 90px;
    flex-shrink: 0;
    position: relative;
}

/* Thumbnail Swiper Container */
.tf-product-media-thumbs {
    height: 500px;
    overflow: hidden;
}

/* Individual Thumbnail Slides */
.product-thumbs-slider .swiper-slide {
    margin-bottom: 12px;
    height: auto !important;
}

/* Thumbnail Image Wrapper with Border */
.product-thumbs-slider .swiper-slide .item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-thumbs-slider .swiper-slide .item:hover {
    border-color: #999;
}

/* Active Thumbnail State */
.product-thumbs-slider .swiper-slide-thumb-active .item {
    border-color: #000 !important;
    border-width: 2px;
    padding: 3px;
    /* Compensate for thicker border */
}

/* Thumbnail Images */
.product-thumbs-slider .swiper-slide .item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Main Image Column (Right Side) */
.flat-wrap-media-product {
    flex: 1;
    max-width: 500px;
    min-width: 0;
}

/* Main Image Swiper */
.tf-product-media-main {
    width: 100%;
    height: auto;
    min-height: 500px;
    position: relative;
}

/* Swiper Wrapper - Let it work naturally */
.tf-product-media-main .swiper-wrapper {
    /* Don't interfere with Swiper's transform */
    display: flex;
    min-height: 500px;
}

/* Main Image Slides */
.tf-product-media-main .swiper-slide {
    width: 100%;
    height: auto;
    min-height: 500px;
    flex-shrink: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Main Image Link Container */
.tf-product-media-main .swiper-slide .item {
    display: block !important;
    width: 100%;
    text-align: center;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Main Product Images */
.tf-product-media-main .swiper-slide .item img {
    max-height: 500px;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block !important;
    object-fit: contain;
    opacity: 1 !important;
    visibility: visible !important;
}

/* CRITICAL: Override Stagger Animation - Force Visibility */
.stagger-wrap .stagger-item,
.product-thumbs-slider .stagger-item,
.tf-product-media-main .stagger-item {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}


/* Let Swiper control slide visibility with transforms */
.tf-product-media-main .swiper-wrapper {
    position: relative !important;
    display: flex !important;
    /* Swiper needs flex to apply translateX transforms */
}

.tf-product-media-main .swiper-slide {
    flex-shrink: 0 !important;
    width: 100% !important;
    /* Let Swiper control position, opacity, visibility via transforms */
}

/* CSS removed: Do not hide slides with display:none as it breaks Swiper calculations */

/* Force images within slides to show */
.tf-product-media-main .swiper-slide img {
    position: relative !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
}

/* Force the item container */
.tf-product-media-main .swiper-slide .item {
    position: relative !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 400px !important;
}



/* =========================================
   NAVIGATION & BORDER FIXES
   ========================================= */

/* 1. Main Gallery Navigation Arrows */
.tf-product-media-main .thumbs-prev,
.tf-product-media-main .thumbs-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: transparent;
    /* Removed white background */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100 !important;
    /* Force high z-index */
    font-size: 30px;
    /* Larger arrows */
    color: #333;
    /* Dark arrow color */
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.3s ease;
    box-shadow: none !important;
}

.tf-product-media-main:hover .thumbs-prev,
.tf-product-media-main:hover .thumbs-next {
    opacity: 1;
    /* Show on hover */
}

.tf-product-media-main .thumbs-prev {
    left: 0px;
}

.tf-product-media-main .thumbs-next {
    right: 0px;
}

.tf-product-media-main .thumbs-prev::after {
    content: '❮';
}

.tf-product-media-main .thumbs-next::after {
    content: '❯';
}

/* 2. Remove Border from Main Image */
.tf-product-media-main .swiper-slide .item {
    border: none !important;
    box-shadow: none !important;
}

/* 3. Remove Black Border from Active Thumbnail */
.product-thumbs-slider .swiper-slide-thumb-active .item {
    border: 1px solid #e0e0e0 !important;
    /* Reset to normal border */
    border-color: #ccc !important;
    /* Subtle highlight only */
    border-width: 1px !important;
    padding: 4px !important;
    /* Reset padding */
}


/* 4. Thumbnail Vertical Navigation Arrows */
.product-thumbs-slider .swiper-button-next,
.product-thumbs-slider .swiper-button-prev {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.product-thumbs-slider .swiper-button-disabled {
    opacity: 0.3 !important;
    pointer-events: none;
    cursor: default;
}

/* Custom Up/Down Arrows matching Reference */
.product-thumbs-slider .swiper-button-next,
.product-thumbs-slider .swiper-button-prev {
    position: absolute;
    left: 0;
    width: 100%;
    height: 28px;
    /* Slimmer design */
    background: #d9d9d9;
    /* Grey background */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999 !important;
    color: #fff;
    /* White arrow */
    font-size: 14px;
    border: none;
    /* No border */
    border-radius: 2px;
    margin-top: 0 !important;
    box-shadow: none;
}

.product-thumbs-slider .swiper-button-prev {
    top: 0 !important;
    bottom: auto !important;
}

.product-thumbs-slider .swiper-button-next {
    bottom: 0 !important;
    top: auto !important;
}

.product-thumbs-slider .swiper-button-prev::after {
    content: '▲';
}

.product-thumbs-slider .swiper-button-next::after {
    content: '▼';
}

/* Container Adjustments */
.product-thumbs-slider {
    padding-top: 35px !important;
    padding-bottom: 35px !important;
    height: auto !important;
    min-height: 570px;
    position: relative !important;
    overflow: visible !important;
}

/* Ensure parent containers don't clip */
.tf-product-media-wrap {
    overflow: visible !important;
}

/* Fix Main Arrow Cropping - Standard Position */
.tf-product-media-main .thumbs-prev,
.tf-product-media-main .thumbs-next {
    width: 60px;
    /* Slightly wider to prevent any font clipping */
    height: 60px;
    font-size: 24px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100 !important;
    color: #333;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 0;
    margin: 0;
    line-height: normal;
}

.tf-product-media-main:hover .thumbs-prev,
.tf-product-media-main:hover .thumbs-next {
    opacity: 1;
}

.tf-product-media-main .thumbs-prev {
    left: 0 !important;
}

.tf-product-media-main .thumbs-next {
    right: 0 !important;
}

/* Ensure Thumbnail Arrows Align with Thumbnails */
.product-thumbs-slider .swiper-button-next,
.product-thumbs-slider .swiper-button-prev {
    width: 84px !important;
    max-width: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 2px !important;
    height: 24px !important;
}

/* REVERT: Do not set overflow visible on swiper, it breaks the slider */
/* .tf-product-media-main { overflow: hidden !important; } - Default Swiper behavior is sufficient */



/* Fix Main Arrow Cropping */
.tf-product-media-main .thumbs-prev,
.tf-product-media-main .thumbs-next {
    width: 60px;
    /* Wider to prevent crop */
    height: 60px;
    font-size: 36px;
    line-height: 1;
    padding-bottom: 6px;
}

.product-thumbs-slider .swiper-button-prev::after {
    content: '▲';
    font-size: 12px;
}

.product-thumbs-slider .swiper-button-next::after {
    content: '▼';
    font-size: 12px;
}

/* Make sure slider has space for arrows and overflow is visible */
.product-thumbs-slider {
    padding-top: 35px !important;
    padding-bottom: 35px !important;
    overflow: visible !important;
    height: 570px !important;
    /* Adjust height to fit buttons */
}

/* Adjust row alignment */
.flat-single-product .row {
    justify-content: center;
    align-items: flex-start;
}

.garmin-cstTabContent summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #000;
    padding: 1em 2em;
    margin: 0;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    border-top: 1px solid #dcdcdc;
    position: relative;
}

.garmin-cstTabContent summary::after {
  content: '+';
  position: absolute;
  right: 2rem;
  font-size: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.garmin-cstTabContent details[open] summary::after {
  content: '−';
}

/* hide default arrow (Chrome/Safari) */
.garmin-cstTabContent summary::-webkit-details-marker {
  display: none;
}


@media(max-width:768px){
    .garmin-peopleAlsoBough-product-slider-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .garmin-flat-wrap-grid {
        gap: 20px 16px;
        grid-template-columns: repeat(1, 1fr);
    }
    
    .garmin-cstTabContent.tab-content > .tab-pane {
        display: block;
    }
}