@import url("wishlist-common.css");



.wl-container{
  padding-top: 40px;
  padding-bottom: 80px;
  max-width: 1224px;
  margin: 0 auto;
}

#wishlist-app-container * {
  box-sizing: border-box;
}

#wishlist-app-container {
  width: 100%;
  font-family: var(--wl-body-font-family);
  background: transparent;
  color: var(--wl-font-high);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  text-align: left;
}

.wl-page-header-wrapper{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.wl-page-title{
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  font-family: var(--wl-heading-font-family);
  color: var(--wl-font-high);
  margin-bottom: 0;
}




/* ── SIDEBAR ── */��─ */
.wl-sidebar {
  background: var(--wl-white);
  overflow: hidden;
  position: sticky;
  top: 32px;
}


.btn-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: none !important;
  cursor: pointer;
  border-width: 1px;
  border-style: solid;
  height: 40px;
  padding: 0 16px;
  background: var(--wl-brand-primary-sm);
  border-color: transparent;
  border-radius: var(--wl-radius-sm);
  transition:
    border-color 0.2s ease-in,
    background-color 0.2s ease-in,
    color 0.2s ease-in;
  appearance: none;
  white-space: nowrap;

}
.btn-primary svg {
  display: block;
  width: 16px;
  height: 16px;
}

.btn-primary svg path{
  stroke: currentColor;
  transition: stroke 0.2s ease-in;
}

.btn-primary:hover{
  background: var(--wl-btn-primary-bg);
}

.btn-primary:focus-visible {
  outline: 1px solid var(--wl-btn-primary-bg);
  outline-offset: 2px;
}



.wl-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--wl-body-font-family);
  line-height: 1.4;
  color: var(--wl-font-high);
  cursor: pointer;
  transition: var(--wl-transition);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  border-radius: var(--wl-radius-sm);
  margin-bottom: 4px;
}
.wl-cat-item:last-child {
  margin-bottom: 0;
}

.wl-cat-item:hover {
  background: var(--wl-secondary);
}

.wl-cat-item.active {
  background: var(--wl-brand-primary-ll);
  color: var(--wl-brand-primary-sm);
}

.wl-cat-count {
  font-size: 12px;
  background: var(--wl-white);
  font-family: var(--wl-body-font-family);
  line-height: 1.4;
  color: var(--wl-font-high);
  padding: 2px 8px;
  border-radius: var(--wl-button-radius);
  font-weight: 600;
  transition: var(--wl-transition);
}

.wl-cat-item.active .wl-cat-count {
  color: var(--wl-brand-primary-sm);
}

.wl-cat-name-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wl-badge {
  font-size: 10px;
  line-height: 1.4;
  padding: 2px 6px;
  border-radius: var(--wl-button-radius);
  font-family: var(--wl-body-font-family);
  font-weight: 500;
}

.wl-badge--default {
  background: var(--wl-brand-primary-sm);
  color: var(--wl-white);
}

#wishlist-app-container svg path{
  stroke: currentColor;
}

/* ── MAIN CONTENT ── */
.wl-main {
  display: flex;
  flex-direction: column;
}

/* ── WISHLIST HEADER ── */
.wl-header {
  border-bottom: 1px solid var(--wl-border);
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.wl-h-left {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.wl-h-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  font-family: var(--wl-heading-font-family);
  color: var(--wl-font-high);
}

.wl-h-count {
  font-size: 16px;
  font-family: var(--wl-body-font-family);
  line-height: 1.4;
  color: var(--wl-font-low);
  font-weight: 500;
}

.wl-h-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wl-btn-delete-list {
  width: 42px; height: 42px;
  border-radius: var(--wl-radius-sm);
  border: 1px solid var(--wl-border);
  background: var(--wl-white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--wl-font-low);
  transition: var(--wl-transition);
  margin: 0;
}
.wl-btn-delete-list:hover { 
  border-color: var(--wl-danger-light); 
  color: var(--wl-danger); 
  background: var(--wl-danger-light); 
}
.wl-btn-delete-list:active {
  transform: scale(0.95);
}

/* ── CONTROLS BAR ── */
.wl-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--wl-border);
  padding-bottom: 16px;
}


.wl-search-group {
  background: var(--wl-white);
  width: 280px;
  height: 48px;
  position: relative;
}

.wl-search-group svg{
  height: 24px;
  width: 24px;
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
}

.wl-search-group svg path{
  stroke: var(--wl-font-high);
}

.wl-search-group input{
  border-radius: var(--wl-field-radius);
  width: 100%;
  height: 100%;
  border: 1px solid var(--wl-border);
  font-size: 16px;
  background-color: var(--wl-white);
  color: var(--wl-font-high);
  font-family: var(--wl-body-font-family);
  padding: 0 15px;
  padding-left: 48px;
  outline: none;
  transition: border-color 0.2 ease;
}

