:root {
  --scc-store-yellow: #ffb400;
  --scc-store-yellow-dark: #a86f00;
  --scc-store-black: #111111;
  --scc-store-text: #25272b;
  --scc-store-muted: #74777e;
  --scc-store-border: #e8e9ed;
  --scc-store-soft: #f7f7f8;
  --scc-store-radius: 18px;
  --scc-store-shadow: 0 16px 42px rgba(17, 17, 17, 0.07);
}

body.scc-store-ui .site-main .woocommerce,
body.scc-store-ui #primary .woocommerce,
body.scc-store-ui .woocommerce-breadcrumb,
body.scc-store-ui .woocommerce-products-header,
body.scc-store-ui div.product,
body.scc-store-ui ul.products,
body.scc-store-ui .wc-block-cart,
body.scc-store-ui .wc-block-checkout {
  box-sizing: border-box;
  font-family: "Sahel", "Sahel FD", Tahoma, sans-serif !important;
}

body.scc-store-ui .site-main .woocommerce *,
body.scc-store-ui #primary .woocommerce *,
body.scc-store-ui div.product *,
body.scc-store-ui ul.products *,
body.scc-store-ui .wc-block-cart *,
body.scc-store-ui .wc-block-checkout * {
  box-sizing: border-box;
  font-family: "Sahel", "Sahel FD", Tahoma, sans-serif !important;
}

body.scc-store-ui .woocommerce-breadcrumb {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 18px !important;
  color: #999ba1 !important;
  font-size: 12px !important;
  line-height: 1.9;
  direction: rtl;
}

body.scc-store-ui .woocommerce-breadcrumb a {
  color: #5c5f65 !important;
  text-decoration: none !important;
}

body.scc-store-ui .woocommerce-breadcrumb a:hover {
  color: var(--scc-store-yellow-dark) !important;
}

body.scc-store-ui .woocommerce-error,
body.scc-store-ui .woocommerce-message,
body.scc-store-ui .woocommerce-info {
  width: min(1180px, calc(100% - 32px));
  min-height: 54px;
  margin: 18px auto !important;
  padding: 15px 52px 15px 18px !important;
  border: 1px solid var(--scc-store-border) !important;
  border-top: 0 !important;
  border-right: 4px solid var(--scc-store-yellow) !important;
  border-radius: 13px;
  background: #fffaf0 !important;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
  color: #4d4433 !important;
  font-size: 12px;
  line-height: 1.9;
  direction: rtl;
}

body.scc-store-ui .woocommerce-error::before,
body.scc-store-ui .woocommerce-message::before,
body.scc-store-ui .woocommerce-info::before {
  top: 15px !important;
  right: 18px !important;
  left: auto !important;
  color: var(--scc-store-yellow-dark) !important;
}

body.scc-store-ui .woocommerce-error {
  border-right-color: #c83d49 !important;
  background: #fff6f7 !important;
  color: #6b2d32 !important;
}

body.scc-store-ui .woocommerce-error::before {
  color: #c83d49 !important;
}

body.scc-store-ui .woocommerce-message .button,
body.scc-store-ui .woocommerce-info .button {
  float: left !important;
  color: #111 !important;
}

/* Shop and product archives. */
body.scc-shop-ui .woocommerce-products-header,
body.scc-shop-ui .site-main > .page-title,
body.scc-shop-ui #primary > .page-title {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 28px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 22px;
  background:
    radial-gradient(circle at 9% 10%, rgba(255, 180, 0, 0.2), transparent 26%),
    #111;
  color: #fff;
  direction: rtl;
}

body.scc-shop-ui .woocommerce-products-header__title,
body.scc-shop-ui .page-title {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(27px, 3.3vw, 42px) !important;
  font-weight: 900 !important;
  line-height: 1.4;
}

body.scc-shop-ui .term-description,
body.scc-shop-ui .woocommerce-products-header__description {
  max-width: 720px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 2;
}

body.scc-shop-ui .term-description p,
body.scc-shop-ui .woocommerce-products-header__description p {
  margin: 0;
}

body.scc-shop-ui .woocommerce-notices-wrapper,
body.scc-shop-ui .woocommerce-result-count,
body.scc-shop-ui .woocommerce-ordering,
body.scc-shop-ui ul.products,
body.scc-shop-ui .woocommerce-pagination {
  direction: rtl;
}

body.scc-shop-ui .woocommerce-result-count {
  margin: 8px 0 22px !important;
  color: var(--scc-store-muted);
  font-size: 12px;
  line-height: 48px;
}

body.scc-shop-ui .woocommerce-ordering {
  margin: 8px 0 22px !important;
}

body.scc-shop-ui .woocommerce-ordering select {
  min-width: 220px;
  height: 48px;
  padding: 0 15px;
  border: 1px solid var(--scc-store-border);
  border-radius: 11px;
  outline: 0;
  background: #fff;
  color: var(--scc-store-text);
  font-size: 12px;
}

body.scc-shop-ui .woocommerce-ordering select:focus {
  border-color: var(--scc-store-yellow);
  box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.12);
}

body.scc-shop-ui ul.products,
body.scc-product-ui .related ul.products,
body.scc-product-ui .upsells ul.products {
  display: grid !important;
  clear: both;
  margin: 0 0 42px !important;
  padding: 0 !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

body.scc-shop-ui ul.products::before,
body.scc-shop-ui ul.products::after,
body.scc-product-ui .related ul.products::before,
body.scc-product-ui .related ul.products::after,
body.scc-product-ui .upsells ul.products::before,
body.scc-product-ui .upsells ul.products::after {
  display: none !important;
}

body.scc-shop-ui ul.products li.product,
body.scc-product-ui .related ul.products li.product,
body.scc-product-ui .upsells ul.products li.product {
  position: relative;
  display: flex;
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 12px 12px 16px !important;
  overflow: hidden;
  border: 1px solid var(--scc-store-border);
  border-radius: var(--scc-store-radius);
  background: #fff;
  box-shadow: 0 8px 26px rgba(17, 17, 17, 0.035);
  flex-direction: column;
  transition: 0.25s ease;
}

body.scc-shop-ui ul.products li.product:hover,
body.scc-product-ui .related ul.products li.product:hover,
body.scc-product-ui .upsells ul.products li.product:hover {
  border-color: rgba(255, 180, 0, 0.62);
  box-shadow: var(--scc-store-shadow);
  transform: translateY(-4px);
}

body.scc-shop-ui ul.products li.product a.woocommerce-LoopProduct-link,
body.scc-product-ui .related li.product a.woocommerce-LoopProduct-link,
body.scc-product-ui .upsells li.product a.woocommerce-LoopProduct-link {
  display: block;
  color: var(--scc-store-text) !important;
  text-decoration: none !important;
}

body.scc-shop-ui ul.products li.product img,
body.scc-product-ui .related li.product img,
body.scc-product-ui .upsells li.product img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  margin: 0 0 16px !important;
  border-radius: 13px;
  background: var(--scc-store-soft);
  object-fit: contain;
  transition: 0.3s ease;
}

body.scc-shop-ui ul.products li.product:hover img,
body.scc-product-ui .related li.product:hover img,
body.scc-product-ui .upsells li.product:hover img {
  transform: scale(1.025);
}

body.scc-shop-ui ul.products li.product .woocommerce-loop-product__title,
body.scc-product-ui .related li.product .woocommerce-loop-product__title,
body.scc-product-ui .upsells li.product .woocommerce-loop-product__title {
  min-height: 48px;
  margin: 0 !important;
  padding: 0 4px !important;
  color: var(--scc-store-text);
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.8;
}

body.scc-shop-ui ul.products li.product .price,
body.scc-product-ui .related li.product .price,
body.scc-product-ui .upsells li.product .price {
  display: block;
  min-height: 34px;
  margin: 8px 0 12px !important;
  padding: 0 4px;
  color: var(--scc-store-yellow-dark) !important;
  font-size: 14px !important;
  font-weight: 900;
  line-height: 1.7;
}

body.scc-shop-ui ul.products li.product .price del,
body.scc-product-ui .related li.product .price del,
body.scc-product-ui .upsells li.product .price del {
  color: #a9abb0;
  font-size: 11px;
  opacity: 1;
}

body.scc-shop-ui ul.products li.product .price ins,
body.scc-product-ui .related li.product .price ins,
body.scc-product-ui .upsells li.product .price ins {
  text-decoration: none;
}

body.scc-shop-ui ul.products li.product .scc-tier-label,
body.scc-product-ui .related li.product .scc-tier-label,
body.scc-product-ui .upsells li.product .scc-tier-label {
  display: inline-block;
  margin-top: 4px;
  color: #8a5c00;
  font-size: 9px;
  font-weight: 800;
}

