/* ===================== GRAVIX FASHION — Mobile bottom nav + filter sheet ===================== */
/* Mobile only — hidden entirely above 768px, never affects desktop nav. */

.gx-mnav,
.gx-filter-sheet,
.gx-filter-overlay{ display: none; }

@media (max-width: 768px){

  .gx-mnav{
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9990;
    background: #FFFFFF;
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.08);
    height: calc(78px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 14px 14px 0 0;
  }

  .gx-mnav-item{
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 2px 0;
    position: relative;
    transition: transform .22s cubic-bezier(.34,1.2,.64,1);
    -webkit-tap-highlight-color: transparent;
  }
  .gx-mnav-item:active{ transform: scale(0.95); }

  .gx-mnav-icon{
    position: relative;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    color: #666666;
    transition: transform .25s cubic-bezier(.34,1.2,.64,1), color .25s ease;
  }
  .gx-mnav-icon svg{ width: 100%; height: 100%; }

  .gx-mnav-label{
    font-family: var(--gx-body, sans-serif);
    font-size: 11px;
    font-weight: 500;
    color: #666666;
    letter-spacing: 0.01em;
    transition: color .25s ease;
    white-space: nowrap;
  }

  /* Active state: icon lifts + scales slightly, text turns accent gold,
     small indicator bar appears beneath — subtle, no bouncing/flashing. */
  .gx-mnav-item.is-active .gx-mnav-icon{
    color: var(--gx-accent, #B08D57);
    transform: translateY(-3px) scale(1.08);
  }
  .gx-mnav-item.is-active .gx-mnav-label{
    color: var(--gx-accent, #B08D57);
    font-weight: 700;
  }
  .gx-mnav-item.is-active::after{
    content: '';
    position: absolute;
    top: 4px;
    width: 18px; height: 2px;
    background: var(--gx-accent, #B08D57);
    border-radius: 2px;
    animation: gx-mnav-indicator-in .25s ease;
  }
  @keyframes gx-mnav-indicator-in{
    from{ width: 0; opacity: 0; }
    to{ width: 18px; opacity: 1; }
  }

  .gx-mnav-badge{
    position: absolute;
    top: -4px; right: -8px;
    min-width: 17px; height: 17px;
    padding: 0 4px;
    background: var(--gx-accent, #B08D57);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    border-radius: 999px;
    box-shadow: 0 0 0 2px #fff;
  }
  .gx-mnav-badge:empty,
  .gx-mnav-badge .gx-cart-count:empty{ display: none; }
  .gx-cart-count-badge{ position: absolute; top: -4px; right: -8px; }
  .gx-cart-count-badge .gx-cart-count{
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 17px; height: 17px; padding: 0 4px;
    background: var(--gx-accent, #B08D57); color: #fff;
    font-size: 10px; font-weight: 700; border-radius: 999px;
    box-shadow: 0 0 0 2px #fff;
  }

  /* ---------- Filter bottom sheet ---------- */
  .gx-filter-overlay{
    display: block;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 9995;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .gx-filter-overlay.is-open{ opacity: 1; pointer-events: auto; }

  .gx-filter-sheet{
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9996;
    background: #fff;
    border-radius: 18px 18px 0 0;
    max-height: 85vh;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.32,.72,0,1);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .gx-filter-sheet.is-open{ transform: translateY(0); }

  .gx-filter-handle{
    width: 40px; height: 4px; border-radius: 4px;
    background: rgba(0,0,0,0.15);
    margin: 12px auto 4px;
    flex-shrink: 0;
  }

  .gx-filter-header{
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 20px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
  }
  .gx-filter-header h2{
    font-family: var(--gx-heading, sans-serif);
    font-weight: 800; font-size: 17px; letter-spacing: 0.02em; text-transform: uppercase;
    color: #111111; margin: 0;
  }
  .gx-filter-header button{
    background: none; border: none; font-size: 26px; line-height: 1; color: #666;
    cursor: pointer; padding: 0 4px;
  }

  .gx-filter-body{
    overflow-y: auto;
    padding: 20px;
    flex: 1 1 auto;
  }

  .gx-filter-group{ margin-bottom: 28px; }
  .gx-filter-group h3{
    font-family: var(--gx-body, sans-serif);
    font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
    color: #111111; margin: 0 0 14px;
  }

  .gx-filter-options{ display: flex; flex-direction: column; gap: 12px; }
  .gx-filter-radio{
    display: flex; align-items: center; gap: 10px;
    font-family: var(--gx-body, sans-serif); font-size: 14px; color: #333;
    cursor: pointer;
  }
  .gx-filter-radio input{ width: 18px; height: 18px; accent-color: var(--gx-accent, #B08D57); }

  .gx-filter-price-row{ display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .gx-filter-price-row input[type="number"]{
    flex: 1 1 0; border: 1px solid rgba(0,0,0,0.12); padding: 11px 12px;
    font-family: var(--gx-body, sans-serif); font-size: 14px; border-radius: 8px;
  }
  .gx-filter-price-row input:focus{ outline: none; border-color: var(--gx-accent, #B08D57); }
  #gx-price-slider{ width: 100%; accent-color: var(--gx-accent, #B08D57); }

  .gx-filter-size-grid{
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  }
  .gx-filter-size-btn{ position: relative; cursor: pointer; }
  .gx-filter-size-btn input{ position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
  .gx-filter-size-btn span{
    display: flex; align-items: center; justify-content: center;
    height: 42px; border: 1px solid rgba(0,0,0,0.12); border-radius: 8px;
    font-family: var(--gx-body, sans-serif); font-weight: 600; font-size: 13px; color: #333;
    transition: all .18s ease;
  }
  .gx-filter-size-btn input:checked + span{
    background: var(--gx-accent, #B08D57); border-color: var(--gx-accent, #B08D57); color: #fff;
  }

  .gx-filter-footer{
    display: flex; gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
  }
  .gx-filter-footer button{
    flex: 1 1 0;
    height: 48px;
    font-family: var(--gx-body, sans-serif);
    font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
  }
  .gx-filter-footer button:active{ transform: scale(0.97); }
  #gx-filter-clear{ background: #fff; border: 1px solid rgba(0,0,0,0.15); color: #111111; }
  #gx-filter-apply{ background: #111111; border: 1px solid #111111; color: #fff; }

  /* Prevent the fixed bottom nav from covering page content/sticky buttons */
  body{ padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  body.single-product .woocommerce-variation-add-to-cart,
  body.single-product form.cart{ margin-bottom: 16px; }

  body.gx-filter-open{ overflow: hidden; }
}


/* ---------- Wishlist page ---------- */
.gx-wishlist-page{ max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
.gx-wishlist-hero{ text-align: center; margin-bottom: 32px; }
.gx-wishlist-hero h1{ font-family: var(--gx-heading, sans-serif); font-weight: 900; font-size: 28px; text-transform: uppercase; color: var(--gx-ink, #1A1A1A); margin: 0 0 8px; }
.gx-wishlist-hero p{ font-family: var(--gx-body, sans-serif); color: #666; margin: 0; }
.gx-wishlist-empty{ text-align: center; padding: 40px 0; }
.gx-wishlist-shop-btn{ display: inline-block; margin-top: 16px; padding: 13px 28px; background: var(--gx-black, #0A0A0A); color: #fff; text-decoration: none; font-family: var(--gx-body, sans-serif); font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.gx-wishlist-grid{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 480px){ .gx-wishlist-grid{ grid-template-columns: 1fr 1fr; } }

/* Remove default link underlines on title/price/button within wishlist cards */
.gx-wishlist-grid li.product a,
.gx-wishlist-grid li.product a:hover,
.gx-wishlist-grid .woocommerce-loop-product__title,
.gx-wishlist-grid .price,
.gx-wishlist-grid .price *,
.gx-wishlist-grid .button{
  text-decoration: none !important;
}

/* View Product + Remove side by side */
.gx-wishlist-grid li.product{
  display: flex;
  flex-direction: column;
}
.gx-wishlist-grid .gx-wishlist-actions-row{
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
}
.gx-wishlist-grid .button{
  margin: 6px 0 0 !important;
  width: 100% !important;
  flex: 1 1 0;
}
.gx-wishlist-grid .gx-wishlist-remove-btn{
  flex: 1 1 0;
  width: auto;
  margin: 6px 0 0 !important;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid var(--gx-black, #0A0A0A);
  color: var(--gx-black, #0A0A0A);
}
.gx-wishlist-grid .gx-wishlist-remove-btn:hover{
  background: var(--gx-black, #0A0A0A);
  border-color: var(--gx-black, #0A0A0A);
  color: #fff;
}
