/* VERSION: 003 */
/* PURPOSE: IMAGE SLIDER */
/* Reset and Base Styles */
* {
    box-sizing: border-box;
    /* margin: 0; */
    /* padding: 0; */
}

/* Main Slider Container */
.slider-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Slider Wrapper */
.slider-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    cursor: grab;
}

.slider-wrapper:active {
    cursor: grabbing;
}

/* Slider Track */
.slider-track {
    display: flex;
    width: 600%; /* 6 slides × 100% */
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Individual Slides */
.slide {
    width: 16.6667%; /* 100% / 6 slides */
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* SPECIFICATION TABLE */
.spec-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5em 1.5em; /* Increase first value for more vertical space */
  margin-bottom: 1em;
}
.spec-grid dt {
  font-weight: bold;
  color: #333;
  white-space: nowrap;
  margin: 0;
}
.spec-grid dd {
  margin: 0;
  color: #444;
}

.spec-spacer {
  grid-column: 1 / -1;
  height: 1em; /* Adjust as needed */
}

.animated-gradient-title {
    position: relative;
    overflow: hidden;
}

/* ANIMATED GRADIENT FOR NEW STATION */
.animated-gradient-title {
    font-weight: bold;
    font-size: 18px;
    color: transparent; /* Hide base color */
    background: linear-gradient(90deg, #3e6cb3, silver, #3e6cb3);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeLeftRight 2.5s linear infinite;
    display: inline-block;
}

@keyframes fadeLeftRight {
    0%, 100% { background-position: 0% 0%; }
    50%      { background-position: 100% 0%; }
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.nav-arrow-left {
    left: 20px;
}

.nav-arrow-right {
    right: 20px;
}

.nav-arrow svg {
    color: #333;
    width: 24px;
    height: 24px;
}

/* Dot Navigation */
.dot-navigation {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: white;
}

.dot {
  /* Dimensions - always equal for perfect circles */
  width: 12px;
  height: 12px;
  
  /* Shape */
  border-radius: 50%;
  border: none;
  background: #ddd;
  
  /* Layout - prevent flexbox stretching */
  display: inline-block;
  flex: 0 0 auto;
  
  /* iOS Safari fixes */
  box-sizing: border-box;
  transform: translateZ(0); /* Force hardware acceleration */
  
  /* Interaction */
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  position: relative;
}

.dot:hover {
  background: #bbb;
  transform: translateZ(0) scale(1.2); /* Maintain transform layer */
}

.dot.active {
  background: #3e6cb3;
  transform: translateZ(0) scale(1.3); /* Maintain transform layer */
}

.dot::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
}

/* Responsive layout for product selection page */
.product-main {
  max-width: auto;      /* Or your preferred width */
  margin: 1em 0;          /* Top/bottom margin, no auto for left/right */
  padding: 0;
  text-align: left;       /* Ensures text and inline elements are left-aligned */
}

.slider-container {
    flex: 1 1 50%;
    max-width: 50%;
}

.product-specs {
    flex: 1 1 50%;
    background: #f8f8f8;
    padding: 1em;
    border-radius: 8px;
}

/* Tablets and smaller: stack vertically */
@media (max-width: 1023px) {
.product-main {
    display: block;
    max-width: 100%;
    margin: 1em 10px;
}
.slider-container, .product-specs {
    max-width: 100%;
    flex: none;
    margin-bottom: 1em;
}
}


/* Responsive Design */

/* Mobile First - Hide arrows on mobile */
@media (max-width: 768px) {    
    .slider-container {
        margin: 0 10px;
        border-radius: 8px;
    }
    
    .slider-wrapper {
        height: 250px;
    }
    
    .dot-navigation {
        padding: 15px;
        gap: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .nav-arrow {
        /* UNCOMMENT IF ARROWS L AND R SHALL BE HIDDEN */
        display: none;
    }
    .slider-wrapper {
        height: 200px;
    }
    
    .dot-navigation {
        padding: 12px;
        gap: 8px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* Large Desktop */
@media (min-width: 1024px) {
    .product-flex-row {
        display: flex;
        gap: 2em;
        align-items: flex-start;
        justify-content: flex-start;
    }
    .product-specs {
        order: 1;  /* Show aside first (left) */
        flex: 1 1 50%;
        min-width: 0;
        max-width: 50%;
        width: 50%;
    }
    .slider-container {
        order: 2;  /* Show slider second (right) */
        flex: 1 1 50%;
        min-width: 0;
        max-width: 50%;
        width: 50%;
    }
    
    .slider-wrapper {
        height: 500px;
    }
    
    .nav-arrow {
        width: 56px;
        height: 56px;
    }
    
    .nav-arrow-left {
        left: 30px;
    }
    
    .nav-arrow-right {
        right: 30px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .slider-track {
        transition: none;
    }
    
    .nav-arrow,
    .dot {
        transition: none;
    }
}

/* Focus styles for keyboard navigation */
.nav-arrow:focus,
.dot:focus {
    outline: 2px solid #3e6cb3;
    outline-offset: 2px;
}

/* Loading state */
.slide img {
    background: #f0f0f0;
}

/* Swipe indication on mobile */
@media (max-width: 768px) {
    .slider-wrapper::after {
        content: '';
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 2px;
        opacity: 0;
        animation: swipeHint 2s ease-in-out infinite;
    }
}

@keyframes swipeHint {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@media (min-width: 769px) {
  .nav-arrow {
    display: flex !important;
  }
}