/**
 * Wishlist page — premium layer (hero, cards, empty state).
 * body.storefront-wishlist
 */

body.storefront-wishlist {
  --wl-hero-start: #fff5f5;
  --wl-hero-end: #f4f6f9;
  --wl-card-radius: 16px;
}

/* Tighter top after hero (breadcrumb is a separate .section above) */
body.storefront-wishlist .section--wishlist-main {
  padding-top: 28px;
}

/* Hero */
.wishlist-hero {
  background: linear-gradient(135deg, var(--wl-hero-start) 0%, var(--wl-hero-end) 55%, #eef1f6 100%);
  border-bottom: 1px solid rgba(209, 0, 36, 0.1);
  padding: 28px 0 32px;
  margin-top: 0;
}

.wishlist-hero__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.wishlist-hero__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #d10024, #ff3b5c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(209, 0, 36, 0.35);
  flex-shrink: 0;
}

.wishlist-hero__title {
  margin: 0 0 6px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.2;
}

.wishlist-hero__sub {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
  max-width: 520px;
  line-height: 1.5;
}

.wishlist-hero__count {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d10024;
  background: rgba(209, 0, 36, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Breadcrumb wishlist */
body.storefront-wishlist #breadcrumb {
  background: transparent;
}

body.storefront-wishlist #breadcrumb .breadcrumb-tree li.active {
  color: #d10024;
  font-weight: 600;
}

/* Sidebar: calmer panels on wishlist */
body.storefront-wishlist #aside .aside {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  padding: 18px 16px;
  margin-bottom: 16px;
}

body.storefront-wishlist #aside .aside-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  font-weight: 700;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

body.storefront-wishlist #aside .primary-btn {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  width: 100%;
  margin-bottom: 8px;
}

body.storefront-wishlist #aside .btn-default {
  border-radius: 10px;
  width: 100%;
  display: block;
  text-align: center;
  margin-left: 0 !important;
  border-color: #e2e8f0;
}

/* Product grid */
body.storefront-wishlist #store .row {
  margin-left: -10px;
  margin-right: -10px;
}

body.storefront-wishlist #store .row > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}

body.storefront-wishlist .product.wishlist-product {
  background: #fff;
  border-radius: var(--wl-card-radius);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.25s ease, border-color 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

body.storefront-wishlist .product.wishlist-product:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
  border-color: rgba(209, 0, 36, 0.2);
}

body.storefront-wishlist .product.wishlist-product .product-img {
  background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
  border-bottom: 1px solid #f1f5f9;
}

body.storefront-wishlist #store .product .product-img img {
  height: 220px;
  padding: 16px;
  transition: transform 0.35s ease;
}

body.storefront-wishlist .product.wishlist-product:hover .product-img img {
  transform: scale(1.04);
}

body.storefront-wishlist .store-wishlist-btn {
  width: 40px;
  height: 40px;
  top: 12px;
  right: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  border: none;
  background: rgba(255, 255, 255, 0.95);
}

body.storefront-wishlist .store-wishlist-btn.is-on {
  background: #fff0f1;
}

body.storefront-wishlist .product.wishlist-product .product-body {
  padding: 16px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.storefront-wishlist .product.wishlist-product .product-category {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
}

body.storefront-wishlist .product.wishlist-product .product-name {
  min-height: 2.6em;
  line-height: 1.35;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

body.storefront-wishlist .product.wishlist-product .product-name a {
  color: inherit;
  text-decoration: none;
}

body.storefront-wishlist .product.wishlist-product .product-name a:hover {
  color: #d10024;
}

body.storefront-wishlist .product.wishlist-product .product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #d10024;
  margin-top: auto;
  padding-top: 8px;
  letter-spacing: -0.02em;
}

.wishlist-card__cta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.wishlist-card__cta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.2s;
}

.wishlist-card__cta a:hover {
  color: #d10024;
}

.wishlist-card__cta a i {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.wishlist-card__cta a:hover i {
  transform: translateX(3px);
}

/* Sort bar on wishlist */
body.storefront-wishlist .store-filter {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

body.storefront-wishlist .store-filter .store-qty {
  color: #64748b;
  font-size: 0.85rem;
}

/* Empty state */
.wishlist-empty {
  text-align: center;
  padding: 56px 24px 64px;
  background: #fff;
  border-radius: 20px;
  border: 1px dashed rgba(209, 0, 36, 0.25);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  max-width: 520px;
  margin: 0 auto 32px;
}

.wishlist-empty__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff0f1, #fff);
  border: 2px solid rgba(209, 0, 36, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d10024;
  font-size: 36px;
}

.wishlist-empty h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.wishlist-empty p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.wishlist-empty .primary-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(90deg, #d10024, #9a0018);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(209, 0, 36, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.wishlist-empty .primary-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(209, 0, 36, 0.45);
}

/* Bottom pagination area */
body.storefront-wishlist #store > .store-filter:last-of-type {
  margin-top: 8px;
  border-radius: 12px;
}

@media (max-width: 767px) {
  .wishlist-hero {
    padding: 20px 0 24px;
  }
  .wishlist-hero__title {
    font-size: 1.4rem;
  }
  body.storefront-wishlist .product.wishlist-product .product-img img {
    height: 200px;
  }
}
