:root {
    --jayamali-dark-blue: #1978bc;
    --jayamali-light-blue: #26a4e0;
    --jayamali-green: #6ea700;
    --jayamali-Dark-Green: #36a853;
    --jayamali-light-Green: #93d359;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/*------------------------- Header -------------------------*/

/*   Brand   */
.brand-logo {
    height: 60px;
}

.brand-name {
    height: 55px;
}

/*   Navbar bar   */
.navbar-nav .nav-item {
    position: relative;
    margin: 0 10px;
}

.navbar-nav .nav-link {
    color: black;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s;
    padding-bottom: 6px;
}
    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 3px;
        background: linear-gradient(to right, var(--jayamali-dark-blue), var(--jayamali-light-blue));
        border-radius: 3px 3px 0 0;
        transition: width 0.25s ease, left 0.25s ease;
        border-top: none;
        border-right: none;
        border-bottom: none;
        border-left: none;
        vertical-align: 0;
        margin-left: 0;
    }

    .navbar-nav .nav-link:hover {
        color: var(--jayamali-dark-blue);
    }
        .navbar-nav .nav-link:hover::after {
            left: 10%;
            width: 80%;
        }

    .navbar-nav .nav-link.nav-active {
        color: var(--jayamali-dark-blue) !important;
        font-weight: 700;
    }
        .navbar-nav .nav-link.nav-active::after {
            left: 10%;
            width: 80%;
        }

        .navbar-nav .nav-link.nav-active::before {
            content: '';
            position: absolute;
            top: 4px;
            left: 50%;
            transform: translateX(-50%);
            width: 5px;
            height: 5px;
            background: var(--jayamali-dark-blue);
            border-radius: 50%;
        }

/*   Search (>992)   */
.secSearch .btn {
    color: var(--jayamali-dark-blue);
    border-color: var(--jayamali-dark-blue);
}
    .secSearch .btn:hover {
        background-color: var(--jayamali-dark-blue);
        color: white;
    }

/*   Cart   */
.cart-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    color: #333;
}
    .cart-icon-link:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        background: #f8f9fa;
        color: #0d6efd;
    }

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    min-height: 20px;
    text-align: center;
}

/*   Profile   */
.profile-icon-wrapper {
    top: 20px;
    right: 20px;
    z-index: 1030;
    margin: 0px 15px;
}

.profile-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333 !important; 
    cursor: pointer;
}
    .profile-icon-link::after {
        display: none !important;
    }
    .profile-icon-link:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        background: #f8f9fa;
        color: #0d6efd !important; 
    }
    .profile-icon-link svg {
        fill: currentColor !important;
        transition: fill 0.3s ease;
    }

.profile-icon-wrapper .dropdown-menu {
    margin-top: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    min-width: 200px;
}

.profile-icon-wrapper .dropdown-item {
    padding: 10px 20px;
    transition: all 0.2s;
}
    .profile-icon-wrapper .dropdown-item:hover {
        background: #f8f9fa;
        padding-left: 25px;
    }

.profile-icon-wrapper .dropdown-header {
    font-weight: 600;
    color: #0d6efd;
    padding: 10px 20px;
}

.profile-icon-wrapper .dropdown-toggle::after {
    display: none !important;
}

/*----------------------Hero Section----------------------------*/
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.floating-specs {
    width: 300px;
    animation: float 4s ease-in-out infinite;
}

.hero-welcome-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--jayamali-dark-blue);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section {
    display: flex;
    align-items: center;
    padding: 20px 40px 30px;
    gap: 40px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    min-height: 480px;
}

.hero-left {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.offer-carousel-wrapper {
    flex: 0 0 55%;
    position: relative;
}

.offer-carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(25,120,188,0.18);
    position: relative;
}

    .offer-carousel .carousel-item img {
        height: 340px;
        width: 100%;
        object-fit: cover;
        border-radius: 20px;
    }

    .offer-carousel::before {
        content: '';
        position: absolute;
        inset: -3px;
        border-radius: 22px;
        background: linear-gradient(135deg, #1978bc, #26a4e0, #6ea700, #1978bc);
        background-size: 300% 300%;
        animation: gradientBorder 4s ease infinite;
        z-index: -1;
    }

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.slide-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0,0,0,0.55);
    color: white;
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.offer-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

    .offer-indicators button {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        border: none;
        background: rgba(255,255,255,0.5);
        padding: 0;
        transition: all 0.3s;
        cursor: pointer;
    }

        .offer-indicators button.active {
            background: white;
            width: 24px;
            border-radius: 4px;
        }

