/**
 * UNIMEDS - Healthcare & Clinical Performance Wear Design System
 * Theme Aesthetic: MITHREADS / Knya Med Clinical Performance Wear
 */

:root {
    /* Brand Clinical Medical Teal Palette */
    --brand-50: #F0F7F7;
    --brand-100: #DDEFEF;
    --brand-200: #BFDFDF;
    --brand-300: #95C8C8;
    --brand-400: #64ACAC;
    --brand-500: #3D8F90;
    --brand-600: #2F7476;
    --brand-700: #275E60;
    --brand-800: #234C4E;
    --brand-900: #204042;
    --brand-950: #102527;

    /* Clinical Dark Navy Palette */
    --navy-800: #141E28;
    --navy-900: #0C131A;
    --navy-950: #070B0F;

    /* Organic Muslin / Sage Palette */
    --sage-50: #F4F7F5;
    --sage-100: #E4ECE7;
    --sage-500: #5C8A74;
    --sage-600: #476F5C;

    /* Bootstrap Overrides & Semantic Tokens */
    --bs-primary: #275E60;
    --bs-primary-rgb: 39, 94, 96;
    --bs-link-color: #275E60;
    --bs-link-color-rgb: 39, 94, 96;
    --bs-link-hover-color: #163B3D;
    --bs-link-hover-color-rgb: 22, 59, 61;
    --primary: #275E60;
    --primary-dark: #204042;
    --primary-light: #F0F7F7;
}

/* ==========================================================================
   Bootstrap Core Brand Color Harmonization (#0d6efd -> #275E60 Teal)
   ========================================================================== */
.text-primary {
    color: #275E60 !important;
}

.bg-primary {
    background-color: #275E60 !important;
}

.border-primary {
    border-color: #275E60 !important;
}

.link-primary {
    color: #275E60 !important;
}
.link-primary:hover, .link-primary:focus {
    color: #163B3D !important;
}

.btn-primary {
    color: #FFFFFF !important;
    background-color: #275E60 !important;
    border-color: #275E60 !important;
    box-shadow: 0 4px 14px rgba(39, 94, 96, 0.25);
    transition: all 0.2s ease;
}
.btn-primary:hover {
    color: #FFFFFF !important;
    background-color: #204E50 !important;
    border-color: #204E50 !important;
    box-shadow: 0 6px 20px rgba(39, 94, 96, 0.35);
    transform: translateY(-1px);
}
.btn-primary:active, .btn-primary.active, .show > .btn-primary.dropdown-toggle {
    color: #FFFFFF !important;
    background-color: #163B3D !important;
    border-color: #163B3D !important;
    transform: translateY(0);
}
.btn-primary:focus, .btn-primary:focus-visible {
    box-shadow: 0 0 0 0.25rem rgba(39, 94, 96, 0.35) !important;
}

.btn-outline-primary {
    color: #275E60 !important;
    border-color: #275E60 !important;
    background-color: transparent !important;
    transition: all 0.2s ease;
}
.btn-outline-primary:hover {
    color: #FFFFFF !important;
    background-color: #275E60 !important;
    border-color: #275E60 !important;
    transform: translateY(-1px);
}
.btn-outline-primary:active, .btn-outline-primary.active {
    color: #FFFFFF !important;
    background-color: #163B3D !important;
    border-color: #163B3D !important;
}
.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(39, 94, 96, 0.35) !important;
}

.form-check-input:checked {
    background-color: #275E60 !important;
    border-color: #275E60 !important;
}
.form-check-input:focus {
    border-color: #95C8C8 !important;
    box-shadow: 0 0 0 0.25rem rgba(39, 94, 96, 0.25) !important;
}

.form-control:focus, .form-select:focus {
    border-color: #64ACAC !important;
    box-shadow: 0 0 0 0.25rem rgba(39, 94, 96, 0.2) !important;
}

.pagination .page-item.active .page-link {
    background-color: #275E60 !important;
    border-color: #275E60 !important;
    color: #FFFFFF !important;
}
.pagination .page-link {
    color: #275E60;
}
.pagination .page-link:hover {
    color: #163B3D;
    background-color: #F0F7F7;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #275E60 !important;
    color: #FFFFFF !important;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #275E60 !important;
    color: #FFFFFF !important;
}

.progress-bar {
    background-color: #275E60 !important;
}

.list-group-item.active {
    background-color: #275E60 !important;
    border-color: #275E60 !important;
    color: #FFFFFF !important;
}


