/* ================================================================
   SIVA SURESH AGENCY — Animations v1
   Inspired by Web Template samples:
     • 3D Card Hover (style39.css) → product/category cards
     • Admin Sidebar (style35.css) → admin nav items
     • Logo Animation (style58.css) → logo pulse shimmer
     • Rating Animation (style25.css) → order rating stars
     • Share Icon (style27.css)     → post-order share menu
     • Signature Button (style28.css)→ CliniFlex/signature btns
     • Tab Design (style53.css)     → account/mobile tabs
     • Upload Animation (style24.css)→ embroidery upload zone
     • Mobile Menu redesign         → full-screen overlay menu
   ================================================================ */

/* ── Reduce-motion safety ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ssa-anim-logo, .ssa-anim-logo::after,
    .sig-btn span, .sig-btn:hover span,
    .upload-zone-anim .upload-icon-anim,
    .share-radial li, .share-radial.open li,
    .rating-star-anim, .rating-star-anim.selected,
    .nav-item-anim, .mobile-nav-item {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}


/* ═══════════════════════════════════════════════════════════════
   1. LOGO ANIMATION — looping shimmer pulse (inspired by style58.css)
      The Netflix intro uses complex brush strokes. We adapt the
      "paint reveal + glowing shimmer" idea into a professional
      CSS-only loop for the SSA logo mark.
   ═══════════════════════════════════════════════════════════════ */
.logo-icon {
    position: relative;
    overflow: visible;
}

.logo-icon img {
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

/* Gentle breathing pulse on the logo icon */
.ssa-anim-logo {
    animation: logo-breathe 3s ease-in-out infinite;
}

@keyframes logo-breathe {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(13,148,136,0)); }
    50%       { transform: scale(1.04); filter: drop-shadow(0 0 10px rgba(13,148,136,0.55)); }
}

/* Sheen sweep: a bright line crosses the logo every 4s */
.logo-icon::after {
    content: '';
    position: absolute;
    top: -10%;
    left: -60%;
    width: 40%;
    height: 120%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255,255,255,0.72) 50%,
        transparent 100%
    );
    transform: skewX(-18deg);
    animation: logo-sheen 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: 50%;
    z-index: 10;
}

@keyframes logo-sheen {
    0%, 70%, 100% { left: -60%; opacity: 0; }
    10%           { opacity: 1; }
    40%           { left: 140%; opacity: 0; }
}

/* Logo text shimmer on hover */
.logo:hover .logo-text {
    background: linear-gradient(90deg, #0f172a, #0d9488, #14b8a6, #0d9488, #0f172a);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logo-text-shimmer 1.5s linear forwards;
}

@keyframes logo-text-shimmer {
    from { background-position: 200% center; }
    to   { background-position: -200% center; }
}


/* ═══════════════════════════════════════════════════════════════
   2. 3D CARD HOVER — perspective tilt (inspired by style39.css)
      The original uses WebGL model-viewer inside a tilting card.
      We adapt the perspective tilt + gradient sheen to product
      cards and category tiles using CSS variables set by JS.
   ═══════════════════════════════════════════════════════════════ */

/* Enable 3D perspective on card containers */
.shop-grid,
.categories-grid {
    perspective: 1200px;
}

/* Product cards */
.shop-card {
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
    transition: transform 0.12s linear, box-shadow 0.35s ease, border-color 0.3s ease;
    will-change: transform;
}

.shop-card:hover {
    /* Override style.css translateY(-5px) — keep 3D tilt + lift together */
    transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px) translateZ(4px) !important;
    box-shadow: 0 20px 60px rgba(13,148,136,0.18), 0 6px 18px rgba(0,0,0,0.1);
    border-color: rgba(13,148,136,0.2);
}

/* Sheen layer that follows mouse */
.shop-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(255,255,255,0.14) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
}

.shop-card:hover::before {
    opacity: 1;
}

/* Category tiles 3D tilt */
.category-tile {
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
    transition: transform 0.12s linear, box-shadow 0.35s ease;
    will-change: transform;
}

.category-tile:hover {
    /* Override style.css translateY(-6px) — keep 3D tilt + lift together */
    transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) translateZ(4px) !important;
    box-shadow: 0 24px 60px rgba(13,148,136,0.2), 0 6px 20px rgba(0,0,0,0.09);
}

.category-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(255,255,255,0.16) 0%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
}

.category-tile:hover::before {
    opacity: 1;
}


/* ═══════════════════════════════════════════════════════════════
   3. SIGNATURE PRODUCT BUTTON (inspired by style28.css)
      Original: vertical colored bars grow up/down with letter-
      spacing expansion and a glowing drop-shadow on hover.
      We adapt this to the CliniFlex "Shop Now" / signature
      product buttons.
   ═══════════════════════════════════════════════════════════════ */

/* Signature button — sweeping sheen on hover (CSS-only, no span injection) */
.sig-btn {
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    transition: letter-spacing 0.42s ease, filter 0.42s ease, box-shadow 0.35s ease !important;
}

/* White sheen stripe that sweeps left → right on hover — visible on any background */
.sig-btn::after {
    content: '';
    position: absolute;
    top: -15%;
    left: -130%;
    width: 60%;
    height: 130%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.38) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: left 0.62s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 5;
    border-radius: inherit;
}

.sig-btn:hover::after {
    left: 150%;
}

