/* DIVEXO — Shop listing layer. Scoped to #o_wsale_container (shop + category listing only).
   Uses the homepage tokens (--dx-*) defined site-wide. Presentation only: data, links,
   filters, sorting and cart all remain Odoo's native implementation. */

#wrapwrap:has(#o_wsale_container) main { background: var(--dx-ivory); }
#o_wsale_container {
  --dx-shop-gap-x: clamp(14px, 2vw, 28px);
  --dx-shop-gap-y: clamp(34px, 4vw, 56px);
  color: var(--dx-ink);
  font-family: var(--dx-sans);
  padding-bottom: clamp(48px, 7vw, 96px);
}
@media (min-width: 1400px) { #o_wsale_container.container { max-width: 1320px; } }

/* ---------- Editorial introduction ---------- */
#o_wsale_container #o_wsale_products_header { padding-top: clamp(26px, 4vw, 52px) !important; padding-bottom: 0 !important; gap: 0 !important; }
.dx-shop-intro { max-width: 780px; margin: 0 auto clamp(24px, 3vw, 36px); text-align: center; }
.dx-shop-eyebrow {
  margin: 0 0 14px; font-family: var(--dx-sans); font-size: 11px; font-weight: 400;
  letter-spacing: .32em; text-transform: uppercase; color: var(--dx-champagne-deep);
}
.dx-shop-intro .dx-shop-eyebrow::after {
  content: ""; display: block; width: 36px; height: 1px; margin: 14px auto 0; background: var(--dx-champagne);
}
#o_wsale_container h1.dx-shop-title,
#o_wsale_container h1.o_wsale_category_title {
  font-family: var(--dx-serif) !important; font-weight: 300; color: var(--dx-espresso);
  font-size: clamp(32px, 4.4vw, 52px) !important; line-height: 1.1 !important; letter-spacing: -.005em; margin: 0;
}
#o_wsale_container h1.dx-shop-title em,
#o_wsale_container h1.o_wsale_category_title em { font-style: italic; color: var(--dx-burgundy); }
.dx-shop-lede {
  margin: 16px auto 0; max-width: 520px; font-family: var(--dx-sans); font-weight: 300;
  font-size: clamp(14px, 1.3vw, 15.5px); line-height: 1.75; color: var(--dx-mute);
}
/* Category pages: centred title with eyebrow + breadcrumb */
#o_wsale_container .o_wsale_products_header_is_category h1.o_wsale_category_title:not(.o_wsale_category_title_is_search) { display: flex !important; }
#o_wsale_container .o_wsale_products_header_is_category .dx-shop-eyebrow--category { margin: 22px 0 12px; }
#o_wsale_container .o_wsale_products_header_is_category .dx-shop-cats,
#o_wsale_container .o_wsale_products_header_is_category .products_header { width: 100%; }
#o_wsale_container .o_wsale_products_header_is_category { align-items: center; text-align: center; }
#o_wsale_container .o_wsale_products_header_is_category .breadcrumb { justify-content: center; margin-bottom: 10px !important; }
#o_wsale_container .o_wsale_products_header_is_category h1.o_wsale_category_title { justify-content: center; margin-bottom: clamp(26px, 3.6vw, 44px) !important; }
#o_wsale_container .breadcrumb { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; background: none; }
#o_wsale_container .breadcrumb a { color: var(--dx-mute); text-decoration: none; }
#o_wsale_container .breadcrumb a:hover { color: var(--dx-champagne-deep); }
#o_wsale_container .breadcrumb .active { color: var(--dx-ink); }
#o_wsale_container h1.o_wsale_category_title_is_search { font-size: clamp(24px, 3vw, 34px) !important; justify-content: center; margin-bottom: 22px !important; }
#o_wsale_container h1.o_wsale_category_title_is_search .text-muted { color: var(--dx-mute) !important; }

