/* Product card designs. The active design is picked in Admin > Site Settings > Template Settings. */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== Shared base ===== */
.prod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prod-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.prod-card-media {
  position: relative;
  padding: 10px 10px 0;
  overflow: hidden;
}

.prod-card-img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #f6f6f4;
  overflow: hidden;
}

.prod-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0;
  mix-blend-mode: multiply;
  transition: transform 0.4s ease;
}

.prod-card:hover .prod-card-img img {
  transform: scale(1.05);
}

.prod-card-img.is-placeholder img {
  width: 55%;
  height: auto;
  padding: 0;
  opacity: 0.25;
  filter: grayscale(1);
}

.prod-card-badges {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.prod-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.prod-badge--sale { background: var(--brand-primary); }
.prod-badge--out { background: var(--brand-text); }

.prod-card-brand {
  position: absolute;
  bottom: 18px;
  left: 20px;
  z-index: 1;
  max-width: calc(100% - 40px);
  display: flex;
  align-items: center;
  gap: 6px;
}

.prod-card-brand-text {
  display: block;
  padding: 3px 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--brand-text);
}

.prod-card-brand-logo {
  display: block;
  width: auto;
  max-width: 100px;
  max-height: 50px;
  object-fit: contain;
}

.prod-card-wish {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  margin: 0;
}

.prod-card-wish button {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-text);
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: color 0.2s ease, background 0.2s ease;
}

.prod-card-wish button:hover {
  background: var(--brand-primary);
  color: #fff;
}

.prod-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 16px 18px 18px;
}

.prod-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.prod-card-meta a,
.prod-card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.prod-card-meta a {
  flex-shrink: 0;
  max-width: 65%;
  color: var(--brand-primary);
}

.prod-card-meta a + span::before {
  content: "•";
  margin-right: 6px;
  color: #cfcfcf;
}

.prod-card-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  margin: 8px 0 14px;
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--brand-text);
  transition: color 0.2s ease;
}

.prod-card-name:hover {
  color: var(--brand-primary);
}

.prod-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed #e6e6e6;
}

.prod-card-price strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-text);
}

.prod-card-price del {
  font-size: 13px;
  color: #a0a0a0;
}

.prod-card-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--btn-font-family);
  font-weight: var(--btn-font-weight);
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-size: 16px;
}

.prod-card-cart span {
  display: none;
}

.prod-card-cart:hover {
  background: var(--btn-hover-bg);
  color: var(--btn-hover-color);
}

a.prod-card-cart {
  text-decoration: none;
}

/* ===== Design 2: Classic (centred, outlined button) ===== */
.prod-card--2 .prod-card-body {
  align-items: center;
  text-align: center;
}

.prod-card--2 .prod-card-meta {
  justify-content: center;
  max-width: 100%;
}

.prod-card--2 .prod-card-foot {
  flex-direction: column;
  width: 100%;
  gap: 12px;
  border-top: none;
  padding-top: 0;
}

.prod-card--2 .prod-card-price strong {
  color: var(--brand-primary);
}

.prod-card--2 .prod-card-cart {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--btn-bg);
  border-radius: var(--btn-radius);
  background: transparent;
  color: var(--btn-bg);
  font-size: 14px;
}

.prod-card--2 .prod-card-cart span {
  display: inline;
}

.prod-card--2 .prod-card-cart:hover {
  background: var(--btn-bg);
  color: var(--btn-color);
}

/* ===== Design 3: Price tag (price pill on the image, cart bar) ===== */
.prod-card--3 .prod-card-media {
  padding: 0;
}

.prod-card--3 .prod-card-img {
  border-radius: 0;
}

.prod-card--3 .prod-card-badges { top: 12px; left: 12px; }
.prod-card--3 .prod-card-wish { top: 12px; right: 12px; }

.prod-card--3 .prod-card-body {
  position: relative;
  padding-top: 30px;
}

.prod-card--3 .prod-card-foot {
  display: contents;
}

