/* Project-specific overrides. Keep style.css for tokens and base, this file for page/section work. */

/* =========================================================================
   Shop — Korean Mart style archive (filters · category circles · cards)
   Markup comes from the "Dioxa shop layout" code snippet.
   ========================================================================= */

/* Slimmer page title band on shop / category pages */
.woocommerce-shop .hero-section,
.tax-product_cat .hero-section,
.tax-product_brand .hero-section { --container-padding: 28px 0; }
.woocommerce-shop .hero-section .entry-header,
.tax-product_cat .hero-section .entry-header,
.tax-product_brand .hero-section .entry-header { min-height: 0 !important; padding: 26px 0 !important; }
.woocommerce-shop .hero-section .page-title,
.tax-product_cat .hero-section .page-title { font-size: clamp(28px, 3vw, 38px); }

/* ---- Category circles ---- */
.dx-catcircles {
  background: #fff;
  border: 1px solid var(--dioxa-line);
  border-radius: 14px;
  padding: 16px 12px 12px;
  margin: 0 0 22px;
}
.dx-catcircles__track {
  display: flex;
  gap: 6px;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.dx-catcircles__track::-webkit-scrollbar { display: none; }
.dx-catcircle {
  flex: 0 0 auto;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--dioxa-ink);
}
.dx-catcircle__img {
  width: 58px; height: 58px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--dioxa-bg-soft);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--dioxa-line);
  display: grid; place-items: center;
  transition: box-shadow .2s, transform .2s;
}
.dx-catcircle__img img { width: 100%; height: 100%; object-fit: cover; }
.dx-catcircle__img b { font-family: var(--dioxa-font-display); font-size: 24px; color: var(--dioxa-teal); }
.dx-catcircle__name { font-size: 12px; line-height: 1.25; text-align: center; font-weight: 500; }
.dx-catcircle:hover { color: var(--dioxa-teal); }
.dx-catcircle:hover .dx-catcircle__img { box-shadow: 0 0 0 2px var(--dioxa-teal); transform: translateY(-2px); }

/* ---- Two-column layout ---- */
.dx-shop {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.dx-shop__main { min-width: 0; }
.dx-shop__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--dioxa-line);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 18px;
}
.dx-shop__bar .woo-listing-top,
.dx-shop__bar .woocommerce-notices-wrapper:empty + .woo-listing-top { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 !important; }
.dx-shop__bar .woocommerce-result-count { margin: 0 !important; font-size: 14px; font-weight: 600; color: var(--dioxa-ink); text-transform: none; letter-spacing: 0; }
.dx-shop__bar .woocommerce-ordering { margin: 0 !important; }
.dx-shop__bar .woocommerce-ordering select { border-radius: 8px; border-color: var(--dioxa-line); min-height: 38px; font-size: 14px; }
.dx-shop__bar .woocommerce-notices-wrapper:empty { display: none; }
.dx-filters__open {
  display: none;
  align-items: center; gap: 6px;
  border: 1px solid var(--dioxa-line);
  background: #fff; color: var(--dioxa-ink);
  border-radius: 8px; padding: 8px 12px;
  font-weight: 600; font-size: 14px; cursor: pointer;
}