.offer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1978bc;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s;
}

    .offer-nav:hover {
        background: #1978bc;
        color: white;
        transform: translateY(-50%) scale(1.1);
    }

.offer-nav-prev {
    left: 12px;
}

.offer-nav-next {
    right: 12px;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: white;
    padding: 40px 20px 16px;
    border-radius: 0 0 20px 20px;
    font-size: 0.95rem;
    font-weight: 600;
}

.offer-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #e65c00, #f9d423);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(230,92,0,0.4);
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .hero-left,
    .offer-carousel-wrapper {
        flex: 0 0 100%;
        width: 100%;
    }

    .offer-carousel .carousel-item img {
        height: 220px;
    }
}

/* ------------------------- Services Section ------------------------------ */

/* Service selector buttons — 4 column grid */
.ServicesSec .btn-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
    width: 100%;
}

    .ServicesSec .btn-group .service-btn {
        min-width: unset !important;
        max-width: unset !important;
        width: 100%;
        font-size: 1.1rem;
        padding: 8px 6px;
        border-radius: 8px !important;
        /* Override btn-group border-radius collapsing */
        border: 1.5px solid #0d6efd !important;
    }

/*----------------------Featured Products Section----------------------------*/
.featured-section {
    padding: 70px 0 60px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

    .featured-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(to right, #1978bc, #26a4e0, #6ea700, #26a4e0, #1978bc);
        background-size: 300% 100%;
        animation: shimmerBar 4s linear infinite;
    }

@keyframes shimmerBar {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 300% 0%;
    }
}

.featured-header {
    text-align: center;
    margin-bottom: 48px;
}

.featured-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1978bc;
    margin-bottom: 8px;
}

.featured-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
}

.featured-divider {
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, #1978bc, #26a4e0);
    border-radius: 2px;
    margin: 14px auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}

.fp-card {
    border-radius: 18px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

    .fp-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(25,120,188,0.16);
    }

.fp-star-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(245,158,11,0.4);
}

.fp-rx-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(25,120,188,0.9);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 50px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.fp-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

    .fp-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.fp-card:hover .fp-img-wrap img {
    transform: scale(1.07);
}

.fp-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f0fb, #f0f6ff);
    color: #aac4e8;
    font-size: 3.5rem;
}

.fp-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(25,120,188,0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.fp-card:hover .fp-overlay {
    opacity: 1;
}

.fp-overlay-btn {
    background: white;
    color: #1978bc;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

    .fp-overlay-btn:hover {
        background: #e8f0fb;
    }

.fp-body {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fp-category {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1978bc;
    margin-bottom: 6px;
}

.fp-name {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
    line-height: 1.3;
}

.fp-brand {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
}

.fp-desc {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f1f5f9;
    padding-top: 12px;
    margin-top: auto;
}

.fp-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1978bc;
}

.fp-price-na {
    font-size: 0.82rem;
    color: #aaa;
    font-style: italic;
}

.fp-cart-btn {
    background: linear-gradient(135deg, #1978bc, #26a4e0);
    border: none;
    color: white;
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

    .fp-cart-btn:hover {
        opacity: 0.88;
        transform: translateY(-1px);
        color: white;
    }

.featured-cta {
    text-align: center;
    margin-top: 10px;
}

/* Featured Slider Nav */
.featured-nav-btn {
    width: 44px;
    height: 44px;
    top: 45%;
    background: transparent;
}

.featured-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 50%;
    color: #1978bc;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: all 0.2s;
}

.featured-nav-btn:hover .featured-nav-icon {
    background: #1978bc;
    color: white;
}

/* Featured Dots */
.featured-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    position: static;
}

.featured-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ccd9e8;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
}

    .featured-dot.active {
        background: #1978bc;
        width: 24px;
        border-radius: 4px;
    }

/*----------------------Gallery Section----------------------------*/

.gallery-section {
    background: linear-gradient(160deg, #f8faff 0%, #fff 50%, #f0fff4 100%);
    padding: 60px 0 50px;
    overflow: hidden;
    position: relative;
}

.gallery-header {
    text-align: center;
    margin-bottom: 36px;
    padding: 0 20px;
}

.gallery-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #1978bc;
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
}

    .gallery-eyebrow::before,
    .gallery-eyebrow::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 50px;
        height: 1px;
        background: #c0d4ea;
    }

    .gallery-eyebrow::before {
        right: calc(100% + 12px);
    }

    .gallery-eyebrow::after {
        left: calc(100% + 12px);
    }

