/* =========================
   Woo Theme Activation - Frontend (Enhanced)
   Version: 2.0.1.7 - Improved Responsive Layout
   ========================= */

/* Section Styles */
.wta-section {
  margin: 32px 0;
  max-width: none;
  width: 100%;
  padding: 0;
  border: none;
  box-shadow: none;
}

.wta-section__head {
  text-align: left;
  margin: 0 0 24px 0;
  padding: 0;
}

.wta-section__kicker {
  font-size: 14px;
  opacity: .75;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wta-section__title {
  font-size: 38px;
  line-height: 1.2;
  margin: 0 0 12px 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1e1e1e;
}

.wta-section__sub {
  font-size: 18px;
  opacity: .75;
  color: #666;
}

/* Carousel wrapper */
.wta-carousel {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: none;
  box-shadow: none;
}

.wta-carousel__viewport {
  overflow: hidden;
  border: none;
}

.wta-carousel__track {
  display: flex;
  gap: 24px;
  transition: transform .5s ease-in-out;
}

.wta-carousel__track.is-animating {
  will-change: transform;
}

/* Nav buttons - Modern Design */
.wta-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none !important;
  width: 36px;
  height: 36px;
  border-radius: 0;
  cursor: pointer;
  box-shadow: none !important;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #000;
  font-size: 22px;
  font-weight: 700;
  padding: 0;
}

.wta-carousel__btn svg {
  stroke: #000;
  fill: none;
}

.wta-carousel__btn:hover:not(.is-disabled) {
  opacity: 0.8;
  transform: translateY(-50%);
}

.wta-carousel__btn:focus-visible {
  outline: 3px solid #2271b1;
  outline-offset: 3px;
}

.wta-carousel__btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.wta-carousel__btn--prev {
  left: 12px;
}

.wta-carousel__btn--next {
  right: 12px;
}

/* Dots - Modern Design */
.wta-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.wta-carousel__dots:empty { display: none; }

.wta-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d0d0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.wta-dot:hover {
  background: #999;
}

.wta-dot:focus-visible {
  outline: 2px solid #2271b1;
  outline-offset: 3px;
}

.wta-dot.is-active {
  width: 32px;
  border-radius: 6px;
  background: #2271b1;
  border-color: #2271b1;
}

/* Card - Professional Design */
.wta-card {
  flex: 0 0 calc(25% - 18px);
  max-width: calc(25% - 18px);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
  border: 1px solid rgba(0,0,0,.08);
}

.wta-card::before {
  display: none;
}

.wta-card:hover {
  transform: none;
  box-shadow: none;
}

.wta-card:hover::before {
  opacity: 0;
}

.wta-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: transparent;
  overflow: hidden;
}

.wta-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.wta-card:hover .wta-card__image img {
  transform: none;
}

.wta-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #fff;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 1px 6px rgba(0,0,0,.12);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: none;
}

.wta-card__content { padding: 22px; }

