/* ColRider Home 2.0 - cabecera desktop. Tablet y escritorio desde 761px; no altera mobile <=760px. */
body.cr-home-v2 .cr-desktop-search-mount { display:none; }
body.cr-home-v2 .cr-tablet-menu-toggle { display:none; }
@media (min-width:761px) {
  body.cr-home-v2 .cr-home-v2-header {
    position:relative; z-index:30;
    background:
      radial-gradient(circle at 16% 0%, rgba(128,208,48,.38), transparent 30%),
      linear-gradient(135deg, #183d14 0%, #306020 52%, #70c030 140%);
    border:0; border-radius:0; box-shadow:0 3px 16px rgba(0,45,18,.13);
  }
  /* Mismo lenguaje tech de la Home movil: puntos + circuito lateral. */
  body.cr-home-v2 .cr-home-v2-header::before {
    content:"";
    position:absolute;
    inset:0 0 0 auto;
    width:38%;
    pointer-events:none;
    z-index:0;
    opacity:.10;
    background-image:radial-gradient(circle, #e5ffcd 1px, transparent 1.6px);
    background-size:17px 17px;
    -webkit-mask-image:linear-gradient(to left, #000, transparent 95%);
    mask-image:linear-gradient(to left, #000, transparent 95%);
  }
  body.cr-home-v2 .cr-home-v2-header::after {
    content:"";
    position:absolute;
    inset:0 0 0 auto;
    width:min(35%, 490px);
    pointer-events:none;
    z-index:0;
    opacity:.14;
    background-repeat:no-repeat;
    background-position:right center;
    background-size:contain;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 490 100' fill='none' stroke='%23e5ffcd' stroke-width='1.4'%3E%3Cpath d='M490 12H355l-30 30h-90M490 38h-98l-28 28h-90M490 79h-142l-18-18h-60M490 96h-82l-22-22h-45'/%3E%3Ccircle cx='235' cy='42' r='4'/%3E%3Ccircle cx='274' cy='66' r='4'/%3E%3Ccircle cx='270' cy='61' r='3'/%3E%3Ccircle cx='347' cy='74' r='4'/%3E%3C/svg%3E");
    -webkit-mask-image:linear-gradient(to left, #000 35%, transparent 100%);
    mask-image:linear-gradient(to left, #000 35%, transparent 100%);
  }
  body.cr-home-v2 .cr-home-v2-header .cr-home-v2-header-inner {
    position:relative; z-index:1;
    display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important;
    align-items:center !important; justify-content:space-between !important;
    gap:clamp(14px,2vw,28px) !important;
    min-height:70px; height:auto; padding-top:9px; padding-bottom:9px;
  }
  body.cr-home-v2 .cr-home-v2-header .brand-logo-link {
    display:flex !important; align-items:center; flex:0 0 auto; min-width:0;
  }
  body.cr-home-v2 .cr-home-v2-header .mobile-location-top { display:none !important; }
  body.cr-home-v2 .cr-home-v2-header .header-actions {
    display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important;
    align-items:center !important; gap:clamp(9px,1.1vw,18px) !important;
    width:auto !important; flex:1 1 auto !important; min-width:0; margin:0 !important;
  }
  body.cr-home-v2 .cr-home-v2-header .nav {
    display:flex !important; align-items:center !important; flex-wrap:nowrap !important;
    gap:clamp(3px,.6vw,12px) !important; width:auto !important;
    flex:0 0 auto; margin:0 !important; white-space:nowrap;
  }
  body.cr-home-v2 .cr-home-v2-header .nav a {
    display:inline-flex; align-items:center; justify-content:center;
    padding:10px clamp(7px,.8vw,14px); border-radius:999px;
    color:#fff; text-decoration:none; font-size:clamp(11px,.85vw,13px); font-weight:750;
    background:transparent; white-space:nowrap;
  }
  body.cr-home-v2 .cr-home-v2-header .nav a:first-child,
  body.cr-home-v2 .cr-home-v2-header .nav a:hover { background:rgba(128,208,48,.24); }
  body.cr-home-v2 .cr-home-v2-header .location-btn {
    display:inline-flex !important; align-items:center; gap:5px;
    min-height:36px; height:36px; max-width:180px;
    padding:0 11px; border-radius:999px; flex:0 1 auto;
    background:rgba(255,255,255,.045); border:1px solid rgba(255,255,255,.23);
    box-shadow:none; color:#fff; font-size:11px; font-weight:750;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  body.cr-home-v2 .cr-home-v2-header .location-btn svg { width:15px; height:15px; flex:none; }
  body.cr-home-v2 .cr-desktop-search-mount {
    position:relative; display:block; flex:1 1 280px; min-width:170px; max-width:440px;
  }
  body.cr-home-v2 .cr-desktop-search-mount .cr-home-search {
    display:grid !important; grid-template-columns:36px minmax(0,1fr) 36px !important;
    grid-template-rows:38px !important; align-items:center !important;
    width:100% !important; max-width:none !important; min-width:0 !important;
    height:44px !important; min-height:44px !important; margin:0 !important;
    padding:3px 5px !important; gap:3px !important;
    background:#fff !important; border:1px solid #e6eee3 !important;
    border-radius:999px !important; box-shadow:none !important; overflow:hidden;
  }
  body.cr-home-v2 .cr-desktop-search-mount .cr-home-search > button {
    position:static !important; display:grid !important; place-items:center !important;
    width:36px !important; min-width:36px !important; height:36px !important;
    min-height:36px !important; padding:0 !important; margin:0 !important;
    border:0 !important; border-radius:50% !important; box-shadow:none !important;
  }
  body.cr-home-v2 .cr-desktop-search-mount .cr-home-search-submit { grid-column:1 !important; background:transparent !important; color:#306020 !important; }
  body.cr-home-v2 .cr-desktop-search-mount .cr-home-filter-toggle { grid-column:3 !important; background:#eef5ea !important; color:#306020 !important; }
  body.cr-home-v2 .cr-desktop-search-mount .cr-home-search input[type=search] {
    grid-column:2 !important; grid-row:1 !important; display:block !important;
    min-width:0 !important; width:100% !important; height:36px !important;
    padding:0 3px !important; margin:0 !important; border:0 !important;
    background:transparent !important; color:#183d14 !important;
    font-size:12px !important; font-weight:500 !important; box-shadow:none !important;
  }
  body.cr-home-v2 .cr-desktop-search-mount .cr-home-search button svg { width:18px !important; height:18px !important; margin:0 !important; }
  body.cr-home-v2 .cr-desktop-search-mount .cr-home-filter-panel {
    position:absolute; top:calc(100% + 12px); right:0; z-index:50;
    width:min(540px,75vw); max-width:none; margin:0;
    grid-template-columns:1fr 1fr auto;
  }
  body.cr-home-v2 .cr-home-v2-header .cr-header-favorites,
  body.cr-home-v2 .cr-home-v2-header .cr-cart-trigger {
    display:flex !important; align-items:center !important; justify-content:center !important;
    flex:0 0 42px !important; width:42px !important; min-width:42px !important;
    height:42px !important; min-height:42px !important; padding:0 !important;
    border-radius:50% !important; background:rgba(255,255,255,.10) !important;
    border:1px solid rgba(255,255,255,.18) !important; color:#fff !important;
    position:relative;
  }
  body.cr-home-v2 .cr-home-v2-header .cr-header-favorites svg { width:22px !important; height:22px !important; color:#fff !important; }
  body.cr-home-v2 .cr-home-v2-header .cr-cart-icon-mobile { display:block !important; width:23px !important; height:23px !important; color:#fff !important; }
  body.cr-home-v2 .cr-home-v2-header .cr-cart-icon { display:none !important; }
  body.cr-home-v2 .cr-home-v2-header .cr-cart-count { position:absolute !important; top:-5px !important; right:-5px !important; }
  body.cr-home-v2 .cr-search-content > .cr-home-filter-panel[hidden] { display:none !important; }
  body.cr-home-v2 .cr-search-content > .cr-home-search { display:none !important; }
}
/* Tablet y escritorio compacto: navegacion arriba, buscador y acciones abajo. */

/* TABLET 761-1199: una sola fila; menu existente como desplegable. */
@media (min-width:761px) and (max-width:1199px) {
  body.cr-home-v2 .cr-home-v2-header .cr-home-v2-header-inner {
    display:flex !important;
    flex-flow:row nowrap !important;
    justify-content:flex-start !important;
    align-items:center !important;
    gap:clamp(9px,1.5vw,16px) !important;
    min-height:58px !important;
    padding-top:7px !important;
    padding-bottom:7px !important;
  }
  body.cr-home-v2 .cr-home-v2-header .brand-logo-link {
    flex:0 0 auto !important;
    max-width:clamp(112px,17vw,155px) !important;
  }
  body.cr-home-v2 .cr-home-v2-header .header-actions {
    position:relative !important;
    display:flex !important;
    flex:1 1 auto !important;
    flex-flow:row nowrap !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:clamp(6px,.85vw,11px) !important;
    width:auto !important;
    min-width:0 !important;
  }
  body.cr-home-v2 .cr-home-v2-header .cr-tablet-menu-toggle {
    display:inline-flex !important;
    flex:0 0 38px !important;
    width:38px !important;
    height:38px !important;
    padding:0 !important;
    align-items:center !important;
    justify-content:center !important;
    border:1px solid rgba(255,255,255,.22) !important;
    border-radius:12px !important;
    background:rgba(255,255,255,.10) !important;
    color:#fff !important;
    cursor:pointer;
  }
  body.cr-home-v2 .cr-home-v2-header .cr-tablet-menu-toggle svg {
    width:20px; height:20px; display:block;
  }
  body.cr-home-v2 .cr-home-v2-header .nav {
    display:none !important;
    position:absolute !important;
    top:calc(100% + 13px) !important;
    left:0 !important;
    z-index:80 !important;
    flex-direction:column !important;
    align-items:stretch !important;
    gap:3px !important;
    width:220px !important;
    max-width:calc(100vw - 32px) !important;
    padding:10px !important;
    border:1px solid #dce8d7 !important;
    border-radius:16px !important;
    background:#fff !important;
    box-shadow:0 16px 36px rgba(0,32,13,.22) !important;
    white-space:normal !important;
  }
  body.cr-home-v2 .cr-home-v2-header .nav.cr-tablet-nav-open {
    display:flex !important;
  }
  body.cr-home-v2 .cr-home-v2-header .nav a {
    display:flex !important;
    justify-content:flex-start !important;
    color:#21451c !important;
    font-size:13px !important;
    padding:11px 12px !important;
    border-radius:10px !important;
  }
  body.cr-home-v2 .cr-home-v2-header .nav a:first-child,
  body.cr-home-v2 .cr-home-v2-header .nav a:hover {
    background:#edf6e8 !important;
  }
  body.cr-home-v2 .cr-home-v2-header .location-btn {
    display:flex !important;
    justify-content:flex-start !important;
    width:100% !important;
    max-width:none !important;
    padding:0 10px !important;
    color:#21451c !important;
    border-color:#dce8d7 !important;
    background:#f6faf3 !important;
    font-size:12px !important;
  }
  body.cr-home-v2 .cr-desktop-search-mount {
    display:block !important;
    flex:0 1 310px !important;
    width:clamp(220px, 36vw, 310px) !important;
    min-width:190px !important;
    max-width:310px !important;
    margin-left:auto !important;
  }
  body.cr-home-v2 .cr-desktop-search-mount .cr-home-search {
    height:40px !important;
    min-height:40px !important;
    grid-template-rows:32px !important;
    grid-template-columns:32px minmax(0,1fr) 32px !important;
  }
  body.cr-home-v2 .cr-desktop-search-mount .cr-home-search > button {
    width:32px !important;
    min-width:32px !important;
    height:32px !important;
    min-height:32px !important;
  }
  body.cr-home-v2 .cr-home-v2-header .cr-header-favorites,
  body.cr-home-v2 .cr-home-v2-header .cr-cart-trigger {
    flex:0 0 38px !important;
    width:38px !important;
    min-width:38px !important;
    height:38px !important;
    min-height:38px !important;
  }
  body.cr-home-v2 .cr-desktop-search-mount .cr-home-filter-panel {
    width:min(510px,calc(100vw - 32px)) !important;
    grid-template-columns:1fr 1fr auto;
  }
}
@media (min-width:761px) and (max-width:850px) {
  body.cr-home-v2 .cr-home-v2-header .cr-home-v2-header-inner { gap:8px !important; }
  body.cr-home-v2 .cr-home-v2-header .brand-logo-link { max-width:115px !important; }
  body.cr-home-v2 .cr-home-v2-header .header-actions { gap:6px !important; }
  body.cr-home-v2 .cr-desktop-search-mount { width:clamp(190px, 33vw, 260px) !important; max-width:260px !important; }
  body.cr-home-v2 .cr-home-v2-header .cr-tablet-menu-toggle { flex-basis:34px !important; width:34px !important; height:36px !important; }
  body.cr-home-v2 .cr-home-v2-header .cr-header-favorites,
  body.cr-home-v2 .cr-home-v2-header .cr-cart-trigger { flex-basis:35px !important; width:35px !important; min-width:35px !important; height:36px !important; min-height:36px !important; }
}
