/**
 * Main Stylesheet
 *
 * Use this file for general theme styles that don't fit into specific components.
 */

/* Add your custom styles here */

.wp-singular .td-animation-stack .td-lazy-img{
  object-fit: cover!important;
}

/**
 * Custom label for product tag filter
 * Adds "¿Cual es tu necesidad?" text before the filter
 */
.tdw-filter-container.tdw-filter-product_tag::before {
    content: '¿Cual es tu necesidad?';
    display: block;
    font-size: small;
    color: var(--outline);
    padding-bottom: 2px;
}

.tds-icon-box .tds-title {
  margin-top: 0!important;
}

.tds-icon-box .tdm-descr {
  margin-bottom: 0!important;
  line-height: 50% !important;
}


/* ==========================================================================
   Product Description Tabs
   ========================================================================== */

.shampoo-product-tabs {
  background: var(--surface);
  border: 1px solid var(--outlineVariant);
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
}

/* Tab Navigation */
.shampoo-tabs-nav {
  display: flex;
  background: var(--surfaceContainerLow);
  border-bottom: 1px solid var(--outlineVariant);
}

.shampoo-tab-btn {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--onSurfaceVariant);
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shampoo-tab-btn:hover {
  background: var(--surfaceContainer);
  color: var(--onSurface);
}

.shampoo-tab-btn.active {
  background: var(--surface);
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

.shampoo-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--surface);
}

/* Tab Content */
.shampoo-tabs-content {
  position: relative;
}

.shampoo-tab-panel {
  display: none;
  padding: 24px;
  animation: fadeIn 0.3s ease-in-out;
}

.shampoo-tab-panel.active {
  display: block;
}

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

/* Product Summary */
.shampoo-product-summary {
  line-height: 1.6;
  color: var(--onSurface);
}

.shampoo-product-summary p {
  margin-bottom: 16px;
}

.shampoo-product-summary p:last-child {
  margin-bottom: 0;
}

.shampoo-product-summary h1,
.shampoo-product-summary h2,
.shampoo-product-summary h3,
.shampoo-product-summary h4,
.shampoo-product-summary h5,
.shampoo-product-summary h6 {
  color: var(--primary);
  margin-top: 24px;
  margin-bottom: 12px;
}

.shampoo-product-summary ul,
.shampoo-product-summary ol {
  margin-left: 20px;
  margin-bottom: 16px;
}

.shampoo-product-summary li {
  margin-bottom: 8px;
}

/* Product Videos */
.shampoo-product-videos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shampoo-video-wrapper {
  position: relative;
  width: 100%;
  background: var(--surfaceContainerLow);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--outlineVariant);
}

.shampoo-video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.shampoo-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Fallback for blocked videos */
.shampoo-video-fallback {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 16px;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shampoo-video-wrapper:hover .shampoo-video-fallback {
  opacity: 1;
}

.shampoo-video-fallback a {
  color: #ff6b6b;
  text-decoration: none;
  font-weight: 600;
}

.shampoo-video-fallback a:hover {
  color: #ff5252;
  text-decoration: underline;
}

/* Ad blocker detection styles */
.shampoo-video-blocked {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--surfaceContainerLow);
  border: 2px dashed var(--outline);
  border-radius: 8px;
  text-align: center;
  padding: 24px;
}

.shampoo-video-blocked-content {
  max-width: 300px;
}

.shampoo-video-blocked h4 {
  margin: 0 0 12px 0;
  color: var(--onSurfaceVariant);
  font-size: 1.1rem;
}

.shampoo-video-blocked p {
  margin: 0 0 16px 0;
  color: var(--outline);
  font-size: 0.9rem;
  line-height: 1.4;
}

.shampoo-video-blocked a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff0000;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.shampoo-video-blocked a:hover {
  background: #cc0000;
}

.shampoo-video-blocked svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 768px) {
  .shampoo-tab-btn {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  .shampoo-tab-panel {
    padding: 20px;
  }
  
  .shampoo-product-videos {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .shampoo-tabs-nav {
    flex-direction: column;
  }
  
  .shampoo-tab-btn {
    border-bottom: 1px solid var(--outlineVariant);
  }
  
  .shampoo-tab-btn:last-child {
    border-bottom: none;
  }
  
  .shampoo-tab-btn.active {
    border-bottom: 1px solid var(--outlineVariant);
    border-left: 3px solid var(--primary);
  }
}