/* Ecig Switch Storefront: all rules are scoped to WooCommerce pages. */
body.ecs-woo-storefront {
  --ecs-bg: #0d0a0a;
  --ecs-bg-2: #151010;
  --ecs-card: #1b1414;
  --ecs-card-2: #241a1a;
  --ecs-ink: #f7f1ec;
  --ecs-muted: #b3a49c;
  --ecs-line: rgba(255, 255, 255, 0.12);
  --ecs-red: #ff3d2e;
  --ecs-orange: #ff7a1a;
  --ecs-amber: #ffb347;
  --ecs-gradient: linear-gradient(120deg, #ff3d2e 0%, #ff7a1a 52%, #ffb347 100%);
  --ecs-radius: 18px;
  background: var(--ecs-bg);
  color: var(--ecs-ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}

body.ecs-woo-storefront .wp-site-blocks {
  background: var(--ecs-bg);
  color: var(--ecs-ink);
  padding: 0;
}

/* Hide only the block theme's own template parts. WooCommerce stays intact. */
body.ecs-woo-storefront .wp-site-blocks > header,
body.ecs-woo-storefront .wp-site-blocks > footer,
body.ecs-woo-storefront .wp-site-blocks > header.wp-block-template-part,
body.ecs-woo-storefront .wp-site-blocks > footer.wp-block-template-part {
  display: none;
}

body.ecs-woo-storefront .wp-site-blocks main {
  box-sizing: border-box;
  max-width: 1184px;
  min-height: 48vh;
  margin: 0 auto;
  padding: 28px 22px 72px;
}

.ecs-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 1184px;
  margin: 0 auto;
  padding-right: 22px;
  padding-left: 22px;
}

.ecs-header *,
.ecs-header *::before,
.ecs-header *::after,
.ecs-footer *,
.ecs-footer *::before,
.ecs-footer *::after {
  box-sizing: border-box;
}

.ecs-screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ecs-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ecs-ink);
  color: var(--ecs-bg);
  font-weight: 700;
  transform: translateY(-180%);
}

.ecs-skip-link:focus {
  transform: translateY(0);
}

/* Shared header */
.ecs-header {
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid var(--ecs-line);
  background: rgba(13, 10, 10, 0.96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  color: var(--ecs-ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4;
}

.admin-bar .ecs-header {
  top: 32px;
}

.ecs-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 70px;
}

.ecs-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--ecs-ink);
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.ecs-brand:hover,
.ecs-brand:focus-visible {
  color: var(--ecs-ink);
  text-decoration: none;
}

.ecs-brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 179, 71, 0.5);
  border-radius: 50%;
  background: var(--ecs-gradient);
  box-shadow: 0 0 24px rgba(255, 90, 30, 0.2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.ecs-brand__name strong {
  color: var(--ecs-amber);
  font-weight: 800;
}

.ecs-primary-nav {
  margin-left: auto;
}

.ecs-primary-nav ul,
.ecs-category-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ecs-primary-nav li,
.ecs-category-nav li {
  padding: 0;
  margin: 0;
}

.ecs-primary-nav li::before,
.ecs-category-nav li::before {
  display: none;
}

.ecs-primary-nav a {
  display: block;
  padding: 10px 9px;
  border-radius: 9px;
  color: var(--ecs-muted);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.ecs-primary-nav a:hover,
.ecs-primary-nav a:focus-visible {
  background: var(--ecs-card);
  color: var(--ecs-ink);
}

.ecs-primary-nav a.ecs-primary-nav__shop {
  padding: 9px 16px;
  margin-left: 4px;
  background: var(--ecs-gradient);
  color: #fff;
}

.ecs-primary-nav a.ecs-primary-nav__shop:hover,
.ecs-primary-nav a.ecs-primary-nav__shop:focus-visible,
.ecs-primary-nav a.ecs-primary-nav__shop.is-current {
  background: linear-gradient(120deg, #ff594c 0%, #ff913f 52%, #ffc36d 100%);
  color: #16100d;
}

.ecs-basket {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--ecs-line);
  border-radius: 999px;
  color: var(--ecs-ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.ecs-basket:hover,
.ecs-basket:focus-visible,
.ecs-basket.is-current {
  border-color: var(--ecs-orange);
  background: var(--ecs-card);
  color: var(--ecs-amber);
}

.ecs-basket__count {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--ecs-gradient);
  color: #fff;
  font-size: 0.72rem;
}

.ecs-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ecs-line);
  border-radius: 10px;
  background: var(--ecs-card);
  color: var(--ecs-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}

.ecs-menu-toggle__lines {
  display: grid;
  gap: 4px;
}

.ecs-menu-toggle__lines span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.ecs-shop-tools {
  border-top: 1px solid var(--ecs-line);
  background: var(--ecs-bg-2);
}

.ecs-shop-tools__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.ecs-product-search {
  display: flex;
  flex: 0 0 320px;
  min-width: 0;
}

.ecs-product-search input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ecs-line);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  outline-offset: 2px;
  background: var(--ecs-card);
  color: var(--ecs-ink);
  font: inherit;
  font-size: 0.88rem;
  appearance: none;
}