body.scc-shop-ui ul.products li.product .button,
body.scc-product-ui .related li.product .button,
body.scc-product-ui .upsells li.product .button {
  display: flex !important;
  width: 100%;
  min-height: 44px;
  margin: auto 0 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.scc-shop-ui ul.products li.product .button:hover,
body.scc-product-ui .related li.product .button:hover,
body.scc-product-ui .upsells li.product .button:hover {
  background: var(--scc-store-yellow) !important;
  color: #111 !important;
}

body.scc-shop-ui ul.products li.product .added_to_cart,
body.scc-product-ui .related li.product .added_to_cart,
body.scc-product-ui .upsells li.product .added_to_cart {
  margin-top: 9px;
  color: var(--scc-store-yellow-dark);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

body.scc-shop-ui span.onsale,
body.scc-product-ui span.onsale {
  top: 21px !important;
  right: 21px !important;
  left: auto !important;
  z-index: 3;
  display: grid;
  min-width: 48px !important;
  min-height: 29px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: var(--scc-store-yellow) !important;
  color: #111 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 29px !important;
  place-items: center;
}

body.scc-shop-ui .woocommerce-pagination {
  margin: 0 0 48px;
}

body.scc-shop-ui .woocommerce-pagination ul.page-numbers {
  display: flex;
  border: 0 !important;
  gap: 7px;
  justify-content: center;
}

body.scc-shop-ui .woocommerce-pagination ul li {
  overflow: hidden;
  border: 1px solid var(--scc-store-border) !important;
  border-radius: 9px;
}

body.scc-shop-ui .woocommerce-pagination a,
body.scc-shop-ui .woocommerce-pagination span {
  display: grid !important;
  min-width: 40px;
  min-height: 40px;
  padding: 0 !important;
  background: #fff !important;
  color: #4d5056 !important;
  place-items: center;
}

body.scc-shop-ui .woocommerce-pagination span.current,
body.scc-shop-ui .woocommerce-pagination a:hover {
  background: var(--scc-store-yellow) !important;
  color: #111 !important;
}

/* Single product. */
body.scc-product-ui div.product {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 58px !important;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
  direction: rtl;
}

body.scc-product-ui div.product::before,
body.scc-product-ui div.product::after {
  display: none !important;
}

body.scc-product-ui div.product > .woocommerce-product-gallery {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: clamp(15px, 2vw, 24px);
  border: 1px solid var(--scc-store-border);
  border-radius: 24px;
  background: var(--scc-store-soft);
}

body.scc-product-ui .woocommerce-product-gallery__wrapper,
body.scc-product-ui .woocommerce-product-gallery__image,
body.scc-product-ui .woocommerce-product-gallery__image a {
  border-radius: 17px;
}

body.scc-product-ui .woocommerce-product-gallery__image img {
  width: 100% !important;
  max-height: 600px;
  border-radius: 17px;
  object-fit: contain;
}

body.scc-product-ui .flex-control-thumbs {
  display: grid;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

body.scc-product-ui .flex-control-thumbs li {
  float: none !important;
  width: auto !important;
}

body.scc-product-ui .flex-control-thumbs img {
  border: 2px solid transparent;
  border-radius: 10px;
  background: #fff;
}

body.scc-product-ui .flex-control-thumbs img.flex-active,
body.scc-product-ui .flex-control-thumbs img:hover {
  border-color: var(--scc-store-yellow);
}

body.scc-product-ui div.product > .summary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: clamp(8px, 2vw, 20px) 0;
}

body.scc-product-ui .product_title {
  margin: 0 0 12px !important;
  color: var(--scc-store-black);
  font-size: clamp(28px, 3.2vw, 43px) !important;
  font-weight: 900 !important;
  line-height: 1.45;
}

body.scc-product-ui div.product .summary .price {
  margin: 0 0 22px !important;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--scc-store-border);
  color: var(--scc-store-yellow-dark) !important;
  font-size: clamp(20px, 2.2vw, 27px) !important;
  font-weight: 900;
}

body.scc-product-ui div.product .summary .price del {
  margin-left: 7px;
  color: #a6a8ad;
  font-size: 14px;
}

body.scc-product-ui div.product .summary .price ins {
  text-decoration: none;
}

body.scc-product-ui .scc-tier-label,
body.scc-product-ui .scc-partner-minimum {
  display: inline-flex;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 7px;
  background: #fff4d7;
  color: #8a5c00;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.6;
}

body.scc-product-ui .woocommerce-product-details__short-description {
  margin: 0 0 24px;
  color: #64676d;
  font-size: 13px;
  line-height: 2;
}

body.scc-product-ui form.cart {
  margin: 0 0 22px !important;
  padding: 20px;
  border: 1px solid var(--scc-store-border);
  border-radius: 17px;
  background: #fafafa;
}

body.scc-product-ui form.variations_form .variations {
  width: 100%;
  margin: 0 0 12px !important;
  border: 0 !important;
}

body.scc-product-ui form.variations_form .variations tr {
  display: grid;
  margin-bottom: 12px;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

body.scc-product-ui form.variations_form .variations th,
body.scc-product-ui form.variations_form .variations td {
  display: block;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
}

body.scc-product-ui form.variations_form .variations label {
  margin: 0;
  color: #303238;
  font-size: 13px;
  font-weight: 900;
}

body.scc-product-ui form.variations_form .variations select {
  width: 100% !important;
  min-width: 0 !important;
  height: 52px;
  margin: 0 !important;
  padding: 0 14px;
  border: 1px solid #dedfe3;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: #303238;
  font-size: 12px;
}

body.scc-product-ui form.variations_form .variations select:focus {
  border-color: var(--scc-store-yellow);
  box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.12);
}

body.scc-product-ui .reset_variations {
  display: inline-block;
  margin-top: 7px;
  color: #9a6900 !important;
  font-size: 10px;
  font-weight: 800;
}

body.scc-product-ui .single_variation_wrap {
  padding-top: 8px;
}

body.scc-product-ui .woocommerce-variation-price {
  margin-bottom: 12px;
}

body.scc-product-ui .woocommerce-variation-add-to-cart,
body.scc-product-ui form.cart:not(.variations_form) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.scc-product-ui div.product form.cart .quantity,
body.scc-cart-ui .quantity {
  float: none !important;
  margin: 0 !important;
}

body.scc-product-ui div.product form.cart .qty,
body.scc-cart-ui .quantity .qty {
  width: 76px !important;
  height: 52px !important;
  padding: 0 8px !important;
  border: 1px solid #dedfe3 !important;
  border-radius: 10px !important;
  outline: 0;
  background: #fff !important;
  color: #222;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

body.scc-product-ui div.product form.cart .qty:focus,
body.scc-cart-ui .quantity .qty:focus {
  border-color: var(--scc-store-yellow) !important;
  box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.12);
}

body.scc-product-ui div.product form.cart .single_add_to_cart_button {
  min-width: 190px;
  min-height: 52px;
  padding: 0 25px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--scc-store-yellow) !important;
  box-shadow: 0 10px 24px rgba(255, 180, 0, 0.2);
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

body.scc-product-ui div.product form.cart .single_add_to_cart_button:hover {
  background: #111 !important;
  color: #fff !important;
}

body.scc-product-ui div.product form.cart .single_add_to_cart_button.disabled {
  background: #dedfe3 !important;
  box-shadow: none;
  color: #898b90 !important;
}

body.scc-product-ui .product_meta {
  display: flex;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--scc-store-border);
  color: var(--scc-store-muted);
  font-size: 11px;
  flex-wrap: wrap;
  gap: 8px 18px;
}

body.scc-product-ui .product_meta > span {
  display: inline-flex;
  gap: 4px;
}

body.scc-product-ui .product_meta a {
  color: var(--scc-store-yellow-dark) !important;
  text-decoration: none !important;
}

body.scc-product-ui div.product > .woocommerce-tabs,
body.scc-product-ui div.product > .related,
body.scc-product-ui div.product > .upsells {
  grid-column: 1 / -1;
  width: 100%;
}

body.scc-product-ui .woocommerce-tabs {
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid var(--scc-store-border);
}

body.scc-product-ui .woocommerce-tabs ul.tabs {
  display: flex;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto;
  border: 0 !important;
  gap: 8px;
}

body.scc-product-ui .woocommerce-tabs ul.tabs::before,
body.scc-product-ui .woocommerce-tabs ul.tabs li::before,
body.scc-product-ui .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

body.scc-product-ui .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--scc-store-border) !important;
  border-radius: 10px 10px 0 0 !important;
  background: #f7f7f8 !important;
  white-space: nowrap;
}

body.scc-product-ui .woocommerce-tabs ul.tabs li a {
  padding: 12px 19px !important;
  color: #565960 !important;
  font-size: 12px;
  font-weight: 800 !important;
}

body.scc-product-ui .woocommerce-tabs ul.tabs li.active {
  border-color: var(--scc-store-yellow) !important;
  background: var(--scc-store-yellow) !important;
}

body.scc-product-ui .woocommerce-tabs ul.tabs li.active a {
  color: #111 !important;
}

body.scc-product-ui .woocommerce-tabs .panel {
  margin: 0 !important;
  padding: clamp(22px, 3vw, 34px) !important;
  border: 1px solid var(--scc-store-border);
  border-radius: 0 15px 15px 15px;
  color: #5e6168;
  font-size: 13px;
  line-height: 2.1;
}

body.scc-product-ui .woocommerce-tabs .panel h2,
body.scc-product-ui .related > h2,
body.scc-product-ui .upsells > h2 {
  margin: 0 0 20px !important;
  color: #111;
  font-size: clamp(22px, 2.5vw, 31px) !important;
  font-weight: 900;
}

body.scc-product-ui .woocommerce-product-attributes {
  overflow: hidden;
  border: 1px solid var(--scc-store-border) !important;
  border-radius: 12px;
  border-collapse: separate !important;
  border-spacing: 0;
}

