/* ==========================================================================
   CATEGORY HERO COMPONENT (ISOLATED NAMESPACE: ch-*)
   ========================================================================== */

section.category-listing-section {
  padding: 80px 0;
}

.ch-banner-box {
  width: 100%;
  min-height: 360px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex !important;
  align-items: stretch !important;
  overflow: hidden;
}

.ch-content-overlay {
  width: 100%;
  min-height: 100%;
  flex: 1 1 auto;
  align-items: flex-end;
  background: linear-gradient(90deg, rgba(253, 248, 243, 0) 0%, rgba(253, 248, 243, 0.35) 30%, rgba(253, 248, 243, 0.88) 60%, rgba(253, 248, 243, 0.98) 100%);
  padding: 40px 48px;
}

.ch-text-wrapper {
  max-width: 480px;
  width: 100%;
}

.ch-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #887258;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.ch-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 600;
  color: #222222;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.ch-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch-description {
  font-family: var(--font-body);
  font-size: 15px;
  color: #555555;
  line-height: 1.6;
}

.ch-btn-wrap {
  margin-top: 8px;
}

.ch-btn {
  display: inline-block;
  background: #222222;
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid #222222;
  transition: all 0.3s ease;
  text-decoration: none !important;
}

.ch-btn:hover {
  background: var(--color-primary, var(--color-primary));
  border-color: var(--color-primary, var(--color-primary));
  box-shadow: 0 4px 14px rgba(183, 121, 22, 0.3);
}

/* Responsive adjustments for Tablet and Mobile */
@media (max-width: 991px) {
  .ch-banner-box {
    min-height: 300px;
  }

  .ch-content-overlay {
    background: linear-gradient(90deg, rgba(253, 248, 243, 0.1) 0%, rgba(253, 248, 243, 0.7) 35%, rgba(253, 248, 243, 0.96) 65%, rgba(253, 248, 243, 0.98) 100%);
    padding: 30px 24px;
  }

  .ch-title {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .ch-banner-box {
    min-height: 280px;
    background-position: center center;
  }

  .ch-content-overlay {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: linear-gradient(180deg, rgba(253, 248, 243, 0.25) 0%, rgba(253, 248, 243, 0.88) 40%, rgba(253, 248, 243, 0.98) 100%);
    padding: 24px 16px !important;
  }

  .ch-text-wrapper {
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .ch-title {
    font-size: 24px;
  }

  .ch-subtitle {
    font-size: 11.5px;
    letter-spacing: 1.5px;
  }

  .ch-description {
    font-size: 13.5px;
    margin-bottom: 16px !important;
  }
}

/* ==========================================================================
   CATEGORY SIDEBAR FILTERS (ISOLATED NAMESPACE: sf-*)
   ========================================================================== */

.sf-wrapper {
  background: #ffffff;
}

@media (min-width: 992px) {
  .sf-wrapper {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding-right: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
  }

  /* Modern Unobtrusive Scrollbar */
  .sf-wrapper::-webkit-scrollbar {
    width: 4px;
  }

  .sf-wrapper::-webkit-scrollbar-track {
    background: transparent;
  }

  .sf-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    transition: background-color 0.2s ease;
  }

  .sf-wrapper:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
  }

  .sf-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: #222222 !important;
  }
}