.ecs-product-search input::placeholder {
  color: var(--ecs-muted);
  opacity: 1;
}

.ecs-product-search button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 9px 16px;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: var(--ecs-gradient);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
}

.ecs-product-search button:hover,
.ecs-product-search button:focus-visible {
  filter: brightness(1.1);
}

.ecs-category-nav {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-color: var(--ecs-orange) transparent;
  scrollbar-width: thin;
}

.ecs-category-nav ul {
  width: max-content;
  gap: 7px;
}

.ecs-category-nav a {
  display: block;
  padding: 7px 11px;
  border: 1px solid var(--ecs-line);
  border-radius: 999px;
  color: var(--ecs-muted);
  font-size: 0.76rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.ecs-category-nav a:hover,
.ecs-category-nav a:focus-visible {
  border-color: var(--ecs-orange);
  color: var(--ecs-ink);
}

.ecs-category-nav a.is-current,
.ecs-category-nav a[aria-current="page"] {
  border-color: transparent;
  background: var(--ecs-gradient);
  color: #fff;
}

/* Clear keyboard focus and visible current states. */
body.ecs-woo-storefront :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--ecs-amber);
  outline-offset: 3px;
}

/* Breadcrumbs */
body.ecs-woo-storefront .ecs-breadcrumbs {
  max-width: 100%;
  padding: 0;
  margin: 0 0 26px;
  color: var(--ecs-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

body.ecs-woo-storefront .ecs-breadcrumbs a {
  color: var(--ecs-amber);
  text-decoration: none;
}

body.ecs-woo-storefront .ecs-breadcrumbs a:hover {
  text-decoration: underline;
}

.ecs-breadcrumbs__separator {
  padding: 0 7px;
  color: var(--ecs-muted);
}

/* Main WooCommerce typography and layout */
body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page, .wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) {
  color: var(--ecs-ink);
  font-family: inherit;
}

body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page) h1,
body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page) h2,
body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page) h3,
body.ecs-woo-storefront .wp-block-post-title {
  color: var(--ecs-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

body.ecs-woo-storefront .woocommerce-products-header__title,
body.ecs-woo-storefront .wp-block-post-title {
  margin: 0 0 24px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page) p {
  color: var(--ecs-muted);
}

body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page) a {
  color: var(--ecs-amber);
}

body.ecs-woo-storefront .term-description,
body.ecs-woo-storefront .woocommerce-result-count {
  color: var(--ecs-muted);
}

body.ecs-woo-storefront .woocommerce-result-count {
  margin: 12px 0 24px;
  font-size: 0.9rem;
}

body.ecs-woo-storefront .woocommerce-ordering {
  margin: 0 0 24px;
}

/* Product cards */
body.ecs-woo-storefront .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  clear: both;
  padding: 0;
  margin: 26px 0;
}

body.ecs-woo-storefront .woocommerce ul.products::before,
body.ecs-woo-storefront .woocommerce ul.products::after {
  display: none;
}

body.ecs-woo-storefront .woocommerce ul.products li.product {
  display: flex;
  float: none;
  flex-direction: column;
  width: auto;
  min-width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--ecs-line);
  border-radius: var(--ecs-radius);
  background: var(--ecs-card);
  text-align: left;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

body.ecs-woo-storefront .woocommerce ul.products li.product:hover {
  border-color: rgba(255, 122, 26, 0.55);
  transform: translateY(-3px);
}

body.ecs-woo-storefront .woocommerce ul.products li.product > a:not(.button) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  color: var(--ecs-ink);
  text-decoration: none;
}

