/**
 * Webpixlab Premium WooCommerce Shop
 */

:root {
  --wpl-shop-primary: #2563eb;
  --wpl-shop-primary-dark: #1d4ed8;
  --wpl-shop-danger: #ef4444;
  --wpl-shop-warning: #fbbf24;
  --wpl-shop-text: #111827;
  --wpl-shop-muted: #6b7280;
  --wpl-shop-soft: #f5f7fb;
  --wpl-shop-panel: #ffffff;
  --wpl-shop-line: #e5e7eb;
  --wpl-shop-line-strong: #dbe3ef;
  --wpl-shop-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --wpl-shop-shadow-hover: 0 24px 54px rgba(15, 23, 42, 0.14);
  --wpl-shop-radius: 18px;
  --wpl-shop-radius-card: 20px;
}

.woocommerce-shop,
.tax-product_cat,
.tax-product_tag {
  background: var(--wpl-shop-soft);
  color: var(--wpl-shop-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.woocommerce-shop #primary,
.tax-product_cat #primary,
.tax-product_tag #primary {
  background: var(--wpl-shop-soft);
}

.woocommerce-shop .site-main > .container,
.tax-product_cat .site-main > .container,
.tax-product_tag .site-main > .container {
  width: min(100% - 48px, 1500px);
  max-width: 1500px;
  margin: 0 auto;
  padding: 48px 0 36px;
}

.woocommerce-shop .wpl-shop-after-main > .container,
.tax-product_cat .wpl-shop-after-main > .container,
.tax-product_tag .wpl-shop-after-main > .container,
.woocommerce-cart .wpl-shop-after-main > .container,
.yith-wcwl-page .wpl-shop-after-main > .container,
.wpl-shop-after-main > .container {
  width: min(100% - 48px, 1500px);
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 0 72px;
}

.wpl-shop-content-wrapper,
.wpl-shop-content-wrapper.wpl-sidebar-left {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-areas: "sidebar main";
  align-items: start;
  gap: 32px;
  width: 100%;
}

.wpl-shop-content-wrapper.wpl-sidebar-right {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "main sidebar";
  align-items: start;
  gap: 32px;
  width: 100%;
}

.wpl-shop-main-content {
  grid-area: main;
  min-width: 0;
}

.wpl-shop-sidebar {
  grid-area: sidebar;
  width: 300px;
  position: sticky;
  top: 28px;
  z-index: 5;
}

.wpl-shop-toolbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
  padding: 14px 20px 14px 24px;
  background: var(--wpl-shop-panel);
  border: 1px solid var(--wpl-shop-line);
  border-radius: var(--wpl-shop-radius);
  box-shadow: var(--wpl-shop-shadow);
}

.wpl-shop-toolbar__count {
  font-size: 15px;
  line-height: 1.4;
  color: #334155;
  white-space: nowrap;
}

.wpl-shop-toolbar__count strong {
  font-weight: 500;
}

.wpl-shop-toolbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.wpl-shop-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 14px;
}

.wpl-shop-sort form {
  margin: 0;
}

.wpl-shop-sort select,
.woocommerce .wpl-shop-sort .orderby {
  width: 190px;
  height: 42px;
  padding: 0 38px 0 14px;
  color: var(--wpl-shop-text);
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  border: 1px solid var(--wpl-shop-line);
  border-radius: 8px;
  box-shadow: none;
  outline: none;
}

.wpl-shop-sort select:focus {
  border-color: var(--wpl-shop-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.wpl-shop-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wpl-shop-view-button,
.wpl-wc-filter-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #334155;
  background: #fff;
  border: 1px solid var(--wpl-shop-line);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.wpl-shop-view-button svg,
.wpl-wc-filter-toggle svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.wpl-shop-view-button:hover,
.wpl-wc-filter-toggle:hover {
  color: var(--wpl-shop-primary);
  border-color: #bfd0ff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
}

.wpl-shop-view-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--wpl-shop-primary), #0f56df);
  border-color: var(--wpl-shop-primary);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}

.wpl-wc-filter-toggle {
  width: auto;
  min-width: 104px;
  gap: 8px;
  padding: 0 18px;
  font-weight: 600;
}

.wpl-shop-sidebar .widget,
.wpl-shop-sidebar .widget_wpl_ajax_product_filter {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--wpl-shop-line);
  border-radius: var(--wpl-shop-radius);
  box-shadow: var(--wpl-shop-shadow);
}

.wpl-sidebar-header {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--wpl-shop-line);
}

