/*
Theme Name: BUBBLE Custom
Theme URI: https://bubblekrd.local
Author: BUBBLE
Description: Trilingual (Kurdish Sorani RTL / Arabic RTL / English LTR) international cleaning brand theme for BUBBLE.
Version: 2.1.0
Text Domain: bubble-custom
*/

@font-face {
    font-family: "NRT";
    src: url("assets/fonts/NRT-Reg.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "NRT";
    src: url("assets/fonts/NRT-Bd.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bubble-primary: #0879e8;
    --bubble-accent: #0ea5a4;
    --bubble-dark-bg: #0b1524;
    --bubble-base-size: 16px;
    --bubble-heading-scale: 1;
    --bubble-header-logo-h: 52px;
    --bubble-footer-logo-h: 58px;

    --bg: #f7fafc;
    --surface: #ffffff;
    --surface-alt: #eef4fa;
    --ink: #0f172a;
    --muted: #475569;
    --line: #e2e8f0;
    --header-bg: rgba(255, 255, 255, 0.86);
    --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.10);
    --radius: 22px;
    --radius-sm: 12px;
}

html[data-theme="dark"] {
    --bg: var(--bubble-dark-bg);
    --surface: #122036;
    --surface-alt: #192b47;
    --ink: #f1f5f9;
    --muted: #94a3b8;
    --line: #233754;
    --header-bg: rgba(11, 21, 36, 0.86);
    --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 24px 54px rgba(0, 0, 0, 0.42);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: var(--bubble-base-size);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.25s ease, color 0.25s ease;
}

html[lang="ar"] body,
html[lang="ckb"] body {
    font-family: "NRT", "Tahoma", "Segoe UI", "Arial", sans-serif;
    font-weight: 400;
    line-height: 1.85;
}

html[lang="ar"] :is(h1, h2, h3, h4, .bubble-nav a, .bubble-btn, .bubble-pill-btn, .bubble-filter-btn, .bubble-var-pill, .bubble-kicker),
html[lang="ckb"] :is(h1, h2, h3, h4, .bubble-nav a, .bubble-btn, .bubble-pill-btn, .bubble-filter-btn, .bubble-var-pill, .bubble-kicker) {
    font-family: "NRT", "Tahoma", "Segoe UI", "Arial", sans-serif;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid var(--bubble-primary);
    outline-offset: 3px;
}

.bubble-wrap {
    width: min(1240px, 92%);
    margin-inline: auto;
}

.bubble-skip {
    position: absolute;
    inset-inline-start: 1rem;
    top: -120px;
    z-index: 100;
    padding: 0.7rem 1.2rem;
    background: var(--bubble-primary);
    color: #fff;
    border-radius: 99px;
    font-weight: 700;
}
.bubble-skip:focus {
    top: 1rem;
}

/* Header */
.bubble-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.bubble-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 78px;
}

.bubble-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.bubble-brand img {
    height: var(--bubble-header-logo-h);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(8, 121, 232, 0.22));
    transition: transform 0.3s ease;
}
.bubble-brand:hover img {
    transform: scale(1.04);
}

.bubble-nav ul {
    display: flex;
    align-items: center;
    gap: 1.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bubble-nav a {
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--muted);
    padding-block: 0.35rem;
    position: relative;
    transition: color 0.2s ease;
}

.bubble-nav a:hover,
.bubble-nav a.is-active {
    color: var(--bubble-primary);
}

.bubble-header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.bubble-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    border-radius: 99px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.bubble-pill-btn:hover {
    border-color: var(--bubble-primary);
    transform: translateY(-1px);
}

.bubble-mobile-toggle {
    display: none;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Buttons */
.bubble-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.82rem 1.5rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.96rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.bubble-btn-primary {
    background: var(--bubble-primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(8, 121, 232, 0.25);
}

.bubble-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(8, 121, 232, 0.34);
}

.bubble-btn-outline {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}

.bubble-btn-outline:hover {
    border-color: var(--bubble-primary);
    color: var(--bubble-primary);
}

/* Hero Section + Animated BUBBLE Logo */
.bubble-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(3rem, 7vw, 6.2rem);
    background: radial-gradient(circle at 18% 20%, rgba(8, 121, 232, 0.12), transparent 52%),
                radial-gradient(circle at 82% 80%, rgba(14, 165, 164, 0.12), transparent 48%),
                var(--bg);
}