body.scc-product-ui .woocommerce-product-attributes th,
body.scc-product-ui .woocommerce-product-attributes td {
  padding: 14px 16px !important;
  border-color: var(--scc-store-border) !important;
  font-size: 12px;
}

body.scc-product-ui .related,
body.scc-product-ui .upsells {
  margin-top: 26px;
}

/* Classic cart. */
body.scc-cart-ui .woocommerce:has(> .woocommerce-cart-form) {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 58px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 24px;
  align-items: start;
  direction: rtl;
}

body.scc-cart-ui .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-notices-wrapper,
body.scc-cart-ui .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-error,
body.scc-cart-ui .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-message,
body.scc-cart-ui .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-info {
  grid-column: 1 / -1;
}

body.scc-cart-ui .woocommerce-cart-form {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  min-width: 0;
}

body.scc-cart-ui table.shop_table.cart {
  overflow: hidden;
  margin: 0 !important;
  border: 1px solid var(--scc-store-border) !important;
  border-radius: 17px !important;
  background: #fff;
  border-collapse: separate !important;
  border-spacing: 0;
  box-shadow: var(--scc-store-shadow);
}

body.scc-cart-ui table.shop_table.cart th {
  padding: 15px 12px !important;
  border-bottom: 1px solid var(--scc-store-border) !important;
  background: #f6f6f7;
  color: #4d5056;
  font-size: 11px;
  font-weight: 900;
}

body.scc-cart-ui table.shop_table.cart td {
  padding: 15px 12px !important;
  border-color: var(--scc-store-border) !important;
  color: #565960;
  font-size: 12px;
  vertical-align: middle;
}

body.scc-cart-ui table.shop_table.cart .product-thumbnail {
  width: 92px;
}

body.scc-cart-ui table.shop_table.cart .product-thumbnail img {
  width: 70px !important;
  height: 70px !important;
  border-radius: 10px;
  background: #f5f5f6;
  object-fit: contain;
}

body.scc-cart-ui table.shop_table.cart .product-name a {
  color: #24262a !important;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none !important;
}

body.scc-cart-ui table.shop_table.cart .variation {
  margin-top: 7px;
  color: #8a8d93;
  font-size: 10px;
}

body.scc-cart-ui table.shop_table.cart .variation dt,
body.scc-cart-ui table.shop_table.cart .variation dd,
body.scc-cart-ui table.shop_table.cart .variation p {
  margin: 0 0 3px !important;
}

body.scc-cart-ui table.shop_table.cart .amount {
  color: #8b5d00;
  font-weight: 900;
}

body.scc-cart-ui table.shop_table.cart .remove {
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid #f0d4d6;
  border-radius: 8px;
  background: #fff7f7;
  color: #b33e46 !important;
  font-size: 17px;
  line-height: 1 !important;
  place-items: center;
}

body.scc-cart-ui table.shop_table.cart .remove:hover {
  background: #b33e46 !important;
  color: #fff !important;
}

body.scc-cart-ui table.shop_table.cart td.actions {
  padding: 16px !important;
  background: #fafafa;
}

body.scc-cart-ui table.shop_table.cart .coupon {
  display: flex;
  gap: 8px;
}

body.scc-cart-ui table.shop_table.cart .coupon .input-text {
  width: 180px !important;
  height: 46px;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid #dedfe3 !important;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  font-size: 11px;
}

body.scc-cart-ui table.shop_table.cart button.button,
body.scc-cart-ui table.shop_table.cart input.button {
  min-height: 46px;
  padding: 0 17px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

body.scc-cart-ui table.shop_table.cart button.button:hover,
body.scc-cart-ui table.shop_table.cart input.button:hover {
  background: var(--scc-store-yellow) !important;
  color: #111 !important;
}

body.scc-cart-ui table.shop_table.cart button.button:disabled {
  background: #d9dade !important;
  color: #8e9095 !important;
}

body.scc-cart-ui .cart-collaterals {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

body.scc-cart-ui .cart-collaterals .cart_totals {
  position: sticky;
  top: 24px;
  float: none !important;
  width: 100% !important;
  padding: 22px;
  border: 1px solid var(--scc-store-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--scc-store-shadow);
}

body.scc-cart-ui .cart_totals h2 {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--scc-store-border);
  color: #111;
  font-size: 20px;
  font-weight: 900;
}

body.scc-cart-ui .cart_totals table {
  margin: 0 0 18px !important;
  border: 0 !important;
  border-collapse: collapse !important;
}

body.scc-cart-ui .cart_totals th,
body.scc-cart-ui .cart_totals td {
  padding: 13px 0 !important;
  border-color: var(--scc-store-border) !important;
  color: #55585f;
  font-size: 11px;
  vertical-align: top;
}

body.scc-cart-ui .cart_totals td {
  text-align: left;
}

body.scc-cart-ui .cart_totals .order-total th,
body.scc-cart-ui .cart_totals .order-total td {
  color: #111;
  font-size: 14px;
  font-weight: 900;
}

body.scc-cart-ui .wc-proceed-to-checkout {
  padding: 0 !important;
}

body.scc-cart-ui .wc-proceed-to-checkout .checkout-button {
  display: flex !important;
  min-height: 54px;
  margin: 0 !important;
  padding: 0 18px !important;
  border-radius: 11px !important;
  background: var(--scc-store-yellow) !important;
  box-shadow: 0 10px 24px rgba(255, 180, 0, 0.2);
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
  align-items: center;
  justify-content: center;
}

body.scc-cart-ui .wc-proceed-to-checkout .checkout-button:hover {
  background: #111 !important;
  color: #fff !important;
}

body.scc-cart-ui .cart-empty.woocommerce-info,
body.scc-cart-ui .return-to-shop {
  max-width: 760px;
  margin-right: auto !important;
  margin-left: auto !important;
  text-align: center;
}

body.scc-cart-ui .return-to-shop .button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 22px !important;
  border-radius: 10px !important;
  background: var(--scc-store-yellow) !important;
  color: #111 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  align-items: center;
}

/* Classic checkout. */
body.scc-checkout-ui form.checkout.woocommerce-checkout {
  display: grid;
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 62px;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 430px);
  gap: 0 26px;
  align-items: start;
  direction: rtl;
}

body.scc-checkout-ui form.checkout #customer_details {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 100%;
  margin: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--scc-store-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--scc-store-shadow);
}

body.scc-checkout-ui form.checkout #customer_details .col-1,
body.scc-checkout-ui form.checkout #customer_details .col-2 {
  float: none !important;
  width: 100% !important;
}

body.scc-checkout-ui form.checkout #customer_details .col-2 {
  margin-top: 24px;
}

body.scc-checkout-ui form.checkout h3,
body.scc-checkout-ui form.checkout #order_review_heading {
  color: #111;
  font-size: 21px;
  font-weight: 900;
}

body.scc-checkout-ui form.checkout #customer_details h3 {
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--scc-store-border);
}

body.scc-checkout-ui form.checkout #order_review_heading {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 20px 22px 14px;
  border: 1px solid var(--scc-store-border);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: #fff;
}

body.scc-checkout-ui form.checkout #order_review {
  position: sticky;
  top: 24px;
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  padding: 0 22px 22px;
  border: 1px solid var(--scc-store-border);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: #fff;
  box-shadow: var(--scc-store-shadow);
}

body.scc-checkout-ui form.checkout .form-row {
  margin: 0 0 16px !important;
  padding: 0 !important;
}

body.scc-checkout-ui form.checkout label {
  display: block;
  margin-bottom: 7px;
  color: #44474d;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.8;
}

body.scc-checkout-ui form.checkout .required {
  color: #c83d49;
}

body.scc-checkout-ui form.checkout input.input-text,
body.scc-checkout-ui form.checkout select,
body.scc-checkout-ui form.checkout textarea,
body.scc-checkout-ui form.checkout .select2-selection {
  min-height: 52px !important;
  padding: 0 14px !important;
  border: 1px solid #dedfe3 !important;
  border-radius: 10px !important;
  outline: 0;
  background: #fafafa !important;
  box-shadow: none !important;
  color: #303238;
  font-size: 12px !important;
}

body.scc-checkout-ui form.checkout textarea {
  min-height: 120px !important;
  padding-top: 13px !important;
  resize: vertical;
}

body.scc-checkout-ui form.checkout input.input-text:focus,
body.scc-checkout-ui form.checkout select:focus,
body.scc-checkout-ui form.checkout textarea:focus,
body.scc-checkout-ui form.checkout .select2-container--open .select2-selection {
  border-color: var(--scc-store-yellow) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.12) !important;
}

body.scc-checkout-ui form.checkout .select2-selection__rendered {
  padding: 0 !important;
  line-height: 50px !important;
}

body.scc-checkout-ui form.checkout .select2-selection__arrow {
  top: 13px !important;
  right: auto !important;
  left: 10px !important;
}

body.scc-checkout-ui #order_review table.shop_table {
  margin: 0 0 18px !important;
  border: 0 !important;
  border-collapse: collapse !important;
}

body.scc-checkout-ui #order_review table.shop_table th,
body.scc-checkout-ui #order_review table.shop_table td {
  padding: 13px 0 !important;
  border-color: var(--scc-store-border) !important;
  color: #575a60;
  font-size: 11px;
  line-height: 1.8;
}