.sig-btn:hover {
    letter-spacing: 0.1em;
    filter: brightness(1.14) drop-shadow(0 0 14px rgba(13, 148, 136, 0.55));
    box-shadow: 0 8px 28px rgba(13, 148, 136, 0.42) !important;
    color: #fff !important;
}

/* CliniFlex signature elements — continuous ambient glow pulse */
.category-tile--cliniflex .cat-tile-link,
.hero-slide:first-child .btn.sig-btn {
    animation: sig-ambient 3s ease-in-out infinite;
}

@keyframes sig-ambient {
    0%, 100% { box-shadow: 0 4px 16px rgba(13,148,136,0.18); }
    50%       { box-shadow: 0 4px 26px rgba(13,148,136,0.48); }
}


/* ═══════════════════════════════════════════════════════════════
   4. TAB DESIGN — liquid glass sliding pill (inspired by style53.css)
      Original uses iOS-style glass morphism with floating blobs
      and a translucent pill that slides between tabs.
      We adapt this to the account modal tab bar & mobile tabs.
   ═══════════════════════════════════════════════════════════════ */

/* Account modal tabs — glass pill indicator */
.acct-tabs-bar {
    position: relative;
    background: rgba(248,250,252,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Sliding indicator (JS sets left + width via --tab-x/--tab-w) */
.acct-tabs-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--tab-x, 0px);
    width: var(--tab-w, 80px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), #14b8a6);
    transition: left 0.32s cubic-bezier(0.4,0,0.2,1), width 0.32s cubic-bezier(0.4,0,0.2,1);
    border-radius: 2px;
}

.acct-tab-btn {
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

.acct-tab-btn:hover:not(.active) {
    transform: translateY(-2px);
    color: var(--primary) !important;
}

.acct-tab-btn.active {
    border-bottom-color: transparent !important; /* Our custom ::before handles it */
}

.acct-tab-btn i {
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.acct-tab-btn.active i {
    transform: scale(1.2) translateY(-1px);
    color: var(--primary);
}

/* Mobile filter chips — sliding active highlight */
.shop-filters {
    position: relative;
}

.filter-btn {
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1) !important;
}

.filter-btn:hover {
    transform: translateY(-2px) scale(1.02) !important;
}

.filter-btn.active {
    animation: filter-pop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes filter-pop {
    0% { transform: scale(0.9); }
    70% { transform: scale(1.06); }
    100% { transform: scale(1); }
}


/* ═══════════════════════════════════════════════════════════════
   5. UPLOAD FILE ANIMATION (inspired by style24.css)
      Original: animated modal with dashed border, upload icon
      that bounces, and a progress animation.
      We adapt this to the embroidery logo upload input.
   ═══════════════════════════════════════════════════════════════ */

/* Transform the basic file input into an animated drop zone */
.upload-zone-anim {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 110px;
    border: 2px dashed var(--border-mid);
    border-radius: 12px;
    background: var(--bg-off);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    padding: 16px;
}

.upload-zone-anim::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13,148,136,0.04) 0%, rgba(20,184,166,0.02) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.upload-zone-anim:hover,
.upload-zone-anim.drag-over {
    border-color: var(--primary);
    background: rgba(13,148,136,0.04);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1), 0 4px 16px rgba(13,148,136,0.12);
}

.upload-zone-anim:hover::before,
.upload-zone-anim.drag-over::before {
    opacity: 1;
}

/* Animated border that sweeps around on drag-over */
.upload-zone-anim.drag-over {
    animation: upload-border-pulse 1.2s ease infinite;
}

@keyframes upload-border-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(13,148,136,0.1), 0 4px 16px rgba(13,148,136,0.12); }
    50%       { box-shadow: 0 0 0 6px rgba(13,148,136,0.18), 0 4px 20px rgba(13,148,136,0.22); }
}

/* Upload cloud icon */
.upload-icon-anim {
    font-size: 2rem;
    color: var(--primary);
    animation: upload-float 2.4s ease-in-out infinite;
    display: block;
    line-height: 1;
}

@keyframes upload-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

.upload-zone-anim.drag-over .upload-icon-anim {
    animation: upload-bounce 0.5s cubic-bezier(0.34,1.56,0.64,1) infinite alternate;
}

@keyframes upload-bounce {
    from { transform: translateY(0) scale(1); }
    to   { transform: translateY(-10px) scale(1.15); }
}

.upload-zone-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-mid);
    text-align: center;
}

.upload-zone-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

/* Hidden real file input overlays the zone */
.upload-zone-anim input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* Upload success animation */
.upload-zone-anim.upload-success {
    border-color: var(--green);
    background: rgba(16,185,129,0.04);
    animation: upload-success-flash 0.5s ease forwards;
}

@keyframes upload-success-flash {
    0%   { transform: scale(0.98); }
    50%  { transform: scale(1.02); }
    100% { transform: scale(1); }
}


/* ═══════════════════════════════════════════════════════════════
   6. RATING ANIMATION (inspired by style25.css)
      Original: SVG avatar that morphs facial features based on
      star rating using GSAP MorphSVG. We adapt the "stars pop
      and scale" transition concept without heavy dependencies.
   ═══════════════════════════════════════════════════════════════ */

/* Rating container in order details */
.order-rating-wrap {
    margin: 10px 0 6px;
    padding: 14px 14px;
    background: linear-gradient(135deg, rgba(245,158,11,0.06) 0%, rgba(251,191,36,0.02) 100%);
    border: 1.5px solid rgba(245,158,11,0.22);
    border-radius: 14px;
}
.order-rating-wrap.rated {
    background: linear-gradient(135deg, rgba(245,158,11,0.04), rgba(16,185,129,0.04));
}

