/* 
Theme Name: Warsi Surgical
Theme URI: https://amirence.com
Description: Child theme of Hello Elementor for amirence.com. Developed by Amir Sohail.
Author: Amir Sohail
Author URI: https://github.com/techbyamir
Template: hello-elementor
Version: 1.1.3
Text Domain: ws
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

/* ========================
   Our Products Cards (Shortcode)
======================== */
:root {
    --primary: #333333;
    --primary-light: #7a7a7a;
    --accent: #9dd42e;
    --secondary: #f1f1f1;
    --text: #7a7a7a;
    --black: #000000;
    --white: #ffffff;
    --gold: #ab892e;
    --text-light: #7a7a7a;
    --border: #f1f1f1;
    --bg-light: #f4f7fb;
    --shadow-sm: 0 2px 10px rgba(51, 51, 51, 0.06);
    --shadow-lg: 0 10px 40px rgba(51, 51, 51, 0.14);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
    --container: 1200px;
    --accent-dark: #7fb020;
    --shadow: 0 4px 20px rgba(51, 51, 51, 0.08);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.product-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(13, 45, 78, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: all var(--transition);
}

.product-card:hover .product-card__icon {
    background: var(--primary);
}

.product-card__icon i {
    font-size: 1.3rem;
    color: var(--primary);
    transition: color var(--transition);
}

.product-card:hover .product-card__icon i {
    color: var(--accent);
}

.product-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.55rem;
}

.product-card p {
    font-size: 0.87rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    flex: 1;
    line-height: 1.6;
}

.product-card__link {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all var(--transition);
    margin-top: auto;
}

.product-card__link:hover {
    gap: 0.6rem;
    color: var(--accent);
}

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

@media (max-width: 768px) {
    .products__grid {
        grid-template-columns: 1fr;
    }
}

/* ========================
   Our Process (Shortcode)
======================== */
.process__steps {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    padding-left: 0;
}

.process__steps::before {
    content: '';
    position: absolute;
    left: 2.5rem;
    top: 2.5rem;
    bottom: 2.5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    z-index: 0;
}

.process-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 1.25rem 0;
    position: relative;
    z-index: 1;
}

.process-step__number {
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--secondary);
    box-shadow: 0 0 0 2px var(--primary);
}

.process-step__content {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.process-step__content h3 {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.process-step__content p {
    font-size: 0.87rem;
    color: var(--text-light);
    line-height: 1.65;
}


.contactForm nf-fields-wrap {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.contactForm nf-fields-wrap nf-field {
    width: 100%;
    padding: 0 10px;
}
.contactForm nf-fields-wrap nf-field:nth-child(2),
.contactForm nf-fields-wrap nf-field:nth-child(3) {
    width: 50%;
}

.contactForm .nf-before-form-content {
    display: none;
}

.contactForm .field-wrap textarea {
    height: 130px;
}

.contactForm .field-wrap input[type=submit] {
    width: 100%;
    cursor: pointer;
    font-weight: 500;
}

body .page-content a {
    text-decoration: none;
}

.matchheight {
    height: 100%;
}


@media (max-width: 768px) {
    .process__steps::before {
        left: 2rem;
    }

    .process-step__number {
        width: 4rem;
        height: 4rem;
        font-size: 0.85rem;
    }

    .contactForm nf-fields-wrap nf-field:nth-child(2),
    .contactForm nf-fields-wrap nf-field:nth-child(3) {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .process-step {
        gap: 1rem;
    }

    .process-step__number {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 0.8rem;
    }

    .process__steps::before {
        left: 1.75rem;
    }

    .contactForm nf-fields-wrap nf-field:nth-child(2),
    .contactForm nf-fields-wrap nf-field:nth-child(3) {
        width: 100%;
    }
}

/* ========================
   Product single — layout, sections & buttons
   (inlined from warsiSurgical-scratch/style.css + product-page.css; no scratch folder required)
======================== */

/* Full-bleed blocks use 100vw; that ignores scrollbar gutter and causes sideways scroll */
body.single-product {
    overflow-x: hidden;
}

.warsi-single-product .container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.warsi-single-product section.section,
.warsi-single-product .section {
    padding: 5rem 0;
}

.warsi-single-product .section--light {
    background: var(--bg-light);
}

.warsi-single-product .section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(200, 168, 75, 0.1);
    padding: 0.3rem 1rem;
    border-radius: 100px;
    margin-bottom: 0.85rem;
    border: 1px solid rgba(200, 168, 75, 0.3);
}

.warsi-single-product .section-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.warsi-single-product .section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.warsi-single-product .btn,
.warsi-cat-page .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
    font-family: inherit;
}

.warsi-single-product .btn--primary,
.warsi-cat-page .btn--primary {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.warsi-single-product .btn--primary:hover,
.warsi-single-product .btn--primary:focus-visible,
.warsi-cat-page .btn--primary:hover,
.warsi-cat-page .btn--primary:focus-visible {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 212, 46, 0.35);
}

.warsi-single-product .btn--primary:hover i,
.warsi-single-product .btn--primary:focus-visible i,
.warsi-cat-page .btn--primary:hover i,
.warsi-cat-page .btn--primary:focus-visible i {
    color: var(--primary);
}

.warsi-single-product .btn--white,
.warsi-cat-page .btn--white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.warsi-single-product .btn--white:hover,
.warsi-single-product .btn--white:focus-visible,
.warsi-cat-page .btn--white:hover,
.warsi-cat-page .btn--white:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

.warsi-single-product .btn--white:hover i,
.warsi-single-product .btn--white:focus-visible i,
.warsi-cat-page .btn--white:hover i,
.warsi-cat-page .btn--white:focus-visible i {
    color: var(--primary);
}

.warsi-single-product .btn--outline-white,
.warsi-cat-page .btn--outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.warsi-single-product .btn--outline-white:hover,
.warsi-single-product .btn--outline-white:focus-visible,
.warsi-cat-page .btn--outline-white:hover,
.warsi-cat-page .btn--outline-white:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
}

.warsi-single-product .btn--outline-white:hover i,
.warsi-single-product .btn--outline-white:focus-visible i,
.warsi-cat-page .btn--outline-white:hover i,
.warsi-cat-page .btn--outline-white:focus-visible i {
    color: var(--white);
}

/* ========================
   Product single — hero (from warsiSurgical-scratch/product-page.css)
======================== */

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
    margin-top: 72px;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.825rem;
    color: var(--text-light);
}

