/* WooCommerce ↔ CFIX design */

.cat-box li a {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
  color: #252525;
}

.cat-box li a:hover {
  background: #fafafa;
}

.woocommerce ul.products,
.woocommerce-page ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  list-style: none;
  margin: 0 !important;
  width: auto !important;
  float: none !important;
  padding: 0;
}

.woocommerce .product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  direction: rtl;
}

.home .product-area .product-grid,
.woocommerce.columns-6 .product-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.woocommerce .cfix-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  height: auto;
  border: 1px solid #ededed;
  border-radius: 6px;
  background: #fff;
  padding: 10px 9px 12px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
}

.woocommerce .cfix-product-card .button {
  height: 32px;
  width: 100%;
  margin-top: auto;
  border: 0;
  border-radius: 4px;
  background: var(--yellow, #f7c400);
  font-size: 12px;
  font-weight: 900;
  color: #111;
  cursor: pointer;
  padding: 0;
  line-height: 32px;
}

.woocommerce .cfix-product-card h3 {
  margin: 0 auto 2px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.2;
  font-weight: 900;
  color: #151515;
  direction: ltr;
  max-width: 128px;
}

.woocommerce .cfix-product-card h3 a {
  color: inherit;
}

.woocommerce .cfix-product-card .price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  direction: ltr;
  margin-bottom: 10px;
}

.woocommerce .cfix-product-card .price .woocommerce-Price-amount {
  font-size: 18px;
  font-weight: 900;
}

.woocommerce .cfix-product-card .price .old .woocommerce-Price-amount {
  font-size: 11px;
  color: #9b9b9b;
  text-decoration: line-through;
  font-weight: 700;
}

.woocommerce .cfix-product-card .p-img {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 4px;
}

.woocommerce .cfix-product-card .p-img img {
  max-height: 114px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}

.woocommerce-result-count,
.woocommerce-ordering {
  margin: 0;
}

.woocommerce-ordering select.sort,
.woocommerce-ordering select.orderby {
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  background: #fff;
}

.woocommerce nav.woocommerce-pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  gap: 8px;
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  width: 34px;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--yellow, #f7c400);
  border-color: var(--yellow, #f7c400);
}

.category-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  background-image: var(--hero-bg);
}

.category-hero {
  position: relative;
}

/* Category / shop archive */
body.category-page main.wrap > h1.page-title,
body.category-page .woocommerce-products-header {
  display: none;
}

.woocommerce-archive .category-hero {
  height: 250px;
  border-radius: 7px;
  overflow: hidden;
  margin-top: 16px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.13);
}

.woocommerce-archive .hero-text {
  position: absolute;
  z-index: 2;
  right: 34px;
  top: 33px;
  color: #fff;
  max-width: 420px;
}