.order-rating-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-mid);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-rating-title i { color: #f59e0b; }

/* Emoji display above stars */
.rating-emoji-row {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}
.rating-mood-big {
    font-size: 2rem;
    line-height: 1;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
    display: inline-block;
}
.rating-emoji-badge {
    font-size: 1.1rem;
    vertical-align: middle;
}

/* Star rating row */
.rating-stars-row {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

/* Individual interactive star */
.rating-star-anim {
    font-size: 1.7rem;
    color: #d1d5db;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), color 0.2s ease, filter 0.2s ease;
    display: inline-block;
    user-select: none;
    line-height: 1;
}

.rating-star-anim:hover,
.rating-star-anim.hovered {
    color: #fbbf24;
    transform: scale(1.35) rotate(-6deg);
    filter: drop-shadow(0 0 8px rgba(251,191,36,0.65));
}

.rating-star-anim.selected {
    color: #f59e0b;
    transform: scale(1.12);
    filter: drop-shadow(0 2px 6px rgba(245,158,11,0.45));
}

/* Pop animation when star is clicked */
.rating-star-anim.pop {
    animation: star-pop 0.45s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

@keyframes star-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.6) rotate(-8deg); }
    70%  { transform: scale(0.95) rotate(3deg); }
    100% { transform: scale(1.12); }
}