/* ---- Filter sidebar ---- */
.dx-filters {
  position: sticky;
  top: 20px;
  background: #fff;
  border: 1px solid var(--dioxa-line);
  border-radius: 12px;
  padding: 16px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.admin-bar .dx-filters { top: 52px; max-height: calc(100vh - 72px); }
.dx-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dx-filters__head h3 { margin: 0; font-family: var(--dioxa-font-body); font-size: 17px; font-weight: 700; color: var(--dioxa-ink); }
.dx-filters__clear { font-size: 13px; font-weight: 500; color: var(--dioxa-teal); }
.dx-filters__close { display: none; background: none; border: 0; font-size: 28px; line-height: 1; color: var(--dioxa-ink); cursor: pointer; padding: 0 4px; }
.dx-fgroup { padding: 14px 0; border-top: 1px solid var(--dioxa-line); }
.dx-fgroup:first-of-type { border-top: 0; }
.dx-fgroup__title {
  margin: 0 0 10px;
  font-family: var(--dioxa-font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--dioxa-muted);
}
.dx-fgroup__list { list-style: none; margin: 0; padding: 0 4px 0 0; max-height: 196px; overflow-y: auto; scrollbar-width: thin; }
.dx-fgroup__list--short { max-height: none; }
.dx-fgroup__list li { margin: 0; }
.dx-fgroup__list label {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 0; cursor: pointer;
  font-size: 14px; color: var(--dioxa-ink);
}
.dx-fgroup__list input[type=checkbox] {
  width: 16px; height: 16px; margin: 0; flex: 0 0 auto;
  accent-color: var(--dioxa-teal);
}
.dx-fcheck__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dx-fcount {
  font-size: 11px; font-weight: 500; color: var(--dioxa-muted);
  background: var(--dioxa-bg-soft); border-radius: 999px; padding: 1px 8px;
}
.dx-fgroup__list label:hover .dx-fcheck__name { color: var(--dioxa-teal); }

/* Price slider (two overlaid range inputs) */
.dx-price__slider { position: relative; height: 22px; margin: 4px 6px 6px; }
.dx-price__track { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 4px; background: var(--dioxa-line); }
.dx-price__fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 4px; background: var(--dioxa-teal); }
.dx-price__slider input[type=range] {
  position: absolute; inset: 0; width: 100%; margin: 0;
  background: none; pointer-events: none;
  -webkit-appearance: none; appearance: none; height: 22px;
}
.dx-price__slider input[type=range]::-webkit-slider-runnable-track { background: none; height: 22px; }
.dx-price__slider input[type=range]::-moz-range-track { background: none; }
.dx-price__slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; cursor: pointer;
  width: 18px; height: 18px; border-radius: 50%; margin-top: 2px;
  background: var(--dioxa-teal); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--dioxa-teal);
}
.dx-price__slider input[type=range]::-moz-range-thumb {
  pointer-events: auto; cursor: pointer;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--dioxa-teal); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--dioxa-teal);
}
.dx-price__vals { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--dioxa-ink); }

/* ---- Product grid ---- */
.dx-shop__main ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 0 !important;
}
.dx-shop__main ul.products::before, .dx-shop__main ul.products::after { display: none !important; }

/* ---- Product card (shop, category, related, cross-sell) ---- */
ul.products li.product {
  position: relative;
  display: flex !important;
  flex-direction: column;
  width: auto !important;
  margin: 0 !important;
  padding: 0 0 14px !important;
  background: #fff;
  border: 1px solid var(--dioxa-line);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
ul.products li.product:hover {
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(1, 71, 77, .12);
  transform: translateY(-3px);
}
ul.products li.product > * { margin-left: 14px !important; margin-right: 14px !important; }
ul.products li.product > figure { order: 1; margin: 0 0 12px !important; position: relative; }
ul.products li.product > .dx-card-brand { order: 2; }
ul.products li.product > .woocommerce-loop-product__title { order: 3; }
ul.products li.product > .dx-card-rating { order: 4; }
ul.products li.product > .price { order: 5; }
ul.products li.product > .ct-woo-card-actions { order: 9; margin-top: auto !important; }
ul.products li.product > .entry-meta { display: none !important; }

ul.products li.product figure .ct-media-container { display: block; aspect-ratio: 1 / 1; background: #f7fbfb; }
ul.products li.product figure img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
ul.products li.product:hover figure img { transform: scale(1.04); }

.dx-card-brand {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dioxa-teal) !important; text-decoration: none; margin-bottom: 4px;
}
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--dioxa-font-body) !important;
  font-size: 14.5px !important; font-weight: 500 !important; line-height: 1.4 !important;
  letter-spacing: 0; margin-bottom: 6px !important;
  min-height: calc(1.4em * 2);
}
ul.products li.product .woocommerce-loop-product__title a {
  color: var(--dioxa-ink) !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
ul.products li.product .woocommerce-loop-product__title a:hover { color: var(--dioxa-teal) !important; }

.dx-card-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; font-size: 12px; color: var(--dioxa-muted); }
.dx-stars {
  --dx-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.9 7.1.6-5.4 4.7 1.6 7.3L12 17.8 5.8 21.5l1.6-7.3L2 9.5l7.1-.6z'/%3E%3C/svg%3E");
  position: relative; display: inline-block; width: 80px; height: 15px;
  background: #e2e7e8;
  -webkit-mask: var(--dx-star) repeat-x 0 0 / 16px 15px; mask: var(--dx-star) repeat-x 0 0 / 16px 15px;
}
.dx-stars::before {
  content: ""; position: absolute; inset: 0;
  width: calc(var(--dx-rating, 0) / 5 * 100%);
  background: #f5a524;
}