.wpl-sidebar-header .widget-title {
  margin: 0;
  color: var(--wpl-shop-text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.wpl-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--wpl-shop-primary);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.wpl-clear-filters svg {
  width: 14px;
  height: 14px;
}

.wpl-sidebar-close {
  display: none;
  width: 36px;
  height: 36px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid var(--wpl-shop-line);
  border-radius: 10px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.filter-widget {
  display: block;
}

.filter-section {
  border-bottom: 1px solid var(--wpl-shop-line);
}

.filter-section:last-child {
  border-bottom: 0;
}

.filter-toggle {
  position: relative;
  margin: 0;
  padding: 20px 42px 16px 20px;
  color: var(--wpl-shop-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
}

.filter-toggle::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  border-top: 1.8px solid #475569;
  border-left: 1.8px solid #475569;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.filter-section:not(.active) .filter-toggle::after {
  transform: rotate(225deg);
}

.filter-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.24s ease, opacity 0.2s ease;
  opacity: 0;
}

.filter-section.active .filter-content {
  max-height: 520px;
  opacity: 1;
}

.filter-area {
  padding: 0 20px 20px;
}

.filter-area p {
  display: none;
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.price-inputs label {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--wpl-shop-line);
  border-radius: 7px;
}

.price-inputs label span,
.price-inputs > span {
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.price-inputs input {
  width: 54px;
  height: 36px;
  padding: 0;
  color: var(--wpl-shop-text);
  background: transparent;
  border: 0;
  outline: none;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.wpl-ajax-price-filter.ui-slider {
  height: 6px;
  margin: 4px 7px 0;
  background: #dbeafe;
  border: 0;
  border-radius: 999px;
}

.wpl-ajax-price-filter .ui-slider-range {
  background: var(--wpl-shop-primary);
  border-radius: 999px;
}

.wpl-ajax-price-filter .ui-slider-handle {
  top: -6px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  background: #fff;
  border: 3px solid var(--wpl-shop-primary);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.22);
  cursor: grab;
  outline: none;
}

.category-list label,
.filter-area > label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.category-list label > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.category-list label > span span:last-child,
.filter-area > label em {
  color: #64748b;
  font-style: normal;
  font-weight: 500;
}

.category-list input[type="checkbox"],
.filter-area > label input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
  cursor: pointer;
}

.category-list input[type="checkbox"]:checked,
.filter-area > label input[type="checkbox"]:checked {
  background: var(--wpl-shop-primary);
  border-color: var(--wpl-shop-primary);
  box-shadow: inset 0 0 0 4px var(--wpl-shop-primary);
}

.category-list input[type="checkbox"]:checked::before,
.filter-area > label input[type="checkbox"]:checked::before {
  content: "";
  display: block;
  width: 7px;
  height: 4px;
  margin: 4px auto 0;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}

.child-categories {
  position: relative;
  margin-left: 22px !important;
  padding-left: 14px;
}

.child-categories::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 8px;
  width: 1px;
  background: #e2e8f0;
}

.color-filter-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.color-filter-list label {
  position: relative;
  width: 28px;
  height: 28px;
  margin: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #cbd5e1;
  cursor: pointer;
}

.color-filter-list label:has(input:checked) {
  box-shadow: 0 0 0 2px var(--wpl-shop-primary);
}

.color-filter-list input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.tooltip-content {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  padding: 5px 7px;
  color: #fff;
  background: #111827;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.color-filter-list label:hover .tooltip-content {
  opacity: 1;
}

.size-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.size-filter-list label {
  min-width: 72px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 14px;
  color: #1f2937;
  background: #fff;
  border: 1px solid var(--wpl-shop-line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
}

.size-filter-list input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-filter-list label:has(input:checked) {
  color: #fff;
  background: var(--wpl-shop-primary);
  border-color: var(--wpl-shop-primary);
}

.products-listing {
  min-width: 0;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none;
}

.woocommerce ul.products li.product.wpl-product-card,
.woocommerce-page ul.products li.product.wpl-product-card {
  position: relative;
  float: none;
  width: auto !important;
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--wpl-shop-line);
  border-radius: var(--wpl-shop-radius-card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.woocommerce ul.products li.product.wpl-product-card:hover {
  transform: translateY(-5px);
  border-color: #cbdafe;
  box-shadow: var(--wpl-shop-shadow-hover);
}

.wpl-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
}

.wpl-card-image-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
}

.woocommerce ul.products li.product.wpl-product-card .wpl-card-media img {
  width: 100%;
  height: 100%;
  max-width: 235px;
  max-height: 235px;
  object-fit: contain;
  margin: 0;
  transition: transform 0.28s ease;
}

.woocommerce ul.products li.product.wpl-product-card:hover .wpl-card-media img {
  transform: scale(1.06);
}

