/* Caixas de Vinho Frontend Styles */

.bsb-caixas-vitrine-wrapper {
  font-family: inherit;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tabs */
.bsb-caixas-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
}

.bsb-caixa-tab-btn {
  background-color: #f5f4ef;
  border: none;
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.bsb-caixa-tab-btn:hover {
  background-color: #e8e6df;
}

.bsb-caixa-tab-btn.active {
  background-color: #2b2b2b;
  color: #fff;
}

/* Panels */
.bsb-caixa-panel {
  display: none;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.bsb-caixa-panel.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

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

/* Main View Layout */
.bsb-caixa-main-view {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.bsb-caixa-info {
  flex: 1 1 50%;
  padding: 60px;
  text-align: center;
}

.bsb-caixa-image {
  flex: 1 1 50%;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 1px solid #e0e0e0;
}

.bsb-caixa-image img {
  max-width: 100%;
  height: auto;
}

/* Info Details */
.bsb-caixa-ante-title {
  color: #af3551;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  font-weight: 600;
}

.bsb-caixa-title {
  font-size: 38px;
  font-weight: 400;
  margin: 0 0 20px;
  color: #222;
}

.bsb-caixa-short-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 0 auto 30px;
  max-width: 400px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bsb-caixa-qty-indicator {
  color: #bfa173;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

.bsb-caixa-price-block {
  margin-bottom: 30px;
}

.bsb-caixa-price {
  font-size: 48px;
  color: #af3551;
  line-height: 1;
  margin-bottom: 10px;
}

.bsb-caixa-price .amount {
  font-weight: 400;
}

.bsb-caixa-price-compare {
  font-size: 11px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Actions */
.bsb-caixa-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.bsb-caixa-add-to-cart {
  background-color: #7d2335;
  color: #fff;
  padding: 15px 40px;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  max-width: 350px;
  transition: background-color 0.3s;
  display: inline-block;
}

.bsb-caixa-add-to-cart:hover {
  background-color: #5e1a28;
}

.bsb-caixa-toggle-details {
  background: transparent;
  border: 1px solid #7d2335;
  color: #7d2335;
  padding: 15px 20px;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  max-width: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.bsb-caixa-toggle-details:hover {
  background: #7d2335;
  color: #fff;
}

.bsb-caixa-toggle-details svg {
  transition: transform 0.3s;
}

.bsb-caixa-toggle-details.open svg {
  transform: rotate(180deg);
}

/* Expanded View */
.bsb-caixa-expanded-view {
  padding: 60px;
  border-top: 1px solid #e0e0e0;
  background: #fdfdfd;
}

.bsb-caixa-expanded-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 400;
  color: #222;
}

.bsb-caixa-full-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

/* Grid of Components */
.bsb-caixa-components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Component Card Overrides */
.bsb-card-context-box {
  text-align: center;
  background: transparent;
}

.bsb-card-context-box .bsb-wine-card-image-wrapper {
  margin-bottom: 20px;
}

.bsb-card-context-box .bsb-wine-card-image-wrapper img {
  max-height: 250px;
  width: auto;
  margin: 0 auto;
  display: block;
}

.bsb-card-context-box .bsb-wine-producer-name {
  font-size: 11px;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.bsb-card-context-box .bsb-wine-title {
  font-size: 20px;
  margin: 0 0 10px;
}

.bsb-card-context-box .bsb-wine-title a {
  color: #222;
  text-decoration: none;
}

.bsb-box-qty-badge {
  font-size: 14px;
  color: #af3551;
  font-weight: 600;
  vertical-align: top;
}

.bsb-card-context-box .bsb-wine-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-bottom: 15px;
}

.bsb-card-context-box .bsb-badge {
  background: #af3551;
  color: #fff;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  text-decoration: none;
}

.bsb-card-context-box .bsb-wine-price {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 15px;
}

.bsb-price-suffix {
  font-size: 12px;
  color: #888;
  font-weight: 400;
}

.bsb-box-wine-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.bsb-caixa-expanded-actions {
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .bsb-caixa-info {
    padding: 40px 20px;
  }
  .bsb-caixa-image {
    border-left: none;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
  }
  .bsb-caixa-expanded-view {
    padding: 40px 20px;
  }

  /* Arquivo de Caixas */
  .bsb-caixas-arquivo-wrapper {
    margin: 40px 0;
  }

  .bsb-arquivo-grid-inner {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(var(--cols-desktop, 4), 1fr);
  }

  @media (max-width: 1024px) {
    .bsb-arquivo-grid-inner {
      grid-template-columns: repeat(var(--cols-tablet, 3), 1fr);
    }
  }

  @media (max-width: 768px) {
    .bsb-arquivo-grid-inner {
      grid-template-columns: repeat(var(--cols-mobile, 2), 1fr);
    }
  }

  .bsb-caixa-arquivo-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background-color: transparent;
    transition: border-color 0.3s;
  }

  .bsb-caixa-arquivo-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
  }

  .bsb-caixa-arquivo-ante-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c7a17a;
    margin-bottom: 10px;
  }

  .bsb-caixa-arquivo-title {
    font-size: 24px;
    font-weight: 400;
    color: #c7a17a;
    margin: 0 0 15px;
  }

  .bsb-caixa-arquivo-desc {
    font-size: 14px;
    color: #eee;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  .bsb-caixa-arquivo-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    margin-top: auto;
  }

  .bsb-caixa-arquivo-status {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #eee;
  }

  .bsb-caixas-arquivo-carousel .swiper-slide {
    height: auto;
  }
}
