/**
 * Muebles ROPY — Estilos de Catalogo y Galerias
 * Cero emojis.
 */

.ropy-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.14);
}

.ropy-section--sand {
  background-color: var(--ropy-sand-light);
}

.ropy-section--white {
  background-color: #FFFFFF;
}

.ropy-section--slate {
  background-color: var(--color-surface-muted);
}

.ropy-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ropy-section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand-secondary);
  margin-bottom: 0.35rem;
}

.ropy-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  color: var(--color-brand-primary);
  font-weight: 800;
  line-height: 1.18;
}

.ropy-section-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Filtros por Categoria */
.ropy-category-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.ropy-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border: 1.5px solid var(--ropy-border-dark);
  background-color: #FFFFFF;
  color: var(--color-text-primary);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ropy-cat-pill:hover,
.ropy-cat-pill.is-active {
  background-color: var(--ropy-sand-header-bg);
  box-shadow: 3px 3px 0 var(--ropy-border-dark);
  transform: translate(-1px, -1px);
}

/* Grilla de Productos */
.ropy-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ropy-product-card {
  background-color: #FFFFFF;
  border: 1.5px solid var(--ropy-border-dark);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.ropy-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 5px 5px 0 var(--ropy-border-dark);
}

.ropy-product-thumb {
  position: relative;
  height: 215px;
  background-color: var(--ropy-sand-light);
  border-bottom: 1.5px solid var(--ropy-border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ropy-product-tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background-color: var(--color-brand-primary);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  z-index: 2;
}

.ropy-product-subcat {
  position: absolute;
  bottom: 0.55rem;
  left: 0.65rem;
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--ropy-border-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  z-index: 2;
}

.ropy-product-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ropy-product-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand-secondary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.ropy-product-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.ropy-product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #CBD5E1;
}

.ropy-product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-brand-primary);
}

.ropy-product-old-price {
  display: block;
  font-size: 0.76rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.ropy-add-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--ropy-sand-button);
  border: 1.5px solid var(--ropy-border-dark);
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ropy-border-dark);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.ropy-add-cart-btn:hover {
  background-color: var(--color-brand-secondary);
  color: #FFFFFF;
}

.ropy-add-cart-btn:disabled {
  background-color: #E2E8F0;
  color: #94A3B8;
  cursor: not-allowed;
  border-color: #CBD5E1;
}

/* Segundo Carrusel (#fullWidthSlides2) */
#fullWidthSlides2 {
  background-color: var(--color-brand-primary);
  color: var(--color-text-inverse);
  border: 2px solid var(--ropy-border-dark);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.ropy-fw-slide {
  display: none;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.ropy-fw-slide.is-active {
  display: grid;
  animation: ropyFadeSlide 0.45s ease;
}

.ropy-fw-slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--ropy-sand-header-bg);
  margin-bottom: 0.65rem;
}

.ropy-fw-slide-text {
  color: var(--color-text-inverse-muted);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
  max-width: 560px;
}

.ropy-fw-slide-art {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--ropy-sand-header-bg);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

/* Tarjetas Destacadas (#box3 a #box7) */
.ropy-featured-boxes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.ropy-feature-box {
  background-color: #FFFFFF;
  border: 1.5px solid var(--ropy-border-dark);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.ropy-feature-box:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--ropy-border-dark);
}

.ropy-feature-box-title {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--color-brand-primary);
}

.ropy-feature-box-desc {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

/* Carrusel Inferior (#slideshow1) */
#slideshow1 {
  background-color: #FFFFFF;
  border: 2px solid var(--ropy-border-dark);
  padding: 1.75rem;
  box-shadow: 6px 6px 0 var(--ropy-sand-header-bg);
}

.ropy-slideshow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ropy-border-dark);
}

.ropy-slideshow-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ropy-carousel-arrow {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--ropy-border-dark);
  background-color: var(--ropy-sand-button);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ropy-carousel-arrow:hover {
  background-color: var(--color-brand-secondary);
  color: #FFFFFF;
}

.ropy-inspiration-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.ropy-inspiration-item {
  border: 1.5px solid var(--ropy-border-dark);
  background-color: var(--ropy-sand-light);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (max-width: 1100px) {
  .ropy-product-grid { grid-template-columns: repeat(3, 1fr); }
  .ropy-featured-boxes-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .ropy-product-grid { grid-template-columns: repeat(2, 1fr); }
  .ropy-fw-slide.is-active { grid-template-columns: 1fr; }
  .ropy-inspiration-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .ropy-product-grid,
  .ropy-featured-boxes-grid,
  .ropy-inspiration-strip { grid-template-columns: 1fr; }
}