.wpl-product-card .onsale {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 6px 11px;
  color: #fff;
  background: var(--wpl-shop-danger);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.28);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.wpl-quick-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wpl-action-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #334155;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.wpl-action-button svg {
  width: 17px;
  height: 17px;
  fill: none;
}

.wpl-action-button:hover,
.wpl-action-button.is-active {
  color: #fff;
  background: var(--wpl-shop-primary);
  border-color: var(--wpl-shop-primary);
  transform: translateY(-2px);
}

.wpl-add-to-wishlist.is-active {
  background: #f43f5e;
  border-color: #f43f5e;
}

.wpl-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
}

.wpl-product-categories {
  min-height: 17px;
  margin: 0 0 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0;
}

.wpl-product-categories a {
  color: inherit;
  text-decoration: none;
}

.woocommerce ul.products li.product.wpl-product-card .woocommerce-loop-product__title {
  min-height: 40px;
  margin: 0 0 8px;
  padding: 0;
  color: var(--wpl-shop-text);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.wpl-product-card .woocommerce-loop-product__title a {
  color: inherit;
  text-decoration: none;
}

.wpl-card-rating {
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--wpl-shop-warning);
}

.woocommerce ul.products li.product.wpl-product-card .star-rating {
  float: none;
  margin: 0;
  color: var(--wpl-shop-warning);
  font-size: 12px;
  letter-spacing: 0;
}

.wpl-card-rating > span {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.wpl-loop-excerpt {
  display: none;
  margin: 0;
  color: var(--wpl-shop-muted);
  font-size: 14px;
  line-height: 1.6;
}

.wpl-card-price {
  min-height: 24px;
  margin: auto 0 14px;
}

.woocommerce ul.products li.product.wpl-product-card .price,
.wpl-card-price .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: var(--wpl-shop-primary);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.wpl-card-price del {
  order: 2;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 600;
  opacity: 1;
}

.wpl-card-price ins {
  color: var(--wpl-shop-primary);
  text-decoration: none;
}

.wpl-card-cart {
  margin-top: auto;
}

.woocommerce ul.products li.product.wpl-product-card .button {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--wpl-shop-primary), #0f56df);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.25);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.woocommerce ul.products li.product.wpl-product-card .button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--wpl-shop-primary-dark), #1647c8);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.32);
  transform: translateY(-1px);
}

.woocommerce ul.products li.product.wpl-product-card .button::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4Zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4ZM6.2 6l.4 2h11.7l-1.1 5.3H8L6.9 4H3V2h5.6l.4 2h12l-2 11.3H7.2L5.6 6h.6Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce ul.products li.product.wpl-product-card .product_type_variable::before,
.woocommerce ul.products li.product.wpl-product-card .product_type_grouped::before {
  display: none;
}

.woocommerce ul.products.loading {
  opacity: 0.45;
  pointer-events: none;
}

.woocommerce ul.products.list-view {
  grid-template-columns: 1fr;
}

.woocommerce ul.products.list-view li.product.wpl-product-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 260px;
}

.woocommerce ul.products.list-view .wpl-card-media {
  aspect-ratio: auto;
  min-height: 260px;
}

.woocommerce ul.products.list-view .wpl-card-body {
  min-height: 260px;
  padding: 26px 28px;
}

.woocommerce ul.products.list-view li.product.wpl-product-card .woocommerce-loop-product__title {
  min-height: 0;
  font-size: 22px;
}

.woocommerce ul.products.list-view .wpl-loop-excerpt {
  display: block;
  max-width: 760px;
  margin: 4px 0 18px;
}

.woocommerce ul.products.list-view .wpl-card-price {
  margin: auto 0 16px;
}

.woocommerce ul.products.list-view .wpl-card-cart {
  max-width: 220px;
}

.wpl-pagination-wrap {
  display: flex;
  justify-content: center;
  margin: 26px 0 0;
}

.wpl-pagination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.wpl-pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #334155;
  background: #fff;
  border: 1px solid var(--wpl-shop-line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.wpl-pagination .page-numbers.current {
  color: #fff;
  background: var(--wpl-shop-primary);
  border-color: var(--wpl-shop-primary);
}

.wpl-shop-service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 18px 26px;
  background: #fff;
  border: 1px solid var(--wpl-shop-line);
  border-radius: var(--wpl-shop-radius);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.wpl-shop-service-strip > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.wpl-shop-service-strip span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  background: #f1f5f9;
  border-radius: 50%;
}

.wpl-shop-service-strip svg {
  width: 19px;
  height: 19px;
}

