
/* =============================================================
   NANOTRONIC — Header search bar sizing (responsive)
   Approach: Hide kadence header with css, and use only custom code
   ============================================================= */


/* -------- DESKTOP (default, screens wider than 1024px) --------
   The header row is a grid with three tracks: left | center | right.
   We force the center track to sit between 400px and 700px, while
   left and right stay "auto" (they only take the space they need).
   minmax(400px, 700px) = never smaller than 400, never larger than 700. */



/* Hide Kadence's default Main Row (logo/search/cart/account) —
   we're replacing it with our own custom markup below. */
.site-header .site-header-row.site-header-focus-item[data-section="main_row"],
.site-main-header-wrap {
    display: none !important;
}

.nano-top-row {
    background: #fff;
    border-bottom: 1px solid #e2e5ea;
    
    position: sticky;
    top: 0;
    z-index: 999;
}
.nano-top-inner {
    max-width: 1290px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.nano-top-logo img { height: 60px; width: auto; display: block; }
.nano-top-search { flex: 1; max-width: 700px; }
.nano-top-account, .nano-top-cart {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #12233a;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    margin-left: auto;
}
.nano-top-account i, .nano-top-cart i { font-size: 20px; }
.nano-cart-count {
    background: #e27900;
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
}
.nano-top-hamburger {
    display: none;   /* hidden by default (desktop) */
}


@media (max-width: 768px) {
    .nano-top-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 16px;
    }

    /* Prevent the search box from forcing overflow that pushes other items out */
    .nano-top-search {
        min-width: 0;
        flex: 1 0 100%;   /* full width, on its own row */
        max-width: 100%;
        order: 4;
    }

    .nano-top-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        order: 1;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px;
    }
    .nano-top-hamburger .nano-hamburger,
    .nano-top-hamburger .nano-hamburger::before,
    .nano-top-hamburger .nano-hamburger::after {
        background: #12233a;
    }

    .nano-top-logo { order: 2; flex: 1; display: flex; justify-content: center; }
    .nano-top-logo img { height: 34px; }

    .nano-top-cart { order: 3; margin-left: 0; }
    .nano-top-account { display: none; }  /* hide text label on mobile, icon-only elsewhere if needed */
}


/* ===== MEGA-DROPDOWN (Apple-style) — desktop bar only, click-to-open ===== */

/* ===== MEGA-DROPDOWN (Apple-style) — properly depth-scoped ===== */

/* TOP-level trigger only (Apple) */
.nano-bar-list > li.menu-item-has-children {
    position: relative;
}

/* TOP-level panel only — direct child of Apple's <li> */
.nano-bar-list > li.menu-item-has-children > .sub-menu {
    list-style: none;
    margin: 0;
    padding: 28px 32px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 6px);
    background: #fff;
    border: 1px solid #e2e5ea;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    display: flex;
    gap: 48px;
    min-width: 480px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 500;
}

.nano-bar-list > li.menu-item-has-children.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* Level-2 columns (Mac / iPad / iPhone) */
.nano-bar-list > li.menu-item-has-children > .sub-menu > li {
    display: flex;
    flex-direction: column;
    min-width: 160px;
    position: static;
}
.nano-bar-list > li.menu-item-has-children > .sub-menu > li > a {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #999;
    margin-bottom: 12px;
    text-decoration: none;
    text-align: left;
}

/* Level-3 links — nested ul under each level-2 li */
.nano-bar-list > li.menu-item-has-children > .sub-menu > li > .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: static;
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    box-shadow: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
}
.nano-bar-list > li.menu-item-has-children > .sub-menu > li > .sub-menu li a {
    display: block;
    font-size: 15px;
    color: #12233a;
    padding: 6px 0;
    white-space: nowrap;
    text-decoration: none;
    text-align: left;
}
.nano-bar-list > li.menu-item-has-children > .sub-menu > li > .sub-menu li a:hover {
    color: #e27900;
}

/* Overlay (unchanged) */
.nano-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 35, 58, 0.35);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 400;
    pointer-events: none;
}
body.nano-mega-open .nano-menu-overlay {
    opacity: 1;
    visibility: visible;
}

