/* ==========================================================================
   DS HOME — CATEGORIA PAGE
   ========================================================================== */

/* ============== BREADCRUMB ============== */
.breadcrumb {
  padding: 20px 0;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-pale);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.breadcrumb__item {
  color: var(--gray);
}

.breadcrumb__item a {
  color: var(--gray);
  transition: color var(--t-fast);
}

.breadcrumb__item a:hover {
  color: var(--gold-500);
}

.breadcrumb__item.is-active {
  color: var(--black);
  font-weight: 600;
}

.breadcrumb__separator {
  color: var(--gray-light);
}

/* ============== HERO CATEGORIA ============== */
.cat-hero {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--black) 0%, var(--charcoal) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cat-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,175,55,0.2), transparent 70%);
}

.cat-hero__container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cat-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold-400);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.cat-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.cat-hero__title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cat-hero__description {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto;
}

.cat-hero__stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.cat-hero__stat {
  text-align: center;
}

.cat-hero__stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--gold-400);
  font-weight: 700;
  margin-bottom: 4px;
}

.cat-hero__stat span {
  font-size: 13px;
  color: var(--gray-light);
  letter-spacing: 1px;
}

/* ============== CATEGORIA LAYOUT ============== */
.cat-layout {
  padding: 60px 0;
  background: var(--white);
}

.cat-layout__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .cat-layout__container {
    grid-template-columns: 280px 1fr;
    gap: 48px;
  }
}

/* ============== FILTERS SIDEBAR ============== */
.filters {
  background: var(--white);
  border: 1px solid var(--gray-pale);
  border-radius: var(--r-md);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 200px;
}

.filters__title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filters__title small {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--gold-500);
  font-weight: 600;
  cursor: pointer;
}

.filter-group {
  border-bottom: 1px solid var(--gray-pale);
  padding: 20px 0;
}

.filter-group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.filter-group:first-child {
  padding-top: 0;
}

.filter-group__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--dark-gray);
  transition: color var(--t-fast);
}

.filter-option:hover {
  color: var(--gold-600);
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-400);
  cursor: pointer;
}

.filter-option__count {
  margin-left: auto;
  color: var(--gray);
  font-size: 12px;
  font-weight: 500;
}

.filter-range {
  margin-top: 12px;
}

.filter-range__values {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
}

.filter-range input[type="range"] {
  width: 100%;
  accent-color: var(--gold-400);
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gray-pale);
  cursor: pointer;
  transition: all var(--t-fast);
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.is-active {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 2px var(--gold-400);
}

/* ============== PRODUCTS HEADER ============== */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.products-header__count {
  font-size: 14px;
  color: var(--gray);
}

.products-header__count strong {
  color: var(--black);
  font-weight: 700;
}

.products-header__sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.products-header__sort label {
  font-size: 13px;
  color: var(--gray);
  font-weight: 500;
}

.products-header__sort select {
  padding: 10px 16px;
  border: 1px solid var(--gray-pale);
  border-radius: var(--r-sm);
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  color: var(--black);
  font-weight: 500;
}

/* ============== PAGINATION ============== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.pagination__btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-pale);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--black);
  font-weight: 600;
  transition: all var(--t-fast);
  background: var(--white);
}

.pagination__btn:hover {
  border-color: var(--gold-400);
  color: var(--gold-600);
}

.pagination__btn.is-active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.pagination__btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Mobile filters toggle */
.filters-mobile-toggle {
  display: none;
  width: 100%;
  padding: 14px 20px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--r-sm);
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@media (max-width: 1023px) {
  .filters-mobile-toggle { display: flex; }
  .filters {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    border-radius: 0;
    overflow-y: auto;
    border: none;
    top: 0;
  }
  .filters.is-open {
    display: block;
  }
}

/* ============== EMPTY STATE ============== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--off-white);
  border-radius: var(--r-lg);
}

.empty-state__icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.empty-state__title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 12px;
}

.empty-state__description {
  color: var(--gray);
  max-width: 400px;
  margin: 0 auto 32px;
}

/* ============== PRODUCT PAGE ============== */
.product-page {
  padding: 48px 0;
}

.product-page__container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .product-page__container {
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
  }
}

.product-gallery {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  position: relative;
}

@media (max-width: 768px) {
  .product-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 80px;
  }
}

.product-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 768px) {
  .product-gallery__thumbs {
    flex-direction: row;
    overflow-x: auto;
  }
}