.breadcrumb__list li:last-child { color: var(--text); font-weight: 500; }
.breadcrumb__list a { color: var(--primary-light); transition: color var(--transition); }
.breadcrumb__list a:hover { color: var(--accent); }
.breadcrumb__list i { font-size: 0.6rem; opacity: 0.5; }

/* Product hero */
.product-hero {
    padding-top: 3rem;
    padding-bottom: 3.5rem;
}

.product-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 90px;
}

.product-gallery__main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1 / 1;
    cursor: crosshair;
}

.elementor-kit-6 button.product-gallery__thumb:hover,
.elementor-kit-6 button.product-gallery__thumb {
    background-color: transparent;
}

.product-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.25rem;
    transition: opacity 0.2s ease;
    pointer-events: none;
    display: block;
}

.product-gallery__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 5;
}

.zoom-lens {
    position: absolute;
    width: 130px;
    height: 130px;
    border: 2px solid var(--accent);
    border-radius: 6px;
    background: rgba(200, 168, 75, 0.08);
    box-shadow: 0 0 0 1px rgba(200, 168, 75, 0.25), inset 0 0 0 1px rgba(255,255,255,0.4);
    display: none;
    pointer-events: none;
    z-index: 10;
    transform: translate(-50%, -50%);
    transition: opacity 0.15s ease;
}

.zoom-result {
    position: absolute;
    left: calc(100% + 1.5rem);
    top: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background-color: var(--white);
    background-repeat: no-repeat;
    display: none;
    z-index: 200;
    overflow: hidden;
}

.product-gallery__thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.product-gallery__thumb {
    flex: 1;
    /* Same width as active so selection does not shift layout */
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.product-gallery__thumb:hover {
    border-color: color-mix(in srgb, var(--primary-light) 35%, var(--border));
    box-shadow: 0 2px 12px rgba(51, 51, 51, 0.08);
}

.product-gallery__thumb--active {
    border-color: var(--gold);
    box-shadow:
        var(--shadow-sm),
        0 0 0 1px color-mix(in srgb, var(--gold) 28%, transparent);
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.product-info__title {
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.25;
    margin-top: 0.3rem;
}

.product-info__sku {
    font-size: 0.825rem;
    color: var(--text-light);
}

.product-info__summary {
    font-size: 0.975rem;
    line-height: 1.75;
    color: var(--text);
}

.product-info__certs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(13, 45, 78, 0.06);
    border: 1px solid rgba(13, 45, 78, 0.14);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    letter-spacing: 0.03em;
}

.cert-badge i { color: var(--accent); font-size: 0.8rem; }

.product-info__quick-specs {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem 1.3rem;
    background: var(--bg-light);
}

.product-info__quick-specs li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text);
}

.product-info__quick-specs li i {
    width: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.product-info__guarantee {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(200, 168, 75, 0.1);
    border: 1px solid rgba(200, 168, 75, 0.3);
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius);
}

.product-info__guarantee i { color: var(--accent); font-size: 1.1rem; }

.product-info__cta {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.btn--outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
    /* Avoid transition: all — animates transform/box from parent themes and feels jittery */
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
    white-space: nowrap;
    line-height: 1;
    box-shadow: none;
    transform: none;
}

.warsi-single-product .btn--outline-dark:hover,
.warsi-single-product .btn--outline-dark:focus-visible {
    border-color: var(--primary);
    background: rgba(13, 45, 78, 0.06);
    color: var(--primary);
    box-shadow: 0 2px 10px rgba(51, 51, 51, 0.08);
}

.warsi-single-product .btn--outline-dark:active {
    box-shadow: 0 1px 4px rgba(51, 51, 51, 0.1);
}

.warsi-single-product .btn--outline-dark:hover i,
.warsi-single-product .btn--outline-dark:focus-visible i {
    color: #128c7e;
}

.warsi-single-product .btn--outline-dark i {
    color: #25D366;
    transition: color 0.2s ease;
}

.product-info__oem-note {
    font-size: 0.825rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-info__oem-note i { color: var(--accent); }
.product-info__oem-note a { color: var(--primary-light); text-decoration: underline; text-underline-offset: 3px; }

/* Key Features: full-bleed background; inner .container keeps content width */
.warsi-single-product section#features.product-section.section--light {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    background-color: var(--bg-light);
}