body.scc-checkout-ui #order_review table.shop_table td {
  text-align: left;
}

body.scc-checkout-ui #order_review table.shop_table .product-name {
  padding-left: 10px !important;
  text-align: right;
}

body.scc-checkout-ui #order_review table.shop_table .order-total th,
body.scc-checkout-ui #order_review table.shop_table .order-total td {
  color: #111;
  font-size: 14px;
  font-weight: 900;
}

body.scc-checkout-ui #payment {
  border-radius: 13px !important;
  background: #f7f7f8 !important;
}

body.scc-checkout-ui #payment ul.payment_methods {
  padding: 17px !important;
  border-color: var(--scc-store-border) !important;
}

body.scc-checkout-ui #payment ul.payment_methods li {
  margin: 0 0 10px;
  color: #303238;
  font-size: 12px;
  font-weight: 800;
}

body.scc-checkout-ui #payment .payment_box {
  border-radius: 9px !important;
  background: #fff !important;
  color: #666970 !important;
  font-size: 10px !important;
  line-height: 1.9;
}

body.scc-checkout-ui #payment .payment_box::before {
  border-bottom-color: #fff !important;
}

body.scc-checkout-ui #payment .place-order {
  margin: 0 !important;
  padding: 17px !important;
}

body.scc-checkout-ui #payment #place_order {
  float: none !important;
  width: 100%;
  min-height: 54px;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--scc-store-yellow) !important;
  box-shadow: 0 10px 24px rgba(255, 180, 0, 0.2);
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

body.scc-checkout-ui #payment #place_order:hover {
  background: #111 !important;
  color: #fff !important;
}

body.scc-checkout-ui .woocommerce-form-coupon-toggle,
body.scc-checkout-ui .woocommerce-form-login-toggle,
body.scc-checkout-ui form.checkout_coupon,
body.scc-checkout-ui form.woocommerce-form-login {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto !important;
  direction: rtl;
}

body.scc-checkout-ui form.checkout_coupon,
body.scc-checkout-ui form.woocommerce-form-login {
  padding: 20px !important;
  border: 1px solid var(--scc-store-border) !important;
  border-radius: 13px !important;
  background: #fff;
}

/* WooCommerce Cart and Checkout blocks. */
body.scc-cart-ui .wc-block-cart,
body.scc-checkout-ui .wc-block-checkout {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 60px !important;
  color: var(--scc-store-text);
  direction: rtl;
}

body.scc-cart-ui .wc-block-cart__main,
body.scc-cart-ui .wc-block-cart__sidebar,
body.scc-checkout-ui .wc-block-checkout__main,
body.scc-checkout-ui .wc-block-checkout__sidebar {
  padding: 22px !important;
  border: 1px solid var(--scc-store-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--scc-store-shadow);
}

body.scc-cart-ui .wc-block-cart-items,
body.scc-checkout-ui .wc-block-components-order-summary-item {
  border-color: var(--scc-store-border) !important;
}

body.scc-cart-ui .wc-block-cart-item__image img,
body.scc-checkout-ui .wc-block-components-order-summary-item__image img {
  border-radius: 10px;
  background: var(--scc-store-soft);
  object-fit: contain;
}

body.scc-cart-ui .wc-block-components-product-name,
body.scc-checkout-ui .wc-block-components-product-name {
  color: #222 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

body.scc-cart-ui .wc-block-components-button,
body.scc-checkout-ui .wc-block-components-checkout-place-order-button {
  min-height: 54px;
  border: 0 !important;
  border-radius: 11px !important;
  background: var(--scc-store-yellow) !important;
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

body.scc-cart-ui .wc-block-components-button:hover,
body.scc-checkout-ui .wc-block-components-checkout-place-order-button:hover {
  background: #111 !important;
  color: #fff !important;
}

body.scc-checkout-ui .wc-block-components-text-input input,
body.scc-checkout-ui .wc-block-components-combobox .wc-block-components-combobox-control input,
body.scc-checkout-ui .wc-blocks-components-select .wc-blocks-components-select__select {
  min-height: 54px !important;
  border: 1px solid #dedfe3 !important;
  border-radius: 10px !important;
  background: #fafafa !important;
  box-shadow: none !important;
}

body.scc-checkout-ui .wc-block-components-text-input input:focus,
body.scc-checkout-ui .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
body.scc-checkout-ui .wc-blocks-components-select .wc-blocks-components-select__select:focus {
  border-color: var(--scc-store-yellow) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 180, 0, 0.12) !important;
}

body.scc-checkout-ui .wc-block-components-checkout-step {
  margin-bottom: 16px;
  padding: 22px !important;
  border: 1px solid var(--scc-store-border);
  border-radius: 15px;
  background: #fff;
}

@media (max-width: 980px) {
  body.scc-product-ui div.product {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 28px;
  }

  body.scc-cart-ui .woocommerce:has(> .woocommerce-cart-form),
  body.scc-checkout-ui form.checkout.woocommerce-checkout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
  }
}

@media (max-width: 780px) {
  body.scc-shop-ui ul.products,
  body.scc-product-ui .related ul.products,
  body.scc-product-ui .upsells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.scc-product-ui div.product,
  body.scc-cart-ui .woocommerce:has(> .woocommerce-cart-form),
  body.scc-checkout-ui form.checkout.woocommerce-checkout {
    grid-template-columns: minmax(0, 1fr);
  }

  body.scc-product-ui div.product > .woocommerce-product-gallery,
  body.scc-product-ui div.product > .summary,
  body.scc-product-ui div.product > .woocommerce-tabs,
  body.scc-product-ui div.product > .related,
  body.scc-product-ui div.product > .upsells,
  body.scc-checkout-ui form.checkout #customer_details,
  body.scc-checkout-ui form.checkout #order_review_heading,
  body.scc-checkout-ui form.checkout #order_review {
    grid-column: 1;
    grid-row: auto;
  }

  body.scc-checkout-ui form.checkout #order_review_heading {
    margin-top: 18px;
  }

  body.scc-cart-ui .cart-collaterals .cart_totals,
  body.scc-checkout-ui form.checkout #order_review {
    position: static;
  }

  body.scc-cart-ui table.shop_table.cart td.actions .coupon {
    float: none;
    width: 100%;
    margin-bottom: 9px;
  }
}

