/* ==========================================================================
   Wafa Naqab Shop - Product Listing Page Styles
   - Left Filter Sidebar & Top-Aligned Product Grid
   - Theme-Consistent Typography & Spacing
   - Clean Category Navigation (No Bold Hover)
   - Compact Price, Size, Color & Availability Filters
   - Solid Full-Width Reset Button (No Split Artifacts)
   - Mobile Offcanvas Filter Drawer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page Layout & Top Spacing
   -------------------------------------------------------------------------- */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.all-product {
  padding-top: 32px;
  padding-bottom: 60px;
}

/* --------------------------------------------------------------------------
   2. Two-Column Layout & Top-Alignment (Fixes Product Grid Drop)
   -------------------------------------------------------------------------- */
/* Override .all-product .container .row { align-items: center; } from styles.css */
.all-product .container .shop-layout-row,
.shop-layout-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 0;
}

.shop-sidebar-col {
  align-self: flex-start;
  margin-top: 0;
  padding-top: 0;
  padding-left: 15px;
  padding-right: 15px;
  overflow: visible;
}

.shop-products-col {
  align-self: flex-start;
  margin-top: 0;
  padding-top: 0;
  padding-left: 15px;
  padding-right: 15px;
}

.shop-products-col #gridLayout {
  margin-top: 0;
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   3. Left Filter Sidebar Container
   -------------------------------------------------------------------------- */
.shop-filter-sidebar {
  position: relative;
  transform: none;
  display: block;
  width: 100%;
  padding: 0 20px 0 0;
  margin: 0;
  background: transparent;
  overflow: visible;
}