.wpl-shop-service-strip p {
  margin: 0;
  line-height: 1.25;
}

.wpl-shop-service-strip strong,
.wpl-shop-service-strip small {
  display: block;
}

.wpl-shop-service-strip strong {
  color: var(--wpl-shop-text);
  font-size: 14px;
  font-weight: 800;
}

.wpl-shop-service-strip small {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
}

.wpl-shop-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.wpl-shop-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.wpl-shop-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(6px);
}

.wpl-shop-modal__dialog {
  position: relative;
  width: min(100%, 980px);
  max-height: min(86vh, 820px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.32);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.22s ease;
}

.wpl-shop-modal[aria-hidden="false"] .wpl-shop-modal__dialog {
  transform: translateY(0) scale(1);
}

.wpl-shop-modal__dialog--wide {
  width: min(100%, 1180px);
}

.wpl-shop-modal__close {
  position: sticky;
  top: 14px;
  left: calc(100% - 58px);
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 14px -54px auto;
  color: #334155;
  background: #fff;
  border: 1px solid var(--wpl-shop-line);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.wpl-quick-view-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 34px;
  padding: 38px;
}

.wpl-quick-view-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wpl-quick-view-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f5f7fb;
  border-radius: 16px;
}

.wpl-quick-view-summary h2 {
  margin: 8px 0 12px;
  color: var(--wpl-shop-text);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
}

.wpl-quick-view-kicker,
.wpl-quick-view-kicker a {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.wpl-quick-view-price {
  margin: 18px 0;
  color: var(--wpl-shop-primary);
  font-size: 24px;
  font-weight: 800;
}

.wpl-quick-view-description {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
}

.wpl-quick-view-summary form.cart {
  margin-top: 24px;
}

.wpl-quick-view-summary .single_add_to_cart_button,
.wpl-quick-view-summary .button {
  min-height: 48px;
  padding: 0 26px;
  color: #fff;
  background: var(--wpl-shop-primary);
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}

.wpl-quick-view-skeleton {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 34px;
  padding: 38px;
}

.wpl-quick-view-skeleton span {
  display: block;
  min-height: 420px;
  background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
  background-size: 220% 100%;
  border-radius: 18px;
  animation: wpl-skeleton 1.15s linear infinite;
}

.wpl-quick-view-skeleton div span {
  min-height: 24px;
  margin-bottom: 16px;
}

.wpl-compare-panel {
  padding: 34px;
}

.wpl-compare-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.wpl-compare-panel h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.wpl-compare-table-wrap {
  overflow-x: auto;
}

.wpl-compare-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  border: 1px solid var(--wpl-shop-line);
  border-radius: 14px;
  overflow: hidden;
}

.wpl-compare-table th,
.wpl-compare-table td {
  padding: 18px;
  border: 1px solid var(--wpl-shop-line);
  vertical-align: top;
  text-align: left;
}

.wpl-compare-table th {
  width: 170px;
  color: #334155;
  background: #f8fafc;
  font-weight: 800;
}

.wpl-compare-table td img {
  width: 100px;
  height: 100px;
  display: block;
  object-fit: contain;
  margin-bottom: 10px;
  background: #f5f7fb;
  border-radius: 12px;
}

.wpl-compare-diff td {
  background: #eff6ff;
}

.wpl-compare-remove {
  float: right;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--wpl-shop-danger);
  cursor: pointer;
}

.wpl-shop-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  max-width: 340px;
  padding: 13px 18px;
  color: #fff;
  background: #111827;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.wpl-shop-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wpl-no-products {
  grid-column: 1 / -1;
  padding: 38px;
  color: #64748b;
  background: #fff;
  border: 1px solid var(--wpl-shop-line);
  border-radius: var(--wpl-shop-radius);
  text-align: center;
}

.wpl-wishlist-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 48px 0 8px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wpl-wishlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--wpl-shop-line);
  border-radius: var(--wpl-shop-radius);
  box-shadow: var(--wpl-shop-shadow);
}

.wpl-wishlist-header span {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.wpl-wishlist-header h2 {
  margin: 0;
  color: var(--wpl-shop-text);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.wpl-wishlist-shop-link,
.wpl-wishlist-empty a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--wpl-shop-primary), #0f56df);
  border-radius: 10px;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.2);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.wpl-wishlist-list {
  display: grid;
  gap: 16px;
}

