/*
 * Wishlist page — "Saved For You / My Wishlist".
 * Source of truth: _build/specs/wishlist.md. Reuses the .arkan-card look for
 * saved fragrances; the TI wishlist shortcode output is re-skinned here.
 */

.arkan-wish {
  background: var(--cream);
}

/* wish-sec side padding = 48px, collapsing to 20px at the design's 860px break. */
.wish-sec {
  padding-left: 48px;
  padding-right: 48px;
}

/* ---------- Breadcrumb strip ---------- */
.arkan-wish__crumb {
  width: 100%;
  background: var(--cream);
  padding-top: 24px;
  padding-bottom: 0;
}

.arkan-wish__crumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--body-2);
}

.arkan-wish__crumb-inner a {
  color: var(--body-2);
  transition: color 0.2s;
}

.arkan-wish__crumb-inner a:hover {
  color: var(--burgundy);
}

.arkan-wish__crumb-sep {
  opacity: 0.5;
}

.arkan-wish__crumb-cur {
  color: var(--burgundy);
  font-weight: 500;
}

/* ---------- Page hero heading ---------- */
.arkan-wish__hero {
  width: 100%;
  background: var(--cream);
  padding-top: 50px;
  padding-bottom: 30px;
  text-align: center;
}

.arkan-wish__eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.arkan-wish__title {
  font-family: var(--serif);
  font-size: clamp(46px, 5.6vw, 72px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.arkan-wish__hero .arkan-divider {
  margin: 26px 0 0;
}

/* ---------- Body / content section ---------- */
.arkan-wish__body {
  width: 100%;
  background: var(--cream);
  padding-top: 20px;
  padding-bottom: 90px;
}

.arkan-wish__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Plugin wrapper resets — kill default table/list chrome. */
.arkan-wish__wrap {
  margin: 0;
  padding: 0;
}

.arkan-wish__wrap .woocommerce-info,
.arkan-wish__wrap .woocommerce-message {
  margin-bottom: 20px;
}

.arkan-wish__form {
  margin: 0;
}

/* ---------- Toolbar ---------- */
.arkan-wish__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.arkan-wish__count {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--body-2);
}

.arkan-wish__moveall {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--burgundy);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s;
}

.arkan-wish__moveall:hover {
  background: var(--burgundy-dark);
}

.arkan-wish__moveall svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
}

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

.arkan-wish__card {
  display: flex;
  flex-direction: column;
}

/* ---------- Image tile ---------- */
.arkan-wish__tile {
  position: relative;
  background: var(--well);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.arkan-wish__remove {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: background 0.2s;
  color: var(--burgundy);
  padding: 0;
}

.arkan-wish__remove:hover {
  background: #fff;
}

.arkan-wish__imglink {
  display: block;
  width: 100%;
  height: 100%;
}

.arkan-wish__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}

.arkan-wish__imglink:hover .arkan-wish__img {
  transform: scale(1.05);
}

/* ---------- Info block ---------- */
.arkan-wish__info {
  padding: 16px 4px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.arkan-wish__namelink {
  display: block;
}

.arkan-wish__name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 5px;
}

.arkan-wish__scent {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 12px;
}

.arkan-wish__price {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--burgundy);
  margin-bottom: 16px;
  margin-top: auto;
}

.arkan-wish__add {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(26, 22, 20, 0.22);
  border-radius: 28px;
  height: 46px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.arkan-wish__add:hover {
  background: var(--burgundy);
  color: #fff;
  border-color: var(--burgundy);
}

/* ---------- Empty state ---------- */
.arkan-wish__empty {
  max-width: 520px;
  margin: 20px auto;
  background: var(--surface);
  border: 1px solid rgba(45, 10, 18, 0.06);
  border-radius: 18px;
  box-shadow: 0 12px 44px rgba(45, 10, 18, 0.05);
  padding: 60px 40px;
  text-align: center;
}

.arkan-wish__empty-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--burgundy);
}

.arkan-wish__empty-title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}

.arkan-wish__empty-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--body-2);
  line-height: 1.8;
  margin-bottom: 30px;
}

.arkan-wish__empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--burgundy);
  color: #fff;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 38px;
  border-radius: 30px;
  transition: background 0.25s;
}

.arkan-wish__empty-cta:hover {
  background: var(--burgundy-dark);
}

.arkan-wish__empty-cta svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
}

/* ---------- Header active state: filled wishlist heart on this page ---------- */
.page-template-tpl-wishlist .arkan-header__icon[aria-label="Wishlist"] svg,
.page-template-tpl-wishlist .arkan-header__icon[aria-label="المفضّلة"] svg {
  fill: var(--burgundy);
  stroke: var(--burgundy);
}

/* ---------- Responsive (design breakpoints) ---------- */
@media (max-width: 860px) {
  .wish-sec {
    padding-left: 20px;
    padding-right: 20px;
  }
  .wish-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- RTL: mirror the remove-button corner geometry ---------- */
html[dir='rtl'] .arkan-wish__remove {
  inset-inline-end: 12px; /* logical prop already flips; explicit for clarity. */
}
