
/* Opto Zero v3.46 — wishlist dropdown + wishlist page */

/* ---------- Header dropdown ---------- */
.oc-wishlist-dropdown-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin:0 0 8px!important;
}

.oc-wishlist-dropdown-head .oc-header-dropdown-title{
  margin:0!important;
}

.oc-wishlist-clear-mini{
  border:0!important;
  background:transparent!important;
  color:#e14d62!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:800!important;
  padding:5px 4px!important;
  cursor:pointer!important;
}

.oc-wishlist-clear-mini:hover{
  color:#bf2f45!important;
}

.oc-wishlist-clear-mini[hidden]{
  display:none!important;
}

.oc-wishlist-preview{
  gap:7px!important;
}

.oc-wishlist-preview-item{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 30px!important;
  gap:5px!important;
  padding:0!important;
  border:1px solid #e5ebf3!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:#fff!important;
}

.oc-wishlist-preview-link{
  min-width:0!important;
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr)!important;
  gap:9px!important;
  align-items:center!important;
  padding:7px 4px 7px 7px!important;
  color:#283447!important;
  text-decoration:none!important;
}

.oc-wishlist-preview-link:hover{
  background:#f7faff!important;
}

.oc-wishlist-preview-remove{
  align-self:stretch!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:30px!important;
  border:0!important;
  border-left:1px solid #edf1f6!important;
  background:#fff!important;
  color:#a4adba!important;
  font-size:12px!important;
  cursor:pointer!important;
}

.oc-wishlist-preview-remove:hover{
  background:#fff2f4!important;
  color:#e14d62!important;
}

.oc-wishlist-dropdown-primary{
  margin-top:4px!important;
}

/* ---------- Wishlist page ---------- */
.oc-wish-v346{
  max-width:1440px;
  padding-top:16px;
  padding-bottom:42px;
}

.oc-wish-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  margin:6px 0 14px;
  padding:22px 24px;
  border:1px solid #dfe7f1;
  border-radius:20px;
  background:
    radial-gradient(circle at 88% 20%,rgba(13,93,230,.10),transparent 32%),
    linear-gradient(135deg,#ffffff 0%,#f5f9ff 100%);
  box-shadow:0 8px 24px rgba(31,48,76,.05);
}

.oc-wish-kicker{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:7px;
  color:#0d5de6;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.35px;
}

.oc-wish-hero h1{
  margin:0 0 7px;
  color:#1e2f4a;
  font-size:34px;
  line-height:1.05;
  font-weight:900;
  letter-spacing:-.6px;
}

.oc-wish-hero p{
  max-width:680px;
  margin:0;
  color:#718096;
  font-size:12px;
  line-height:1.5;
  font-weight:600;
}

.oc-wish-hero-actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
}

.oc-wish-total{
  min-width:82px;
  height:58px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid #d9e5f5;
  border-radius:15px;
  background:#fff;
}

.oc-wish-total strong{
  color:#0d5de6;
  font-size:20px;
  line-height:1;
  font-weight:900;
}

.oc-wish-total span{
  margin-top:4px;
  color:#7b8797;
  font-size:9px;
  font-weight:800;
}

.oc-wish-clear-all{
  height:42px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 13px;
  border:1px solid #f0d4d8;
  border-radius:12px;
  background:#fff;
  color:#d94c5f;
  font-size:10px;
  font-weight:900;
  cursor:pointer;
}

.oc-wish-clear-all:hover{
  background:#fff4f5;
  border-color:#ebbac1;
}

.oc-wish-toolbar{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:13px;
  padding:0 3px;
  color:#8792a3;
  font-size:10px;
  font-weight:600;
}

.oc-wish-back{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#3b4b64;
  font-weight:800;
}

.oc-wish-back:hover{
  color:#0d5de6;
}

.oc-wish-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.oc-wish-grid.is-empty{
  display:none;
}

.oc-wish-card{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  padding:10px!important;
  border:1px solid #e1e8f1!important;
  border-radius:17px!important;
  background:#fff!important;
  box-shadow:0 5px 17px rgba(31,47,73,.045)!important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease!important;
}

.oc-wish-card:hover{
  transform:translateY(-2px)!important;
  border-color:#cfddf2!important;
  box-shadow:0 10px 25px rgba(31,47,73,.08)!important;
}

.oc-wish-remove{
  position:absolute;
  top:9px;
  right:9px;
  z-index:5;
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #e4e9f0;
  border-radius:10px;
  background:rgba(255,255,255,.96);
  color:#9ca6b4;
  box-shadow:0 2px 7px rgba(31,47,73,.05);
}

.oc-wish-remove:hover{
  border-color:#f0c8ce;
  background:#fff3f4;
  color:#d94c5f;
}

.oc-wish-image{
  height:170px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:7px;
  border-radius:13px;
  background:#f8fafc;
  overflow:hidden;
}

.oc-wish-image img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}

.oc-wish-body{
  flex:1;
  display:flex;
  flex-direction:column;
  min-width:0;
  padding-top:9px;
}