/* Key Features grid (from warsiSurgical-scratch/product-page.css) */
.warsi-single-product .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.warsi-single-product .feature-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.4rem;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.warsi-single-product .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.warsi-single-product .feature-item__icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(13, 45, 78, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.warsi-single-product .feature-item:hover .feature-item__icon { background: var(--primary); }

.warsi-single-product .feature-item__icon i {
    font-size: 1.25rem;
    color: var(--primary);
    transition: color var(--transition);
}

.warsi-single-product .feature-item__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    filter: brightness(0) saturate(100%) invert(14%) sepia(31%) saturate(1460%) hue-rotate(179deg) brightness(95%) contrast(92%);
    transition: filter var(--transition), transform var(--transition);
}

.warsi-single-product .feature-item:hover .feature-item__icon img {
    filter: brightness(0) invert(1);
    transform: scale(1.05);
}

.warsi-single-product .feature-item:hover .feature-item__icon i { color: var(--accent); }

.warsi-single-product .feature-item h3 {
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.warsi-single-product .feature-item p {
    font-size: 0.86rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* Specifications (from warsiSurgical-scratch/product-page.css) */
.warsi-single-product .specs-wrapper {
    max-width: 860px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.warsi-single-product .specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.warsi-single-product .specs-table th,
.warsi-single-product .specs-table td {
    padding: 0.85rem 1.4rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.warsi-single-product .specs-table th {
    width: 38%;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-light);
    font-size: 0.845rem;
    white-space: nowrap;
}

.warsi-single-product .specs-table td {
    color: var(--text);
    background: var(--white);
}

.warsi-single-product .specs-table tr:last-child th,
.warsi-single-product .specs-table tr:last-child td { border-bottom: none; }

.warsi-single-product .specs-table tr:nth-child(even) td { background: rgba(244, 247, 251, 0.55); }
.warsi-single-product .specs-table tr:nth-child(even) th { background: rgba(244, 247, 251, 0.85); }

/* CTA banner — full-bleed solid brand color; decorative ::before orb (scratch homepage style) */
.warsi-single-product .cta-banner,
.warsi-cat-page .cta-banner {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    background-color: var(--primary);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.warsi-single-product .cta-banner::before,
.warsi-cat-page .cta-banner::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -8%;
    width: 550px;
    height: 550px;
    /* Accent tint — visible on dark --primary (scratch gold was too subtle on #333) */
    background: rgba(157, 212, 46, 0.18);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.warsi-single-product .cta-banner__content,
.warsi-cat-page .cta-banner__content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.warsi-single-product .cta-banner__content h2,
.warsi-cat-page .cta-banner__content h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.85rem;
}

.warsi-single-product .cta-banner__content p,
.warsi-cat-page .cta-banner__content p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.warsi-single-product .cta-banner__buttons,
.warsi-cat-page .cta-banner__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Related products (from warsiSurgical-scratch/product-page.css) */
.warsi-single-product .related-products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.warsi-single-product .related-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.warsi-single-product .related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.warsi-single-product .related-card__image-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
}

.warsi-single-product .related-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.warsi-single-product .related-card:hover .related-card__img {
    transform: scale(1.04);
}

.warsi-single-product .related-card__body {
    padding: 1.3rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.warsi-single-product .related-card__category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(200, 168, 75, 0.15);
    border: 1px solid rgba(200, 168, 75, 0.4);
    padding: 0.28rem 0.75rem;
    border-radius: 100px;
    align-self: flex-start;
}

.warsi-single-product .related-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.warsi-single-product .related-card__title a {
    color: var(--primary);
    transition: color var(--transition);
}

.warsi-single-product .related-card__title a:hover { color: var(--accent); }

.warsi-single-product .related-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.845rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-top: auto;
    padding-top: 0.5rem;
    transition: gap var(--transition), color var(--transition);
}

.warsi-single-product .related-card__link:hover {
    color: var(--accent);
    gap: 0.65rem;
}

/* ========================
   Browse by Specialty Filter
======================== */
.cat-filter {
    background: transparent;
    border-radius: 0;
    border: 0;
    padding: 10px 0px;
    margin-bottom: 0;
}

.cat-filter__heading {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.4rem;
}

.cat-filter__desc {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cat-filter__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cat-filter__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}

.elementor-kit-6 a.btn--white:hover,
.elementor-kit-6 a.btn--outline-white:hover,
.elementor-kit-6 a.cat-filter__btn:hover {
    font-weight: 600;   
}

.elementor-kit-6 button.ws-megamenu__mega-col-toggle {
    background-color: transparent;
    box-shadow: none;
}

.elementor-kit-6 a.ws-megamenu__mega-link:hover {
    font-weight: 600;
}

.elementor-kit-6 .ws-megamenu__mega-group-heading a:hover {
    font-weight: 700;
}

.elementor-kit-6 a.ws-megamenu__link {
    color: #ffffff;
    font-weight: normal;
}

.elementor-kit-6 a.cat-filter__btn--active {
    color: var(--accent);
    font-weight: 600;
}

.cat-filter__btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    font-weight: 700;
    transform: none;
    box-shadow: none;
}

.cat-filter__btn .cat-emoji {
    font-size: 0.95rem;
}

.cat-filter__btn .cat-count-badge {
    background: var(--bg-light);
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 100px;
    transition: background var(--transition), color var(--transition);
}

.cat-filter__btn:hover .cat-count-badge {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

/* ========================
   All Products by Category (uses related cards style)
======================== */
.warsi-products-by-category.related-products__grid,
.warsi-products-by-category .related-products__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.warsi-products-by-category .related-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.warsi-products-by-category .related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.warsi-products-by-category .related-card__image-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
}

.warsi-products-by-category .related-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.warsi-products-by-category .related-card:hover .related-card__img {
    transform: scale(1.04);
}

