/* Goshmann Enterprises brand override — blue / red / yellow
   Bootstrap 5.0.0 utility classes (bg-primary, text-primary, border-primary, etc.)
   are compiled as hardcoded colors in bootstrap.min.css, NOT CSS variables.
   So we override the CSS variables (for the theme's own style.css rules)
   AND the compiled utility classes directly (for raw Bootstrap classes in HTML). */

:root {
    --bs-primary: #1b3f8c;      /* Goshmann blue */
    --bs-secondary: #d81f26;    /* Goshmann red */
    --bs-dark: #142d63;         /* deep navy — footer */
    --bs-light: #f4f6fb;
}

/* ===== Direct Bootstrap utility overrides ===== */

.bg-primary { background-color: var(--bs-primary) !important; }
.text-primary { color: var(--bs-primary) !important; }
.border-primary { border-color: var(--bs-primary) !important; }

.bg-secondary { background-color: var(--bs-secondary) !important; }
.text-secondary { color: var(--bs-secondary) !important; }
.border-secondary { border-color: var(--bs-secondary) !important; }

.bg-dark { background-color: var(--bs-dark) !important; }
.bg-light { background-color: var(--bs-light) !important; }

/* Solid buttons */
.btn-primary,
.btn-primary:not(:disabled):not(.disabled) {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
}

.btn-secondary,
.btn-secondary:not(:disabled):not(.disabled) {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: #fff !important;
}
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

/* Outline buttons (used on the Services cards) */
.btn-outline-primary {
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    background-color: transparent !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff !important;
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

/* Dropdown menu hover state (categories bar, account dropdown) */
.dropdown-item:hover,
.dropdown-item:focus,
.categories-bars-item:hover {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}
.categories-bars-item:hover a,
.categories-bars-item:hover span {
    color: #fff !important;
}

/* Product badges */
.product-sale {
    background-color: var(--bs-secondary) !important;
    color: #fff !important;
}
.product-new {
    background-color: #ffd400 !important;
    color: #1a1a1a !important;
}

/* Nav link active/hover state text */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: 700;
}

/* Footer / copyright already read var(--bs-dark) and var(--bs-primary)
   from the theme's own style.css, so they update automatically. */

/* ===== Clean flat navbar (replaces Electro's default colored nav bar) ===== */

.gm-utility-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.gm-utility-link {
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}
.gm-utility-link:hover {
    color: var(--bs-primary);
}

.gm-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: var(--bs-primary);
    padding: 6px 16px 6px 6px;
    border-radius: 30px;
    transition: 0.25s;
}
.gm-call-btn:hover {
    background: var(--bs-secondary);
}
.gm-call-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}
.gm-call-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}
.gm-call-btn-text small {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
}
.gm-call-btn-text strong {
    color: #fff;
    font-size: 14px;
}

.gm-whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: 0.25s;
}
.gm-whatsapp-float:hover {
    background: #1ebc59;
    color: #fff;
    transform: scale(1.08);
}
.gm-whatsapp-float::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0.6;
    animation: gm-whatsapp-pulse 2s infinite;
}
@keyframes gm-whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.3); opacity: 0; }
}

.gm-header {
    background: #fff;
}

.gm-header-row {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.gm-header-logo {
    flex: 0 0 auto;
}
.gm-header-search-wrap {
    position: relative;
    flex: 1 1 380px;
    min-width: 0;
    order: 3;
}
.gm-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    order: 2;
    margin-left: auto;
}

@media (min-width: 992px) {
    .gm-header-search-wrap {
        order: 2;
    }
    .gm-header-actions {
        order: 3;
        margin-left: 0;
    }
}
@media (max-width: 991px) {
    .gm-header-row {
        justify-content: space-between;
    }
    .gm-header-search-wrap {
        flex: 1 1 100%;
        order: 3;
    }
}

