/* Global layout */
body {
  background-color: #f7f7f7;
  color: #333;
  min-height: 100vh;
  padding: 1rem;
  font-family: Arial, sans-serif;
}

/* Filter panel styling */
.filter-panel {
  background-color: white;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Filter toggle headers */
.filter-section button {
  width: 100%;
  text-align: left;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
}

.filter-section button:hover {
  color: #111827;
}

/* Checkbox label */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  color: #4b5563;
}

/* Product cards */
.card {
  background-color: white;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}
.card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Image container */
.card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  height: 200px;
  overflow: hidden;
}

/* TITLE */
.product-title {
  font-size: 18px;
  font-weight: 600;
}

/* TAGS */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-bottom: 4px;
}
.tag {
  font-size: 13px;
  background-color: #f3f4f6;
  padding: 3px 8px;
}

/* DETAILS TEXT */
.article-details {
  font-size: 11px;
  color: #6b7280;
  padding-bottom: 15px;
}

/* Card Internal Layout */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.card-content a {
  /* Button sticks to bottom */
  margin-top: auto;
}

/* CTA Button */
.sheet-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: white;
  background-color: #e07e3c;
  border: #e07e3c 1px solid;
}
.sheet-button:hover {
  background-color: #ffffff8f;
  color: black;
  border: #e07e3c 1px solid;
}

/* Dropdown button */
.info-button {
  font-size: 12px;
  color: #2563eb;
  cursor: pointer;
  padding: 4px 0;
}
.info-button:hover {
  text-decoration: underline;
}

/* Hidden info panel */
.info-panel {
  font-size: 12px;
  color: #374151;
  margin-top: 4px;
  line-height: 1.4;
}
.info-panel p {
  margin: 2px 0;
}

.more-info summary {
  cursor: pointer;
  font-weight: 600;
  margin-top: 8px;
}

.more-info ul {
  font-size: 12px;
  padding-left: 16px;
  margin-top: 4px;
  line-height: 16px;
}

/* Smooth details open/close animation */
.more-info {
  overflow: hidden;
  transition: all 0.3s ease;
  padding-bottom: 4px;
}

/* The content inside */
.more-info[open] ul {
  animation: fadeIn 0.5s ease forwards;
}

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

/* Slight hover effect on summary */
.more-info summary:hover {
  color: #2563eb;
}

/* ----- ANIMATIONS ----- */

/* Smooth details open/close */
.more-info {
  overflow: hidden;
}

.more-info[open] ul {
  opacity: 1;
  transform: translateY(0);
}

.more-info ul {
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

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

.more-info summary:hover {
  color: #2563eb;
  cursor: pointer;
}

/* Card fade animation */
.card {
  opacity: 0;
  transform: translateY(4px);
  animation: cardFade 0.4s forwards;
}

@keyframes cardFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button effect */
.sheet-button {
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.sheet-button:hover {
  transform: translateY(-2px);
}

.sheet-button:active {
  transform: scale(0.98);
}

/* Global subtle transitions */
* {
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* SMOOTH DROPDOWN FOR DETAILS */
.more-info summary {
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  color: #2563eb;
}

.more-info summary::-webkit-details-marker {
  display: none;
}

.more-info-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 800ms ease-in-out;
}

.more-info[open] .more-info-content {
  max-height: 400px;
}
.more-info ul {
  margin-top: 6px;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.4;
}

.more-info-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms ease-in-out;
}

.more-info-content.open {
  max-height: 500px; /* Adjust depending on content size */
}

.more-info-button {
  cursor: pointer;
  font-size: 13px;
  color: #2563eb;
  font-weight: 500;
  margin-top: 4px;
}

.warning-top {
  max-width: 80rem !important;
  margin: 0 auto !important;
  margin-bottom: 20px !important;
  font-size: 18px !important;
  padding: 25px 10px;
  background-color: #eae6de;
}

.warning-top-link {
  color: #b45309 !important;
}

.warning-top-link:hover {
  color: #92400e !important;
}

.resetbutton {
  all: unset;
  cursor: pointer;
  background-color: black;
  color: white !important;
  padding: 5px 15px;
}

.resetbutton:hover {
  background-color: #333333;
}