.warsi-products-by-category .related-card__body {
    padding: 1.3rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.warsi-products-by-category .related-card__category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(200, 168, 75, 0.15);
    border: 1px solid rgba(200, 168, 75, 0.4);
    padding: 0.28rem 0.75rem;
    border-radius: 100px;
    align-self: flex-start;
}

.warsi-products-by-category .related-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.warsi-products-by-category .related-card__title a {
    color: var(--primary);
    transition: color var(--transition);
}

.warsi-products-by-category .related-card__title a:hover {     
    color: var(--accent);
    font-weight: 700;
}

.warsi-products-by-category .related-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.845rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-top: auto;
    padding-top: 0.5rem;
    transition: gap var(--transition), color var(--transition);
}

.warsi-products-by-category .related-card__link:hover {
    color: var(--accent);
    gap: 0.65rem;
}

.warsi-products-pagination {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
}

.warsi-products-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition);
}

.warsi-products-pagination .page-numbers:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.warsi-products-pagination .page-numbers.current {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

/* Grid children: avoid min-content blowout on narrow viewports */
.warsi-single-product .product-hero__grid > *,
.warsi-single-product .features-grid > *,
.warsi-single-product .related-products__grid > * {
    min-width: 0;
}

/* ---------- Product single — responsive ---------- */

/* Large tablet / small laptop: step down from 4-column features */
@media (max-width: 1199px) {
    .warsi-single-product .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .warsi-single-product .feature-item {
        padding: 1.5rem 1.15rem;
    }
}

@media (max-width: 1024px) {
    .product-hero__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-gallery {
        position: static;
        max-width: min(500px, 100%);
        margin: 0 auto;
        width: 100%;
    }

    .zoom-lens,
    .zoom-result { display: none !important; }
    .product-gallery__main { cursor: default; }

    .warsi-single-product .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .warsi-single-product .related-products__grid { grid-template-columns: repeat(2, 1fr); }
    .warsi-products-by-category.related-products__grid,
    .warsi-products-by-category .related-products__grid { grid-template-columns: repeat(2, 1fr); }

    .warsi-single-product section.section,
    .warsi-single-product .section {
        padding: 4rem 0;
    }

    .warsi-single-product .section-header {
        margin-bottom: 2.75rem;
    }

    .warsi-single-product .cta-banner,
    .warsi-cat-page .cta-banner {
        padding: 3.25rem 0;
    }
}

@media (max-width: 900px) {
    .product-hero {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }

    .warsi-single-product .specs-table th {
        white-space: normal;
    }
}

@media (max-width: 768px) {

    .elementor-kit-6 a.ws-megamenu__link {
        color: var(--primary);
    }
    .cat-filter { padding: 1.5rem; }

    .breadcrumb { margin-top: 64px; }
    .breadcrumb { padding: 0.75rem 0; }

    .product-hero { padding-top: 2rem; padding-bottom: 2.5rem; }

    .warsi-single-product .container {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .warsi-single-product section.section,
    .warsi-single-product .section {
        padding: 3.25rem 0;
    }

    .warsi-single-product .section-header {
        margin-bottom: 2.25rem;
    }

    .warsi-single-product .section-title {
        font-size: clamp(1.35rem, 4.5vw, 2rem);
    }

    .product-info__title {
        font-size: clamp(1.35rem, 4vw, 1.75rem);
    }

    .product-info__summary {
        font-size: 0.95rem;
    }

    .product-info__certs {
        gap: 0.45rem;
    }

    .cert-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
    }

    .product-info__guarantee {
        flex-wrap: wrap;
        font-size: 0.82rem;
        padding: 0.75rem 1rem;
    }

    .product-info__cta { flex-direction: column; }
    .product-info__cta .btn,
    .product-info__cta .btn--outline-dark { width: 100%; justify-content: center; }

    .warsi-single-product .features-grid { grid-template-columns: 1fr 1fr; }

    .warsi-single-product .related-products__grid { grid-template-columns: 1fr 1fr; }
    .warsi-products-by-category.related-products__grid,
    .warsi-products-by-category .related-products__grid { grid-template-columns: 1fr 1fr; }

    .warsi-single-product .cta-banner,
    .warsi-cat-page .cta-banner {
        padding: 2.75rem 0;
    }

    .warsi-single-product .cta-banner__buttons,
    .warsi-cat-page .cta-banner__buttons { flex-direction: column; align-items: center; }
    .warsi-single-product .cta-banner__buttons .btn,
    .warsi-cat-page .cta-banner__buttons .btn { width: 100%; max-width: 320px; justify-content: center; }

    .warsi-single-product .specs-table th,
    .warsi-single-product .specs-table td {
        padding: 0.75rem 1.1rem;
    }
}

/* Phone landscape / large phone: single-column feature cards */
@media (max-width: 640px) {
    .warsi-single-product .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .warsi-single-product .related-products__grid {
        grid-template-columns: 1fr;
    }
    .warsi-products-by-category.related-products__grid,
    .warsi-products-by-category .related-products__grid {
        grid-template-columns: 1fr;
    }

    .warsi-single-product section.section,
    .warsi-single-product .section {
        padding: 2.75rem 0;
    }

    .product-gallery__thumbs {
        gap: 0.55rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.35rem;
        margin-left: -0.15rem;
        margin-right: -0.15rem;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .product-gallery__thumb {
        flex: 0 0 calc(33.333% - 0.37rem);
        min-width: 76px;
        max-width: 120px;
        padding: 0.65rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb { margin-top: 56px; }
    .breadcrumb__list { font-size: 0.78rem; }

    .warsi-single-product .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .warsi-single-product section.section,
    .warsi-single-product .section {
        padding: 2.25rem 0;
    }

    .warsi-single-product .section-header {
        margin-bottom: 1.85rem;
    }

    .product-hero {
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .product-gallery__badge {
        top: 0.65rem;
        left: 0.65rem;
        font-size: 0.62rem;
        padding: 0.32rem 0.65rem;
    }

    .product-gallery__img {
        padding: 1rem;
    }

    .product-info__quick-specs {
        padding: 1rem 1rem;
        gap: 0.5rem;
    }

    .product-info__quick-specs li {
        font-size: 0.85rem;
        align-items: flex-start;
    }

    .warsi-single-product .btn,
    .warsi-cat-page .btn,
    .warsi-single-product .btn--outline-dark {
        white-space: normal;
        text-align: center;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .warsi-single-product .cta-banner__content p,
    .warsi-cat-page .cta-banner__content p {
        font-size: 0.92rem;
        margin-bottom: 1.5rem;
    }

    .warsi-single-product .specs-table th { width: 40%; font-size: 0.78rem; }
    .warsi-single-product .specs-table th,
    .warsi-single-product .specs-table td {
        padding: 0.65rem 0.85rem;
        font-size: 0.82rem;
        word-break: break-word;
        hyphens: auto;
    }

    .warsi-single-product .cta-banner::before,
    .warsi-cat-page .cta-banner::before {
        width: min(420px, 90vw);
        height: min(420px, 90vw);
        right: -15%;
    }
}

@media (max-width: 380px) {
    .warsi-single-product .section-tag {
        font-size: 0.68rem;
        padding: 0.25rem 0.75rem;
    }

    .product-info__cta .btn,
    .product-info__cta .btn--outline-dark {
        font-size: 0.88rem;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .warsi-single-product .feature-item:hover,
    .warsi-single-product .related-card:hover {
        transform: none;
    }

    .warsi-single-product .btn--primary:hover,
    .warsi-single-product .btn--white:hover,
    .warsi-single-product .btn--outline-white:hover,
    .warsi-cat-page .btn--primary:hover,
    .warsi-cat-page .btn--white:hover,
    .warsi-cat-page .btn--outline-white:hover {
        transform: none;
    }
}

/* ========================
   Category Taxonomy Page (.warsi-cat-page)
======================== */

/* Scoped container — mirrors .warsi-single-product .container */
.warsi-cat-page .container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Active state for Browse-by-Specialty filter button */
.cat-filter__btn--active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    font-weight: 700;
}

.cat-filter__btn--active:hover,
.cat-filter__btn--active:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--accent);
}

/* Keep accent border on active so it stays visually distinct from hover */
.elementor-kit-6 a.cat-filter__btn--active {
    font-weight: 700;
}

.elementor-kit-6 a.cat-filter__btn--active:hover,
.elementor-kit-6 a.cat-filter__btn--active:focus-visible {
    color: var(--accent);
}

/* ── Category Header ────────────────────────────────────────────────── */


.cat-page-header {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0 2.5rem;
}

.cat-page-header__title {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.85rem;
}

.cat-page-header__desc {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.75;
    max-width: 680px;
    margin: 0;
}

/* ── Filter Strip ───────────────────────────────────────────────────── */
.cat-page-filter {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(51, 51, 51, 0.05);
}

/* ── Products Section ───────────────────────────────────────────────── */
.cat-page-products {
    padding: 3rem 0 4rem;
}

.cat-page-count {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cat-page-count strong {
    color: var(--primary);
}

/* ── Product cards: reuse .warsi-products-by-category rules ─────────── */
/* (already defined — no duplication needed) */

/* ── Empty State ────────────────────────────────────────────────────── */
.cat-page-empty {
    text-align: center;
    padding: 4rem 1rem;
}

.cat-page-empty__icon {
    font-size: 2.5rem;
    color: var(--border);
    margin-bottom: 1rem;
    display: block;
}

.cat-page-empty__msg {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.cat-page-empty .cat-filter__btn {
    display: inline-flex;
    gap: 0.5rem;
}

/* ── CTA Banner ─────────────────────────────────────────────────────── */
.cat-page-cta {
    background: var(--primary);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.cat-page-cta::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -8%;
    width: 550px;
    height: 550px;
    background: rgba(157, 212, 46, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.cat-page-cta .container {
    position: relative;
    z-index: 1;
}

.cat-page-cta__content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cat-page-cta__title {
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--white) !important;
    margin-bottom: 0.85rem;
}

.cat-page-cta__text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cat-page-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cat-page-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.cat-page-cta__btn--primary {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.cat-page-cta__btn--primary:hover,
.cat-page-cta__btn--primary:focus-visible {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 212, 46, 0.35);
}

.cat-page-cta__btn--whatsapp {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.45);
}

.cat-page-cta__btn--whatsapp:hover,
.cat-page-cta__btn--whatsapp:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── Category Page — Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .cat-page-header {
        padding: 2.5rem 0 2rem;
    }

    .cat-page-products {
        padding: 2.5rem 0 3.5rem;
    }
}

@media (max-width: 768px) {

    .cat-page-header {
        padding: 2rem 0 1.75rem;
    }

    .cat-page-header__desc {
        font-size: 0.95rem;
    }

    .cat-page-filter {
        position: static; /* disable sticky on small screens */
    }

    .cat-page-products {
        padding: 2rem 0 3rem;
    }

    .cat-page-cta {
        padding: 3rem 0;
    }

    .cat-page-cta__buttons {
        flex-direction: column;
        align-items: center;
    }

    .cat-page-cta__btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .cat-page-header {
        padding: 1.75rem 0 1.5rem;
    }

    .cat-page-header__title {
        font-size: clamp(1.45rem, 6vw, 1.9rem);
    }

    .warsi-cat-page .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cat-page-cta__btn--primary:hover,
    .cat-page-cta__btn--whatsapp:hover {
        transform: none;
    }
}

/* ============================================================
   Warsi Surgical — Mega Menu  [warsi_mega_menu]
   Desktop ≥ 992 px : horizontal bar + CSS-hover mega panels
   Mobile / tablet < 992 px : off-canvas flyout + accordion submenus
============================================================ */

body.ws-megamenu--scroll-lock {
    overflow: hidden;
    touch-action: none;
}

/* ── Shell ────────────────────────────────────────────────── */
.ws-megamenu {
    position: relative;
    z-index: 1000;
    width: 100%;
}

.ws-megamenu__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    flex-wrap: wrap;
    gap: 0;
}

/* Off-canvas backdrop (mobile / tablet only) */
.ws-megamenu__backdrop {
    display: none;
}

/* Desktop: unwrap flyout so the menu list participates in the header flex row */
@media (min-width: 992px) {
    .ws-megamenu__backdrop {
        display: none !important;
    }

    .ws-megamenu__flyout {
        display: contents;
    }

    .ws-megamenu__flyout-scroll {
        display: contents;
    }
}

/* ── Top-level list ───────────────────────────────────────── */
.ws-megamenu__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

/* ── Items ────────────────────────────────────────────────── */
.ws-megamenu__item {
    position: relative;
}

/* ── Links ────────────────────────────────────────────────── */
.ws-megamenu__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    transition: color var(--transition);
    cursor: pointer;
    background: transparent;
    border: none;
    font-family: inherit;
    position: relative;
}

/* Underline grow animation — scales in from left on hover */
.ws-megamenu__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.9rem;
    right: 0.9rem;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.ws-megamenu__link:hover,
.ws-megamenu__link:focus-visible {
    color: #fff;
    outline: none;
}

.ws-megamenu__link:hover::after,
.ws-megamenu__link:focus-visible::after {
    transform: scaleX(1);
}

.ws-megamenu__link--current,
.ws-megamenu__item--current > .ws-megamenu__link {
    color: #fff;
}

/* Active/current — underline always fully visible */
.ws-megamenu__link--current::after,
.ws-megamenu__item--current > .ws-megamenu__link::after {
    transform: scaleX(1);
}

/* ── Chevron arrow ────────────────────────────────────────── */
.ws-megamenu__arrow {
    font-size: 0.62rem;
    transition: transform 0.22s ease;
    will-change: transform;
}

/* Rotate arrow when panel is open (desktop hover / JS delay class, mobile JS) */
.ws-megamenu__item--has-sub:hover > .ws-megamenu__link .ws-megamenu__arrow,
.ws-megamenu__item--has-mega:hover > .ws-megamenu__link .ws-megamenu__arrow,
.ws-megamenu__item--has-mega.ws-megamenu__item--mega-open > .ws-megamenu__link .ws-megamenu__arrow,
.ws-megamenu__item--open > .ws-megamenu__link .ws-megamenu__arrow {
    transform: rotate(180deg);
}

/* ── Mobile toggle button ─────────────────────────────────── */
.ws-megamenu__toggle {
    display: none; /* hidden on desktop */
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
    color: var(--primary);
    font-size: 1rem;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
    margin-left: auto; /* push to right edge */
    flex-shrink: 0;
}

.ws-megamenu__toggle:hover,
.ws-megamenu__toggle:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    outline: none;
}

/* flyout-close button: hidden on desktop (flyout is display:contents) */
.ws-megamenu__flyout-header { display: none; }

/* ── Simple dropdown ──────────────────────────────────────── */
.ws-megamenu__sub {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 0.4rem 0;
    margin: 0;
    /* hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    pointer-events: none;
    z-index: 200;
}

/* Show on hover (desktop) */
.ws-megamenu__item--has-sub:hover > .ws-megamenu__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Show when JS opens (mobile) */
.ws-megamenu__item--open > .ws-megamenu__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg-light);
    padding: 0.25rem 0;
}