body.ecs-woo-storefront .woocommerce ul.products li.product a img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  padding: 12px;
  margin: 0;
  background: #140f0f;
  object-fit: contain;
}

body.ecs-woo-storefront .woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 16px 16px 4px;
  margin: 0;
  color: var(--ecs-ink);
  font-size: 1rem;
  line-height: 1.35;
}

body.ecs-woo-storefront .woocommerce ul.products li.product .price {
  padding: 4px 16px 16px;
  margin: auto 0 0;
  color: var(--ecs-amber);
  font-size: 1rem;
  font-weight: 800;
}

body.ecs-woo-storefront .woocommerce ul.products li.product .price del {
  color: var(--ecs-muted);
  opacity: 0.8;
}

body.ecs-woo-storefront .woocommerce ul.products li.product .price ins {
  color: var(--ecs-amber);
  text-decoration: none;
}

body.ecs-woo-storefront .woocommerce ul.products li.product .button {
  align-self: stretch;
  margin: 0 14px 14px;
  text-align: center;
}

body.ecs-woo-storefront .woocommerce span.onsale {
  z-index: 2;
  min-width: 0;
  min-height: 0;
  padding: 7px 11px;
  margin: 12px;
  border-radius: 999px;
  background: var(--ecs-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

body.ecs-woo-storefront .woocommerce ul.products li.product .onsale {
  top: 0;
  right: auto;
  left: 0;
  margin: 12px;
}

/* Buttons */
body.ecs-woo-storefront .woocommerce :where(a.button, button.button, input.button, input.submit),
body.ecs-woo-storefront .woocommerce-page :where(a.button, button.button, input.button, input.submit),
body.ecs-woo-storefront #place_order,
body.ecs-woo-storefront .wc-block-components-button:not(.is-link) {
  display: inline-block;
  width: auto;
  padding: 11px 19px;
  border: 0;
  border-radius: 999px;
  background: var(--ecs-gradient);
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  text-shadow: none;
}

body.ecs-woo-storefront .woocommerce :where(a.button, button.button, input.button, input.submit):hover,
body.ecs-woo-storefront .woocommerce-page :where(a.button, button.button, input.button, input.submit):hover,
body.ecs-woo-storefront #place_order:hover,
body.ecs-woo-storefront .wc-block-components-button:not(.is-link):hover {
  background: linear-gradient(120deg, #ff594c 0%, #ff913f 52%, #ffc36d 100%);
  color: #16100d;
  filter: none;
}

body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page) :where(a.button, button.button, input.button):disabled,
body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page) :where(a.button, button.button, input.button).disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

body.ecs-woo-storefront .woocommerce :where(a.button.alt, button.button.alt, input.button.alt) {
  background: var(--ecs-gradient);
  color: #fff;
}

/* Single product */
body.ecs-woo-storefront .woocommerce div.product {
  margin-bottom: 32px;
}

body.ecs-woo-storefront .woocommerce div.product .product_title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

body.ecs-woo-storefront .woocommerce div.product p.price,
body.ecs-woo-storefront .woocommerce div.product span.price {
  color: var(--ecs-amber);
  font-size: 1.45rem;
  font-weight: 800;
}

body.ecs-woo-storefront .woocommerce div.product .woocommerce-product-details__short-description {
  margin: 18px 0;
}

body.ecs-woo-storefront .woocommerce div.product .woocommerce-product-rating {
  color: var(--ecs-muted);
}

body.ecs-woo-storefront .woocommerce div.product .star-rating,
body.ecs-woo-storefront .woocommerce .star-rating {
  color: var(--ecs-amber);
}

body.ecs-woo-storefront .woocommerce div.product .star-rating::before,
body.ecs-woo-storefront .woocommerce .star-rating::before {
  color: var(--ecs-muted);
}

body.ecs-woo-storefront .woocommerce div.product div.images .woocommerce-product-gallery__image,
body.ecs-woo-storefront .woocommerce div.product div.images .flex-viewport {
  overflow: hidden;
  border: 1px solid var(--ecs-line);
  border-radius: var(--ecs-radius);
  background: #140f0f;
}

body.ecs-woo-storefront .woocommerce div.product div.images img {
  background: #140f0f;
}

body.ecs-woo-storefront .woocommerce div.product .product_meta {
  padding-top: 18px;
  border-top: 1px solid var(--ecs-line);
  color: var(--ecs-muted);
  font-size: 0.88rem;
}

body.ecs-woo-storefront .woocommerce div.product .product_meta > * {
  display: block;
  margin-bottom: 5px;
}

body.ecs-woo-storefront .woocommerce div.product form.cart {
  margin: 22px 0;
}

body.ecs-woo-storefront .woocommerce div.product form.cart .variations {
  width: 100%;
  margin-bottom: 16px;
}

body.ecs-woo-storefront .woocommerce div.product form.cart .variations th,
body.ecs-woo-storefront .woocommerce div.product form.cart .variations td {
  display: block;
  width: 100%;
  padding: 6px 0;
  border: 0;
  text-align: left;
}

body.ecs-woo-storefront .woocommerce div.product form.cart .variations label {
  color: var(--ecs-ink);
  font-weight: 700;
}

body.ecs-woo-storefront .woocommerce div.product .woocommerce-variation-description p {
  color: var(--ecs-muted);
}

body.ecs-woo-storefront .woocommerce div.product .woocommerce-tabs {
  margin-top: 36px;
}

body.ecs-woo-storefront .woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 0 0 20px;
  overflow-x: auto;
  border-bottom: 1px solid var(--ecs-line);
}