@media (min-width: 992px) {
  .shop-filter-sidebar {
    border-right: 1px solid var(--line, #ebebeb);
    padding-right: 28px;
  }
}

.shop-filter-sidebar .widget-facet {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line, #ebebeb);
  padding-left: 0;
  margin-left: 0;
  overflow: visible;
}

.shop-filter-sidebar .widget-facet:last-child,
.shop-filter-sidebar .facet-reset {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.shop-filter-sidebar .facet-title,
.widget-facet .facet-title {
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: var(--main, #181818);
  margin-bottom: 12px;
  margin-left: 0;
  padding-left: 0;
  letter-spacing: 0.2px;
  text-transform: capitalize;
  white-space: normal;
}

/* --------------------------------------------------------------------------
   3.1 Main Category Dropdown
   -------------------------------------------------------------------------- */
.facet-main-category .main-category-form {
  margin: 0;
  padding: 0;
  width: 100%;
}

.facet-main-category .select-category-wrapper {
  position: relative;
  width: 100%;
}

.facet-main-category .main-category-select,
.canvas-filter .facet-main-category .main-category-select {
  width: 100%;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--main, #181818);
  border: 1px solid var(--line, #d1d5db);
  border-radius: 4px;
  padding: 8px 30px 8px 12px;
  background-color: #ffffff;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.4;
  height: 40px;
}

.facet-main-category .main-category-select:focus,
.canvas-filter .facet-main-category .main-category-select:focus {
  border-color: var(--primary, #e43131);
  box-shadow: 0 0 0 2px rgba(228, 49, 49, 0.1);
}

/* --------------------------------------------------------------------------
   4. Product Categories (Clean Spacing & Hover Accent WITHOUT Bold)
   -------------------------------------------------------------------------- */
.facet-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.facet-categories-list .categories-item {
  margin: 0;
  padding: 0;
  display: block;
}

.facet-categories-list .facet-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: var(--secondary, #4d4e4f);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.2s ease;
}

/* HOVER: strictly change color to theme red, font-weight UNCHANGED */
.facet-categories-list .facet-cat-link:hover {
  color: var(--primary, #e43131);
  font-weight: 400;
  text-decoration: none;
}

.facet-categories-list .facet-cat-link:hover .cat-name {
  color: var(--primary, #e43131);
}

/* ACTIVE: theme red color, subtle normal font-weight */
.facet-categories-list .categories-item.active .facet-cat-link {
  color: var(--primary, #e43131);
  font-weight: 500;
}

.facet-categories-list .categories-item.active .cat-name {
  color: var(--primary, #e43131);
}

.facet-categories-list .cat-count {
  font-size: 12px;
  font-weight: 400;
  color: var(--secondary-2, #a0a0a0);
  margin-left: auto;
  padding-left: 8px;
  flex-shrink: 0;
}

.facet-categories-list .categories-item.active .cat-count {
  color: var(--primary, #e43131);
}

/* More / Less Toggle Button */
.facet-subcat-hidden {
  display: none;
}

.facet-more-wrap {
  margin-top: 6px;
}

.btn-facet-more {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: var(--main, #181818);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.btn-facet-more:hover {
  color: var(--primary, #e43131);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   5. Compact Price Range Slider & Inputs
   -------------------------------------------------------------------------- */
.widget-facet.facet-price .price-val-range {
  margin: 14px 4px 16px 4px;
}

.widget-facet.facet-price .box-price-product {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.widget-facet.facet-price .title-price {
  font-size: 11px;
  line-height: 16px;
  font-weight: 400;
  color: var(--secondary-2, #717171);
  margin-bottom: 3px;
  display: block;
  text-transform: capitalize;
}

.widget-facet.facet-price .price-val {
  padding: 4px 24px 4px 8px;
  font-weight: 500;
  font-size: 13px;
  line-height: 20px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--line, #d1d5db);
  background-color: #ffffff;
  position: relative;
  display: flex;
  align-items: center;
  transition: border-color 0.2s ease;
}

.widget-facet.facet-price .price-val:focus-within {
  border-color: var(--main, #181818);
}

.widget-facet.facet-price .price-val::after {
  content: attr(data-currency);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  font-weight: 400;
  color: var(--secondary, #4d4e4f);
  font-size: 13px;
  pointer-events: none;
}

.widget-facet.facet-price .price-val-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--main, #181818);
  padding: 0;
  appearance: textfield;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
}

.widget-facet.facet-price .price-val-input::-webkit-outer-spin-button,
.widget-facet.facet-price .price-val-input::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

/* noUiSlider Compact Styling */
.noUi-target {
  background: #e5e5e5;
  border-radius: 3px;
  border: none;
  box-shadow: none;
  height: 3px;
}

.noUi-connect {
  background: var(--main, #181818);
}

.noUi-horizontal .noUi-handle {
  width: 14px;
  height: 14px;
  right: -7px;
  top: -5.5px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--main, #181818);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.noUi-horizontal .noUi-handle:before,
.noUi-horizontal .noUi-handle:after {
  display: none;
}

.noUi-horizontal .noUi-handle:hover,
.noUi-horizontal .noUi-handle:active {
  transform: scale(1.15);
  background-color: var(--main, #181818);
}

/* --------------------------------------------------------------------------
   6. Compact Size Filter Chips
   -------------------------------------------------------------------------- */
.widget-facet .facet-size-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.widget-facet .facet-size-box .size-item {
  border-radius: 4px;
  border: 1px solid var(--line, #d1d5db);
  color: var(--main, #181818);
  background: #ffffff;
  font-size: 12px;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
}

.widget-facet .facet-size-box .size-item.free-size {
  width: auto;
  min-width: 72px;
  padding: 0 10px;
  text-transform: capitalize;
}

.widget-facet .facet-size-box .size-item:hover {
  border-color: var(--primary, #e43131);
  color: var(--primary, #e43131);
  font-weight: 400;
}

.widget-facet .facet-size-box .size-item.active {
  border-color: var(--primary, #e43131);
  background-color: var(--primary, #e43131);
  color: #ffffff;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   7. Compact Color Filter Chips
   -------------------------------------------------------------------------- */
.widget-facet .facet-color-box {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.widget-facet .facet-color-box .color-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 16px;
  padding: 3px 10px 3px 6px;
  text-transform: capitalize;
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--main, #181818);
  background-color: #ffffff;
  transition: all 0.2s ease;
  user-select: none;
}

.widget-facet .facet-color-box .color-item .color {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.widget-facet .facet-color-box .color-item:hover {
  border-color: var(--primary, #e43131);
  color: var(--primary, #e43131);
  font-weight: 400;
}

.widget-facet .facet-color-box .color-item.active {
  border-color: var(--primary, #e43131);
  background-color: #fef2f2;
  color: var(--primary, #e43131);
  font-weight: 500;
  box-shadow: 0 0 0 1px var(--primary, #e43131);
}

/* --------------------------------------------------------------------------
   8. Availability Filter
   -------------------------------------------------------------------------- */
.widget-facet.facet-fieldset .fieldset-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.widget-facet.facet-fieldset .fieldset-item:last-child {
  margin-bottom: 0;
}

.widget-facet.facet-fieldset .fieldset-item label {
  cursor: pointer;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  line-height: 18px;
  color: var(--main, #181818);
  font-weight: 400;
}

.widget-facet.facet-fieldset .fieldset-item .avail-count {
  color: var(--secondary-2, #a0a0a0);
  font-size: 12px;
  font-weight: 400;
}

/* Custom Checkbox */
.tf-check {
  position: relative;
  background: #ffffff;
  cursor: pointer;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 3px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  margin: 0;
}

.tf-check:checked {
  background-color: var(--primary, #e43131);
  border-color: var(--primary, #e43131);
}

.tf-check:checked::after {
  content: "";
  display: block;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   9. Solid Reset Filters Button (No Split / Half-White Artifacts)
   -------------------------------------------------------------------------- */
.btn-reset-filters {
  display: block;
  width: 100%;
  height: 40px;
  line-height: 38px;
  text-align: center;
  background-color: var(--main, #181818);
  color: #ffffff;
  border: 1px solid var(--main, #181818);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 16px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.btn-reset-filters:hover {
  background-color: var(--primary, #e43131);
  border-color: var(--primary, #e43131);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. Product Listing Toolbar (.tf-shop-control)
   -------------------------------------------------------------------------- */
.tf-shop-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line, #ebebeb);
}

/* Left: Filters toggle button & Shop sale items only */
.tf-shop-control .tf-control-filter {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.tf-shop-control .tf-btn-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 4px;
  background-color: #ffffff;
  color: var(--main, #181818);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.tf-shop-control .tf-btn-filter .icon {
  font-size: 15px;
}

.tf-shop-control .tf-btn-filter:hover,
.tf-shop-control .tf-btn-filter.active {
  border-color: var(--primary, #e43131);
  color: var(--primary, #e43131);
  background-color: #fff9f9;
}

/* Explicit device visibility for filter buttons: Desktop toggle vs Mobile offcanvas trigger */
.tf-shop-control .tf-btn-filter-desktop {
  display: inline-flex;
}

.tf-shop-control .tf-btn-filter-mobile {
  display: none;
}

@media (max-width: 767.98px) {
  .tf-shop-control .tf-btn-filter-desktop {
    display: none;
  }

  .tf-shop-control .tf-btn-filter-mobile {
    display: inline-flex;
  }
}

/* Sale toggle: strictly NO checkbox square, ONLY thin subtle light-grey circle ◯ */
.tf-shop-control .shop-sale-toggle {
  display: inline-flex;
  align-items: center;
}

.tf-shop-control .shop-sale-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--main, #181818);
  cursor: pointer;
  user-select: none;
  margin: 0;
  font-weight: 400;
}

/* Strictly hide native checkbox square */
.shop-sale-checkbox-hidden {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  margin: 0;
  padding: 0;
}

/* Subtle circle icon ◯ */
.sale-circle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.sale-circle-icon .circle-ring {
  stroke: #c4c4c4;
  stroke-width: 1.2;
  transition: stroke 0.2s ease;
}

.sale-circle-icon .circle-check {
  opacity: 0;
  stroke: #181818;
  transition: opacity 0.2s ease;
}

.shop-sale-checkbox-hidden:checked+.sale-circle-icon .circle-ring {
  stroke: #181818;
}

.shop-sale-checkbox-hidden:checked+.sale-circle-icon .circle-check {
  opacity: 1;
}

.tf-shop-control .sale-text {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--main, #181818);
  text-decoration: none;
}

/* Center: 1-col, 2-col, 3-col, 4-col reference layout switch icons */
.tf-shop-control .tf-control-layout {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Minimal layout icon buttons: NO backgrounds, NO borders, light-grey inactive, dark active */
.tf-shop-control .tf-view-layout-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 20px;
  border: none;
  background: transparent;
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-shadow: none;
  outline: none;
  border-radius: 0;
}

.tf-shop-control .tf-view-layout-switch .item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tf-shop-control .tf-view-layout-switch svg {
  display: block;
  height: 20px;
  width: auto;
}

/* Inactive: thin light-grey stroke, transparent fill */
.tf-shop-control .tf-control-layout .tf-view-layout-switch svg circle,
.tf-shop-control .tf-control-layout .tf-view-layout-switch svg rect {
  stroke: #181818;
  fill: transparent;
  stroke-width: 1px;
  transition: stroke 0.2s ease, fill 0.2s ease;
}

/* Hover: dark/black stroke */
.tf-shop-control .tf-control-layout .tf-view-layout-switch:hover svg circle,
.tf-shop-control .tf-control-layout .tf-view-layout-switch:hover svg rect {
  stroke: #181818;
}

/* Active / Selected: solid dark/black stroke & fill */
.tf-shop-control .tf-control-layout .tf-view-layout-switch.active svg circle,
.tf-shop-control .tf-control-layout .tf-view-layout-switch.active svg rect {
  stroke: #181818;
  fill: #181818;
}

/* Right: Sort by dropdown */
.tf-shop-control .tf-control-sorting {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tf-shop-control .sort-by-label {
  font-size: 13.5px;
  color: var(--secondary, #717171);
  white-space: nowrap;
  margin: 0;
  font-weight: 400;
}

.tf-shop-control .sort-by-select {
  font-size: 13px;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 4px;
  padding: 6px 28px 6px 12px;
  background-color: #ffffff;
  color: var(--main, #181818);
  cursor: pointer;
  outline: none;
  min-width: 140px;
  height: 34px;
}

.tf-shop-control .sort-by-select:focus {
  border-color: var(--primary, #e43131);
  box-shadow: 0 0 0 2px rgba(228, 49, 49, 0.1);
}

/* --------------------------------------------------------------------------
   10.1 Desktop Sidebar Collapsed State
   -------------------------------------------------------------------------- */
.shop-layout-row.sidebar-collapsed .shop-sidebar-col {
  display: none !important;
}

.shop-layout-row.sidebar-collapsed .shop-products-col {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* --------------------------------------------------------------------------
   10.2 Responsive Grid Views (4, 3, 2 Columns)
   - Standard grid cards: image top, info below
   - Hide 1-column list details in standard grid modes
   -------------------------------------------------------------------------- */
#gridLayout {
  display: grid;
  transition: opacity 0.2s ease;
  margin-top: 0;
}

/* In standard grid views, hide 1-column list-only details */
#gridLayout:not(.tf-col-1) .product-description-snippet,
#gridLayout:not(.tf-col-1) .size-box,
#gridLayout:not(.tf-col-1) .product-sizes-snippet,
#gridLayout:not(.tf-col-1) .list-view-actions {
  display: none;
}

/* 4-COLUMN VIEW */
@media (min-width: 992px) {
  #gridLayout.tf-col-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 16px;
    row-gap: 26px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #gridLayout.tf-col-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
    row-gap: 20px;
  }
}

/* 3-COLUMN VIEW (Default) */
@media (min-width: 992px) {
  #gridLayout.tf-col-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 30px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #gridLayout.tf-col-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 16px;
    row-gap: 24px;
  }
}

/* 2-COLUMN VIEW */
@media (min-width: 768px) {
  #gridLayout.tf-col-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    row-gap: 32px;
  }
}

/* Mobile: 2 Columns for all standard grid modes */
@media (max-width: 767.98px) {

  #gridLayout.tf-col-4,
  #gridLayout.tf-col-3,
  #gridLayout.tf-col-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 12px;
    row-gap: 20px;
  }
}

@media (max-width: 380px) {

  #gridLayout.tf-col-4,
  #gridLayout.tf-col-3,
  #gridLayout.tf-col-2 {
    column-gap: 8px;
    row-gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   10.3 1-COLUMN VIEW (Professional Horizontal List View)
   - IMAGE LEFT (~35%) | DETAILS RIGHT (~65%)
   - Uses exact Wafa Naqab Shop existing product card theme
   - Image strictly controlled (no giant zoom, no stretch, aspect-ratio: 3/4)
   - Clean horizontal row separation with subtle divider
   -------------------------------------------------------------------------- */
#gridLayout.tf-col-1 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#gridLayout.tf-col-1 .card-product {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line, #ebebeb);
  width: 100%;
  background: transparent;
  margin-bottom: 0;
}

#gridLayout.tf-col-1 .card-product:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Image container: ~35%, controlled max-width 270px, 3:4 aspect ratio */
#gridLayout.tf-col-1 .card-product .card-product-wrapper {
  flex: 0 0 35%;
  max-width: 270px;
  min-width: 140px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  height: auto;
  align-self: flex-start;
}

#gridLayout.tf-col-1 .card-product .card-product-wrapper .product-img {
  display: block;
  width: 100%;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #f7f7f7;
}

#gridLayout.tf-col-1 .card-product .card-product-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hide hover overlay buttons on top of image in 1-column list view */
#gridLayout.tf-col-1 .card-product .card-product-wrapper .list-btn-main,
#gridLayout.tf-col-1 .card-product .card-product-wrapper .list-product-btn {
  display: none;
}

/* Details container: ~65% on the right */
#gridLayout.tf-col-1 .card-product .card-product-info {
  flex: 1 1 auto;
  max-width: 65%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  text-align: left;
}

#gridLayout.tf-col-1 .card-product .card-product-info .title {
  font-size: 16px;
  font-weight: 500;
  color: var(--main, #181818);
  margin-bottom: 6px;
  line-height: 1.35;
  text-align: left;
}

#gridLayout.tf-col-1 .card-product .card-product-info .title:hover {
  color: var(--primary, #e43131);
}

#gridLayout.tf-col-1 .card-product .card-product-info .price {
  font-size: 15px;
  font-weight: 600;
  color: var(--main, #181818);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#gridLayout.tf-col-1 .card-product .card-product-info .old-price {
  font-size: 13.5px;
  color: var(--secondary, #717171);
  text-decoration: line-through;
  font-weight: 400;
}

#gridLayout.tf-col-1 .card-product .product-description-snippet {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.5;
  color: var(--secondary, #666666);
  margin-bottom: 10px;
  text-align: left;
}

#gridLayout.tf-col-1 .card-product .variant-wrap-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

#gridLayout.tf-col-1 .card-product .list-color-product {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding: 0;
  list-style: none;
}

/* SIZE BUTTONS: Exactly like reference photo (Circular buttons with black active circle) */
#gridLayout.tf-col-1 .card-product .size-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 0;
}

#gridLayout.tf-col-1 .card-product .size-box .size-item,
#gridLayout.tf-col-1 .card-product .size-box .card-size-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: 1px solid var(--line, #e2e4e8);
  background-color: #ffffff;
  color: var(--main, #181818);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
  line-height: 1;
  user-select: none;
}

#gridLayout.tf-col-1 .card-product .size-box .size-item:hover,
#gridLayout.tf-col-1 .card-product .size-box .card-size-item:hover {
  border-color: #181818;
  color: #181818;
}

/* Active size circle: solid black circle with white text */
#gridLayout.tf-col-1 .card-product .size-box .size-item.active,
#gridLayout.tf-col-1 .card-product .size-box .card-size-item.active {
  background-color: #181818;
  border-color: #181818;
  color: #ffffff;
}

/* Single size available: clean lighter background instead of dark filled active */
#gridLayout.tf-col-1 .card-product .size-box .size-item.is-single-size,
#gridLayout.tf-col-1 .card-product .size-box .card-size-item.is-single-size,
.card-product .size-box .size-item.is-single-size,
.card-product .size-box .card-size-item.is-single-size {
  background-color: #f7f7f7;
  color: #333333;
  border: 1px solid #e0e0e0;
  font-weight: 500;
}

#gridLayout.tf-col-1 .card-product .size-box .size-item.is-single-size:hover,
#gridLayout.tf-col-1 .card-product .size-box .card-size-item.is-single-size:hover,
.card-product .size-box .size-item.is-single-size:hover,
.card-product .size-box .card-size-item.is-single-size:hover {
  background-color: #eeeeee;
  border-color: #cccccc;
  color: #111111;
}

#gridLayout.tf-col-1 .card-product .size-box .size-item.disable,
#gridLayout.tf-col-1 .card-product .size-box .card-size-item.disable {
  color: #b0b0b0;
  background-color: #f7f7f7;
  border-color: #e5e7eb;
  pointer-events: none;
}

/* ACTION BUTTONS ROW: Add To Cart + Wishlist + Quick View */
#gridLayout.tf-col-1 .card-product .list-view-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  width: 100%;
  flex-wrap: nowrap;
}

#gridLayout.tf-col-1 .card-product .list-view-actions .btn-main-product,
#gridLayout.tf-col-1 .card-product .list-view-actions .btn-list-atc {
  white-space: nowrap;
}

#gridLayout.tf-col-1 .card-product .list-view-actions .box-icon,
.card-product .list-product-btn .box-icon {
  white-space: nowrap;
  flex-shrink: 0;
}

#gridLayout.tf-col-1 .card-product .list-view-actions .tooltip,
.card-product .list-product-btn .tooltip {
  white-space: nowrap !important;
}

/* Add To Cart Pill Button */
#gridLayout.tf-col-1 .card-product .list-view-actions .btn-main-product,
#gridLayout.tf-col-1 .card-product .list-view-actions .btn-list-atc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  max-width: 280px;
  height: 44px;
  padding: 0 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 44px;
  background-color: #ffffff;
  color: var(--main, #181818);
  border: 1px solid var(--line, #d1d5db);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}

#gridLayout.tf-col-1 .card-product .list-view-actions .btn-main-product:hover,
#gridLayout.tf-col-1 .card-product .list-view-actions .btn-list-atc:hover {
  background-color: #181818;
  border-color: #181818;
  color: #ffffff;
}

/* Circular Icon Buttons: Wishlist & Quick View (Default State) */
#gridLayout.tf-col-1 .card-product .list-view-actions .box-icon,
.card-product .list-product-btn .box-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: 1px solid var(--line, #d1d5db);
  background-color: #ffffff;
  color: #181818;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  text-decoration: none;
  padding: 0;
  overflow: visible;
}

#gridLayout.tf-col-1 .card-product .list-view-actions .box-icon svg,
.card-product .list-product-btn .box-icon svg {
  width: 20px;
  height: 22px;
  stroke: #181818;
  transition: stroke 0.25s ease, fill 0.25s ease, transform 0.2s ease;
}

#gridLayout.tf-col-1 .card-product .list-view-actions .box-icon svg path,
.card-product .list-product-btn .box-icon svg path,
#gridLayout.tf-col-1 .card-product .list-view-actions .box-icon svg circle,
.card-product .list-product-btn .box-icon svg circle {
  stroke: #181818;
  transition: stroke 0.25s ease, fill 0.25s ease;
}

/* Hover State: Turn solid black circle with white icon (exact match to photo) */
#gridLayout.tf-col-1 .card-product .list-view-actions .box-icon:hover,
.card-product .list-product-btn .box-icon:hover {
  background-color: #181818;
  border-color: #181818;
  color: #ffffff;
}

#gridLayout.tf-col-1 .card-product .list-view-actions .box-icon:hover svg,
.card-product .list-product-btn .box-icon:hover svg {
  stroke: #ffffff;
}

#gridLayout.tf-col-1 .card-product .list-view-actions .box-icon:hover svg path,
.card-product .list-product-btn .box-icon:hover svg path,
#gridLayout.tf-col-1 .card-product .list-view-actions .box-icon svg circle,
.card-product .list-product-btn .box-icon:hover svg circle {
  stroke: #ffffff;
}

/* If Wishlist button is active (already added to wishlist) */


#gridLayout.tf-col-1 .card-product .list-view-actions .btn-wishlist.active svg path,
.card-product .list-product-btn .btn-wishlist.active svg path {
  fill: #e53935;
  stroke: #e53935;
}

#gridLayout.tf-col-1 .card-product .list-view-actions .btn-wishlist.active:hover,
.card-product .list-product-btn .btn-wishlist.active:hover {
  background-color: #181818;
  border-color: #181818;
}

#gridLayout.tf-col-1 .card-product .list-view-actions .btn-wishlist.active:hover svg path,
.card-product .list-product-btn .btn-wishlist.active:hover svg path {
  fill: #ff5252;
  stroke: #ff5252;
}

/* --------------------------------------------------------------------------
   Tooltips:
   - Grid 1 (1-column list view): Tooltip positioned on TOP with downward arrow
   - Grid 2, 3, 4 (Standard card view): Tooltip positioned on LEFT SIDE with right arrow
   -------------------------------------------------------------------------- */

/* 1. GRID 1: Tooltip on TOP */
#gridLayout.tf-col-1 .card-product .list-view-actions .box-icon .tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  top: auto;
  right: auto;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: #181818;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 7px 11px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  display: block;
}

/* Downward arrow pointing to button */
#gridLayout.tf-col-1 .card-product .list-view-actions .box-icon .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #181818 transparent transparent transparent;
  width: 0;
  height: 0;
  display: block;
}

#gridLayout.tf-col-1 .card-product .list-view-actions .box-icon .tooltip::before {
  display: none !important;
}

#gridLayout.tf-col-1 .card-product .list-view-actions .box-icon:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* 2. GRID 2, 3, 4: Tooltip on LEFT SIDE */
#gridLayout:not(.tf-col-1) .card-product .list-product-btn .box-icon .tooltip,
#gridLayout.tf-col-2 .card-product .list-product-btn .box-icon .tooltip,
#gridLayout.tf-col-3 .card-product .list-product-btn .box-icon .tooltip,
#gridLayout.tf-col-4 .card-product .list-product-btn .box-icon .tooltip,
.card-product .card-product-wrapper .list-product-btn .box-icon .tooltip {
  position: absolute;
  top: 50%;
  bottom: auto;
  right: calc(100% + 9px);
  left: auto;
  transform: translateY(-50%) translateX(4px);
  background-color: #181818;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 7px 11px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  display: block;
}

/* Triangular arrow pointing right towards the button */
#gridLayout:not(.tf-col-1) .card-product .list-product-btn .box-icon .tooltip::after,
#gridLayout.tf-col-2 .card-product .list-product-btn .box-icon .tooltip::after,
#gridLayout.tf-col-3 .card-product .list-product-btn .box-icon .tooltip::after,
#gridLayout.tf-col-4 .card-product .list-product-btn .box-icon .tooltip::after,
.card-product .card-product-wrapper .list-product-btn .box-icon .tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  right: auto;
  bottom: auto;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent #181818;
  width: 0;
  height: 0;
  display: block;
}

#gridLayout:not(.tf-col-1) .card-product .list-product-btn .box-icon .tooltip::before,
#gridLayout.tf-col-2 .card-product .list-product-btn .box-icon .tooltip::before,
#gridLayout.tf-col-3 .card-product .list-product-btn .box-icon .tooltip::before,
#gridLayout.tf-col-4 .card-product .list-product-btn .box-icon .tooltip::before,
.card-product .card-product-wrapper .list-product-btn .box-icon .tooltip::before {
  display: none !important;
}

/* Show tooltip on hover with smooth slide to the left */
#gridLayout:not(.tf-col-1) .card-product .list-product-btn .box-icon:hover .tooltip,
#gridLayout.tf-col-2 .card-product .list-product-btn .box-icon:hover .tooltip,
#gridLayout.tf-col-3 .card-product .list-product-btn .box-icon:hover .tooltip,
#gridLayout.tf-col-4 .card-product .list-product-btn .box-icon:hover .tooltip,
.card-product .card-product-wrapper .list-product-btn .box-icon:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Mobile responsive for toolbar and 1-column list view */
@media (max-width: 767.98px) {
  .tf-shop-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 18px;
  }

  .tf-shop-control .tf-control-filter {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }

  .tf-shop-control .tf-btn-filter {
    padding: 6px 12px;
    font-size: 13px;
    height: 34px;
    border-radius: 4px;
  }

  .tf-shop-control .tf-btn-filter-desktop {
    display: none;
  }

  .tf-shop-control .tf-btn-filter-mobile {
    display: inline-flex;
  }

  .tf-shop-control .shop-sale-toggle {
    display: none;
  }

  .tf-shop-control .tf-control-layout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  /* Strictly hide 3-col and 4-col switchers on mobile screens */
  .tf-shop-control .tf-control-layout .sw-layout-3,
  .tf-shop-control .tf-control-layout .sw-layout-4 {
    display: none;
  }

  /* Only 1-col and 2-col switcher icons visible on mobile */
  .tf-shop-control .tf-view-layout-switch {
    width: auto;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .tf-shop-control .tf-view-layout-switch svg {
    width: 20px;
    height: 20px;
  }

  .tf-shop-control .tf-control-sorting {
    flex-shrink: 0;
  }

  .tf-shop-control .sort-by-select {
    height: 34px;
    padding: 4px 22px 4px 8px;
    font-size: 12px;
    min-width: 105px;
    max-width: 130px;
    border-radius: 4px;
  }
}

@media (max-width: 575.98px) {
  #gridLayout.tf-col-1 .card-product {
    gap: 14px;
    padding-bottom: 18px;
  }

  #gridLayout.tf-col-1 .card-product .card-product-wrapper {
    flex: 0 0 38%;
    max-width: 140px;
    min-width: 105px;
  }

  #gridLayout.tf-col-1 .card-product .card-product-info {
    max-width: 62%;
  }

  #gridLayout.tf-col-1 .card-product .card-product-info .title {
    font-size: 14px;
  }

  #gridLayout.tf-col-1 .card-product .card-product-info .price {
    font-size: 13.5px;
    margin-bottom: 6px;
  }

  #gridLayout.tf-col-1 .card-product .product-description-snippet {
    display: none;
  }

  #gridLayout.tf-col-1 .card-product .size-box {
    gap: 6px;
    margin-bottom: 8px;
  }

  #gridLayout.tf-col-1 .card-product .size-box .size-item,
  #gridLayout.tf-col-1 .card-product .size-box .card-size-item {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 11.5px;
    border-radius: 50%;
  }

  #gridLayout.tf-col-1 .card-product .list-view-actions {
    margin-top: 6px;
    gap: 6px;
    flex-wrap: nowrap;
    width: 100%;
  }

  #gridLayout.tf-col-1 .card-product .list-view-actions .btn-main-product,
  #gridLayout.tf-col-1 .card-product .list-view-actions .btn-list-atc {
    min-width: 0;
    max-width: none;
    flex: 1 1 auto;
    height: 36px;
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: 0.3px;
    white-space: nowrap;
  }

  #gridLayout.tf-col-1 .card-product .list-view-actions .box-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  #gridLayout.tf-col-1 .card-product .list-view-actions .box-icon svg {
    width: 15px;
    height: 15px;
  }
}

/* Hidden Cards when Filtered Out */
.card-product.filter-hidden {
  display: none;
}

/* No Filter Results State */
.no-filter-results {
  background-color: #fafafa;
  border: 1px dashed var(--line, #e5e5e5);
  border-radius: 6px;
  padding: 40px 20px;
  margin: 10px 0 20px 0;
}

.no-filter-results h5 {
  color: var(--main, #181818);
  font-weight: 600;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   11. Mobile Off-Canvas Filter Drawer
   -------------------------------------------------------------------------- */
.canvas-filter {
  width: 300px;
  max-width: 85vw;
}

.canvas-filter .canvas-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.canvas-filter .canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background-color: var(--surface, #f7f7f7);
  border-bottom: 1px solid var(--line, #e5e5e5);
}

.canvas-filter .canvas-header h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--main, #181818);
}

.canvas-filter .canvas-header .icon-close-popup {
  font-size: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--main, #181818);
}

.canvas-filter .canvas-body {
  padding: 18px;
  overflow-y: auto;
  flex-grow: 1;
}

.canvas-filter .widget-facet {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line, #ebebeb);
}

.canvas-filter .widget-facet:last-child,
.canvas-filter .facet-reset {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 10px;
}