.wpl-wishlist-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 132px minmax(0, 1fr) 160px 190px;
  align-items: center;
  gap: 20px;
  min-height: 160px;
  padding: 18px 24px;
  background: #fff;
  border: 1px solid var(--wpl-shop-line);
  border-radius: var(--wpl-shop-radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpl-wishlist-item:hover {
  border-color: #cbdafe;
  box-shadow: var(--wpl-shop-shadow);
}

.wpl-wishlist-item.is-removing {
  opacity: 0;
  transform: translateX(18px);
}

.wpl-wishlist-remove {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #dc2626;
  background: #fee2e2;
  border: 0;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.wpl-wishlist-image {
  width: 132px;
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #f3f6fb;
  border-radius: 14px;
}

.wpl-wishlist-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wpl-wishlist-info h3 {
  margin: 0 0 8px;
  color: var(--wpl-shop-text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.wpl-wishlist-info h3 a {
  color: inherit;
  text-decoration: none;
}

.wpl-wishlist-stock {
  margin-top: 8px;
  color: #16a34a;
  font-size: 14px;
  font-weight: 600;
}

.wpl-wishlist-price {
  color: var(--wpl-shop-primary);
  font-size: 22px;
  font-weight: 800;
  text-align: right;
}

.wpl-wishlist-price del {
  display: block;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
}

.wpl-wishlist-price ins {
  color: var(--wpl-shop-primary);
  text-decoration: none;
}

.wpl-wishlist-actions {
  display: flex;
  justify-content: flex-end;
}

.wpl-wishlist-actions .button {
  min-width: 170px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--wpl-shop-primary), #0f56df);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.wpl-wishlist-empty {
  padding: 54px 28px;
  background: #fff;
  border: 1px solid var(--wpl-shop-line);
  border-radius: var(--wpl-shop-radius);
  box-shadow: var(--wpl-shop-shadow);
  text-align: center;
}

.wpl-wishlist-empty h3 {
  margin: 0 0 10px;
  color: var(--wpl-shop-text);
  font-size: 28px;
  font-weight: 800;
}

.wpl-wishlist-empty p {
  margin: 0 0 24px;
  color: #64748b;
}

body.wpl-modal-open {
  overflow: hidden;
}

@keyframes wpl-skeleton {
  to {
    background-position: -220% 0;
  }
}

@media (max-width: 1280px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .wpl-shop-service-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }

  .wpl-wishlist-item {
    grid-template-columns: 40px 110px minmax(0, 1fr);
  }

  .wpl-wishlist-price,
  .wpl-wishlist-actions {
    grid-column: 3;
    text-align: left;
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .woocommerce-shop .site-main > .container,
  .tax-product_cat .site-main > .container,
  .tax-product_tag .site-main > .container {
    width: min(100% - 32px, 1500px);
    padding-top: 32px;
  }

  .wpl-shop-content-wrapper,
  .wpl-shop-content-wrapper.wpl-sidebar-left,
  .wpl-shop-content-wrapper.wpl-sidebar-right {
    display: block;
  }

  .wpl-shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10001;
    width: min(340px, calc(100vw - 28px));
    padding: 18px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 20px 0 60px rgba(15, 23, 42, 0.24);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }

  .wpl-shop-sidebar.active {
    transform: translateX(0);
  }

  .wpl-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wpl-shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .wpl-shop-toolbar__actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .woocommerce-shop .site-main > .container,
  .tax-product_cat .site-main > .container,
  .tax-product_tag .site-main > .container {
    width: min(100% - 24px, 1500px);
    padding: 24px 0 48px;
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wpl-shop-toolbar {
    padding: 16px;
    border-radius: 14px;
  }

  .wpl-shop-toolbar__count {
    white-space: normal;
  }

  .wpl-shop-sort {
    width: 100%;
  }

  .wpl-shop-sort form,
  .wpl-shop-sort select,
  .woocommerce .wpl-shop-sort .orderby {
    width: 100%;
  }

  .woocommerce ul.products.list-view li.product.wpl-product-card {
    display: flex;
    min-height: 0;
  }

  .woocommerce ul.products.list-view .wpl-card-media {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .woocommerce ul.products.list-view .wpl-card-body {
    min-height: 0;
    padding: 18px;
  }

  .wpl-shop-service-strip {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .wpl-shop-service-strip > div {
    justify-content: flex-start;
  }

  .wpl-wishlist-page {
    padding-top: 28px;
  }

  .wpl-wishlist-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px;
  }

  .wpl-wishlist-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .wpl-wishlist-image {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .wpl-wishlist-info,
  .wpl-wishlist-price,
  .wpl-wishlist-actions {
    grid-column: 1 / -1;
  }

  .wpl-wishlist-actions .button {
    width: 100%;
  }

  .wpl-quick-view-panel,
  .wpl-quick-view-skeleton {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .wpl-quick-view-gallery {
    grid-template-columns: 1fr;
  }
}
