.store-product-search {
  position: sticky;
  z-index: 4;
  top: 0;
  padding: 8px 0;
  background: var(--bg, #f7f9fc);
}

.store-product-search .store-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #aebfd3;
  border-radius: 9px;
  background: #fff;
  color: #10284a;
}

.store-product-search .store-search:focus-within {
  border: 2px solid #245c9a;
  padding-inline: 11px;
}

.store-product-search .store-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
}

.store-product-search .store-search svg {
  position: static;
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

#storeGrid { scroll-margin-top: 64px; }

#storefrontHeader .shop-header #storeCartButton { margin-inline-start: auto; }

.store-add[hidden], .shop-product-add[hidden] { display: none !important; }

.store-card:has(.store-contact-actions) .store-photo-price { display: none; }

.store-card-body:has(> .store-contact-actions) > .store-price {
  display: flex;
  margin-bottom: 0;
}

.store-contact-actions {
  margin: 8px 0;
}

.store-contact-actions:last-child {
  margin-bottom: 0;
}

.store-offer-label {
  display: block;
  margin-bottom: 4px;
  color: #10284a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}

.store-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.store-contact-links a {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 4px 6px;
  border: 1px solid #cbd8e8;
  border-radius: 7px;
  color: #10284a;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.store-contact-links .store-whatsapp {
  border-color: #136a43;
  background: #136a43;
  color: #fff;
}

.store-contact-links a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.store-contact-links a:focus-visible {
  outline: 2px solid #245c9a;
  outline-offset: 2px;
}

.cg-dialog:has(.store-contact-actions) .shop-product-actions .shop-product-add {
  grid-column: 1 / -1;
}

body .cw-photo-dialog[open] {
  width: min(620px, calc(100% - 24px));
  height: auto;
  max-height: calc(100dvh - 24px);
  margin: auto;
  border: 1px solid #c3d6f2;
  border-radius: 14px;
  overflow: hidden;
}

.cw-photo-dialog[open] .cw-editor-body {
  min-height: 0;
  overflow: auto;
}

.cw-photo-dialog[open] .cw-photo-publication {
  margin: 8px 0;
  color: #38516f;
  font-size: 13px;
  line-height: 1.4;
}

.cw-photo-dialog > header {
  cursor: move;
  touch-action: none;
}

.cw-photo-dialog > header:focus-visible {
  outline: 2px solid #245c9a;
  outline-offset: -2px;
}

@media (max-width: 600px) {
  body .cw-photo-dialog[open] {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }
}
