/* GM Stephenson — Custom Styling Overrides */

/* --- Language Switcher in Header --- */
.main-header__lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.main-header__lang-switcher .lang-btn {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 2px 6px;
    border-radius: 4px;
}

.main-header__lang-switcher .lang-btn:hover,
.main-header__lang-switcher .lang-btn.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
}

/* --- Language Switcher in Footer --- */
.footer-lang-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-lang-switcher .footer-lang-btn {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-lang-switcher .footer-lang-btn:hover,
.footer-lang-switcher .footer-lang-btn.active {
    color: #fff;
    background-color: #1f4e3d;
    border-color: #1f4e3d;
}

/* --- Product Card Adjustments --- */
.gms-product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
}

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

.gms-product-card__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #1f4e3d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gms-product-card__price {
    font-weight: 700 !important;
    color: #1f4e3d !important;
    font-size: 18px !important;
    margin-top: 5px !important;
    margin-bottom: 15px !important;
}

.gms-product-card__actions {
    margin-top: 15px;
}

/* Small helper for button */
.thm-btn--sm {
    padding: 8px 16px !important;
    font-size: 12px !important;
}

/* --- Product Filter Sidebar --- */
.gms-product-sidebar .product__sidebar-single {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.gms-search-form {
    position: relative;
}

.gms-search-form input {
    width: 100%;
    height: 50px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 10px 45px 10px 15px;
    outline: none;
    font-size: 14px;
}

.gms-search-form button {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #1f4e3d;
    cursor: pointer;
    font-size: 18px;
}

/* --- Contact & Financing Forms --- */
.gms-contact-form {
    position: relative;
}

.gms-contact-form__title {
    font-size: 22px;
    font-weight: 700;
    color: #1f4e3d;
    margin-bottom: 10px;
    border-bottom: 2px solid #eaf3f0;
    padding-bottom: 10px;
}

.gms-contact-form__product-ref {
    background-color: #f4f8f6;
    border-left: 3px solid #1f4e3d;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 20px;
}

.gms-contact-form .form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 6px;
}

.gms-contact-form .form-control {
    height: 50px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 14px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.gms-contact-form .form-control:focus {
    border-color: #1f4e3d;
    background-color: #fff;
    box-shadow: none;
}

.gms-contact-form textarea.form-control {
    height: auto;
}

.gms-contact-form .form-check-label {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
}

.gms-contact-form .form-check-input:checked {
    background-color: #1f4e3d;
    border-color: #1f4e3d;
}

/* --- Specifications Table --- */
.gms-specs-table th {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gms-specs-table td {
    font-size: 14px;
    color: #555;
}

/* --- Product Image Gallery --- */
.gms-product-gallery__main img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

.gms-product-gallery__thumbs img {
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.gms-product-gallery__thumbs img:hover {
    transform: scale(1.05);
}

.cursor-pointer {
    cursor: pointer;
}

/* --- Benefits List --- */
.gms-benefits-list li {
    font-size: 15px;
}

/* --- General Utilities --- */
.max-width-700 {
    max-width: 700px;
}

.w-30 {
    width: 30%;
}

.opacity-90 {
    opacity: 0.9;
}

/* --- Swapped Home Page About Section Layout --- */
@media only screen and (min-width: 1200px) {
    .about-one__left {
        margin-right: 0 !important;
        margin-left: 60px !important;
    }
    .about-one__right {
        margin-left: 0 !important;
        margin-right: 135px !important;
    }
}

@media only screen and (max-width: 1199px) {
    .about-one__right {
        margin-top: 0 !important;
        margin-bottom: 50px !important;
    }
    .about-one__left {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

/* --- Services Carousel Slider --- */

/* Give the swiper room for the pagination bullets on mobile */
.feature-one .swiper-container {
    padding-bottom: 40px;
}

/* Make slides stretch to equal height */
.feature-one .swiper-wrapper {
    align-items: stretch;
}

/* Hide pagination on desktop — all 3 slides are visible at once */
@media (min-width: 992px) {
    #services-slider-pagination {
        display: none;
    }
    .feature-one .swiper-container {
        padding-bottom: 0;
    }
}

/* Pagination bullet colour to match the theme green */
#services-slider-pagination .swiper-pagination-bullet-active {
    background-color: #1f4e3d;
}

/* --- Mobile Language Switcher --- */
.mobile-nav__lang-switcher {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav__lang-switcher .mobile-lang-btn {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-nav__lang-switcher .mobile-lang-btn:hover,
.mobile-nav__lang-switcher .mobile-lang-btn.active {
    color: #fff;
    background-color: #1f4e3d;
    border-color: #1f4e3d;
}