/* ---------- Collection navigation (real categories) ---------- */
.dx-shop-cats { border-top: 1px solid rgba(36, 25, 21, .1); border-bottom: 1px solid rgba(36, 25, 21, .1); margin: 0; }
.dx-shop-cats ul {
  display: flex; justify-content: center; align-items: center; gap: 0 clamp(18px, 2.6vw, 38px);
  margin: 0; padding: 0 4px; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.dx-shop-cats ul::-webkit-scrollbar { display: none; }
.dx-shop-cats li { flex: 0 0 auto; display: flex; align-items: center; }
.dx-shop-cats li.dx-cat-group:not(:first-child)::before {
  content: ""; width: 1px; height: 14px; background: rgba(36, 25, 21, .18); margin-right: clamp(18px, 2.6vw, 38px);
}
.dx-shop-cats a {
  position: relative; display: inline-flex; align-items: center; min-height: 54px; padding: 0 2px;
  font-family: var(--dx-sans); font-size: 11.5px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
  color: var(--dx-mute); text-decoration: none; transition: color .3s var(--dx-ease);
}
.dx-shop-cats li.dx-cat-group > a { color: var(--dx-ink); }
.dx-shop-cats a::after {
  content: ""; position: absolute; left: 0; right: .24em; bottom: 14px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--dx-ease);
}
.dx-shop-cats a:hover { color: var(--dx-champagne-deep); }
.dx-shop-cats a:hover::after { transform: scaleX(1); }
.dx-shop-cats a.is-active { color: var(--dx-burgundy); }
.dx-shop-cats a.is-active::after { transform: scaleX(1); background: var(--dx-burgundy); }
@media (max-width: 767.98px) {
  .dx-shop-cats ul { justify-content: flex-start; padding: 0 44px 0 2px; }
  .dx-shop-cats a { min-height: 48px; font-size: 11px; letter-spacing: .2em; }
  .dx-shop-cats a::after { bottom: 12px; }
}

/* ---------- Toolbar: count · search · sort · filters ---------- */
#o_wsale_container .products_header {
  display: flex; align-items: center; gap: 12px !important; padding: 16px 0 !important; margin: 0 0 clamp(22px, 3vw, 36px);
  border-bottom: 1px solid rgba(36, 25, 21, .1);
}
.dx-shop-count {
  flex: 0 0 auto; font-family: var(--dx-sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--dx-mute);
  white-space: nowrap;
}
#o_wsale_container .o_wsale_products_header_search_form_container { flex: 0 1 300px; max-width: 300px; margin-left: auto !important; margin-right: 0 !important; }
#o_wsale_container .o_wsale_products_searchbar_form .input-group {
  border-bottom: 1px solid rgba(36, 25, 21, .28); border-radius: 0; background: transparent; transition: border-color .3s var(--dx-ease);
}
#o_wsale_container .o_wsale_products_searchbar_form .input-group:focus-within { border-color: var(--dx-champagne-deep); }
#o_wsale_container .o_wsale_products_searchbar_form .form-control,
#o_wsale_container .o_wsale_products_searchbar_form .btn {
  background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  font-family: var(--dx-sans); font-size: 13px; color: var(--dx-ink); padding-left: 0;
}
#o_wsale_container .o_wsale_products_searchbar_form .form-control::placeholder { color: var(--dx-mute); opacity: .8; letter-spacing: .04em; }
#o_wsale_container .o_wsale_products_searchbar_form .btn { padding-right: 0; color: var(--dx-espresso); }
#o_wsale_container .products_header > .btn,
#o_wsale_container .products_header .o_sortby_dropdown > .btn,
#o_wsale_container .products_header .o_sortby_dropdown > .dropdown-toggle {
  background: transparent !important; border: 1px solid rgba(36, 25, 21, .22) !important; border-radius: 0 !important;
  min-height: 42px; padding: 0 16px !important; font-family: var(--dx-sans); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--dx-ink) !important; box-shadow: none !important; transition: border-color .3s var(--dx-ease), color .3s var(--dx-ease);
}
#o_wsale_container .products_header > .btn:hover,
#o_wsale_container .products_header .o_sortby_dropdown > .dropdown-toggle:hover { border-color: var(--dx-espresso) !important; }
#o_wsale_container .products_header .o_sortby_dropdown > .dropdown-toggle,
#o_wsale_container .products_header > button.btn { display: inline-flex !important; align-items: center; justify-content: center; gap: .6em; }
#o_wsale_container .products_header .o_sortby_dropdown > .dropdown-toggle > * { margin: 0 !important; line-height: 1; }
#o_wsale_container .products_header .o_sortby_dropdown .dropdown-toggle small,
#o_wsale_container .products_header .o_sortby_dropdown .dropdown-toggle .opacity-75 { font-size: inherit; color: var(--dx-mute); opacity: 1 !important; }
#o_wsale_container .products_header .btn small { font-size: inherit; }
#o_wsale_container .products_header .badge,
#o_wsale_container .products_header .btn .position-absolute { background: var(--dx-burgundy) !important; color: var(--dx-ivory) !important; border-radius: 50px; font-weight: 400; }
#o_wsale_container .o_sortby_dropdown .dropdown-menu {
  border: 1px solid rgba(36, 25, 21, .12); border-radius: 0; box-shadow: 0 18px 40px -24px rgba(36, 25, 21, .35);
  background: var(--dx-ivory); padding: 8px 0; min-width: 220px;
}
#o_wsale_container .o_sortby_dropdown .dropdown-item {
  font-family: var(--dx-sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dx-ink); padding: 11px 20px;
}
#o_wsale_container .o_sortby_dropdown .dropdown-item:hover,
#o_wsale_container .o_sortby_dropdown .dropdown-item:focus { background: var(--dx-cream); color: var(--dx-ink); }
#o_wsale_container .o_sortby_dropdown .dropdown-item.active { background: transparent; color: var(--dx-burgundy); }
#o_wsale_container .o_sortby_dropdown .dropdown-item.active::before { content: "— "; color: var(--dx-champagne); }
@media (max-width: 767.98px) {
  #o_wsale_container .products_header { flex-wrap: wrap !important; padding: 12px 0 !important; row-gap: 10px !important; }
  .dx-shop-count { order: 0; width: 100%; text-align: center; }
  #o_wsale_container .o_wsale_products_header_search_form_container { flex: 1 1 100% !important; max-width: none !important; width: 100%; margin: 0 !important; padding: 0 !important; }
  .dx-shop-cats { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  #o_wsale_container .products_header > .btn,
  #o_wsale_container .products_header .o_sortby_dropdown > .dropdown-toggle { min-height: 44px; padding: 0 14px !important; }
  #o_wsale_container .products_header .o_sortby_dropdown { flex: 1 1 0; }
  #o_wsale_container .products_header .o_sortby_dropdown > .dropdown-toggle { width: 100%; justify-content: center; display: inline-flex; align-items: center; }
  #o_wsale_container .products_header > button.btn { flex: 1 1 0; }
}

/* ---------- Product grid ---------- */
#o_wsale_container .o_wsale_products_grid_table {
  --o-wsale-products-grid-gap: var(--dx-shop-gap-x) !important;
  column-gap: var(--dx-shop-gap-x) !important; row-gap: var(--dx-shop-gap-y) !important;
}
@media (min-width: 768px) and (max-width: 991.98px) {
  #o_wsale_container .o_wsale_products_grid_table .oe_product { grid-column: auto / span 4; }
}
#o_wsale_container .oe_product .o_wsale_product_grid_wrapper,
#o_wsale_container .oe_product .oe_product_cart {
  background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