body.ecs-woo-storefront .woocommerce div.product .woocommerce-tabs ul.tabs::before,
body.ecs-woo-storefront .woocommerce div.product .woocommerce-tabs ul.tabs::after {
  display: none;
}

body.ecs-woo-storefront .woocommerce div.product .woocommerce-tabs ul.tabs li {
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.ecs-woo-storefront .woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.ecs-woo-storefront .woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none;
}

body.ecs-woo-storefront .woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 10px 13px;
  border-bottom: 3px solid transparent;
  color: var(--ecs-muted);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

body.ecs-woo-storefront .woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
body.ecs-woo-storefront .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
  border-bottom-color: var(--ecs-orange);
  color: var(--ecs-ink);
}

body.ecs-woo-storefront .woocommerce div.product .woocommerce-tabs .panel {
  padding: 24px;
  border: 1px solid var(--ecs-line);
  border-radius: var(--ecs-radius);
  background: var(--ecs-card);
}

body.ecs-woo-storefront .related.products,
body.ecs-woo-storefront .up-sells.products,
body.ecs-woo-storefront .cross-sells {
  margin-top: 56px;
}

body.ecs-woo-storefront .related.products > h2,
body.ecs-woo-storefront .up-sells.products > h2,
body.ecs-woo-storefront .cross-sells > h2 {
  margin-bottom: 20px;
  font-size: 1.7rem;
}

/* Forms */
body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page) :where(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="date"], textarea, select) {
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--ecs-line);
  border-radius: 10px;
  background: var(--ecs-card-2);
  box-shadow: none;
  color: var(--ecs-ink);
  font-family: inherit;
  font-size: 0.95rem;
}

body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page) textarea {
  min-height: 120px;
}

body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page) :where(input, select, textarea):focus {
  border-color: var(--ecs-orange);
  box-shadow: none;
}

body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page) :where(label, legend) {
  color: var(--ecs-ink);
}

body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page) :where(input::placeholder, textarea::placeholder) {
  color: var(--ecs-muted);
  opacity: 1;
}

body.ecs-woo-storefront .woocommerce form .form-row {
  padding: 6px 0;
  margin: 0 0 12px;
}

body.ecs-woo-storefront .woocommerce form .form-row label {
  margin-bottom: 5px;
}

body.ecs-woo-storefront .woocommerce form .form-row .required {
  color: #ff8f86;
  text-decoration: none;
}

body.ecs-woo-storefront .quantity .qty {
  width: 74px;
  text-align: center;
}

body.ecs-woo-storefront .select2-container--default .select2-selection--single,
body.ecs-woo-storefront .select2-container .select2-selection--multiple {
  min-height: 44px;
  border: 1px solid var(--ecs-line);
  border-radius: 10px;
  background: var(--ecs-card-2);
  color: var(--ecs-ink);
}

body.ecs-woo-storefront .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ecs-ink);
  line-height: 42px;
}

body.ecs-woo-storefront .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
}

