/* ========================================
   catalogo.css — Aqua Space Catálogo
   ======================================== */

/* ── Hero do Catálogo ── */
.cat-hero {
  position: relative;
  background: #ffffff;
  padding: 14rem 0 2rem;
  text-align: center;
}

.cat-hero__content {
  position: relative;
  z-index: 2;
}

.cat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(41, 169, 224, 0.1);
  border: 1px solid rgba(41, 169, 224, 0.25);
  color: #0073C0;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.cat-hero__content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.cat-accent {
  color: #0073C0;
  background: linear-gradient(90deg, #0073C0, #29A9E0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cat-hero__content p {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #4A5568;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* ── Pesquisa ── */
.cat-search {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
}

.cat-search input {
  width: 100%;
  padding: 1.1rem 3.5rem 1.1rem 3.5rem;
  border-radius: 12px;
  border: 1.5px solid #CBD5E1;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  color: #1A1A1A;
}

.cat-search input:focus {
  border-color: #29A9E0;
  box-shadow: 0 4px 20px rgba(41, 169, 224, 0.15);
}

.cat-search__icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #0073C0;
  font-size: 1.1rem;
}

.cat-search__clear {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-search__clear:hover {
  color: #EF4444;
}

/* ── Secção Principal do Catálogo ── */
.cat-main {
  background: white;
  padding: 4rem 0 6rem;
}

/* Filtros por Categoria */
.cat-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.cat-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: 1.5px solid #E2E8F0;
  background: white;
  color: #4A5568;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-filter:hover {
  border-color: #29A9E0;
  color: #0073C0;
  background: rgba(41, 169, 224, 0.03);
}

.cat-filter--active {
  background: #0073C0;
  border-color: #0073C0;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 115, 192, 0.25);
}

.cat-filter--active:hover {
  background: #0073C0;
  border-color: #0073C0;
  color: white;
}

/* Barra de Resultados */
.cat-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
  color: #64748B;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 1rem;
}

.cat-results-bar #cat-count {
  font-weight: 700;
  color: #1A1A1A;
}

.cat-results-bar__hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-results-bar__hint i {
  color: #29A9E0;
}

/* Grelha de Produtos */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2rem;
}

/* Card do Produto */
.cat-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
}

.cat-card.cat-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 115, 192, 0.08);
  border-color: #29A9E0;
}

/* Imagem Placeholder dos Produtos */
.cat-card__img-wrap {
  height: 200px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #F1F5F9;
}

.cat-card__placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-card:hover .cat-card__placeholder-img {
  transform: scale(1.04);
}

/* Corpo do Card */
.cat-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cat-card__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0073C0;
  background: rgba(0, 115, 192, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.cat-card__body h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  height: 2.8rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cat-card__body p {
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

/* Especificações */
.cat-card__specs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  border-top: 1px dashed #E2E8F0;
  padding-top: 1rem;
}

.cat-card__specs span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #4A5568;
  font-weight: 500;
}

.cat-card__specs i {
  color: #29A9E0;
  font-size: 0.75rem;
}

/* Preço */
.cat-card__price {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748B;
  margin-bottom: 1.5rem;
  background: #F8FAFC;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-align: center;
}

.cat-card__price strong {
  color: #0073C0;
  font-size: 0.95rem;
}

/* Ações */
.cat-card__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.cat-card__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem;
  background: white;
  border: 1.5px solid #0073C0;
  color: #0073C0;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cat-card__btn:hover {
  background: rgba(0, 115, 192, 0.03);
}

.cat-card__btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #0073C0;
  color: white;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cat-card__btn-add:hover {
  background: #29A9E0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(41, 169, 224, 0.3);
}

/* ── CTA da Página ── */
.cat-cta {
  padding: 5rem 0;
  background: #ffffff;
}

.cat-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background: linear-gradient(135deg, #0073C0 0%, #004D80 100%);
  border-radius: 20px;
  padding: 3.5rem 4rem;
  box-shadow: 0 10px 30px rgba(0, 115, 192, 0.15);
}

.cat-cta__left {
  max-width: 600px;
}

.cat-cta__left h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  color: white;
  margin-bottom: 0.8rem;
}

.cat-cta__left p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
}

.cat-cta__right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  flex-shrink: 0;
}

.cat-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.2rem;
  background: white;
  border-radius: 8px;
  color: #0073C0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cat-cta__btn:hover {
  background: #F1F5F9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cat-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.cat-cta__phone i {
  color: #29A9E0;
}

.cat-cta__phone:hover {
  color: #29A9E0;
}

/* ── Botão Flutuante do Carrinho ── */
.floating-cart {
 position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
}



.floating-cart__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0073C0;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 115, 192, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.floating-cart__btn:hover {
  background: #29A9E0;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(41, 169, 224, 0.4);
}

.floating-cart__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #1A1A1A;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

@keyframes badgePop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.badge-pulse {
  animation: badgePop 0.3s ease;
}