.ws-megamenu__sub-item {
    list-style: none;
}

.ws-megamenu__sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition);
    white-space: nowrap;
}

.ws-megamenu__sub-link:hover,
.ws-megamenu__sub-link:focus-visible {
    background: var(--bg-light);
    color: var(--accent);
    outline: none;
}

.ws-megamenu__item--current > .ws-megamenu__sub-link {
    color: var(--accent);
}

.ws-megamenu__sub-arrow {
    font-size: 0.6rem;
    opacity: 0.45;
}

/* ── Mega panel ───────────────────────────────────────────── */
.ws-megamenu__mega {
    position: absolute;
    top: calc(100% + 0px);
    /* Center the panel relative to the trigger item */
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    /* Responsive width: at least 600 px, at most 900 px, but never wider than viewport */
    width: clamp(560px, 55vw, 900px);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 1.75rem;
    /* hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 200;
}

/* Prevent the panel from overflowing the viewport on the right */
.ws-megamenu__item--has-mega:last-child .ws-megamenu__mega,
.ws-megamenu__item--has-mega:nth-last-child(2) .ws-megamenu__mega {
    left: auto;
    right: 0;
    transform: translateY(6px);
}

/* Show on hover or while JS keeps .ws-megamenu__item--mega-open (desktop grace period) */
.ws-megamenu__item--has-mega:hover > .ws-megamenu__mega,
.ws-megamenu__item--has-mega.ws-megamenu__item--mega-open > .ws-megamenu__mega {
    opacity: 1;
    visibility: visible;
    /* transform: translateX(-50%) translateY(0); */
    pointer-events: auto;
}

.ws-megamenu__item--has-mega:last-child:hover > .ws-megamenu__mega,
.ws-megamenu__item--has-mega:nth-last-child(2):hover > .ws-megamenu__mega,
.ws-megamenu__item--has-mega:last-child.ws-megamenu__item--mega-open > .ws-megamenu__mega,
.ws-megamenu__item--has-mega:nth-last-child(2).ws-megamenu__item--mega-open > .ws-megamenu__mega {
    transform: translateY(0);
}

/* Invisible hit-area above the panel (desktop) — bridges the gap when moving from nav link to mega */
@media (min-width: 992px) {
    .ws-megamenu__item--has-mega > .ws-megamenu__mega::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: -18px;
        height: 18px;
        pointer-events: none;
    }

    .ws-megamenu__item--has-mega:hover > .ws-megamenu__mega::before,
    .ws-megamenu__item--has-mega.ws-megamenu__item--mega-open > .ws-megamenu__mega::before {
        pointer-events: auto;
    }
}