.gm-search {
    background: #f4f6fb;
    border-radius: 50px;
    overflow: hidden;
    height: 54px;
    width: 100%;
    max-width: 100%;
    display: flex;
    box-sizing: border-box;
}
.gm-search-select {
    box-sizing: border-box;
    border: none;
    background: transparent;
    padding: 0 14px;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    height: 100%;
    outline: none;
    width: 175px;
    max-width: 175px;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gm-search-divider {
    width: 1px;
    height: 24px;
    background: #d5d9e2;
    flex-shrink: 0;
}
.gm-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0 16px;
    outline: none;
    font-size: 15px;
    height: 100%;
}
.gm-search-btn {
    width: 54px;
    height: 54px;
    border: none;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.3s;
}
.gm-search-btn:hover {
    background: var(--bs-primary);
}

.gm-header-icon {
    display: flex;
    align-items: center;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.gm-header-icon i {
    font-size: 20px;
}
.gm-header-icon:hover {
    color: var(--bs-primary);
}

.gm-header-circle-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    transition: 0.2s;
    flex-shrink: 0;
}
.gm-header-circle-btn:hover {
    background: var(--bs-primary);
    color: #fff;
}

.gm-wishlist-header-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--bs-secondary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gm-compare-header-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gm-compare-table {
    border-collapse: separate;
    border-spacing: 0;
}
.gm-compare-table td {
    border-top: 1px solid #eee;
    padding: 16px;
    vertical-align: middle;
}
.gm-compare-label {
    font-weight: 700;
    color: #555;
    background: #f9fafc;
    white-space: nowrap;
    width: 140px;
}

.gm-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gm-search-suggestions {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    z-index: 1000 !important;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
}

.gm-search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    transition: 0.15s;
}
.gm-search-suggestion-item:hover {
    background: #f4f6fb;
}
.gm-search-suggestion-item img {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain;
    border-radius: 6px;
    background: #f9fafc;
    flex-shrink: 0;
}
.gm-search-suggestion-info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.gm-search-suggestion-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gm-search-suggestion-category {
    font-size: 12px;
    color: #999;
}
.gm-search-suggestion-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--bs-primary);
    flex-shrink: 0;
}
.gm-search-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.gm-category-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.gm-category-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    margin-right: 32px;
    padding: 6px 0;
    transition: 0.3s;
}
.gm-category-link i:first-child {
    color: #555;
    font-size: 16px;
}
.gm-category-link .gm-chevron {
    font-size: 10px;
    color: #999;
    margin-left: 2px;
}
.gm-category-link:hover {
    color: var(--bs-primary);
}
.gm-category-link:hover i {
    color: var(--bs-primary);
}
.gm-category-link.active {
    color: var(--bs-primary);
}

@media (max-width: 991px) {
    .gm-category-bar { padding: 0; }
    .gm-category-link {
        margin-right: 0;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
}

/* ===== Footer polish ===== */

.gm-footer-heading {
    color: #fff;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}
.gm-footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: var(--bs-secondary);
    border-radius: 2px;
}

.gm-newsletter-success {
    color: #6fdc8c;
    font-weight: 600;
}
.gm-newsletter-error {
    color: #ff9e9e;
    font-weight: 600;
}

.gm-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 15px;
    transition: 0.2s;
}
.gm-social-icon:hover {
    background: var(--bs-primary);
    color: #fff !important;
    transform: translateY(-2px);
}

.gm-portal-badge {
    transition: 0.2s;
}
.gm-portal-badge:hover {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.gm-hero-full {
    padding: 0 16px;
}
.gm-hero-full img {
    display: block;
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
}
@media (min-width: 768px) {
    .gm-hero-full {
        padding: 0 40px;
    }
}

/* ===== Trust strip: continuous scrolling marquee ===== */

.gm-marquee-wrap {
    overflow: hidden;
    background: #fff;
}
.gm-marquee-track {
    display: flex;
    width: max-content;
    animation: gm-marquee-scroll 35s linear infinite;
}
.gm-marquee-wrap:hover .gm-marquee-track {
    animation-play-state: paused;
}
.gm-marquee-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 24px 40px;
    border-right: 1px solid #eee;
    white-space: nowrap;
}
@keyframes gm-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.footer .footer-item a {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 15px;
}
.footer .footer-item a:hover {
    color: #fff !important;
}
.footer .footer-item p {
    color: rgba(255, 255, 255, 0.55);
}