/* ── Cart Drawer (Carrinho Lateral Exclusivo Aqua Space) ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 26, 51, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-overlay.cart-overlay--active {
  display: block;
  opacity: 1;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 100vw;
  height: 100vh;
  background: white;
  z-index: 3000;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-panel.cart-panel--open {
  transform: translateX(0);
}

.cart-panel__header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-panel__header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-panel__header-info i {
  font-size: 1.25rem;
  color: #0073C0;
}

.cart-panel__header-info span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #1A1A1A;
}

.cart-panel__count {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 115, 192, 0.08);
  color: #0073C0;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.cart-panel__clear,
.cart-panel__close {
  background: #F8FAFC;
  border: none;
  color: #64748B;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cart-panel__clear:hover {
  background: #FEE2E2;
  color: #EF4444;
}

.cart-panel__close:hover {
  background: #E2E8F0;
  color: #1A1A1A;
}

.cart-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

/* Estado Vazio */
.cart-panel__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 70%;
  color: #64748B;
  text-align: center;
  gap: 0.5rem;
}

.cart-panel__empty i {
  font-size: 3.5rem;
  color: #E2E8F0;
  margin-bottom: 1rem;
}

.cart-panel__empty p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1A1A1A;
  font-size: 1.1rem;
}

.cart-panel__empty span {
  font-size: 0.88rem;
  max-width: 250px;
}

/* Item no Carrinho */
.cart-panel__item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #F8FAFC;
  border-radius: 12px;
  margin-bottom: 1rem;
  align-items: center;
  border: 1px solid #F1F5F9;
  position: relative;
}

.cart-panel__item-img {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #E2E8F0;
  font-size: 1.5rem;
  color: #29A9E0;
}

.cart-panel__item-info {
  flex: 1;
  min-width: 0;
}

.cart-panel__item-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-panel__item-info span {
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 500;
}

.cart-panel__item-remove {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-panel__item-remove:hover {
  color: #EF4444;
}

/* Footer do Carrinho */
.cart-panel__footer {
  padding: 2rem;
  border-top: 1px solid #F1F5F9;
  background: #F8FAFC;
}

.cart-panel__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cart-panel__input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  border: 1.5px solid #CBD5E1;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  outline: none;
  background: white;
  transition: all 0.3s ease;
}

.cart-panel__input:focus {
  border-color: #0073C0;
  box-shadow: 0 0 0 3px rgba(0, 115, 192, 0.1);
}

.cart-panel__actions {
  display: flex;
  gap: 0.75rem;
}

.cart-panel__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  color: white;
  transition: all 0.25s ease;
}

.cart-panel__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-panel__btn--wa {
  background: #25D366;
}

.cart-panel__btn--wa:hover {
  background: #20BD5A;
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.25);
}

.cart-panel__btn--email {
  background: #0073C0;
}

.cart-panel__btn--email:hover {
  background: #005F9E;
  box-shadow: 0 6px 15px rgba(0, 115, 192, 0.25);
}

/* ── Product Details Modal ── */
.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 26, 51, 0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-modal.product-modal--open {
  display: flex;
  opacity: 1;
}

.product-modal__content {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 720px;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.product-modal.product-modal--open .product-modal__content {
  transform: translateY(0);
}

.product-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #F8FAFC;
  border: none;
  color: #64748B;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
  z-index: 10;
}

.product-modal__close:hover {
  background: #E2E8F0;
  color: #EF4444;
}

.product-modal__body {
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
}

.product-modal__img-wrap {
  background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  border: 1px solid #E2E8F0;
}

.product-modal__placeholder-icon {
  font-size: 5rem;
  color: #29A9E0;
}

.product-modal__info {
  display: flex;
  flex-direction: column;
}

.product-modal__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0073C0;
  background: rgba(0, 115, 192, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.product-modal__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.product-modal__desc {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.product-modal__specs-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-modal__specs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.product-modal__spec-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #4A5568;
}

.product-modal__spec-item i {
  color: #29A9E0;
  font-size: 0.8rem;
}

.product-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid #F1F5F9;
  padding-top: 1.5rem;
  margin-top: auto;
}

.product-modal__price-info {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748B;
}

.product-modal__price-info span {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0073C0;
  margin-top: 0.2rem;
}

.product-modal__btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  background: #0073C0;
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.product-modal__btn-add:hover {
  background: #29A9E0;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(41, 169, 224, 0.35);
}

/* ── Responsivo ── */
@media (max-width: 992px) {
  .cat-cta__inner {
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
    gap: 2rem;
  }

  .cat-cta__right {
    align-items: center;
  }

  .cat-cta__left {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .cart-panel {
    width: 100%;
  }

  .product-modal__body {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 1.5rem;
  }

  .product-modal__img-wrap {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .cat-hero {
    padding: 14rem 0 3rem;
  }

  .cat-filters {
    gap: 0.5rem;
  }

  .cat-filter {
    font-size: 0.8rem;
    padding: 0.6rem 1.1rem;
    flex-grow: 1;
    justify-content: center;
  }

  .cat-results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .cat-card__body h3 {
    font-size: 1rem;
  }
}