.gallery-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #111;
    margin-bottom: 0;
}

.gallery-divider {
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, #1978bc, #26a4e0);
    border-radius: 2px;
    margin: 12px auto;
}

.gallery-sub {
    color: #777;
    font-size: 0.95rem;
    margin: 0;
}

.gallery-track-wrapper {
    overflow: hidden;
    cursor: grab;
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    user-select: none;
}

    .gallery-track-wrapper:active {
        cursor: grabbing;
    }

.gallery-track {
    display: flex;
    gap: 16px;
    width: max-content;
    padding: 8px 0 16px;
    animation: galleryScroll 35s linear infinite;
    animation-direction: reverse;
}

    .gallery-track.paused {
        animation-play-state: paused;
    }

@keyframes galleryScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.gallery-item {
    position: relative;
    width: 260px;
    height: 190px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .gallery-item:hover {
        transform: scale(1.03);
        box-shadow: 0 10px 32px rgba(25,120,188,0.18);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s;
        pointer-events: none;
    }

    .gallery-item:hover img {
        transform: scale(1.08);
    }

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(25,120,188,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 2rem;
    color: white;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 20px 10px 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item-caption {
    opacity: 1;
}

.gallery-item-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(25,120,188,0.85);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.gallery-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #1978bc;
    background: white;
    color: #1978bc;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(25,120,188,0.12);
}

    .gallery-nav-btn:hover {
        background: #1978bc;
        color: white;
        transform: scale(1.1);
    }

#galleryLightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
}

    #galleryLightbox.open {
        display: flex;
    }

@keyframes fadeInLightbox {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomInLightbox {
    from {
        transform: scale(0.88);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-inner {
    position: relative;
    max-width: 880px;
    width: 100%;
    cursor: default;
    animation: zoomInLightbox 0.25s ease;
}

#lightboxImg {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    display: block;
}

#lightboxCaption {
    color: rgba(255,255,255,0.85);
    text-align: center;
    margin-top: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 20px;
}

.lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    color: #333;
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: background 0.2s, transform 0.2s;
}

    .lightbox-close:hover {
        background: #1978bc;
        color: white;
        transform: scale(1.1);
    }

/*-------------------------Footer--------------------------*/

.mainFooter .ftLink {
    color: white;
    transition: 0.2s;
}

    .mainFooter .ftLink:hover {
        color: var(--jayamali-dark-blue);
    }

.ftDivOne {
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url("../images/Cover_Photo.png");
}

/*----------------------Scroll To Top Button----------------------------*/

#scrollTopBtn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #1978bc, #26a4e0);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(25,120,188,0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

    #scrollTopBtn.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #scrollTopBtn:hover {
        background: linear-gradient(135deg, #0d4f8a, #1978bc);
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(25,120,188,0.45);
    }

    #scrollTopBtn:active {
        transform: translateY(0);
    }

/*========================================================================
                   MOBILE RESPONSIVENESS — Full Site
   Breakpoints: 992px (tablet), 768px (large phone), 576px (small phone)
==========================================================================*/

/* ─-----------------------------─ Header ─-----------------------------─ */