.product-gallery__thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--r-sm);
  border: 2px solid var(--gray-pale);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t-fast);
  flex-shrink: 0;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.is-active {
  border-color: var(--gold-400);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery__main {
  background: var(--off-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  position: relative;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.product-gallery__badges {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

/* PRODUCT INFO */
.product-info__line {
  font-size: 12px;
  color: var(--gold-600);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.product-info__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.product-info__rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-pale);
}

.product-info__rating .stars {
  font-size: 20px;
}

.product-info__rating-text {
  color: var(--gray);
  font-size: 14px;
}

.product-info__rating-text a {
  color: var(--gold-600);
  font-weight: 600;
  text-decoration: underline;
}

.product-info__price-block {
  margin-bottom: 32px;
}

.product-info__price-old {
  font-size: 16px;
  color: var(--gray);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.product-info__price {
  font-size: 48px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.product-info__price sup {
  font-size: 24px;
  font-weight: 700;
}

.product-info__price-installments {
  font-size: 16px;
  color: var(--gray);
}

.product-info__price-installments strong {
  color: var(--success);
}

.product-info__variants {
  margin-bottom: 32px;
}

.product-info__variant-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-info__variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-option {
  padding: 10px 16px;
  border: 2px solid var(--gray-pale);
  border-radius: var(--r-sm);
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--t-fast);
}

.variant-option:hover {
  border-color: var(--gold-400);
}

.variant-option.is-active {
  border-color: var(--gold-400);
  background: var(--gold-50);
  color: var(--gold-700);
  font-weight: 700;
}

.product-info__qty-cart {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--gray-pale);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.qty-selector button {
  width: 48px;
  height: 56px;
  background: var(--white);
  font-size: 18px;
  font-weight: 600;
  transition: background var(--t-fast);
}

.qty-selector button:hover {
  background: var(--off-white);
}

.qty-selector input {
  width: 56px;
  height: 56px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  outline: none;
}

.product-info__qty-cart .btn {
  flex: 1;
  min-width: 200px;
  padding: 18px 32px;
}

.product-info__shipping {
  padding: 24px;
  background: var(--off-white);
  border-radius: var(--r-md);
  margin-bottom: 24px;
}

.product-info__shipping-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-info__shipping-label i {
  width: 18px;
  height: 18px;
  color: var(--gold-500);
}

.product-info__shipping-form {
  display: flex;
  gap: 8px;
}

.product-info__shipping-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--gray-pale);
  border-radius: var(--r-sm);
  font-size: 14px;
  outline: none;
}

.product-info__shipping-form button {
  padding: 12px 20px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-info__benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 24px;
  background: linear-gradient(135deg, var(--gold-50), var(--gold-100));
  border-radius: var(--r-md);
  border: 1px solid var(--gold-200);
}

.product-info__benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
}

.product-info__benefit i {
  width: 18px;
  height: 18px;
  color: var(--gold-600);
  flex-shrink: 0;
}

/* TABS */
.product-tabs {
  margin-top: 64px;
  border-top: 1px solid var(--gray-pale);
  padding-top: 48px;
}

.tabs-nav {
  display: flex;
  gap: 32px;
  border-bottom: 2px solid var(--gray-pale);
  margin-bottom: 32px;
  overflow-x: auto;
}

.tabs-nav button {
  padding: 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.tabs-nav button:hover {
  color: var(--black);
}

.tabs-nav button.is-active {
  color: var(--gold-600);
  border-bottom-color: var(--gold-400);
}

.tab-content {
  display: none;
  font-size: 15px;
  line-height: 1.8;
  color: var(--dark-gray);
}

.tab-content.is-active {
  display: block;
  animation: fadeInUp 400ms ease;
}

.tab-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--black);
}

.tab-content ul {
  list-style: disc;
  padding-left: 20px;
  margin: 12px 0;
}

.tab-content li {
  margin-bottom: 8px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.specs-table tr {
  border-bottom: 1px solid var(--gray-pale);
}

.specs-table td {
  padding: 14px 16px;
  font-size: 14px;
}

.specs-table td:first-child {
  background: var(--off-white);
  font-weight: 600;
  color: var(--black);
  width: 40%;
}

/* RELATED PRODUCTS */
.related-products {
  padding: 80px 0;
  background: var(--off-white);
}

/* Cross-sell highlight */
.cross-sell-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--gold-50), var(--gold-100));
  border-radius: var(--r-md);
  margin-top: 24px;
  border-left: 4px solid var(--gold-400);
}

.cross-sell-banner__icon {
  font-size: 32px;
}

.cross-sell-banner__text {
  font-size: 14px;
  color: var(--dark-gray);
  line-height: 1.6;
}

.cross-sell-banner__text strong {
  color: var(--gold-700);
}