/* Notices */
body.ecs-woo-storefront :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  padding: 16px 20px 16px 46px;
  margin: 0 0 24px;
  border: 1px solid rgba(255, 179, 71, 0.35);
  border-left: 4px solid var(--ecs-amber);
  border-radius: 12px;
  background: var(--ecs-card);
  box-shadow: none;
  color: var(--ecs-ink);
  list-style: none;
}

body.ecs-woo-storefront :where(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
  top: 16px;
  color: var(--ecs-amber);
}

body.ecs-woo-storefront .woocommerce-message {
  border-left-color: #65d59a;
}

body.ecs-woo-storefront .woocommerce-message::before {
  color: #65d59a;
}

body.ecs-woo-storefront .woocommerce-error {
  border-left-color: #ff8f86;
}

body.ecs-woo-storefront .woocommerce-error::before {
  color: #ff8f86;
}

body.ecs-woo-storefront :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) a {
  color: var(--ecs-amber);
}

/* Tables, basket and totals */
body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page) table {
  border-color: var(--ecs-line);
  color: var(--ecs-ink);
}

body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page) table th,
body.ecs-woo-storefront :where(.woocommerce, .woocommerce-page) table td {
  border-color: var(--ecs-line);
  color: var(--ecs-ink);
}

body.ecs-woo-storefront .woocommerce table.shop_table {
  overflow: hidden;
  border: 1px solid var(--ecs-line);
  border-radius: var(--ecs-radius);
  background: var(--ecs-card);
  border-collapse: separate;
}

body.ecs-woo-storefront .woocommerce table.shop_table th {
  background: var(--ecs-card-2);
}

body.ecs-woo-storefront .woocommerce table.shop_table td {
  background: transparent;
}

body.ecs-woo-storefront .woocommerce table.shop_table a {
  color: var(--ecs-amber);
}

body.ecs-woo-storefront .woocommerce table.shop_table .product-name a {
  color: var(--ecs-ink);
  font-weight: 700;
}

body.ecs-woo-storefront .woocommerce a.remove {
  color: #ff8f86;
}

body.ecs-woo-storefront .woocommerce a.remove:hover {
  background: #ff8f86;
  color: var(--ecs-bg);
}

body.ecs-woo-storefront .woocommerce .cart-collaterals .cart_totals,
body.ecs-woo-storefront .woocommerce-checkout #order_review,
body.ecs-woo-storefront .woocommerce-checkout #order_review_heading {
  border-color: var(--ecs-line);
}

body.ecs-woo-storefront .woocommerce .cart-collaterals .cart_totals {
  padding: 24px;
  border: 1px solid var(--ecs-line);
  border-radius: var(--ecs-radius);
  background: var(--ecs-card);
}

body.ecs-woo-storefront .woocommerce .cart-collaterals .cart_totals h2 {
  margin-top: 0;
}

body.ecs-woo-storefront .woocommerce-checkout #order_review {
  padding: 20px;
  border: 1px solid var(--ecs-line);
  border-radius: var(--ecs-radius);
  background: var(--ecs-card);
}

body.ecs-woo-storefront .woocommerce-checkout .checkout_coupon,
body.ecs-woo-storefront .woocommerce-checkout .woocommerce-form-login,
body.ecs-woo-storefront .woocommerce form.checkout_coupon,
body.ecs-woo-storefront .woocommerce form.login,
body.ecs-woo-storefront .woocommerce form.register {
  border-color: var(--ecs-line);
  border-radius: var(--ecs-radius);
  background: var(--ecs-card);
}

/* Payment and account presentation only. No functional hooks are used. */
body.ecs-woo-storefront .woocommerce-checkout #payment {
  border-radius: 12px;
  background: var(--ecs-card-2);
}

body.ecs-woo-storefront .woocommerce-checkout #payment div.payment_box {
  background: var(--ecs-card);
  color: var(--ecs-muted);
}

body.ecs-woo-storefront .woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: var(--ecs-card);
}

body.ecs-woo-storefront .woocommerce-checkout #payment ul.payment_methods {
  border-color: var(--ecs-line);
}

body.ecs-woo-storefront .woocommerce-checkout #payment .place-order {
  padding-top: 18px;
}

body.ecs-woo-storefront .woocommerce-MyAccount-navigation {
  padding: 14px;
  border: 1px solid var(--ecs-line);
  border-radius: var(--ecs-radius);
  background: var(--ecs-card);
}

