
/* ====================== */
/* === LUXURY FILTERS === */
/* ====================== */


/* Filter Header */
.luxury-header {
  margin-bottom: 30px;
}

.luxury-header h3 {
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 15px;
  font-weight: 400;
}

.divider {
  height: 1px;
  margin: 20px 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

/* Filter Sections */
.filter-section {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.animated-separator {
    height: 2px;
    background: linear-gradient(90deg, #ff8a00, #e52e71, #ff8a00);
    background-size: 200% 100%;
    border: none;
    margin: 2rem 0;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.filter-open .shop-container,
body.filter-open .shop-hero,
body.filter-open .product-grid {
  transform: none !important;
}

.filter-section ul, 
.filter-section .luxury-price-range, 
.filter-section .luxury-checkbox-group, 
.filter-section .luxury-chip-group {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.filter-section .filter-header i {
  transition: transform 0.3s ease;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  cursor: pointer;
}

.filter-title {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000000;
}

.filter-header i {
  font-size: 0.7rem;
  color: #000000;
  transition: transform 0.3s ease;
}

/* Category List */
.luxury-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.luxury-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
  position: relative;
  color: #000000;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.luxury-list li:hover {
  color: #8E1616;
}

.luxury-list li.active {
  color: #8E1616;
}

.selection-indicator {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.luxury-list li.active .selection-indicator {
  background-color: #fff;
  border-color: #fff;
}

/* Price Range Filter */
.luxury-price-range {
   padding-top: 15px;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.price-input-group {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 4px;
  flex: 1;
}

.price-input-group span {
  margin-right: 5px;
  color: #000;
}

.price-input-group input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
}

.price-separator {
  color: #000;
  font-weight: bold;
}

/* Range Slider Styles */
.price-slider-container {
  position: relative;
  height: 4px;
  margin: 30px 0;
}

.price-display {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: #000000;
  font-size: 0.9rem;
}

.slider-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: #ddd;
  border-radius: 2px;
  z-index: 1;
}

.range-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  pointer-events: none;
  z-index: 2;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
}

.range-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
}

/* Hide number input arrows */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}


/* Checkbox Filters */
.luxury-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.luxury-checkbox {
  display: flex;
  align-items: center;
  position: relative;
  padding: 10px 0 20px 30px;
  cursor: pointer;
  color: #000000;
  font-size: 0.9rem;
  user-select: none;
  transition: color 0.3s ease;
}

.luxury-checkbox:hover {
  color: #8E1616;
}

.luxury-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  left: 0;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.luxury-checkbox:hover .checkmark {
  border-color: rgba(255,255,255,0.6);
}

.luxury-checkbox input:checked ~ .checkmark {
  background-color: #fff;
  border-color: #000000;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.luxury-checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Collection Chips */
.luxury-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 15px;
  font-size: 0.8rem;
  color: #000000;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.chip:hover {
  color: #8E1616;
  background: rgba(255,255,255,0.1);
}

.chip.active {
  background: #fff;
  color: #000;
  border-color: #000000;
}

/* Filter Actions */
.filter-actions {
  display: flex;
  flex-wrap:wrap;              /* may drop to 2 rows if space is tight      */
  gap:12px;                    /* a hair narrower than 15 px = +3 px buffer */
  padding:1rem 1.25rem;        
}

.luxury-btn {
  padding: 12px 25px;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.7rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid rgba(255,255,255,0.50);
}

.apply-btn {
  background: #fff;
  color: #000;
}

.reset-btn {
  background: #000000;
}

.apply-btn,
.reset-btn{
  flex:1 1 0;                  /* BOTH may shrink **and** grow evenly       */
  min-width:0;
  font-size: 10px;                 /* allow them to become narrower than text   */
  padding: 6px 12px;
}

.hover-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: all 0.6s ease;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.luxury-btn:hover .hover-effect {
  left: 100%;
}


.apply-btn:active{
  transform: scale(.97); 
}

.reset-btn:hover {
  position: relative;
  overflow: hidden;
  padding: 6px 12px;
  background-color: #ffff;
  color: #000;
  border-style: ridge;
  border-color: #000;
  cursor: pointer;
}
.reset-btn:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #000 20%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform .5s, opacity 1s;
}

.reset-btn:active:after {
  transform: scale(0, 0);
  opacity: 0.3;
  transition: 0s;
}



/* optional: sticky Apply / Reset at the bottom */
.filter-actions{
  position: sticky;
  bottom: 0;
  z-index: 1;
  background:#fff;
  padding: 1rem 1.5rem;
  box-shadow: 0 -2px 6px rgba(0,0,0,.04);
}



/* ======================
   FILTER COMPONENTS 
   ====================== */



.filter-toggle i {
  margin-right: 0.5rem;
  font-size: 1rem;
}



/* ─── Luxe Close Button ───────────────────────────────────────────── */
.filter-close{
  /* sizing */
  --size : 30px;                /* tweak once, cascades everywhere   */
  width  : var(--size);
  height : var(--size);

  /* positioning (same as before) */
  position:absolute;
  top:1rem;
  right:1rem;
  z-index:45;

  /* glassy capsule look */
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  border:1px solid hsl(0 0% 100% / 0.08);
  background:hsla(0,0%,100%,.04);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);          /* Safari ≤16 */

  /* icon colour & size */
  color:#000;
  font-size:1.05rem;            /* Font Awesome "times" stays crisp  */

  cursor:pointer;
  /* elegant motion curve */
  transition:
    transform      .55s cubic-bezier(.19,1,.22,1),
    box-shadow     .35s ease,
    background     .35s ease,
    border-color   .35s ease;
  box-shadow:
    0  2px  4px rgba(0,0,0,.10),
    0  8px 18px rgba(0,0,0,.08);
}