.bubble-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.bubble-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.85rem;
    border-radius: 99px;
    background: rgba(8, 121, 232, 0.10);
    color: var(--bubble-primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[lang="ar"] .bubble-kicker,
html[lang="ckb"] .bubble-kicker {
    letter-spacing: 0;
    text-transform: none;
}

.bubble-hero h1 {
    margin: 1rem 0 0;
    font-size: calc(clamp(2.2rem, 4.8vw, 3.9rem) * var(--bubble-heading-scale));
    line-height: 1.12;
    font-weight: 850;
    letter-spacing: -0.03em;
}

html[lang="ar"] .bubble-hero h1,
html[lang="ckb"] .bubble-hero h1 {
    letter-spacing: 0;
    line-height: 1.35;
    font-weight: 700;
}

/* Language Dropdown */
.bubble-lang-dropdown {
    position: relative;
}

.bubble-lang-trigger {
    gap: 0.45rem;
}

.bubble-lang-chevron {
    font-size: 0.72rem;
    opacity: 0.75;
    transition: transform 0.2s ease;
}

.bubble-lang-dropdown.is-open .bubble-lang-chevron {
    transform: rotate(180deg);
}

.bubble-lang-menu {
    position: absolute;
    top: calc(100% + 0.45rem);
    inset-inline-end: 0;
    min-width: 150px;
    padding: 0.4rem;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    z-index: 80;
}

.bubble-lang-dropdown.is-open .bubble-lang-menu {
    display: flex;
}

.bubble-lang-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    transition: background 0.18s ease, color 0.18s ease;
}

.bubble-lang-option:hover,
.bubble-lang-option.is-current {
    background: var(--surface-alt);
    color: var(--bubble-primary);
}

.bubble-hero-sub {
    margin: 1.2rem 0 1.85rem;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    max-width: 58ch;
}

.bubble-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.bubble-logo-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(290px, 34vw, 430px);
    border-radius: 34px;
    background: radial-gradient(circle at 50% 45%, rgba(8, 121, 232, 0.18), rgba(14, 165, 164, 0.06) 60%, transparent 75%),
                var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    padding: 2rem;
}

.bubble-logo-glow {
    position: relative;
    z-index: 2;
    max-width: 82%;
    filter: drop-shadow(0 16px 34px rgba(8, 121, 232, 0.30));
    animation: bubbleFloat 5.5s ease-in-out infinite;
}

.bubble-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(8, 121, 232, 0.22) 60%, rgba(8, 121, 232, 0.05));
    border: 1px solid rgba(8, 121, 232, 0.24);
    pointer-events: none;
    animation: orbRise 8s ease-in-out infinite;
}

.bubble-orb-1 { width: 58px; height: 58px; top: 14%; inset-inline-start: 12%; animation-delay: 0s; }
.bubble-orb-2 { width: 34px; height: 34px; bottom: 18%; inset-inline-start: 20%; animation-delay: 1.5s; }
.bubble-orb-3 { width: 74px; height: 74px; bottom: 12%; inset-inline-end: 10%; animation-delay: 2.5s; }
.bubble-orb-4 { width: 26px; height: 26px; top: 20%; inset-inline-end: 18%; animation-delay: 3.4s; }

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-9px); }
}

@keyframes orbRise {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.72; }
    50% { transform: translateY(-16px) scale(1.06); opacity: 1; }
}

/* Sections */
.bubble-section {
    padding-block: clamp(3rem, 6vw, 5.2rem);
}

.bubble-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.bubble-section-head h2 {
    margin: 0.45rem 0 0;
    font-size: calc(clamp(1.65rem, 3.2vw, 2.55rem) * var(--bubble-heading-scale));
    line-height: 1.2;
}

