/* ═══════════════════════════════════════════════════════════
   MerchPlatform v2.0 — Ultra Modern Merchandising Theme
   Design System: Dark Elegance + Vibrant Accents
   ═══════════════════════════════════════════════════════════ */

:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #5dade2;
    --accent: #e74c3c;
    --success: #2ecc71;
    --warning: #f39c12;
    --dark: #1a1c23;
    --darker: #111318;
    --body-bg: #f8f9fb;
    --card-bg: #ffffff;
    --text: #2c3e50;
    --text-light: #7f8c8d;
    --border: #e8eaf0;
    --shadow: 0 2px 20px rgba(0,0,0,.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,.1);
    --shadow-hover: 0 12px 48px rgba(0,0,0,.14);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all .3s cubic-bezier(.4,0,.2,1);
    --header-h: 72px;
    --nav-h: 50px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body {
    font-family: var(--font);
    background: var(--body-bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

/* ═══ TOP BAR ═══ */
.topbar { font-size: 12px; color: rgba(255,255,255,.7); }
.topbar-text { font-weight: 500; }

/* ═══ HEADER ═══ */
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.header-inner {
    display: flex; align-items: center; gap: 20px;
    height: var(--header-h); padding: 0;
}

.header-logo img { height: 44px; width: auto; transition: var(--transition); }
.header-logo:hover img { transform: scale(1.02); }
.logo-text { font-size: 22px; font-weight: 800; color: var(--dark); letter-spacing: -.5px; }

.header-search { flex: 1; max-width: 560px; position: relative; }

.search-wrapper {
    position: relative; display: flex; align-items: center;
    background: var(--body-bg); border: 2px solid transparent;
    border-radius: 50px; transition: var(--transition); overflow: hidden;
}
.search-wrapper:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(52,152,219,.1); }

.search-input {
    width: 100%; border: none; outline: none; background: transparent;
    padding: 10px 20px; font-family: var(--font); font-size: 14px;
    color: var(--text);
}
.search-input::placeholder { color: var(--text-light); }

.search-btn {
    border: none; background: var(--primary); color: #fff;
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); flex-shrink: 0;
    border-radius: 0 50px 50px 0;
}
.search-btn:hover { background: var(--primary-dark); }

.search-suggestions {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); display: none; z-index: 100;
    max-height: 400px; overflow-y: auto; margin-top: 4px;
}
.search-suggestions.active { display: block; }

.suggestion-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; cursor: pointer; transition: var(--transition);
}
.suggestion-item:hover { background: var(--body-bg); }
.suggestion-item img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius-sm); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.cart-btn {
    display: flex; align-items: center; gap: 8px;
    background: var(--primary); color: #fff !important;
    padding: 10px 20px; border-radius: 50px;
    font-weight: 600; font-size: 13px;
    position: relative; transition: var(--transition);
}
.cart-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(52,152,219,.3); color: #fff !important; }

.cart-count {
    background: var(--accent); color: #fff;
    font-size: 11px; font-weight: 700;
    min-width: 20px; height: 20px; line-height: 20px;
    text-align: center; border-radius: 50%;
    position: absolute; top: -4px; right: -4px;
}

.mobile-toggle {
    width: 36px; height: 36px; background: none; border: none;
    display: flex; flex-direction: column; justify-content: center;
    gap: 5px; cursor: pointer; padding: 4px;
}
.mobile-toggle span {
    display: block; height: 2px; background: var(--dark);
    border-radius: 2px; transition: var(--transition);
}

/* ═══ NAVIGATION ═══ */
.main-nav { position: sticky; top: var(--header-h); z-index: 9990; }

.nav-inner { display: flex; align-items: center; height: var(--nav-h); }

/* ═══ CATEGORY MENU — see catmenu.css ═══ */

.nav-menu {
    display: flex; align-items: center; list-style: none;
    margin: 0; padding: 0; gap: 0;
}

.nav-link {
    display: flex; align-items: center; gap: 4px;
    color: rgba(255,255,255,.8) !important;
    padding: 0 16px; height: var(--nav-h); line-height: var(--nav-h);
    font-size: 13px; font-weight: 500; white-space: nowrap;
    transition: var(--transition); position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0;
    height: 2px; background: var(--primary-light);
    transition: var(--transition); transform: translateX(-50%);
}
.nav-link:hover, .nav-link.active { color: #fff !important; }
.nav-link:hover::after, .nav-link.active::after { width: 60%; }

.nav-badge {
    background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 50px;
}

/* ═══ BREADCRUMBS ═══ */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 8px 0; }
.breadcrumb { margin: 0; font-size: 12px; }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-light); }
.breadcrumb-item+.breadcrumb-item::before { color: var(--text-light); }

/* ═══ PRODUCT CARDS ═══ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.product-card-img {
    position: relative; overflow: hidden;
    padding-top: 100%; /* Square aspect ratio */
    background: var(--body-bg);
}
.product-card-img img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: contain; padding: 16px;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .product-card-img img { transform: scale(1.08); }