@media (max-width: 560px) {
  body.scc-store-ui .woocommerce-breadcrumb,
  body.scc-store-ui .woocommerce-error,
  body.scc-store-ui .woocommerce-message,
  body.scc-store-ui .woocommerce-info,
  body.scc-shop-ui .woocommerce-products-header,
  body.scc-shop-ui .site-main > .page-title,
  body.scc-shop-ui #primary > .page-title,
  body.scc-product-ui div.product,
  body.scc-cart-ui .woocommerce:has(> .woocommerce-cart-form),
  body.scc-checkout-ui form.checkout.woocommerce-checkout,
  body.scc-checkout-ui .woocommerce-form-coupon-toggle,
  body.scc-checkout-ui .woocommerce-form-login-toggle,
  body.scc-checkout-ui form.checkout_coupon,
  body.scc-checkout-ui form.woocommerce-form-login,
  body.scc-cart-ui .wc-block-cart,
  body.scc-checkout-ui .wc-block-checkout {
    width: calc(100% - 20px);
  }

  body.scc-shop-ui .woocommerce-products-header,
  body.scc-shop-ui .site-main > .page-title,
  body.scc-shop-ui #primary > .page-title {
    margin-bottom: 18px;
    padding: 24px 20px;
    border-radius: 17px;
  }

  body.scc-shop-ui .woocommerce-result-count,
  body.scc-shop-ui .woocommerce-ordering {
    float: none !important;
    width: 100%;
    margin: 0 0 12px !important;
    line-height: 1.8;
  }

  body.scc-shop-ui .woocommerce-ordering select {
    width: 100%;
    min-width: 0;
  }

  body.scc-shop-ui ul.products li.product,
  body.scc-product-ui .related ul.products li.product,
  body.scc-product-ui .upsells ul.products li.product {
    padding: 9px 9px 12px !important;
    border-radius: 14px;
  }

  body.scc-shop-ui ul.products li.product .woocommerce-loop-product__title,
  body.scc-product-ui .related li.product .woocommerce-loop-product__title,
  body.scc-product-ui .upsells li.product .woocommerce-loop-product__title {
    min-height: 42px;
    font-size: 12px !important;
  }

  body.scc-shop-ui ul.products li.product .price,
  body.scc-product-ui .related li.product .price,
  body.scc-product-ui .upsells li.product .price {
    font-size: 12px !important;
  }

  body.scc-shop-ui ul.products li.product .button,
  body.scc-product-ui .related li.product .button,
  body.scc-product-ui .upsells li.product .button {
    min-height: 42px;
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  body.scc-product-ui div.product {
    margin-bottom: 38px !important;
    gap: 20px;
  }

  body.scc-product-ui div.product > .woocommerce-product-gallery {
    padding: 11px;
    border-radius: 17px;
  }

  body.scc-product-ui form.cart {
    padding: 15px;
  }

  body.scc-product-ui form.variations_form .variations tr {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  body.scc-product-ui .woocommerce-variation-add-to-cart,
  body.scc-product-ui form.cart:not(.variations_form) {
    align-items: stretch;
  }

  body.scc-product-ui div.product form.cart .single_add_to_cart_button {
    min-width: 0;
    flex: 1 1 180px;
  }

  body.scc-product-ui .woocommerce-tabs .panel {
    padding: 18px !important;
  }

  body.scc-cart-ui .woocommerce:has(> .woocommerce-cart-form),
  body.scc-checkout-ui form.checkout.woocommerce-checkout {
    margin-top: 16px;
    margin-bottom: 38px;
  }

  body.scc-cart-ui table.shop_table_responsive tr,
  body.scc-cart-ui table.shop_table_responsive td {
    border-color: var(--scc-store-border) !important;
  }

  body.scc-cart-ui table.shop_table_responsive tr.cart_item {
    margin: 0 0 12px;
    padding: 10px;
    border: 1px solid var(--scc-store-border);
    border-radius: 12px;
  }

  body.scc-cart-ui table.shop_table_responsive tr.cart_item td {
    min-height: 42px;
    padding: 10px 5px !important;
  }

  body.scc-cart-ui table.shop_table.cart td.actions {
    padding: 12px !important;
  }

  body.scc-cart-ui table.shop_table.cart .coupon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.scc-cart-ui table.shop_table.cart .coupon .input-text {
    width: 100% !important;
  }

  body.scc-cart-ui table.shop_table.cart td.actions > button.button {
    width: 100%;
  }

  body.scc-cart-ui .cart-collaterals .cart_totals,
  body.scc-checkout-ui form.checkout #customer_details,
  body.scc-checkout-ui form.checkout #order_review_heading,
  body.scc-checkout-ui form.checkout #order_review,
  body.scc-cart-ui .wc-block-cart__main,
  body.scc-cart-ui .wc-block-cart__sidebar,
  body.scc-checkout-ui .wc-block-checkout__main,
  body.scc-checkout-ui .wc-block-checkout__sidebar {
    padding: 17px !important;
    border-radius: 14px;
  }

  body.scc-checkout-ui form.checkout #order_review_heading {
    border-radius: 14px 14px 0 0;
  }

  body.scc-checkout-ui form.checkout #order_review {
    border-radius: 0 0 14px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.scc-store-ui .site-main .woocommerce *,
  body.scc-store-ui #primary .woocommerce *,
  body.scc-store-ui div.product *,
  body.scc-store-ui ul.products * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================================================
 * SCC 0.8.0 — Cart / Checkout polish
 * Page-title treatment, deliberate column spacing and a more premium
 * card hierarchy for both classic WooCommerce and block checkout/cart.
 * ================================================================ */

/* Cart and checkout page titles (Hello/Elementor + common WP templates). */
body.scc-cart-ui h1.entry-title,
body.scc-cart-ui h1.page-title,
body.scc-cart-ui .wp-block-post-title,
body.scc-checkout-ui h1.entry-title,
body.scc-checkout-ui h1.page-title,
body.scc-checkout-ui .wp-block-post-title {
  display: flex !important;
  width: min(1180px, calc(100% - 32px));
  min-height: 118px;
  margin: 24px auto 30px !important;
  padding: 28px clamp(24px, 4vw, 42px) !important;
  border: 1px solid rgba(255, 180, 0, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 180, 0, 0.22), transparent 31%),
    linear-gradient(135deg, #171717 0%, #0c0c0c 72%);
  box-shadow: 0 18px 46px rgba(17, 17, 17, 0.10);
  color: #fff !important;
  font-family: "Sahel", "Sahel FD", Tahoma, sans-serif !important;
  font-size: clamp(29px, 3.3vw, 44px) !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  align-items: center;
  direction: rtl;
}

/* Classic layouts: create a real visual gutter between the two cards. */
body.scc-cart-ui .woocommerce:has(> .woocommerce-cart-form) {
  gap: 30px !important;
}

body.scc-checkout-ui form.checkout.woocommerce-checkout {
  gap: 0 30px !important;
}

body.scc-cart-ui table.shop_table.cart,
body.scc-cart-ui .cart-collaterals .cart_totals,
body.scc-checkout-ui form.checkout #customer_details,
body.scc-checkout-ui form.checkout #order_review_heading,
body.scc-checkout-ui form.checkout #order_review {
  border-color: #e3e4e8 !important;
  box-shadow: 0 18px 46px rgba(17, 17, 17, 0.065) !important;
}

/* Keep the order heading and its review body as one card internally, while
 * separating that whole card from customer details. */
body.scc-checkout-ui form.checkout #order_review_heading {
  padding: 22px 24px 16px !important;
}

body.scc-checkout-ui form.checkout #order_review {
  padding: 2px 24px 24px !important;
}

/* WooCommerce Blocks: override the zero/implicit gutter some themes impose. */
body.scc-cart-ui .wc-block-cart,
body.scc-checkout-ui .wc-block-checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 370px) !important;
  column-gap: 30px !important;
  row-gap: 24px !important;
  align-items: start !important;
}

body.scc-cart-ui .wc-block-cart__main,
body.scc-checkout-ui .wc-block-checkout__main {
  grid-column: 1 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(22px, 2.6vw, 30px) !important;
  border-color: #e3e4e8 !important;
  background: #f9f9fa !important;
}

body.scc-cart-ui .wc-block-cart__sidebar,
body.scc-checkout-ui .wc-block-checkout__sidebar {
  position: sticky;
  top: 24px;
  grid-column: 2 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 24px !important;
  border-color: #e3e4e8 !important;
  background: #fff !important;
}

body.scc-checkout-ui .wc-block-components-checkout-step {
  margin: 0 0 18px !important;
  padding: 24px !important;
  border-color: #e5e6e9 !important;
  background: #fff !important;
  box-shadow: 0 8px 26px rgba(17, 17, 17, 0.035);
}

body.scc-checkout-ui .wc-block-components-checkout-step:last-child {
  margin-bottom: 0 !important;
}

body.scc-cart-ui .wc-block-components-sidebar-layout .wc-block-components-main,
body.scc-checkout-ui .wc-block-components-sidebar-layout .wc-block-components-main,
body.scc-cart-ui .wc-block-components-sidebar,
body.scc-checkout-ui .wc-block-components-sidebar {
  margin: 0 !important;
}

body.scc-cart-ui .wc-block-components-title,
body.scc-checkout-ui .wc-block-components-title,
body.scc-checkout-ui .wc-block-components-checkout-step__title {
  color: #151515 !important;
  font-weight: 900 !important;
}

@media (max-width: 900px) {
  body.scc-cart-ui .wc-block-cart,
  body.scc-checkout-ui .wc-block-checkout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  body.scc-cart-ui .wc-block-cart__main,
  body.scc-cart-ui .wc-block-cart__sidebar,
  body.scc-checkout-ui .wc-block-checkout__main,
  body.scc-checkout-ui .wc-block-checkout__sidebar {
    grid-column: 1 !important;
  }

  body.scc-cart-ui .wc-block-cart__sidebar,
  body.scc-checkout-ui .wc-block-checkout__sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  body.scc-cart-ui h1.entry-title,
  body.scc-cart-ui h1.page-title,
  body.scc-cart-ui .wp-block-post-title,
  body.scc-checkout-ui h1.entry-title,
  body.scc-checkout-ui h1.page-title,
  body.scc-checkout-ui .wp-block-post-title {
    width: calc(100% - 20px);
    min-height: 94px;
    margin: 14px auto 18px !important;
    padding: 22px 20px !important;
    border-radius: 17px;
    font-size: 28px !important;
  }

  body.scc-cart-ui .wc-block-cart,
  body.scc-checkout-ui .wc-block-checkout {
    gap: 14px !important;
  }

  body.scc-cart-ui .wc-block-cart__main,
  body.scc-cart-ui .wc-block-cart__sidebar,
  body.scc-checkout-ui .wc-block-checkout__main,
  body.scc-checkout-ui .wc-block-checkout__sidebar,
  body.scc-checkout-ui .wc-block-components-checkout-step {
    padding: 17px !important;
  }
}

/* ================================================================
 * SCC 0.8.1 — Cart / Checkout block layout hotfix
 * The WooCommerce Checkout block wraps its main/sidebar layout one level
 * deeper than the Cart block in some builds. 0.8.0 applied the grid to the
 * outer checkout form, which could squeeze the real two-column layout into
 * one grid track. Keep the public block itself full-width and apply the grid
 * only to the actual sidebar-layout element (or to the root when it is that
 * element). This also gives both pages one consistent, intentional gutter.
 * ================================================================ */

/* Keep the page banner close to the commerce cards instead of stacking the
 * banner margin and the block margin into one oversized blank area. */
body.scc-cart-ui h1.entry-title,
body.scc-cart-ui h1.page-title,
body.scc-cart-ui .wp-block-post-title,
body.scc-checkout-ui h1.entry-title,
body.scc-checkout-ui h1.page-title,
body.scc-checkout-ui .wp-block-post-title {
  margin-bottom: 22px !important;
}

/* Never turn the outer checkout/cart container into a two-column grid. */
body.scc-cart-ui .wc-block-cart,
body.scc-checkout-ui .wc-block-checkout {
  display: block !important;
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 1180px !important;
  margin: 0 auto 60px !important;
  padding: 0 !important;
  direction: rtl;
}

/* Some Cart builds put the sidebar-layout class on the root itself; Checkout
 * commonly nests it inside the checkout form. Target both structures. */