.sf-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.sf-title {
  font-family: var(--font-body);
  margin: 0;
  color: var(--color-black);
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.sf-group {
  margin-bottom: 20px;
  border-bottom: 1px dashed #C9C9C9;
  padding-bottom: 20px;
}

.sf-group:last-child {
  border-bottom: none;
}

.sf-group-title {
  font-family: var(--font-body);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  padding: 0;
  color: var(--color-black);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.sf-group-title .sf-chevron {
  font-size: 13px;
  color: #888888;
  transition: transform 0.2s ease;
}

.sf-group-title[aria-expanded="true"] .sf-chevron {
  transform: rotate(90deg);
}

.sf-group .collapse {
  display: none;
}

.sf-group .collapse.show {
  display: block;
}

.sf-sizes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.sf-size-box {
  height: 39px;
  padding: 0 8px;
  border: 1px solid #A3A3A3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.sf-size-box:hover,
.sf-size-checkbox:checked+.sf-size-box {
  border-color: #222222;
  background-color: #222222;
  color: #ffffff;
}

.sf-size-checkbox {
  display: none;
}

.sf-checkbox-item {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  cursor: pointer;
  color: var(--color-black);
  font-family: var(--font-body);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.sf-checkbox-item input[type="checkbox"],
.sf-checkbox-item input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: var(--color-primary, var(--color-primary));
  cursor: pointer;
}

.sf-checkbox-count {
  color: var(--color-primary);
  margin-left: 14px;
}

.sf-colors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.sf-color-item {
  position: relative;
  cursor: pointer;
  display: inline-block;
  user-select: none;
}

.sf-color-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.sf-color-dot {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.sf-color-item:hover .sf-color-dot {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.sf-color-check {
  font-size: 11px;
  opacity: 0;
  transform: scale(0.4);
  transition: all 0.2s ease;
}

.sf-color-input:checked+.sf-color-dot {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #111111;
}

.sf-color-input:checked+.sf-color-dot .sf-color-check {
  opacity: 1;
  transform: scale(1);
}

.sf-apply-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 11px 20px;
  border-radius: 6px;
  width: 100%;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

.sf-apply-btn:hover {
  background: var(--color-primary, var(--color-primary));
  color: #ffffff;
}

/* ==========================================================================
   MOBILE FILTER BAR & BOTTOM SHEET OFFCANVAS (ISOLATED NAMESPACE: sf-mobile-*)
   ========================================================================== */

.sf-mobile-simple-bar {
  width: 100%;
}

.sf-simple-filter-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #222222;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.sf-simple-filter-btn:hover,
.sf-simple-filter-btn:active {
  border-color: #222222;
  background: #fafafa;
}

.sf-mobile-badge {
  background: var(--color-primary, var(--color-primary));
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Offcanvas Bottom Sheet Styling for Mobile Filters */
.offcanvas.sf-mobile-offcanvas {
  height: 85vh !important;
  max-height: 85vh !important;
  border-radius: 24px 24px 0 0 !important;
  background: #ffffff !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#mobile-filter-form {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.sf-drag-handle-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  padding-bottom: 4px;
  flex-shrink: 0;
}

.sf-drag-handle {
  width: 40px;
  height: 4px;
  background: #d1d1d6;
  border-radius: 2px;
}

.sf-mobile-offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}

.sf-mobile-offcanvas-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: #111111;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-mobile-clear-btn {
  background: none;
  border: none;
  color: #888888;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.sf-mobile-clear-btn:hover {
  color: #e74c3c;
}

.sf-mobile-offcanvas-body {
  padding: 20px !important;
  padding-bottom: 40px !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

.sf-mobile-sticky-footer {
  position: relative !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  background: #ffffff !important;
  padding: 14px 20px !important;
  border-top: 1px solid #eeeeee !important;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08) !important;
  display: flex !important;
  flex-shrink: 0 !important;
  z-index: 100 !important;
}

.sf-mobile-footer-apply {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 13px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sf-mobile-footer-apply:hover {
  background: var(--color-primary, var(--color-primary));
}

/* ==========================================================================
   DUAL PRICE RANGE SLIDER & CLEAR ALL BUTTON ENHANCEMENTS
   ========================================================================== */

/* Price Range Input Row */
.sf-price-inputs-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sf-price-field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  transition: all 0.2s ease;
}

.sf-price-field:focus-within {
  border-color: #222222;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.08);
}

.sf-price-currency {
  font-size: 13px;
  font-weight: 600;
  color: #718096;
  margin-right: 4px;
  user-select: none;
}

.sf-price-num-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #1a202c;
  padding: 0;
}

.sf-price-num-input::-webkit-outer-spin-button,
.sf-price-num-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sf-price-num-input[type=number] {
  -moz-appearance: textfield;
}

.sf-price-sep {
  font-size: 12px;
  font-weight: 600;
  color: #a0aec0;
  text-transform: lowercase;
}

/* Dual Range Slider Track & Handles */
.sf-dual-slider-wrap {
  position: relative;
  height: 24px;
  margin-top: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.sf-slider-track {
  position: absolute;
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  z-index: 1;
}

.sf-slider-progress {
  position: absolute;
  height: 6px;
  background: #222222;
  border-radius: 3px;
  z-index: 2;
}

.sf-range-input {
  position: absolute;
  width: 100%;
  height: 6px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  margin: 0;
  z-index: 3;
}

.sf-range-input::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #222222;
  pointer-events: auto;
  -webkit-appearance: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.sf-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  background: #222222;
}

.sf-range-input::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #222222;
  pointer-events: auto;
  -moz-appearance: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.sf-range-input::-moz-range-thumb:hover {
  transform: scale(1.18);
  background: #222222;
}

/* Clear All Buttons Styling */
.sf-clear-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: #dc3545;
  background: #fff5f5;
  border: 1px solid #fed7d7;
  padding: 5px 14px;
  border-radius: 20px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.sf-clear-btn:hover {
  background: #dc3545;
  color: #ffffff;
  border-color: #dc3545;
  box-shadow: 0 3px 10px rgba(220, 53, 69, 0.25);
}

.sf-clear-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 10px 16px;
  background: #fff5f5;
  color: #dc3545;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.sf-clear-all-btn:hover {
  background: #dc3545;
  color: #ffffff;
  border-color: #dc3545;
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}

.sf-mobile-footer-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: #fff5f5;
  color: #dc3545;
  border: 1px solid #fed7d7;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sf-mobile-footer-clear:hover {
  background: #dc3545;
  color: #ffffff;
  border-color: #dc3545;
}

/* ==========================================================================
   GRAB DEALS STYLES (ISOLATED NAMESPACE: gd-*)
   ========================================================================== */

.gd-card {
  background: #ffffff;
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.gd-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background-color: #f9f9f9;
}

.gd-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gd-card:hover .gd-card-img {
  transform: scale(1.05);
}

.gd-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #000000;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}

.gd-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.gd-card-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: #222222;
  margin-bottom: 10px;
  line-height: 1.3;
}

.gd-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.gd-offer-price {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary, #B77916);
}

.gd-original-price {
  font-family: var(--font-body);
  font-size: 15px;
  color: #999999;
  text-decoration: line-through;
}

.gd-btn {
  background: #000000;
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  display: inline-block;
  margin-top: auto;
  border: none;
}

.gd-btn:hover {
  background: var(--color-primary, #B77916);
  color: #ffffff !important;
}

.gd-deal-item {
  background: #FAF6F0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #EAE2D8;
}

.gd-deal-item-img {
  width: 120px;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}