/* Loja virtual — SF Sabor da Família */
.shop-section {
  padding: 72px 0 88px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 168, 67, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #f5ece9 0%, #fff 45%, #f8f2ed 100%);
}

.shop-header {
  text-align: center;
  margin-bottom: 36px;
}

.shop-header-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 24px;
  text-align: left;
}

.shop-header-split .section-desc {
  margin-left: 0;
  margin-right: 0;
}

.shop-header-actions {
  flex-shrink: 0;
}

.shop-full-link-top {
  white-space: nowrap;
  padding: 14px 22px;
}

.shop-home-more {
  margin-top: 28px;
  text-align: center;
}

.shop-home-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: #8b7355;
}

.shop-grid-home {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.shop-section-full {
  padding-top: 24px;
}

.shop-page-top {
  background: #24100b;
  border-bottom: 1px solid rgba(225, 179, 69, 0.25);
  padding: 14px 0;
}

.shop-page-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.shop-page-back,
.shop-page-contact {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.shop-page-back:hover,
.shop-page-contact:hover {
  color: #e1b345;
}

.shop-page-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.shop-page-body .shop-section-full {
  min-height: 60vh;
}

@media (max-width: 720px) {
  .shop-header-split {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-header-actions .btn {
    width: 100%;
    text-align: center;
  }
}

.shop-header .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.shop-store {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: 28px 28px 36px;
  box-shadow: 0 20px 60px rgba(36, 16, 11, 0.1);
  border: 1px solid rgba(212, 168, 67, 0.22);
}

.shop-filter-wrap {
  margin-bottom: 28px;
}

.shop-filter-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #8b7355;
  text-align: center;
  margin: 0 0 14px;
}

.shop-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.shop-filter-bar .cat-btn {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.shop-filter-bar .cat-btn span {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(212, 168, 67, 0.35);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  color: #3d1e16;
  transition: all 0.22s ease;
}

.shop-filter-bar .cat-btn:hover span {
  border-color: #d4a843;
  background: #fffaf0;
}

.shop-filter-bar .cat-btn.active span {
  background: linear-gradient(145deg, #3d1e16, #24100b);
  color: #e1b345;
  border-color: #3d1e16;
  box-shadow: 0 6px 18px rgba(36, 16, 11, 0.2);
}

.shop-catalog-meta {
  display: none;
}

.shop-catalog-intro {
  flex: 1;
  min-width: 220px;
}

.shop-catalog-meta h3 {
  font-family: Georgia, "Cormorant Garamond", serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #24100b;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.shop-dept-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-dept-list li {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #3d1e16;
  background: #fff;
  border: 1px solid rgba(212, 168, 67, 0.35);
  padding: 6px 11px;
  border-radius: 999px;
  line-height: 1.2;
}

.shop-catalog-count {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #24100b;
  background: linear-gradient(145deg, #f0c850, #e1b345);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(212, 168, 67, 0.25);
}

.shop-catalog {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.shop-catalog-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.shop-catalog:not(.is-filtered) .shop-category-block.is-empty {
  display: none;
}

.shop-category-block {
  scroll-margin-top: 96px;
  padding: 22px 22px 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(36, 16, 11, 0.05);
}

.shop-category-block.is-hidden {
  display: none;
}

.shop-category-head {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212, 168, 67, 0.22);
}

.shop-category-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.shop-category-head h3 {
  font-family: Georgia, "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #24100b;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.shop-category-label {
  display: inline-block;
  padding-left: 14px;
  border-left: 4px solid #e1b345;
}

.shop-category-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: #3d1e16;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  background: rgba(212, 168, 67, 0.16);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.shop-category-desc {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  color: #8b7355;
  margin: 0;
  line-height: 1.65;
  max-width: 62ch;
}

.shop-category-empty {
  margin: 0;
  padding: 18px 16px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: #8b7355;
  background: #faf6ef;
  border: 1px dashed rgba(212, 168, 67, 0.35);
  border-radius: 14px;
}

.shop-grid-flat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.shop-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 28px rgba(36, 16, 11, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(36, 16, 11, 0.12);
}

.shop-card.is-hidden {
  display: none;
}

.shop-card-featured {
  border-color: rgba(212, 168, 67, 0.45);
  box-shadow: 0 12px 36px rgba(212, 168, 67, 0.16);
}

.shop-card-media {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  background: #f0ebe8;
  text-decoration: none;
}

.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.shop-card:hover .shop-card-media img {
  transform: scale(1.05);
}

.shop-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: Georgia, serif;
  font-size: 2rem;
  color: #d4a843;
}

.shop-card-badge {
  display: none;
}

.shop-card-star {
  display: inline-block;
  width: fit-content;
  background: #a61c1c;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
}

.shop-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.shop-card-cat {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #a61c1c;
  background: rgba(166, 28, 28, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  line-height: 1.35;
}

.shop-card-title {
  font-family: Georgia, "Cormorant Garamond", serif;
  font-size: 1.22rem;
  color: #24100b;
  margin: 0;
  line-height: 1.25;
  display: block;
}

.shop-card-desc {
  font-size: 0.86rem;
  color: #8b7355;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

.shop-card-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #faf6ef 0%, #f3ebe0 100%);
  border-radius: 12px;
  border: 1px solid rgba(212, 168, 67, 0.28);
}

.shop-card-price {
  font-size: 1.42rem;
  font-weight: 800;
  color: #a61c1c;
  line-height: 1;
  letter-spacing: -0.02em;
}

.shop-card-sep {
  color: #c9a030;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.shop-card-weight {
  font-size: 0.76rem;
  font-weight: 600;
  color: #3d1e16;
  background: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 67, 0.3);
}

.shop-card-qty-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.shop-granel-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
  padding: 12px;
  border-radius: 12px;
  background: #fffaf0;
  border: 1px solid rgba(212, 168, 67, 0.28);
}

.shop-granel-ref {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #3d1e16;
}

.shop-granel-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shop-granel-chip {
  border: 1px solid rgba(212, 168, 67, 0.45);
  background: #fff;
  color: #3d1e16;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.shop-granel-chip.active,
.shop-granel-chip:hover {
  background: #f0c850;
  border-color: #c9a030;
}

.shop-granel-total,
.cart-granel-summary {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #a61c1c;
}

.shop-granel-hint {
  margin: 0;
  font-size: 0.74rem;
  color: #8b7355;
  line-height: 1.35;
}

.shop-qty-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b5344;
}

.shop-qty-label select,
.shop-qty-label input,
.cart-weight-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #e8ddd0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.85rem;
  background: #fff;
  color: #24100b;
}

.shop-qty-unit {
  font-size: 0.82rem;
  color: #8b7355;
  font-weight: 700;
}

.cart-weight-row {
  margin: 8px 0 4px;
}

.cart-weight-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b5344;
}

.cart-weight-row span {
  font-size: 0.82rem;
  color: #8b7355;
  font-weight: 700;
}

.shop-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.shop-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(212, 168, 67, 0.35);
  background: #fff;
  color: #3d1e16;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.shop-card-link:hover {
  border-color: #d4a843;
  background: #fffaf0;
  color: #24100b;
}

.shop-card-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(145deg, #f0c850, #e1b345, #c9a030);
  color: #24100b;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.shop-card-add:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.shop-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #8b7355;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .shop-grid-flat {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .shop-store {
    padding: 18px 14px 26px;
    border-radius: 18px;
  }

  .shop-catalog-meta {
    padding: 16px;
  }

  .shop-catalog-meta h3 {
    font-size: 1.45rem;
  }

  .shop-category-block {
    padding: 16px 14px 18px;
  }

  .shop-category-head h3 {
    font-size: 1.32rem;
  }

  .shop-grid-flat {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .shop-filter-bar .cat-btn span {
    padding: 9px 14px;
    font-size: 0.8rem;
  }

  .shop-card-media {
    height: 190px;
  }
}