body.scc-cart-ui .wc-block-cart.wc-block-components-sidebar-layout,
body.scc-cart-ui .wc-block-cart .wc-block-components-sidebar-layout,
body.scc-checkout-ui .wc-block-checkout.wc-block-components-sidebar-layout,
body.scc-checkout-ui .wc-block-checkout .wc-block-components-sidebar-layout {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) !important;
  column-gap: 30px !important;
  row-gap: 24px !important;
  align-items: start !important;
  direction: ltr !important;
}

/* Physical column placement: order summary on the left, editable content on
 * the right. Inner copy remains RTL. */
body.scc-cart-ui .wc-block-cart__main,
body.scc-checkout-ui .wc-block-checkout__main {
  grid-column: 2 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  direction: rtl !important;
}

body.scc-cart-ui .wc-block-cart__sidebar,
body.scc-checkout-ui .wc-block-checkout__sidebar {
  position: sticky !important;
  top: 24px;
  grid-column: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  direction: rtl !important;
}

/* Checkout needs a roomy editing column. Keep the outer shell subtle and let
 * each checkout step read as a separate card. */
body.scc-checkout-ui .wc-block-checkout__main {
  padding: 18px !important;
  border: 1px solid #e3e4e8 !important;
  border-radius: 18px !important;
  background: #f8f8f9 !important;
  box-shadow: 0 18px 46px rgba(17, 17, 17, 0.055) !important;
}

body.scc-checkout-ui .wc-block-checkout__sidebar,
body.scc-cart-ui .wc-block-cart__sidebar,
body.scc-cart-ui .wc-block-cart__main {
  border: 1px solid #e3e4e8 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 18px 46px rgba(17, 17, 17, 0.065) !important;
}

body.scc-checkout-ui .wc-block-components-checkout-step {
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 18px !important;
  padding: clamp(20px, 2.3vw, 28px) !important;
}

/* Remove theme/Woo block side margins that can secretly steal column width. */
body.scc-cart-ui .wc-block-components-sidebar-layout .wc-block-components-main,
body.scc-checkout-ui .wc-block-components-sidebar-layout .wc-block-components-main,
body.scc-cart-ui .wc-block-components-sidebar-layout .wc-block-components-sidebar,
body.scc-checkout-ui .wc-block-components-sidebar-layout .wc-block-components-sidebar {
  float: none !important;
  flex: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* Classic cart / checkout use the same visual rhythm as Blocks. */
body.scc-cart-ui .woocommerce:has(> .woocommerce-cart-form),
body.scc-checkout-ui form.checkout.woocommerce-checkout {
  margin-top: 0 !important;
  gap: 30px !important;
}

/* Keep keyboard focus intentional and on-brand without the browser-blue ring. */
body.scc-cart-ui .wc-block-components-button:focus-visible,
body.scc-checkout-ui .wc-block-components-checkout-place-order-button:focus-visible,
body.scc-cart-ui .wc-proceed-to-checkout .checkout-button:focus-visible,
body.scc-checkout-ui #payment #place_order:focus-visible {
  outline: 2px solid #111 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.2) !important;
}

@media (max-width: 1050px) {
  body.scc-cart-ui .wc-block-cart.wc-block-components-sidebar-layout,
  body.scc-cart-ui .wc-block-cart .wc-block-components-sidebar-layout,
  body.scc-checkout-ui .wc-block-checkout.wc-block-components-sidebar-layout,
  body.scc-checkout-ui .wc-block-checkout .wc-block-components-sidebar-layout {
    grid-template-columns: minmax(290px, 330px) minmax(0, 1fr) !important;
    column-gap: 22px !important;
  }
}

@media (max-width: 900px) {
  body.scc-cart-ui .wc-block-cart.wc-block-components-sidebar-layout,
  body.scc-cart-ui .wc-block-cart .wc-block-components-sidebar-layout,
  body.scc-checkout-ui .wc-block-checkout.wc-block-components-sidebar-layout,
  body.scc-checkout-ui .wc-block-checkout .wc-block-components-sidebar-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  body.scc-cart-ui .wc-block-cart__main,
  body.scc-checkout-ui .wc-block-checkout__main,
  body.scc-cart-ui .wc-block-cart__sidebar,
  body.scc-checkout-ui .wc-block-checkout__sidebar {
    grid-column: 1 !important;
  }

  body.scc-cart-ui .wc-block-cart__sidebar,
  body.scc-checkout-ui .wc-block-checkout__sidebar {
    position: static !important;
  }
}

@media (max-width: 560px) {
  body.scc-cart-ui .wc-block-cart,
  body.scc-checkout-ui .wc-block-checkout {
    width: calc(100% - 20px) !important;
    margin-bottom: 38px !important;
  }

  body.scc-checkout-ui .wc-block-checkout__main,
  body.scc-checkout-ui .wc-block-checkout__sidebar,
  body.scc-cart-ui .wc-block-cart__main,
  body.scc-cart-ui .wc-block-cart__sidebar {
    padding: 15px !important;
    border-radius: 15px !important;
  }

  body.scc-checkout-ui .wc-block-components-checkout-step {
    margin-bottom: 14px !important;
    padding: 17px !important;
    border-radius: 13px !important;
  }
}

/* ================================================================
 * SCC 0.8.2 — Stable side-by-side Cart / Checkout columns
 * WooCommerce Blocks ships its sidebar layout as flex and may add its own
 * responsive wrapping/width rules. Force a single desktop flex row so the
 * editable/main card and summary card always start on the same horizontal
 * line with a predictable gutter. RTL keeps main content on the right and
 * the summary on the left.
 * ================================================================ */
@media (min-width: 901px) {
  body.scc-cart-ui .wc-block-cart.wc-block-components-sidebar-layout,
  body.scc-cart-ui .wc-block-cart .wc-block-components-sidebar-layout,
  body.scc-checkout-ui .wc-block-checkout.wc-block-components-sidebar-layout,
  body.scc-checkout-ui .wc-block-checkout .wc-block-components-sidebar-layout {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: flex-start !important;
    justify-content: stretch !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    direction: rtl !important;
  }

  body.scc-cart-ui .wc-block-cart__main,
  body.scc-checkout-ui .wc-block-checkout__main,
  body.scc-cart-ui .wc-block-components-sidebar-layout .wc-block-components-main,
  body.scc-checkout-ui .wc-block-components-sidebar-layout .wc-block-components-main {
    order: 1 !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    align-self: flex-start !important;
    direction: rtl !important;
  }

  body.scc-cart-ui .wc-block-cart__sidebar,
  body.scc-checkout-ui .wc-block-checkout__sidebar,
  body.scc-cart-ui .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  body.scc-checkout-ui .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    order: 2 !important;
    flex: 0 0 350px !important;
    width: 350px !important;
    min-width: 350px !important;
    max-width: 350px !important;
    margin: 0 !important;
    align-self: flex-start !important;
    direction: rtl !important;
  }

  /* Make sure legacy grid placement from earlier SCC releases cannot push a
   * column onto a second row when WooCommerce changes wrapper classes. */
  body.scc-cart-ui .wc-block-cart__main,
  body.scc-cart-ui .wc-block-cart__sidebar,
  body.scc-checkout-ui .wc-block-checkout__main,
  body.scc-checkout-ui .wc-block-checkout__sidebar {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  /* Classic WooCommerce pages: same top alignment and sensible desktop gap. */
  body.scc-cart-ui .woocommerce:has(> .woocommerce-cart-form),
  body.scc-checkout-ui form.checkout.woocommerce-checkout {
    column-gap: 28px !important;
    row-gap: 0 !important;
    align-items: start !important;
  }

  body.scc-cart-ui .woocommerce-cart-form,
  body.scc-cart-ui .cart-collaterals,
  body.scc-checkout-ui form.checkout #customer_details,
  body.scc-checkout-ui form.checkout #order_review_heading,
  body.scc-checkout-ui form.checkout #order_review {
    margin-top: 0 !important;
  }
}

@media (min-width: 901px) and (max-width: 1050px) {
  body.scc-cart-ui .wc-block-cart__sidebar,
  body.scc-checkout-ui .wc-block-checkout__sidebar,
  body.scc-cart-ui .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  body.scc-checkout-ui .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    flex-basis: 320px !important;
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
  }

  body.scc-cart-ui .wc-block-cart.wc-block-components-sidebar-layout,
  body.scc-cart-ui .wc-block-cart .wc-block-components-sidebar-layout,
  body.scc-checkout-ui .wc-block-checkout.wc-block-components-sidebar-layout,
  body.scc-checkout-ui .wc-block-checkout .wc-block-components-sidebar-layout {
    gap: 22px !important;
  }
}

@media (max-width: 900px) {
  body.scc-cart-ui .wc-block-cart.wc-block-components-sidebar-layout,
  body.scc-cart-ui .wc-block-cart .wc-block-components-sidebar-layout,
  body.scc-checkout-ui .wc-block-checkout.wc-block-components-sidebar-layout,
  body.scc-checkout-ui .wc-block-checkout .wc-block-components-sidebar-layout {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 18px !important;
    direction: rtl !important;
  }

  body.scc-cart-ui .wc-block-cart__main,
  body.scc-checkout-ui .wc-block-checkout__main,
  body.scc-cart-ui .wc-block-cart__sidebar,
  body.scc-checkout-ui .wc-block-checkout__sidebar,
  body.scc-cart-ui .wc-block-components-sidebar-layout .wc-block-components-main,
  body.scc-checkout-ui .wc-block-components-sidebar-layout .wc-block-components-main,
  body.scc-cart-ui .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  body.scc-checkout-ui .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.scc-cart-ui .wc-block-cart__main,
  body.scc-checkout-ui .wc-block-checkout__main {
    order: 1 !important;
  }

  body.scc-cart-ui .wc-block-cart__sidebar,
  body.scc-checkout-ui .wc-block-checkout__sidebar {
    order: 2 !important;
    position: static !important;
  }
}

