/* ============================================================
   AWANE — Product Card  (pc-* namespace)
   ============================================================ */

/* ── Card shell ─────────────────────────────────────────────── */
.pc-card {
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* ── Image wrapper — THE fixed-size box ─────────────────────── */
.pc-img-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid #E4E0D8;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  align-self: stretch;
}

/* Hover: gold border + lift */
.pc-card:hover .pc-img-wrap {
  border-color: #B89B5E;
  box-shadow: 0 6px 24px rgba(60,62,64,.08);
}

/* ── Full-area link covers the entire image box ─────────────── */
.pc-img-link {
  position: absolute;
  inset: 0;
  display: block;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* ── The actual image — absolutely fills the wrapper ────────── */
.pc-img-link img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain;
  object-position: center center;
  padding: 1rem;
  transition: transform 0.5s ease;
  display: block;
}
.pc-card:hover .pc-img-link img {
  transform: scale(1.04);
}

/* ── Placeholder when no image ──────────────────────────────── */
.pc-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0.25em;
  color: #B89B5E;
}

/* ── Badges — inside image box, top-left ────────────────────── */
.pc-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
  z-index: 2;
  pointer-events: none;
}

.pc-badge-discount {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: #B89B5E;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  line-height: 1.5;
}

.pc-badge-soldout {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: #888888;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  line-height: 1.5;
}

/* ── Info section below image ───────────────────────────────── */
.pc-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.9rem 0.5rem 0;
  flex: 1;
}

/* ── Product name ────────────────────────────────────────────── */
.pc-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: #222 !important;
  opacity: 1;
  margin: 0 0 0.45rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  width: 100%;
  flex: 1;
}
.pc-name a,
.pc-name a:visited,
.pc-name a:hover,
.pc-name a:focus {
  color: #222 !important;
  opacity: 1;
  text-decoration: none;
}

/* ── Price ───────────────────────────────────────────────────── */
.pc-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 0;
}
.pc-price-current {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #171717;
}
.pc-price-original {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  color: #222 !important;
  opacity: 1;
  text-decoration: line-through;
}

/* ── Add to Cart ─────────────────────────────────────────────── */
.pc-actions {
  width: 100%;
  margin-top: 1.5rem;
}
.pc-actions form {
  width: 100%;
}
.pc-btn-cart {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 1rem;
  background: #3c3e40;
  color: #F2F0EA;
  border: 1px solid #3c3e40;
  border-radius: 3px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.pc-btn-cart:hover {
  background: #B89B5E;
  border-color: #B89B5E;
  color: #fff;
}

.pc-soldout-label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  color: #888888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.72rem 0;
  text-align: center;
  width: 100%;
}

/* ── Product grids ───────────────────────────────────────────── */
.aw-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
}
.aw-products-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── Shop page layout ───────────────────────────────────────── */
.aw-shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── Sidebar filters ────────────────────────────────────────── */
.aw-filter-sidebar { position: sticky; top: 90px; }

.aw-filter-card {
  background: #ffffff;
  border: 1px solid #EDEBE5;
  border-radius: 3px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.aw-filter-card h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2A2A2A;
  margin-bottom: 1rem;
}
.aw-filter-option {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.875rem;
  color: #5A5A5A;
  cursor: pointer;
  transition: color 0.22s ease;
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
}
.aw-filter-option:hover { color: #171717; }
.aw-filter-active { color: #B89B5E !important; font-weight: 500; }

/* ── Shop toolbar ───────────────────────────────────────────── */
.aw-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #EDEBE5;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.aw-shop-count {
  font-size: 0.82rem;
  color: #888888;
  font-family: 'Inter', system-ui, sans-serif;
}
.aw-shop-sort select {
  padding: 0.45rem 0.85rem;
  border: 1px solid #E4E0D8;
  border-radius: 3px;
  font-size: 0.82rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: #2A2A2A;
  background: #ffffff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.22s ease;
}
.aw-shop-sort select:focus { border-color: #B89B5E; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .aw-products-grid,
  .aw-products-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .aw-shop-layout { grid-template-columns: 1fr; }
  .aw-filter-sidebar { position: static; }
  .aw-products-grid,
  .aw-products-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .aw-products-grid,
  .aw-products-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .pc-name { font-size: 0.88rem; }
  .pc-img-link img { padding: 0.6rem; }
}
