.fw-cart-button{
  position:relative;
  background:transparent;
  font:inherit;
  cursor:pointer;
}

.fw-cart-nav-icon{
  width:55px;
  height:55px;
  object-fit:contain;
  display:block;
}

.fw-cart-count{
  position:absolute;
  top:-7px;
  right:-7px;
  min-width:19px;
  height:19px;
  display:none;
  align-items:center;
  justify-content:center;
  padding:0 5px;
  border-radius:999px;
  background:#8ec5ff;
  color:#fff;
  font-size:11px;
  font-weight:900;
  line-height:1;
  box-shadow:0 6px 14px rgba(0,117,255,.24);
}

.fw-cart-count.is-visible{
  display:flex;
}

body.fw-search-open{
  overflow:hidden;
}

.fw-search-button{
  background:#fff;
  font:inherit;
  cursor:pointer;
}

.fw-search-overlay{
  position:fixed;
  inset:0;
  z-index:12000;
  display:none;
  background:rgba(8,24,67,0.08);
}

.fw-search-overlay.is-open{
  display:block;
}

.fw-search-panel{
  position:absolute;
  top:8px;
  right:max(12px, calc((100vw - 1180px) / 2));
  width:min(900px, calc(100vw - 24px));
  max-height:min(650px, calc(100vh - 16px));
  display:grid;
  grid-template-rows:auto auto minmax(120px, 1fr) auto;
  overflow:hidden;
  background:#fff;
  color:#111827;
  border:1px solid #dfe4eb;
  border-radius:28px;
  box-shadow:0 18px 55px rgba(8,24,67,.22);
}

.fw-search-top{
  min-height:62px;
  display:grid;
  grid-template-columns:44px 1fr 44px 44px;
  align-items:center;
  gap:8px;
  padding:0 18px;
  border-bottom:1px solid #edf0f4;
}

.fw-search-leading{
  color:#5f6875;
  font-size:24px;
  justify-self:center;
}

.fw-search-input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#111827;
  font-size:20px;
  font-weight:500;
}

.fw-search-input::placeholder{
  color:#9aa3af;
}

.fw-search-close,
.fw-search-filter{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#596272;
  font-size:21px;
  cursor:pointer;
  transition:background .18s ease, color .18s ease;
}

.fw-search-close:hover,
.fw-search-filter:hover{
  background:#eef2f7;
  color:#111827;
}

.fw-search-chips{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 16px;
  overflow-x:auto;
  border-bottom:1px solid #edf0f4;
}

.fw-search-chips button{
  min-height:40px;
  padding:0 16px;
  border:1px solid #c7ccd4;
  border-radius:10px;
  background:#fff;
  color:#3e4652;
  font-size:16px;
  font-weight:600;
  white-space:nowrap;
  cursor:pointer;
}

.fw-search-chips button.active,
.fw-search-chips button:hover{
  border-color:#0075ff;
  color:#0075ff;
  background:#f2f8ff;
}

.fw-search-results{
  overflow:auto;
  background:#fff;
}

.fw-search-result{
  width:100%;
  min-height:72px;
  display:grid;
  grid-template-columns:42px minmax(0, 1fr) auto;
  align-items:center;
  gap:14px;
  padding:12px 22px;
  border:0;
  border-bottom:1px solid #edf0f4;
  background:#fff;
  color:#111827;
  text-align:left;
  cursor:pointer;
}

.fw-search-result:hover,
.fw-search-result:focus-visible{
  background:#f7faff;
  outline:0;
}

.fw-search-result-icon{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#757d89;
  font-size:18px;
}

.fw-search-result-main{
  min-width:0;
  display:grid;
  gap:3px;
}