/*  Apple forth column */
.nano-apple-promo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 180px;
    background: #f4f6f9;
    border-radius: 12px;
    padding: 24px 20px;
    padding-left: 24px;
    margin-left: 24px;         /* gap from the three link columns */
    border-left: 1px solid #e2e5ea;             /* remove the old divider line */
}
.nano-apple-logo {
    width: 36px;
    height: auto;
    margin-bottom: 14px;
    opacity: 0.85;
}
.nano-bar-list > li.menu-item-has-children > .sub-menu > li.nano-apple-promo-col > a {
    font-size: 13px;
    font-weight: 600;
    color: #12233a;
    text-decoration: none;
    line-height: 1.4;
    text-align: center;
}
.nano-bar-list > li.menu-item-has-children > .sub-menu > li.nano-apple-promo-col > a:hover {
    color: #e27900;
}


/* ===== END OF MEGA-DROPDOWN (Apple-style) — desktop bar only ===== */

/* Search field styling — applies to all screen sizes */
.dgwt-wcas-search-input {
    background: #ffffff !important;
    border: 1.5px solid #e2e5ea !important;
    border-radius: 8px !important;
    height: 45px !important;
    font-size: 15px !important;
    padding: 0 14px !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

/* Orange focus state — field lights up in your brand color when clicked */
.dgwt-wcas-search-input:focus {
    border-color: #e27900 !important;
    box-shadow: 0 0 0 3px rgba(226, 121, 0, 0.12) !important;
    outline: none !important;
}

.dgwt-wcas-search-submit {
        display: none !important;
    }

/* -------------- */
/* -------------- */
/* -------------- */
/* -------------- */
/* ============================================================
   NANOTRONIC — Todas las categorias migration on scrolling
   ============================================================ */

.nano-top-categories-slot {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.nano-top-categories-slot.is-visible {
    display: flex;
    opacity: 1;
}
/* This is a desktop-only feature — mobile already has its own hamburger */
@media (max-width: 768px) {
    .nano-top-categories-slot { display: none !important; }
}

/* -------------- */
/* -------------- */
/* -------------- */
/* -------------- */
/* ============================================================
   NANOTRONIC — Custom category nav (bar + off-canvas drawer)
   ============================================================ */

/* ---------- HORIZONTAL BAR WRAPPER ---------- */
.nano-nav-wrapper {
    width: 100%;
    background: white;       /* bar background (navy) */
    border-bottom: 1px solid #e2e5ea;
		border-top: 1px solid #e2e5ea;
		box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.nano-nav-inner {
    max-width: 1290px;                   /* match your content width */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

/* Push the bar menu (Laptops, PCs, etc.) to the right */
.nano-nav-inner .nano-bar-menu {
    margin-left: auto;   /* the magic: shoves everything after the toggle to the right */
}

/* ---------- "TODAS LAS CATEGORÍAS" TRIGGER BUTTON ---------- */
.nano-drawer-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #e27900;                 /* orange button */
    color: #fff;
    border: none;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
}
.nano-drawer-toggle:hover { background: #c96c00; }

/* Hamburger icon (drawn with CSS) */
.nano-hamburger {
    width: 18px;
    height: 2px;
    background: #fff;
    position: relative;
    display: inline-block;
}
.nano-hamburger::before,
.nano-hamburger::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #fff;
}
.nano-hamburger::before { top: -6px; }
.nano-hamburger::after  { top: 6px; }

/* ---------- HORIZONTAL BAR MENU ITEMS ---------- */
.nano-bar-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.nano-bar-list li a {
    display: block;
    padding: 12px 14px;
    color: black;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.15s ease;
}
.nano-bar-list li a:hover { color: #e27900; }   /* orange hover */

/* ---------- OFF-CANVAS DRAWER ----------
   NOTE: this element has a transform (translateX). A transform makes
   this element the "containing block" for absolutely-positioned
   children — which is exactly what lets the flyout position itself
   against the drawer's right edge below. */
.nano-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
    transform: translateX(-100%);        /* hidden off-screen to the left */
    transition: transform 0.28s ease;
    z-index: 9999;
    overflow: visible;                   /* IMPORTANT: visible (not auto) so
                                            the flyout isn't clipped */
}
.nano-drawer.is-open { transform: translateX(0); }   /* slid into view */

/* Drawer header (title + close button) */
.nano-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fff;
		letter-spacing: 1.5px;
    color: #e27900;
    font-weight: 800;
		text-transform: uppercase;
		border-bottom: 1px solid #e2e5ea;
}
.nano-drawer-close {
    background: none;
    border: none;
    color: #e27900;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

/* ---------- DRAWER: TOP-LEVEL CATEGORY LIST ---------- */
.nano-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nano-drawer-list > li {
    border-bottom: none;
    /*position: relative; */                 /* anchor point for its flyout */
}


.nano-drawer-list > li > a {
    display: flex;
    padding: 14px 20px;
    color: #12233a;
    text-decoration: none;
    font-size: 15px;
	/* Make room for an icon on each top -level*/
		align-items: center;
		gap: 12px;
}
.nano-drawer-list > li > a:hover {
    background: #f4f6f9;
    color: #e27900;
}

/* The icon itself (Tabler icons are a font; we inject via ::before) */
.nano-drawer-list > li > a::before {
    font-family: "tabler-icons";
    font-size: 20px;
    color: #e27900;              /* orange icons — matches your brand */
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}


/* When the category is active (flyout open), icon turns white to match the orange bg */
.nano-drawer-list > li.active-parent > a::before {
    color: #fff;
}

/* Arrow indicator on categories that have subcategories */
.nano-drawer .menu-item-has-children > a::after {
    content: "›";
    float: right;
    font-size: 1.9em;
    line-height: 1;
    color: #999;
}

/* Category icons (Tabler webfont unicodes) */
#menu-item-4941 > a::before { content: "\eb64"; }  /* Laptops → device-laptop */
#menu-item-4942 > a::before { content: "\ee7a"; }  /* PCs escritorio → device-desktop */
#menu-item-4978 > a::before { content: "\f07c"; }  /* Servidores → server */
#menu-item-5003 > a::before { content: "\ec17"; }  /* Apple → brand-apple */
#menu-item-4944 > a::before { content: "\ef8e"; }  /* Partes y componentes → cpu */
#menu-item-5000 > a::before { content: "\ef61"; }  /* Monitores → device-tv */
#menu-item-5001 > a::before { content: "\f27c"; }  /* UPS/energía → battery */
#menu-item-5002 > a::before { content: "\effc"; }  /* Software → code */

/* ---------- SUBCATEGORY FLYOUT PANEL ----------
   position: absolute + left: 100% positions it against the drawer's
   RIGHT edge. This works because the drawer's transform makes it the
   containing block. Hidden by default; revealed via .flyout-open (JS). */
.nano-drawer .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    left: 100%;                          /* sit flush against drawer's right edge */
    width: 320px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 12px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 10000;
    overflow-y: auto;                    /* flyout itself can scroll if long */
}

/* Reveal the flyout when JS adds .flyout-open (on click) */
.nano-drawer .sub-menu.flyout-open {
    opacity: 1;
    visibility: visible;
}

/* Flyout link styling */
.nano-drawer .sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: #12233a;
    text-decoration: none;
    font-size: 14px;
    border-bottom: none;
}
.nano-drawer .sub-menu li a:hover {
    background: #f4f6f9;
    color: #e27900;
}

/* ---------- OVERLAY (dims page behind drawer) ---------- */
.nano-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease;
    z-index: 9998;
}
.nano-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}