#o_wsale_container .oe_product .oe_product_cart { flex-direction: column; }
#o_wsale_container .oe_product .oe_product_image {
  border-radius: 0 !important; background: var(--dx-cream); aspect-ratio: 4 / 5; overflow: hidden;
}
#o_wsale_container .oe_product .oe_product_image_link,
#o_wsale_container .oe_product .oe_product_image_img_wrapper { border-radius: 0 !important; }
#o_wsale_container .oe_product .oe_product_image img {
  object-fit: cover !important; object-position: center 22%; border-radius: 0 !important;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #o_wsale_container .oe_product .oe_product_image img { transition: opacity .7s var(--dx-ease), transform 1.2s var(--dx-ease) !important; }
  #o_wsale_container .oe_product:hover .oe_product_image_img_wrapper_primary img { transform: scale(1.025); }
}

/* Information block */
#o_wsale_container .oe_product .o_wsale_product_information {
  padding: 16px 2px 0 !important; background: transparent !important; text-align: left;
}
#o_wsale_container .oe_product .o_wsale_products_item_title {
  margin: 0 0 6px; font-family: var(--dx-sans) !important; font-size: 12.5px !important; font-weight: 400 !important;
  letter-spacing: .2em; text-transform: uppercase; line-height: 1.5;
}
#o_wsale_container .oe_product .o_wsale_products_item_title a { color: var(--dx-ink) !important; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--dx-ease), color .3s; }
#o_wsale_container .oe_product:hover .o_wsale_products_item_title a,
#o_wsale_container .oe_product .o_wsale_products_item_title a:focus-visible { background-size: 100% 1px; color: var(--dx-burgundy) !important; }
#o_wsale_container .oe_product .oe_subdescription:empty,
#o_wsale_container .oe_product .oe_subdescription_wrapper:has(.oe_subdescription > div:empty:only-child) { display: none; }
#o_wsale_container .oe_product .o_wsale_product_sub { align-items: center; min-height: 36px; padding: 0 !important; }
#o_wsale_container .oe_product .product_price,
#o_wsale_container .oe_product .product_price .fw-bold {
  font-family: var(--dx-sans); font-size: 13.5px; font-weight: 400 !important; letter-spacing: .06em; color: var(--dx-espresso);
}
#o_wsale_container .oe_product .product_price del,
#o_wsale_container .oe_product .product_price .text-muted { color: var(--dx-mute) !important; font-size: 12px; margin-left: 6px; }