body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background-color: #fafbfc;
    overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.font-serif-luxury {
    font-family: 'Playfair Display', serif;
}

/* Topbar / Announcement Bar */
.topbar-unimeds {
    background-color: #0C131A;
    color: #94a3b8;
    font-size: 0.74rem;
    padding: 5px 0;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.topbar-unimeds a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s;
}
.topbar-unimeds a:hover {
    color: #64ACAC;
}
.text-teal-accent {
    color: #64ACAC !important;
}

/* Live Pulsating Beacon */
@keyframes pulseBeacon {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}
.ping-beacon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #3D8F90;
    margin-right: 4px;
}
.ping-beacon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #3D8F90;
    animation: pulseBeacon 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Sticky Glassmorphic Navbar */
.sticky-navbar-unimeds {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    padding-top: 10px;
    padding-bottom: 10px;
}

.nav-link-unimeds {
    font-weight: 600;
    font-size: 0.84rem;
    color: #334155;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.nav-link-unimeds:hover, .nav-link-unimeds.active {
    color: var(--brand-700);
    background: var(--brand-50);
}

.nav-mega-dropdown {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 40px -15px rgba(12, 19, 26, 0.12);
    padding: 0.85rem;
    animation: fadeInDropdown 0.2s ease;
}
@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-card-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.15s ease;
}
.dropdown-card-item:hover {
    background: #f8fafc;
    transform: translateX(3px);
    color: var(--brand-700);
}

.dropdown-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dropdown-icon-img-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #F8FAFC;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.dropdown-icon-img-box-sm {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #F8FAFC;
}

.dropdown-icon-img-box img,
.dropdown-icon-img-box-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.dropdown-card-item:hover .dropdown-icon-img-box img {
    transform: scale(1.08);
}

/* Font Awesome Compatibility Aliases */
.fa-person-breastfeeding { --fa: "\e53a"; }
.fa-user-doctor { --fa: "\f0f0"; }
.fa-hospital-user { --fa: "\f80d"; }
.fa-vest-patches { --fa: "\e086"; }

/* Buttons & Overrides */
.btn-primary {
    background-color: var(--brand-700) !important;
    border-color: var(--brand-700) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 4px 14px rgba(39, 94, 96, 0.22);
    transition: all 0.2s ease;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--brand-900) !important;
    border-color: var(--brand-900) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(39, 94, 96, 0.32) !important;
}

.btn-outline-primary {
    border-color: var(--brand-700) !important;
    color: var(--brand-700) !important;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.2s ease;
}
.btn-outline-primary:hover {
    background-color: var(--brand-700) !important;
    border-color: var(--brand-700) !important;
    color: #ffffff !important;
}

.btn-dark {
    background-color: #0C131A !important;
    border-color: #0C131A !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.2s ease;
}
.btn-dark:hover {
    background-color: var(--brand-900) !important;
    border-color: var(--brand-900) !important;
}

/* Brand Color Utilities */
.text-primary {
    color: var(--brand-700) !important;
}
.bg-primary {
    background-color: var(--brand-700) !important;
}
.border-primary {
    border-color: var(--brand-700) !important;
}
.text-brand-600 { color: var(--brand-600) !important; }
.text-brand-700 { color: var(--brand-700) !important; }
.text-brand-900 { color: var(--brand-900) !important; }
.bg-brand-50 { background-color: var(--brand-50) !important; }
.bg-brand-100 { background-color: var(--brand-100) !important; }
.bg-navy-900 { background-color: var(--navy-900) !important; }
.border-brand-200 { border-color: var(--brand-200) !important; }

.badge-subtle-primary {
    background-color: var(--brand-50) !important;
    color: var(--brand-800) !important;
    border: 1px solid var(--brand-100) !important;
}
.badge-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-50);
    color: var(--brand-900);
    border: 1px solid var(--brand-200);
    font-weight: 700;
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Action Buttons */
.badge-cart-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: #ef4444;
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.badge-wishlist-count {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--brand-600);
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none;
    position: relative;
    font-size: 0.84rem;
    flex-shrink: 0;
    transition: all 0.15s;
}
.icon-action-btn:hover {
    background: var(--brand-50);
    color: var(--brand-700);
}

/* Product Card - Clinical Performance Wear */
.product-card-modern {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.product-card-modern:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 30px -5px rgba(39, 94, 96, 0.12);
}
.product-card-img-wrap {
    position: relative;
    background: #f8fafc;
    padding-top: 108%;
    overflow: hidden;
}
.product-card-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card-modern:hover .product-card-img-wrap img {
    transform: scale(1.05);
}

