/* Bela Beauty · Liquid Glass UI and product motion */
:root {
  --bb-glass-edge: rgba(255, 255, 255, .76);
  --bb-glass-line: rgba(190, 94, 135, .22);
  --bb-glass-shadow: 0 7px 20px rgba(92, 38, 64, .09);
  --bb-glass-shine: linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,242,248,.52));
}

button,
.primary-btn,
.secondary-btn,
.outline-btn,
.small-btn,
.whatsapp-btn,
.pill,
.text-link,
.detail-btn,
.product-detail-link,
.file-btn,
.panel-heading a {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--bb-glass-line);
  background: var(--bb-glass-shine);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
  backdrop-filter: blur(14px) saturate(155%);
  box-shadow: inset 0 1px 0 var(--bb-glass-edge),
    inset 0 -1px 0 rgba(190,94,135,.06), var(--bb-glass-shadow);
  transition: transform .22s ease, color .22s ease, border-color .22s ease,
    background .22s ease, box-shadow .22s ease, scale .5s ease, filter .4s ease;
}

button::before,
.primary-btn::before,
.secondary-btn::before,
.outline-btn::before,
.small-btn::before,
.whatsapp-btn::before,
.pill::before,
.text-link::before,
.detail-btn::before,
.product-detail-link::before,
.file-btn::before,
.panel-heading a::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 56%;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,0));
}

button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.outline-btn:hover,
.small-btn:hover,
.whatsapp-btn:hover,
.pill:hover,
.text-link:hover,
.detail-btn:hover,
.product-detail-link:hover,
.file-btn:hover,
.panel-heading a:hover {
  transform: translateY(-1px);
  border-color: rgba(190, 65, 117, .38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94),
    0 11px 26px rgba(92,38,64,.12);
}

button:active,
.primary-btn:active,
.secondary-btn:active,
.outline-btn:active,
.small-btn:active,
.whatsapp-btn:active,
.pill:active,
.text-link:active,
.detail-btn:active,
.product-detail-link:active,
.file-btn:active,
.panel-heading a:active {
  transform: translateY(0) scale(.985);
}

button:disabled,
.primary-btn:disabled,
.secondary-btn:disabled,
.outline-btn:disabled,
.small-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.primary-btn,
.whatsapp-btn,
.hero-actions .primary-btn {
  color: #fff;
  border-color: rgba(255,255,255,.52);
  background: linear-gradient(135deg, rgba(190,48,103,.97), rgba(145,34,79,.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.46),
    inset 0 -1px 0 rgba(87,17,48,.16), 0 10px 25px rgba(161,42,91,.22);
}
.primary-btn:hover,
.whatsapp-btn:hover,
.hero-actions .primary-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,.8);
  background: linear-gradient(135deg, rgba(202,57,116,.98), rgba(158,39,88,.97));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62), 0 13px 28px rgba(161,42,91,.27);
}
.secondary-btn,
.outline-btn,
.small-btn,
.file-btn,
.hero-actions .secondary-btn {
  color: #7d3155;
  border-color: rgba(185, 89, 131, .27);
  background: linear-gradient(140deg, rgba(255,255,255,.84), rgba(255,237,245,.62));
}
.secondary-btn:hover,
.outline-btn:hover,
.small-btn:hover,
.file-btn:hover,
.hero-actions .secondary-btn:hover {
  color: #702345;
  background: linear-gradient(140deg, rgba(255,255,255,.96), rgba(255,225,237,.78));
}

