/* ============================================================
   JSR-UI - storefront publico inspirado no layout de referencia.
   Escopo total em .jsr-theme para nao afetar o template padrao.
   ============================================================ */

.jsr-theme {
  background: #f5f5f6;
}

.jsr-theme .container.mt-3,
.jsr-theme main {
  background: transparent;
}

.jsr-theme *,
.jsr-theme *::before,
.jsr-theme *::after {
  box-shadow: none !important;
}

.jsr-theme .hero.storefront-hero {
  height: clamp(210px, 34vw, 320px);
  min-height: 210px;
  max-height: 320px;
  border-radius: 0 !important;
}

.jsr-theme .hero::after {
  background: rgba(17, 24, 39, 0.10);
}

.jsr-theme .store-hero {
  max-width: 760px;
  margin: -34px auto 0;
  padding: 0 18px 18px;
  background: #fff;
  border: 0;
  border-radius: 0;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  grid-template-areas:
    "avatar copy"
    "links links";
  column-gap: 14px;
  row-gap: 0;
  text-align: left;
  position: relative;
  z-index: 5;
}

.jsr-theme .store-hero .avatar-wrap {
  grid-area: avatar;
  margin-top: -38px;
  width: 76px;
  height: 76px;
  padding: 5px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #ececec;
  display: block;
}

.jsr-theme .store-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  outline: 0;
  border-radius: 14px !important;
}

.jsr-theme .online-dot {
  display: none;
}

.jsr-theme .jsr-hero-copy {
  grid-area: copy;
  min-width: 0;
  padding-top: 12px;
}

.jsr-theme .jsr-status-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.jsr-theme .jsr-status-row.is-open {
  color: #18bf79;
}

.jsr-theme .jsr-status-row.is-closed {
  color: #ef4444;
}

.jsr-theme .jsr-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.jsr-theme .store-hero .store-name {
  margin: 10px 0 8px;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.12;
  font-weight: 900;
}

.jsr-theme .store-hero .store-meta,
.jsr-theme .store-hero .store-address,
.jsr-theme .store-hero > .mt-2 {
  display: none !important;
}

.jsr-theme .jsr-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #7b8190;
  font-size: .94rem;
  line-height: 1.3;
}

.jsr-theme .jsr-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.jsr-theme .jsr-meta-item strong {
  color: #0f172a;
  font-weight: 900;
}

.jsr-theme .jsr-meta-rating {
  color: #6b7280;
}

.jsr-theme .jsr-meta-rating i {
  color: #f4b400;
  font-size: .82rem;
}

.jsr-theme .jsr-meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #d0d4dc;
  flex: 0 0 auto;
}

.jsr-theme .store-hero .store-links {
  grid-area: links;
  margin-top: 16px !important;
  padding-top: 0;
  border-top: 0;
}

.jsr-theme .jsr-store-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.jsr-theme .jsr-store-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  text-align: center;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  font-size: .94rem;
  line-height: 1.14;
}

.jsr-theme .jsr-store-links a i {
  font-size: .9rem;
  color: var(--primary);
}

.jsr-theme .container.mt-3 {
  max-width: 760px;
  padding-left: 0;
  padding-right: 0;
}

.jsr-theme .offer-card,
.jsr-theme #bannersWrap,
.jsr-theme .cats-search,
.jsr-theme .category,
.jsr-theme .discount-hint,
.jsr-theme #searchResults {
  width: calc(100% - 16px);
  margin-left: 8px !important;
  margin-right: 8px !important;
}

.jsr-theme .offer-card {
  background: #fff7e9;
  border: 1px solid #f4e6c7;
  border-radius: 16px;
  padding: 14px 16px;
  color: #1f2937;
}

.jsr-theme .offer-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  position: relative;
}

.jsr-theme .offer-icon::before {
  content: "\f5ad";
  font-family: bootstrap-icons !important;
  font-size: 18px;
  line-height: 1;
}

.jsr-theme .offer-title {
  color: var(--primary);
  font-size: 1rem;
}

.jsr-theme .offer-sub {
  color: #8c8f98;
  font-size: .9rem;
}

.jsr-theme .offer-info {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #a7acb6;
  border-radius: 999px;
}

.jsr-theme .banner-item,
.jsr-theme .banner-item img {
  border-radius: 18px !important;
}

.jsr-theme .cats-search {
  position: static;
  z-index: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0 !important;
  margin-top: 18px !important;
  margin-bottom: 8px !important;
}

.jsr-theme .cats-search .cats-title {
  color: #9ca3af;
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.jsr-theme .cat-chips {
  gap: 10px;
  padding: 0 0 4px;
}

.jsr-theme .cat-item {
  border: 0;
  border-radius: 12px !important;
  background: #eceff3;
  color: #6b7280;
  padding: .72rem 1rem;
  font-size: .95rem;
  font-weight: 800;
}

.jsr-theme .cat-item:hover {
  background: #e5e7eb;
}

.jsr-theme .cat-item.active {
  background: var(--primary);
  color: #fff;
}

.jsr-theme .search-bar {
  margin: 12px 0 0 !important;
}

.jsr-theme .search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eff1f4;
  border-radius: 12px !important;
  padding: 0 14px;
}