/* Product Card Thumbnail Action Buttons (Add to Cart & Buy Now) */
.product-action-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.product-action-btn:focus-visible {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}

.product-action-btn-cart,
.product-action-btn-buy {
    background-color: var(--brand-700) !important;
    color: #FFFFFF !important;
    border: 1.5px solid var(--brand-700) !important;
}

.product-action-btn-cart:hover,
.product-action-btn-buy:hover {
    background-color: #143537 !important;
    color: #FFFFFF !important;
    border-color: #143537 !important;
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 6px 14px rgba(20, 53, 55, 0.35);
}

/* Product Card All Variants Selector (Homepage & Catalog) */
.card-variants-wrap {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 8px 10px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
}

.product-card-modern:hover .card-variants-wrap {
    border-color: #e2e8f0;
}

.color-swatches-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px !important;
}

.variant-color-swatch-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.18);
    padding: 0;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    outline: none;
    margin: 2px;
}

.variant-color-swatch-btn:hover {
    transform: scale(1.2);
    z-index: 2;
}

.variant-color-swatch-btn.active {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--brand-700) !important;
    transform: scale(1.15);
    z-index: 2;
}

.variant-size-chip-btn {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.25;
    user-select: none;
    outline: none;
}

.variant-size-chip-btn:hover {
    border-color: var(--brand-700);
    color: var(--brand-700);
    background: #f0fdf4;
}

.variant-size-chip-btn.active {
    background: var(--brand-700);
    border-color: var(--brand-700);
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(39, 94, 96, 0.25);
}

.variant-size-chip-btn.dimmed {
    opacity: 0.45;
}

/* Floating Quick Cart Notification Toast */
#quickCartToastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1090;
    pointer-events: none;
}

.quick-cart-toast {
    pointer-events: auto;
    background: #0C131A;
    color: #FFFFFF;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 290px;
    max-width: 380px;
    animation: slideInToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border-left: 4px solid #64ACAC;
}

@keyframes slideInToast {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Footer */
.unimeds-footer {
    background: #0C131A;
    color: #94a3b8;
    padding: 4rem 0 2rem;
    border-top: 1px solid #1e293b;
}
.unimeds-footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.15s;
}
.unimeds-footer a:hover {
    color: #64ACAC;
}

/* Shadows */
.shadow-soft {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}
.shadow-lift {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

/* Product Detail Interactive Gallery */
.gallery-stage-card {
    transition: box-shadow 0.25s ease;
}
.gallery-cycle-btn {
    transition: all 0.2s ease !important;
    opacity: 0.88;
}
.gallery-cycle-btn:hover {
    opacity: 1 !important;
    background: #FFFFFF !important;
    transform: translateY(-50%) scale(1.08) !important;
    color: #275E60 !important;
}
.gallery-thumb-box {
    transition: all 0.2s ease;
}
.gallery-thumb-box:hover {
    border-color: #95C8C8 !important;
    transform: translateY(-2px);
}
.gallery-thumb-box.active-thumb {
    border-color: #275E60 !important;
    box-shadow: 0 4px 14px rgba(39, 94, 96, 0.28);
    transform: translateY(-2px);
}

/* Home Hero Slider & Options */
.hero-slider-tab-btn {
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #334155;
    border-radius: 9999px;
    padding: 7px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.22s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.hero-slider-tab-btn:hover {
    border-color: #275E60;
    color: #275E60;
    background: #F0F7F7;
    transform: translateY(-1px);
}
.hero-slider-tab-btn.active {
    background: #275E60 !important;
    border-color: #275E60 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(39, 94, 96, 0.28);
}
.hero-slider-tab-btn.active i {
    color: #A3D8D8 !important;
}

.hero-carousel-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #E2E8F0;
    color: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}
.hero-carousel-nav-btn:hover {
    background: #275E60;
    border-color: #275E60;
    color: #FFFFFF;
    transform: scale(1.08);
}
.hero-nav-side-prev,
.hero-nav-side-next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 10;
}
.hero-nav-side-prev {
    left: -18px;
}
.hero-nav-side-next {
    right: -18px;
}
@media (max-width: 1200px) {
    .hero-nav-side-prev { left: 8px; }
    .hero-nav-side-next { right: 8px; }
}


