/* ===== WePink clone — grid responsivo + drawer proprio =====
   Cor de marca: #ff0080  */
:root { --wp-pink: #ff0080; --wp-ink: #000; }

/* ---------- GRID DA COLECAO: 2 col (mobile) / 3 col (desktop) ---------- */
#gallery-layout-container.vtex-search-result-3-x-gallery {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  padding: 16px 12px 32px !important;
  margin: 0 !important;
}
@media (min-width: 900px) {
  #gallery-layout-container.vtex-search-result-3-x-gallery {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 18px !important;
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 24px !important;
  }
}
/* cada item vira um card de ecommerce */
#gallery-layout-container .vtex-search-result-3-x-galleryItem {
  flex-basis: auto !important;
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
}
#gallery-layout-container .vtex-product-summary-2-x-container {
  max-width: none !important;
  width: 100% !important;
  border: 1px solid #eee !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 8px 8px 12px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .18s ease, transform .18s ease;
}
#gallery-layout-container .vtex-product-summary-2-x-container:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
}
/* imagem menor pra caber 2 por linha */
#gallery-layout-container .vtex-product-summary-2-x-imageNormal,
#gallery-layout-container .vtex-product-summary-2-x-image {
  height: auto !important;
  max-height: 200px !important;
  width: 100% !important;
  object-fit: contain !important;
}
@media (min-width: 900px) {
  #gallery-layout-container .vtex-product-summary-2-x-imageNormal,
  #gallery-layout-container .vtex-product-summary-2-x-image { max-height: 280px !important; }
}
/* nome do produto compacto */
#gallery-layout-container .vtex-product-summary-2-x-nameContainer {
  padding: 8px 4px 4px !important;
  min-height: 54px;
  align-items: flex-start !important;
}
#gallery-layout-container .vtex-product-summary-2-x-brandName {
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 600;
}
@media (min-width: 900px) {
  #gallery-layout-container .vtex-product-summary-2-x-brandName { font-size: 15px !important; }
}
/* frase custom menor no mobile */
#gallery-layout-container .wepink-store-theme-6-x-saCustomFieldsText {
  font-size: 11px !important; line-height: 1.3 !important; color: #666;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; padding: 0 4px;
}
/* precos */
#gallery-layout-container .vtex-product-price-1-x-listPriceValue { font-size: 11px !important; }
#gallery-layout-container .vtex-product-price-1-x-sellingPriceValue {
  font-size: 16px !important; font-weight: 700; color: var(--wp-ink);
}
#gallery-layout-container .vtex-product-price-1-x-installments { font-size: 10px !important; color: #777; }
/* badge/flag menor */
#gallery-layout-container .flag-item-wrapper { top: 8px !important; margin: 4px !important; }
#gallery-layout-container .flag-item-wrapper img { max-width: 46px !important; }
/* esconder o botao "+" secundario no mobile, deixar so o Comprar (visual ecommerce) */
#gallery-layout-container .vtex-flex-layout-0-x-flexCol--add-to-cart-button-product-summary { display: none !important; }
#gallery-layout-container .vtex-flex-layout-0-x-flexRow--add-to-cart-button-product-summary .vtex-button {
  background: var(--wp-pink) !important;
  border-color: var(--wp-pink) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-size: 13px !important;
}

/* ---------- DRAWER PROPRIO (minicart) ---------- */
#wp-drawer-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; transition: opacity .25s ease; z-index: 2147483000;
}
#wp-drawer-overlay.open { opacity: 1; visibility: visible; }
#wp-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: 90%; max-width: 400px;
  background: #fff; transform: translateX(100%); transition: transform .28s ease;
  z-index: 2147483001; display: flex; flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,.15); font-family: inherit;
}
#wp-drawer.open { transform: translateX(0); }
#wp-drawer .wpd-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 14px; border-bottom: 1px solid #eee;
}
#wp-drawer .wpd-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--wp-ink); }
#wp-drawer .wpd-close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #333; }
#wp-drawer .wpd-body { flex: 1; overflow-y: auto; padding: 8px 18px; }
#wp-drawer .wpd-empty { text-align: center; color: #999; padding: 60px 20px; font-size: 15px; }
.wpd-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #f2f2f2; }
.wpd-item img { width: 68px; height: 68px; object-fit: contain; border-radius: 6px; background: #faf7f8; }
.wpd-item-info { flex: 1; min-width: 0; }
.wpd-item-name { font-size: 13px; font-weight: 600; color: #222; margin: 0 0 6px; line-height: 1.25; }
.wpd-item-list { font-size: 11px; color: #aaa; text-decoration: line-through; margin-right: 6px; }
.wpd-item-price { font-size: 14px; font-weight: 700; color: var(--wp-pink); }
.wpd-qty { display: inline-flex; align-items: center; border: 1px solid #e2e2e2; border-radius: 8px; margin-top: 8px; }
.wpd-qty button { width: 30px; height: 30px; border: 0; background: none; font-size: 17px; cursor: pointer; color: #333; }
.wpd-qty span { min-width: 26px; text-align: center; font-size: 14px; }
.wpd-item-remove { background: none; border: 0; color: #bbb; font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; margin-top: 6px; display: block; }
#wp-drawer .wpd-foot { border-top: 1px solid #eee; padding: 16px 18px 22px; }
.wpd-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: #444; }
.wpd-row.total { font-size: 17px; font-weight: 800; color: var(--wp-ink); margin: 10px 0 16px; }
.wpd-row .disc { color: var(--wp-pink); }
.wpd-cta { display: block; width: 100%; text-align: center; background: var(--wp-pink); color: #fff;
  border: 0; border-radius: 10px; padding: 15px; font-size: 15px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; cursor: pointer; text-decoration: none; }
.wpd-cont { display: block; width: 100%; text-align: center; background: #fff; color: var(--wp-ink);
  border: 1.5px solid var(--wp-pink); border-radius: 10px; padding: 13px; font-size: 14px; font-weight: 700;
  margin-top: 10px; cursor: pointer; text-decoration: none; }

/* badge de contagem no icone do carrinho */
.wp-cart-badge {
  position: absolute; top: -6px; right: -6px; background: var(--wp-pink); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