/* "Browse All" link at the top of the mega panel */
.ws-megamenu__mega-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
    transition: gap var(--transition);
}

.ws-megamenu__mega-all:hover { gap: 0.65rem; }

/* Column grid — one column per L2 item, auto-fit */
.ws-megamenu__mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0 1.25rem;
    align-items: start;
}

.ws-megamenu__mega-col {
    padding: 0;
    margin: 0;
}

/* Divider between columns */
.ws-megamenu__mega-col + .ws-megamenu__mega-col {
    border-left: 1px solid var(--border);
    padding-left: 1.25rem;
}

/* Leaf item link */
.ws-megamenu__mega-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.4rem;
    font-size: 0.855rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    border-radius: 6px;
    transition: background-color var(--transition), color var(--transition), gap var(--transition);
    line-height: 1.3;
}

.ws-megamenu__mega-link:hover,
.ws-megamenu__mega-link:focus-visible {
    background: var(--bg-light);
    color: var(--accent);
    gap: 0.6rem;
    outline: none;
}

.ws-megamenu__mega-link.ws-megamenu__item--current {
    color: var(--accent);
    font-weight: 700;
}

.ws-megamenu__mega-bullet {
    font-size: 0.52rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: color var(--transition);
}

.ws-megamenu__mega-link:hover .ws-megamenu__mega-bullet {
    color: var(--accent-dark);
}