@media (max-width: 1425px) {
    .brand-logo {
        height: 35px;
    }

    .brand-name {
        height: 30px;
        margin-top: 5px;
    }

    .navbar-nav .nav-item {
        margin: 0 1px;
    }

    .navbar-nav .nav-link {
        font-size: 0.9rem;
    }

    .secSearch .search-input {
        height: 30px;
        width: 130px;
    }
        .secSearch .search-input::placeholder {
            font-size: 0.85rem;
        }

    .secSearch .btn {
        height: 30px;
        width: 30px;
        padding: 5px;
        font-size: 0.9rem;
    }

    .cart-icon-link {
        width: 40px;
        height: 40px;
    }

    .profile-icon-wrapper {
        margin: 0px 5px;
    }

    .profile-icon-link {
        width: 40px;
        height: 40px;
    }
}

/*   Hide drawer on desktop   */
@media (min-width: 992px) {
    .mobile-nav-drawer,
    .mobile-nav-overlay,
    .nav-mobile-right,
    .nav-mobile-brand,
    #mobileMenuBtn {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .mobile-left-icons {
        display: none !important;
    }

    .mobile-brand-center {
        display: none !important;
    }

    #mobileSearchInMenu {
        display: none !important;
    }
}

/*   Mobile Navbar Off-Canvas Drawer   */
@media (max-width: 991.98px) {
    .navbar > .container-fluid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        padding: 6px 12px;
    }

    .navbar-collapse.d-none.d-lg-flex {
        display: none !important;
    }

    .nav-mobile-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: auto;
    }

    .brand-logo-center {
        height: 35px;
    }

    .brand-name-center {
        height: 30px;
        margin-top: 5px;
    }

    .nav-mobile-right {
        position: relative;
        z-index: 2;
        flex-shrink: 0;
        margin-left: auto;
    }

    #mobileMenuBtn {
        position: relative;
        z-index: 2;
        flex-shrink: 0;
        left: 15px;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        background: #f0f6ff;
        color: #1978bc;
        font-size: 1.5rem;
        box-shadow: 0 2px 8px rgba(25,120,188,0.15);
        transition: background 0.2s, transform 0.2s;
    }

        #mobileMenuBtn:hover {
            background: #1978bc;
            color: white;
            transform: scale(1.05);
        }


    .nav-mobile-right .dropdown > button.nav-mobile-icon-btn {
        width: 42px;
        height: 42px;
        margin: 0 10px;
        border-radius: 50%;
        background: white;
        color: #333;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

        .nav-mobile-right .dropdown > button.nav-mobile-icon-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            background: #f8f9fa;
            color: #1978bc;
        }

        .nav-mobile-right .dropdown > button.nav-mobile-icon-btn::after {
            display: none !important;
        }

    .cart-icon-wrapper {
        margin: 0;
    }

    .cart-icon-link {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.15);
        transition: all 0.3s ease;
    }

        .cart-icon-link:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            background: #f8f9fa;
            color: #1978bc;
        }

        .cart-icon-link.cart-icon-active {
            background: #1978bc;
            color: white;
            box-shadow: 0 4px 15px rgba(25,120,188,0.35);
        }

            .cart-icon-link.cart-icon-active svg {
                fill: white;
            }

            .cart-icon-link.cart-icon-active .cart-badge {
                background: white;
                color: #1978bc;
            }

    .nav-mobile-icon-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: none;
        background: transparent;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s, color 0.2s;
        padding: 0;
    }

        .nav-mobile-icon-btn:hover,
        .nav-mobile-icon-btn:focus {
            background: #f0f6ff;
            color: #1978bc;
            outline: none;
        }
}

@media (max-width: 576px) {
    #mobileMenuBtn {
        width: 35px;
        height: 35px;
        left: 10px;
    }

    .brand-logo-center {
        height: 25px;
        margin-top: 2px;
    }

    .brand-name-center {
        height: 25px;
    }

    .cart-icon-link {
        width: 35px;
        height: 35px;
    }
        .cart-icon-link svg {
            width: 19px;
        }

    .nav-mobile-right .dropdown > button.nav-mobile-icon-btn {
        width: 35px;
        height: 35px;
        margin: 0 2px;
    }
}

/* -------------------- Off-Canvas Profile ----------------------- */

@media (max-width: 991.98px) {
    .mobile-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
        backdrop-filter: blur(2px);
    }

        .mobile-nav-overlay.open {
            opacity: 1;
            visibility: visible;
        }
}

