ul.products li.product,
ul.products li.wvs-archive-product-wrapper {
  position: relative;
}

/* Popover at bottom of .rey-productInner */
.fe-qa-popover {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;

  opacity: 0;
  pointer-events: none;
  transform: translateY(0);
  transition: opacity .06s linear;
}

.fe-qa {
  background: #ffffff;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.14);
  max-height: 148px;
  transition: max-height .22s ease;
}

.fe-qa__head {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px;
  border-bottom: 0;
  background: transparent;
  z-index: 2;
}

.fe-qa__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fe-qa__close {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 0;
  background: #fff;
  cursor: pointer;
  line-height: 28px;
  font-size: 18px;
}

.fe-qa__body { padding: 12px; }

.fe-qa__error,
.fe-qa__soldout {
  font-size: 13px;
  color: #111827;
  padding: 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
  text-align: center;
}

.fe-qa__hint {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

.fe-qa__btn {
  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
}

.fe-qa__view {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #111827;
  text-decoration: underline;
  opacity: .8;
}

/* Variation form tweaks */
.fe-qa .variations { margin: 0 0 10px; }
.fe-qa .variations select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  padding: 10px 12px;
  font-size: 13px;
}
.fe-qa .single_variation_wrap { margin-top: 10px; }

/* Remove qty UI */
.fe-qa .quantity,
.fe-qa .qty,
.fe-qa .cartBtnQty-controls,
.fe-qa .rey-cartBtnQty .quantity,
.fe-qa input.qty,
.fe-qa .woocommerce-variation-add-to-cart .quantity {
  display: none !important;
}

/* Remove "Clear" + stock text */
.fe-qa a.reset_variations,
.fe-qa .woocommerce-variation-availability,
.fe-qa .stock {
  display: none !important;
}

/* Remove any Rey/Woo loaders inside the popover */
.fe-qa .rey-lineLoader,
.fe-qa .rey-lineLoader.__ajax-preloader,
.fe-qa .ajax_add_to_cart .rey-lineLoader {
  display: none !important;
}

/* Full width add button */
.fe-qa .single_add_to_cart_button {
  width: 100%;
  border-radius: 12px;
}

/* Added state: green + tick */
.fe-qa__added {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}
.fe-qa__added .fe-qa__tick {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  margin-right: 8px;
  font-weight: 700;
}
.fe-qa__added .fe-qa__addedText { font-weight: 600; }

/* Hide on touch devices */
@media (max-width: 1024px) {
  .fe-qa-popover { display: none; }
}


/* --- Clean inner UI (remove table borders inside popover/sheet) --- */
.fe-qa table,
.fe-qa table * ,
.fe-qa .variations,
.fe-qa .variations * {
  border: 0 !important;
  box-shadow: none !important;
}

.fe-qa .variations td,
.fe-qa .variations th {
  background: transparent !important;
}

.fe-qa .variations td {
  padding: 8px 0 !important;
}

.fe-qa .variations label {
  font-weight: 600;
}

/* Make selects cleaner */
.fe-qa select,
.fe-qa .variations select {
  border: 1px solid rgba(0,0,0,.10) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  background: #fff !important;
}

/* Nicer borders for variation options (selects + common swatches) */
.fe-qa .variations select,
.fe-qa select {
  border: 1px solid rgba(17, 24, 39, .22) !important;
  background: #fff !important;
}

.fe-qa .variations select:hover,
.fe-qa select:hover {
  border-color: rgba(17, 24, 39, .35) !important;
}

.fe-qa .variations select:focus,
.fe-qa select:focus {
  outline: none !important;
  border-color: #243276 !important;
  box-shadow: 0 0 0 3px rgba(36, 50, 118, .14) !important;
}

/* Common swatch UIs (Rey / variation swatches plugins) */
.fe-qa .variable-items-wrapper .variable-item,
.fe-qa .rey-variableItems .rey-variableItem,
.fe-qa .swatches .swatch {
  border: 1px solid rgba(17, 24, 39, .18) !important;
  border-radius: 12px !important;
  background: #fff !important;
}