ul.products li.product .price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px;
  margin-bottom: 12px !important;
  font-size: 16px; font-weight: 700; color: var(--dioxa-teal);
}
ul.products li.product .price del { order: 2; font-size: 13px; font-weight: 400; color: var(--dioxa-muted); opacity: .8; }
ul.products li.product .price ins { order: 1; text-decoration: none; }

/* Discount / sold-out badges */
ul.products li.product .onsale,
ul.products li.product .out-of-stock-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 12px; font-weight: 700; line-height: 1;
  padding: 6px 9px; border-radius: 999px; text-transform: none;
}
ul.products li.product .onsale { background: #e2483d; color: #fff; }
ul.products li.product .out-of-stock-badge { background: rgba(29, 43, 45, .85); color: #fff; }
ul.products li.product .onsale + .out-of-stock-badge,
ul.products li.product .out-of-stock-badge + .onsale { top: 40px; }

/* Add to cart — full width */
ul.products li.product .ct-woo-card-actions { display: block; }
ul.products li.product .ct-woo-card-actions .button {
  display: flex !important; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 42px; margin: 0 !important;
  border-radius: 9px; font-size: 14px; font-weight: 600;
  background: var(--dioxa-teal); color: #fff; border: 0;
  transition: background .2s;
}
ul.products li.product .ct-woo-card-actions .button::before {
  content: ""; width: 17px; height: 17px; flex: 0 0 17px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
}
ul.products li.product .ct-woo-card-actions .button:hover { background: var(--dioxa-teal-deep); color: #fff; }
ul.products li.product .ct-woo-card-actions .button.loading { opacity: .75; }
ul.products li.product .ct-woo-card-actions .button.added::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
ul.products li.product .added_to_cart {
  display: block; text-align: center; margin-top: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--dioxa-teal);
}
/* Sold out: calm, secondary button */
ul.products li.product.outofstock .ct-woo-card-actions .button { background: #eef3f3; color: var(--dioxa-muted); }
ul.products li.product.outofstock .ct-woo-card-actions .button::before { display: none; }

/* Wishlist / quick view / compare → round icons on the image */
ul.products li.product > .tinv-wraper,
ul.products li.product > .woosq-btn,
ul.products li.product > .woosc-btn {
  position: absolute !important; right: 10px; z-index: 3;
  width: 36px; height: 36px; margin: 0 !important; padding: 0 !important;
  border-radius: 50% !important; border: 0 !important;
  background: #fff !important; color: var(--dioxa-ink) !important;
  box-shadow: 0 2px 10px rgba(1, 71, 77, .15);
  display: grid !important; place-items: center;
  font-size: 0 !important; line-height: 0; cursor: pointer;
  opacity: 0; transform: translateX(8px);
  transition: opacity .2s, transform .2s, background .2s, color .2s;
}
ul.products li.product > .tinv-wraper { top: 10px; }
ul.products li.product > .woosq-btn { top: 54px; transition-delay: .03s; }
ul.products li.product > .woosc-btn { top: 98px; transition-delay: .06s; }
ul.products li.product:hover > .tinv-wraper,
ul.products li.product:hover > .woosq-btn,
ul.products li.product:hover > .woosc-btn,
ul.products li.product > .tinv-wraper:focus-within,
ul.products li.product > .woosq-btn:focus-visible,
ul.products li.product > .woosc-btn:focus-visible { opacity: 1; transform: none; }
ul.products li.product > .woosq-btn:hover,
ul.products li.product > .woosc-btn:hover,
ul.products li.product > .tinv-wraper:hover { background: var(--dioxa-teal) !important; color: #fff !important; }
ul.products li.product > .woosq-btn::before,
ul.products li.product > .woosc-btn::before {
  content: ""; width: 17px; height: 17px; background: currentColor;
  -webkit-mask: var(--dx-ico) center / contain no-repeat; mask: var(--dx-ico) center / contain no-repeat;
}
ul.products li.product > .woosq-btn {
  --dx-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
ul.products li.product > .woosc-btn {
  --dx-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h5v5M4 20 21 3M21 16v5h-5M15 15l6 6M4 4l5 5'/%3E%3C/svg%3E");
}
ul.products li.product > .woosq-btn > *, ul.products li.product > .woosc-btn > * { display: none !important; }
ul.products li.product > .tinv-wraper .tinv-wishlist-clear,
ul.products li.product > .tinv-wraper .tinvwl-tooltip,
ul.products li.product > .tinv-wraper .tinvwl_add_to_wishlist-text { display: none !important; }
ul.products li.product > .tinv-wraper a.tinvwl_add_to_wishlist_button {
  margin: 0 !important; padding: 0 !important; width: 36px; height: 36px;
  display: grid !important; place-items: center; color: inherit !important;
}
ul.products li.product > .tinv-wraper a.tinvwl_add_to_wishlist_button::before {
  position: static !important; margin: 0 !important; font-size: 17px !important; color: inherit !important;
}

/* ---- Responsive ---- */
@media (max-width: 1199px) {
  .dx-shop__main ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 991px) {
  .dx-shop { grid-template-columns: 1fr; }
  .dx-filters__open { display: inline-flex; }
  .dx-filters__close { display: block; }
  .dx-filters {
    position: fixed; top: 0 !important; left: 0; bottom: 0; z-index: 99999;
    width: min(320px, 86vw); max-height: none !important; border-radius: 0; border: 0;
    transform: translateX(-100%); transition: transform .3s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, .2);
  }
  .dx-filters-open .dx-filters { transform: none; }
  .dx-filters-open .dx-shop::before {
    content: ""; position: fixed; inset: 0; z-index: 99998; background: rgba(18, 41, 43, .45);
  }
  .dx-catcircles__track { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .dx-shop__main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  ul.products li.product > * { margin-left: 10px !important; margin-right: 10px !important; }
  ul.products li.product .woocommerce-loop-product__title { font-size: 13.5px !important; }
  ul.products li.product .ct-woo-card-actions .button { min-height: 38px; font-size: 13px; }
  ul.products li.product > .woosc-btn { display: none !important; }
  ul.products li.product > .tinv-wraper,
  ul.products li.product > .woosq-btn { opacity: 1; transform: none; width: 32px; height: 32px; right: 8px; }
  ul.products li.product > .woosq-btn { top: 48px; }
  .dx-shop__bar .woocommerce-result-count { display: none; }
  .dx-catcircle { width: 72px; }
  .dx-catcircle__img { width: 52px; height: 52px; }
}
@media (hover: none) {
  ul.products li.product > .tinv-wraper,
  ul.products li.product > .woosq-btn { opacity: 1; transform: none; }
}

/* card fixes */
ul.products li.product .ct-woo-card-actions .button::before { display: block !important; position: static !important; inset: auto !important; opacity: 1 !important; transform: none !important; border: 0 !important; border-radius: 0 !important; animation: none !important; margin: 0 !important; filter: none !important; z-index: 1 !important; }
ul.products li.product.outofstock .ct-woo-card-actions .button::before,
ul.products li.product .ct-woo-card-actions .button.loading::before { display: none !important; }
ul.products li.product .ct-woo-card-actions .added_to_cart {
  display: block !important; width: 100%; min-height: 0 !important; height: auto !important;
  margin: 8px 0 0 !important; padding: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
  text-align: center; font-size: 13px !important; font-weight: 600; line-height: 1.4;
  color: var(--dioxa-teal) !important; text-decoration: underline; text-underline-offset: 3px;
}
ul.products li.product .ct-woo-card-actions .added_to_cart::before,
ul.products li.product .ct-woo-card-actions .added_to_cart::after { display: none !important; }

/* =========================================================================
   Elementor build — Dioxa widgets, product card (Loop Item), shop, PDP
   Colours/typography are editable in Elementor; this file handles layout.
   ========================================================================= */
.elementor-widget-dioxa-product-filters,
.elementor-widget-dioxa-category-circles,
.elementor-widget-dioxa-product-actions,
.elementor-widget-dioxa-add-to-cart { --dx-accent: var(--dioxa-teal); }

/* Category circles: accent + optional box */
.elementor-widget-dioxa-category-circles .dx-catcircle:hover .dx-catcircle__img { box-shadow: 0 0 0 2px var(--dx-accent); }
.elementor-widget-dioxa-category-circles .dx-catcircles { margin: 0; }
.elementor-widget-dioxa-category-circles:not(.dx-catcircles-box-yes) .dx-catcircles { border: 0; background: transparent; padding: 4px 0; }

/* Filters widget */
.elementor-widget-dioxa-product-filters .dx-fgroup__list input[type=checkbox] { accent-color: var(--dx-accent); }
.elementor-widget-dioxa-product-filters .dx-price__fill { background: var(--dx-accent); }
.elementor-widget-dioxa-product-filters .dx-price__slider input[type=range]::-webkit-slider-thumb { background: var(--dx-accent); box-shadow: 0 0 0 1px var(--dx-accent); }
.elementor-widget-dioxa-product-filters .dx-price__slider input[type=range]::-moz-range-thumb { background: var(--dx-accent); box-shadow: 0 0 0 1px var(--dx-accent); }
.elementor-widget-dioxa-product-filters:not(.dx-filters-sticky-yes) .dx-filters { position: static; max-height: none; }
.dx-filters-backdrop { display: none; }

/* Shop toolbar */
.dx-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 1px solid var(--dioxa-line); border-radius: 12px; padding: 8px 12px;
}
.dx-toolbar__count { font-size: 14px; font-weight: 600; color: var(--dioxa-ink); }
.dx-toolbar__sort { margin: 0; }
.dx-toolbar__sort select { border: 1px solid var(--dioxa-line); border-radius: 8px; min-height: 38px; font-size: 14px; padding: 0 30px 0 10px; background-color: #fff; }

/* Breadcrumb */
.dx-crumbs .woocommerce-breadcrumb { font-size: 13px; color: var(--dioxa-muted); margin: 0; }
.dx-crumbs .woocommerce-breadcrumb a { color: var(--dioxa-teal); }

/* ---- Product card (Loop Item) ---- */
.e-loop-item .dx-card { height: 100%; transition: box-shadow .25s, transform .25s, border-color .25s; }
.e-loop-item .dx-card:hover { border-color: transparent !important; box-shadow: 0 10px 28px rgba(1, 71, 77, .12); transform: translateY(-3px); }
.dx-card__media { position: relative; }
.dx-card__img img { display: block; width: 100% !important; aspect-ratio: 1 / 1; object-fit: contain; transition: transform .4s ease; }
.dx-card:hover .dx-card__img img { transform: scale(1.04); }
.dx-card__body { flex: 1 1 auto; }
.dx-card__title .elementor-heading-title a {
  color: inherit;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.8em;
}
.dx-card__title .elementor-heading-title a:hover { color: var(--dioxa-teal); }
.dx-card__price .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 16px; font-weight: 700; color: var(--dioxa-teal); margin: 0; }
.dx-card__price .price del { order: 2; font-size: 13px; font-weight: 400; color: var(--dioxa-muted); }
.dx-card__price .price ins { order: 1; text-decoration: none; }
.dx-card__atc { margin-top: auto !important; padding-top: 8px; }

/* Badges */
.dx-badges { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dx-badge-float-yes { position: absolute !important; top: 10px; left: 10px; z-index: 3; width: auto !important; }
.dx-badge { font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 9px; border-radius: 999px; }
.dx-badge--sale { background: #e2483d; color: #fff; }
.dx-badge--sold { background: rgba(29, 43, 45, .85); color: #fff; }

/* Quick actions */
.dx-qa { display: flex; flex-direction: column; gap: 8px; }
.dx-actions-float-yes { position: absolute !important; top: 10px; right: 10px; z-index: 3; width: auto !important; }
.dx-qa > * {
  width: 36px; height: 36px; margin: 0 !important; padding: 0 !important;
  border-radius: 50% !important; border: 0 !important;
  background: #fff; color: var(--dioxa-ink);
  box-shadow: 0 2px 10px rgba(1, 71, 77, .15);
  display: grid !important; place-items: center;
  font-size: 0 !important; line-height: 0; cursor: pointer;
  transition: background .2s, color .2s;
}
.dx-qa > *:hover { background: var(--dx-accent) !important; color: #fff !important; }
.dx-actions-float-yes .dx-qa > * { opacity: 0; transform: translateX(8px); transition: opacity .2s, transform .2s, background .2s, color .2s; }
.dx-card:hover .dx-actions-float-yes .dx-qa > *,
.dx-actions-float-yes .dx-qa > *:focus-within,
.dx-actions-float-yes .dx-qa > *:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .dx-actions-float-yes .dx-qa > * { opacity: 1; transform: none; } }
.dx-qa .woosq-btn::before, .dx-qa .woosc-btn::before {
  content: ""; width: 17px; height: 17px; background: currentColor;
  -webkit-mask: var(--dx-ico) center / contain no-repeat; mask: var(--dx-ico) center / contain no-repeat;
}
.dx-qa .woosq-btn > *, .dx-qa .woosc-btn > * { display: none !important; }
.dx-qa .woosq-btn {
  --dx-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.dx-qa .woosc-btn {
  --dx-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h5v5M4 20 21 3M21 16v5h-5M15 15l6 6M4 4l5 5'/%3E%3C/svg%3E");
}
.dx-qa .tinv-wraper, .dx-qa .tinv-wishlist { margin: 0 !important; }
.dx-qa .tinv-wishlist-clear, .dx-qa .tinvwl-tooltip, .dx-qa .tinvwl_add_to_wishlist-text { display: none !important; }
.dx-qa a.tinvwl_add_to_wishlist_button {
  margin: 0 !important; padding: 0 !important; width: 36px; height: 36px;
  display: grid !important; place-items: center; color: inherit !important; font-size: 0 !important;
}
.dx-qa a.tinvwl_add_to_wishlist_button::before { position: static !important; margin: 0 !important; font-size: 17px !important; color: inherit !important; }
@media (max-width: 767px) { .dx-qa .woosc-btn { display: none !important; } .dx-qa > * { width: 32px; height: 32px; } }

/* Add to cart */
.dx-atc .button {
  display: flex !important; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; margin: 0 !important; padding: 8px 14px;
  border-radius: 9px; border: 0; font-size: 14px; font-weight: 600; line-height: 1.2;
  background-color: var(--dioxa-teal); color: #fff;
  transition: background-color .2s;
}
.dx-atc .button:hover { background-color: var(--dioxa-teal-deep); color: #fff; }
.dx-atc-full-yes .dx-atc .button { width: 100%; }
.dx-atc-icon-yes .dx-atc .button::before {
  content: ""; display: block !important; position: static !important; inset: auto !important;
  width: 17px; height: 17px; flex: 0 0 17px; margin: 0 !important; opacity: 1 !important;
  filter: none !important; transform: none !important; animation: none !important; border: 0 !important; border-radius: 0 !important; z-index: 1 !important;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dx-atc .button.loading::before { display: none !important; }
.outofstock .dx-atc .button::before { display: none !important; }
.outofstock .dx-atc .button { background-color: #eef3f3 !important; color: var(--dioxa-muted) !important; }
.dx-atc .added_to_cart {
  display: block; text-align: center; margin-top: 6px; padding: 0; background: none !important;
  font-size: 12.5px; font-weight: 600; color: var(--dioxa-teal); text-decoration: underline; text-underline-offset: 3px;
}
.dx-atc .added_to_cart::before, .dx-atc .added_to_cart::after { display: none !important; }

/* Rating */
.dx-card-rating { margin: 0; }

/* Loop grid pagination */
.dx-grid .elementor-pagination { margin-top: 24px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.dx-grid .elementor-pagination .page-numbers {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 8px;
  display: inline-grid; place-items: center; border: 1px solid var(--dioxa-line); background: #fff; color: var(--dioxa-ink);
}
.dx-grid .elementor-pagination .page-numbers.current { background: var(--dioxa-teal); border-color: var(--dioxa-teal); color: #fff; }
.dx-grid .e-loop-nothing-found-message { padding: 40px 20px; text-align: center; background: #fff; border: 1px dashed var(--dioxa-line); border-radius: 12px; }

/* Shop layout: sticky sidebar + mobile drawer */
.dx-shop-side .dx-filters-sticky-yes .dx-filters { position: sticky; top: 20px; }
.dx-shop-side { align-self: stretch; }
.admin-bar .dx-shop-side .dx-filters-sticky-yes .dx-filters { top: 52px; }
.dx-shop-side .dx-filters__open { display: none; }
@media (max-width: 1024px) {
  .dx-shop-side .dx-filters__open { display: inline-flex; }
  .dx-shop-side .dx-filters__close { display: block; }
  .dx-shop-side .dx-filters {
    position: fixed !important; top: 0 !important; left: 0; bottom: 0; z-index: 99999;
    width: min(320px, 86vw); max-height: none !important; border-radius: 0; border: 0;
    transform: translateX(-100%); transition: transform .3s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .2);
  }
  .dx-filters-open .dx-shop-side .dx-filters { transform: none; }
  .dx-filters-open .dx-filters-backdrop { display: block; position: fixed; inset: 0; z-index: 99998; background: rgba(18, 41, 43, .45); }
}
@media (max-width: 767px) { .dx-toolbar__count { display: none; } .dx-toolbar { justify-content: flex-end; } }

/* ---- Single product ---- */
.dx-pdp-price .price { font-size: 26px !important; font-weight: 700; color: var(--dioxa-teal) !important; display: flex; gap: 10px; align-items: baseline; }
.dx-pdp-price .price del { order: 2; font-size: 17px; color: var(--dioxa-muted); font-weight: 400; }
.dx-pdp-price .price ins { order: 1; text-decoration: none; }
.dx-pdp-atc form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.dx-pdp-atc .single_add_to_cart_button { flex: 1 1 200px; min-height: 50px; border-radius: 10px !important; background: var(--dioxa-teal) !important; font-weight: 600; }
.dx-pdp-atc .single_add_to_cart_button:hover { background: var(--dioxa-teal-deep) !important; }
.dx-pdp-atc .variations_form, .dx-pdp-atc .woocommerce-variation-add-to-cart { width: 100%; }
.dx-trust .elementor-icon-list-item { font-size: 14px; }
.dx-pdp-gallery .woocommerce-product-gallery { border: 1px solid var(--dioxa-line); border-radius: 14px; overflow: hidden; background: #fff; }

/* Home hero */
.dx-hero-img img { max-height: 440px; width: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 24px 60px rgba(1, 71, 77, .14); }

/* Brand strip */
.dx-btiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.dx-btile {
  --dx-accent: var(--dioxa-teal);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 92px; padding: 14px; text-align: center; text-decoration: none;
  background: #fff; border: 1px solid var(--dioxa-line); border-radius: 12px; color: var(--dioxa-ink);
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.dx-btile:hover { border-color: var(--dx-accent); color: var(--dx-accent); box-shadow: 0 6px 18px rgba(1, 71, 77, .1); }
.dx-btile__name { font-family: var(--dioxa-font-display); font-size: 20px; font-weight: 600; line-height: 1.15; }
.dx-btile__logo { max-height: 44px; width: auto; object-fit: contain; }
.dx-btile__count { font-size: 12px; color: var(--dioxa-muted); }
@media (max-width: 1024px) { .dx-btiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) { .dx-btiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .dx-btile__name { font-size: 16px; } }

/* Woo pages (cart / checkout / account) */
.dx-woo-page .button, .dx-woo-page button[type=submit] { border-radius: 10px; }

/* ---- Woo widgets (Elementor) on cart / checkout / account + product meta ---- */
.dx-woo-page, .dx-woo-page .elementor-widget-container {
  --sections-background-color: #fff; --sections-border-color: var(--dioxa-line); --sections-border-radius: 12px;
  --forms-fields-border-color: var(--dioxa-line); --forms-fields-focus-border-color: var(--dioxa-teal);
  --button-normal-background-color: var(--dioxa-teal); --button-hover-background-color: var(--dioxa-teal-deep);
  --button-normal-text-color: #fff; --button-hover-text-color: #fff; --links-normal-color: var(--dioxa-teal); --links-hover-color: var(--dioxa-teal-deep);
}
.dx-woo-page, .dx-woo-page input, .dx-woo-page select, .dx-woo-page button, .dx-woo-page textarea, .dx-woo-page table { font-family: var(--dioxa-font-body) !important; }
.dx-woo-page h2, .dx-woo-page h3, .dx-woo-page .cart_totals h2 { font-family: var(--dioxa-font-body) !important; font-size: 18px !important; font-weight: 700 !important; color: var(--dioxa-ink) !important; }
.dx-woo-page a:not(.button) { color: var(--dioxa-teal); }
.dx-woo-page .button, .dx-woo-page button.button, .dx-woo-page .checkout-button, .dx-woo-page #place_order, .dx-woo-page .woocommerce-Button {
  background-color: var(--dioxa-teal) !important; border-color: var(--dioxa-teal) !important; color: #fff !important; border-radius: 10px !important; font-weight: 600 !important;
}
.dx-woo-page .button:hover, .dx-woo-page .checkout-button:hover, .dx-woo-page #place_order:hover { background-color: var(--dioxa-teal-deep) !important; }
.dx-woo-page button[name=update_cart], .dx-woo-page button[name=apply_coupon] { background-color: #fff !important; color: var(--dioxa-teal) !important; border: 1px solid var(--dioxa-teal) !important; }
.dx-woo-page button[name=update_cart]:disabled { opacity: .5; }
.dx-woo-page .product-name a { font-weight: 500; }
.dx-woo-page .woocommerce-MyAccount-navigation-link.is-active a, .dx-woo-page .woocommerce-MyAccount-navigation a:hover { color: var(--dioxa-teal) !important; }
.elementor-widget-woocommerce-product-meta .product_meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--dioxa-muted); }
.elementor-widget-woocommerce-product-meta .product_meta > span { display: block; }
.elementor-widget-woocommerce-product-meta .product_meta .detail-label, .elementor-widget-woocommerce-product-meta .product_meta .sku_wrapper { color: var(--dioxa-ink); }