/* Static already-rated stars */
.rating-stars-display {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    margin-bottom: 6px;
}
.rating-star-done {
    font-size: 1.1rem;
    animation: star-reveal 0.4s ease both;
}
@keyframes star-reveal {
    from { opacity: 0; transform: scale(0.4) rotate(-20deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

.rating-label-done {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Rating label text (during selection) */
.rating-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    min-height: 1.2em;
    transition: color 0.2s ease;
    margin-bottom: 4px;
}

.rating-label.star-1 { color: #ef4444; }
.rating-label.star-2 { color: #f97316; }
.rating-label.star-3 { color: #eab308; }
.rating-label.star-4 { color: #84cc16; }
.rating-label.star-5 { color: #10b981; }

/* Submit rating button */
.rating-submit-btn {
    display: none;
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(245,158,11,0.3);
    letter-spacing: 0.02em;
}

.rating-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245,158,11,0.45);
}

.rating-submit-btn.visible {
    display: block;
    animation: fade-up-in 0.3s ease forwards;
}

/* Comment & image section */
.rating-extras {
    margin-top: 8px;
}

.rating-comment-input {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: inherit;
    color: var(--text-dark, #0f172a);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.rating-comment-input:focus { border-color: #f59e0b; }

.rating-img-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.rating-img-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.rating-img-btn:hover { border-color: #f59e0b; background: rgba(245,158,11,0.05); }

.rating-img-preview {
    display: flex;
    align-items: center;
    gap: 6px;
}
.rating-img-thumb {
    width: 48px;
    height: 36px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}
.rating-img-remove {
    width: 20px;
    height: 20px;
    border: none;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.rating-saved-comment {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--text-muted, #64748b);
    margin-top: 6px;
    line-height: 1.5;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}
.rating-saved-comment i { color: #d1d5db; margin-top: 2px; flex-shrink: 0; }

.order-rated-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16,185,129,0.1);
    color: #059669;
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-top: 10px;
}
.order-rated-badge.rating-celebrate {
    animation: rating-bounce-in 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes rating-bounce-in {
    0%   { opacity: 0; transform: scale(0.6); }
    60%  { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fade-up-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════════════
   7. SHARE ICON RADIAL MENU (inspired by style27.css)
      Original: circular radial menu that expands outward with
      scale animation and sequential delay.
      We adapt this to a post-order share button.
   ═══════════════════════════════════════════════════════════════ */

/* Share menu container */
.share-radial {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Central share toggle button */
.share-toggle {
    position: relative;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), #14b8a6);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 4px 18px rgba(13,148,136,0.4);
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
    z-index: 5;
}

.share-radial.open .share-toggle {
    transform: rotate(360deg);
    box-shadow: 0 6px 24px rgba(13,148,136,0.5), 0 0 0 3px rgba(13,148,136,0.15), 0 0 0 8px rgba(13,148,136,0.08);
}

/* Share social items */
.share-radial ul {
    position: absolute;
    list-style: none;
    padding: 0;
    margin: 0;
}

.share-radial li {
    position: absolute;
    left: 0;
    top: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(calc(360deg / var(--total, 5) * var(--i))) translateY(-80px);
    transform-origin: 26px 26px;
    scale: 0;
    transition: scale 0.4s cubic-bezier(0.34,1.56,0.64,1),
                opacity 0.3s ease;
    transition-delay: calc(0.06s * var(--i));
    opacity: 0;
}

.share-radial.open li {
    scale: 1;
    opacity: 1;
}

.share-radial li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.05rem;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease;
    transform: rotate(calc(-360deg / var(--total, 5) * var(--i)));
}

.share-radial li a:hover {
    transform: rotate(calc(-360deg / var(--total, 5) * var(--i))) scale(1.18);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Platform colours */
.share-whatsapp a { background: #25d366; }
.share-instagram a { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.share-facebook  a { background: #1877f2; }
.share-twitter   a { background: #000; }
.share-youtube   a { background: #ff0000; }
.share-copy      a { background: var(--navy); }

/* Label tooltip that appears on hover */
.share-radial li a::after {
    content: attr(data-label);
    position: absolute;
    background: rgba(15,23,42,0.88);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) rotate(calc(360deg / var(--total, 5) * var(--i)));
}

.share-radial li a:hover::after {
    opacity: 1;
}

/* Post-order share card */
.post-order-share {
    text-align: center;
    padding: 20px 16px;
    margin-top: 14px;
    background: linear-gradient(135deg, rgba(13,148,136,0.05) 0%, rgba(94,234,212,0.03) 100%);
    border: 1.5px solid rgba(13,148,136,0.15);
    border-radius: 16px;
    animation: fade-up-in 0.5s ease 0.3s both;
}

.post-order-share h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.post-order-share p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.post-order-share .share-radial {
    margin: 0 auto;
    /* Wider container to accommodate expanded radial */
    width: 200px;
    height: 200px;
}

.post-order-share .share-toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.post-order-share .share-radial.open .share-toggle {
    transform: translate(-50%, -50%) rotate(360deg);
}

.post-order-share .share-radial li {
    top: 50%;
    left: 50%;
    margin: -26px;
    transform: rotate(calc(360deg / var(--total, 5) * var(--i))) translateY(-72px);
    transform-origin: 26px 26px;
}


/* ═══════════════════════════════════════════════════════════════
   8. ADMIN SIDEBAR ANIMATION (inspired by style35.css)
      Original: sidebar collapses from 280px → 88px with smooth
      icon reveal and text fade. We adapt the transition timing
      and add hover pulse effects to the existing admin sidebar.
   ═══════════════════════════════════════════════════════════════ */

/* Smooth entrance for sidebar items */
.nav-item {
    transition: background 0.22s ease, color 0.22s ease,
                transform 0.22s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.22s ease !important;
}

.nav-item:hover {
    transform: translateX(3px) !important;
}

.nav-item.active {
    transform: translateX(3px) !important;
}

/* Icon micro-bounce on hover */
.nav-item i {
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
                background 0.2s ease, color 0.2s ease !important;
}

.nav-item:hover i {
    transform: scale(1.15) !important;
}

.nav-item.active i {
    transform: scale(1.1) !important;
    animation: nav-icon-glow 2s ease-in-out infinite;
}

@keyframes nav-icon-glow {
    0%, 100% { box-shadow: none; }
    50%       { box-shadow: 0 0 14px rgba(13,148,136,0.45); }
}

/* Staggered entrance when admin page loads — forwards fill keeps items visible */
.sidebar .nav-item {
    opacity: 0;
    transform: translateX(-28px);
    animation: nav-item-enter 0.55s cubic-bezier(0.16,1,0.3,1) both;
    animation-fill-mode: forwards;
}

.sidebar .nav-item:nth-child(1)  { animation-delay: 0.05s; }
.sidebar .nav-item:nth-child(2)  { animation-delay: 0.12s; }
.sidebar .nav-item:nth-child(3)  { animation-delay: 0.19s; }
.sidebar .nav-item:nth-child(4)  { animation-delay: 0.26s; }
.sidebar .nav-item:nth-child(5)  { animation-delay: 0.32s; }
.sidebar .nav-item:nth-child(6)  { animation-delay: 0.38s; }
.sidebar .nav-item:nth-child(7)  { animation-delay: 0.43s; }
.sidebar .nav-item:nth-child(8)  { animation-delay: 0.47s; }
.sidebar .nav-item:nth-child(n+9){ animation-delay: 0.50s; }

@keyframes nav-item-enter {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Active nav badge pulse */
.nav-badge {
    animation: badge-pulse 2.2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}


/* ═══════════════════════════════════════════════════════════════
   9. MOBILE MENU — Complete redesign
      The reference image shows a right-side drawer with plain
      white background and basic rows. We redesign it as a full-
      screen overlay with a rich dark teal gradient, icons for
      each link, staggered entrance animations, and a modern
      close button.
   ═══════════════════════════════════════════════════════════════ */

/* ── Mobile drawer variables ── */
:root {
    --mobile-menu-bg-1: #0a1628;
    --mobile-menu-bg-2: #083534;
    --mobile-menu-accent: #0d9488;
    --mobile-menu-text: rgba(255,255,255,0.92);
    --mobile-menu-muted: rgba(255,255,255,0.52);
}

@media (max-width: 768px) {

    /* Fullscreen overlay instead of right drawer */
    .nav-links {
        inset: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;

        /* Rich dark gradient */
        background:
            radial-gradient(ellipse 80% 50% at 10% 10%, rgba(13,148,136,0.22) 0%, transparent 65%),
            radial-gradient(ellipse 60% 40% at 90% 90%, rgba(13,148,136,0.12) 0%, transparent 55%),
            linear-gradient(160deg, var(--mobile-menu-bg-1) 0%, var(--mobile-menu-bg-2) 100%) !important;

        /* Slide in from right */
        transform: translateX(100%) !important;
        transition: transform 0.4s cubic-bezier(0.16,1,0.3,1) !important;

        /* Layout */
        padding: 0 !important;
        gap: 0 !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        overflow-y: auto !important;
        overscroll-behavior: contain !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .nav-links.active {
        transform: translateX(0) !important;
    }

    /* ── Menu header bar ── */
    .nav-links::before {
        content: '';
        display: block;
        height: 72px;
        flex-shrink: 0;
        background: rgba(0,0,0,0.18);
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    /* ── List items — full width rows ── */
    .nav-links > li {
        width: 100% !important;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        opacity: 0;
        /* No translateX: nested GPU transforms (drawer + item) cause blurry
           text rendering on mobile Chrome/Safari. Fade-in only is crisp. */
        animation: mobile-item-in 0.45s cubic-bezier(0.16,1,0.3,1) forwards;
    }

    .nav-links > li:nth-child(1) { animation-delay: 0.10s; }
    .nav-links > li:nth-child(2) { animation-delay: 0.16s; }
    .nav-links > li:nth-child(3) { animation-delay: 0.22s; }
    .nav-links > li:nth-child(4) { animation-delay: 0.28s; }
    .nav-links > li:nth-child(5) { animation-delay: 0.34s; }
    .nav-links > li:nth-child(6) { animation-delay: 0.40s; }
    .nav-links > li:nth-child(n+7) { animation-delay: 0.46s; }

    @keyframes mobile-item-in {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    /* Crisp text on dark background */
    .nav-links {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* ── Nav link rows ── */
    .nav-links > li > a {
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        padding: 18px 24px !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: none !important;
        color: var(--mobile-menu-text) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        letter-spacing: 0.02em;
        transition: background 0.2s ease, color 0.2s ease, padding 0.2s ease !important;
    }

    .nav-links > li > a:hover {
        background: rgba(13,148,136,0.12) !important;
        color: #5eead4 !important;
        padding-left: 30px !important;
    }

    /* Active page link */
    .nav-links > li > a.active {
        color: #5eead4 !important;
        background: rgba(13,148,136,0.16) !important;
        position: relative;
    }

    .nav-links > li > a.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(180deg, #5eead4, #0d9488);
        border-radius: 0 3px 3px 0;
    }

    /* CliniFlex special row */
    .nav-links > li > a.nav-cliniflex {
        color: #5eead4 !important;
    }

    .nav-links > li > a.nav-cliniflex .scrub-brand-text {
        -webkit-text-fill-color: #5eead4 !important;
        background: none !important;
        animation: none !important;
    }

    /* Nav arrow chevron in mobile */
    .nav-links .nav-arrow {
        color: var(--mobile-menu-muted);
        font-size: 0.7rem;
        transition: transform 0.25s ease !important;
    }

    .nav-dropdown.open .nav-arrow,
    .nav-cliniflex-dropdown.open .nav-arrow {
        transform: rotate(180deg) !important;
        color: #5eead4;
    }

    /* ── Mega-menu inside drawer ── */
    .mega-menu {
        background: rgba(0,0,0,0.25) !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
        border-top: 1px solid rgba(255,255,255,0.07) !important;
        border-bottom: 1px solid rgba(255,255,255,0.07) !important;
    }

    /* ── Mega-col category accordion ── */
    /* Hide the decorative thumb icon — not needed in accordion */
    .mega-col-thumb { display: none !important; }

    /* Each category heading acts as an accordion toggle */
    .mega-col {
        border-bottom: 1px solid rgba(255,255,255,0.07) !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
    .mega-col:last-child { border-bottom: none !important; }

    .mega-col h4 {
        cursor: pointer;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 16px !important;
        margin: 0 !important;
        color: rgba(255,255,255,0.88) !important;
        font-size: 0.93rem !important;
        font-weight: 700 !important;
        background: transparent !important;
        border-radius: 0 !important;
        transition: color 0.2s ease, background 0.2s ease !important;
        user-select: none;
    }
    .mega-col h4 a {
        color: inherit !important;
        pointer-events: none; /* tap handled by h4, not link */
        flex: 1;
    }
    /* Chevron icon */
    .mega-col h4::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.65rem;
        color: rgba(255,255,255,0.4);
        transition: transform 0.25s ease;
        flex-shrink: 0;
        margin-left: 10px;
    }
    .mega-col.mega-open > h4 {
        color: #5eead4 !important;
        background: rgba(13,148,136,0.15) !important;
    }
    .mega-col.mega-open > h4::after {
        transform: rotate(180deg);
        color: #5eead4;
    }

    /* Items hidden by default; shown when col is open */
    .mega-col ul {
        display: none !important;
        padding: 4px 16px 10px !important;
        margin: 0 !important;
    }
    .mega-col.mega-open ul { display: block !important; }

    /* Sub-items (Full Sleeve, Half Sleeve) hidden on mobile */
    .mega-sub-item { display: none !important; }

    /* Style the visible main-category links */
    .mega-col.mega-open ul li a {
        padding: 10px 10px !important;
        color: rgba(255,255,255,0.75) !important;
        font-size: 0.9rem !important;
        display: block;
        border-radius: 8px;
    }
    .mega-col.mega-open ul li a:hover,
    .mega-col.mega-open ul li a:active {
        color: #5eead4 !important;
        background: rgba(13,148,136,0.15) !important;
    }

    /* CliniFlex dropdown in drawer */
    .cliniflex-dropdown {
        background: rgba(0,0,0,0.25) !important;
        border-radius: 0 !important;
        border-top: 1px solid rgba(255,255,255,0.07) !important;
        margin-top: 0 !important;
    }

    .cliniflex-dropdown a {
        color: rgba(255,255,255,0.75) !important;
    }

    .cliniflex-dropdown a:hover {
        color: #5eead4 !important;
        background: rgba(13,148,136,0.15) !important;
    }

    /* ── Bottom fade decoration ── */
    .nav-links::after {
        content: '';
        display: block;
        flex-shrink: 0;
        height: 80px;
        background: linear-gradient(to top, rgba(13,148,136,0.08) 0%, transparent 100%);
        pointer-events: none;
    }
}

/* ── Hamburger → X animation overrides ── */
@media (max-width: 768px) {
    .hamburger {
        background: rgba(255,255,255,0.9) !important;
        border: 1.5px solid rgba(255,255,255,0.5) !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        width: 36px !important;
        height: 36px !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 4px !important;
        transition: all 0.3s ease !important;
    }

    .hamburger span {
        width: 16px !important;
        height: 2px !important;
        background: var(--text) !important;
        border-radius: 2px !important;
        transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
        transform-origin: center !important;
    }

    .hamburger.active {
        background: rgba(13,148,136,0.15) !important;
        border-color: rgba(13,148,136,0.4) !important;
    }

    .hamburger.active span {
        background: var(--primary) !important;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(6px) !important;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0 !important;
        transform: scaleX(0) !important;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-6px) !important;
    }
}

/* Backdrop overlay behind the full-screen menu */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,22,40,0.65);
    /* No backdrop-filter blur: it paints over #header (z-index:1000) because
       backdrop z-index (9998) > header z-index (1000), causing the blur to
       cover the nav-links inside #header — making nav text appear blurry. */
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.visible {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 768px) {
    .mobile-nav-backdrop {
        display: block;
    }
}


/* ═══════════════════════════════════════════════════════════════
   10. MICRO-INTERACTION ENHANCEMENTS
       Additional polish for buttons, icons, forms, cards.
   ═══════════════════════════════════════════════════════════════ */

/* ── Button press feedback ── */
.btn:active {
    transform: translateY(1px) scale(0.98) !important;
    transition: transform 0.08s ease !important;
}

/* ── Nav icon buttons pulse on click ── */
.nav-icon-btn:active {
    transform: scale(0.9) !important;
    transition: transform 0.1s ease !important;
}

/* ── Cart count badge entrance ── */
.cart-count {
    animation: badge-pop-in 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes badge-pop-in {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}

/* ── Search overlay backdrop blur entrance ── */
.search-overlay.active {
    animation: overlay-in 0.25s ease both;
}

@keyframes overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Cart drawer entrance ── */
.cart-drawer.open {
    animation: cart-slide-in 0.35s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes cart-slide-in {
    from { right: -400px; opacity: 0.5; }
    to   { right: 0; opacity: 1; }
}

/* ── Wishlist heart beat on like ── */
.shop-card-wishlist.liked i {
    animation: heart-beat 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes heart-beat {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.45); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* ── Section reveal stagger improvements ── */
.reveal-stagger.active > * {
    animation: reveal-stagger-in 0.55s cubic-bezier(0.16,1,0.3,1) both;
}

.reveal-stagger.active > *:nth-child(1) { animation-delay: 0s; }
.reveal-stagger.active > *:nth-child(2) { animation-delay: 0.07s; }
.reveal-stagger.active > *:nth-child(3) { animation-delay: 0.12s; }
.reveal-stagger.active > *:nth-child(4) { animation-delay: 0.17s; }
.reveal-stagger.active > *:nth-child(5) { animation-delay: 0.22s; }

@keyframes reveal-stagger-in {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Form field focus glow ── */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(13,148,136,0.12) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* ── Smooth image hover zoom for about/service images ── */
.about-img-card, .service-card {
    overflow: hidden;
}

/* ── Stat counter animate on reveal ── */
.stat-number {
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

/* ── Preloader fade animation enhancement ── */
#preloader {
    transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), visibility 0.6s ease !important;
}

/* ── Footer link hover ── */
.footer-link:hover {
    transform: translateX(4px);
    color: #5eead4 !important;
}

/* ── Mobile bottom nav pill indicator (existing bottom nav) ── */
.bnav-item.active .bnav-icon {
    animation: bnav-bounce 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes bnav-bounce {
    0%   { transform: translateY(0) scale(1); }
    40%  { transform: translateY(-6px) scale(1.15); }
    70%  { transform: translateY(1px) scale(0.95); }
    100% { transform: translateY(0) scale(1); }
}


/* ═══════════════════════════════════════════════════════════════
   11. LOADING SKELETON (for lazy-loaded content)
   ═══════════════════════════════════════════════════════════════ */
.skeleton {
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 200% auto;
    animation: skeleton-shimmer 1.4s linear infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    from { background-position: 200% center; }
    to   { background-position: -200% center; }
}


/* ═══════════════════════════════════════════════════════════════
   12. SECTION TITLE ANIMATED GRADIENT UNDERLINE
       A teal gradient bar sweeps in from left when the section
       enters the viewport (relies on .active class added by
       the existing revealElements() in script.js).
   ═══════════════════════════════════════════════════════════════ */

.section-title {
    position: relative;
    display: inline-block;
}

/* Default: centered underline (most section headers are text-center) */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, #14b8a6 50%, #5eead4 100%);
    border-radius: 4px;
    transform: translateX(-50%);
    transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

/* Trigger: parent .reveal gets .active when in viewport */
.reveal.active .section-title::after,
.section-header.active .section-title::after {
    width: 55%;
}

/* Left-aligned headings (why-us section, about page) */
.why-us-content .section-title::after,
.about-text-col .section-title::after {
    left: 0;
    transform: none;
}

.why-us-content .reveal.active .section-title::after,
.about-text-col .reveal.active .section-title::after {
    width: 60%;
}

/* On dark backgrounds (testimonials) */
.testimonials-v2 .section-title::after {
    background: linear-gradient(90deg, #5eead4 0%, rgba(94,234,212,0.4) 100%);
}

/* Ensure inline section-title keeps relative positioning correctly */
.section-title .gradient-text { position: relative; z-index: 1; }


/* ═══════════════════════════════════════════════════════════════
   13. WHATSAPP FLOATING BUTTON — MULTI-RING RIPPLE
       Three expanding rings pulse out from the button to draw
       attention without being distracting.
   ═══════════════════════════════════════════════════════════════ */

.whatsapp-float {
    position: relative;
}

.whatsapp-float::before,
.whatsapp-float::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.55);
    animation: wa-ripple 2.2s ease-out infinite;
    z-index: -1;
}

.whatsapp-float::after {
    background: rgba(37, 211, 102, 0.35);
    animation-delay: 0.7s;
}

@keyframes wa-ripple {
    0%   { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Chatbot toggle rings */
.chatbot-toggle {
    position: relative;
}

.chatbot-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.45);
    animation: wa-ripple 2.8s ease-out infinite 1.1s;
    z-index: -1;
}


/* ═══════════════════════════════════════════════════════════════
   14. STATS SECTION — GRADIENT NUMBER FILL
       Numbers in the stats strip get a gradient color when they
       are counted up (JS adds .counting class during animation).
   ═══════════════════════════════════════════════════════════════ */

.stat-number {
    background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 60%, #5eead4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

/* Subtle scale-up during counting */
.stat-number.counting {
    animation: stat-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stat-pop {
    0%   { transform: scale(0.92); }
    60%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}


/* ═══════════════════════════════════════════════════════════════
   15. HERO SCROLL-DOWN INDICATOR
       An animated bouncing chevron appears at the bottom of the
       hero section to invite users to scroll.
   ═══════════════════════════════════════════════════════════════ */

.hero-scroll-indicator {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.72;
    animation: scroll-fade-in 1s ease 2s both;
    cursor: pointer;
    text-decoration: none;
}

.hero-scroll-indicator span {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.hero-scroll-indicator i {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    animation: scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(7px); }
}

@keyframes scroll-fade-in {
    from { opacity: 0; transform: translateX(-50%) translateY(12px); }
    to   { opacity: 0.72; transform: translateX(-50%) translateY(0); }
}

@media (max-width: 768px) {
    .hero-scroll-indicator { display: none; }
}


/* ═══════════════════════════════════════════════════════════════
   16. PRODUCT CARD — AURORA GLOW ON HOVER
       A soft rainbow-tinted halo appears around the card on
       hover, giving a premium "aurora borealis" depth effect.
   ═══════════════════════════════════════════════════════════════ */

.shop-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(
        from 180deg at 50% 50%,
        rgba(13, 148, 136, 0) 0deg,
        rgba(13, 148, 136, 0.18) 60deg,
        rgba(94, 234, 212, 0.25) 120deg,
        rgba(99, 102, 241, 0.15) 180deg,
        rgba(13, 148, 136, 0.18) 240deg,
        rgba(13, 148, 136, 0) 360deg
    );
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: -1;
    filter: blur(6px);
    pointer-events: none;
}

.shop-card:hover::after {
    opacity: 1;
    animation: aurora-rotate 4s linear infinite;
}

@keyframes aurora-rotate {
    from { filter: blur(6px) hue-rotate(0deg); }
    to   { filter: blur(6px) hue-rotate(60deg); }
}


/* ═══════════════════════════════════════════════════════════════
   17. HERO TRUST BADGE — STAGGERED FLOAT
       Each trust badge item floats at a different rate for a
       lively, depth-filled feeling.
   ═══════════════════════════════════════════════════════════════ */

.hero-trust .trust-item {
    animation: trust-float 3.5s ease-in-out infinite;
}

.hero-trust .trust-item:nth-child(2) { animation-delay: 0.5s; }
.hero-trust .trust-item:nth-child(3) { animation-delay: 1.0s; }

@keyframes trust-float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-4px); }
}


/* ═══════════════════════════════════════════════════════════════
   18. TESTIMONIAL SWIPER CARDS — GLASS DEPTH EFFECT
       Cards in the dark testimonials section get a multi-layer
       glass appearance with a glowing accent edge on the active
       slide.
   ═══════════════════════════════════════════════════════════════ */

.testimonials-v2 .swiper-slide-active .testimonial-card {
    border-color: rgba(94, 234, 212, 0.4) !important;
    box-shadow:
        0 0 0 1px rgba(94, 234, 212, 0.2),
        0 16px 48px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.testimonials-v2 .swiper-slide:not(.swiper-slide-active) .testimonial-card {
    opacity: 0.78;
    transform: scale(0.97);
    transition: transform 0.4s ease, opacity 0.4s ease;
}


/* ═══════════════════════════════════════════════════════════════
   19. SCROLL PROGRESS BAR — GRADIENT UPGRADE
       Replace the existing monochrome bar with a flowing
       gradient that shifts as the user scrolls.
   ═══════════════════════════════════════════════════════════════ */

.scroll-progress {
    background: linear-gradient(90deg,
        #0d9488 0%,
        #14b8a6 40%,
        #5eead4 70%,
        #6366f1 100%) !important;
    box-shadow: 0 0 8px rgba(13, 148, 136, 0.5) !important;
}


/* ═══════════════════════════════════════════════════════════════
   20. MEGA MENU — ENHANCED GLASS BACKDROP + STAGGER
       Categories dropdown menu gets a very subtle frosted-glass
       look on the background and staggered children entrance.
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 769px) {
    .nav-dropdown:hover .mega-menu {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    /* Stagger the columns when mega menu appears */
    .mega-menu-inner > .mega-col {
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-dropdown:hover .mega-menu-inner > .mega-col:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.06s; }
    .nav-dropdown:hover .mega-menu-inner > .mega-col:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
    .nav-dropdown:hover .mega-menu-inner > .mega-col:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.18s; }
    .nav-dropdown:hover .mega-menu-inner > .mega-col:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.24s; }
}


/* ═══════════════════════════════════════════════════════════════
   21. FOCUS-VISIBLE RING — ACCESSIBILITY + MODERN LOOK
       Modern browsers support :focus-visible for keyboard
       navigation. Add a teal ring that only shows on keyboard.
   ═══════════════════════════════════════════════════════════════ */

:focus-visible {
    outline: 2px solid rgba(13, 148, 136, 0.7) !important;
    outline-offset: 3px !important;
    border-radius: var(--radius-sm) !important;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(13, 148, 136, 0.7) !important;
    outline-offset: 3px !important;
}


/* ═══════════════════════════════════════════════════════════════
   22. HERO PRODUCT IMAGE — FLOATING 3D DEPTH ORBS
       Decorative gradient orbs behind the hero product image
       add visual depth and a modern editorial look.
       Uses isolation:isolate to self-contain the stacking context
       so the orbs NEVER paint over the hero text column.
   ═══════════════════════════════════════════════════════════════ */

/* Isolate the hero-prod-img stacking context so orbs stay inside it */
.hero-prod-img {
    isolation: isolate;
}

.hero-prod-img::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.22) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(30px);
    animation: orb-pulse 5s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.hero-prod-img::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
    bottom: 30px;
    right: 20px;
    filter: blur(20px);
    animation: orb-drift 4s ease-in-out infinite 1.5s;
    pointer-events: none;
    z-index: -1;
}

@keyframes orb-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50%       { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

@keyframes orb-drift {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50%       { transform: translateY(-12px) scale(1.1); opacity: 1; }
}


/* ═══════════════════════════════════════════════════════════════
   23. CART DRAWER — GLASSMORPHISM HEADER
       The cart header gets a frosted glass look that feels
       premium and modern.
   ═══════════════════════════════════════════════════════════════ */

.cart-header {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}


/* ═══════════════════════════════════════════════════════════════
   24. BADGE / STOCK STATUS — PULSE GLOW
       NEW and SALE badges emit a gentle pulse glow to catch
       the eye without being jarring.
   ═══════════════════════════════════════════════════════════════ */

.product-badge,
.badge-new,
.badge-sale,
.shop-badge {
    animation: badge-glow 2.5s ease-in-out infinite !important;
}

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 0 0 0 currentColor; }
    50%       { box-shadow: 0 0 8px 2px currentColor; }
}


/* ═══════════════════════════════════════════════════════════════
   25. REDUCE-MOTION ADDITIONS — safety for new animations
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .hero-scroll-indicator i,
    .hero-trust .trust-item,
    .hero-prod-img::before,
    .hero-prod-img::after,
    .whatsapp-float::before,
    .whatsapp-float::after,
    .chatbot-toggle::before,
    .shop-card::after,
    .stat-number,
    .section-title::after,
    .testimonials-v2 .swiper-slide-active .testimonial-card,
    .product-badge, .badge-new, .badge-sale, .shop-badge {
        animation: none !important;
        transition: none !important;
    }
    .hero-scroll-indicator { display: none; }
    .section-title::after { width: 55% !important; }
}


/* ═══════════════════════════════════════════════════════════════
   26. SCROLL REVEAL — elements animate in as they enter viewport
   ═══════════════════════════════════════════════════════════════ */
.ssr {
    opacity: 0;
    transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.ssr.ssr-up    { transform: translateY(28px); }
.ssr.ssr-left  { transform: translateX(-32px); }
.ssr.ssr-right { transform: translateX(32px); }
.ssr.ssr-scale { transform: scale(0.90); }
.ssr.ssr-done  { opacity: 1 !important; transform: none !important; }

/* Stagger delays — applied per child index in JS */
.ssr.ssr-d1 { transition-delay: 0.06s; }
.ssr.ssr-d2 { transition-delay: 0.12s; }
.ssr.ssr-d3 { transition-delay: 0.18s; }
.ssr.ssr-d4 { transition-delay: 0.24s; }
.ssr.ssr-d5 { transition-delay: 0.30s; }
.ssr.ssr-d6 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
    .ssr { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* ═══════════════════════════════════════════════════════════════
   27. MOBILE TOUCH IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Remove browser tap flash on all interactive elements */
* { -webkit-tap-highlight-color: transparent; }

/* Tactile press-down on touch devices */
@media (hover: none) and (pointer: coarse) {
    .shop-card:active,
    .category-tile:active {
        transform: scale(0.97) !important;
        transition: transform 0.1s ease !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    }
    .hiw-step:active {
        transform: scale(0.97) !important;
        transition: transform 0.1s ease !important;
    }
    .btn:active {
        transform: scale(0.95) !important;
        transition: transform 0.08s ease !important;
    }
    .nav-icon-btn:active,
    .bottom-nav-item:active {
        transform: scale(0.88) !important;
        transition: transform 0.08s ease !important;
    }
    .trust-strip-item:active { opacity: 0.7; }
}