/* Card actions — restrained, never covering the garment */
#o_wsale_container .oe_product .o_wsale_product_btn .btn {
  border-radius: 0 !important; box-shadow: none !important;
}
#o_wsale_container .oe_product .o_wsale_product_btn_primary {
  background: rgba(247, 242, 234, .94) !important; border: 1px solid rgba(36, 25, 21, .3) !important; color: var(--dx-ink) !important;
  min-width: 40px; min-height: 36px; padding: 0 10px !important; font-family: var(--dx-sans);
  transition: background-color .3s var(--dx-ease), color .3s var(--dx-ease), border-color .3s var(--dx-ease);
}
#o_wsale_container .oe_product .o_wsale_product_btn_primary:hover,
#o_wsale_container .oe_product .o_wsale_product_btn_primary:focus-visible {
  background: var(--dx-espresso) !important; border-color: var(--dx-espresso) !important; color: var(--dx-ivory) !important;
}
#o_wsale_container .oe_product .o_add_compare { color: var(--dx-espresso) !important; background: rgba(247, 242, 234, .94) !important; border: 0 !important; min-height: 36px; }
#o_wsale_container .oe_product .o_add_compare:hover { color: var(--dx-burgundy) !important; }
#wrapwrap #o_wsale_container .oe_product .btn.o_add_wishlist {
  color: var(--dx-espresso) !important; background: rgba(247, 242, 234, .86) !important; border: 0 !important;
  border-radius: 50% !important; top: 10px; right: 10px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 !important;
}
#o_wsale_container .oe_product .o_add_wishlist:hover { color: var(--dx-burgundy) !important; }
/* Touch devices: keep actions visible without hover */
@media (hover: none) {
  #o_wsale_container .o_wsale_products_opt_actions_onhover .oe_product .o_wsale_product_btn,
  #o_wsale_container .o_wsale_products_opt_actions_onhover .oe_product .o_wsale_product_action_row,
  #o_wsale_container .o_wsale_products_opt_actions_onhover .oe_product .o_wsale_product_btn .btn { opacity: 1 !important; visibility: visible !important; transform: none !important; }
}

/* Ribbons (only real ribbons set in the backend are ever rendered) */
#o_wsale_container .oe_product .o_ribbons .o_ribbon,
#o_wsale_container .oe_product .o_ribbons > span {
  font-family: var(--dx-sans); font-size: 10px !important; letter-spacing: .22em; text-transform: uppercase; border-radius: 0 !important;
}

/* Mobile: two refined columns */
@media (max-width: 767.98px) {
  #o_wsale_container { --dx-shop-gap-x: 12px; --dx-shop-gap-y: 30px; }
  #o_wsale_container .oe_product .o_wsale_product_information { padding-top: 11px !important; }
  #o_wsale_container .oe_product .o_wsale_products_item_title { font-size: 11px !important; letter-spacing: .14em; }
  #o_wsale_container .oe_product .product_price,
  #o_wsale_container .oe_product .product_price .fw-bold { font-size: 12.5px; }
  #o_wsale_container .oe_product .o_wsale_product_sub { flex-wrap: wrap; row-gap: 8px; }
  #o_wsale_container .oe_product .o_wsale_product_btn_primary .o_label,
  #o_wsale_container .oe_product .o_add_compare { display: none !important; }
  #o_wsale_container .oe_product .o_wsale_product_btn_primary { min-width: 40px; min-height: 40px; }
  #o_wsale_container .oe_product .o_add_wishlist { width: 34px; height: 34px; }
}

