/* =============================================================
   PRODUCT CARD  (.se-card)
   Reusable — used on PLP, PDP related products, anywhere.
   ============================================================= */

:root {
  --se-ocean: #39323b;
  --se-green: #455146;
}

.se-card {
  background: #fff;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: var(--se-ocean);
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 360px;
  min-width: 0;
  transition: box-shadow 0.15s;
  text-decoration: none !important;
  &:hover { box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.2); }
  @media only screen and (max-width: 1025px) {
    max-width: none !important;
  }
}

/* ── Image ──────────────────────────────────────────────────── */

.se-card .se-card__image {
  margin: 17px 17px 0;
  height: 200px;
  overflow: hidden;

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

/* ── Availability badge (overlays image top-left) ───────────── */

.se-card .se-card__badge {
  position: absolute;
  top: 17px;
  left: 17px;
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 6px 8px;
  white-space: nowrap;
  color: #fff;

  &.se-card__badge--exclusive    { background: var(--se-ocean); }
  &.se-card__badge--retail       { background: var(--se-green); }
  &.se-card__badge--personalise  { background: #f1f1f1; color: #000; }
}

/* ── Info block ─────────────────────────────────────────────── */

.se-card .se-card__info {
  padding: 10px 17px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.se-card .se-card__cat {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--se-ocean);
  margin: 0 0 4px;
  display: block;
}

.se-card .se-card__title {
  font-family: "new-spirit", serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--se-ocean);
  margin: 0 0 10px;
  line-height: 1.25;
}

/* ── Spec rows ──────────────────────────────────────────────── */

.se-card .se-card__spec {
  font-family: "itc-avant-garde-gothic-pro", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--se-ocean);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  line-height: 1.3;
}

.se-card .se-card__spec-label {
  flex-shrink: 0;
}

.se-card .se-card__spec-value {
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Pet bed cards: sizes list can be long — allow it to wrap */
.se-card--petbed .se-card__spec--multiline .se-card__spec-value {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* ── Price ──────────────────────────────────────────────────── */

.se-card .se-card__price {
  display: block;
  text-align: right;
  margin: 8px 0 0;
  color: var(--se-ocean);
  line-height: normal;
  margin-top: auto;
  em {
    font-style: normal;
    font-family: "itc-avant-garde-gothic-pro", sans-serif;
    font-size: 12px;
    font-weight: 500;
    margin-right: 2px;
  }

  strong {
    font-family: "itc-avant-garde-gothic-pro", sans-serif;
    font-size: 16px;
    font-weight: 700;
  }

  &.se-card__price--unavailable { opacity: 0.35; }
}