.fw-search-result-main strong{
  overflow:hidden;
  color:#020817;
  font-size:18px;
  font-weight:750;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.fw-search-result-main span{
  overflow:hidden;
  color:#4b5563;
  font-size:14px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.fw-search-result small{
  color:#17213d;
  font-size:14px;
  white-space:nowrap;
}

.fw-search-result mark{
  padding:0 1px;
  background:#fff2b8;
  color:inherit;
}

.fw-search-empty{
  min-height:180px;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:6px;
  color:#111827;
  text-align:center;
}

.fw-search-empty strong{
  font-size:18px;
}

.fw-search-empty span{
  color:#647084;
  font-size:14px;
}

.fw-search-footer{
  min-height:66px;
  display:grid;
  grid-template-columns:42px 1fr auto;
  align-items:center;
  gap:12px;
  padding:0 22px;
  border:0;
  border-top:1px solid #edf0f4;
  background:#fff;
  color:#111827;
  text-align:left;
  cursor:pointer;
}

.fw-search-footer:hover{
  background:#f7faff;
}

.fw-search-footer i{
  color:#737d8c;
  font-size:20px;
}

.fw-search-footer span{
  min-width:0;
  overflow:hidden;
  font-size:17px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.fw-search-footer small{
  color:#536074;
  font-size:13px;
  white-space:nowrap;
}

body.fw-cart-open{
  overflow:hidden;
}

.fw-cart-overlay{
  position:fixed;
  inset:0;
  z-index:11000;
  display:flex;
  justify-content:flex-end;
  background:rgba(0,0,0,.62);
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
}

.fw-cart-overlay.is-open{
  opacity:1;
  pointer-events:auto;
}

.fw-cart-panel{
  width:min(100%, 500px);
  min-height:100vh;
  display:grid;
  grid-template-rows:auto 1fr auto;
  background:#fff;
  color:#111;
  transform:translateX(100%);
  transition:transform .24s ease;
  box-shadow:-24px 0 52px rgba(0,0,0,.42);
}

.fw-cart-overlay.is-open .fw-cart-panel{
  transform:translateX(0);
}

.fw-cart-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:86px;
  padding:24px 28px;
  background:#fff;
  border-bottom:1px solid rgba(8,24,67,.08);
}

.fw-cart-title{
  display:flex;
  align-items:center;
  gap:11px;
  margin:0;
  font-size:18px;
  font-weight:900;
  color:#111;
}

.fw-cart-title-image{
  width:38px;
  height:38px;
  object-fit:contain;
  filter:drop-shadow(0 7px 10px rgba(0,0,0,.12));
}

.fw-cart-close{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#111;
  font-size:27px;
  line-height:1;
  cursor:pointer;
  transition:background .18s ease, transform .18s ease;
}

.fw-cart-close:hover{
  background:rgba(8,24,67,.08);
  transform:rotate(90deg);
}

.fw-cart-body{
  min-height:300px;
  overflow:auto;
  background:#fff;
  color:#111;
}

.fw-cart-items{
  display:grid;
  gap:0;
}

.fw-cart-item{
  display:grid;
  grid-template-columns:80px 1fr auto;
  gap:18px;
  align-items:center;
  padding:20px 26px;
  background:#fff;
  border-bottom:1px solid #ececec;
}

.fw-cart-item img{
  width:80px;
  height:80px;
  object-fit:cover;
  border-radius:15px;
  background:#eef3f9;
}

.fw-cart-item-info{
  min-width:0;
}

.fw-cart-item-title{
  margin:0 0 5px;
  color:#050505;
  font-size:18px;
  font-weight:1000;
  line-height:1.12;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.fw-cart-item-price{
  margin:0;
  color:#111;
  font-size:20px;
}

.fw-cart-qty{
  display:grid;
  grid-template-columns:38px 42px 38px;
  align-items:center;
  height:46px;
  border:1px solid #cfcfcf;
  border-radius:15px;
  background:#fff;
  box-shadow:0 2px 0 rgba(0,0,0,.16);
  overflow:hidden;
}

.fw-cart-qty button{
  height:100%;
  border:0;
  background:#fff;
  color:#9b9b9b;
  font-size:23px;
  font-weight:900;
  cursor:pointer;
  transition:color .18s ease, background .18s ease;
}

.fw-cart-qty button:hover{
  background:#f7f7f7;
  color:#111;
}

.fw-cart-qty span{
  color:#000;
  text-align:center;
  font-size:17px;
  font-weight:900;
}

.fw-cart-empty{
  min-height:calc(100vh - 214px);
  display:grid;
  place-items:center;
  padding:44px 28px;
  text-align:center;
  background:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)),
    url("Imagenes/Bolsa de compras FW.png") center 32% / min(78%, 340px) no-repeat;
}

.fw-cart-empty-card{
  display:grid;
  justify-items:center;
  gap:15px;
  max-width:320px;
}

.fw-cart-empty-card h2{
  margin:0;
  color:#111;
  font-size:27px;
  font-weight:1000;
}

.fw-cart-empty-card p{
  margin:0;
  color:#555;
  font-size:15px;
  line-height:1.5;
}

.fw-cart-empty-card a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:46px;
  min-width:152px;
  padding:0 28px;
  border-radius:999px;
  background:linear-gradient(90deg, #1477ff 0%, #16c7d9 100%);
  color:#fff;
  text-decoration:none;
  font-size:16px;
  font-weight:1000;
  letter-spacing:0;
  box-shadow:0 12px 24px rgba(20,119,255,.2);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.fw-cart-empty-card a:hover{
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(20,119,255,.28);
  filter:saturate(1.05);
}

.fw-cart-empty-card a span,
.fw-cart-checkout span{
  display:inline-block;
  font-weight:1000;
  transform:translateY(-1px);
}

.fw-cart-footer{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:22px;
  padding:24px 28px 28px;
  background:#fff;
  border-top:1px solid rgba(8,24,67,.08);
}

.fw-cart-total-label{
  display:block;
  margin-bottom:2px;
  color:#39445f;
  font-size:18px;
}

.fw-cart-total-value{
  display:block;
  color:#111;
  font-size:30px;
  font-weight:1000;
  line-height:1;
}

.fw-cart-checkout{
  min-height:66px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-width:212px;
  padding:0 30px;
  border:0;
  border-radius:17px;
  background:linear-gradient(90deg, #1477ff 0%, #16c7d9 100%);
  color:#fff;
  text-decoration:none;
  font-size:21px;
  font-weight:1000;
  cursor:pointer;
  box-shadow:0 14px 28px rgba(20,119,255,.22);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.fw-cart-checkout:hover{
  color:#fff;
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(20,119,255,.3);
  filter:saturate(1.05);
}

.fw-cart-toast{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:12000;
  max-width:min(360px, calc(100vw - 32px));
  padding:14px 18px;
  border-radius:14px;
  background:#fff;
  color:#111;
  font-weight:850;
  border:1px solid rgba(8,24,67,.1);
  box-shadow:0 16px 44px rgba(8,24,67,.16);
  opacity:0;
  transform:translateY(12px);
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
}

.fw-cart-toast.is-visible{
  opacity:1;
  transform:translateY(0);
}

@media(max-width:720px){
  .fw-search-panel{
    top:6px;
    right:8px;
    left:8px;
    width:auto;
    max-height:calc(100vh - 12px);
    border-radius:20px;
  }

  .fw-search-top{
    grid-template-columns:34px 1fr 38px 38px;
    gap:4px;
    padding:0 12px;
  }

  .fw-search-input{
    font-size:17px;
  }

  .fw-search-result{
    grid-template-columns:34px minmax(0, 1fr);
    padding:12px 16px;
  }

  .fw-search-result small{
    grid-column:2;
    font-size:12px;
  }

  .fw-search-footer{
    grid-template-columns:32px 1fr;
  }

  .fw-search-footer small{
    display:none;
  }
}

@media(max-width:575px){
  .fw-cart-panel{
    width:100%;
  }

  .fw-cart-header{
    min-height:78px;
    padding:20px 22px;
  }

  .fw-cart-item{
    grid-template-columns:64px 1fr;
    gap:14px;
    padding:18px 20px;
  }

  .fw-cart-item img{
    width:64px;
    height:64px;
    border-radius:13px;
  }

  .fw-cart-item-title{
    font-size:16px;
  }

  .fw-cart-item-price{
    font-size:18px;
  }

  .fw-cart-qty{
    grid-column:2;
    width:142px;
    margin-top:4px;
  }

  .fw-cart-footer{
    grid-template-columns:1fr;
    gap:18px;
    padding:22px;
  }

  .fw-cart-checkout{
    width:100%;
  }
}