.prod-card--3 .prod-card-price {
  position: absolute;
  top: -18px;
  left: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.prod-card--3 .prod-card-price strong {
  display: inline;
  font-size: 16px;
  color: var(--brand-primary);
}

.prod-card--3 .prod-card-price del {
  margin-left: 6px;
  font-size: 12px;
}

.prod-card--3 .prod-card-name {
  margin-bottom: 0;
}

.prod-card--3 .prod-card-cart {
  width: auto;
  height: 46px;
  margin: 16px -18px -18px;
  border-radius: 0;
  background: var(--btn-bg);
  font-size: 14px;
}

.prod-card--3 .prod-card-cart span {
  display: inline;
}

.prod-card--3 .prod-card-cart:hover {
  background: var(--btn-hover-bg);
}

/* ===== Design 4: Glass (info panel floats on the image) ===== */
.prod-card--4 {
  border: none;
  border-radius: 18px;
}

.prod-card--4 .prod-card-media {
  padding: 0;
}

.prod-card--4 .prod-card-img {
  aspect-ratio: 4 / 5;
  border-radius: 0;
  background: linear-gradient(180deg, #f4f1ec 0%, #e9e4dc 100%);
}

.prod-card--4 .prod-card-img img {
  padding: 0 0 120px;
}

.prod-card--4 .prod-card-badges { top: 12px; left: 12px; }
.prod-card--4 .prod-card-wish { top: 12px; right: 12px; }

.prod-card--4 .prod-card-body {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.prod-card--4 .prod-card-name {
  -webkit-line-clamp: 1;
  min-height: 0;
  margin: 4px 0 8px;
  font-size: 16px;
}

.prod-card--4 .prod-card-foot {
  padding-top: 0;
  border-top: none;
}

.prod-card--4 .prod-card-price strong {
  font-size: 16px;
}

.prod-card--4 .prod-card-cart {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 14px;
}

/* ===== Design 5: Bold outline (thick border) ===== */
.prod-card--5 {
  border: 2px solid var(--brand-text);
  border-radius: 6px;
}

.prod-card--5:hover {
  box-shadow: none;
}

.prod-card--5 .prod-card-media {
  padding: 0;
  border-bottom: 2px solid var(--brand-text);
}

.prod-card--5 .prod-card-img {
  border-radius: 0;
  background: #fff;
}

.prod-card--5 .prod-card-badges { top: 12px; left: 12px; }
.prod-card--5 .prod-card-wish { top: 12px; right: 12px; }

.prod-card--5 .prod-badge {
  border-radius: 3px;
}

.prod-card--5 .prod-card-wish button {
  border: 2px solid var(--brand-text);
  box-shadow: none;
}

.prod-card--5 .prod-card-name {
  font-weight: 700;
}

.prod-card--5 .prod-card-foot {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding-top: 0;
  border-top: none;
}

.prod-card--5 .prod-card-price strong {
  font-size: 20px;
}

.prod-card--5 .prod-card-cart {
  width: 100%;
  height: 44px;
  border: 2px solid var(--brand-text);
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prod-card--5 .prod-card-cart span {
  display: inline;
}

.prod-card--5 .prod-card-cart:hover {
  background: var(--btn-hover-bg);
}

/* ===== Design 6: Soft tint (pill button) ===== */
.prod-card--6 {
  border: none;
  border-radius: 20px;
  background: linear-gradient(160deg, rgb(var(--brand-primary-rgb) / 0.05) 0%, rgb(var(--brand-primary-rgb) / 0.16) 100%);
}

.prod-card--6 .prod-card-img {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
}

.prod-card--6 .prod-card-img img {
  mix-blend-mode: normal;
}

.prod-card--6 .prod-card-foot {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  border-top: none;
  padding-top: 0;
}

.prod-card--6 .prod-card-cart {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  font-size: 14px;
}

.prod-card--6 .prod-card-cart span {
  display: inline;
}

@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .prod-card-body { padding: 12px; }
  .prod-card-name { font-size: 15px; }
  .prod-card-price strong { font-size: 16px; }
  .prod-card-cart { width: 38px; height: 38px; font-size: 14px; }
  .prod-card--2 .prod-card-cart,
  .prod-card--5 .prod-card-cart,
  .prod-card--6 .prod-card-cart { width: 100%; }
  .prod-card--3 .prod-card-cart { width: auto; margin: 14px -12px -12px; }
}