.jsr-theme .search-icon,
.jsr-theme .search-clear {
  color: #b6bac4;
}

.jsr-theme .search-bar input,
.jsr-theme .search-wrap input {
  background: transparent;
  border: 0 !important;
  color: #111827;
  padding: 13px 0;
}

.jsr-theme .search-bar input::placeholder {
  color: #a9afb9;
}

.jsr-theme .category {
  margin-top: 14px;
  background: transparent;
  border: 0;
}

.jsr-theme .category-header {
  background: var(--primary);
  border-radius: 14px !important;
  padding: .95rem 1rem;
}

.jsr-theme .category-header .section-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .03em;
}

.jsr-theme .category-header .cat-chevron {
  color: #fff;
}

.jsr-theme .category-body {
  background: transparent;
  padding: 12px 0 0;
}

.jsr-theme .category-body > .row.g-3 {
  --bs-gutter-x: 0;
  --bs-gutter-y: 12px;
}

.jsr-theme #searchResults {
  padding-left: 0;
  padding-right: 0;
}

.jsr-theme .product-card {
  background: #fff;
  border: 1px solid #ebecef !important;
  border-radius: 18px !important;
  padding: .9rem;
  gap: .9rem;
  align-items: flex-start;
}

.jsr-theme .product-card:hover {
  background: #fff;
  border-color: #e2e5ea !important;
}

.jsr-theme .prod-thumb-wrap {
  width: 108px;
  height: 84px;
  border-radius: 14px !important;
  background: #e5e7eb;
  overflow: hidden;
}

.jsr-theme .prod-thumb {
  width: 108px;
  height: 84px;
  border-radius: 14px !important;
  object-fit: cover;
}

.jsr-theme .prod-thumb-wrap .discount-badge {
  top: 6px;
  left: 6px;
  bottom: auto;
  transform: none;
  margin: 0;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: .62rem;
  padding: 4px 7px;
  border-radius: 10px !important;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 900;
}

.jsr-theme .prod-thumb-wrap .stock-badge {
  border-radius: 10px !important;
  font-size: .66rem;
  font-weight: 900;
}

.jsr-theme .prod-thumb-wrap .stock-badge.stock-out {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(107, 114, 128, .94);
  color: #fff;
  padding: 6px 10px;
}

.jsr-theme .prod-thumb-wrap .stock-badge.stock-low {
  top: 6px;
  left: 6px;
  transform: none;
  background: #f59e0b;
  color: #fff;
}

.jsr-theme .product-title {
  color: #1f2937;
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.18;
}

.jsr-theme .product-info .text-muted.small {
  color: #858b97 !important;
  font-size: .88rem !important;
  line-height: 1.45;
  -webkit-line-clamp: 3;
}

.jsr-theme .promo-badge {
  background: #ff6675;
  color: #fff;
  border: 0;
  border-radius: 999px !important;
  padding: 3px 8px;
  font-size: .62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  vertical-align: middle;
}

.jsr-theme .product-price {
  color: var(--primary);
  font-size: 1.08rem;
  font-weight: 900;
}

.jsr-theme .price-old {
  color: #a3a7af;
  font-size: .86rem;
}

.jsr-theme .add-btn,
.jsr-theme .plus-fixed {
  width: 34px;
  height: 34px;
  border-radius: 10px !important;
  font-size: 1.15rem;
  font-weight: 800;
}

.jsr-theme .discount-hint {
  border-radius: 16px !important;
}

.jsr-theme .bag-bar {
  border-radius: 16px !important;
}

.jsr-theme .public-footer {
  border-radius: 0;
}

.jsr-theme .jsr-shell {
  display: block;
}

.jsr-theme .jsr-aside {
  display: none;
}

@media (min-width: 992px) {
  .jsr-theme .hero.storefront-hero {
    height: clamp(240px, 26vw, 360px);
    min-height: 240px;
    max-height: 360px;
  }

  .jsr-theme .jsr-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    max-width: 1120px;
    margin: 0 auto;
    align-items: start;
  }

  .jsr-theme .jsr-shell > .container.mt-3 {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    width: auto;
  }

  .jsr-theme .jsr-aside {
    display: block;
    position: sticky;
    top: 14px;
    align-self: start;
  }

  .jsr-theme .jsr-aside .jsr-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
  }

  .jsr-theme .jsr-aside .jsr-card-title {
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    padding: .7rem .95rem;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .jsr-theme .jsr-aside .jsr-info-body {
    padding: .85rem .95rem;
    font-size: .88rem;
    color: #333;
  }

  .jsr-theme .jsr-aside .jsr-info-body .store-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 0 !important;
  }

  .jsr-theme .jsr-aside #bagCanvas.jsr-docked {
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border: 1px solid #ececec !important;
    border-radius: 8px !important;
    background: #fff !important;
    z-index: auto !important;
  }

  .jsr-theme .jsr-aside #bagCanvas.jsr-docked .btn-close {
    display: none !important;
  }

  .jsr-theme.jsr-has-sidebar .bag-bar {
    display: none !important;
  }
}