/* ─--------------------─ Off-canvas Menu ─------------------------─ */

@media (max-width: 991.98px) {
    .mobile-nav-drawer {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        box-shadow: 8px 0 40px rgba(0,0,0,0.18);
        overflow: hidden;
    }

        .mobile-nav-drawer.open {
            transform: translateX(0);
        }

    /* Drawer header */
    .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #e8eef5;
        background: linear-gradient(135deg, #f0f6ff, #fff);
        flex-shrink: 0;
    }

    .canvas-menu-logo {
        height: 36px;
    }

    .mobile-drawer-close {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: #f1f5f9;
        color: #444;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1rem;
        transition: background 0.2s, color 0.2s;
    }

        .mobile-drawer-close:hover {
            background: #fee2e2;
            color: #dc3545;
        }

    /* Search bar */
    .mobile-drawer-search {
        padding: 14px 16px;
        border-bottom: 1px solid #f1f5f9;
        flex-shrink: 0;
    }

    /* Nav links */
    .mobile-drawer-nav {
        flex: 1;
        overflow-y: auto;
        padding: 8px 0;
    }

    .mobile-drawer-link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 14px 20px;
        color: #333;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        border: none;
        background: transparent;
        cursor: pointer;
        border-bottom: 1px solid #f8faff;
        transition: background 0.2s, color 0.2s, padding-left 0.2s;
        text-align: left;
    }

        .mobile-drawer-link:hover {
            background: #f0f6ff;
            color: #1978bc;
            padding-left: 26px;
            text-decoration: none;
        }

        .mobile-drawer-link.active {
            color: #1978bc;
            font-weight: 700;
            background: #eef4ff;
            border-left: 4px solid #1978bc;
        }

    /* Accordion */
    .mobile-drawer-accordion {
        border-bottom: 1px solid #f8faff;
    }

    .mobile-accordion-btn {
        border-bottom: none !important;
    }

    .mobile-accordion-arrow {
        transition: transform 0.25s;
        font-size: 0.8rem;
        color: #aaa;
    }

    .mobile-accordion-btn.expanded .mobile-accordion-arrow {
        transform: rotate(180deg);
    }

    .mobile-accordion-body {
        display: none;
        background: #f8faff;
        padding: 4px 0 4px 16px;
    }

        .mobile-accordion-body.open {
            display: block;
        }

        /* Dropdown items inside accordion */
        .mobile-accordion-body .dropdown-item,
        .mobile-accordion-body a {
            display: block;
            padding: 10px 20px;
            color: #555;
            font-size: 0.88rem;
            text-decoration: none;
            border-radius: 8px;
            margin: 2px 8px;
            transition: background 0.2s, color 0.2s;
        }

            .mobile-accordion-body .dropdown-item:hover,
            .mobile-accordion-body a:hover {
                background: #e0edfa;
                color: #1978bc;
            }

    /* Drawer footer */
    .mobile-drawer-footer {
        padding: 16px;
        border-top: 1px solid #e8eef5;
        background: #f8faff;
        flex-shrink: 0;
    }

    /* ── Drawer accordion button — match other nav links ── */
    .mobile-accordion-btn {
        color: #1978bc !important;
        font-weight: 500 !important;
        width: 100% !important;
    }

        .mobile-accordion-btn:hover {
            background: #f0f6ff !important;
            color: #1978bc !important;
            padding-left: 26px !important;
        }

        .mobile-accordion-btn.active {
            color: #1978bc !important;
            font-weight: 700 !important;
            background: #eef4ff !important;
            border-left: 4px solid #1978bc !important;
        }

    /* ── Remove list dots from accordion bodies ── */
    .mobile-accordion-body ul,
    .mobile-accordion-body li {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* ── Accordion sub-items ── */
    .mobile-accordion-body .dropdown-item,
    .mobile-accordion-body a {
        display: flex !important;
        align-items: center;
        padding: 10px 16px 10px 20px !important;
        color: #444 !important;
        font-size: 0.88rem !important;
        text-decoration: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #f1f5f9;
        transition: background 0.2s, color 0.2s, padding-left 0.2s;
    }

        .mobile-accordion-body .dropdown-item:hover,
        .mobile-accordion-body a:hover {
            background: #e8f4ff !important;
            color: #1978bc !important;
            padding-left: 26px !important;
        }

        /* ── "All Products" and "All Services" — highlighted ── */
        .mobile-accordion-body .dropdown-item:last-child,
        .mobile-accordion-body li:last-child a {
            background: linear-gradient(135deg, #eef4ff, #f0fff4) !important;
            color: #1978bc !important;
            font-weight: 700 !important;
            border-bottom: none !important;
            margin-top: 4px !important;
            border-top: 2px solid #e0edfa !important;
        }

            .mobile-accordion-body .dropdown-item:last-child:hover,
            .mobile-accordion-body li:last-child a:hover {
                background: linear-gradient(135deg, #dbeafe, #d1fae5) !important;
            }

    /* ── Remove hr divider inside accordion (looks odd on mobile) ── */
    .mobile-accordion-body .dropdown-divider {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .mobile-nav-drawer {
        width: 200px;
        height: 100vh;
    }

    /* Drawer header */
    .mobile-drawer-header {
        padding: 16px 10px;
    }

    .canvas-menu-logo{
        height: 35px;
    }

    /* Search bar */
    .mobile-drawer-search {
        padding: 14px 7px;
    }
}

/* -------------------------Login & Register-------------------------*/
@media (max-width: 480px) {
    .auth-body {
        padding: 24px 20px 28px;
    }

    .auth-header {
        padding: 24px 20px 20px;
    }

    .auth-card {
        border-radius: 18px;
    }
}

/* ---------------------------── Hero Section ─---------------------------─ */

@media (max-width: 1180px) {
    .hero-animation {
        margin-bottom: 0px !important;
    }

    .hero-welcome-text {
        font-size: 2rem !important;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 20px 24px 28px;
        gap: 28px;
        min-height: auto;
    }

    .hero-left {
        flex: 0 0 42%;
    }

    .hero-btns {
        font-size: 1rem;
    }

    .offer-carousel-wrapper {
        flex: 0 0 55%;
    }

    .floating-specs {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding: 20px 16px;
        gap: 20px;
    }

    .hero-left,
    .offer-carousel-wrapper {
        flex: 0 0 100%;
        width: 100%;
    }

    .hero-welcome-text {
        font-size: 1.5rem;
    }

    .floating-specs {
        width: 180px;
    }

    .offer-carousel .carousel-item img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-welcome-text {
        font-size: 1.2rem;
    }

    .floating-specs {
        width: 140px;
    }

    .offer-carousel .carousel-item img {
        height: 170px;
    }

    /* Stack hero buttons vertically */
    .hero-left .d-flex.gap-3 {
        flex-direction: column;
        width: 100%;
    }

    .hero-left .btn {
        width: 100%;
    }
}

/* ------------------------ Services Section ------------------------- */

@media (max-width: 1000px) {
    .ServicesSec {
        padding: 20px 0 !important;
    }

    .ServicesSubSec {
        margin: 0 15px !important;
        padding: 25px !important;
    }

    /* Service selector buttons — 3 column grid */
    .ServicesSec .btn-group {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

        .ServicesSec .btn-group .service-btn {
            min-width: unset !important;
            max-width: unset !important;
            width: 100%;
            font-size: 1rem;
            padding: 8px 6px;
            border-radius: 8px !important;
            /* Override btn-group border-radius collapsing */
            border: 1.5px solid #0d6efd !important;
        }

    #serviceContent .card {
        align-items: start !important;
    }

    #serviceInfo .w-50 {
        height: 60px;
    }
}

@media (max-width: 992px) {
    .service-btns {
        padding-bottom: 25px;
    }
}

@media (max-width: 768px) {
    /* 1. Service selector buttons — 3 column grid */
    .ServicesSec .btn-group {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

        .ServicesSec .btn-group .service-btn {
            min-width: unset !important;
            max-width: unset !important;
            width: 100%;
            font-size: 0.78rem;
            padding: 8px 6px;
            border-radius: 8px !important;
            /* Override btn-group border-radius collapsing */
            border: 1.5px solid #0d6efd !important;
        }

    .ServicesSec .card.d-flex.flex-row {
        flex-direction: column !important;
    }

    .ServicesSec .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .service-btn {
        min-width: unset !important;
        max-width: 100% !important;
        width: 100%;
    }

    .ServicesSec .mx-5 {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }

    .ServicesSec .p-md-5 {
        padding: 16px !important;
    }

    #serviceContent .card {
        align-items: center !important;

    }

    .ServicesSec .w-25,
    .ServicesSec .w-75 {
        width: 100% !important;
    }

    .ServiceImgName {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .service-image {
        max-width: 100%; /* Full width on mobile */
        max-height: 200px; /* But limit height */
    }

    .service-btns {
        padding-bottom: 15px;
    }

    #serviceContent .card {
        padding: 20px !important;
    }

    .service-info {
        gap: 10px !important;
    }
}

@media (max-width: 576px) {
    .ServicesSec {
        padding-top: 15px !important;
    }

    .ServicesSubSec {
        padding: 0 !important;
        margin: 0 !important;
    }

    .service-title {
        padding: 3px !important;
    }

    .service-btns {
        padding-bottom: 15px;
    }

    /* ── 1. Service selector buttons — 2 column grid ── */
    .ServicesSec .btn-group {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

        .ServicesSec .btn-group .service-btn {
            min-width: unset !important;
            max-width: unset !important;
            width: 100%;
            font-size: 0.7rem;
            padding: 8px 6px;
            border-radius: 8px !important;
            /* Override btn-group border-radius collapsing */
            border: 1.5px solid #0d6efd !important;
        }

    .service-image {
        max-width: 100%; /* Full width on mobile */
        max-height: 200px; /* But limit height */
    }

    .service-details {
        width: 100vh !important;
    }

    .service-details {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important; /* If using flexbox */
    }

    #serviceContent .card {
        padding: 10px !important;
    }
}

/* ------------------------ Featured Products ------------------ */

@media (max-width: 1205px) {
    .featured-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 28px;
        margin-bottom: 40px;
    }

    .fp-card {
        border-radius: 14px;
    }

    .fp-img-wrap {
        height: 160px;
    }

    .fp-body {
        padding: 12px;
        flex-grow: 1;
    }

    .fp-name {
        font-size: 0.88rem;
        font-weight: 700;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .fp-category {
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 1px;
        margin-bottom: 6px;
    }

    .fp-desc {
        font-size: 0.76rem;
        line-height: 1.5;
        flex-grow: 1;
        margin-bottom: 14px;
    }

    .fp-price {
        font-size: 0.95rem;
        font-weight: 800;
    }

    .fp-cart-btn {
        border-radius: 50px;
        padding: 5px 12px;
        font-size: 0.8rem;
        font-weight: 600;
        gap: 5px;
    }

    .fp-footer {
        border-top: 1px solid #f1f5f9;
        padding-top: 8px;
        margin-top: auto;
    }
}

@media (max-width: 992px) {
    .featured-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 28px;
        margin-bottom: 40px;
    }

    .fp-card {
        border-radius: 12px;
    }

    .fp-img-wrap {
        height: 130px;
    }

    .fp-body {
        padding: 9px;
        flex-grow: 1;
    }

    .fp-name {
        font-size: 0.8rem;
        font-weight: 700;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .fp-category {
        font-size: 0.55rem;
        font-weight: 700;
        letter-spacing: 1px;
        margin-bottom: 6px;
    }

    .fp-desc {
        font-size: 0.66rem;
        line-height: 1.5;
        flex-grow: 1;
        margin-bottom: 14px;
    }

    .fp-price {
        font-size: 0.85rem;
        font-weight: 800;
    }

    .fp-cart-btn {
        border-radius: 50px;
        padding: 3px 10px;
        font-size: 0.8rem;
        font-weight: 600;
        gap: 5px;
    }

    .fp-footer {
        border-top: 1px solid #f1f5f9;
        padding-top: 6px;
        margin-top: auto;
    }

    .fp-star-badge {
        top: 12px;
        left: 10px;
        font-size: 0.55rem;
        font-weight: 800;
        letter-spacing: 1px;
        padding: 2px 8px;
        border-radius: 50px;
        gap: 4px;
    }
}

@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .fp-img-wrap {
        height: 160px;
    }

    .featured-section {
        padding: 40px 0 36px;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ── Reviews Slider ── */
@media (max-width: 768px) {
    .review-card {
        width: 270px;
        min-width: 270px;
        padding: 20px;
    }

    .reviews-stats {
        gap: 16px;
    }

    .stat-pill {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .reviews-section {
        padding: 50px 0 44px;
    }

    .reviews-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    /* Review form */
    .review-form-card {
        padding: 20px 16px;
        border-radius: 14px;
        margin: 0 12px;
    }

    .reviews-stats {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* ── Brands Slider ── */
@media (max-width: 576px) {
    .brands-section {
        padding: 28px 0;
    }
}

/* ── Gallery Section ── */
@media (max-width: 768px) {
    .gallery-item {
        width: 200px;
        height: 150px;
    }

    .gallery-section {
        padding: 40px 0 36px;
    }

    .gallery-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        width: 160px;
        height: 120px;
    }

    .gallery-nav {
        gap: 12px;
    }

    .gallery-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}

/* ── Footer ── */
@media (max-width: 992px) {
    .mainFooter {
        flex-direction: column !important;
    }

        .mainFooter .ftDivOne {
            width: 100% !important;
        }

        .mainFooter .w-25 {
            width: 100% !important;
        }

        .mainFooter .d-flex.justify-content-around.h-75 {
            flex-wrap: wrap;
            gap: 24px;
        }
}

@media (max-width: 768px) {
    .mainFooter .d-flex.justify-content-around.h-25 {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 16px 0;
        height: auto !important;
    }

    .mainFooter .h-75 {
        height: auto !important;
        padding-bottom: 20px;
    }

    .mainFooter .d-flex.justify-content-around.h-75 {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    /* Footer copyright bar */
    .bg-dark.d-flex.justify-content-around {
        flex-direction: column !important;
        height: auto !important;
        text-align: center;
        padding: 10px;
        gap: 6px;
    }
}

/* ── Products Page ── */
@media (max-width: 768px) {
    .ProductsSec .btn-group {
        gap: 4px;
    }

    .ProductsSec .btn {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .category-title {
        font-size: 1.3rem;
    }
}



/* ── Contact Page ── */
@media (max-width: 768px) {
    .contact-hero {
        padding: 44px 0 64px;
    }

        .contact-hero h1 {
            font-size: 1.8rem;
        }

    .contact-form-card {
        padding: 24px 16px;
    }

    .book-contact {
        margin-bottom: 12px;
    }
}

@media (max-width: 576px) {
    /* Contact info cards stack */
    .info-card {
        padding: 20px 16px;
    }
}

/* ── About Page ── */
@media (max-width: 768px) {
    .about-hero {
        padding: 50px 0 36px;
    }

        .about-hero h1 {
            font-size: 1.7rem;
        }

        .about-hero .d-flex.gap-3 {
            flex-direction: column;
            align-items: center;
        }

        .about-hero .btn {
            width: 100%;
            max-width: 280px;
        }

    .vision-card {
        padding: 24px 20px;
    }
}

/* ── Scroll to Top button — move left on mobile so it doesn't overlap ── */
@media (max-width: 576px) {
    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

/* ── Shared Modal (Product Details) ── */
@media (max-width: 768px) {
    #sharedProductModal .row.g-0 {
        flex-direction: column;
    }

    #sharedProductModal .col-md-5,
    #sharedProductModal .col-md-7 {
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
    }
}

/* ── My Account / Identity pages ── */
@media (max-width: 768px) {
    .manage-nav .nav-link {
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .sidebar-avatar {
        width: 52px;
        height: 52px;
        font-size: 1.4rem;
    }

    /* Stack sidebar above content on mobile */
    .account-sidebar {
        margin-bottom: 20px;
    }
}

/* ── General utility fixes ── */
@media (max-width: 576px) {
    /* Prevent horizontal overflow site-wide */
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Make all section headings smaller on phone */
    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }
}