.topbar {
  background: linear-gradient(110deg, rgba(255,255,255,.72), rgba(255,241,247,.62));
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  backdrop-filter: blur(24px) saturate(165%);
  box-shadow: 0 9px 30px rgba(80,31,55,.09), inset 0 1px rgba(255,255,255,.96);
}
.nav-link {
  border-color: transparent;
  border-radius: 10px 10px 0 0;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 1px rgba(255,255,255,.45);
}
.nav-link:hover,
.nav-link.active {
  color: #742448;
  border-color: rgba(197,87,130,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,237,245,.42));
  box-shadow: inset 0 1px rgba(255,255,255,.92), 0 3px 12px rgba(92,38,64,.06);
}
.account-btn,
.cart-btn,
.icon-btn,
.side-link,
.admin-mobile-menu,
.today-action,
.quick-view-btn,
.add-btn,
.icon-action,
.close-btn,
.password-toggle,
.p3-client-link,
.ops-contact,
.p3-audit-row {
  border: 1px solid rgba(190,94,135,.2);
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,241,247,.58));
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 4px 14px rgba(92,38,64,.07);
}
.side-link.active,
.side-link:hover {
  background: linear-gradient(140deg, rgba(255,255,255,.95), rgba(255,225,237,.68));
  border-color: rgba(190,65,117,.4);
  box-shadow: inset 0 1px rgba(255,255,255,.98), 0 7px 18px rgba(92,38,64,.09);
}
.icon-btn,
.quick-view-btn,
.add-btn,
.icon-action,
.close-btn,
.password-toggle {
  border-radius: 50%;
}
.add-btn {
  color: #7c2e53;
  border-color: rgba(151,55,96,.46);
  background: linear-gradient(145deg, rgba(255,255,255,.93), rgba(255,230,240,.68));
}
.add-btn:hover,
.add-btn.is-added {
  color: #fff;
  border-color: rgba(255,255,255,.72);
  background: linear-gradient(135deg, rgba(192,46,103,.96), rgba(145,34,79,.94));
}
.pill.active {
  color: #fff;
  border-color: rgba(255,255,255,.52);
  background: linear-gradient(135deg, rgba(190,48,103,.97), rgba(145,34,79,.94));
  box-shadow: inset 0 1px rgba(255,255,255,.44), 0 7px 17px rgba(161,42,91,.18);
}
.category-showcase button,
.brand-collection-feature {
  background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,241,247,.58));
  -webkit-backdrop-filter: blur(16px) saturate(155%);
  backdrop-filter: blur(16px) saturate(155%);
}
.footer-links button {
  border-color: transparent;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 1px rgba(255,255,255,.34);
}
#admin-view button {
  -webkit-backdrop-filter: blur(13px) saturate(150%);
  backdrop-filter: blur(13px) saturate(150%);
}
#admin-view .primary-btn {
  color: #fff;
  background: linear-gradient(135deg, rgba(190,48,103,.97), rgba(145,34,79,.94));
}
#admin-view .outline-btn,
#admin-view .small-btn {
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,239,246,.66));
}
.danger-action {
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,232,233,.7)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.92), 0 4px 14px rgba(147,50,60,.07) !important;
}

/* Imagens: entrada suave, brilho em movimento e zoom óptico no hover. */
@keyframes bella-product-enter {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes bella-product-sheen {
  0% { opacity: 0; transform: translateX(-150%) rotate(24deg); }
  28% { opacity: .72; }
  100% { opacity: 0; transform: translateX(350%) rotate(24deg); }
}
@keyframes bella-photo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.product-grid .product-card {
  animation: bella-product-enter .62s cubic-bezier(.2,.72,.25,1) both;
}
.product-grid .product-card:nth-child(4n + 2) { animation-delay: .06s; }
.product-grid .product-card:nth-child(4n + 3) { animation-delay: .12s; }
.product-grid .product-card:nth-child(4n + 4) { animation-delay: .18s; }
.product-photo {
  position: relative;
  perspective: 900px;
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.75,.25,1), box-shadow .45s ease;
}
.product-photo img {
  backface-visibility: hidden;
  transition: scale .65s cubic-bezier(.2,.75,.25,1), filter .5s ease;
}
.product-photo::after {
  content: "";
  position: absolute;
  top: -35%;
  bottom: -35%;
  left: -20%;
  width: 34%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-150%) rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.46), transparent);
}
.product-card:hover .product-photo,
.product-card:focus-within .product-photo {
  transform: translateY(-5px) rotateX(1.5deg);
  box-shadow: 0 18px 32px rgba(86,34,60,.14);
}
.product-card:hover .product-photo img,
.product-card:focus-within .product-photo img {
  scale: 1.045;
  filter: saturate(1.06) drop-shadow(0 8px 10px rgba(75,35,55,.1));
}
.product-card:hover .product-photo::after,
.product-card:focus-within .product-photo::after {
  animation: bella-product-sheen .9s ease-out both;
}
.compact-card:hover .product-photo,
.compact-card:focus-within .product-photo {
  animation: bella-photo-float 2.8s ease-in-out .5s infinite;
}
.product-page-gallery img,
.detail-image,
.table-thumb img {
  transition: scale .5s cubic-bezier(.2,.75,.25,1), filter .4s ease;
}
.product-page-gallery img:hover,
.detail-image:hover,
.table-product:hover .table-thumb img {
  scale: 1.035;
  filter: saturate(1.05) drop-shadow(0 10px 14px rgba(75,35,55,.12));
}