.woocommerce-archive .hero-text .label {
  height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  background: var(--yellow, #f7c400);
  color: #111;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.woocommerce-archive .hero-text h1 {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 900;
}

.woocommerce-archive .hero-text p {
  margin: 0;
  color: #ededed;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.woocommerce-archive .hero-text b {
  color: var(--yellow, #f7c400);
}

body.category-page .cfix-catalog-root .category-layout,
body.category-page main.woocommerce-archive .category-layout,
.woocommerce-archive .category-layout {
  display: grid;
  grid-template-columns: 1fr 216px;
  gap: 18px;
  margin-top: 18px;
  direction: ltr;
  align-items: start;
}

.woocommerce-archive .products-zone,
.woocommerce-archive .filters {
  direction: rtl;
}

.woocommerce-archive .filters {
  border: 1px solid var(--line, #e9e9e9);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
  position: sticky;
  top: 14px;
}

.woocommerce-archive .filter-title {
  height: 43px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
}

.woocommerce-archive .filter-title span {
  color: var(--yellow, #f7c400);
  font-size: 19px;
}

.woocommerce-archive .toolbar {
  height: 58px;
  border: 1px solid var(--line, #e9e9e9);
  border-radius: 7px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  margin-bottom: 14px;
}

.woocommerce-archive .cat-info {
  display: flex;
  align-items: center;
  gap: 9px;
}

.woocommerce-archive .cat-info h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.woocommerce-archive .cat-info span {
  font-size: 12px;
  color: #777;
  font-weight: 600;
}

.woocommerce-archive .toolbar-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.woocommerce-archive .chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.woocommerce-archive .chips .chip {
  height: 31px;
  padding: 0 11px;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  color: #444;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.woocommerce-archive .chips .chip.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.woocommerce-archive .chips .chip.active span {
  color: var(--yellow, #f7c400);
}

.woocommerce-archive .wide-sale {
  height: 98px;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  margin: 16px 0;
  background: #111;
  color: #fff;
}

.woocommerce-archive .wide-sale::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.42)),
    url("https://images.unsplash.com/photo-1612198188060-c7c2a3b66eae?auto=format&fit=crop&w=1200&q=85") center/cover;
}

.woocommerce-archive .wide-sale > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1;
}

.woocommerce-archive .wide-sale strong {
  font-size: 24px;
  font-weight: 900;
}

.woocommerce-archive .wide-sale span {
  color: var(--yellow, #f7c400);
}

.woocommerce-archive .wide-sale-btn {
  height: 36px;
  border: 0;
  border-radius: 4px;
  background: var(--yellow, #f7c400);
  color: #111;
  font-size: 13px;
  font-weight: 900;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.woocommerce-archive .pagination {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 6px;
}

.woocommerce-archive .pagination nav.woocommerce-pagination {
  margin: 0;
}

.woocommerce-archive .pagination .page-numbers {
  width: 34px;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #333;
  text-decoration: none;
}

.woocommerce-archive .pagination .page-numbers.current {
  background: var(--yellow, #f7c400);
  border-color: var(--yellow, #f7c400);
  color: #111;
}

.woocommerce-archive .pagination .page-numbers.prev,
.woocommerce-archive .pagination .page-numbers.next {
  width: auto;
  padding: 0 13px;
}

.woocommerce-archive .seo-box {
  border: 1px solid var(--line, #e9e9e9);
  border-radius: 7px;
  background: #fff;
  padding: 18px;
  margin-top: 18px;
}

.woocommerce-archive .seo-box h2 {
  margin: 0 0 9px;
  font-size: 19px;
  font-weight: 900;
}

.woocommerce-archive .seo-box p {
  margin: 0;
  color: #444;
  font-size: 13.5px;
  line-height: 1.85;
}

/* Catalog cards — match category.html article.product */
body.category-page .product-grid,
.woocommerce-archive .product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  direction: rtl;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.category-page .product-grid > .product,
.woocommerce-archive .product-grid > .product,
body.single-product-page .related-grid > .product,
.woocommerce-single .related-grid > .product {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  height: auto;
  border: 1px solid #ededed;
  border-radius: 6px;
  background: #fff;
  padding: 10px 9px 12px;
  margin: 0;
  width: auto;
  float: none;
  transition: 0.18s;
}

body.category-page .product-grid > .product:hover,
.woocommerce-archive .product-grid > .product:hover,
body.single-product-page .related-grid > .product:hover,
.woocommerce-single .related-grid > .product:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

body.category-page .product-grid > .product .sale,
.woocommerce-archive .product-grid > .product .sale,
body.single-product-page .related-grid > .product .sale,
.woocommerce-single .related-grid > .product .sale {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  background: var(--yellow, #f7c400);
  color: #111;
  border-radius: 0 0 0 5px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 900;
  z-index: 4;
}

body.category-page .product-grid > .product .heart,
.woocommerce-archive .product-grid > .product .heart,
body.single-product-page .related-grid > .product .heart,
.woocommerce-single .related-grid > .product .heart {
  position: absolute;
  left: 8px;
  right: auto;
  top: 8px;
  color: #bcbcbc;
  font-size: 18px;
  z-index: 3;
  cursor: pointer;
  line-height: 1;
}

body.category-page .product-grid > .product .p-img,
.woocommerce-archive .product-grid > .product .p-img,
body.single-product-page .related-grid > .product .p-img,
.woocommerce-single .related-grid > .product .p-img {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 4px;
  flex-shrink: 0;
  width: 100%;
  background: #fff;
  border-radius: 4px;
}

body.category-page .product-grid > .product .p-img a,
.woocommerce-archive .product-grid > .product .p-img a,
body.single-product-page .related-grid > .product .p-img a,
.woocommerce-single .related-grid > .product .p-img a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #fff;
}

body.category-page .product-grid > .product .p-img img,
.woocommerce-archive .product-grid > .product .p-img img,
body.single-product-page .related-grid > .product .p-img img,
.woocommerce-single .related-grid > .product .p-img img {
  max-height: 114px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}

body.category-page .product-grid > .product h3,
.woocommerce-archive .product-grid > .product h3,
body.single-product-page .related-grid > .product h3,
.woocommerce-single .related-grid > .product h3 {
  margin: 0 auto 2px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.25;
  font-weight: 900;
  min-height: 0;
  color: #151515;
  direction: ltr;
  max-width: 100%;
  padding: 0 4px;
}

body.category-page .product-grid > .product h3 a,
.woocommerce-archive .product-grid > .product h3 a,
body.single-product-page .related-grid > .product h3 a,
.woocommerce-single .related-grid > .product h3 a {
  color: inherit;
  text-decoration: none;
}

body.category-page .product-grid > .product small,
.woocommerce-archive .product-grid > .product small,
body.single-product-page .related-grid > .product small,
.woocommerce-single .related-grid > .product small {
  display: block;
  text-align: center;
  font-size: 10.5px;
  color: #777;
  font-weight: 700;
  margin-bottom: 5px;
}

body.category-page .product-grid > .product .price,
.woocommerce-archive .product-grid > .product .price,
body.single-product-page .related-grid > .product .price,
.woocommerce-single .related-grid > .product .price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  direction: ltr;
  margin-bottom: 6px;
}

body.category-page .product-grid > .product .price .old,
.woocommerce-archive .product-grid > .product .price .old,
body.single-product-page .related-grid > .product .price .old,
.woocommerce-single .related-grid > .product .price .old {
  font-size: 11px;
  color: #9b9b9b;
  text-decoration: line-through;
  font-weight: 700;
}

body.category-page .product-grid > .product .price .new,
.woocommerce-archive .product-grid > .product .price .new,
body.single-product-page .related-grid > .product .price .new,
.woocommerce-single .related-grid > .product .price .new {
  font-size: 18px;
  font-weight: 900;
  color: #111;
}

body.category-page .product-grid > .product .button,
.woocommerce-archive .product-grid > .product .button,
body.single-product-page .related-grid > .product .button,
.woocommerce-single .related-grid > .product .button {
  height: 32px;
  width: 100%;
  margin-top: auto;
  border: 0;
  border-radius: 4px;
  background: var(--yellow, #f7c400);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  color: #111;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0;
  line-height: 32px;
}

.woocommerce-archive .filters .check.is-active span {
  font-weight: 900;
  color: #111;
}

.woocommerce-archive .filters .check.is-active {
  background: #fffbea;
}

.woocommerce-archive .filters .clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #555;
}

.woocommerce-archive .shop-filter-form {
  margin: 0;
}

/* Single product summary — matches product.html */
.woocommerce-single .product-layout {
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 26px;
  margin-top: 22px;
  align-items: start;
  direction: ltr;
}

.woocommerce-single .gallery,
.woocommerce-single .summary {
  direction: rtl;
}

.woocommerce-single .summary {
  background: #fff;
  padding: 22px 24px 18px;
}

.woocommerce-single .summary .sku-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.woocommerce-single .summary .brand-pill {
  display: inline-flex;
  align-items: center;
  height: 29px;
  padding: 0 12px;
  background: #111;
  color: #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  direction: ltr;
}

.woocommerce-single .summary .sku {
  font-size: 12px;
  color: #777;
  font-weight: 600;
}

.woocommerce-single .summary h1,
.woocommerce-single .summary .product_title {
  margin: 0 0 10px;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 900;
  color: #111;
}

.woocommerce-single .summary .rating {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #888;
  font-size: 13px;
  margin-bottom: 14px;
}

.woocommerce-single .summary .rating a {
  color: #888;
  text-decoration: underline;
}

.woocommerce-single .summary .stars {
  color: var(--yellow, #f7c400);
  letter-spacing: 1px;
  font-size: 15px;
}

.woocommerce-single .summary .stock-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.woocommerce-single .summary .stock-line .stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  background: #eaf8ef;
  color: #10833a;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 900;
}

.woocommerce-single .summary .stock-line .stock::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green, #14a54a);
}

.woocommerce-single .summary .delivery-note {
  font-size: 12px;
  color: #555;
  font-weight: 600;
}

.woocommerce-single .summary .price-box {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 18px 0;
  margin-bottom: 18px;
}

.woocommerce-single .summary .price-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
}

.woocommerce-single .summary .old-price {
  font-size: 17px;
  color: #aaa;
  text-decoration: line-through;
  font-weight: 700;
}

.woocommerce-single .summary .main-price {
  font-size: 39px;
  font-weight: 900;
  line-height: 0.95;
  color: #111;
}

.woocommerce-single .summary .vat {
  font-size: 12px;
  color: #777;
  margin-top: 7px;
}

.woocommerce-single .summary .payments {
  margin-top: 8px;
  font-size: 13px;
  color: #222;
  font-weight: 700;
}

.woocommerce-single .summary .payments b {
  color: var(--yellow, #f7c400);
  background: #111;
  padding: 1px 6px;
  border-radius: 3px;
}

.woocommerce-single .summary .options {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.woocommerce-single .summary .option-block label {
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 7px;
}

.woocommerce-single .summary .select-like {
  height: 42px;
  border: 1px solid #dedede;
  border-radius: 5px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 13px;
  color: #333;
}

.woocommerce-single .summary .color-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.woocommerce-single .summary .chip {
  height: 35px;
  min-width: 64px;
  border: 1px solid #dedede;
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.woocommerce-single .summary .chip.active {
  border: 2px solid var(--yellow, #f7c400);
  background: #fffbea;
}

.woocommerce-single .summary .summary-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}

.woocommerce-single .summary .summary-benefits div {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-left: 1px solid #eee;
  font-size: 11px;
  color: #555;
  font-weight: 700;
}

.woocommerce-single .summary .summary-benefits div:last-child {
  border-left: 0;
}

.woocommerce-single .summary .summary-benefits i {
  font-style: normal;
  color: #111;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.woocommerce-single .summary .summary-benefits i svg {
  width: 24px;
  height: 24px;
  display: block;
}

.woocommerce-single .summary .price,
.woocommerce-single .summary .woocommerce-variation-price,
.woocommerce-single .summary > p.stock {
  display: none;
}

/* Gallery — CFIX custom gallery (product.html) */
body.single-product-page .gallery,
.woocommerce-single .gallery {
  background: #fff;
  padding: 15px;
  position: relative;
}

body.single-product-page .main-image,
.woocommerce-single .main-image {
  height: 375px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
}

body.single-product-page .cfix-gallery-main,
.woocommerce-single .cfix-gallery-main {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 6px;
}

body.single-product-page .cfix-gallery-frame,
.woocommerce-single .cfix-gallery-frame {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 6px;
}

body.single-product-page .cfix-gallery-frame.active,
.woocommerce-single .cfix-gallery-frame.active {
  display: flex;
}

body.single-product-page .cfix-gallery-image,
.woocommerce-single .cfix-gallery-image {
  display: block;
  max-height: 330px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}

body.single-product-page .gallery .thumb,
.woocommerce-single .gallery .thumb {
  height: 72px;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

body.single-product-page .gallery .thumb.active,
.woocommerce-single .gallery .thumb.active {
  border: 2px solid var(--yellow, #f7c400);
}

body.single-product-page .gallery .thumb img,
.woocommerce-single .gallery .thumb img {
  max-height: 58px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 3px;
}

body.single-product-page .gallery .thumbs,
.woocommerce-single .gallery .thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

/* Variable product — fallback to WooCommerce flexslider thumbs */
body.single-product-page .main-image .flex-control-nav.flex-control-thumbs,
.woocommerce-single .main-image .flex-control-nav.flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

body.single-product-page .main-image .flex-control-thumbs li,
.woocommerce-single .main-image .flex-control-thumbs li {
  width: auto !important;
  float: none !important;
  height: 72px !important;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin: 0 !important;
}

body.single-product-page .main-image .flex-control-thumbs li img,
.woocommerce-single .main-image .flex-control-thumbs li img {
  max-height: 58px;
  object-fit: contain;
  margin: 0 auto;
}

body.single-product-page .main-image .flex-control-thumbs li.flex-active,
.woocommerce-single .main-image .flex-control-thumbs li.flex-active {
  border: 2px solid var(--yellow, #f7c400);
}

body.single-product-page .main-image .woocommerce-product-gallery__trigger,
.woocommerce-single .main-image .woocommerce-product-gallery__trigger {
  display: none;
}

body.single-product-page .main-image .woocommerce-product-gallery__image img,
.woocommerce-single .main-image .woocommerce-product-gallery__image img {
  max-height: 330px !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  background: #fff;
}

body.single-product-page .sale-badge,
.woocommerce-single .sale-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--yellow, #f7c400);
  color: #111;
  border-radius: 0 0 6px 0;
  font-size: 13px;
  font-weight: 900;
  padding: 6px 10px;
  z-index: 2;
}

body.single-product-page .gallery .wish,
.woocommerce-single .gallery .wish {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1px solid #eee;
  border-radius: 50%;
  background: #fff;
  font-size: 21px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
}

.woocommerce-single form.cart,
.woocommerce-single form.variations_form {
  margin: 0;
}

.woocommerce-single .buy-row,
body.single-product-page .buy-row {
  display: grid;
  grid-template-columns: 95px 1fr 48px;
  gap: 10px;
  margin-bottom: 12px;
  align-items: stretch;
}

.woocommerce-single .buy-row .quantity,
.woocommerce-single .buy-row .qty,
body.single-product-page .buy-row .quantity,
body.single-product-page .buy-row .qty {
  height: 45px;
  border: 1px solid #dedede;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  margin: 0;
  float: none;
}

.woocommerce-single .buy-row .qty button,
.woocommerce-single .buy-row .quantity button,
body.single-product-page .buy-row .qty button,
body.single-product-page .buy-row .quantity button {
  width: 30px;
  height: 100%;
  border: 0;
  background: #f7f7f7;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.woocommerce-single .buy-row .quantity .qty-input,
.woocommerce-single .buy-row .qty .qty-input,
body.single-product-page .buy-row .quantity .qty-input,
body.single-product-page .buy-row .qty .qty-input {
  width: 100%;
  border: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  background: transparent;
  -moz-appearance: textfield;
  flex: 1;
  min-width: 0;
  padding: 0;
  height: 100%;
  box-shadow: none;
}

.woocommerce-single .buy-row .quantity .qty-input::-webkit-outer-spin-button,
.woocommerce-single .buy-row .quantity .qty-input::-webkit-inner-spin-button,
.woocommerce-single .buy-row .qty .qty-input::-webkit-outer-spin-button,
.woocommerce-single .buy-row .qty .qty-input::-webkit-inner-spin-button,
body.single-product-page .buy-row .quantity .qty-input::-webkit-outer-spin-button,
body.single-product-page .buy-row .quantity .qty-input::-webkit-inner-spin-button,
body.single-product-page .buy-row .qty .qty-input::-webkit-outer-spin-button,
body.single-product-page .buy-row .qty .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.woocommerce-single .cart-btn,
.woocommerce-single .buy-row .single_add_to_cart_button {
  height: 45px;
  border: 0;
  border-radius: 5px;
  background: var(--yellow, #f7c400);
  color: #111;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}

.woocommerce-single .compare {
  height: 45px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background: #fff;
  font-size: 20px;
  color: #555;
  cursor: pointer;
}

.woocommerce-single .quick-buy,
.woocommerce-single .cfix-quick-buy {
  height: 42px;
  width: 100%;
  border: 0;
  border-radius: 5px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  margin-bottom: 16px;
}

.woocommerce-single .options .select-like select,
.woocommerce-single .options .cfix-variation-select {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  appearance: none;
  direction: rtl;
}

.woocommerce-single .variation-select-wrap {
  height: 42px;
  border: 1px solid #dedede;
  border-radius: 5px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.woocommerce-single .color-chips .chip.active {
  border: 2px solid var(--yellow, #f7c400);
  background: #fffbea;
}

.woocommerce-single .product_meta {
  display: none;
}

/* Product tabs styled as info-tabs */
.cfix-product-tabs .woocommerce-tabs {
  border: 0;
  margin: 0;
}

.cfix-product-tabs .woocommerce-tabs ul.tabs {
  display: flex;
  border: 0;
  border-bottom: 1px solid var(--line, #e9e9e9);
  background: #fff;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cfix-product-tabs .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-inline-start: 1px solid var(--line, #e9e9e9);
}

.cfix-product-tabs .woocommerce-tabs ul.tabs li:first-child {
  border-inline-start: 0;
}

.cfix-product-tabs .woocommerce-tabs ul.tabs li a {
  height: 50px;
  min-width: 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #111;
  padding: 0 18px;
}

.cfix-product-tabs .woocommerce-tabs ul.tabs li.active a {
  background: var(--yellow, #f7c400);
}

.cfix-product-tabs .woocommerce-Tabs-panel {
  padding: 22px;
}

.cfix-product-tabs .woocommerce-Tabs-panel h2:first-child {
  font-size: 21px;
  margin: 0 0 13px;
  font-weight: 900;
}

.cfix-product-tabs .info-card {
  border: 0;
  padding: 0;
  background: #fff;
}

.cfix-product-tabs .info-card p {
  font-size: 14px;
  color: #444;
  line-height: 1.85;
  margin: 0 0 14px;
}

.cfix-product-tabs .specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 15px;
}

.cfix-product-tabs .specs div {
  display: flex;
  justify-content: space-between;
  padding: 11px 13px;
  border-bottom: 1px solid #eee;
  border-left: 1px solid #eee;
  font-size: 13px;
}

.cfix-product-tabs .specs div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.cfix-product-tabs .specs div:nth-child(2n) {
  border-left: 0;
}

.cfix-product-tabs .specs strong {
  font-weight: 900;
  color: #111;
}

.cfix-product-tabs .specs span {
  color: #666;
  direction: ltr;
}

.cfix-product-tabs .woocommerce-product-attributes,
.cfix-product-tabs table.shop_attributes {
  display: none;
}

.cfix-product-tabs #tab-reviews .woocommerce-Reviews-title {
  font-size: 21px;
  margin: 0 0 13px;
  font-weight: 900;
}

.cfix-product-tabs #tab-reviews .commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cfix-product-tabs #tab-reviews .comment_container {
  border-bottom: 1px solid #eee;
  padding: 12px 0;
}

.cfix-product-tabs #tab-reviews .star-rating {
  color: var(--yellow, #f7c400);
}

.cfix-product-tabs #tab-reviews .comment-form {
  margin-top: 18px;
}

/* Below grid + sidebar */
.woocommerce-single .below-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 22px;
  margin-top: 25px;
  direction: ltr;
}

.woocommerce-single .info-tabs,
.woocommerce-single .product-sidebar,
.woocommerce-single .side-box {
  direction: rtl;
}

.woocommerce-single .info-tabs {
  border: 1px solid var(--line, #e9e9e9);
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}

.woocommerce-single .product-sidebar .side-box {
  border: 1px solid #eee;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 15px;
}

.woocommerce-single .side-title {
  height: 43px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
}

.woocommerce-single .side-content {
  padding: 14px;
}

.woocommerce-single .mini-product {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.woocommerce-single .mini-product:first-child {
  padding-top: 0;
}

.woocommerce-single .mini-product:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.woocommerce-single .mini-product img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #fff;
}

.woocommerce-single .mini-product h4 {
  margin: 0 0 3px;
  font-size: 12px;
  line-height: 1.25;
  direction: ltr;
}

.woocommerce-single .mini-product strong {
  font-size: 13px;
  color: #111;
}

.woocommerce-single .sidebar-empty {
  margin: 0;
  font-size: 12px;
  color: #777;
}

.woocommerce-single .coupon {
  background: #fffbea;
  border: 1px dashed var(--yellow, #f7c400);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}

.woocommerce-single .coupon b {
  font-size: 18px;
  color: #111;
}

.woocommerce-single .coupon p {
  margin: 5px 0 0;
  font-size: 12px;
  color: #555;
}

/* Related products */
.woocommerce-single .related {
  margin-top: 28px;
}

.woocommerce-single .section-head {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}

.woocommerce-single .section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.woocommerce-single .section-head a {
  font-size: 13px;
  font-weight: 900;
  color: #111;
}

.woocommerce-single .related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-top: 15px;
  direction: rtl;
}

/* Legacy WC related loop (fallback) */
.related > .products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-top: 15px;
}

.related > h2 {
  display: none;
}

.related .section-head + .products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-top: 15px;
}

/* Cart page */
.woocommerce-cart .cart-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px;
  margin-top: 18px;
}

.woocommerce-cart .cart-layout.is-empty {
  grid-template-columns: 1fr;
}

.woocommerce-cart .woocommerce-cart-form {
  border: 1px solid var(--line, #e9e9e9);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.woocommerce-cart .shop_table {
  border: 0;
  margin: 0;
}

.woocommerce-cart .cart-collaterals .cart_totals {
  border: 1px solid var(--line, #e9e9e9);
  border-radius: 7px;
  background: #fff;
  padding: 18px;
}

.site-cart .cart-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.badge.is-empty,
.cart-count.is-empty,
.cart-count[hidden] {
  display: none;
}

.woocommerce-breadcrumb a {
  color: inherit;
}

.woocommerce-cart .cart-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-cart .cart-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px 16px;
  align-items: center;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line, #e9e9e9);
}

.woocommerce-cart .cart-row img {
  width: 92px;
  height: 92px;
  object-fit: contain;
}

.woocommerce-account .account-page-title,
.woocommerce-account h1.entry-title {
  margin: 22px 0 16px;
  font-size: 28px;
  font-weight: 900;
}

.woocommerce .hero .cta,
body.home .hero .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--yellow, #f7c400);
  color: #000;
  height: 42px;
  min-width: 180px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(247, 196, 0, 0.25);
  text-decoration: none;
  white-space: nowrap;
}

.woocommerce-before-shop-loop,
.woocommerce .woocommerce-notices-wrapper {
  width: 100%;
}

.woocommerce-archive .woocommerce-result-count {
  font-size: 12px;
  color: #777;
  font-weight: 600;
}

@media (max-width: 900px) {
  .woocommerce-single .product-layout,
  .woocommerce-single .below-grid {
    grid-template-columns: 1fr;
    direction: rtl;
  }

  .woocommerce-archive .category-layout {
    grid-template-columns: 1fr;
    direction: rtl;
  }

  body.category-page .cfix-catalog-root .category-layout,
  body.category-page main.woocommerce-archive .category-layout {
    grid-template-columns: 1fr;
    direction: rtl;
  }

  .woocommerce-archive .filters {
    position: static;
    order: 1;
  }

  body.category-page .cfix-catalog-root .filters {
    position: static;
    order: 1;
  }

  .woocommerce-archive .products-zone {
    order: 2;
  }

  body.category-page .cfix-catalog-root .products-zone {
    order: 2;
  }

  .woocommerce-archive .toolbar {
    height: auto;
    min-height: 58px;
    gap: 12px;
    padding: 12px;
    flex-wrap: wrap;
  }

  .woocommerce-archive .category-hero {
    height: 280px;
  }

  .woocommerce-archive .hero-text {
    left: 22px;
    right: 22px;
  }

  .woocommerce-archive .wide-sale > div {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
  }

  .woocommerce-archive .wide-sale strong {
    font-size: 19px;
  }

  body.single-product-page .main-image,
  .woocommerce-single .main-image {
    min-height: 300px;
    height: 300px;
  }

  .woocommerce-single .summary .summary-benefits {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .cfix-product-tabs .specs {
    grid-template-columns: 1fr;
  }

  .cfix-product-tabs .specs div,
  .cfix-product-tabs .specs div:nth-child(2n) {
    border-left: 0;
  }

  .cfix-product-tabs .specs div:nth-last-child(-n + 2) {
    border-bottom: 1px solid #eee;
  }

  .cfix-product-tabs .specs div:last-child {
    border-bottom: 0;
  }

  .woocommerce-single .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .woocommerce .product-grid,
  .home .product-area .product-grid,
  body.category-page .product-grid,
  .woocommerce-archive .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .woocommerce-cart .cart-layout,
  .related > .products {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .woocommerce-single .product-layout {
    margin-top: 14px;
  }

  .woocommerce-archive .category-hero {
    height: 300px;
  }

  .woocommerce-archive .hero-text h1 {
    font-size: 29px;
  }

  .woocommerce-archive .toolbar-left {
    width: 100%;
    justify-content: space-between;
  }

  .woocommerce-archive .toolbar-left select {
    flex: 1;
  }

  .woocommerce-archive .wide-sale {
    height: 120px;
  }

  .woocommerce-archive .cat-info h2 {
    font-size: 16px;
  }

  .woocommerce-single .summary {
    padding: 18px;
  }

  .woocommerce-single .buy-row,
  body.single-product-page .buy-row {
    grid-template-columns: 82px 1fr;
  }

  .woocommerce-single .compare {
    display: none;
  }

  .woocommerce-single .summary .summary-benefits {
    grid-template-columns: 1fr;
  }

  .woocommerce-single .related-grid {
    grid-template-columns: 1fr;
  }

  .woocommerce-single .below-grid {
    margin-top: 18px;
  }

  .cfix-product-tabs .woocommerce-tabs ul.tabs {
    overflow: auto;
  }

  .cfix-product-tabs .woocommerce-tabs ul.tabs li a {
    min-width: 122px;
  }

  .woocommerce-single .summary .main-price {
    font-size: 33px;
  }

  .woocommerce .product-grid,
  body.category-page .product-grid,
  .woocommerce-archive .product-grid {
    grid-template-columns: 1fr;
  }

  body.category-page .product-grid > .product,
  .woocommerce-archive .product-grid > .product,
  body.single-product-page .related-grid > .product,
  .woocommerce-single .related-grid > .product {
    min-height: 310px;
  }

  body.category-page .product-grid > .product .p-img,
  .woocommerce-archive .product-grid > .product .p-img,
  body.single-product-page .related-grid > .product .p-img,
  .woocommerce-single .related-grid > .product .p-img {
    height: 122px;
  }

  body.category-page .product-grid > .product .p-img img,
  .woocommerce-archive .product-grid > .product .p-img img,
  body.single-product-page .related-grid > .product .p-img img,
  .woocommerce-single .related-grid > .product .p-img img {
    max-height: 118px;
  }
}