.gm-footer-info {
    border-radius: 12px;
    overflow: hidden;
}
.gm-footer-info-item {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.2s;
}
.gm-footer-info-item:hover {
    background: rgba(255, 255, 255, 0.03);
}
.gm-footer-info-item:last-child {
    border-right: none;
}
.gm-footer-info-item h6 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.gm-footer-info-item p {
    color: rgba(255, 255, 255, 0.6);
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}
.gm-footer-email {
    font-size: 13px;
}

@media (max-width: 767px) {
    .gm-footer-info-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .gm-footer-info-item:last-child {
        border-bottom: none;
    }
}

.copyright a {
    transition: opacity 0.2s;
    opacity: 0.85;
}
.copyright a:hover {
    opacity: 1;
}

/* ===== Account dropdown ===== */

.gm-account-dropdown {
    width: 260px;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: 10px;
}

.gm-account-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    border-radius: 6px;
    transition: 0.2s;
}
.gm-account-link i {
    width: 18px;
    color: #555;
}
.gm-account-link:hover {
    background: #f4f6fb;
    color: var(--bs-primary);
}
.gm-account-link:hover i {
    color: var(--bs-primary);
}

.gm-account-link-disabled {
    color: #aaa;
    cursor: not-allowed;
}
.gm-account-link-disabled:hover {
    background: transparent;
    color: #aaa;
}
.gm-account-link-disabled i {
    color: #ccc;
}

/* ===== Product cards (reference-style: badge, wishlist heart, clean layout) ===== */

.gm-product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.gm-product-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}
.gm-product-card button,
.gm-product-card a {
    cursor: pointer;
}

.gm-product-card-media {
    position: relative;
    padding: 24px 20px 10px;
    text-align: center;
    background: #fff;
    overflow: hidden;
}
.gm-product-card-media img {
    max-height: 170px;
    width: auto;
    object-fit: contain;
}

/* Compare + wishlist: small top-right corner badge, never covers the product image */
.gm-product-hover-actions {
    position: absolute;
    inset: auto;
    top: 12px;
    right: 12px;
    left: auto;
    bottom: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: 0.25s;
    pointer-events: none;
}
.gm-product-card:hover .gm-product-hover-actions {
    opacity: 1;
    pointer-events: auto;
}
@media (hover: none) {
    /* Touch devices have no hover — keep the icons permanently visible
       since there's no hover gesture to reveal them otherwise. */
    .gm-product-hover-actions {
        opacity: 1;
        pointer-events: auto;
    }
}
.gm-hover-icon-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
    border-radius: 50%;
    background: #f4f1ec;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: 0.2s;
}
.gm-hover-icon-btn:hover {
    background: #fff;
    color: var(--bs-primary);
    transform: scale(1.08);
}
.gm-hover-icon-btn.gm-wishlist-active {
    background: var(--bs-secondary) !important;
    color: #fff !important;
}
.gm-hover-icon-btn.gm-compare-active {
    background: var(--bs-primary) !important;
    color: #fff !important;
}

/* ===== Product detail page: gallery, star input, icon buttons ===== */

.gm-gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.7;
}
.gm-gallery-thumb:hover {
    opacity: 1;
}
.gm-gallery-thumb.active {
    border-color: var(--bs-primary);
    opacity: 1;
}