@media (hover: none) {
  .product-card:hover .product-photo,
  .product-card:hover .product-photo img,
  .product-card:hover .product-photo::after { animation: none; }
  .product-card:hover .product-photo { transform: none; }
  .product-card:hover .product-photo img { scale: 1; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .product-grid .product-card { animation: none !important; }
  .product-photo,
  .product-photo img,
  .product-page-gallery img,
  .detail-image,
  .table-thumb img { transition: none !important; }
}

@media (max-width: 760px) {
  button,
  .primary-btn,
  .secondary-btn,
  .outline-btn,
  .small-btn,
  .whatsapp-btn,
  .pill,
  .text-link,
  .detail-btn,
  .product-detail-link,
  .file-btn,
  .panel-heading a {
    -webkit-backdrop-filter: blur(10px) saturate(145%);
    backdrop-filter: blur(10px) saturate(145%);
  }
}

/* Softer silhouettes: pill controls and text links instead of outlined boxes. */
button,
.primary-btn,
.secondary-btn,
.outline-btn,
.small-btn,
.whatsapp-btn,
.pill,
.file-btn {
  border-radius: 999px;
}
.icon-btn,
.quick-view-btn,
.add-btn,
.icon-action,
.close-btn,
.password-toggle,
.admin-mobile-menu {
  border-radius: 50%;
}
.category-showcase button,
.today-action,
.p3-audit-row,
.ops-contact,
.brand-collection-feature {
  border-radius: 16px;
}
.nav-link {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav-link::before,
.nav-link:hover::before,
.nav-link.active::before {
  content: none;
}
.nav-link:hover,
.nav-link.active {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.account-btn {
  padding: 8px 5px;
  color: #806777;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.account-btn::before { content: none; }
.account-btn:hover {
  color: #8f2855;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-color: rgba(143,40,85,.38);
  text-underline-offset: 4px;
  transform: none;
}
.cart-btn {
  gap: 9px;
  padding: 6px 8px 6px 13px;
  border: 1px solid rgba(190,94,135,.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,240,247,.34));
  box-shadow: inset 0 1px rgba(255,255,255,.8);
}
.cart-btn:hover {
  border-color: rgba(190,94,135,.28);
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,232,241,.55));
  box-shadow: inset 0 1px rgba(255,255,255,.95), 0 5px 16px rgba(92,38,64,.07);
}
.cart-btn b { border-radius: 50%; }
.text-link,
.panel-heading a,
.detail-btn,
.product-detail-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 2px;
  border: 0;
  border-radius: 999px;
  color: #a92f61;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}
.text-link::before,
.panel-heading a::before,
.detail-btn::before,
.product-detail-link::before { content: none; }
.text-link:hover,
.panel-heading a:hover,
.detail-btn:hover,
.product-detail-link:hover {
  color: #82234e;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  text-decoration-color: rgba(130,35,78,.48);
  transform: translateY(-1px);
}
.footer-links button {
  padding: 4px 8px 4px 0;
  border-radius: 999px;
  text-align: left;
}
@media (max-width: 760px) {
  .account-btn { padding: 7px 3px; }
  .cart-btn { padding: 5px 7px 5px 11px; }
}

/* Hero artwork: wide composition matching the approved perfume preview. */
@media (min-width: 761px) {
  #catalogo-view .catalog-hero { position: relative; }
  #catalogo-view .hero-copy { position: relative; z-index: 1; }
  #catalogo-view .hero-art {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 65%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
    z-index: 0;
    pointer-events: none;
  }
  #catalogo-view .hero-art::before {
    background-size: cover !important;
    background-position: center right !important;
    mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 97%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 2%, #000 98%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 97%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 2%, #000 98%, transparent 100%);
    -webkit-mask-composite: source-in;
  }
}