/* subtle light streak on the glass */
.filter-close::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:50%;
  background:linear-gradient(135deg,
              rgba(255,255,255,.28) 0%,
              rgba(255,255,255,0) 60%);
  opacity:.5;
  mix-blend-mode:overlay;
  pointer-events:none;
  transition:opacity .35s ease;
}

/* spin the ✕ when hovered / tapped */
.filter-close i{ transition:transform .55s cubic-bezier(.19,1,.22,1); }

.filter-close:hover{
  background:hsla(0,0%,100%,.08);
  border-color:hsl(0 0% 100% / 0.22);
  box-shadow:
    0  4px 10px rgba(0,0,0,.12),
    0 15px 30px rgba(0,0,0,.12);
}
.filter-close:hover i{ transform:rotate(90deg); }

/* tactile press effect */
.filter-close:active{ transform:scale(.93); }


/* ─── Overlay ─── */
.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease-in-out;
  z-index: 35;
}

.filter-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Filter Footer (Sticky Buttons) ─── */
.filter-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 1rem 0 0.7rem;
  border-top: 1px solid var(--hm-border);
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

/* ======================
   MOBILE RESPONSIVE STYLES
   ====================== */


@media (max-width: 768px){
  .shop-container{
    flex-direction: column;
  }

  .products-section{
    padding-left: 0;
    padding-right: 0;      
    width: 100%;
  }


  .products-header{
    justify-content: center;
    width: 100%;
  }


}

/* ─── Desktop layout (inline sidebar) ─────────────────────────────── */
@media (min-width: 901px){


  .filter-header{
    padding-right: 0.25rem;        /* ≈ 4 px */
  }
  
  .shop-container{
    display:flex;
    align-items:flex-start;
    gap:2rem;          /* 40 px – tweak to taste */
  }

  /* 2) Hide the off‑canvas close button in desktop view */
  .filter-close{ display:none; }

  /* 3) Make the sidebar sticky and scrollable **inside itself** */
  .filter-sidebar{
    position:sticky;
    --offset: 80px;              /* = header height + desired gap */
    top: var(--offset);

    width:250px;                 /* fixed width */
    max-height: calc(120vh - var(--offset));  /* 24 px ≈ top+bottom padding */
    overflow-y:auto;
    padding-inline: 1.5rem;

    align-self:flex-start;       /* prevents flexbox stretch */
    box-shadow:none;             /* desktop stays flat */
    transform:none;              /* reset any mobile translateX */
  }
  
  .filter-toggle{ display:none !important; }   /* hide button on wide view */
}

/* ─── Mobile off‑canvas behaviour ─────────────────────────────────── */
@media (max-width: 900px){
  .filter-sidebar{
    position: fixed;
    top:0;
    bottom:0;
    right:0;
    width: 88%;
    height: 100dvh;   /* Chrome/Safari ≥116 */
    height: 100svh;   /* spec alias        */
    height: 100vh;    /* fallback          */
    max-width: 360px;
    overflow-y:auto;
    background:#fff;
    box-shadow: none;
    transform: translateX(100%);     /* hidden off‑screen */
    transition: transform .35s ease-in-out;
    z-index: 1099;

    padding-top:3.5rem;
    padding-bottom:4.5rem;
    padding-left:2rem;
    padding-right:2rem;
  }

  body.filter-open {
  overflow: hidden;
  box-shadow: -4px 0 16px rgba(0,0,0,.15);
  position: fixed;   /* stops iOS jumpiness */
  top: 0;              /* ✅ Will be updated by JS */
  left: 0;
  width: 100%;
}
  .filter-sidebar.open{
    transform: translateX(0);        /* slides in */
  }




  /* dark overlay */
  .filter-overlay{
    position:fixed; inset:0;
    background:rgba(0,0,0,.48);
    opacity:0; pointer-events:none;
    transition:opacity .35s ease-in-out;
    z-index:1098;
  }
  .filter-overlay.show{
    opacity:1;pointer-events:auto;
  }
}

/* === LUXURY SCROLLER === */
/* ====================== */

.filter-sidebar::-webkit-scrollbar {
  width: 6px; /* More elegant slim profile */
  height: 6px; /* For horizontal scrolling if needed */
}

.filter-sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
  margin: 8px 0;
}

.filter-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8E1616 0%, #000000 100%);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    0 1px 1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #a51a1a 0%, #1a1a1a 100%);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.2),
    0 2px 3px rgba(0, 0, 0, 0.15);
}

.filter-sidebar::-webkit-scrollbar-thumb:active {
  background: linear-gradient(135deg, #6e1212 0%, #000000 100%);
}

/* For Firefox */
.filter-sidebar {
  scrollbar-width: thin;
  scrollbar-color: #8E1616 rgba(0, 0, 0, 0.05);
}

/* Smooth inertial scrolling for iOS devices */
.filter-sidebar {
  -webkit-overflow-scrolling: touch;
}

/* Optional: Add a subtle glow effect when scrolling */
@keyframes scroll-glow {
  0% { box-shadow: 0 0 0 rgba(142, 22, 22, 0); }
  50% { box-shadow: 0 0 8px rgba(142, 22, 22, 0.3); }
  100% { box-shadow: 0 0 0 rgba(142, 22, 22, 0); }
}

.filter-sidebar.scrolling {
  animation: scroll-glow 1.5s ease;
} 