/* 3rd-level group header */
.ws-megamenu__mega-group {
    margin-bottom: 0.85rem;
}

.ws-megamenu__mega-group-heading {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    padding: 0 0.4rem 0.35rem;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid var(--border);
}

.ws-megamenu__mega-group-heading a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.ws-megamenu__mega-group-heading a:hover { color: var(--accent); }

/* L2 column accordion trigger — hidden on desktop mega; used in mobile flyout */
.ws-megamenu__mega-col-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    background: var(--bg-light);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    text-align: left;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
}

.ws-megamenu__mega-col-toggle-icon {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
    color: var(--accent);
}

.ws-megamenu__mega-col--open .ws-megamenu__mega-col-toggle-icon {
    transform: rotate(180deg);
}

/* L3 row + nested toggle (mobile) */
.ws-megamenu__mega-link-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ws-megamenu__mega-link-row .ws-megamenu__mega-link {
    flex: 1;
    min-width: 0;
}

.ws-megamenu__l3-toggle {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--primary);
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.ws-megamenu__l3-toggle:hover,
.ws-megamenu__l3-toggle:focus-visible {
    background: var(--bg-light);
    color: var(--accent);
    outline: none;
}

.ws-megamenu__l3-toggle i {
    font-size: 0.65rem;
    transition: transform 0.22s ease;
}

.ws-megamenu__mega-li--l4-open .ws-megamenu__l3-toggle i {
    transform: rotate(180deg);
}

@media (min-width: 992px) {
    .ws-megamenu__mega-col-toggle {
        display: none !important;
    }

    .ws-megamenu__mega-group-heading--desktop {
        display: block;
    }

    .ws-megamenu__mega-col-inner {
        display: block !important;
    }

    .ws-megamenu__l3-toggle {
        display: none !important;
    }

    .ws-megamenu__mega-sub--l4 {
        display: block !important;
    }
}