.product-card-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    display: flex; flex-direction: column; gap: 4px;
}
.badge-label {
    padding: 3px 10px; border-radius: 50px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
}
.badge-featured { background: var(--primary); color: #fff; }
.badge-offer { background: var(--accent); color: #fff; }
.badge-new { background: var(--success); color: #fff; }

.product-card-body {
    padding: 14px 16px; flex: 1;
    display: flex; flex-direction: column;
}

.product-card-code {
    font-size: 11px; color: var(--text-light);
    font-weight: 500; margin-bottom: 4px;
    text-transform: uppercase; letter-spacing: .5px;
}

.product-card-name {
    font-size: 14px; font-weight: 600; color: var(--text);
    line-height: 1.4; margin-bottom: 8px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-card-name a { color: inherit; }
.product-card-name a:hover { color: var(--primary); }

.product-card-price {
    font-size: 16px; font-weight: 700; color: var(--primary);
    margin-top: auto; margin-bottom: 10px;
}
.product-card-price .old-price {
    font-size: 12px; color: var(--text-light);
    text-decoration: line-through; font-weight: 400;
    margin-left: 6px;
}

.product-card-actions {
    display: flex; gap: 6px;
}
.product-card-actions .btn { flex: 1; font-size: 12px; font-weight: 600; border-radius: var(--radius-sm); }

/* ═══ PRODUCT DETAIL ═══ */
.product-detail { padding: 40px 0; }
.product-gallery { position: relative; }

.gallery-main {
    width: 100%; aspect-ratio: 1; background: #fff;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}
.gallery-main img { max-width: 90%; max-height: 90%; object-fit: contain; }

.gallery-thumbs {
    display: flex; gap: 8px; margin-top: 12px; overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-thumb {
    width: 72px; height: 72px; flex-shrink: 0;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    cursor: pointer; overflow: hidden; transition: var(--transition);
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.product-info { padding-left: 20px; }
.product-info h1 { font-size: 26px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.product-code { color: var(--text-light); font-size: 13px; margin-bottom: 16px; }

.product-price-box {
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}
.product-price-box .price { font-size: 28px; font-weight: 800; color: var(--primary); }

.product-description { margin-bottom: 24px; color: var(--text); line-height: 1.8; }

.add-to-cart-form {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.qty-selector {
    display: flex; align-items: center; border: 2px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
}
.qty-selector button {
    width: 40px; height: 40px; border: none; background: var(--body-bg);
    cursor: pointer; font-size: 16px; transition: var(--transition);
}
.qty-selector button:hover { background: var(--primary); color: #fff; }
.qty-selector input {
    width: 60px; height: 40px; border: none; text-align: center;
    font-weight: 600; font-family: var(--font); font-size: 15px;
}

/* ═══ CATEGORY SIDEBAR ═══ */
.category-sidebar .cat-list { list-style: none; padding: 0; }
.cat-list li { border-bottom: 1px solid var(--border); }
.cat-list li a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; color: var(--text); font-size: 13px; font-weight: 500;
}
.cat-list li a:hover { color: var(--primary); }
.cat-list li a .count {
    background: var(--body-bg); padding: 2px 8px;
    border-radius: 50px; font-size: 11px; color: var(--text-light);
}

/* ═══ SECTIONS / HERO ════════════════════════════════════════════ */
.hero-section { position:relative; overflow:hidden; }
.hero-section .swiper,
.hero-section .swiper-wrapper { height:100% !important; }
.hero-section .swiper-slide   { overflow:hidden; }

.hero-slide { position:relative; overflow:hidden; width:100%; }
.hero-slide__img {
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; object-position:center; display:block;
}
.hero-slide__overlay { position:absolute; inset:0; z-index:1; pointer-events:none; }

/* STAGE */
.hs-stage {
    position:absolute; top:0; left:0; z-index:2;
    pointer-events:none; transform-origin:top left; overflow:visible;
}

/* LAYERS: JS controla opacity y transform via transition */
.hs-layer {
    position:absolute;
    line-height:1.25; word-break:break-word; box-sizing:border-box;
    /* estado inicial invisible seteado por PHP inline style */
}

/* Boton */
.hs-boton {
    display:inline-block; text-decoration:none;
    pointer-events:all; cursor:pointer;
    transition:filter .2s;
}
.hs-boton:hover { filter:brightness(1.15); }

/* Imagen */
.hs-imagen   { line-height:0; }
.hs-imagen a { pointer-events:all; cursor:pointer; display:block; }
.hs-imagen img { display:block; width:100%; height:auto; }
.hs-hover-scale:hover      img { transform:scale(1.06); transition:transform .35s ease; }
.hs-hover-brightness:hover img { filter:brightness(1.25); transition:filter .35s ease; }

@media(max-width:767px) { .hs-hide-mobile { display:none !important; } }

/* ═══ SECTION BLOCKS & TITLES ═══════════════════════════════════ */
.section-block {
    padding: 20px 0;
}

.section-title {
    font-size: 1.5rem;      /* ~24px — legible sin dominar */
    font-weight: 700;
    letter-spacing: -.01em;
    color: inherit;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.25;
    position: relative;
    display: inline-block;  /* para que la línea no ocupe todo el ancho */
}

/* Línea decorativa debajo del título */
.section-title::after {
    content: '';
    display: block;
    margin-top: 8px;
    height: 3px;
    width: 48px;
    border-radius: 2px;
    background: currentColor;
    opacity: .35;
}

/* Cuando el título está centrado */
.section-title.center,
.section-title.text-center {
    display: block;
    text-align: center;
}
.section-title.center::after,
.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* Wrapper de encabezado de sección (título + acción) */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

/* ═══ CATEGORY GRID ═══ */

.categories-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.category-card {
    background: #fff; border-radius: var(--radius);
    padding: 24px 16px; text-align: center;
    border: 1px solid var(--border); transition: var(--transition);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.category-card:hover {
    border-color: var(--primary); transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.category-card i { font-size: 32px; color: var(--primary); }
.category-card span { font-weight: 600; font-size: 13px; color: var(--text); }

/* ═══ CART / QUOTATION ═══ */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { font-size: 12px; text-transform: uppercase; color: var(--text-light); padding: 12px 8px; border-bottom: 2px solid var(--border); }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product-info { display: flex; align-items: center; gap: 12px; }
.cart-product-info img { width: 64px; height: 64px; object-fit: contain; border-radius: var(--radius-sm); background: var(--body-bg); flex-shrink: 0; }

/* ── Cart mobile: tabla → cards apiladas ── */
@media (max-width: 640px) {
    /* Ocultar encabezados */
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
        display: block;
        width: 100%;
    }
    /* Cada fila es una card */
    .cart-table tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }
    .cart-table td {
        padding: 4px 0;
        border-bottom: none;
        text-align: left !important;
    }
    /* Imagen + nombre: fila superior */
    .cart-product-info {
        margin-bottom: 10px;
    }
    .cart-product-info img {
        width: 52px;
        height: 52px;
    }
    /* Detalle debajo del nombre, no como columna */
    .cart-table td:nth-child(2) {
        display: block;
        padding: 2px 0 6px;
    }
    /* Cantidad + eliminar en línea */
    .cart-table td:nth-child(3),
    .cart-table td:nth-child(4) {
        display: inline-block;
        width: auto;
        vertical-align: middle;
        padding: 0 8px 0 0;
    }
    /* Eliminar al extremo derecho */
    .cart-table td:nth-child(4) {
        float: right;
        padding: 0;
    }
    /* Qty más compacta */
    .cart-table .qty-selector button { width: 32px; height: 32px; font-size: 14px; }
    .cart-table .qty-selector input  { width: 44px; height: 32px; font-size: 13px; }
}

.quotation-form { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--border); }
.quotation-form .form-label { font-weight: 600; font-size: 13px; }
.quotation-form .form-control { border-radius: var(--radius-sm); border: 1.5px solid var(--border); padding: 10px 14px; font-size: 14px; transition: var(--transition); }
.quotation-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(52,152,219,.1); }

/* ═══ BLOG ═══ */
.blog-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); transition: var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card-img { height: 200px; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.blog-card-body p { font-size: 13px; color: var(--text-light); }
.blog-card-meta { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }

/* ═══ CONTACT ═══ */
.contact-box {
    background: linear-gradient(135deg, var(--dark) 0%, #2c3e50 100%);
    color: #fff; border-radius: var(--radius-lg); padding: 48px;
}
.contact-box h3 { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.contact-info-item i { font-size: 20px; color: var(--primary-light); margin-top: 4px; }

/* ═══ BUTTONS ═══ */
.btn-primary {
    background: var(--primary); border-color: var(--primary); font-weight: 600;
    border-radius: var(--radius-sm); transition: var(--transition);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(52,152,219,.3); }

.btn-dark {
    background: var(--dark); border-color: var(--dark); font-weight: 600;
    border-radius: var(--radius-sm);
}
.btn-dark:hover { background: var(--darker); transform: translateY(-1px); }

.btn-outline-primary {
    border: 2px solid var(--primary); color: var(--primary); font-weight: 600;
    border-radius: var(--radius-sm);
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

.btn-lg { padding: 12px 28px; font-size: 15px; }

/* ═══ WHATSAPP FLOAT ═══ */
.whatsapp-float {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    background: #25d366; color: #fff !important;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; z-index: 9999;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: var(--transition);
    animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff !important; }

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
    50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}

/* ═══ BACK TO TOP ═══ */

/* ═══ FOOTER ═══ */
.site-footer { padding-top: 48px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0 40px;
}

.footer-col--logo { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { max-width: 160px; height: auto; display: block; }
.footer-brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.footer-slogan { font-size: 13px; opacity: .65; margin: 0; line-height: 1.5; }

.footer-title {
    font-size: 15px; font-weight: 700; margin-bottom: 16px;
    text-transform: uppercase; letter-spacing: 1px;
}

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact__item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.footer-contact__icon { margin-top: 3px; width: 15px; flex-shrink: 0; opacity: .65; }
.footer-contact__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.footer-contact__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.footer-contact__val { font-size: 13px; line-height: 1.4; word-break: break-word; }
.footer-contact__val a,
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { opacity: .85; text-decoration: underline; }

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links li a { color: inherit; font-size: 13px; transition: var(--transition); }
.footer-links li a:hover { color: var(--primary-light); padding-left: 4px; }

.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.social-icon {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,.08); color: inherit;
    font-size: 16px; transition: var(--transition);
}
.social-icon:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.footer-logo { opacity: .9; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }

/* ═══ ALERTS ═══ */
.alert { border-radius: var(--radius-sm); border: none; font-size: 14px; font-weight: 500; }

/* ═══ PAGINATION ═══ */
.pagination .page-item .page-link {
    border-radius: var(--radius-sm); margin: 0 3px;
    font-weight: 600; font-size: 13px; color: var(--text);
    border: 1px solid var(--border); padding: 8px 14px;
}
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.pagination .page-item .page-link:hover { background: var(--body-bg); }

/* ═══ LOADING SKELETON ═══ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══ EMPTY STATES ═══ */
.empty-state {
    text-align: center; padding: 60px 20px;
}
.empty-state i { font-size: 48px; color: var(--text-light); margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-state p { color: var(--text-light); }

/* ═══ ANIMATIONS ═══ */
.fade-in { animation: fadeIn .5s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.slide-up { animation: slideUp .6s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 991.98px) {
    .header-search { display: none; }
    .nav-inner { flex-wrap: wrap; height: auto; }
    .nav-menu {
        display: none; flex-direction: column; width: 100%;
        padding: 8px 0;
    }
    .nav-menu.open { display: flex; }
    .nav-link { height: 44px; line-height: 44px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .product-info { padding-left: 0; margin-top: 24px; }

    /* Category mobile — see catmenu.css */
}

@media (max-width: 767.98px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card-body { padding: 10px 12px; }
    .product-card-name { font-size: 13px; }
    .hero-content h2 { font-size: 24px; }
    .hero-slide__content { padding: 24px 0; }
    .section-block { padding: 20px 0; }
    .section-title { font-size: 1.2rem; }
    .section-title::after { width: 36px; }
    .cart-label { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-logo { max-width: 120px; }
    .contact-box { padding: 28px 20px; }
}

@media (max-width: 575.98px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card-img { padding-top: 100%; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .category-card { padding: 16px 8px; }
    .category-card span { font-size: 11px; }
}

/* ═══ PRINT ═══ */
@media print {
    .site-header, .main-nav, .site-footer, .whatsapp-float { display: none !important; }
    .site-main { padding: 0; }
}


/* ═══════════════════════════════════════════════════
   CATEGORY MENU v6 — 5 Styles, Desktop + Mobile
   ═══════════════════════════════════════════════════ */

/* ── Base ── */
.cm { position: relative; flex-shrink: 0; }

.cm-btn {
    display: flex; align-items: center; gap: 6px;
    background: var(--primary); color: #fff; border: none;
    padding: 0 20px; height: var(--nav-h);
    font-family: var(--font); font-weight: 600; font-size: 13px;
    cursor: pointer; white-space: nowrap; transition: filter .15s;
}
.cm-btn:hover { filter: brightness(1.1); }
.cm-btn .cm-chevron { font-size: 9px; transition: transform .25s; }

/* ── Dropdown ── */
.cm-drop {
    display: none; position: absolute; top: 100%;
    background: #fff; border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 48px rgba(0,0,0,.2);
    z-index: 9999; border-top: 3px solid var(--primary);
}
.cm[data-pos="left"] .cm-drop { left: 0; right: auto; }
.cm[data-pos="right"] { margin-left: auto; order: 99; }
.cm[data-pos="right"] .cm-drop { right: 0; left: auto; }
.cm-drop.is-open { display: flex; }

/* ── Roots panel ── */
.cm-roots {
    width: 280px; max-height: calc(100vh - 140px);
    overflow-y: auto; overflow-x: hidden;
    border-right: 1px solid #eee; flex-shrink: 0;
}

/* ── Detail panel ── */
.cm-detail {
    width: 320px; max-height: calc(100vh - 140px);
    overflow-y: auto; overflow-x: hidden;
    background: #fafbfd;
}
.cm-detail:empty { display: none; }

/* ── Root item ── */
.cm-root {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 14px; text-decoration: none;
    color: #222; font-size: 14px; font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    transition: all .1s; cursor: pointer;
}
.cm-root:last-child { border-bottom: none; }
.cm-root:hover, .cm-root.is-active { background: #f0f4ff; color: var(--primary); }

.cm-ico {
    width: 26px; height: 26px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; color: #fff; background: var(--primary); flex-shrink: 0;
}
.cm-img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; border-radius: 3px; }
.cm-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-arrow { font-size: 9px; color: #ccc; margin-left: auto; transition: color .15s; }
.cm-root:hover .cm-arrow, .cm-root.is-active .cm-arrow { color: var(--primary); }

/* ── Detail panels ── */
.cm-panel { display: none; padding: 16px; }
.cm-panel.is-active { display: block; }

.cm-panel-head {
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .8px; color: var(--primary);
    padding-bottom: 10px; margin-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}
.cm-panel-head a { color: inherit; text-decoration: none; }
.cm-panel-head a:hover { text-decoration: underline; }

.cm-child {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 0; text-decoration: none;
    font-size: 13px; font-weight: 500; color: #444; transition: color .1s;
}
.cm-child:hover { color: var(--primary); }
.cm-bullet {
    width: 6px; height: 6px; border-radius: 50%;
    background: #d0d5dd; flex-shrink: 0; transition: all .15s;
}
.cm-child:hover .cm-bullet { background: var(--primary); transform: scale(1.3); }

.cm-gc {
    display: block; padding: 4px 0 4px 14px;
    text-decoration: none; font-size: 12px; color: #888; transition: color .1s;
}
.cm-gc:hover { color: var(--primary); }
.cm-gc::before { content: '— '; color: #ccc; font-size: 10px; }

.cm-group { padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #eef0f4; }
.cm-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.cm-panel-cols { }

.cm-footer {
    display: block; text-align: center; padding: 10px 14px;
    font-size: 12px; font-weight: 600; color: var(--primary);
    text-decoration: none; border-top: 1px solid #eee;
    background: #fafbfd; border-radius: 0 0 8px 8px;
}
.cm-footer:hover { background: #f0f4ff; }


/* ═══════════════════════════════════════
   STYLE 2: Mega — All categories in wide grid
   ═══════════════════════════════════════ */
@media (min-width: 992px) {
    .cm[data-style="mega"] .cm-drop {
        width: 820px; max-width: calc(100vw - 40px);
        flex-direction: column;
    }
    .cm[data-style="mega"] .cm-roots { display: none; }
    .cm[data-style="mega"] .cm-detail {
        width: 100%; background: #fff;
        max-height: calc(100vh - 140px); overflow-y: auto;
        display: block;
    }
    .cm[data-style="mega"] .cm-panel {
        display: block; padding: 16px 20px;
        border-bottom: 1px solid #f0f0f0;
    }
    .cm[data-style="mega"] .cm-panel:last-child { border-bottom: none; }
    .cm[data-style="mega"] .cm-panel-head { font-size: 13px; font-weight: 700; }
    .cm[data-style="mega"] .cm-panel-cols {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 6px 20px;
    }
    .cm[data-style="mega"] .cm-group {
        border-bottom: none; padding-bottom: 0; margin-bottom: 0;
    }
    .cm[data-style="mega"] .cm-child { padding: 4px 0; font-size: 13px; }
    .cm[data-style="mega"] .cm-gc { padding: 2px 0 2px 14px; font-size: 11px; }
    .cm[data-style="mega"] .cm-footer { border-radius: 0 0 8px 8px; }
}


/* ═══════════════════════════════════════
   STYLE 3: Minimalista — Clean, no icons
   ═══════════════════════════════════════ */
.cm[data-style="minimal"] .cm-ico,
.cm[data-style="minimal"] .cm-img { display: none; }
@media (min-width: 992px) {
    .cm[data-style="minimal"] .cm-roots { width: 230px; }
    .cm[data-style="minimal"] .cm-detail { width: 260px; }
    .cm[data-style="minimal"] .cm-root {
        padding: 10px 14px; font-size: 13px; font-weight: 500;
        border-bottom-color: #f8f8f8;
    }
    .cm[data-style="minimal"] .cm-root:hover,
    .cm[data-style="minimal"] .cm-root.is-active { background: none; border-left: 3px solid var(--primary); }
    .cm[data-style="minimal"] .cm-child { font-size: 12px; padding: 6px 0; }
    .cm[data-style="minimal"] .cm-bullet { width: 4px; height: 4px; }
    .cm[data-style="minimal"] .cm-gc { font-size: 11px; }
    .cm[data-style="minimal"] .cm-panel { padding: 14px; }
    .cm[data-style="minimal"] .cm-panel-head { font-size: 10px; letter-spacing: 1.2px; }
}


/* ═══════════════════════════════════════
   STYLE 4: Compacto — Single column with inline children
   ═══════════════════════════════════════ */
@media (min-width: 992px) {
    .cm[data-style="compact"] .cm-drop { flex-direction: column; width: 300px; }
    .cm[data-style="compact"] .cm-roots { display: none; }
    .cm[data-style="compact"] .cm-detail {
        width: 100%; background: #fff;
        max-height: calc(100vh - 140px); overflow-y: auto;
        display: block;
    }
    .cm[data-style="compact"] .cm-panel { display: block; padding: 0; }
    .cm[data-style="compact"] .cm-panel-head {
        padding: 10px 14px 8px; margin: 0;
        background: #f4f6fa; border-bottom: 1px solid #e8eaf0;
        font-size: 12px; font-weight: 700; letter-spacing: .5px;
    }
    .cm[data-style="compact"] .cm-panel-cols { padding: 4px 14px 8px; }
    .cm[data-style="compact"] .cm-group {
        border-bottom: none; padding-bottom: 2px; margin-bottom: 2px;
    }
    .cm[data-style="compact"] .cm-child {
        padding: 5px 0; font-size: 12.5px; font-weight: 500;
    }
    .cm[data-style="compact"] .cm-bullet { width: 5px; height: 5px; }
    .cm[data-style="compact"] .cm-gc { padding: 2px 0 2px 14px; font-size: 11px; }
}


/* ═══════════════════════════════════════
   STYLE 5: Cards — Grid with card layout
   ═══════════════════════════════════════ */
@media (min-width: 992px) {
    .cm[data-style="cards"] .cm-drop {
        width: 720px; max-width: calc(100vw - 40px);
        flex-direction: column;
    }
    .cm[data-style="cards"] .cm-roots { display: none; }
    .cm[data-style="cards"] .cm-detail {
        width: 100%; background: #fff;
        max-height: calc(100vh - 140px); overflow-y: auto;
        display: block;
    }
    .cm[data-style="cards"] .cm-panel {
        display: block; padding: 14px 16px;
        border-bottom: 1px solid #f0f0f0;
    }
    .cm[data-style="cards"] .cm-panel:last-child { border-bottom: none; }
    .cm[data-style="cards"] .cm-panel-head { font-size: 12px; margin-bottom: 12px; }
    .cm[data-style="cards"] .cm-panel-cols {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
    .cm[data-style="cards"] .cm-group {
        background: #f8fafc; border-radius: 8px; padding: 12px;
        border: 1px solid #eee; border-bottom: 1px solid #eee;
        margin-bottom: 0; text-align: left;
        transition: border-color .15s, box-shadow .15s;
    }
    .cm[data-style="cards"] .cm-group:hover {
        border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.08);
    }
    .cm[data-style="cards"] .cm-child {
        justify-content: flex-start; font-size: 12px; font-weight: 600; padding: 4px 0;
    }
    .cm[data-style="cards"] .cm-bullet { display: none; }
    .cm[data-style="cards"] .cm-gc { padding-left: 0; text-align: left; font-size: 11px; }
    .cm[data-style="cards"] .cm-gc::before { content: ''; }
}


/* ═══════════════════════════════════════
   DESKTOP (≥992px) — Shared
   ═══════════════════════════════════════ */
@media (min-width: 992px) {
    .cm:hover .cm-drop { display: flex; }
    .cm:hover .cm-btn .cm-chevron { transform: rotate(180deg); }

    /* Force flex-direction for mega/compact/cards that use column */
    .cm[data-style="mega"]:hover .cm-drop,
    .cm[data-style="compact"]:hover .cm-drop,
    .cm[data-style="cards"]:hover .cm-drop { display: flex; flex-direction: column; }

    /* Hide mobile elements */
    .cm-mob-toggle { display: none; }
    .cm-mob-sub { display: none !important; }
    .cm-mob-sub3 { display: none !important; }
    .cm-root-row { display: block; }

    /* Right position */
    .cm[data-pos="right"] .cm-roots { order: 2; border-right: none; border-left: 1px solid #eee; }
    .cm[data-pos="right"] .cm-detail { order: 1; }
}


/* ═══════════════════════════════════════
   MOBILE (<992px) — Accordion for ALL styles
   ═══════════════════════════════════════ */
@media (max-width: 991.98px) {
    .cm { width: 100%; order: -1; }
    .cm-btn { width: 100%; justify-content: center; height: 42px; }

    .cm-drop {
        position: static !important; width: 100% !important; max-width: 100% !important;
        border-radius: 0; box-shadow: none;
        border-top: 1px solid rgba(255,255,255,.1);
        display: none; flex-direction: column;
    }
    .cm-drop.is-open { display: block !important; }

    /* Disable desktop hover */
    .cm:hover .cm-drop { display: none; }
    .cm-drop.is-open { display: block !important; }

    /* ALWAYS show roots on mobile (even for mega/cards/compact) */
    .cm-roots {
        display: block !important; width: 100% !important;
        max-height: none; border-right: none; overflow: visible;
    }

    /* ALWAYS hide detail panel on mobile */
    .cm-detail { display: none !important; }

    /* Root items */
    .cm-root { font-size: 13px; padding: 10px 14px; border-bottom: none; }
    .cm-ico { width: 22px; height: 22px; font-size: 10px; border-radius: 4px; }
    .cm-img { width: 18px; height: 18px; }
    .cm-arrow { display: none; }

    .cm-root-row {
        display: flex; align-items: center;
        border-bottom: 1px solid #f0f0f0;
    }
    .cm-root-row .cm-root { flex: 1; }
    .cm-root-row:last-child { border-bottom: none; }

    /* Toggle button */
    .cm-mob-toggle {
        display: flex; align-items: center; justify-content: center;
        width: 48px; align-self: stretch; flex-shrink: 0;
        border: none; background: none; cursor: pointer;
        color: #bbb; font-size: 11px;
        border-left: 1px solid #f0f0f0;
        transition: all .15s;
    }
    .cm-mob-toggle:hover { background: #f5f5f5; }
    .cm-mob-toggle.is-open { color: var(--primary); background: #f0f4ff; }
    .cm-mob-toggle i { transition: transform .2s; }
    .cm-mob-toggle.is-open i { transform: rotate(90deg); }

    /* Level 2 accordion */
    .cm-mob-sub {
        display: none;
        background: #f8fafc;
        border-left: 3px solid var(--primary);
        margin-left: 14px;
    }
    .cm-mob-sub.is-open { display: block; }

    .cm-mob-child {
        display: flex; align-items: center; gap: 8px;
        padding: 9px 14px; text-decoration: none;
        font-size: 12px; font-weight: 500; color: #555;
        border-bottom: 1px solid #eef0f4;
    }
    .cm-mob-child:last-child { border-bottom: none; }
    .cm-mob-child:hover { color: var(--primary); background: #f0f4ff; }

    /* Level 3 accordion */
    .cm-mob-sub3 {
        display: none;
        background: #f0f2f5;
        border-left: 2px solid #d0d5dd;
        margin-left: 12px;
    }
    .cm-mob-sub3.is-open { display: block; }

    .cm-mob-gc {
        display: block; padding: 7px 14px;
        text-decoration: none; font-size: 11px; color: #777;
        border-bottom: 1px solid #e8eaee;
    }
    .cm-mob-gc:last-child { border-bottom: none; }
    .cm-mob-gc:hover { color: var(--primary); }

    .cm-footer { border-radius: 0; }

    /* Hide icons for minimal on mobile too */
    .cm[data-style="minimal"] .cm-ico,
    .cm[data-style="minimal"] .cm-img { display: none; }
}

/* ═══ PÁGINA /PRODUCTOS ══════════════════════════════════════════ */
.productos-page { padding-top: 36px; padding-bottom: 60px; }

/* Header */
.productos-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.productos-page__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.2;
}
.productos-page__count {
    font-size: 13px;
    color: var(--text-muted, #888);
    margin: 0;
}
.productos-page__order {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.productos-page__order-label {
    font-size: 13px;
    color: var(--text-muted, #888);
    white-space: nowrap;
}
.productos-page__order-select {
    font-size: 13px;
    border-radius: var(--radius-sm, 6px);
    min-width: 180px;
}

/* Filtros activos */
.productos-page__active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.productos-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
}
.productos-filter-tag a {
    color: inherit;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    opacity: .7;
    margin-left: 2px;
}
.productos-filter-tag a:hover { opacity: 1; }
.productos-filter-tag--gold { background: #fef9e7; color: #b7791f; }
.productos-filter-tag--red  { background: #fde8e8; color: #c53030; }
.productos-filter-clear {
    font-size: 12px;
    color: var(--text-muted, #888);
    text-decoration: underline;
    margin-left: 4px;
}
.productos-filter-clear:hover { color: var(--primary, #2563eb); }

/* Layout 2 columnas */
.productos-page__layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

/* Sidebar */
.productos-sidebar {
    position: sticky;
    top: 130px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.productos-sidebar__card {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius, 10px);
    padding: 20px;
}
.productos-sidebar__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted, #888);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.productos-sidebar__title i { font-size: 12px; }

/* Filter buttons merged into catlist style */

/* Lista categorías */
.productos-sidebar__catlist,
.productos-sidebar__subcatlist {
    list-style: none;
    margin: 0;
    padding: 0;
}
.productos-sidebar__catlist > li { border-bottom: 1px solid var(--border, #e5e7eb); }
.productos-sidebar__catlist > li:last-child { border-bottom: none; }

.productos-sidebar__catlink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 4px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text, #374151);
    text-decoration: none;
    transition: color .15s;
    gap: 8px;
}
.productos-sidebar__catlink:hover { color: var(--primary, #2563eb); }
.productos-sidebar__catlink.is-active {
    color: var(--primary, #2563eb);
    font-weight: 700;
}
.productos-sidebar__catname { flex: 1; }
.productos-sidebar__catcount {
    font-size: 11px;
    color: var(--text-muted, #aaa);
    background: var(--bg-subtle, #f3f4f6);
    border-radius: 99px;
    padding: 1px 7px;
    flex-shrink: 0;
    font-weight: 600;
}
.productos-sidebar__catlink.is-active .productos-sidebar__catcount {
    background: var(--primary-light, #e8f0fe);
    color: var(--primary, #2563eb);
}

/* Sub-categorías: siempre visibles bajo su padre */
.productos-sidebar__subcatlist {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 14px;
    display: block;
}
.productos-sidebar__catlink--sub {
    font-size: 13px;
    font-weight: 400;
    padding: 5px 4px;
    color: var(--text-muted, #6b7280);
}
.productos-sidebar__catlink--sub::before {
    content: '–';
    margin-right: 6px;
    opacity: .4;
}
.productos-sidebar__catlink--sub:hover,
.productos-sidebar__catlink--sub.is-active { color: var(--primary, #2563eb); }
.productos-sidebar__catlink--sub.is-active { font-weight: 600; }

/* Grid 4 columnas para la página /productos */
.products-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}

/* Chevron toggle en sidebar */
.productos-sidebar__title .sb-chevron {
    margin-left: auto;
    font-size: 11px;
    transition: transform .25s ease;
    opacity: .5;
    display: none; /* oculto en desktop */
}
.productos-sidebar__title.sb-toggle {
    cursor: default;
    user-select: none;
}

/* Responsive */
@media (max-width: 1199px) {
    .products-grid--4col { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .productos-page__layout {
        grid-template-columns: 1fr;
    }
    .productos-sidebar {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    /* Sidebar completo oculto en mobile */
    .productos-sidebar.sb-sidebar-collapsed {
        display: none !important;
    }
    /* Botón toggle mobile */
    .sb-mobile-bar {
        margin-bottom: 8px;
    }
    .sb-mobile-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        background: var(--card-bg, #fff);
        border: 1px solid var(--border, #e5e7eb);
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        color: var(--text, #333);
        cursor: pointer;
        text-align: left;
    }
    .sb-mobile-toggle span { flex: 1; }
    .sb-mobile-chevron {
        font-size: 11px;
        transition: transform .25s;
    }
    .sb-mobile-toggle.is-open .sb-mobile-chevron {
        transform: rotate(180deg);
    }
    /* En mobile el chevron es visible y el título clickeable */
    .productos-sidebar__title .sb-chevron {
        display: block;
    }
    .productos-sidebar__title.sb-toggle {
        cursor: pointer;
        margin-bottom: 0;
    }
    /* Body colapsado por defecto en mobile (JS lo maneja) */
    .productos-sidebar__card .sb-body {
        overflow: hidden;
    }
    .productos-sidebar__card .sb-body.is-collapsed {
        display: none;
    }
    /* Chevron rotado cuando está abierto */
    .productos-sidebar__title.is-open .sb-chevron {
        transform: rotate(180deg);
        opacity: 1;
    }
    /* En desktop siempre visible, sin animación */
    .products-grid--4col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .productos-page__header { flex-direction: column; align-items: flex-start; }
    .products-grid--4col { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ CAROUSEL NAV BUTTONS ═══════════════════════════════════════ */
.carousel-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border, #e5e7eb);
    background: #fff;
    color: var(--text, #374151);
    font-size: 12px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    line-height: 1;
}
.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.carousel-btn.swiper-button-disabled {
    opacity: .35;
    cursor: default;
    pointer-events: none;
}

/* ─── Page Builder Columns ─────────────────────── */
@media (max-width:767px) {
  .pb-columns-grid { grid-template-columns: 1fr !important; }
}
.pb-col-title-text {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 10px;
}
.pb-col-title-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  opacity: .5;
}
.pb-col-html { line-height: 1.8; color: inherit; }
.pb-col-html p { margin-bottom: .9rem; }
.pb-col-html ul, .pb-col-html ol { padding-left: 1.4rem; margin-bottom: .9rem; }

/* Feature box */
.pb-feature { text-align: center; padding: 10px 0; }
.pb-feature-icon { font-size: 2.6rem; margin-bottom: 14px; }
.pb-feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.pb-feature-body { font-size: .9rem; color: #666; line-height: 1.65; margin: 0; }

/* Image block */
.pb-img-block { width: 100%; height: auto; border-radius: 8px; display: block; }

/* CTA inline */
.pb-cta-inline { text-align: center; padding: 16px 0; }
.pb-cta-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.pb-cta-sub { color: #666; font-size: .92rem; margin-bottom: 0; }

/* ─── Clients carousel ─────────────────────── */
.clients-section .swiper { overflow: hidden; }
.clients-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
}
.clients-slide img {
    max-height: 56px;
    max-width: 130px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .55;
    transition: filter .3s, opacity .3s;
    display: block;
}
