/* Shared transparent 3D icon sizing; no image backgrounds or distortion. */
img.ui-icon-3d { width:28px; height:28px; object-fit:contain; flex-shrink:0; vertical-align:middle; background:none; border:0; border-radius:0; box-shadow:none; padding:0; }
img.ui-icon-3d--sm { width:22px; height:22px; }
img.ui-icon-3d--lg { width:36px; height:36px; }
.menu-body img.ui-icon-3d, .co-card-icon img.ui-icon-3d, .cart-title-icon img.ui-icon-3d { width:34px; height:34px; }
.circle-button img.ui-icon-3d { width:36px; height:36px; }
.circle-button.menu-button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 44px !important;
  height: 44px !important;
}
.circle-button.menu-button img.ui-icon-3d {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 10px rgba(180, 125, 24, 0.22));
  transition: transform 0.18s ease;
}
.circle-button.menu-button:active img.ui-icon-3d {
  transform: scale(0.92);
}
@media (min-width: 741px) {
  .circle-button.menu-button {
    width: 52px !important;
    height: 52px !important;
  }
  .circle-button.menu-button img.ui-icon-3d {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
  }
}
img.ui-icon-3d.co-input-icon, .search img.ui-icon-3d { width:22px; height:22px; }
.co-input-box .co-input { padding-left:44px; }
.co-option-check img.ui-icon-3d, img.ui-icon-3d.opt-check, .co-pickup-badge img.ui-icon-3d { width:22px; height:22px; }
.co-option-check:has(.ui-icon-3d) { background:transparent; }
.co-pay-card img.ui-icon-3d.co-pay-icon { width:30px; height:30px; }
.co-change-title { display:flex; align-items:center; gap:8px; }
.co-change-title img.ui-icon-3d { width:24px; height:24px; }
.gold-button img.ui-icon-3d { width:28px; height:28px; }
.search img.ui-icon-3d { display:block; }
.menu-button[aria-expanded="true"] img.ui-icon-3d { content:url('ui-3d/close.webp'); }
img.ui-icon-3d.fulfillment-icon-3d { width:38px; height:38px; position:static; transform:none; margin:8px auto; }
.address-mini-field__label:has(.ui-icon-3d) { display:flex; align-items:center; gap:4px; }
.address-mini-field__label img.ui-icon-3d { width:20px; height:20px; }
/* Existing column layout cannot fit the new icon plus label in a 50px row. */
.co-pay-card { flex-direction:row; min-height:54px; height:auto; }
.prem-geo-btn-small > span:first-child { display:flex; align-items:center; gap:6px; }
.category-picture > img + img.ui-icon-3d { display:none; }

/* Card bottom row: unit label on top, price on left + button/stepper on right on the same line */
.product-bottom {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 2px !important;
  margin-top: auto !important;
}

.product-unit-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: #8b96a7;
  margin: 0 0 2px 0;
  line-height: 1.2;
}

.product-bottom-row {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 6px !important;
  width: 100% !important;
}

.product-bottom-row .product-price {
  font-size: clamp(18px, 2.2vw, 24px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.6px !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.product-bottom-row .product-price small {
  display: none !important;
}

/* Card action container & 3D add button + stepper */
.card-action-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  height: 46px;
  min-width: 64px;
  flex-shrink: 0;
  align-self: flex-end;
  margin: 0 -2px -6px 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gold-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 46px;
  height: 46px;
  width: auto;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: transform 0.15s ease, filter 0.15s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.gold-add-btn:hover {
  filter: brightness(1.08);
  transform: scale(1.06);
}
.gold-add-btn:active {
  transform: scale(0.92);
}
.gold-add-btn img.ui-icon-3d {
  width: 64px !important;
  height: 46px !important;
  max-width: 64px !important;
  max-height: 46px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 4px 10px rgba(180, 130, 25, 0.32));
  pointer-events: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.card-qty-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  min-width: 94px;
  padding: 0 4px;
  border-radius: 21px;
  margin: 0 -2px -4px 0;
  background: linear-gradient(135deg, #fffbf2 0%, #f6e6bf 100%);
  border: 1px solid rgba(212, 162, 64, 0.35);
  box-shadow: 0 3px 10px rgba(162, 122, 48, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: stepperPopIn 0.18s cubic-bezier(0.2, 1.2, 0.4, 1);
}
@keyframes stepperPopIn {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

.card-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(212, 162, 64, 0.3);
  color: #6d4808;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.07);
  transition: transform 0.12s ease, background 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.card-qty-btn:active {
  transform: scale(0.88);
  background: #fbf1da;
}

.card-qty-num {
  font-size: 15px;
  font-weight: 800;
  color: #3b2808;
  min-width: 22px;
  text-align: center;
  user-select: none;
}


/* Search UI 3D Alignment & Layout */
.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 16px;
  text-align: center;
  color: #788294;
  font-size: 14px;
}
.search-card-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.search-item .card-action-wrap {
  margin-left: auto;
}
