:root {
    /* Default variables, can be overridden by a brand-specific stylesheet */
    --brand-slider-thumb-active-border-color: #14b8a6; /* teal-500 */
}

/* === Product Image Slider === */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* 8px */
}
.slider-main-image-wrapper {
    position: relative;
}
.slider-main-image {
    width: 100%;
    height: 65vh; /* Limit height */
    max-height: 500px; /* Max height */
    background-color: var(--brand-image-container-bg, #f3f4f6);
    border-radius: var(--brand-card-image-border-radius, 0.5rem); /* 8px */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.3s ease;
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
}
.slider-arrow:hover {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.slider-arrow.prev {
    left: 0.5rem; /* 8px */
}
.slider-arrow.next {
    right: 0.5rem; /* 8px */
}
.slider-arrow.hidden {
    display: none;
}
.slider-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 0.5rem; /* 8px */
}
.slider-thumb {
    width: 100%;
    padding-top: 125%; /* 4:5 Aspect Ratio */
    background-color: #f9fafb; /* gray-50 */
    border-radius: 0.375rem; /* 6px */
    border: 2px solid transparent;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: border-color 0.2s ease;
}
.slider-thumb:hover {
    border-color: #d1d5db; /* gray-300 */
}
.slider-thumb.active {
    border-color: var(--brand-slider-thumb-active-border-color, #14b8a6);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-slider-thumb-active-border-color, #14b8a6) 30%, transparent);
}