/* Mobile storefront app dock */
.mobile-app-nav { display: none; }
body.admin-mode .mobile-app-nav { display: none !important; }
@media (max-width: 760px) {
  .mobile-section-nav { display: none !important; }
  .top-actions .icon-btn,
  .top-actions .account-btn,
  .top-actions .cart-btn { display: none !important; }
  body:not(.admin-mode) { padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px)); }
  .mobile-app-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    min-height: 68px;
    padding: 6px 5px;
    overflow: hidden;
    isolation: isolate;
    touch-action: manipulation;
    user-select: none;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,247,251,.66));
    box-shadow: 0 16px 40px rgba(88,38,62,.17), inset 0 1px 0 rgba(255,255,255,.96), inset 0 -1px 0 rgba(190,94,135,.09);
    -webkit-backdrop-filter: blur(28px) saturate(185%);
    backdrop-filter: blur(28px) saturate(185%);
  }
  .mobile-app-nav::before {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    z-index: 0;
    width: calc(20% - 2px);
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 24px;
    background: radial-gradient(ellipse at 26% 0%, rgba(255,255,255,.92), rgba(255,255,255,.48) 48%, rgba(255,239,247,.34)), linear-gradient(145deg, rgba(255,255,255,.56), rgba(250,220,234,.34));
    box-shadow: inset 1px 1px 1px rgba(255,255,255,.98), inset -1px -1px 1px rgba(184,68,120,.16), inset 0 -5px 10px rgba(255,255,255,.36), 0 4px 12px rgba(122,47,82,.11);
    -webkit-backdrop-filter: blur(15px) saturate(195%);
    backdrop-filter: blur(15px) saturate(195%);
    content: '';
    pointer-events: none;
    transform: translateX(0);
    transition: transform .52s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
  }
  .mobile-app-nav[data-active="search"]::before { transform: translateX(100%); }
  .mobile-app-nav[data-active="catalog"]::before { transform: translateX(200%); }
  .mobile-app-nav[data-active="cart"]::before { transform: translateX(300%); }
  .mobile-app-nav[data-active="account"]::before { transform: translateX(400%); }
  .mobile-app-nav::after {
    position: absolute;
    inset: 1px;
    z-index: 0;
    border-radius: inherit;
    background: linear-gradient(112deg, transparent 8%, rgba(255,255,255,.04) 24%, rgba(255,255,255,.44) 36%, transparent 51%, transparent 100%);
    background-size: 220% 100%;
    animation: bb-mobile-glass-sheen 8s ease-in-out infinite;
    content: '';
    pointer-events: none;
  }
  .mobile-app-tab {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-width: 0;
    height: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 1px;
    border: 0;
    border-radius: 20px;
    background: transparent;
    box-shadow: none;
    color: #917782;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: color .24s ease, transform .24s ease;
  }
  .mobile-app-tab::before,
  .mobile-app-tab.is-active::after { content: none; }
  .mobile-app-tab:hover {
    transform: none;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: inherit;
  }
  .mobile-app-tab:focus:not(:focus-visible) { outline: none; }
  .mobile-app-tab:focus-visible { outline: 2px solid rgba(181,47,108,.68); outline-offset: 1px; }
  .mobile-tab-icon {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 1px rgba(255,255,255,.55));
    transition: transform .32s cubic-bezier(.22,1,.36,1), filter .3s ease;
  }
  .mobile-app-tab.is-active { color: #b52f6c; }
  .mobile-app-tab.is-active .mobile-tab-icon { transform: translateY(-1px) scale(1.09); filter: drop-shadow(0 2px 4px rgba(181,47,108,.2)); }
  .mobile-app-tab:active .mobile-tab-icon { transform: scale(.9); }
  .mobile-tab-badge {
    position: absolute;
    top: 1px;
    left: calc(50% + 7px);
    display: grid;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    place-items: center;
    border: 1.5px solid rgba(255,255,255,.95);
    border-radius: 999px;
    background: #b52f6c;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
  }
}
@keyframes bb-mobile-glass-sheen {
  0%, 20% { background-position: 120% 0; }
  75%, 100% { background-position: -120% 0; }
}
@media (max-width: 360px) {
  .mobile-app-nav { left: 8px; right: 8px; }
  .mobile-app-tab { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-app-nav::before, .mobile-app-nav::after, .mobile-app-tab, .mobile-tab-icon { transition: none !important; animation: none !important; }
}

/* Stable close control for the shopping bag on desktop and mobile */
.cart-drawer .cart-head > .close-btn {
  display: inline-grid;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  flex: 0 0 38px;
  aspect-ratio: 1 / 1;
  place-items: center;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  transform: none;
}
.cart-drawer .cart-close-icon {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

/* Panel access is shown only after the server confirms an administrative role */
.admin-panel-btn[hidden] { display: none !important; }
.admin-panel-btn:not([hidden]) {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(190, 94, 135, .24);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(255,238,246,.68));
  box-shadow: inset 0 1px rgba(255,255,255,.96), 0 4px 14px rgba(92,38,64,.08);
  color: #9b2859;
  font-size: 11px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}
.admin-panel-btn:not([hidden]):hover {
  border-color: rgba(190, 65, 117, .4);
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(255,225,238,.8));
  box-shadow: inset 0 1px rgba(255,255,255,1), 0 6px 18px rgba(92,38,64,.12);
  transform: translateY(-1px);
}
.admin-panel-btn:focus-visible {
  outline: 2px solid rgba(181,47,108,.68);
  outline-offset: 3px;
}