/* Pagination + empty state */
#o_wsale_container .products_pager .pagination .page-link {
  border: 0; border-radius: 0 !important; background: transparent; color: var(--dx-mute);
  font-family: var(--dx-sans); font-size: 12px; letter-spacing: .14em; min-width: 40px; text-align: center;
}
#o_wsale_container .products_pager .pagination .active .page-link { color: var(--dx-burgundy); border-bottom: 1px solid var(--dx-burgundy); }
#o_wsale_container .o_wsale_products_main_row .text-center h3,
#o_wsale_container .o_wsale_products_main_row .text-center h2 { font-family: var(--dx-serif); font-weight: 300; color: var(--dx-espresso); }

#o_wsale_container .mt128.mb256 { margin: clamp(48px, 8vw, 96px) 0 clamp(64px, 10vw, 128px) !important; color: var(--dx-mute) !important; }
#o_wsale_container .mt128.mb256 .fa, #o_wsale_container .mt128.mb256 .oi, #o_wsale_container .mt128.mb256 img { opacity: .35; }
.dx-shop-empty-link {
  display: inline-flex; align-items: center; min-height: 48px; margin-top: 22px; padding: 0 2em; border: 1px solid var(--dx-espresso);
  font-family: var(--dx-sans); font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--dx-espresso); text-decoration: none;
  transition: background-color .3s var(--dx-ease), color .3s var(--dx-ease);
}
.dx-shop-empty-link:hover { background: var(--dx-espresso); color: var(--dx-ivory); }

/* Focus visibility */
#o_wsale_container a:focus-visible,
#o_wsale_container button:focus-visible,
#o_wsale_container .form-control:focus-visible { outline: 1px solid var(--dx-champagne-deep) !important; outline-offset: 3px; box-shadow: none !important; }

/* ---------- Filters drawer (Odoo native offcanvas) ---------- */
#o_wsale_offcanvas { background: var(--dx-ivory); color: var(--dx-ink); font-family: var(--dx-sans); }
#o_wsale_offcanvas .offcanvas-header { border-bottom: 1px solid rgba(36, 25, 21, .1); }
#o_wsale_offcanvas .offcanvas-header::before {
  content: "Refine"; font-family: var(--dx-serif); font-size: 26px; font-weight: 300; color: var(--dx-espresso); margin-right: auto;
}
#o_wsale_offcanvas .accordion-item,
#o_wsale_offcanvas .accordion-button { background: transparent !important; border-color: rgba(36, 25, 21, .1) !important; box-shadow: none !important; }
#o_wsale_offcanvas .accordion-button,
#o_wsale_offcanvas h6, #o_wsale_offcanvas .h6, #o_wsale_offcanvas b, #o_wsale_offcanvas strong {
  font-family: var(--dx-sans) !important; font-size: 11.5px !important; font-weight: 400 !important; letter-spacing: .24em;
  text-transform: uppercase; color: var(--dx-ink) !important;
}
#o_wsale_offcanvas .form-check-label, #o_wsale_offcanvas label { font-size: 13px; color: var(--dx-ink); }
#o_wsale_offcanvas .form-check-input:checked { background-color: var(--dx-espresso); border-color: var(--dx-espresso); }
#o_wsale_offcanvas .btn-check:checked + .btn,
#o_wsale_offcanvas .btn-check:checked + label { background: var(--dx-espresso) !important; border-color: var(--dx-espresso) !important; color: var(--dx-ivory) !important; }
#o_wsale_offcanvas .btn-check + .btn, #o_wsale_offcanvas .btn-check + label.btn { border-radius: 0 !important; border-color: rgba(36, 25, 21, .25); min-width: 46px; }
#o_wsale_offcanvas .form-control { background: transparent; border: 0; border-bottom: 1px solid rgba(36, 25, 21, .28); border-radius: 0; }
#o_wsale_offcanvas .offcanvas-footer, #o_wsale_offcanvas .border-top { border-color: rgba(36, 25, 21, .1) !important; }
#o_wsale_offcanvas a.btn, #o_wsale_offcanvas button.btn:not(.btn-close):not(.accordion-button) {
  border-radius: 0 !important; font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
#o_wsale_offcanvas input[type="range"] { accent-color: var(--dx-champagne-deep); }

@media (prefers-reduced-motion: reduce) {
  #o_wsale_container *, #o_wsale_offcanvas * { transition: none !important; animation: none !important; }
}
