/* ==================
   PRODUCTS & ENTRIES
   ================== */

/* Entry Card Styling */
.entry-card {
  background-color: rgba(20, 20, 27, 0.9);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  height: 100%;
  min-height: 420px;
}

.entry-card:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.entry-card h3,
.entry-card h5 {
  color: var(--ash-white);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.entry-card p,
.entry-card .muted,
.entry-card .small {
  color: rgba(230, 230, 235, 0.85);
}

/* Entry cards in carousel - no transform */
.entry-carousel .entry-card {
  transition: box-shadow 0.25s ease;
  min-height: 450px;
  max-height: 450px;
}

.entry-carousel .entry-card:hover {
  transform: none;
}

/* Product detail action forms */
.product-action-form-remove {
  min-width: 120px;
}

.product-action-link-cart {
  min-width: 140px;
}

/* Media */
.entry-card-media {
  background: linear-gradient(135deg, rgba(194, 161, 77, 0.14), rgba(139, 30, 45, 0.12));
  border-bottom: var(--border);
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.entry-card-img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.entry-card-img-placeholder {
  align-items: center;
  background: linear-gradient(135deg, rgba(194, 161, 77, 0.14), rgba(139, 30, 45, 0.12));
  display: flex;
  height: 200px;
  min-height: 200px;
  max-height: 200px;
  justify-content: center;
  width: 100%;
}

/* Body And Layout */
.entry-card-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.entry-card-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.entry-card-footer {
  align-items: center;
  border-top: 1px solid rgba(230, 230, 235, 0.08);
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 0.75rem 1rem 1rem;
  margin-top: auto;
  flex-shrink: 0;
}

.entry-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.entry-card-desc {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0.75rem 0 0;
  overflow: hidden;
}

/* Featured Variant */
.entry-card--featured {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  max-width: 780px;
  min-height: 450px;
  max-height: 450px;
}

.entry-card-media--featured {
  height: 220px;
  min-height: 220px;
  max-height: 220px;
  flex-shrink: 0;
}

.entry-card-body--featured {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.entry-card-body--featured .entry-card-head {
  margin-bottom: 0.5rem;
}

.entry-card-body--featured .entry-card-title {
  font-size: 1.1rem;
}

.entry-card-body--featured .entry-card-desc {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  -webkit-line-clamp: 2;
}

.entry-card-footer--featured {
  gap: 1rem;
  padding: 0.75rem 1rem 1rem;
  align-items: center;
  margin-top: auto;
}

.price--featured {
  font-size: 1.15rem;
}

/* Responsive adjustments for featured cards */
@media (min-width: 768px) {
  .entry-card--featured {
    min-height: 480px;
    max-height: 480px;
  }

  .entry-card-media--featured {
    height: 240px;
    min-height: 240px;
    max-height: 240px;
  }

  .entry-card-body--featured {
    padding: 1.25rem;
  }

  .entry-card-body--featured .entry-card-title {
    font-size: 1.25rem;
  }

  .entry-card-body--featured .entry-card-desc {
    font-size: 0.9rem;
  }

  .entry-card-footer--featured {
    padding: 1rem 1.25rem 1.25rem;
  }

  .price--featured {
    font-size: 1.3rem;
  }

  .entry-card-title {
    font-size: 1.35rem;
  }

  .entry-card-desc {
    -webkit-line-clamp: 3;
    font-size: 0.95rem;
  }
}

/* Grid alignment */
.row.g-3 > [class*='col'] {
  display: flex;
}

.row.g-3 > [class*='col'] > .entry-card {
  width: 100%;
}

/* Entry Carousel */
.entry-carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.entry-carousel-dots [data-bs-target] {
  border-radius: 999px;
  height: 8px;
  opacity: 0.45;
  width: 8px;
}

.entry-carousel-dots .active {
  opacity: 1;
}

/* Prices */
.price {
  color: var(--relic-gold);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Badges */
.badge-sealed {
  background: rgba(194, 161, 77, 0.12);
  border: 1px solid rgba(194, 161, 77, 0.35);
  color: var(--relic-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 0.35rem 0.55rem;
  text-transform: uppercase;
}

/* Badge Deal Gold */
.badge-deal-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.4);
  color: rgba(0, 0, 0, 0.9);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  padding: 0.35rem 0.55rem;
  text-transform: uppercase;
}

/* Product Hero Section*/
.product-hero-img {
  height: 500px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.product-hero-placeholder {
  background-color: rgba(20, 20, 27, 0.9);
  height: 500px;
  width: 100%;
}

.product-tagline {
  color: rgba(194, 161, 77, 0.9);
}

.muted-gold-alert {
  background-color: rgba(194, 161, 77, 0.15);
  border-color: var(--relic-gold);
  color: var(--ash-white);
}

/* Archive Reading Page */
.archive-hero-image {
  max-height: 400px;
  object-fit: cover;
}

.archive-reading-content > div {
  font-size: 1.1rem;
  color: rgb(230, 230, 235);
}

/* Locked Content Notice */
.locked-panel {
  border: 2px solid rgba(139, 30, 45, 0.3);
}

.locked-icon {
  color: var(--relic-gold);
  opacity: 0.8;
}

.locked-title {
  color: var(--ash-white);
}

.locked-text {
  color: rgba(230, 230, 235, 0.85);
  font-size: 1.05rem;
}

/* Media Wrappers */
.video-wrapper {
  position: relative;
}

.video {
  border: 1.8px solid var(--relic-gold);
  border-radius: var(--radius);
  box-shadow: 4px 4px 20px rgba(194, 161, 77, 0.15);
  display: block;
}

/* No Refunds Policy */
.no-refunds-policy-alert {
  background-color: rgba(139, 30, 45, 0.15);
  border-color: rgba(139, 30, 45, 0.35);
  color: var(--ash-white);
}

/* Review Management */
.review-actions-inline-form {
  display: inline;
}

/* ================
   CART PAGE STYLES
   ================ */

/* Cart summary sidebar */
.cart-summary {
  position: sticky;
  top: 100px;
}

/* Cart product thumbnail */
.cart-product-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-product-thumb-placeholder {
  width: 80px;
  height: 80px;
  min-width: 80px;
  background: var(--obsidian-grey);
  border: 1px solid rgba(194, 161, 77, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart Discount Styles */
.cart-item-price-original {
  color: rgba(230, 230, 235, 0.45);
  font-size: 0.875rem;
  text-decoration: line-through;
}

.cart-item-price-discounted {
  color: #dc2626;
  font-size: 1.125rem;
  font-weight: 700;
}
