
/* ==========================================================
   LEJLA'S SHOP — FAVORITES / WISHLIST
========================================================== */

:root {
  --fav-bg: #f7f2ea;
  --fav-paper: #fffdf9;
  --fav-text: #211d19;
  --fav-muted: #81766c;
  --fav-line: #e5dacb;
  --fav-gold: #caa25b;
  --fav-gold-dark: #9f7431;
  --fav-olive: #293129;
}

.favorites-page {
  width: min(1460px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: 48px 0 95px;
}

.favorites-page .page-header {
  max-width: 820px;
  margin: 0 auto 44px;
  text-align: center;
}

.favorites-page .page-header span {
  display: block;
  margin-bottom: 12px;
  color: var(--fav-gold-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.favorites-page .page-header h1 {
  margin: 0 0 13px;
  color: var(--fav-text);
  font-family: "Playfair Display", serif;
  font-size: clamp(44px, 5vw, 66px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.025em;
}

.favorites-page .page-header p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--fav-muted);
  font-size: 13px;
  line-height: 1.8;
}

.favorites-products-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 30px 18px;
}

.favorite-product-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.favorite-product-card .product-image-link {
  width: 100%;
  height: 280px;
  display: block;
  overflow: hidden;
  border-radius: 14px 4px 14px 4px;
  background: #eee6da;
}

.favorite-product-card .product-image-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .6s ease;
}

.favorite-product-card:hover .product-image-link img {
  transform: scale(1.03);
}

.favorite-product-card .product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 13px 0 0 !important;
}

.favorite-product-card .product-info h3 {
  min-height: 42px;
  margin: 0 0 8px !important;
  color: var(--fav-text);
  font-family: "Playfair Display", serif;
  font-size: 17px !important;
  font-weight: 600;
  line-height: 1.22 !important;
}

.favorite-product-card .product-info > p {
  margin: 0 0 12px !important;
  color: #2d2823;
  font-size: 14px !important;
  font-weight: 800;
}

.favorite-product-card .product-favorite-form {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 6;
  margin: 0;
}

.favorite-product-card .product-favorite-btn {
  position: static !important;
  width: 36px !important;
  height: 36px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,253,249,.92) !important;
  color: var(--fav-gold-dark) !important;
  box-shadow: 0 8px 20px rgba(48,39,30,.08) !important;
}

.favorite-product-card .product-favorite-btn svg {
  width: 17px !important;
  height: 17px !important;
}

.favorite-product-actions {
  display: grid;
  grid-template-columns: minmax(0,1fr) 38px;
  gap: 7px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--fav-line);
}

.favorite-product-actions form {
  width: 100%;
  margin: 0;
}

.favorite-buy-now-button {
  width: 100% !important;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 11px !important;
  border: 1px solid rgba(169,121,47,.18) !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg,#efe1c8,#e5d1aa) !important;
  color: #2a241f !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  letter-spacing: .06em;
}

.favorite-buy-now-button svg {
  display: none;
}

.favorite-buy-now-button:hover {
  background: var(--fav-olive) !important;
  color: #fff !important;
}

.favorite-cart-button {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #ded2c2 !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.65) !important;
  color: #302a25 !important;
}

.favorite-cart-button:hover {
  background: var(--fav-olive) !important;
  color: #fff !important;
}

.favorite-cart-button svg {
  width: 17px;
  height: 17px;
}

.favorite-product-card .product-out-of-stock-button {
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border: 1px solid var(--fav-line);
  border-radius: 8px;
  background: transparent;
  color: #8a8178;
  font-size: 9px;
  font-weight: 800;
}

.favorites-products-grid > .empty-state {
  grid-column: 1 / -1;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 70px 26px;
  border: 1px solid var(--fav-line);
  border-radius: 18px 6px 18px 6px;
  background: var(--fav-paper);
  box-shadow: 0 18px 45px rgba(48,39,30,.05);
  text-align: center;
}

.favorites-products-grid > .empty-state h2 {
  margin: 0 0 10px;
  color: var(--fav-text);
  font-family: "Playfair Display", serif;
  font-size: 30px;
}

.favorites-products-grid > .empty-state p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--fav-muted);
  font-size: 13px;
  line-height: 1.7;
}

.favorites-products-grid > .empty-state .btn {
  min-width: 190px !important;
  padding: 14px 24px !important;
  font-size: 12px !important;
}

.favorites-page .flash-message {
  max-width: 900px;
  margin: 0 auto 28px;
  padding: 13px 16px;
  border: 1px solid #e4d5be;
  border-radius: 10px;
  background: #fffaf1;
  color: #6d5635;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1120px) {
  .favorites-products-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media (max-width: 820px) {
  .favorites-page {
    width: calc(100% - 28px);
  }

  .favorites-products-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .favorite-product-card .product-image-link {
    height: 240px;
  }
}

@media (max-width: 560px) {
  .favorites-page {
    width: calc(100% - 22px);
    padding-top: 34px;
  }

  .favorites-products-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px 10px;
  }

  .favorite-product-card .product-image-link {
    height: 200px;
  }

  .favorite-product-card .product-info h3 {
    min-height: 38px;
    font-size: 14px !important;
  }

  .favorite-buy-now-button {
    font-size: 8px !important;
    padding: 0 6px !important;
  }
}