.oc-wish-stock{
  width:max-content;
  max-width:100%;
  margin-bottom:5px;
  padding:3px 6px;
  border-radius:7px;
  background:#f2f4f7;
  color:#7d8796;
  font-size:8px;
  font-weight:800;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.oc-wish-stock i{
  margin-right:4px;
  font-size:5px;
}

.oc-wish-stock.is-ok{
  background:#edf9f2;
  color:#29925b;
}

.oc-wish-name{
  min-height:34px;
  margin-bottom:8px;
  color:#24334d;
  font-size:12px;
  line-height:1.3;
  font-weight:850;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.oc-wish-name:hover{
  color:#0d5de6;
}

.oc-wish-prices{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
}

.oc-wish-price{
  min-width:0;
  padding:8px 9px 7px;
  border:1px solid #dce5ef;
  border-radius:11px;
  background:#fbfcfe;
}

.oc-wish-price strong{
  display:block;
  color:#20314e;
  font-size:15px;
  line-height:1.05;
  font-weight:900;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.oc-wish-price span{
  display:block;
  margin-top:4px;
  color:#8994a4;
  font-size:8.5px;
  font-weight:700;
}

.oc-wish-card[data-mode="units"] .oc-wish-price.is-unit,
.oc-wish-card[data-mode="box"] .oc-wish-price.is-box{
  border-color:#80adfa;
  background:#eef5ff;
  box-shadow:0 0 0 2px rgba(13,93,230,.06);
}

.oc-wish-pack{
  margin:5px 0 0!important;
  text-align:center;
  color:#8a95a5!important;
  font-size:8px!important;
  font-weight:800!important;
}

.oc-wish-mode{
  width:100%!important;
  margin:7px 0!important;
}

.oc-wish-mode button{
  flex:1 1 50%!important;
  width:50%!important;
}

.oc-wish-buy{
  display:grid;
  grid-template-columns:104px minmax(0,1fr);
  gap:7px;
  margin-top:auto;
}

.oc-wish-buy .oc-qty-control{
  width:104px!important;
  min-width:104px!important;
}

.oc-wish-add-cart{
  min-width:0!important;
  width:100%!important;
  justify-content:center!important;
  white-space:nowrap!important;
}

.oc-wish-empty{
  max-width:570px;
  margin:46px auto 80px;
  padding:42px 24px;
  border:1px solid #e0e7f0;
  border-radius:20px;
  background:#fff;
  box-shadow:0 8px 28px rgba(31,47,73,.05);
  text-align:center;
}

.oc-wish-empty.is-hidden{
  display:none;
}

.oc-wish-empty-icon{
  width:72px;
  height:72px;
  margin:0 auto 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#eef5ff;
  color:#0d5de6;
  font-size:30px;
}

.oc-wish-empty h2{
  margin:0 0 8px;
  color:#263650;
  font-size:23px;
  font-weight:900;
}

.oc-wish-empty p{
  margin:0 0 18px;
  color:#7d8898;
  font-size:12px;
}

.oc-wish-empty-button{
  min-width:180px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  border-radius:12px;
  background:#0d5de6;
  color:#fff!important;
  font-size:11px;
  font-weight:900;
}

.oc-wish-card.is-removing{
  opacity:.42!important;
  pointer-events:none!important;
}

@media(max-width:1199px){
  .oc-wish-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:767px){
  .oc-wish-v346{
    padding:9px 8px 28px;
  }

  .oc-wish-hero{
    align-items:flex-start;
    flex-direction:column;
    gap:13px;
    margin:3px 0 10px;
    padding:15px 14px;
    border-radius:16px;
  }

  .oc-wish-kicker{
    font-size:9px;
  }

  .oc-wish-hero h1{
    font-size:26px;
  }

  .oc-wish-hero p{
    font-size:10.5px;
  }

  .oc-wish-hero-actions{
    width:100%;
  }

  .oc-wish-total{
    min-width:72px;
    height:49px;
    border-radius:12px;
  }

  .oc-wish-total strong{
    font-size:17px;
  }

  .oc-wish-clear-all{
    flex:1;
    justify-content:center;
    height:39px;
  }

  .oc-wish-toolbar{
    min-height:32px;
    margin-bottom:8px;
  }

  .oc-wish-toolbar>span{
    display:none;
  }

  .oc-wish-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }

  .oc-wish-card{
    padding:7px!important;
    border-radius:14px!important;
  }

  .oc-wish-remove{
    top:6px;
    right:6px;
    width:27px;
    height:27px;
    border-radius:9px;
  }

  .oc-wish-image{
    height:112px;
    border-radius:10px;
    padding:5px;
  }

  .oc-wish-body{
    padding-top:7px;
  }

  .oc-wish-stock{
    font-size:7px;
    margin-bottom:4px;
  }

  .oc-wish-name{
    min-height:31px;
    margin-bottom:6px;
    font-size:10px;
  }

  .oc-wish-prices{
    gap:4px;
  }

  .oc-wish-price{
    padding:6px 5px 5px;
    border-radius:9px;
  }

  .oc-wish-price strong{
    font-size:12px;
  }

  .oc-wish-price span{
    font-size:7px;
  }

  .oc-wish-pack{
    font-size:7px!important;
  }

  .oc-wish-mode{
    min-height:30px!important;
    margin:6px 0!important;
  }

  .oc-wish-mode button{
    min-height:29px!important;
    padding:5px 2px!important;
    font-size:8.5px!important;
  }

  .oc-wish-buy{
    grid-template-columns:1fr;
    gap:5px;
  }

  .oc-wish-buy .oc-qty-control{
    width:100%!important;
    min-width:0!important;
  }

  .oc-wish-add-cart{
    height:36px!important;
    font-size:9px!important;
  }

  .oc-wish-empty{
    margin:28px 4px 50px;
    padding:30px 17px;
    border-radius:17px;
  }

  .oc-wishlist-dropdown{
    max-height:min(72vh,560px)!important;
  }

  .oc-wishlist-preview{
    max-height:min(52vh,390px)!important;
  }
}

@media(max-width:390px){
  .oc-wish-grid{
    gap:6px;
  }

  .oc-wish-image{
    height:103px;
  }

  .oc-wish-price strong{
    font-size:11px;
  }
}