/* ================================================================
 * SCC 0.8.3 — Shop grid + Cart width/footer spacing correction
 * - Shop archive uses the same 1180px visual rail as its title banner.
 * - A small catalogue no longer stretches a single product across the page.
 * - Cart's two desktop columns together use the exact title-banner rail.
 * - Adds intentional breathing room before the site footer.
 * Checkout is intentionally left untouched because its 0.8.2 layout is stable.
 * ================================================================ */

/* ---------- SHOP: keep all catalogue content on the title rail ---------- */
body.scc-shop-ui .site-main > .woocommerce,
body.scc-shop-ui #primary > .woocommerce,
body.scc-shop-ui main .woocommerce {
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 1180px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

/* If the archive header lives inside the WooCommerce wrapper, it should fill
 * that wrapper rather than applying a second 32px reduction. */
body.scc-shop-ui .site-main > .woocommerce > .woocommerce-products-header,
body.scc-shop-ui #primary > .woocommerce > .woocommerce-products-header,
body.scc-shop-ui main .woocommerce > .woocommerce-products-header {
  width: 100% !important;
  max-width: none !important;
}

/* Result count + sort stay on one clean row and do not widen the archive. */
body.scc-shop-ui .woocommerce-result-count {
  float: right !important;
}

body.scc-shop-ui .woocommerce-ordering {
  float: left !important;
}

/* Fixed catalogue tracks are critical here. auto-fit makes one product grow to
 * the full 1180px rail, producing the giant product/image seen in 0.8.2. */
body.scc-shop-ui ul.products {
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin-top: 8px !important;
  margin-bottom: 74px !important;
}

body.scc-shop-ui ul.products li.product {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

body.scc-shop-ui ul.products li.product img {
  width: 100% !important;
  height: auto !important;
  max-height: 285px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
}

/* Give the archive an explicit safe area before the orange pre-footer strip. */
body.scc-shop-ui .site-main,
body.scc-shop-ui #primary {
  padding-bottom: 34px;
}

/* ---------- CART: exact same rail width as the black title banner ---------- */
/* Block themes often add an outer wp-block-woocommerce-cart wrapper. Make that
 * the rail when present; the inner cart then simply fills it. */
body.scc-cart-ui .wp-block-woocommerce-cart {
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 1180px !important;
  margin: 0 auto 86px !important;
  padding: 0 !important;
}

body.scc-cart-ui .wp-block-woocommerce-cart .wc-block-cart {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Fallback for templates where wc-block-cart itself is the top-level block. */
body.scc-cart-ui .wc-block-cart {
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 1180px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  margin-bottom: 86px !important;
}

/* When nested in the outer block, avoid doubling the 86px footer gap. */
body.scc-cart-ui .wp-block-woocommerce-cart .wc-block-cart {
  margin-bottom: 0 !important;
}

/* Desktop: both cards must occupy one 1180px row. Main gets remaining space;
 * summary remains readable without creating a huge dead zone. */
@media (min-width: 901px) {
  body.scc-cart-ui .wc-block-cart.wc-block-components-sidebar-layout,
  body.scc-cart-ui .wc-block-cart .wc-block-components-sidebar-layout {
    display: flex !important;
    flex-flow: row nowrap !important;
    width: 100% !important;
    max-width: none !important;
    gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: flex-start !important;
    direction: rtl !important;
  }

  body.scc-cart-ui .wc-block-cart__main,
  body.scc-cart-ui .wc-block-components-sidebar-layout .wc-block-components-main {
    order: 1 !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.scc-cart-ui .wc-block-cart__sidebar,
  body.scc-cart-ui .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    order: 2 !important;
    flex: 0 0 350px !important;
    width: 350px !important;
    min-width: 350px !important;
    max-width: 350px !important;
    margin: 0 !important;
  }

  /* Classic cart uses the same 1180px rail and spacing. */
  body.scc-cart-ui .woocommerce:has(> .woocommerce-cart-form) {
    width: min(1180px, calc(100% - 32px)) !important;
    max-width: 1180px !important;
    margin: 0 auto 86px !important;
    grid-template-columns: minmax(0, 1fr) 350px !important;
    gap: 28px !important;
  }
}

/* Extra breathing room at page level prevents themes with collapsed margins
 * from visually gluing the final cart card to the footer. */
body.scc-cart-ui .site-main,
body.scc-cart-ui #primary {
  padding-bottom: 28px;
}

@media (max-width: 1050px) and (min-width: 901px) {
  body.scc-shop-ui ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.scc-cart-ui .wc-block-cart__sidebar,
  body.scc-cart-ui .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    flex-basis: 320px !important;
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
  }

  body.scc-cart-ui .woocommerce:has(> .woocommerce-cart-form) {
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 22px !important;
  }
}

@media (max-width: 900px) {
  body.scc-shop-ui ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  body.scc-cart-ui .wp-block-woocommerce-cart,
  body.scc-cart-ui .wc-block-cart {
    margin-bottom: 60px !important;
  }

  body.scc-cart-ui .wp-block-woocommerce-cart .wc-block-cart {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 560px) {
  body.scc-shop-ui .site-main > .woocommerce,
  body.scc-shop-ui #primary > .woocommerce,
  body.scc-shop-ui main .woocommerce,
  body.scc-cart-ui .wp-block-woocommerce-cart,
  body.scc-cart-ui .wc-block-cart {
    width: calc(100% - 20px) !important;
  }

  body.scc-shop-ui .woocommerce-result-count,
  body.scc-shop-ui .woocommerce-ordering {
    float: none !important;
    width: 100% !important;
  }

  body.scc-shop-ui ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 48px !important;
  }

  body.scc-shop-ui ul.products li.product img {
    max-height: none !important;
  }
}