/* Icon system shared by the storefront, mobile navigation and admin panel */
.bb-icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.ui-icon {
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button-icon {
  display: inline-flex;
  width: 1em;
  height: 1em;
  align-items: center;
  justify-content: center;
  vertical-align: -0.12em;
}
.button-icon .ui-icon { width: 100%; height: 100%; }
.stat-card .stat-icon,
.insight-card .insight-icon,
.activity-icon,
.radar-bullet,
.opportunity-visual {
  display: grid;
  place-items: center;
}
.stat-icon .ui-icon { width: 19px; height: 19px; }
.insight-icon .ui-icon { width: 22px; height: 22px; }
.activity-icon .ui-icon,
.radar-bullet .ui-icon { width: 16px; height: 16px; }
.opportunity-visual .ui-icon { width: 28px; height: 28px; }
.p4-side-link > span { display: grid; width: 18px; height: 18px; place-items: center; }
.p4-side-link .ui-icon { width: 17px; height: 17px; }
.margin-pill .ui-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.16em; }

/* Keep the add-to-bag action anchored to the product image */
.product-card-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  width: 100%;
  margin-bottom: 13px;
}
.product-card-media > .product-card-link,
.product-card-media > .product-add-btn { grid-area: 1 / 1; }
.product-card-media > .product-card-link { display: block; width: 100%; min-width: 0; }
.product-card-media .product-visual { width: 100%; margin-bottom: 0; }
.product-card-media .tag { z-index: 4; }
.product-card .product-add-btn {
  z-index: 5;
  position: relative;
  justify-self: end;
  align-self: end;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin: 0 12px 12px 0;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  transition: transform .35s cubic-bezier(.2,.75,.25,1), color .2s ease, background .2s ease, box-shadow .2s ease;
}
.product-info-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  outline: none;
}
.product-info-link:hover .product-name,
.product-info-link:focus-visible .product-name { color: var(--rose-dark); }
.product-info-link:focus-visible { box-shadow: 0 0 0 3px #f2a5bd; }
.product-card:hover .product-add-btn,
.product-card:focus-within .product-add-btn { transform: translateY(-5px); }
@media (max-width: 760px) {
  .product-card .product-add-btn {
    width: 34px;
    height: 34px;
    margin: 0 9px 9px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ui-icon, .button-icon { transition: none !important; }
}
