/* Brands Section Styling */
.brand-card {
  height: 480px;
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background-color: transparent;
}

.brand-card .card-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Remove default overlay padding & background */
.brand-card .card-img-overlay {
  padding: 0;
  background: none;
}

/* Title styling: non-bold (regular weight), text shadow for readability, hover zoom */
.brand-title {
  font-weight: 400;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease-in-out;
}

.brand-card:hover .brand-title {
  transform: scale(1.15);
}


/* ---------------------------------Homepage -------------------------------- */
/* Services Section Styling */
.service-card-img-lg {
  object-fit: cover;
  min-height: 380px;
}

.service-card-img-sm {
  object-fit: cover;
  min-height: 340px;
}

/* Remove dark overlay background */
.service-overlay {
  background: transparent;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Text shadow for readability without dark overlay */
.service-title,
.service-text {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
}

/* ---------------------------------Detail page ebikes -------------------------------- */
.thumb-img {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, border 0.3s ease;
    object-fit: cover;
    height: 80px;
    width: 100%;
    margin-bottom: 10px;
    border: 2px solid transparent;
    border-radius: 0.25rem;
}
.thumb-img:hover {
    opacity: 1;
}
/* Custom scrollbar for the thumbnail container */
.thumb-container {
    max-height: 600px; 
    overflow-y: auto;
    padding-right: 5px;
}
.thumb-container::-webkit-scrollbar {
    width: 5px;
}
.thumb-container::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}


/* =========================================================
   INDEX SERVICE / PHOTO GALLERY
   ========================================================= */

.service-gallery-card {
    position: relative;
    overflow: hidden;

    width: 100%;

    border: 0 !important;
    outline: 0 !important;
    padding: 0 !important;
    margin: 0;

    background: transparent !important;

    border-radius: 0.5rem;
}


/* STORE - full left column */
.service-gallery-store {
    height: 620px;
}


/* Repair + Second Hand */
.service-gallery-small {
    height: 300px;
}


/* Conversion Kit */
.service-gallery-conversion {
    height: 304px;
}


/* Images completely fill each block */
.service-gallery-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    margin: 0;
    padding: 0;

    border: 0;
    outline: 0;

    transition: transform 0.5s ease;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.service-overlay {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 100%;

    /* Space between title and image edges */
    padding: 2rem;

    background: rgba(0, 0, 0, 0.15);

    transition: background 0.35s ease;
}


/* =========================================================
   TITLES
   ========================================================= */

.service-gallery-title {
    margin: 0;

    font-size: 3.8rem;
    line-height: 1;

    text-align: left;

    letter-spacing: -0.03em;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}


/* Smaller title for Repair / Second Hand */
.service-gallery-title-small {
    font-size: 2.5rem;
}


/* =========================================================
   HOVER
   ========================================================= */

.service-gallery-card:hover .service-gallery-img {
    transform: scale(1.04);
}


.service-gallery-card:hover .service-overlay {
    background: rgba(0, 0, 0, 0.25);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .service-gallery-title,
    .service-gallery-title-small {
        font-size: 3rem;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    /*
     * Small 10px margin effect on the left and right
     * of the complete gallery.
     */
    .service-gallery {
        padding-left: 10px;
        padding-right: 10px;
    }


    .service-gallery-title,
    .service-gallery-title-small {
        font-size: 2.5rem;
    }


    /* Slightly smaller title padding on phones */
    .service-overlay {
        padding: 1.5rem;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .service-gallery-title,
    .service-gallery-title-small {
        font-size: 2rem;
    }


    .service-overlay {
        padding: 1.25rem;
    }

}

/* =========================================================
   RADIO BTN
   ========================================================= */


input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;

    width: 1em;
    height: 1em;

    margin: 0 8px 0 0;

    background-color: #fcfbfb;

    border: 1px solid transparent;
    border-radius: 50%;

    box-shadow:
        inset 1px 2px 4px rgb(5, 5, 5);

    cursor: pointer;

    vertical-align: middle;

    transition:
        transform 0.25s ease-in-out,
        border-color 0.25s ease-in-out,
        box-shadow 0.25s ease-in-out,
        background 0.25s ease-in-out;
}


/* Hover */
input[type="radio"]:hover:not(:disabled) {
    transform: scale(1.15);

    box-shadow: none;

    border-color: #22C3E1;
}


/* Selected */
input[type="radio"]:checked {
    border: 2px solid #22C3E1;

    background:
        radial-gradient(
            circle,
            #22C3E1 0%,
            #22C3E1 28%,
            #fcfbfb 31%,
            #fcfbfb 100%
        );

    box-shadow:
        0 0 0 1px rgba(34, 195, 225, 0.12),
        0 0 5px rgba(34, 195, 225, 0.25);
}


/* Keyboard focus */
input[type="radio"]:focus {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(34, 195, 225, 0.20);
}


/* Selected + focused */
input[type="radio"]:checked:focus {
    box-shadow:
        0 0 0 3px rgba(34, 195, 225, 0.20),
        0 0 10px rgba(34, 195, 225, 0.25);
}


/* Out-of-stock / disabled option */
input[type="radio"]:disabled {
    opacity: 0.35;

    cursor: not-allowed;

    transform: none;
}


/* Prevent disabled radio hover animation */
input[type="radio"]:disabled:hover {
    transform: none;

    border-color: transparent;

    box-shadow:
        inset 1px 2px 5px rgb(5, 5, 5);
}


/* =========================================================
   OUT-OF-STOCK OPTION TEXT
   Keep unavailable option text BLACK while struck through
   ========================================================= */

/*
 * Case 1:
 * The disabled radio is inside the label.
 */
label:has(input[type="radio"]:disabled) {
    color: #000000 !important;
    text-decoration-color: #000000 !important;
    opacity: 1 !important;
}

label:has(input[type="radio"]:disabled) span,
label:has(input[type="radio"]:disabled) del,
label:has(input[type="radio"]:disabled) s,
label:has(input[type="radio"]:disabled) strike,
label:has(input[type="radio"]:disabled) .text-muted {
    color: #000000 !important;
    text-decoration-color: #000000 !important;
}


/*
 * Case 2:
 * The label comes immediately after the disabled radio.
 */
input[type="radio"]:disabled + label,
input[type="radio"]:disabled + label span,
input[type="radio"]:disabled + label del,
input[type="radio"]:disabled + label s,
input[type="radio"]:disabled + label strike,
input[type="radio"]:disabled + label .text-muted {
    color: #000000 !important;
    text-decoration-color: #000000 !important;
}


/*
 * Case 3:
 * The label is a later sibling of the disabled radio.
 */
input[type="radio"]:disabled ~ label,
input[type="radio"]:disabled ~ label span,
input[type="radio"]:disabled ~ label del,
input[type="radio"]:disabled ~ label s,
input[type="radio"]:disabled ~ label strike,
input[type="radio"]:disabled ~ label .text-muted {
    color: #000000 !important;
    text-decoration-color: #000000 !important;
}