.gm-detail-icon-btn {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 14px;
    color: #555;
    transition: 0.2s;
}
.gm-detail-icon-btn:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}
.gm-detail-icon-btn.gm-wishlist-active {
    background: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: #fff !important;
}
.gm-detail-icon-btn.gm-compare-active {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

/* Star rating input — CSS-only, right-to-left radio trick for hover-fill effect */
.gm-star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.gm-star-input input {
    display: none;
}
.gm-star-input label {
    font-size: 26px;
    color: #ddd;
    cursor: pointer;
    transition: 0.15s;
}
.gm-star-input input:checked ~ label,
.gm-star-input label:hover,
.gm-star-input label:hover ~ label {
    color: var(--bs-primary);
}

.gm-badge-discount {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 30px;
    z-index: 2;
}
.gm-badge-outofstock {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--bs-secondary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 30px;
    z-index: 2;
}

/* .gm-wishlist-btn is kept as a class purely for the global JS click handler to target —
   its visual styling now comes from .gm-hover-icon-btn since it lives in the hover overlay. */
.gm-wishlist-active {
    color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
}

.gm-product-card-body {
    padding: 4px 18px 12px;
    flex-grow: 1;
}
.gm-product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15.5px;
    line-height: 1.4;
    margin-bottom: 6px;
    min-height: 43px;
}
.gm-product-title:hover {
    color: var(--bs-primary);
}
.gm-product-category {
    display: block;
    color: #9a9a9a;
    font-size: 13px;
    margin-bottom: 8px;
}
.gm-product-heading {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #666;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 12px;
}
.gm-product-price {
    line-height: 1.3;
}
.gm-product-price del {
    display: block;
    color: #bbb;
    font-size: 14px;
}
.gm-price-current {
    font-weight: 800;
    color: var(--bs-primary);
    font-size: 18px;
}

.gm-product-card-footer {
    padding: 0 18px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gm-add-to-cart-btn {
    background: var(--bs-primary);
    color: #fff !important;
    border-radius: 30px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gm-add-to-cart-btn:hover {
    background: var(--bs-secondary);
    color: #fff !important;
}
.gm-btn-disabled {
    background: #ccc !important;
    cursor: not-allowed;
    pointer-events: none;
}
.gm-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    flex-shrink: 0;
    transition: 0.2s;
}
.gm-icon-btn:hover {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.gm-rich-text {
    line-height: 1.7;
}
.gm-rich-text p {
    margin-bottom: 1rem;
}
.gm-rich-text strong, .gm-rich-text b {
    color: #1a1a1a;
}
.gm-rich-text ul, .gm-rich-text ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}
.gm-rich-text h1, .gm-rich-text h2, .gm-rich-text h3,
.gm-rich-text h4, .gm-rich-text h5, .gm-rich-text h6 {
    color: #1a1a1a;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
}

/* ===== Hero carousel: dots instead of arrow nav ===== */

.header-carousel .owl-nav {
    display: none !important;
}

.header-carousel .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
}
.header-carousel .owl-dot span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d5d9e2;
    transition: 0.25s;
    margin: 0;
}
.header-carousel .owl-dot.active span,
.header-carousel .owl-dot:hover span {
    background: var(--bs-primary);
    width: 26px;
    border-radius: 6px;
}

/* =====================================================================
   MOBILE RESPONSIVENESS PASS
   Everything below is scoped to max-width media queries — desktop/laptop
   view (anything above 991px) is completely untouched by this section.
   ===================================================================== */