/* Active parent highlighted orange */
.nano-drawer-list > li.active-parent > a {
    background: #e27900;
    color: #fff;
}
.nano-drawer-list > li.active-parent > a::after {
    color: #fff;
}

/* Flyout title header */
.nano-flyout-title {
    padding: 16px 20px 4px;
    font-size: 18px;
    font-weight: 600;
    color: #12233a;
}
/* "Todo en..." shortcut link */
.nano-flyout-todo {
    display: block;
    padding: 0 20px 14px;
    font-size: 13px;
    color: #e27900;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}
.nano-flyout-todo:hover { text-decoration: underline; }


/* ---------- RESPONSIVE: hide horizontal bar on mobile ---------- */
@media (max-width: 768px) {
    .nano-nav-wrapper { display: none; }   /* drawer/hamburger handles mobile */
}






/* ===== HOMEPAGE HERO ===== */
.nano-home {
    max-width: 1290px;
    margin: 0 auto;
    padding: 24px 20px;
}

.nano-hero-inner {
    display: flex;
    gap: 12px;
    height: 340px;
}

/* Big banner — now light, text left + image right */
.nano-hero-main {
    flex: 2;
    background: #f4f6f9;                  /* light background */
    border: 0.5px solid #e2e5ea;
    border-radius: 12px;
    padding: 0 0 0 36px;                 /* padding on the text side only */
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    gap: 16px;
}

/* Text column */
.nano-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
}
.nano-hero-eyebrow {
    font-size: 12px;
    color: #e27900;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.nano-hero-title {
    font-size: 30px;
    font-weight: 600;
    margin: 8px 0;
    color: #12233a;                      /* dark text on light bg */
    line-height: 1.1;
}
.nano-hero-text {
    font-size: 14px;
    color: #5f5e5a;
    max-width: 280px;
    margin: 0;
}
.nano-hero-btn {
    display: inline-block;
    margin-top: 18px;
    background: #e27900;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 11px 22px;
    border-radius: 8px;
    text-decoration: none;
    width: fit-content;
    transition: background 0.15s ease;
}
.nano-hero-btn:hover { background: #c96c00; }

/* Image column */
.nano-hero-image {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nano-hero-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;                 /* keeps the whole MacBook visible */
    display: block;
}

/* Mobile: stack text over image */
@media (max-width: 768px) {
    .nano-hero-main {
        flex-direction: column;
        padding: 24px;
        text-align: center;
    }
    .nano-hero-content { padding: 0 0 16px; align-items: center; }
    .nano-hero-text { max-width: 100%; }
    .nano-hero-image img { max-height: 200px; }
}


/* ---- SIDE PROMOS (right): two stacked boxes ---- */
/* Promo tile as mini-card: image on top, text below */
.nano-hero-promo {
    flex: 1;
    background: #f4f6f9;
    border: 0.5px solid #e2e5ea;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nano-hero-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.nano-promo-img {
    width: 100%;
    height: 80px;                 /* image area height on desktop */
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.nano-promo-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.nano-promo-text {
    padding: 12px 16px;
}
.nano-promo-eyebrow { display: block; font-size: 11px; font-weight: 600; color: #993c1d; }
.nano-promo-title  { display: block; font-size: 16px; font-weight: 600; color: #12233a; margin: 2px 0; }
.nano-promo-sub    { display: block; font-size: 12px; color: #5f5e5a; }

/* Mobile: big banner full row, then two promos side by side */
@media (max-width: 768px) {
    .nano-hero-inner {
        flex-direction: column;
        height: auto;
    }
    .nano-hero-main {
        flex-direction: column;
        padding: 24px;
        text-align: center;
    }
    .nano-hero-content { padding: 0 0 16px; align-items: center; }
    .nano-hero-text { max-width: 100%; }
    .nano-hero-image { width: 100%; }
    .nano-hero-image img { max-height: none; width: 100%; height: auto; }

    /* Two promos side by side in their own row */
    .nano-hero-side {
        flex-direction: row;      /* side by side on mobile */
        width: 100%;
    }
    .nano-promo-img { height: 70px; }   /* slightly smaller image on mobile */
}


/* ===== End homepage hero ===== */

/* ===== TRUST / FINANCING STRIP ===== */
.nano-trust {
    max-width: 1290px;
    margin: 0 auto;
    padding: 10px 1px 10px;   /* was likely "0 20px 24px" — added top padding */
    width: 100%;
    box-sizing: border-box;
    clear: both;               /* ensures it starts fresh below the hero, no overlap */
}
.nano-trust-inner {
    background: #fff;
    border: 0.5px solid #e2e5ea;
    width: 100%;
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.nano-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex: 1;
    min-width: 180px;
}
.nano-trust-item i {
    font-size: 24px;
    flex-shrink: 0;
}
.nano-trust-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #12233a;
}
.nano-trust-sub {
    display: block;
    font-size: 11.5px;
    color: #5f5e5a;
}

/* Icon colors per item */
.nano-trust-item:nth-child(1) i { color: #1d9e75; }  /* pago seguro - green */
.nano-trust-item:nth-child(2) i { color: #185fa5; }  /* envío - blue */
.nano-trust-item:nth-child(3) i { color: #e27900; }  /* financiamiento - orange */
.nano-trust-whatsapp i { color: #1d9e75; }            /* whatsapp - green */

/* WhatsApp item gets a subtle hover cue since it's clickable */
.nano-trust-whatsapp:hover .nano-trust-title { color: #1d9e75; }

/* Mobile: stack into 2x2 grid */
@media (max-width: 768px) {
    .nano-trust-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .nano-trust-item { min-width: 0; }
}



/* ===== END OF TRUST / FINANCING STRIP ===== */


/* ===== OFERTAS / PRODUCT GRID ===== */
.nano-products {
    max-width: 1290px;
    margin: 0 auto;
    padding: 20px 1px;
}
.nano-products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
}
.nano-products-title {
    font-size: 20px;
    font-weight: 600;
    color: #12233a;
    margin: 0;
}
.nano-products-sub {
    font-size: 13px;
    color: #5f5e5a;
    margin: 2px 0 0;
}
.nano-products-viewall {
    font-size: 13px;
    font-weight: 500;
    color: #e27900;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nano-products-viewall:hover { text-decoration: underline; }

.nano-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.nano-product-card {
    background: #fff;
    border: 0.5px solid #e2e5ea;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.nano-product-card:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.nano-product-img-wrap {
    display: block;
    position: relative;
    background: #f4f6f9;
    height: 160px;
}
.nano-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
}
.nano-product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e24b4a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 5px;
    z-index: 2;
}

.nano-product-info { padding: 12px; }
.nano-product-name {
    display: block;
    font-size: 13px;
    color: #12233a;
    text-decoration: none;
    line-height: 1.3;
    height: 34px;
    overflow: hidden;
}
.nano-product-price {
    margin-top: 6px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.nano-price-now {
    font-size: 17px;
    font-weight: 600;
    color: #e27900;
}
.nano-price-old {
    font-size: 12px;
    color: #a9a9a5;
    text-decoration: line-through;
}

/* Add to cart button — matches WooCommerce's AJAX button, restyled */
.nano-add-to-cart {
    display: block;
    text-align: center;
    background: #e27900 !important;
    color: #fff !important;
    font-size: 12.5px;          /* smaller */
    font-weight: 500;
    padding: 7px 10px;          /* tighter */
    border-radius: 6px;         /* slightly less rounded */
    margin-top: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
    line-height: 1.4;
}
.nano-add-to-cart:hover { background: #c96c00 !important; }
.nano-add-to-cart.loading { opacity: 0.6; }  /* WooCommerce adds this class during AJAX request */
.nano-add-to-cart.added::after {
    content: " ✓";
}

/* Responsive grid */
@media (max-width: 1024px) {
    .nano-products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .nano-products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ===== END OF OFERTAS / PRODUCT GRID ===== */





/* ===== NOVEDADES CAROUSEL ===== */
.nano-novedades {
    background: #ebeff3;
    max-width: none;
    margin: 0 auto;
    padding: 30px 0px;
    border-radius: 8px;
}
.nano-novedades-inner {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 24px;
}

/* Left intro panel */
.nano-novedades-intro {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.nano-novedades-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #e27900;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e27900;
    font-size: 18px;
    margin-bottom: 10px;
}
.nano-novedades-title {
    font-size: 18px;
    font-weight: 600;
    color: #12233a;
    line-height: 1.3;
    margin: 0 0 16px;
}
.nano-novedades-btn {
    display: inline-block;
    background: #e27900;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    width: fit-content;
}
.nano-novedades-btn:hover { background: #c96c00; }

/* Carousel */
.nano-carousel-wrap {
    flex: 1;
    position: relative;
    min-width: 0;   /* allow flex child to shrink below content width */
}
.nano-carousel-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    scrollbar-width: none;         /* hide scrollbar on Firefox */
}
.nano-carousel-track::-webkit-scrollbar { display: none; }  /* hide on Chrome/Safari */

.nano-carousel-card {
    flex: 0 0 200px;               /* fixed card width in the carousel */
    scroll-snap-align: start;
}

.nano-carousel-arrow {
    position: absolute;
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 0.5px solid #e2e5ea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #12233a;
    font-size: 18px;
    z-index: 3;
}
.nano-carousel-arrow:hover { background: #f4f6f9; }

@media (max-width: 768px) {
    /* Instead of hiding the intro, turn it into a compact header above the carousel */
    .nano-novedades-intro {
        display: block;              /* was: display: none */
        flex: none;
        margin-bottom: 12px;
    }
    .nano-novedades-inner {
        flex-direction: column;
    }

    /* Shrink the icon + title for mobile, hide the button (optional) */
    .nano-novedades-icon {
        width: 32px;
        height: 32px;
        font-size: 15px;
        margin-bottom: 6px;
    }
    .nano-novedades-title {
        font-size: 16px;
        margin: 0 0 8px;
    }
    .nano-novedades-btn {
        /*
        font-size: 12.5px;
        padding: 8px 16px;
        */
        display:none;
    }

    .nano-carousel-card { flex: 0 0 160px; }
}
/* ===== END OF NOVEDADES CAROUSEL ===== */



/* ===== FEATURED TOPICS ===== */
.nano-topics {
    max-width: 1290px;
    margin: 0 auto;
    padding: 32px 20px;
}
.nano-topics-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.nano-topic-card {
    text-decoration: none;
    display: block;
    background: #fff;
    border: 0.5px solid #e2e5ea;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nano-topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}


/* Image no longer needs its own rounded corners — the card handles it */
.nano-topic-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f4f6f9;
    margin-bottom: 0;             /* was 12px — card padding handles spacing now */
}
.nano-topic-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}


/* Caption now sits inside the card with its own padding */
.nano-topic-title {
    font-size: 16px;
    font-weight: 600;
    color: #12233a;
    margin: 0 0 4px;
    padding: 14px 16px 0;
}
.nano-topic-caption {
    font-size: 13px;
    color: #5f5e5a;
    margin: 0;
    line-height: 1.4;
    padding: 0 16px 16px;
}

/* Mobile: horizontal scroll-snap carousel, same pattern as Novedades */
@media (max-width: 768px) {
    .nano-topics-inner {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        padding-bottom: 4px;
    }
    .nano-topics-inner::-webkit-scrollbar { display: none; }

    .nano-topic-card {
        flex: 0 0 78%;         /* shows most of one card + a peek of the next */
        scroll-snap-align: start;
    }
}

/* ===== END OF FEATURED TOPICS ===== */



/* ===== TOP BRANDS ===== */
.nano-brands {
    max-width: 1290px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}
.nano-brands-title {
    font-size: 18px;
    font-weight: 600;
    color: #12233a;
    text-align: center;
    margin: 0 0 20px;
}
.nano-brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.nano-brand-item {
    background: #fff;
    border: 0.5px solid #e2e5ea;
    border-radius: 12px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nano-brand-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.nano-brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(50%);
    opacity: 0.6;
    transition: filter 0.15s ease, opacity 0.15s ease;
}
.nano-brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Mobile: grid down to 3 columns */
@media (max-width: 768px) {
    .nano-brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .nano-brand-item { height: 64px; padding: 10px; }
    .nano-brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(10%);
    opacity: 0.8;
    transition: filter 0.15s ease, opacity 0.15s ease;
}
}


/* ===== END OF TOP BRANDS ===== */



/* ===== FOOTER ===== */
.nano-footer {
    background: #12233a;
    color: #cdd7e3;
    margin-top: 40px;
}
.nano-footer-inner {
    max-width: 1290px;
    margin: 0 auto;
    padding: 48px 20px 32px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
}

.nano-footer-logo {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}
.nano-footer-text {
    font-size: 13px;
    color: #a9b4c0;
    line-height: 1.6;
    margin: 0 0 8px;
}
.nano-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.nano-footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s ease;
}
.nano-footer-social a:hover { background: #e27900; }

.nano-footer-heading {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.nano-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nano-footer-links li {
    font-size: 13px;
    color: #a9b4c0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nano-footer-links a {
    color: #a9b4c0;
    text-decoration: none;
    transition: color 0.15s ease;
}
.nano-footer-links a:hover { color: #e27900; }

.nano-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
}
.nano-footer-bottom-inner {
    max-width: 1290px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #8b96a3;
}
.nano-footer-payments {
    display: flex;
    gap: 10px;
    font-size: 20px;
}

/* Mobile: stack columns */
@media (max-width: 768px) {
    .nano-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .nano-footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===== END OF FOOTER ===== */



/* ===== CSS FOR CATEGORY/SHOP RESULTS ===== */

/* Shop/category page grid — reuses homepage product card styles */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.nano-add-to-cart:hover { background: #c96c00 !important; }
.nano-view-product {
    background: #12233a !important;   /* distinct color for "view" vs "add" */
}
.nano-view-product:hover { background: #1a3355 !important; }

@media (max-width: 1024px) {
    ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    ul.products { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
}


/* Styling the filter section  */

.nano-shop-wrap {
    max-width: 1290px;
    margin: 0 auto;
    padding: 24px 20px;
}
.nano-shop-inner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
.nano-shop-sidebar {
    flex: 0 0 240px;
}
.nano-shop-main {
    flex: 1;
    min-width: 0;
}



@media (max-width: 1024px) {
    .nano-shop-inner { flex-direction: column; }
    .nano-shop-sidebar { flex: none; width: 100%; }
}

/* ===== SHOP FILTER SIDEBAR ===== */

.nano-filter-widget {
    background: #fff;
    border: 0.5px solid #e2e5ea;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 14px;
}

.nano-filter-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #12233a;
    margin: 0 0 10px;
}

/* ---- Price ---- */

.nano-filter-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.nano-filter-price-row input {
    width: 100%;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 13px;
}

.nano-filter-price-btn {
    width: 100%;
    background: #e27900;
    color: #fff;
    border: none;
    padding: 7px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
}

/* ---- Checkbox-style links (attributes + stock) ---- */

.nano-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #12233a;
    text-decoration: none;
    padding: 5px 0;
}

.nano-filter-box {
    width: 16px;
    height: 16px;
    border: 1.5px solid #cfd5db;
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
}

.nano-filter-checkbox.is-checked .nano-filter-box {
    background: #e27900;
    border-color: #e27900;
}

.nano-filter-checkbox.is-checked .nano-filter-box::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: #fff;
    font-size: 11px;
}

.nano-filter-count {
    color: #999;
    font-size: 11.5px;
    margin-left: auto;
}

/* ---- Clear all ---- */

.nano-filter-clear-all {
    display: block;
    text-align: center;
    font-size: 12.5px;
    color: #e27900;
    text-decoration: underline;
    margin-top: 4px;
}

/* Mobile filter toggle button — hidden on desktop */
.nano-filter-mobile-toggle {
    display: none;
}
.nano-filter-sidebar-header {
    display: none;
}


@media (max-width: 1024px) {

    .nano-shop-inner {
        display: flex;
        flex-direction: column;
    }

    .nano-filter-mobile-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        background: #fff;
        border: 1px solid #e2e5ea;
        border-radius: 8px;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 500;
        color: #12233a;
        margin-bottom: 12px;
        cursor: pointer;
    }
    .nano-filter-mobile-toggle i {
        color: #e27900;
        font-size: 18px;
    }

    .nano-shop-sidebar {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border: 1px solid #e2e5ea;
        border-radius: 10px;
        margin-bottom: 12px;
    }
    .nano-shop-sidebar.is-open { max-height: 2000px; }

    .nano-filter-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 16px;
        background: #f4f6f9;
        font-weight: 600;
        color: #12233a;
        border-bottom: 1px solid #e2e5ea;
    }
    .nano-filter-close {
        background: none;
        border: none;
        font-size: 22px;
        cursor: pointer;
        color: #12233a;
    }
}
/* Hide the sort dropdown on search results only */
body.search-results .woocommerce-ordering {
    display: none !important;
}

/* ===== END OF SHOP FILTER SIDEBAR ===== */


/* ===== SINGLE PRODUCT PAGE ===== */

.single-product div.product {
    max-width: 1290px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* Gallery */
.woocommerce-product-gallery {
    border-radius: 12px;
    overflow: hidden;
    background: #f4f6f9;
}
.woocommerce-product-gallery__image img {
    border-radius: 12px;
}
.flex-control-thumbs li img {
    border-radius: 8px;
    border: 1px solid #e2e5ea;
    transition: border-color 0.15s ease;
}
.flex-control-thumbs li img.flex-active,
.flex-control-thumbs li img:hover {
    border-color: #e27900;
}

/* Title + price */
.product .summary .product_title {
    font-size: 26px;
    font-weight: 600;
    color: #12233a;
    margin: 0 0 10px;
}
.product .summary p.price {
    font-size: 24px;
    font-weight: 600;
    color: #e27900;
}
.product .summary p.price del {
    font-size: 16px;
    color: #a9a9a5;
    opacity: 1;
    margin-right: 8px;
}
.product .summary p.price ins {
    text-decoration: none;
}

/* Stock status */
.product .summary p.stock.in-stock {
    color: #1d9e75;
    font-weight: 500;
    font-size: 13px;
}
.product .summary p.stock.out-of-stock {
    color: #e24b4a;
    font-weight: 500;
    font-size: 13px;
}

/* Short description */
.product .summary .woocommerce-product-details__short-description {
    color: #5f5e5a;
    font-size: 14px;
    line-height: 1.6;
    margin: 14px 0;
}

/* Quantity + Add to cart */
.product .summary .quantity input.qty {
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    height: 46px;
    width: 64px;
    text-align: center;
}
.product .summary .single_add_to_cart_button {
    background: #e27900 !important;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
}
.product .summary .single_add_to_cart_button:hover {
    background: #c96c00 !important;
}

/* Variation dropdowns (for variable products) */
.product .summary table.variations select {
    border: 1px solid #e2e5ea;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
}

/* Tabs */
.woocommerce-tabs ul.tabs {
    border-bottom: 1px solid #e2e5ea;
    padding: 0;
    margin: 32px 0 0;
}
.woocommerce-tabs ul.tabs li {
    background: none;
    border: none;
    margin: 0 20px 0 0;
    padding: 0;
}
.woocommerce-tabs ul.tabs li a {
    color: #5f5e5a;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 0;
    display: inline-block;
    border-bottom: 2px solid transparent;
}
.woocommerce-tabs ul.tabs li.active a {
    color: #e27900;
    border-bottom-color: #e27900;
}
.woocommerce-tabs .panel {
    padding: 20px 0;
    color: #5f5e5a;
    font-size: 14px;
    line-height: 1.7;
}

/* Related products — reuses your nano-product-card grid styling */
.related.products {
    max-width: 1290px;
    margin: 40px auto 0;
    padding: 0 20px;
}
.related.products > h2 {
    font-size: 20px;
    font-weight: 600;
    color: #12233a;
    margin: 0 0 16px;
}
.related.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 14px !important;
    list-style: none !important;
    padding: 0 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .single-product div.product .images,
    .single-product div.product .summary {
        width: 100% !important;
        float: none !important;
    }
    .related.products ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}




/* ===== PRODUCT PAGE - HIGHLIGHTS ===== */
.nano-highlights {
    max-width: 1290px;
    margin: 24px auto 0;
    padding: 0 20px;
}
.nano-highlights-title {
    font-size: 22px;
    font-weight: 700;
    color: #12233a;
    margin: 0 0 16px;
}
.nano-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.nano-highlight-chip {
    background: #f4f6f9;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.nano-highlight-chip::after {
    content: "›";
    position: absolute;
    top: 14px;
    right: 14px;
    color: #a9b4c0;
    font-size: 18px;
    line-height: 1;
}
.nano-highlight-label {
    font-size: 12.5px;
    color: #5f5e5a;
    margin-bottom: 2px;
}
.nano-highlight-value {
    font-size: 14px;
    font-weight: 600;
    color: #12233a;
}

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

/* ===== PRICE + FINANCING BLOCK ===== */
.nano-price-block { margin: 16px 0; }

.nano-price-cols {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
}
.nano-price-col {
    display: flex;
    flex-direction: column;
}
.nano-price-label {
    font-size: 12.5px;
    color: #5f5e5a;
    margin-bottom: 2px;
}
.nano-price-value {
    font-size: 24px;
    font-weight: 700;
}
.nano-price-cash { color: #e27900; }
.nano-price-card { color: #12233a; }

.nano-financing-box {
    background: #f4f6f9;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    padding: 18px 20px;
}
.nano-financing-title {
    font-size: 14px;
    font-weight: 600;
    color: #12233a;
    margin: 0 0 12px;
}
.nano-financing-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.nano-plan-btn {
    background: #fff;
    border: 1px solid #e2e5ea;
    color: #12233a;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nano-plan-btn.is-selected {
    background: #e27900;
    border-color: #e27900;
    color: #fff;
}
.nano-financing-monthly-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #5f5e5a;
}
.nano-monthly-value {
    font-size: 20px;
    font-weight: 700;
    color: #e27900;
}