body.ecs-woo-storefront .woocommerce-MyAccount-navigation ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

body.ecs-woo-storefront .woocommerce-MyAccount-navigation li {
  border: 0;
}

body.ecs-woo-storefront .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--ecs-muted);
  font-weight: 650;
  text-decoration: none;
}

body.ecs-woo-storefront .woocommerce-MyAccount-navigation li.is-active a,
body.ecs-woo-storefront .woocommerce-MyAccount-navigation a:hover {
  background: var(--ecs-card-2);
  color: var(--ecs-amber);
}

body.ecs-woo-storefront .woocommerce-MyAccount-content {
  padding: 24px;
  border: 1px solid var(--ecs-line);
  border-radius: var(--ecs-radius);
  background: var(--ecs-card);
}

/* Pagination */
body.ecs-woo-storefront .woocommerce nav.woocommerce-pagination {
  margin-top: 32px;
}

body.ecs-woo-storefront .woocommerce nav.woocommerce-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  border: 0;
}

body.ecs-woo-storefront .woocommerce nav.woocommerce-pagination ul li {
  border: 0;
}

body.ecs-woo-storefront .woocommerce nav.woocommerce-pagination ul li :where(a, span) {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  padding: 8px;
  place-items: center;
  border: 1px solid var(--ecs-line);
  border-radius: 10px;
  background: var(--ecs-card);
  color: var(--ecs-ink);
  text-decoration: none;
}

body.ecs-woo-storefront .woocommerce nav.woocommerce-pagination ul li span.current,
body.ecs-woo-storefront .woocommerce nav.woocommerce-pagination ul li a:hover {
  border-color: transparent;
  background: var(--ecs-gradient);
  color: #fff;
}

/* WooCommerce Blocks */
body.ecs-woo-storefront :where(.wc-block-components-product-name, .wc-block-components-checkout-step__heading, .wc-block-components-totals-wrapper, .wc-block-components-panel) {
  color: var(--ecs-ink);
}

body.ecs-woo-storefront :where(.wc-block-components-form, .wc-block-components-totals-wrapper) {
  color: var(--ecs-ink);
}

body.ecs-woo-storefront :where(.wc-block-components-text-input input, .wc-block-components-select select, .wc-block-components-combobox input) {
  border-color: var(--ecs-line);
  background: var(--ecs-card-2);
  color: var(--ecs-ink);
}

body.ecs-woo-storefront :where(.wc-block-components-text-input label, .wc-block-components-select label) {
  color: var(--ecs-muted);
}

body.ecs-woo-storefront :where(.wc-block-components-notice-banner) {
  border-radius: 12px;
  background: var(--ecs-card);
  color: var(--ecs-ink);
}

