.product-attribute-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.product-attribute-table-header {
  background: #f8fafc;
  padding: 18px;
  font-weight: 700;
  text-align: center;
  border: none;
}

.product-attribute-table-header:first-child {
  border-radius: 0 16px 16px 0;
  border: none;
}

.product-attribute-table-header:last-child {
  border-radius: 16px 0 0 16px;
  border: none;
}

:lang(en-US) .product-attribute-table-header:first-child,
:lang(en-US) .product-attribute-table tr td:first-child {
  border-radius: 16px 0 0 16px;
}

:lang(en-US) .product-attribute-table-header:last-child,
:lang(en-US) .product-attribute-table tr td:last-child {
  border-radius: 0 16px 16px 0;
}

.product-attribute-table-row {
  background: #fff;
  padding: 18px;
  text-align: center;
  border: none;
}

.product-attribute-table tr {
  border-radius: 16px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.product-attribute-table tr td:first-child {
  border: none;
  border-radius: 0 16px 16px 0;
}

.product-attribute-table tr td:last-child {
  border: none;
  border-radius: 16px 0 0 16px;
}

.product-attribute-table tr:hover {
  box-shadow: 0 2px 2px #0094ca5d;
}

.desktop-table {
  display: block;
  margin-top: 40px;
  margin-bottom: 16px;
}

.mobile-attribute-cards {
  display: none;
}

@media (max-width: 768px) {
  .desktop-table {
    display: none;
  }

  .mobile-attribute-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 16px;
  }

  .attribute-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f2f5;
    transition:
      box-shadow 0.3s ease,
      border-color 0.3s ease;
  }

  .attribute-card:hover {
    border-color: color-mix(
      in srgb,
      var(--color-primary, #0095ca) 35%,
      #f0f2f5
    );
    box-shadow: 0 8px 24px
      color-mix(in srgb, var(--color-primary, #0095ca) 14%, transparent);
  }

  .attribute-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
  }

  .attribute-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    transition: color 0.3s ease;
  }

  .attribute-card.active .attribute-card-header h3 {
    color: var(--color-primary, #0095ca);
  }

  .attribute-card-header span {
    font-size: 14px;
    color: #718096;
    margin-top: 4px;
    display: block;
  }

  .attribute-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: color-mix(in srgb, var(--color-primary, #0095ca) 10%, #f7fafc);
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
      background-color 0.3s ease,
      transform 0.3s ease;
  }

  .attribute-card.active .attribute-toggle {
    background: var(--color-primary, #0095ca);
    transform: scale(1.08);
  }

  .attribute-toggle .arrow {
    font-size: 26px;
    transition:
      transform 0.3s ease,
      color 0.3s ease;
    color: var(--color-primary, #0095ca);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .attribute-card.active .arrow {
    color: #fff;
    transform: rotate(180deg);
  }

  .attribute-card-content {
    max-height: 0;
    overflow: hidden;

    opacity: 0;

    transition:
      max-height 0.45s ease,
      opacity 0.3s ease,
      margin-top 0.3s ease,
      padding-top 0.3s ease;

    margin-top: 0;
    padding-top: 0;
  }

  .attribute-card.active .attribute-card-content {
    max-height: 500px;

    opacity: 1;

    margin-top: 18px;
    padding-top: 18px;

    border-top: 1px solid
      color-mix(in srgb, var(--color-primary, #0095ca) 12%, #f0f2f5);
  }
  .attribute-item {
    margin-bottom: 16px;
  }

  .attribute-item label {
    display: block;
    font-size: 13px;
    color: #718096;
    margin-bottom: 6px;
  }

  .attribute-item p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
  }
}