.bubble-section-head p {
    margin: 0.45rem 0 0;
    color: var(--muted);
    max-width: 58ch;
}

/* Categories Grid */
.bubble-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.bubble-cat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.35rem;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--cat-accent, var(--bubble-primary));
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bubble-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bubble-cat-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.08rem;
}

.bubble-cat-card p {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.bubble-cat-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cat-accent, var(--bubble-primary));
}

/* Dedicated Product Showcase Sections */
.bubble-showcase-stack {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.bubble-product-showcase {
    --prod-accent: var(--bubble-primary);
    --prod-tint: var(--surface-alt);
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(1.4rem, 3.5vw, 2.6rem);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .bubble-product-showcase {
    --prod-tint: rgba(255, 255, 255, 0.04);
}

.bubble-product-showcase:nth-child(even) .bubble-showcase-media {
    order: 2;
}

.bubble-showcase-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 45%, var(--prod-tint), transparent 78%), var(--surface-alt);
    padding: 1.5rem;
    overflow: hidden;
}

.bubble-showcase-media img {
    max-height: 360px;
    width: auto;
    object-fit: contain;
    transition: transform 0.32s ease, opacity 0.22s ease;
}

.bubble-product-showcase:hover .bubble-showcase-media img {
    transform: scale(1.03);
}

.bubble-showcase-info h3 {
    margin: 0.5rem 0 0.65rem;
    font-size: calc(clamp(1.4rem, 2.4vw, 2rem) * var(--bubble-heading-scale));
    line-height: 1.25;
}

.bubble-showcase-desc {
    color: var(--muted);
    margin: 0 0 1.2rem;
}

.bubble-variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.3rem;
}

.bubble-var-pill {
    padding: 0.36rem 0.78rem;
    border-radius: 99px;
    border: 1px solid var(--line);
    background: var(--surface-alt);
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bubble-var-pill.is-active,
.bubble-var-pill:hover {
    background: var(--prod-accent);
    border-color: var(--prod-accent);
    color: #fff;
}

.bubble-active-variant-caption {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--prod-accent);
    margin-bottom: 1rem;
}

/* Catalog Grid & Filters */
.bubble-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 2rem;
}

.bubble-filter-btn {
    padding: 0.48rem 1rem;
    border-radius: 99px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bubble-filter-btn.is-active,
.bubble-filter-btn:hover {
    background: var(--bubble-primary);
    border-color: var(--bubble-primary);
    color: #fff;
}

.bubble-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.bubble-card {
    --prod-accent: var(--bubble-primary);
    --prod-tint: var(--surface-alt);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bubble-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.bubble-card-media {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1.15;
    min-height: 220px;
    padding: 1.25rem;
    background: radial-gradient(circle, var(--prod-tint), transparent 80%), var(--surface-alt);
}

html[data-theme="dark"] .bubble-card-media {
    background: var(--surface-alt);
}

.bubble-card-media img {
    height: 220px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.bubble-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}

.bubble-card-body h3 {
    margin: 0.35rem 0 0.5rem;
    font-size: 1.14rem;
}

.bubble-card-body p {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.9rem;
    flex: 1;
}

.bubble-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
    font-weight: 700;
}

/* Single Product Page */
.bubble-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
}

.bubble-single-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.8rem, 4vw, 3.8rem);
    align-items: start;
}

.bubble-single-gallery {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.bubble-single-main-img {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background: var(--surface-alt);
    padding: 1.5rem;
}

.bubble-single-main-img img {
    max-height: 440px;
    width: auto;
    object-fit: contain;
}

.bubble-thumb-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.bubble-thumb-btn {
    width: 68px;
    height: 68px;
    padding: 0.35rem;
    border-radius: 10px;
    border: 2px solid var(--line);
    background: var(--surface-alt);
    cursor: pointer;
    display: grid;
    place-items: center;
}

.bubble-thumb-btn.is-active {
    border-color: var(--prod-accent, var(--bubble-primary));
}

.bubble-thumb-btn img {
    max-height: 54px;
    width: auto;
    object-fit: contain;
}

.bubble-size-group {
    margin: 1.25rem 0;
}

.bubble-size-group h4 {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    color: var(--muted);
}

/* About & Contact */
.bubble-about-box,
.bubble-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.8rem);
    box-shadow: var(--shadow-sm);
}

