/* Iceberry smart search, managed banners, uniform product media, and profile map. */
.search-box.ice-search-enhanced{
  position:relative;
  isolation:isolate;
  overflow:visible!important;
  border:1px solid rgba(118,136,181,.24);
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(246,249,255,.94));
  box-shadow:0 12px 28px rgba(61,101,166,.10),inset 0 1px 0 rgba(255,255,255,.96);
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.search-box.ice-search-enhanced:focus-within{
  border-color:rgba(77,183,239,.58);
  box-shadow:0 14px 34px rgba(77,183,239,.16),0 0 0 4px rgba(139,97,239,.07);
  transform:translateY(-1px);
}
.search-box.ice-search-enhanced input{
  font:inherit!important;
  color:#23315d!important;
  caret-color:#7d5ce7;
  background:transparent!important;
}
.search-box.ice-search-enhanced input::placeholder{color:#7b849c;opacity:1}
.search-box.ice-search-enhanced .search-icon{color:#63739c;cursor:pointer;transition:transform .2s ease,color .2s ease}
.search-box.ice-search-enhanced:focus-within .search-icon{color:#7258db;transform:scale(1.06)}

.ice-search-results{
  position:absolute;
  top:calc(100% + 10px);
  inset-inline:0;
  z-index:5000;
  max-height:min(56vh,430px);
  overflow:auto;
  padding:9px;
  border-radius:23px;
  background:rgba(255,255,255,.98);
  border:1px solid rgba(123,139,184,.18);
  box-shadow:0 22px 55px rgba(38,58,106,.19);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  opacity:0;
  visibility:hidden;
  transform:translateY(-6px) scale(.985);
  transform-origin:top center;
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
}
.ice-search-results.show{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.ice-search-caption{padding:7px 10px 9px;color:#77819d;font-size:12px;font-weight:800}
.ice-search-item{
  width:100%;display:flex;align-items:center;gap:11px;text-align:right;direction:rtl;
  border:0;background:transparent;padding:10px;border-radius:17px;cursor:pointer;font:inherit;color:#22315f;
  transition:background .16s ease,transform .16s ease;
}
.ice-search-item:hover,.ice-search-item:focus-visible,.ice-search-item.active{background:linear-gradient(135deg,rgba(77,183,239,.10),rgba(139,97,239,.09));outline:none;transform:translateX(-2px)}
.ice-search-item img{width:52px;height:52px;flex:0 0 52px;object-fit:cover;border-radius:15px;background:#f4f7ff;border:1px solid rgba(115,133,181,.13)}
.ice-search-item-body{min-width:0;flex:1}.ice-search-item strong{display:block;font-size:14px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ice-search-item small{display:block;margin-top:4px;color:#7a849f;font-size:11px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ice-search-price{font-size:12px;font-weight:900;color:#29a7df;white-space:nowrap}
.ice-search-empty{padding:18px 12px;text-align:center;color:#7a849f;font-size:13px;font-weight:800}
.ice-search-all-results{width:100%;border:0;margin-top:6px;padding:12px 14px;border-radius:15px;background:linear-gradient(135deg,rgba(77,183,239,.12),rgba(139,97,239,.12));color:#6252bd;font:inherit;font-size:12px;font-weight:900;cursor:pointer}

/* Search results page */
.ice-search-page-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 14px;padding:0 4px}
.ice-search-page-title h1{margin:0;color:#21305d;font-size:22px;font-weight:950}.ice-search-page-title p{margin:5px 0 0;color:#7b849d;font-size:12px;font-weight:750}
.ice-search-products-grid{direction:rtl;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;align-items:stretch;justify-content:start;min-height:170px}
.ice-search-products-grid .ice-search-page-loading,.ice-search-products-grid .ice-search-page-empty{grid-column:1/-1;min-height:170px;display:grid;place-items:center;text-align:center;border-radius:25px;background:rgba(255,255,255,.82);border:1px solid rgba(117,135,182,.14);color:#7a849f;font-size:13px;font-weight:850;padding:20px}
.ice-search-product-card{min-width:0!important;width:100%!important;margin:0!important;padding:9px!important;border-radius:22px!important;display:flex!important;flex-direction:column!important;position:relative!important;overflow:hidden!important}
.ice-search-product-card>img{width:100%!important;height:auto!important;aspect-ratio:1/1!important;object-fit:cover!important;object-position:center!important;border-radius:17px!important;background:#f3f7ff!important;display:block!important}
.ice-search-product-card h3{font-size:12px!important;line-height:1.65!important;min-height:40px!important;margin:8px 2px 4px!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.ice-search-product-card>strong{font-size:12px!important;margin:0 2px 7px!important;color:#2ca8df!important}
.ice-search-product-card .add{margin-top:auto!important;min-height:38px!important;padding:7px 5px!important;font-size:11px!important;border-radius:16px!important;white-space:nowrap!important}
.ice-search-product-card .add span{width:29px!important;height:29px!important;font-size:22px!important}
.ice-search-product-card .heart{width:31px!important;height:31px!important;top:13px!important;left:13px!important;font-size:19px!important;z-index:3!important}
.ice-search-result-count{margin:22px 0 112px;padding:22px 18px;border-radius:26px;text-align:center;background:rgba(255,255,255,.90);border:1px solid rgba(117,135,182,.14);box-shadow:0 14px 34px rgba(61,101,166,.08);color:#697493}
.ice-search-result-count strong{display:block;font-size:29px;font-weight:950;color:#6e57db}.ice-search-result-count span{display:block;margin-top:3px;font-size:15px;font-weight:900;color:#263460}.ice-search-result-count small{display:block;margin-top:7px;font-size:12px;font-weight:750;color:#858da4}

/* Uniform display frames for every product image. Source files are not altered. */
.product-card>img{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  object-fit:cover!important;
  object-position:center!important;
  display:block!important;
  background:#f3f7ff!important;
}
.ice-product-page-card>img{
  width:100%!important;
  height:auto!important;
  max-height:360px!important;
  aspect-ratio:1/1!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
  background:linear-gradient(135deg,#f8fbff,#f4f1ff)!important;
  border-radius:24px!important;
}
.cart-thumb{object-fit:cover!important;object-position:center!important}

/* Managed home banners remain inside their original frames. */
.hero,.club{position:relative;overflow:hidden!important}
.ice-managed-banner{position:absolute;inset:0;z-index:20;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:inherit;display:block;animation:iceManagedBannerIn .32s ease both}
.hero.ice-has-managed-banner{aspect-ratio:1200/650}
.club.ice-has-managed-banner{aspect-ratio:1200/500}
.hero.ice-has-managed-banner,.club.ice-has-managed-banner{border:1px solid rgba(255,255,255,.76);box-shadow:0 14px 34px rgba(61,101,166,.12)}
@keyframes iceManagedBannerIn{from{opacity:0;transform:scale(1.015)}to{opacity:1;transform:scale(1)}}

/* Banner admin */
.ice-banner-slot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}
.ice-banner-slot-card{border:1px solid rgba(116,135,184,.17);border-radius:25px;padding:17px;background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(246,248,255,.88));box-shadow:0 12px 28px rgba(61,101,166,.08)}
.ice-banner-slot-card h3{margin:0 0 6px;color:#24325f;font-size:18px}.ice-banner-slot-card p{margin:0 0 14px;color:#75809e;font-size:12px;font-weight:750;line-height:2}
.ice-banner-size-hint{display:block;margin-top:7px;padding:9px 11px;border-radius:13px;background:rgba(139,97,239,.08);color:#675d92;font-size:11px;font-weight:800;line-height:1.9}
.ice-banner-preview{position:relative;overflow:hidden;border-radius:19px;background:linear-gradient(135deg,#eef8ff,#f1edff);border:1px dashed rgba(102,125,181,.25);margin-top:14px}
.ice-banner-preview[data-slot="top"]{aspect-ratio:1200/650}.ice-banner-preview[data-slot="bottom"]{aspect-ratio:1200/500}
.ice-banner-preview img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}.ice-banner-preview-empty{position:absolute;inset:0;display:grid;place-items:center;padding:15px;text-align:center;color:#7a849f;font-size:12px;font-weight:850}
.ice-banner-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:13px}.ice-banner-actions .admin-btn{flex:1;min-width:120px}
.ice-banner-legacy{margin-top:20px}.ice-banner-legacy h3{margin:0 0 12px;color:#34416e}

/* Compact profile address card + map preview. */
#iceProfileDeliveryCard{
  margin:22px 0 18px!important;
  padding:0!important;
  min-height:0!important;
  overflow:hidden!important;
  border-radius:28px!important;
}
#iceProfileDeliveryCard+.profile-menu{margin-top:18px!important;padding-top:0!important}
#iceProfileDeliveryCard .info-hero{min-height:0!important;padding:22px 18px!important}
.ice-profile-map-card{background:rgba(255,255,255,.92)!important;border:1px solid rgba(119,138,184,.15)!important;box-shadow:0 15px 38px rgba(61,101,166,.09)!important}
.ice-profile-map-preview{height:172px;position:relative;overflow:hidden;background:linear-gradient(135deg,#eaf7ff,#eeeaff);border-bottom:1px solid rgba(116,135,184,.14)}
.ice-profile-map-preview iframe{width:100%;height:100%;border:0;display:block;filter:saturate(.92) contrast(.98)}
.ice-profile-map-label{position:absolute;top:12px;right:12px;padding:8px 12px;border-radius:14px;background:rgba(255,255,255,.92);box-shadow:0 8px 20px rgba(38,58,106,.14);font-size:12px;font-weight:900;color:#34416e;pointer-events:none}
.ice-profile-address-summary,.ice-profile-empty-address{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;text-align:right!important;padding:18px!important}
.ice-profile-address-summary h2,.ice-profile-empty-address h2{margin:0 0 5px!important;font-size:18px!important;line-height:1.7!important;color:#24325e!important}.ice-profile-address-summary p,.ice-profile-empty-address p{margin:0!important;font-size:12px!important;line-height:1.9!important;color:#7b849e!important}
.ice-profile-pin{display:grid!important;place-items:center;width:48px;height:48px;border-radius:16px;background:linear-gradient(145deg,#edf8ff,#eee9ff);font-size:24px}
.ice-profile-address-summary .map-link,.ice-profile-empty-address .save-profile-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:88px!important;max-width:128px!important;height:42px!important;padding:0 14px!important;margin:0!important;border-radius:15px!important;white-space:nowrap!important;text-decoration:none!important;font-size:12px!important;font-weight:900!important;background:linear-gradient(135deg,#45b7ee,#815ce8)!important;color:white!important;box-shadow:0 8px 20px rgba(84,116,215,.18)!important}

@media(max-width:700px){
  .ice-banner-slot-grid{grid-template-columns:1fr}
  .ice-search-results{max-height:52vh}
  .ice-search-item{padding:9px}
  .ice-search-item img{width:47px;height:47px;flex-basis:47px}
}
@media(max-width:430px){
  .ice-search-products-grid{gap:9px}
  .ice-search-product-card{padding:7px!important;border-radius:19px!important}
  .ice-search-product-card h3{font-size:11px!important;min-height:37px!important}
  .ice-search-product-card>strong{font-size:11px!important}
  .ice-search-product-card .add{font-size:10px!important;min-height:35px!important}
  .ice-profile-address-summary,.ice-profile-empty-address{grid-template-columns:auto minmax(0,1fr);padding:16px!important}
  .ice-profile-address-summary .map-link,.ice-profile-empty-address .save-profile-btn{grid-column:1/-1;width:100%!important;max-width:none!important;margin-top:3px!important}
  .ice-profile-map-preview{height:156px}
}
@media(max-width:350px){.ice-search-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.ice-managed-banner,.ice-search-results,.ice-search-item,.search-box.ice-search-enhanced{animation:none!important;transition:none!important}}