.ws-megamenu__mega-sub {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* L4 items — indented under an L3 parent */
.ws-megamenu__mega-sub--l4 {
    padding-left: 0.85rem;
    margin-top: 0.15rem;
    margin-bottom: 0.3rem;
}

.ws-megamenu__mega-link--l4 {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.82;
    padding: 0.28rem 0.4rem;
}

.ws-megamenu__mega-link--l4:hover,
.ws-megamenu__mega-link--l4:focus-visible {
    opacity: 1;
}

.ws-megamenu__mega-bullet--l4 {
    font-size: 0.42rem;
}

/* ── Desktop focus-visible outline ────────────────────────── */
.ws-megamenu__link:focus-visible,
.ws-megamenu__sub-link:focus-visible,
.ws-megamenu__mega-link:focus-visible,
.ws-megamenu__toggle:focus-visible,
.ws-megamenu__mega-col-toggle:focus-visible,
.ws-megamenu__l3-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================================
   Mega Menu — Mobile & tablet  (< 992 px) : off-canvas flyout
============================================================ */
@media (max-width: 991px) {

    .ws-megamenu__inner {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
    }

    /* Dim page behind panel */
    .ws-megamenu__backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 10000;
        background: rgba(51, 51, 51, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .ws-megamenu--nav-open .ws-megamenu__backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Slide-in panel */
    .ws-megamenu__flyout {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(100vw - 48px, 400px);
        max-width: 92vw;
        z-index: 10001;
        background: var(--white);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        will-change: transform;
    }

    .ws-megamenu--nav-open .ws-megamenu__flyout {
        transform: translateX(0);
    }

    .ws-megamenu__flyout-scroll {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 0 0 max(1rem, env(safe-area-inset-bottom, 0px));
    }

    /* Hamburger stays in header above backdrop */
    .ws-megamenu__toggle {
        display: flex;
        order: 2;
        /* z-index: 10002; */
        position: relative;
        margin-left: auto;
    }

    /* Flyout header — title + close button */
    .ws-megamenu__flyout-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.9rem 1.15rem 0.9rem 1.25rem;
        border-bottom: 2px solid var(--border);
        background: var(--white);
        flex-shrink: 0;
    }

    .ws-megamenu__flyout-title {
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary);
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .ws-megamenu__flyout-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.2rem;
        height: 2.2rem;
        padding: 0;
        background: var(--bg-light);
        border: 1.5px solid var(--border);
        border-radius: var(--radius);
        color: var(--primary);
        font-size: 1.05rem;
        cursor: pointer;
        transition: background-color var(--transition), border-color var(--transition), color var(--transition);
        flex-shrink: 0;
    }

    .elementor-kit-6 button.ws-megamenu__flyout-close,
    .elementor-kit-6 button.ws-megamenu__toggle {
        background-color: var(--accent);
    }

    .ws-megamenu__flyout-close:hover,
    .ws-megamenu__flyout-close:focus-visible {
        background: var(--primary);
        border-color: var(--primary);
        color: var(--white);
        outline: none;
    }

    /* Vertical scrollable list inside flyout */
    .ws-megamenu__list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0 0 1.25rem;
        border: none;
        box-shadow: none;
        flex-wrap: nowrap;
    }

    .ws-megamenu__item {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .ws-megamenu__link {
        padding: 0.85rem 1.15rem;
        width: 100%;
        justify-content: space-between;
        font-size: 0.95rem;
        color: var(--primary);
        white-space: normal;
    }

    .ws-megamenu__link:hover,
    .ws-megamenu__link:focus-visible {
        background: var(--bg-light);
        color: var(--primary);
    }

    .ws-megamenu__link::after {
        display: none;
    }

    /* Sub-menu (simple dropdown markup): hidden until open */
    .ws-megamenu__sub {
        display: none;
    }

    .ws-megamenu__item--open > .ws-megamenu__sub {
        display: block;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border);
        border-radius: 0;
        background: var(--bg-light);
        padding: 0.25rem 0;
    }

    .ws-megamenu__sub-link {
        padding: 0.65rem 1.25rem 0.65rem 1.75rem;
        font-size: 0.875rem;
        white-space: normal;
    }

    /* Mega: no hover popover — panel stacks under parent when open */
    .ws-megamenu__mega {
        display: none;
        position: static;
        width: 100%;
        max-width: none;
        left: auto;
        right: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        background: var(--bg-light);
    }

    .ws-megamenu__item--open > .ws-megamenu__mega {
        display: block;
    }

    .ws-megamenu__mega-inner {
        padding: 0 0.5rem 0.75rem;
    }

    .ws-megamenu__mega-grid {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .ws-megamenu__mega-col {
        border: none;
        margin: 0;
        padding: 0;
    }

    .ws-megamenu__mega-col + .ws-megamenu__mega-col {
        border-left: none;
        padding-left: 0;
        border-top: none;
        margin-top: 0;
        padding-top: 0;
    }

    /* Flyout: L2 title is the accordion button — hide duplicate desktop heading */
    .ws-megamenu__mega-group-heading--desktop {
        display: none !important;
    }

    .ws-megamenu__mega-col-toggle {
        display: flex;
    }

    .ws-megamenu__mega-col-inner {
        display: none;
        padding: 0 0.35rem 0.5rem;
        border-bottom: 1px solid var(--border);
    }

    .ws-megamenu__mega-col--open .ws-megamenu__mega-col-inner {
        display: block;
    }

    .ws-megamenu__mega-link {
        padding: 0.5rem 0.35rem;
        font-size: 0.875rem;
    }

    .ws-megamenu__l3-toggle {
        display: flex;
    }

    .ws-megamenu__mega-li--has-l4 > .ws-megamenu__mega-sub--l4 {
        display: none;
        padding-left: 0.5rem;
        margin-top: 0.25rem;
    }

    .ws-megamenu__mega-li--has-l4.ws-megamenu__mega-li--l4-open > .ws-megamenu__mega-sub--l4 {
        display: block;
    }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .ws-megamenu__sub,
    .ws-megamenu__mega,
    .ws-megamenu__arrow,
    .ws-megamenu__flyout,
    .ws-megamenu__backdrop {
        transition: none;
    }
}