.bubble-form-group {
    margin-bottom: 1rem;
}

.bubble-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.bubble-form-group input,
.bubble-form-group textarea {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
}

.bubble-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
}
.bubble-alert-ok {
    background: #dcfce7;
    color: #166534;
}
.bubble-alert-err {
    background: #fee2e2;
    color: #991b1b;
}

/* Footer */
.bubble-footer {
    margin-top: 3rem;
    background: #0b1524;
    color: #e2e8f0;
    padding-block: 3.2rem 1.5rem;
}

.bubble-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.bubble-footer-logo img {
    height: var(--bubble-footer-logo-h);
    width: auto;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.bubble-footer h4 {
    margin: 0 0 0.8rem;
    font-size: 1rem;
    color: #fff;
}

.bubble-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.bubble-footer a {
    color: #cbd5e1;
    font-size: 0.92rem;
}
.bubble-footer a:hover {
    color: #fff;
}

.bubble-footer-bottom {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Subtle reveal animation */
.bubble-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
.bubble-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .bubble-logo-glow, .bubble-orb { animation: none !important; }
    .bubble-reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 1024px) {
    .bubble-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bubble-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bubble-hero-grid,
    .bubble-product-showcase,
    .bubble-single-layout,
    .bubble-about-box,
    .bubble-contact-grid,
    .bubble-footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .bubble-hero-grid > *,
    .bubble-product-showcase > *,
    .bubble-single-layout > *,
    .bubble-about-box > *,
    .bubble-contact-grid > *,
    .bubble-footer-grid > * {
        min-width: 0;
    }
    .bubble-product-showcase:nth-child(even) .bubble-showcase-media {
        order: 0;
    }
}

@media (max-width: 768px) {
    .bubble-mobile-toggle { display: inline-flex; }
    .bubble-nav {
        display: none;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        padding: 1rem 4%;
        box-shadow: var(--shadow-lg);
    }
    .bubble-nav.is-open { display: block; }
    .bubble-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }
}

@media (max-width: 560px) {
    html, body {
        overflow-x: clip;
    }
    .bubble-header-inner {
        gap: 0.45rem;
        min-height: 64px;
    }
    .bubble-brand img {
        height: 38px;
    }
    .bubble-header-actions {
        gap: 0.4rem;
    }
    .bubble-pill-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.8rem;
    }
    .bubble-cat-grid,
    .bubble-products-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .bubble-logo-stage {
        padding: 1.25rem;
        min-height: 240px;
    }
    .bubble-showcase-media {
        padding: 1rem;
    }
    .bubble-showcase-media img {
        max-height: 250px;
        max-width: 100%;
    }
}

/* Product Slideshow */
.bubble-slideshow {
    position: relative;
    min-height: clamp(340px, 38vw, 470px);
    border-radius: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.4rem;
}

.bubble-slide-brand-badge {
    position: absolute;
    top: 1rem;
    inset-inline-start: 1.15rem;
    z-index: 4;
    opacity: 0.92;
}
.bubble-slide-brand-badge img {
    height: 30px;
    width: auto;
}

.bubble-slides-track {
    position: relative;
    flex: 1;
    min-height: 290px;
}

.bubble-slide {
    --slide-accent: var(--bubble-primary);
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.2rem 1rem 0.5rem;
    border-radius: 22px;
    background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--slide-accent) 16%, transparent), transparent 72%);
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.bubble-slide.is-active {
    position: relative;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.bubble-slide-visual {
    display: grid;
    place-items: center;
    height: 240px;
    width: 100%;
    margin-bottom: 0.75rem;
}

.bubble-slide-visual img {
    max-height: 230px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.16));
}