.hero-gradient-text {
    background: linear-gradient(135deg, #275E60 0%, #2F7476 50%, #3D8F90 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#homeHeroCarousel .carousel-indicators [data-bs-target] {
    width: 28px;
    height: 5px;
    border-radius: 999px;
    background-color: #CBD5E1;
    border: none;
    margin: 0 4px;
    transition: all 0.3s ease;
    opacity: 0.75;
}
#homeHeroCarousel .carousel-indicators .active {
    background-color: #275E60 !important;
    width: 48px;
    opacity: 1;
}

/* Modern Category Showcase Cards */
.category-showcase-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
    background: #FFFFFF;
}

.category-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(39, 94, 96, 0.14) !important;
    border-color: rgba(39, 94, 96, 0.25);
}

.category-showcase-img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-showcase-card:hover .category-showcase-img {
    transform: scale(1.08);
}

.category-overlay-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.35) 45%, rgba(15, 23, 42, 0.9) 100%);
    pointer-events: none;
    transition: background 0.3s ease;
}

.category-showcase-card:hover .category-overlay-scrim {
    background: linear-gradient(180deg, rgba(39, 94, 96, 0.15) 0%, rgba(15, 23, 42, 0.45) 45%, rgba(15, 23, 42, 0.95) 100%);
}

.category-showcase-cta {
    transition: all 0.25s ease;
}

.category-showcase-card:hover .category-showcase-cta {
    color: #95C8C8 !important;
    transform: translateX(4px);
}

/* ==========================================================================
   Global Smooth Scroll & Floating Viewport Actions (Back to Top & WhatsApp)
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Floating Action Stack (Bottom Right Corner of Viewport) */
.floating-action-stack {
    position: fixed;
    bottom: 26px;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1080;
    pointer-events: none;
}

.floating-action-stack .floating-btn {
    pointer-events: auto;
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease,
                opacity 0.3s ease,
                visibility 0.3s ease,
                background 0.25s ease,
                border-color 0.25s ease;
}

/* Back to Top Button */
.floating-btn.back-to-top-floating {
    background: linear-gradient(135deg, #163B3D 0%, #204E50 100%);
    color: #5EEAD4;
    border: 1.5px solid rgba(94, 234, 212, 0.35);
    font-size: 1.15rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.9);
}
.floating-btn.back-to-top-floating.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.floating-btn.back-to-top-floating:hover {
    background: linear-gradient(135deg, #0d9488 0%, #163B3D 100%);
    color: #FFFFFF;
    border-color: #5EEAD4;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 26px rgba(13, 148, 136, 0.45);
}
.floating-btn.back-to-top-floating:active {
    transform: translateY(0) scale(0.96);
}
.floating-btn.back-to-top-floating:focus-visible {
    outline: 3px solid #5EEAD4;
    outline-offset: 3px;
}

/* WhatsApp Floating Button */
.floating-btn.whatsapp-floating {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    font-size: 1.65rem;
    animation: whatsapp-glow 3s infinite;
}
.floating-btn.whatsapp-floating:hover {
    color: #FFFFFF;
    background: linear-gradient(135deg, #2ae06d 0%, #159c8d 100%);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.48), 0 3px 8px rgba(0, 0, 0, 0.15);
    animation: none;
}
.floating-btn.whatsapp-floating:active {
    transform: translateY(0) scale(0.96);
}
.floating-btn.whatsapp-floating:focus-visible {
    outline: 3px solid #25D366;
    outline-offset: 3px;
}

@keyframes whatsapp-glow {
    0% {
        box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Floating Button Tooltips */
.floating-btn-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #0F172A;
    color: #F8FAFC;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.floating-btn-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #0F172A;
}
.floating-btn:hover .floating-btn-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 576px) {
    .floating-action-stack {
        bottom: 18px;
        right: 16px;
        gap: 10px;
    }
    .floating-action-stack .floating-btn {
        width: 44px;
        height: 44px;
    }
    .floating-btn.whatsapp-floating {
        font-size: 1.45rem;
    }
    .floating-btn.back-to-top-floating {
        font-size: 1rem;
    }
    .floating-btn-tooltip {
        display: none;
    }
}

/* ==========================================================================
   Product Detail In-Place Image Zoom on Mouseover
   ========================================================================== */
.main-image-stage {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    cursor: zoom-in;
}

.main-image-stage img#mainProductImage {
    pointer-events: auto;
    transform-origin: center center;
    transition: opacity 0.22s ease-in-out, transform 0.12s ease-out;
    will-change: transform;
}

.zoom-hint-pill {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-image-stage.is-zooming ~ * .zoom-hint-pill,
.main-image-stage:hover ~ * .zoom-hint-pill {
    opacity: 0.35;
    pointer-events: none;
}