.wta-card__category { display: block; color: #888; font-size: 13px; margin-bottom: 10px; }
.wta-card__category svg { display: none; }

.wta-card__title { font-size: 21px; font-weight: 700; color: #222; margin: 0 0 14px 0; line-height: 1.3; letter-spacing: -0.01em; }

.wta-card__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.wta-btn {
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: auto;
  z-index: 1;
}

.wta-btn:focus-visible {
  outline: 3px solid #2271b1;
  outline-offset: 2px;
}

.wta-btn--primary { background: linear-gradient(180deg, #2a7ac7 0%, #2271b1 100%); color: #fff; box-shadow: 0 4px 12px rgba(34, 113, 177, 0.18); }

.wta-btn--primary:hover { background: linear-gradient(180deg, #276fb8 0%, #1a5a96 100%); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(34, 113, 177, 0.3); }

.wta-btn--primary:active {
  transform: translateY(-1px);
}

.wta-btn--secondary { background: #fff; color: #1e1e1e; border: 2px solid #e5e5e5; box-shadow: none; }

.wta-btn--secondary:hover { background: #f8f9fb; border-color: #2271b1; color: #2271b1; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(34, 113, 177, 0.18); }

.wta-btn[disabled],
.wta-btn.is-loading,
.wta-btn.is-active {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.wta-card__note {
  font-size: 13px;
  color: #666;
  margin: 12px 0 0 0;
  padding: 12px 14px;
  background: #f0f6fc;
  border-radius: 8px;
  border-left: 4px solid #2271b1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wta-card__note::before {
  content: 'ℹ️';
  flex-shrink: 0;
}

.wta-card__note--success {
  color: #155724;
  font-weight: 600;
  background: #d4edda;
  border-left-color: #28a745;
}

.wta-card__note--success::before {
  content: '✓';
}

.wta-card__note--error {
  color: #842029;
  font-weight: 600;
  background: #f8d7da;
  border-left-color: #dc3545;
}

.wta-card__note--error::before {
  content: '⚠️';
}

/* Spinner */
.wta-spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  margin-left: 10px;
  display: none;
  animation: wtaSpin .8s linear infinite;
}

.wta-btn.is-loading .wta-spin {
  display: inline-block;
}

@keyframes wtaSpin {
  to { transform: rotate(360deg); }
}

.wta-card__footer {
  padding-top: 20px;
  border-top: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.wta-card__footer-label {
  font-size: 13px;
  color: #666;
}

.wta-card__brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #111;
}

.wta-card__brand img {
  max-height: 26px;
  max-width: 120px;
  display: block;
  object-fit: contain;
}

/* Browser (Grid View) - Professional Design */
.wta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wta-grid .wta-card {
  flex-basis: auto;
  max-width: none;
  animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Filters - Professional Design */
.wta-filters { background: #fff; padding: 26px; border-radius: 16px; margin-bottom: 40px; border: 1px solid #eaeaea; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.wta-filters:hover {
  border-color: #2271b1;
  box-shadow: 0 8px 24px rgba(34, 113, 177, 0.12);
}

.wta-filters__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: end;
}

.wta-input,
.wta-select {
  padding: 12px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  background: #fff;
  color: #1e1e1e;
}

.wta-input::placeholder {
  color: #999;
}

.wta-input:focus,
.wta-select:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
  background: #f0f6fc;
}

.wta-filter-btn { padding: 12px 24px; background: #2271b1; color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-transform: uppercase; letter-spacing: 0.02em; box-shadow: 0 2px 8px rgba(34, 113, 177, 0.18); }

.wta-filter-btn:hover {
  background: #1a5a96;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(34, 113, 177, 0.3);
}

/* Search Hero - Professional Design */
.wta-search-hero {
  max-width: 600px;
  margin: 0 0 32px 0;
  position: relative;
}

.wta-search-hero__inner {
  display: flex;
  gap: 12px;
  position: relative;
}

.wta-search-hero__input {
  flex: 1;
  width: 100%;
  padding: 16px 20px;
  padding-right: 140px; /* Space for button if needed absolute */
  border: 2px solid #e5e5e5;
  border-radius: 99px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  background: #fff;
  color: #1e1e1e;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.wta-search-hero__input:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 4px 20px rgba(34, 113, 177, 0.15);
  background: #fff;
}

.wta-search-hero__btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  padding: 0 24px;
  background: #2271b1;
  color: #fff;
  border: none;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wta-search-hero__btn:hover {
  background: #1a5a96;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 113, 177, 0.25);
}

.wta-search-hero__btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5px;
}

@media (max-width: 576px) {
  .wta-search-hero__inner {
    flex-direction: column;
    gap: 12px;
  }
  
  .wta-search-hero__input {
    padding-right: 20px;
    border-radius: 12px;
  }
  
  .wta-search-hero__btn {
    position: static;
    width: 100%;
    padding: 14px;
    justify-content: center;
    border-radius: 12px;
  }
}

/* Pagination - Modern Design */
.wta-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #efefef; }

.wta-page {
  padding: 10px 16px;
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  color: #1e1e1e;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 44px;
  text-align: center;
  font-size: 14px;
}

.wta-page:hover:not(.is-current) {
  background: #f0f6fc;
  border-color: #2271b1;
  color: #2271b1;
  transform: translateY(-2px);
}

.wta-page:focus-visible {
  outline: 3px solid #2271b1;
  outline-offset: 2px;
}

.wta-page.is-current {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
  cursor: default;
  box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

/* Responsive Breakpoints */

/* Desktop (1367px+) - 4 colunas */
@media (min-width: 1367px) {
  .wta-card__image {
    aspect-ratio: 3/2;
  }
  .wta-card {
    flex-basis: calc(25% - 18px);
    max-width: calc(25% - 18px);
  }
  .wta-carousel {
    padding: 0;
  }
}
  
  .wta-carousel__track {
    gap: 24px;
  }
  
  .wta-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  
  .wta-section {
    margin: 64px 0;
  }
  
  .wta-section__title {
    font-size: 40px;
  }
}

/* Tablet (768px - 1366px) - 3 colunas */
@media (min-width: 768px) and (max-width: 1366px) {
  .wta-card {
    flex-basis: calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
  }
  
  .wta-carousel {
    padding: 0;
  }
  
  .wta-carousel__track {
    gap: 20px;
  }
  
  .wta-carousel__btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  
  .wta-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .wta-filters__row {
    grid-template-columns: 1fr;
  }
  
  .wta-section {
    margin: 48px 0;
  }
  
  .wta-section__title {
    font-size: 32px;
  }
}

/* Mobile (até 767px) - 1 coluna (full container) */
@media (max-width: 767px) {
  .wta-card {
    flex-basis: 100%;
    max-width: 100%;
  }
  .wta-card__image {
    aspect-ratio: 4/3;
  }
  .wta-filters {
    padding: 20px;
    margin-bottom: 32px;
  }
  
  .wta-filters__row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .wta-input,
  .wta-select,
  .wta-filter-btn {
    width: 100%;
  }
  
  .wta-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
  }
  
  .wta-pagination {
    gap: 6px;
    margin-top: 32px;
  }
  
  .wta-page {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 40px;
  }
  .wta-section {
    margin: 32px 0;
  }
  
  .wta-section__title {
    font-size: 26px;
  }
  
  .wta-section__sub {
    font-size: 16px;
  }
  
  .wta-card {
    flex-basis: 100%;
    max-width: 100%;
  }
  
  .wta-carousel {
    padding: 0;
  }
  
  .wta-carousel__track {
    gap: 16px;
  }
  
  .wta-carousel__btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .wta-carousel__btn--prev {
    left: 4px;
  }
  
  .wta-carousel__btn--next {
    right: 4px;
  }  
  .wta-card__content {
    padding: 16px;
  }
  
  .wta-card__title {
    font-size: 18px;
  }
  
  .wta-btn {
    padding: 12px;
    font-size: 13px;
  }
  
  .wta-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .wta-filters {
    padding: 20px;
  }
  
  .wta-filters__row {
    grid-template-columns: 1fr;
  }
  
  .wta-filter-btn {
    width: 100%;
  }
}

/* Mobile padrão (375px - 479px) - Mantendo 2 colunas conforme solicitado, mas ajustando fonte */
@media (max-width: 479px) {
  .wta-section__title {
    font-size: 24px;
  }
  
  /* Forçando 2 colunas mesmo em telas pequenas, conforme pedido */
  .wta-card {
    flex-basis: 100%;
    max-width: 100%;
  }
  
  .wta-carousel__track {
    gap: 16px;
  }
  
  .wta-card__image {
    aspect-ratio: 4/3;
  }
  
  .wta-carousel {
    padding: 0;
  }
  
  .wta-carousel__btn {
    width: 36px;
    height: 36px;
  }
  
  .wta-card__content {
    padding: 16px;
  }
  
  .wta-card__buttons {
    flex-direction: row;
    gap: 8px;
  }
  
  .wta-btn {
    flex: 1;
    padding: 10px 8px;
    font-size: 11px;
  }
  
  .wta-filters {
    padding: 16px;
  }
  
  .wta-pagination {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .wta-page {
    padding: 8px 12px;
    min-width: 40px;
    font-size: 14px;
  }
}

/* Mobile pequeno (320px - 374px) */
@media (max-width: 374px) {
  .wta-section__title {
    font-size: 22px;
  }
  
  .wta-section__kicker {
    font-size: 12px;
  }
  
  .wta-carousel__btn {
    width: 32px;
    height: 32px;
  }
  
  .wta-card__content {
    padding: 12px;
  }
  
  .wta-card__title {
    font-size: 16px;
  }
  
  .wta-btn {
    padding: 8px 6px;
    font-size: 10px;
  }
}

/* Accessibility */
.wta-skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 8px 0;
}

.wta-skip-link:focus {
  top: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .wta-carousel__track,
  .wta-card,
  .wta-btn,
  .wta-carousel__btn {
    transition: none;
  }
  
  .wta-spin {
    animation: none;
  }
}