.bubble-slide-caption h3 {
    margin: 0 0 0.25rem;
    font-size: 1.16rem;
}
.bubble-slide-caption p {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: var(--muted);
}
.bubble-slide-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--slide-accent);
}

.bubble-slide-controls {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.65rem;
}

.bubble-slide-nav,
.bubble-slide-pause {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface-alt);
    color: var(--ink);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 0.88rem;
}

.bubble-slide-dots {
    display: flex;
    gap: 0.4rem;
}

.bubble-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    border: 0;
    background: var(--line);
    cursor: pointer;
    padding: 0;
    transition: width 0.22s ease, background 0.22s ease;
}
.bubble-slide-dot.is-active {
    width: 22px;
    background: var(--bubble-primary);
}

/* Department Contact Cards & Socials */
.bubble-dept-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.bubble-dept-card {
    padding: 1rem;
    border-radius: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
}

.bubble-dept-card h3 {
    margin: 0 0 0.25rem;
    font-size: 0.96rem;
}

.bubble-dept-number {
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.bubble-dept-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.bubble-dept-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.42rem 0.78rem;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 700;
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.bubble-dept-btn:hover { transform: translateY(-1px); }
.bubble-dept-tel { background: var(--bubble-primary); color: #fff; }
.bubble-dept-wa { background: #16a34a; color: #fff; }

.bubble-contact-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.bubble-alert-warn {
    background: #fef3c7;
    color: #92400e;
}

.bubble-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.bubble-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--surface-alt);
    color: var(--ink);
    border: 1px solid var(--line);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.bubble-footer .bubble-social-link {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.bubble-social-link:hover {
    transform: translateY(-2px);
    background: var(--bubble-primary);
    border-color: var(--bubble-primary);
    color: #fff;
}

/* Google Maps Section */
.bubble-maps-section {
    margin-top: 2.25rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.bubble-maps-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.bubble-maps-head h2 {
    margin: 0.35rem 0 0;
    font-size: 1.35rem;
}

.bubble-maps-frame iframe {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 14px;
    display: block;
}

.bubble-maps-placeholder {
    padding: 2.2rem 1.5rem;
    border-radius: 14px;
    background: var(--surface-alt);
    border: 1px dashed var(--line);
    text-align: center;
}
.bubble-maps-placeholder p {
    margin: 0 0 1rem;
    font-weight: 700;
}

/* Advertisements Video Library */
.bubble-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
}

.bubble-video-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.bubble-video-stage {
    position: relative;
    background: #0b1524;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.bubble-aspect-16x9 { aspect-ratio: 16 / 9; }
.bubble-aspect-9x16 { aspect-ratio: 9 / 16; max-height: 460px; margin-inline: auto; width: 100%; }
.bubble-aspect-1x1 { aspect-ratio: 1 / 1; }

.bubble-video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bubble-video-poster-fallback {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 900;
    font-size: 1.8rem;
}

.bubble-video-play {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 0;
    background: var(--bubble-primary);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(8, 121, 232, 0.45);
    transition: transform 0.2s ease;
}
.bubble-video-play:hover { transform: scale(1.08); }

.bubble-video-body { padding: 1.15rem; }
.bubble-video-body h3 { margin: 0 0 0.35rem; font-size: 1.08rem; }
.bubble-video-body p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.bubble-empty-state {
    padding: 2.5rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
}

.bubble-no-anim .bubble-logo-glow,
.bubble-no-anim .bubble-orb,
.bubble-no-anim .bubble-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

@media (max-width: 1024px) {
    .bubble-videos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .bubble-dept-cards,
    .bubble-videos-grid { grid-template-columns: minmax(0, 1fr); }
    .bubble-brand img { height: var(--bubble-header-logo-h-mob, 38px); }
    .bubble-footer-logo img { height: var(--bubble-footer-logo-h-mob, 46px); }
}

/* Public Visitor Statistics Widget & Eye Count */
.bubble-eye-count {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.bubble-stats-widget {
    padding: clamp(1.2rem, 3vw, 1.85rem);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(8, 121, 232, 0.08), rgba(14, 165, 164, 0.05)), var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    box-shadow: 0 12px 36px rgba(8, 121, 232, 0.09);
}

.bubble-stats-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.bubble-stats-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.bubble-stats-brand h3 {
    margin: 0;
    font-size: 1.05rem;
}
.bubble-stats-brand p {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.bubble-globe-wrap {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(8, 121, 232, 0.12);
    color: var(--bubble-primary);
    box-shadow: 0 0 18px rgba(8, 121, 232, 0.28);
}

.bubble-globe-svg {
    animation: bubbleGlobeSpin 18s linear infinite;
}

@keyframes bubbleGlobeSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.bubble-online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: bubblePulseDot 2s infinite;
}

@keyframes bubblePulseDot {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.bubble-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.bubble-stats-extra {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bubble-stat-item {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.bubble-stat-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.bubble-stat-val {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ink);
    transition: opacity 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .bubble-globe-svg, .bubble-online-dot { animation: none !important; }
}

@media (max-width: 900px) {
    .bubble-stats-grid, .bubble-stats-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .bubble-stats-grid, .bubble-stats-extra { grid-template-columns: minmax(0, 1fr); }
}

/* Lightweight Content Protection (excludes forms, contact info, and admins) */
body.bubble-protected {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

body.bubble-protected img {
    -webkit-user-drag: none;
    user-drag: none;
}

body.bubble-protected :is(input, textarea, select, [contenteditable="true"], .bubble-dept-card, .bubble-dept-number, .bubble-contact-meta, .bubble-contact-meta *) {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

/* Footer Language Switcher */
.bubble-footer-langs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.bubble-footer-lang-link {
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bubble-footer-lang-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.bubble-footer-lang-link.is-active {
    background: var(--bubble-primary);
    border-color: var(--bubble-primary);
    color: #fff;
}

/* Welcome Soap Bubble Overlay */
.bubble-welcome-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9990;
    overflow: hidden;
}

.bubble-soap-orb {
    position: absolute;
    bottom: -140px;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
    background:
        radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.35) 16%, transparent 38%),
        radial-gradient(circle at 72% 76%, rgba(125, 211, 252, 0.45) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 42%, rgba(8, 121, 232, 0.24) 84%, rgba(167, 243, 208, 0.34) 95%, rgba(244, 114, 182, 0.22) 100%);
    box-shadow:
        inset 0 0 14px rgba(255, 255, 255, 0.72),
        inset -4px -6px 14px rgba(8, 121, 232, 0.28),
        0 6px 20px rgba(8, 121, 232, 0.14);
    animation: bubbleWelcomeRise var(--wb-dur, 4s) cubic-bezier(0.22, 0.61, 0.36, 1) var(--wb-delay, 0s) forwards;
    opacity: 0;
}

.bubble-soap-orb::before {
    content: "";
    position: absolute;
    top: 15%;
    left: 20%;
    width: 24%;
    height: 16%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    transform: rotate(-28deg);
}

html[data-theme="dark"] .bubble-soap-orb {
    background:
        radial-gradient(circle at 28% 26%, rgba(255, 255, 255, 0.85) 0%, rgba(186, 230, 253, 0.32) 18%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 44%, rgba(56, 189, 248, 0.32) 86%, rgba(167, 243, 208, 0.32) 100%);
    box-shadow:
        inset 0 0 16px rgba(186, 230, 253, 0.65),
        0 6px 24px rgba(56, 189, 248, 0.20);
}

@keyframes bubbleWelcomeRise {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.72);
    }
    14% {
        opacity: var(--wb-op, 0.85);
    }
    78% {
        opacity: var(--wb-op, 0.85);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--wb-drift, 28px), calc(-100vh - 180px), 0) scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bubble-welcome-overlay {
        display: none !important;
    }
}