.wl-search-group input:focus,
.wl-search-group input:focus-visible {
  border-color: var(--wl-dark-border);
}
.wl-search-group input.error{
  border-color: red !important;
}
.wl-search-group input::placeholder {
  color: var(--wl-font-low);
}

.wl-search-icon { 
  color: var(--wl-font-low); 
  flex-shrink: 0; 
}

.wl-sort-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wl-sort-label {
  font-family: var(--wl-body-font-family);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--wl-font-high);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wl-sort-label svg{
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.wl-sort-label svg path{
  stroke: currentColor;
}

/* ── PRODUCT ITEMS ── */

.wl-item-card {
  border-bottom: 1px solid var(--wl-border);
  padding: 16px 0;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: flex-start;
  transition: var(--wl-transition);
  position: relative;
}
.wl-item-card:last-child{
  border-bottom: 0;
}
.wl-item-card.wl-active-card {
  z-index: 210;
}

.wl-item-img {
  width: 100px; height: 100px;
  border-radius: var(--wl-radius-sm);
  overflow: hidden;
  background: var(--wl-secondary);
  border: 1px solid var(--wl-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.wl-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wl-item-body { 
  flex: 1; 
}

.wl-item-name {
  font-family: var(--wl-body-font-family);
  font-size: 16px;
  font-weight: 500;
  color: var(--wl-font-high);
  line-height: 1.4;
  text-decoration: none;
  display: block;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: color 0.2s ease;
}
.wl-item-name:hover { 
  color: var(--wl-brand-primary-sm); 
  text-decoration: none;
}

.wl-item-variant {
  font-size: 12px;
  line-height: 1.4;
  color: var(--wl-font-mid);
  font-family: var(--wl-body-font-family);
  margin-top: 4px;
}

.wl-item-price {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--wl-font-high);
  font-family: var(--wl-body-font-family);
  line-height: 1.4;
}

.wl-item-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
}


/* Hide any automatically injected global heart buttons on the management page */
.wl-items-list .wishlist-global-btn {
  display: none !important;
}

.wl-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wl-btn-add-cart{
  width: 100%;
}


/* ── EMPTY STATE ── */
.wl-empty {
  background: var(--wl-white);
  border-radius: var(--wl-radius-lg);
  padding: 48px 16px;
  text-align: center;
  display: none;
}
.wl-empty.visible { 
  display: block; 
}
.wl-empty-icon { 
  font-size: 56px; 
  margin-bottom: 20px; 
  filter: grayscale(0.4) 
  opacity(0.8); 
}
.wl-empty-title { 
  font-size: 24px; 
  font-weight: 600;
  line-height: 1.4;
  font-family: var(--wl-heading-font-family);
  color: var(--wl-font-high); 
  margin-bottom: 8px; 
}
.wl-empty-sub { 
  font-size: 14px;
  line-height: 1.4;
  font-family: var(--wl-body-font-family);
  color: var(--wl-font-low); 
  max-width: 300px; 
  margin: 0 auto; 
}

@media (max-width: 1199px){
  .wl-container{
    padding-top: 32px;
    padding-bottom: 64px;
    max-width: 960px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* RESPONSIVE */
@media(max-width: 991px) {
  #wishlist-app-container {
    grid-template-columns: 1fr;
  }
  .wl-container{
    max-width: 720px;
  }
  .wl-sidebar {
    position: relative;
    top: 0;
  }
  .wl-page-title{
    font-size: 28px;
  }
}
@media (max-width: 767px){
  .wl-container{
    max-width: 540px;
  }
  .wl-controls-bar {
    flex-wrap: wrap;
  }
  .wl-search-group {
    width: 100%;
  }
  .wl-sort-wrap {
    width: 100%;
  }
  .wl-field-group {
    flex: 1;
  }
  .wl-item-card{
    grid-template-columns: 80px 1fr auto;
    gap: 12px;
  }
  .wl-item-img{
    height: 80px;
    width: 80px;
  }
}
@media(max-width: 575px) {
  .wl-page-header-wrapper{
    flex-direction: column;
    row-gap: 12px;
    align-items: flex-start;
  }
  .wl-page-header-wrapper .wl-btn{
    width: 100%;
  }
  .wl-item-card {
    grid-template-columns: 64px 1fr;
  }
  .wl-item-img{
    height: 64px;
    width: 64px;
  }
  .wl-item-name{
    font-size: 14px;
  }
  .wl-item-price{
    margin-top: 6px;
  }
  .wl-item-actions {
    grid-column: 1 / -1;
    flex-direction: column-reverse;
    justify-content: space-between;
    width: 100%;
  }
  .wl-action-row{
    width: 100%;
  }
  .wl-action-row .wl-dropdown-container{
    flex: 1;
  }
  .wl-action-row .wl-dropdown-container .wl-btn{
    width: 100%;
  }
  .wl-action-row .wl-dropdown-container .wl-dropdown-menu{
    width: 100%;
  }
}