@media (max-width: 991px) {

    /* ---------- Global spacing tightening ---------- */
    .container-fluid.py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .py-5 .py-5 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* ---------- Typography scaling ---------- */
    .display-3 { font-size: 2rem; }
    .display-4 { font-size: 1.75rem; }
    .display-5 { font-size: 1.5rem; }
    .display-6 { font-size: 1.35rem; }
    h1.display-3, h1.display-4, h1.display-5 { line-height: 1.25; }

    /* ---------- Hero carousel ---------- */
    .header-carousel-item {
        text-align: center;
    }
    .carousel-content {
        padding: 24px 16px !important;
    }
    .carousel-content .btn {
        display: block;
        width: 100%;
        margin: 0 0 10px 0 !important;
    }
    .carousel-img img {
        max-height: 220px;
        object-fit: contain;
        margin: 0 auto;
    }

    /* ---------- Header ---------- */
    .gm-header-logo .fs-3 {
        font-size: 1.35rem !important;
    }
    .gm-search {
        height: 48px;
    }
    .gm-search-select {
        width: 110px !important;
        max-width: 110px !important;
        font-size: 13px;
    }
    .gm-search-input {
        font-size: 14px;
    }
    .gm-search-btn {
        width: 48px;
        height: 48px;
    }
    .gm-header-circle-btn {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    /* ---------- Category bar ---------- */
    .gm-category-link {
        font-size: 14px;
        padding: 12px 0;
    }

    /* ---------- Product cards ---------- */
    .gm-product-card-media {
        padding: 16px 12px 6px;
    }
    .gm-product-card-media img {
        max-height: 120px;
    }
    .gm-product-title {
        font-size: 14px;
        min-height: 38px;
    }
    .gm-price-current {
        font-size: 16px;
    }
    .gm-add-to-cart-btn {
        font-size: 13px;
        padding: 9px 10px;
    }
    .gm-icon-btn {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    /* ---------- Product detail page ---------- */
    .single-product h1.display-6 {
        font-size: 1.3rem;
    }
    .single-product h2.text-primary {
        font-size: 1.4rem;
    }
    .gm-gallery-thumb {
        width: 56px;
        height: 56px;
    }
    #productTabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    #productTabs .nav-link {
        font-size: 14px;
        padding: 10px 14px;
    }
    .gm-detail-icon-btn {
        font-size: 13px;
        padding: 7px 12px;
    }
    .gm-star-input label {
        font-size: 22px;
    }

    /* ---------- Cart & Compare tables ---------- */
    .table-responsive table {
        font-size: 14px;
    }
    .table-responsive img {
        width: 50px !important;
        height: 50px !important;
    }
    .gm-compare-label {
        width: 100px;
        font-size: 13px;
    }

    /* ---------- Forms (checkout, contact, service request) ---------- */
    .btn.rounded-pill.py-3.px-5 {
        padding-top: 0.85rem !important;
        padding-bottom: 0.85rem !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        width: 100%;
    }

    /* ---------- Footer ---------- */
    .gm-footer-info-item {
        padding: 4px 0;
    }
    .gm-footer-info-item .d-flex {
        padding: 16px !important;
    }
    .footer .row.g-5 {
        text-align: center;
    }
    .gm-footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    #gm-newsletter-form {
        max-width: 320px;
        margin: 0 auto;
    }
    .copyright .row > div {
        margin-bottom: 8px;
    }

    /* ---------- Floating buttons: shrink + reposition to avoid overlap ---------- */
    .gm-whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        left: 16px;
    }
    .back-to-top {
        right: 16px;
        bottom: 20px;
    }

    /* ---------- Government portal badges ---------- */
    .gm-portal-badge {
        padding: 10px !important;
    }

    /* ---------- Account dropdown ---------- */
    .gm-account-dropdown {
        width: 260px;
        max-width: 90vw;
    }
}

@media (max-width: 575px) {
    /* Extra-small phones — a few more targeted tightenings */
    .display-3 { font-size: 1.6rem; }
    .display-4 { font-size: 1.5rem; }
    .display-5 { font-size: 1.3rem; }

    .container, .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .gm-product-card-footer {
        flex-wrap: wrap;
    }
    .gm-product-card-footer form {
        width: 100%;
    }
    .gm-add-to-cart-btn {
        width: 100%;
    }

    .single-product .d-flex.flex-wrap .btn,
    .single-product .d-flex.flex-wrap form {
        width: 100%;
    }
}