/* Adesivos Country — Loja (storefront). Depende de brand.css */
.ac-store { background: #fff; color: #1a1a1a; min-height: 100dvh; display: flex; flex-direction: column; }

/* Header */
.ac-store-header { background: var(--ac-black); border-bottom: 2px solid var(--ac-gold); position: sticky; top: 0; z-index: 50; }
.ac-store-header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.ac-store-brand img { height: 52px; width: auto; }
.ac-store-header-wa { flex: 0 0 auto; }

/* Main */
.ac-store-main { flex: 1; padding-top: 26px; padding-bottom: 60px; }

/* Hero */
.ac-store-hero { text-align: center; margin-bottom: 26px; }
.ac-store-hero-badge { display: inline-block; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--ac-gold); border: 1px solid rgba(176,138,53,.45); border-radius: 999px; padding: 6px 14px; margin-bottom: 14px; }
.ac-store-hero-title { font-size: clamp(24px, 5vw, 40px); font-weight: 900; text-transform: uppercase; margin: 0 0 10px; line-height: 1.1; color: #111; }
.ac-store-hero-text { color: #666; font-size: clamp(14px, 2.4vw, 17px); margin: 0 auto; max-width: 560px; line-height: 1.5; }

/* Toolbar */
.ac-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.ac-search { flex: 1 1 260px; }
.ac-search input { width: 100%; padding: 13px 16px; border: 2px solid #e4e4e4; border-radius: var(--ac-radius); font-size: 16px; outline: none; transition: border-color .15s; font-family: var(--ac-font); }
.ac-search input:focus { border-color: var(--ac-gold); }
.ac-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-filter { background: var(--ac-gray); border: 1px solid #e4e4e4; color: #333; padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; font-family: var(--ac-font); transition: all .15s; }
.ac-filter:hover { border-color: var(--ac-gold); }
.ac-filter.is-active { background: var(--ac-black); color: #fff; border-color: var(--ac-black); }

/* Grade */
.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.ac-card { background: #fff; border: 1px solid #ededed; border-radius: var(--ac-radius); overflow: hidden; box-shadow: var(--ac-shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.ac-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.ac-card.is-out { opacity: .72; }
.ac-card-img { position: relative; aspect-ratio: 1/1; background: var(--ac-gray); }
.ac-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ac-card-ref { position: absolute; top: 10px; left: 10px; background: var(--ac-black); color: var(--ac-gold-light); font-weight: 700; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; }
.ac-card-badge { position: absolute; top: 10px; right: 10px; background: #c0392b; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 5px 9px; border-radius: 8px; }
.ac-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ac-card-title { font-size: 16px; font-weight: 700; margin: 0; color: #111; }
.ac-card-desc { font-size: 13.5px; color: #666; margin: 0; line-height: 1.4; }
.ac-card-stock { font-size: 12.5px; color: var(--ac-gold); font-weight: 600; margin: 0; }
.ac-card-stock.ac-card-out { color: #c0392b; font-weight: 700; }
.ac-card.is-out .ac-qty { display: none; }

/* Flag "já adicionado" — verde discreto */
.ac-card.is-in-cart { border-color: #bfe6ca; box-shadow: 0 0 0 2px rgba(30,126,52,.18); }
.ac-card-incart { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; font-weight: 700; color: #1e7e34; background: #eaf7ee; border: 1px solid #bfe6ca; padding: 3px 10px 3px 8px; border-radius: 999px; }
.ac-card-incart::before { content: "\2713"; font-weight: 900; }

/* Balão flutuante junto ao botão do carrinho (FAB) */
.ac-fab-hint {
  position: fixed; right: 18px; bottom: 78px; z-index: 9998;
  max-width: min(230px, calc(100vw - 36px));
  background: var(--ac-black); color: #fff;
  border: 1px solid var(--ac-gold); border-radius: 12px;
  padding: 9px 13px; font-size: 13px; font-weight: 600; line-height: 1.3;
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
}
.ac-fab-hint::after {
  content: ""; position: absolute; right: 22px; bottom: -7px;
  width: 12px; height: 12px; background: var(--ac-black);
  border-right: 1px solid var(--ac-gold); border-bottom: 1px solid var(--ac-gold);
  transform: rotate(45deg);
}
.ac-card-actions { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.ac-add-btn { flex: 1; }
.ac-add-btn.ac-added { background: #1e7e34 !important; color: #fff; }

.ac-store-empty, .ac-no-results { text-align: center; color: #777; padding: 40px 0; font-size: 15px; }

/* Footer */
.ac-store-footer { background: var(--ac-black); color: #cfcfcf; text-align: center; padding: 30px 0; border-top: 2px solid var(--ac-gold); }
.ac-store-footer-logo { height: 56px; width: auto; margin: 0 auto 12px; }
.ac-store-footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.ac-store-footer-links a { color: var(--ac-gold-light); text-decoration: none; font-weight: 600; font-size: 14px; }
.ac-store-footer-links a:hover { text-decoration: underline; }
.ac-store-footer-copy { font-size: 12.5px; color: #7e7e7e; margin: 0; }

/* ===== Carrinho: FAB + overlay + drawer ===== */
.ac-fab { position: fixed; right: 18px; bottom: 18px; z-index: 9998; display: inline-flex; align-items: center; gap: 10px; background: var(--ac-black); color: #fff; border: 2px solid var(--ac-gold); border-radius: 999px; padding: 13px 20px; font-size: 15px; font-weight: 700; font-family: var(--ac-font); cursor: pointer; box-shadow: 0 8px 26px rgba(0,0,0,.35); }
.ac-fab-icon { color: var(--ac-gold-light); display: inline-flex; }
.ac-fab-count { background: var(--ac-gold); color: #1a1208; min-width: 24px; height: 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; padding: 0 6px; }

.ac-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9998; }

/* Drawer: sempre presente, fica fora da tela quando fechado (transform).
   Abre com .is-open. Nunca usa display que prenda aberto. */
.ac-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 92vw; background: #fff; color: #1a1a1a; z-index: 9999; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.25); transform: translateX(100%); transition: transform .25s ease; }
.ac-drawer.is-open { transform: translateX(0); }
.ac-drawer:not(.is-open) { pointer-events: none; }

.ac-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; background: var(--ac-black); color: #fff; }
.ac-drawer-head h2 { margin: 0; font-size: 18px; color: var(--ac-gold-light); }
.ac-drawer-close { background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }
.ac-drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.ac-cart-empty { color: #888; text-align: center; padding: 24px 0; }

.ac-ci { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; }
.ac-ci-img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--ac-gray); }
.ac-ci-info { display: flex; flex-direction: column; min-width: 0; }
.ac-ci-ref { font-size: 12px; font-weight: 700; color: var(--ac-gold); }
.ac-ci-name { font-size: 14px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-ci-qty { display: flex; align-items: center; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; }
.ac-ci-qty button { background: var(--ac-gray); border: none; width: 28px; height: 32px; cursor: pointer; font-size: 16px; }
.ac-ci-input { width: 36px; height: 32px; border: none; text-align: center; -moz-appearance: textfield; font-family: var(--ac-font); }
.ac-ci-input::-webkit-outer-spin-button, .ac-ci-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ac-ci-remove { background: none; border: none; color: #c0392b; font-size: 22px; cursor: pointer; padding: 0 4px; }

.ac-customer { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.ac-customer label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: #444; }
.ac-customer input, .ac-customer textarea { padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px; font-size: 15px; font-family: var(--ac-font); }
.ac-customer input:focus, .ac-customer textarea:focus { border-color: var(--ac-gold); outline: none; }
.ac-req { color: #c0392b; font-weight: 800; }

.ac-drawer-foot { padding: 16px 20px; border-top: 1px solid #eee; background: #fafafa; }
.ac-cart-summary { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 12px; }
.ac-cart-summary strong { color: var(--ac-gold); font-size: 18px; }

/* ===== Lightbox da imagem do adesivo ===== */
.ac-card-img { cursor: zoom-in; }
.ac-lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.86); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.ac-lightbox.is-open { opacity: 1; visibility: visible; }
.ac-lightbox-img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.55); background: #fff; }
.ac-lightbox-cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.8); padding: 0 16px; }
.ac-lightbox-close { position: absolute; top: 16px; right: 18px; background: rgba(255,255,255,.14); border: none; color: #fff; width: 44px; height: 44px; border-radius: 999px; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ac-lightbox-close:hover { background: rgba(255,255,255,.28); }

@media (max-width: 600px) {
  .ac-store-brand img { height: 42px; }
  .ac-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .ac-card-body { padding: 10px; }
  .ac-card-actions { flex-direction: column; align-items: stretch; }
  .ac-qty { justify-content: center; }
  .ac-fab-text { display: none; }
  .ac-fab { padding: 14px; }
}