.fe-qa .variable-items-wrapper .variable-item:hover,
.fe-qa .rey-variableItems .rey-variableItem:hover,
.fe-qa .swatches .swatch:hover {
  border-color: rgba(17, 24, 39, .32) !important;
}

.fe-qa .variable-items-wrapper .variable-item.selected,
.fe-qa .variable-items-wrapper .variable-item.is-selected,
.fe-qa .rey-variableItems .rey-variableItem.--selected,
.fe-qa .swatches .swatch.selected {
  border-color: #243276 !important;
  box-shadow: 0 0 0 3px rgba(36, 50, 118, .14) !important;
}


/* --- Mobile quickview icon --- */
.fe-qa-qvbtn {
  display: none;
}

@media (max-width: 1024px) {
  .fe-qa-qvbtn {
    display: inline-flex;
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 0;
    background: #000;
    color: #fff;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 10px 26px rgba(0,0,0,.18);
  }

  .fe-qa-qvbtn svg {
    fill: currentColor;
    display: block;
  }
}

/* --- Bottom sheet (mobile quickview) --- */
.fe-qa-sheet {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.40);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.fe-qa-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
}

.fe-qa-sheet__panel {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-height: 88vh;
  overflow: auto;
  transform: translateY(18px);
  transition: transform .18s ease;
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
}

.fe-qa-sheet.is-open .fe-qa-sheet__panel {
  transform: translateY(0);
}

.fe-qa-sheet__loading,
.fe-qa-sheet__error {
  padding: 18px 6px;
  font-size: 14px;
  color: rgba(0,0,0,.65);
}

/* Prevent page scroll while sheet is open */
html.fe-qa-sheet-open,
html.fe-qa-sheet-open body {
  overflow: hidden !important;
}

/* Sheet: reduce outer borders for cleaner look */
.fe-qa-sheet .fe-qa {
  border: 0;
  box-shadow: none;
  border-radius: 16px;
  overflow: hidden;
}


/* --- Loading UI --- */
.fe-qa__loading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 0;
  font-size:13px;
  color: rgba(0,0,0,.60);
}
.fe-qa__spinner{
  width:16px;
  height:16px;
  border-radius:999px;
  border:2px solid rgba(0,0,0,.18);
  border-top-color: rgba(0,0,0,.70);
  animation: feqa-spin .8s linear infinite;
}
@keyframes feqa-spin{to{transform:rotate(360deg);}}
.fe-qa__head--no-title{
  justify-content:flex-end;
  padding:10px 10px 0;
}
.fe-qa--loading .fe-qa__body{padding: 12px;}
.fe-qa--error .fe-qa__body{padding: 12px;}


/* Sheet handle */
.fe-qa-sheet__handle{
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  margin: 8px auto 10px;
}
.fe-qa-sheet__panel .fe-qa{
  border-radius: 16px;
  box-shadow: none;
}
.fe-qa-sheet__panel .fe-qa__head{
  padding-top: 8px;
}
.fe-qa-sheet__panel .fe-qa__body{
  padding: 12px 12px 16px;
}
.fe-qa-sheet__panel .fe-qa .variations td{
  padding: 10px 0 !important;
}
.fe-qa-sheet__panel .fe-qa .variations label{
  font-size: 12px;
  opacity: .85;
}
.fe-qa-sheet__panel .fe-qa .variations select{
  font-size: 14px;
  padding: 12px 12px !important;
  border-radius: 14px !important;
}
.fe-qa-sheet__panel .fe-qa .single_add_to_cart_button,
.fe-qa-sheet__panel .fe-qa__btn{
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
}


.fe-qa.fe-qa--loaded{max-height: 620px;}
.fe-qa.fe-qa--loading{max-height: 148px;}