/* Footer */
.ecs-footer {
  border-top: 1px solid var(--ecs-line);
  background: var(--ecs-bg-2);
  color: var(--ecs-ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

.ecs-footer .ecs-wrap {
  padding-top: 52px;
  padding-bottom: 28px;
}

.ecs-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 34px;
}

.ecs-footer h2 {
  margin: 0 0 14px;
  color: var(--ecs-ink);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.ecs-footer p,
.ecs-footer a {
  display: block;
  margin: 0 0 9px;
  color: var(--ecs-muted);
  font-size: 0.88rem;
}

.ecs-footer a {
  text-decoration: none;
}

.ecs-footer a:hover,
.ecs-footer a:focus-visible {
  color: var(--ecs-amber);
  text-decoration: underline;
}

.ecs-age-warning {
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid var(--ecs-red);
  border-radius: 8px;
  color: #ff8f86;
  font-size: 0.85rem;
  font-weight: 850;
}

.ecs-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  margin-top: 34px;
  border-top: 1px solid var(--ecs-line);
  color: var(--ecs-muted);
  font-size: 0.8rem;
}

/* Responsive navigation and catalogue */
@media (max-width: 1180px) and (min-width: 1081px) {
  .ecs-header__bar {
    gap: 12px;
  }

  .ecs-primary-nav a {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 0.82rem;
  }

  .ecs-basket span:not(.ecs-basket__count) {
    display: none;
  }
}

@media (max-width: 1080px) {
  .admin-bar .ecs-header {
    top: 0;
  }

  .ecs-header {
    position: relative;
  }

  .ecs-header__bar {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 66px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .ecs-brand {
    margin-right: auto;
  }

  .ecs-js .ecs-menu-toggle {
    display: inline-flex;
    order: 3;
  }

  .ecs-basket {
    order: 2;
  }

  .ecs-primary-nav {
    flex: 0 0 100%;
    margin-left: 0;
    order: 4;
  }

  .ecs-js .ecs-primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 20;
    max-height: calc(100vh - 100px);
    padding: 12px 22px 18px;
    overflow-y: auto;
    border-top: 1px solid var(--ecs-line);
    border-bottom: 1px solid var(--ecs-line);
    background: var(--ecs-bg-2);
    box-shadow: 0 20px 32px rgba(0, 0, 0, 0.5);
  }

  .ecs-js .ecs-primary-nav:not(.is-open) {
    display: none;
  }

  .ecs-primary-nav ul {
    align-items: stretch;
    flex-direction: column;
    gap: 3px;
  }

  .ecs-primary-nav a {
    padding: 12px;
    font-size: 1rem;
  }

  .ecs-primary-nav a.ecs-primary-nav__shop {
    margin: 6px 0 0;
    text-align: center;
  }

  .ecs-shop-tools__inner {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .ecs-product-search {
    flex-basis: auto;
    width: 100%;
  }

  body.ecs-woo-storefront .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ecs-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 782px) {
  body.ecs-woo-storefront .wp-site-blocks main {
    padding: 22px 16px 54px;
  }

  .ecs-wrap {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.ecs-woo-storefront .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.ecs-woo-storefront .woocommerce div.product .woocommerce-tabs .panel,
  body.ecs-woo-storefront .woocommerce-MyAccount-content,
  body.ecs-woo-storefront .woocommerce .cart-collaterals .cart_totals,
  body.ecs-woo-storefront .woocommerce-checkout #order_review {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .ecs-brand__mark {
    width: 38px;
    height: 38px;
  }

  .ecs-brand__name {
    font-size: 1rem;
  }

  .ecs-basket {
    padding: 8px 10px;
  }

  .ecs-basket > span:not(.ecs-basket__count) {
    display: none;
  }

  .ecs-menu-toggle {
    padding: 8px 10px;
  }

  .ecs-product-search button {
    padding-right: 13px;
    padding-left: 13px;
  }

  body.ecs-woo-storefront .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  body.ecs-woo-storefront .woocommerce table.shop_table,
  body.ecs-woo-storefront .woocommerce table.shop_table thead,
  body.ecs-woo-storefront .woocommerce table.shop_table tbody,
  body.ecs-woo-storefront .woocommerce table.shop_table tr,
  body.ecs-woo-storefront .woocommerce table.shop_table th,
  body.ecs-woo-storefront .woocommerce table.shop_table td {
    font-size: 0.86rem;
  }

  .ecs-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ecs-footer__legal {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.ecs-woo-storefront *,
  body.ecs-woo-storefront *::before,
  body.ecs-woo-storefront *::after {
    scroll-behavior: auto;
    transition: none;
  }
}

/* The same age choice is remembered across the static site and shop. */
.ecs-agegate[hidden] {
  display: none;
}

.ecs-agegate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 10, 10, 0.98);
  color: var(--ecs-ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  text-align: center;
}

.ecs-agegate__box {
  width: min(100%, 440px);
  padding: 36px;
  border: 1px solid var(--ecs-line);
  border-radius: var(--ecs-radius);
  background: var(--ecs-card);
}

.ecs-agegate__box img {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  object-fit: contain;
}

.ecs-agegate__box h2 {
  margin: 0 0 12px;
  color: var(--ecs-ink);
}

.ecs-agegate__box p {
  margin: 0 0 24px;
  color: var(--ecs-muted);
}

.ecs-agegate__box button {
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--ecs-line);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.ecs-agegate__yes {
  background: var(--ecs-gradient);
  color: #fff;
}

.ecs-agegate__no {
  margin-left: 8px;
  background: transparent;
  color: var(--ecs-ink);
}

.ecs-brand__mark {
  object-fit: contain;
}

body.ecs-agegate-open {
  overflow: hidden;
}

@media (max-width: 420px) {
  .ecs-agegate__box {
    padding: 28px 20px;
  }

  .ecs-agegate__box button {
    width: 100%;
  }

  .ecs-agegate__no {
    margin: 10px 0 0;
  }
}