@media (max-width: 390px) {
  body.scc-shop-ui ul.products {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ================================================================
 * SCC 0.9.0 — Checkout contact display
 * Keep WooCommerce's required e-mail stored for the order, while a
 * signed-in customer sees a phone-number field in Contact Information.
 * ================================================================ */
body.scc-checkout-ui .wc-block-checkout .scc-contact-email-preserved {
    display: none !important;
}

body.scc-checkout-ui .wc-block-checkout .scc-checkout-contact-phone-field {
    width: 100%;
    position: relative;
    margin: 0;
}

body.scc-checkout-ui .wc-block-checkout .scc-checkout-contact-phone-label {
    display: block;
    margin: 0 0 7px;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

body.scc-checkout-ui .wc-block-checkout .scc-checkout-contact-phone {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font: inherit;
    direction: ltr;
    text-align: right;
    outline: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.scc-checkout-ui .wc-block-checkout .scc-checkout-contact-phone::placeholder {
    color: #8a8a8a;
    opacity: 1;
}

body.scc-checkout-ui .wc-block-checkout .scc-checkout-contact-phone:focus {
    border-color: #f5a800;
    box-shadow: 0 0 0 2px rgba(245, 168, 0, .12);
}

/* ================================================================
 * SCC 0.9.0 — Functional cart quantity controls
 * ================================================================ */
body.scc-cart-ui .woocommerce-cart-form .quantity.scc-quantity-ready {
  display: inline-grid !important;
  width: 126px;
  min-width: 126px;
  height: 44px;
  overflow: hidden;
  border: 1px solid #dedfe3;
  border-radius: 10px;
  background: #fff;
  direction: ltr;
  grid-template-columns: 38px 48px 38px;
  align-items: stretch;
}

body.scc-cart-ui .woocommerce-cart-form .quantity.scc-quantity-ready .qty {
  width: 48px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-right: 1px solid #ececef !important;
  border-left: 1px solid #ececef !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  appearance: textfield;
  -moz-appearance: textfield;
}

body.scc-cart-ui .woocommerce-cart-form .quantity.scc-quantity-ready .qty::-webkit-inner-spin-button,
body.scc-cart-ui .woocommerce-cart-form .quantity.scc-quantity-ready .qty::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

body.scc-cart-ui .woocommerce-cart-form .scc-qty-button {
  display: grid;
  width: 38px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  color: #17181a;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  place-items: center;
  transition: background-color .18s ease, color .18s ease;
}

body.scc-cart-ui .woocommerce-cart-form .scc-qty-button:hover,
body.scc-cart-ui .woocommerce-cart-form .scc-qty-button:focus-visible {
  outline: 0;
  background: #fff4d6;
  color: #9a6900;
}

body.scc-cart-ui .wc-block-components-quantity-selector {
  overflow: hidden !important;
  border: 1px solid #dedfe3 !important;
  border-radius: 10px !important;
  background: #fff !important;
  direction: ltr;
}

body.scc-cart-ui .wc-block-components-quantity-selector__button--minus,
body.scc-cart-ui .wc-block-components-quantity-selector__button--plus {
  position: relative;
  min-width: 36px !important;
  color: #17181a !important;
  font-size: 0 !important;
  opacity: 1 !important;
}

body.scc-cart-ui .wc-block-components-quantity-selector__button--minus::before,
body.scc-cart-ui .wc-block-components-quantity-selector__button--plus::before {
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
}

body.scc-cart-ui .wc-block-components-quantity-selector__button--minus::before {
  content: "−";
}

body.scc-cart-ui .wc-block-components-quantity-selector__button--plus::before {
  content: "+";
}

body.scc-cart-ui .wc-block-components-quantity-selector__button--minus svg,
body.scc-cart-ui .wc-block-components-quantity-selector__button--plus svg {
  display: none !important;
}

/* ================================================================
 * SCC 0.9.0 — Required checkout address and postcode
 * ================================================================ */
body.scc-checkout-ui #ship-to-different-address,
body.scc-checkout-ui .woocommerce-shipping-fields .shipping_address,
body.scc-checkout-ui .wc-block-checkout__use-address-for-billing,
body.scc-checkout-ui .wc-block-checkout__use-address-for-shipping,
body.scc-checkout-ui .wc-block-components-address-form__address_2-toggle,
body.scc-checkout-ui .wc-block-components-address-form__address_2-toggle-button,
body.scc-checkout-ui .wc-block-components-address-form button[aria-controls*="address_2"] {
  display: none !important;
}

body.scc-checkout-ui .scc-required-mark {
  margin-right: 3px;
  color: #c62828;
  font-size: 1em;
  font-weight: 900;
}


/* ==========================================================
   Single product quantity controls + variation field polish
   ========================================================== */
body.scc-product-ui div.product form.cart .quantity.scc-quantity-control {
  display: inline-flex !important;
  width: auto !important;
  min-width: 142px;
  height: 52px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dedfe3;
  border-radius: 11px;
  background: #fff;
  direction: ltr;
}

body.scc-product-ui div.product form.cart .quantity.scc-quantity-control .qty {
  width: 58px !important;
  min-width: 58px !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  -moz-appearance: textfield;
}

body.scc-product-ui div.product form.cart .quantity.scc-quantity-control .qty::-webkit-outer-spin-button,
body.scc-product-ui div.product form.cart .quantity.scc-quantity-control .qty::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

body.scc-product-ui .scc-qty-button {
  width: 41px;
  height: 50px;
  display: inline-flex;
  flex: 0 0 41px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: #fff;
  color: #171717;
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease;
}

body.scc-product-ui .scc-qty-button:hover,
body.scc-product-ui .scc-qty-button:focus-visible {
  outline: 0;
  background: var(--scc-store-yellow);
  color: #111;
}

body.scc-product-ui .scc-qty-button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  background: #f4f4f4;
}

/* Yellow attribute labels (e.g. رنگ / سایز), white select field. */
body.scc-product-ui form.variations_form .variations th.label {
  min-height: 52px;
}

body.scc-product-ui form.variations_form .variations th.label label {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--scc-store-yellow) !important;
  color: #111 !important;
  text-align: center;
}

body.scc-product-ui form.variations_form .variations td.value,
body.scc-product-ui form.variations_form .variations td.value select {
  background: #fff !important;
}

body.scc-product-ui form.variations_form .variations td.value select {
  border-color: #dedfe3 !important;
}

/* ==========================================================
   Cart price containment: classic cart + WooCommerce Cart Block
   ========================================================== */
body.scc-cart-ui table.shop_table.cart td.product-price,
body.scc-cart-ui table.shop_table.cart td.product-subtotal {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: normal !important;
}

body.scc-cart-ui table.shop_table.cart td.product-price .amount,
body.scc-cart-ui table.shop_table.cart td.product-subtotal .amount {
  display: inline-block;
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.8;
}

body.scc-cart-ui .wc-block-cart-item__product,
body.scc-cart-ui .wc-block-cart-item__wrap,
body.scc-cart-ui .wc-block-cart-item__prices,
body.scc-cart-ui .wc-block-components-product-price,
body.scc-cart-ui .wc-block-components-product-price__value,
body.scc-cart-ui .wc-block-components-formatted-money-amount {
  min-width: 0 !important;
  max-width: 100% !important;
}

body.scc-cart-ui .wc-block-cart-item__prices,
body.scc-cart-ui .wc-block-components-product-price {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}

body.scc-cart-ui .wc-block-components-product-price__value,
body.scc-cart-ui .wc-block-components-formatted-money-amount {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.7;
}

@media (max-width: 640px) {
  body.scc-product-ui .woocommerce-variation-add-to-cart,
  body.scc-product-ui form.cart:not(.variations_form) {
    gap: 8px;
  }

  body.scc-product-ui div.product form.cart .quantity.scc-quantity-control {
    min-width: 132px;
  }

  body.scc-product-ui .scc-qty-button {
    width: 38px;
    flex-basis: 38px;
  }

  body.scc-product-ui div.product form.cart .quantity.scc-quantity-control .qty {
    width: 54px !important;
    min-width: 54px !important;
  }

  body.scc-cart-ui table.shop_table.cart td.product-price,
  body.scc-cart-ui table.shop_table.cart td.product-subtotal,
  body.scc-cart-ui .wc-block-components-product-price,
  body.scc-cart-ui .wc-block-components-formatted-money-amount {
    font-size: 11px !important;
  }
}
/* ================================================================
 * SCC Professional Inline AJAX Filter
 * ================================================================ */
.scc-pro-filter-wrapper {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 30px;
    background: #fff;
    border: 1px solid var(--scc-store-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(17,17,17,0.04);
    direction: rtl;
}

.scc-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
}

.scc-filter-group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scc-size-group {
    flex: 2 1 350px;
}

.scc-filter-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--scc-store-text);
}

.scc-filter-select {
    width: 100%;
    height: 52px;
    border: 1px solid #dedfe3;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 13px;
    font-family: inherit;
    background: #fafafa;
    color: #303238;
    outline: none;
    transition: all 0.2s ease;
}

.scc-filter-select:focus,
.scc-filter-select:hover {
    border-color: var(--scc-store-yellow);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.12);
}

/* Custom Size Radio Buttons */
.scc-filter-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.scc-filter-sizes label {
    cursor: pointer;
    margin: 0;
}

.scc-filter-sizes input[type="radio"] {
    display: none;
}

.scc-filter-sizes span {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 48px;
    padding: 0 10px;
    background: #f7f7f8;
    border: 1px solid #dedfe3;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--scc-store-muted);
    transition: all 0.2s ease;
}

.scc-filter-sizes input[type="radio"]:checked + span {
    background: var(--scc-store-yellow);
    border-color: var(--scc-store-yellow);
    color: #111;
    box-shadow: 0 6px 16px rgba(255, 180, 0, 0.2);
}

.scc-filter-sizes label:hover span {
    border-color: var(--scc-store-yellow);
    color: #111;
}

/* Loading State for Products Grid */
.scc-grid-loading {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .scc-pro-filter-wrapper {
        padding: 18px;
    }
    .scc-filter-row {
        gap: 16px;
    }
    .scc-filter-sizes span {
        height: 42px;
        min-width: 40px;
        font-size: 12px;
    }
}
/* ================================================================
 * SCC Professional Inline AJAX Filter (Updated Fonts & Reset Button)
 * ================================================================ */
/* ================================================================
 * SCC Professional Inline AJAX Filter (Dropdown Sizes & Reset Button)
 * ================================================================ */
.scc-pro-filter-wrapper {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 30px;
    background: #fff;
    border: 1px solid var(--scc-store-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(17,17,17,0.04);
    direction: rtl;
}

.scc-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-end;
}

.scc-filter-group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scc-filter-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--scc-store-text);
    font-family: "Sahel", "Sahel FD", Tahoma, sans-serif !important;
}

.scc-filter-select {
    width: 100%;
    height: 52px;
    border: 1px solid #dedfe3;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: "Sahel", "Sahel FD", Tahoma, sans-serif !important;
    background: #fafafa;
    color: #303238;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.scc-filter-select:focus,
.scc-filter-select:hover {
    border-color: var(--scc-store-yellow);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.12);
}

/* استایل دکمه پاک کردن (حالت غیرفعال و فعال) */
.scc-reset-btn {
    height: 52px;
    padding: 0 20px;
    background: #f7f7f8;
    border: 1px solid #dedfe3;
    border-radius: 12px;
    color: #a1a3a8;
    font-size: 14px;
    font-weight: 800;
    font-family: "Sahel", "Sahel FD", Tahoma, sans-serif !important;
    cursor: not-allowed;
    transition: all 0.2s ease;
}

/* وقتی فیلتری انتخاب شود این کلاس توسط JS اضافه می‌شود */
.scc-reset-btn.is-active {
    background: #fff6f7;
    border-color: #f0d4d6;
    color: #c83d49;
    cursor: pointer;
}

.scc-reset-btn.is-active:hover {
    background: #c83d49;
    color: #fff;
    border-color: #c83d49;
}

/* Loading State for Products Grid */
.scc-grid-loading {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .scc-pro-filter-wrapper {
        padding: 18px;
    }
    .scc-filter-row {
        gap: 16px;
    }
    .scc-reset-btn {
        width: 100%;
        margin-top: 10px;
    }
}