/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 22px 0 0;
  font-size: 12.5px;
  color: #4A3540;
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

.breadcrumb a:hover {
  color: #D91C73;
}

.breadcrumb .current {
  color: #1A0F14;
  font-weight: 600;
}

/* ---------- Intro ---------- */
.intro {
  padding: 34px 0 6px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.intro h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-style: italic;
  font-weight: 500;
  font-family: 'Fraunces', serif;
  margin: 0;
}

.intro p {
  font-size: 14.5px;
  color: #4A3540;
  margin-top: 14px;
  max-width: 520px;
  line-height: 1.7;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  margin-top: 18px;
  border-top: 1px solid #E9D9CE;
  border-bottom: 1px solid #E9D9CE;
  flex-wrap: wrap;
  gap: 14px;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 18px;
  border: 1px solid #E9D9CE;
  border-radius: 30px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.18s ease;
  text-decoration: none;
  color: #1A0F14;
}

.chip:hover {
  border-color: #1A0F14;
}

.chip.active {
  background: #1A0F14;
  color: #fff;
  border-color: #1A0F14;
}

select#sortSelect {
  border: 1px solid #D3C2C8;
  border-radius: 4px;
  padding: 10px 36px 10px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  background: #FFFFFF;
  cursor: pointer;
  color: #1A0F14;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath stroke='%231A0F14' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.18s;
}

select#sortSelect:focus,
select#sortSelect:hover {
  outline: none;
  border-color: #D91C73;
}

/* ---------- Product Grid ---------- */
.p-grid {
  padding: 44px 0 100px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

@media (max-width: 1100px) {
  .p-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .p-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}

@media (max-width: 480px) {
  .p-grid { grid-template-columns: 1fr; }
}

/* ---------- Product Card ---------- */
.p-card {
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.p-img {
  aspect-ratio: 4/5;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  background: #F0E8E4;
}

.p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.p-card:hover .p-img img {
  transform: scale(1.06);
}

/* Placeholder when no image */
.p-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2C2028 0%, #4A3540 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-style: italic;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
}

/* Badges */
.p-img-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 20px;
}

.badge-featured {
  background: rgba(255, 255, 255, 0.92);
  color: #1A0F14;
}

.badge-sold-out {
  background: rgba(26, 15, 20, 0.82);
  color: #fff;
}

.badge-low {
  background: rgba(217, 28, 115, 0.15);
  color: #D91C73;
  border: 1px solid rgba(217, 28, 115, 0.3);
}

/* Hover overlay CTA */
.p-card-hover {
  position: absolute;
  inset: 0;
  background: rgba(26, 15, 20, 0);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  transition: background 0.3s ease;
  z-index: 3;
}

.p-card-cta {
  background: #fff;
  color: #1A0F14;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 30px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  white-space: nowrap;
}

.p-card:hover .p-card-hover {
  background: rgba(26, 15, 20, 0.2);
}

.p-card:hover .p-card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Card meta */
.p-card-meta {
  padding: 14px 2px 0;
}

.p-card-cat {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #D91C73;
  margin-bottom: 5px;
}

.p-card h4 {
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  margin: 0;
  font-family: 'Fraunces', serif;
  color: #1A0F14;
  line-height: 1.35;
}

.p-card .pp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 7px;
}

.p-card .pp {
  font-size: 13.5px;
  font-weight: 700;
  color: #1A0F14;
}

.pp-old {
  font-weight: 400;
  font-size: 12px;
  color: #9a8a90;
  margin-left: 6px;
  text-decoration: line-through;
}

.in-stock-dot {
  font-size: 10px;
  color: #5CB85C;
  opacity: 0.8;
}

/* ---------- Empty State ---------- */
.empty-state {
  grid-column: 1 / -1;
  padding: 100px 0 80px;
  text-align: center;
  color: #9a8a90;
}

.empty-icon {
  font-size: 36px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h3 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
  color: #1A0F14;
  margin: 0 0 10px;
}

.empty-state p {
  font-size: 14px;
  color: #4A3540;
  margin: 0 0 24px;
  line-height: 1.6;
}

.empty-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #1A0F14;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.empty-btn:hover {
  background: #D91C73;
}

/* ---------- Utility ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
  color: #A5673E;
  margin-bottom: 10px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid #D91C73;
  outline-offset: 3px;
}
