/* Focus, WooCommerce page hierarchy, and narrow-screen refinements. */
:focus-visible {
  outline: 3px solid var(--cc-orange);
  outline-offset: 3px;
}

.cc-hero-grid > *,
.cc-two-col > *,
.cc-support-grid > *,
.cc-case-grid > *,
.cc-footer-grid > * {
  min-width: 0;
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: start;
  column-gap: clamp(24px, 4vw, 52px);
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  float: none;
  width: auto;
  min-width: 0;
}

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product section.related,
.woocommerce div.product section.up-sells {
  grid-column: 1 / -1;
  min-width: 0;
}

.woocommerce div.product .woocommerce-tabs {
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--cc-line);
}

/* Keep WooCommerce's gallery zoom control anchored inside the product image. */
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
  top: auto !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 2;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  margin: auto;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23152b25' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E");
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger::after { content: none !important; }

.woocommerce div.product form.cart .single_add_to_cart_button {
  background: var(--cc-ink);
  color: #fff;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:focus-visible {
  background: var(--cc-orange);
  color: #fff;
}

.woocommerce div.product form.cart .single_add_to_cart_button.disabled,
.woocommerce div.product form.cart .single_add_to_cart_button:disabled {
  background: var(--cc-lime);
  color: var(--cc-ink);
  opacity: .72;
}

.cc-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin: 0 0 18px;
  padding: 10px 16px;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  background: #fff;
}

.cc-shop-toolbar .woocommerce-result-count,
.cc-shop-toolbar .woocommerce-ordering {
  float: none;
  margin: 0;
}

.cc-shop-toolbar .woocommerce-ordering select {
  min-height: 40px;
  max-width: 100%;
  padding: 7px 34px 7px 11px;
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  background: var(--cc-paper);
  color: var(--cc-ink);
}

.cc-product-accordions {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--cc-line);
}

.cc-product-accordion {
  overflow: hidden;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  background: #fff;
}

.cc-product-accordion summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 14px 18px;
  color: var(--cc-ink);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.cc-product-accordion summary::-webkit-details-marker { display: none; }
.cc-product-accordion summary::after { content: "+"; color: var(--cc-orange); font-size: 1.35rem; line-height: 1; }
.cc-product-accordion[open] summary::after { content: "−"; }
.cc-product-accordion-content { padding: 0 18px 18px; }
.cc-product-accordion-content > :first-child { margin-top: 0; }
.cc-product-accordion-content > :last-child { margin-bottom: 0; }

.cc-brand-logo-reversed {
  width: 225px;
  height: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
  padding-block: 8px;
}

.woocommerce-cart .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
}

.woocommerce-cart .woocommerce {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  align-items: start;
  gap: 24px;
}

.woocommerce-cart .woocommerce-cart-form,
.woocommerce-cart .cart-collaterals {
  float: none;
  width: auto;
  min-width: 0;
}

.woocommerce-cart .cart-collaterals {
  grid-column: 2;
  grid-row: 2;
}

.woocommerce-cart .woocommerce-cart-form {
  grid-column: 1;
  grid-row: 2;
}

.woocommerce-cart .cart-collaterals .cross-sells {
  display: none;
}

.woocommerce form .form-row,
.woocommerce form .form-row input,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.wc-block-checkout,
.wc-block-checkout__main,
.wc-block-checkout__sidebar {
  min-width: 0;
  max-width: 100%;
}

.woocommerce form .form-row input,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  width: 100%;
}

.wc-block-checkout {
  width: min(var(--cc-max), calc(100% - 40px));
  margin-inline: auto;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  overflow-wrap: anywhere;
}

/* Keep WooCommerce's cart, checkout, account, and review controls on brand. */
.woocommerce form .form-row label,
.woocommerce form .form-row .required,
.woocommerce form .form-row .optional,
.woocommerce .woocommerce-form-login label,
.woocommerce .woocommerce-form-register label {
  color: var(--cc-ink);
}

.woocommerce form .form-row input:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce .quantity .qty:focus,
.woocommerce-cart table.cart td.actions .coupon .input-text:focus {
  border-color: var(--cc-orange);
  outline: 3px solid rgb(242 108 58 / 18%);
  outline-offset: 1px;
}

.woocommerce input[type="checkbox"],
.woocommerce input[type="radio"],
.woocommerce #payment input[type="radio"],
.wc-block-components-checkbox input[type="checkbox"],
.wc-block-components-radio-control input[type="radio"] {
  accent-color: var(--cc-orange);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  margin: 0 0 20px;
  padding: 16px 18px 16px 48px;
  border: 1px solid var(--cc-line);
  border-top: 3px solid var(--cc-lime);
  border-radius: 12px;
  background: #fff;
  color: var(--cc-ink);
}

.woocommerce-error { border-top-color: var(--cc-orange); }
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { top: 16px; left: 17px; color: var(--cc-orange); }
.woocommerce-notices-wrapper:empty { display: none; }

.woocommerce table.shop_table {
  overflow: hidden;
  border: 1px solid var(--cc-line);
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.woocommerce table.shop_table th {
  background: var(--cc-cream);
  color: var(--cc-ink);
  font-weight: 900;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th { border-color: var(--cc-line); }
.woocommerce table.shop_table a { color: var(--cc-ink); font-weight: 800; }
.woocommerce table.shop_table a:hover { color: var(--cc-orange-dark); }
.woocommerce a.remove { color: var(--cc-orange-dark) !important; }
.woocommerce a.remove:hover { background: var(--cc-orange); color: #fff !important; }

.woocommerce-cart table.cart td.actions { padding: 14px; background: var(--cc-cream); }
.woocommerce-cart table.cart td.actions .coupon { display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-cart table.cart td.actions .coupon .input-text {
  float: none;
  width: min(100%, 220px);
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  background: #fff;
}
.woocommerce-cart table.cart td.actions > .button { margin-top: 8px; }
.woocommerce-cart .cart-collaterals .cart_totals {
  float: none;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--cc-line);
  border-radius: 15px;
  background: #fff;
}
.woocommerce-cart .cart-collaterals .cart_totals h2 { font-size: 1.55rem; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { background: var(--cc-ink); }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: var(--cc-orange); }

.woocommerce form.checkout.woocommerce-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  grid-template-areas: "customer summary-title" "customer summary";
  align-items: start;
  gap: 0 26px;
}
.woocommerce-checkout #customer_details { grid-area: customer; min-width: 0; }
.woocommerce-checkout #order_review_heading { grid-area: summary-title; margin: 0; font-size: 1.65rem; }
.woocommerce-checkout #order_review {
  grid-area: summary;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--cc-line);
  border-radius: 15px;
  background: #fff;
}
.woocommerce-checkout #payment { border: 1px solid var(--cc-line); }
.woocommerce-checkout #payment ul.payment_methods { border-color: var(--cc-line); }
.woocommerce-checkout #payment ul.payment_methods li { padding-block: 8px; }
.woocommerce-checkout #payment div.payment_box { border: 1px solid var(--cc-line); border-radius: 10px; color: var(--cc-soft); }
.woocommerce-checkout #payment .place-order { padding: 18px 0 0; }
.woocommerce-privacy-policy-text,
.woocommerce-terms-and-conditions-wrapper { color: var(--cc-soft); font-size: .88rem; }
.woocommerce-privacy-policy-text a,
.woocommerce-terms-and-conditions-wrapper a { color: var(--cc-orange-dark); }

.woocommerce-account .woocommerce { display: grid; grid-template-columns: minmax(180px, .3fr) minmax(0, 1fr); gap: 24px; }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; min-width: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 11px 14px;
  border: 1px solid var(--cc-line);
  border-radius: 9px;
  background: #fff;
  color: var(--cc-ink);
  font-weight: 800;
  text-decoration: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover { border-color: var(--cc-lime); background: var(--cc-lime); }

.woocommerce #reviews #comments ol.commentlist li .comment-text,
.woocommerce #review_form #respond { border-color: var(--cc-line); border-radius: 12px; }
.woocommerce #reviews #comments ol.commentlist li .meta { color: var(--cc-soft); }
.woocommerce p.stars a { color: var(--cc-orange); }
.woocommerce p.stars a:hover,
.woocommerce p.stars a.active,
.woocommerce p.stars a:focus { color: var(--cc-orange-dark); }
.woocommerce nav.woocommerce-pagination ul { display: flex; gap: 7px; border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  display: grid;
  min-width: 40px;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--cc-line);
  border-radius: 9px;
  background: #fff;
  color: var(--cc-ink);
}
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover { border-color: var(--cc-ink); background: var(--cc-ink); color: #fff; }
.woocommerce .stock { font-weight: 800; }
.woocommerce .stock.in-stock { color: #287447; }
.woocommerce .stock.out-of-stock { color: var(--cc-orange-dark); }
.woocommerce a.reset_variations { color: var(--cc-orange-dark); font-weight: 800; }

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  min-height: 44px;
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  background: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; color: var(--cc-ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.select2-dropdown { overflow: hidden; border-color: var(--cc-line); border-radius: 8px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--cc-ink); }

.wc-block-components-notice-banner {
  border: 1px solid var(--cc-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--cc-ink) !important;
}
.wc-block-components-notice-banner > svg { background: var(--cc-ink) !important; }
.wc-block-components-notice-banner.is-error > svg { background: var(--cc-orange-dark) !important; }
.wc-block-components-button:not(.is-link) { min-height: 46px; border-radius: 99px; background: var(--cc-ink); color: #fff; font-weight: 900; }
.wc-block-components-button:not(.is-link):hover { background: var(--cc-orange); color: #fff; }
.wc-block-components-text-input input,
.wc-block-components-combobox .components-combobox-control__input,
.wc-block-components-address-form input,
.wc-block-components-address-form select {
  min-height: 44px;
  border-color: var(--cc-line) !important;
  border-radius: 8px !important;
  background: #fff;
  color: var(--cc-ink);
}
.wc-block-components-order-summary,
.wc-block-checkout__sidebar,
.wc-block-components-sidebar { border-color: var(--cc-line); }
.wc-block-components-totals-wrapper { border-color: var(--cc-line); }

@media (max-width: 850px) {
  .woocommerce div.product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 24px;
  }

  .woocommerce-cart .woocommerce {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr);
    gap: 16px;
  }

  .woocommerce-account .woocommerce { grid-template-columns: minmax(150px, .35fr) minmax(0, 1fr); gap: 16px; }

  .cc-menu { gap: 14px; }
  ul.cc-menu-list { gap: 14px; }
  .cc-brand-logo { width: 170px; }
}

@media (max-width: 680px) {
  .cc-announcement {
    padding: 8px 12px;
    font-size: .75rem;
    line-height: 1.35;
  }

  .cc-nav-actions {
    gap: 7px;
  }

  .cc-menu {
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
  }

  .cc-menu-secondary { margin: 0; }
  .cc-shop-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .cc-shop-toolbar .woocommerce-ordering,
  .cc-shop-toolbar .woocommerce-ordering select { width: 100%; }

  .cc-support-card,
  .cc-form {
    padding: 22px 18px;
  }

  .cc-amounts {
    gap: 7px;
  }

  .woocommerce div.product {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary,
  .woocommerce div.product .woocommerce-tabs,
  .woocommerce div.product section.related,
  .woocommerce div.product section.up-sells {
    grid-column: 1;
  }

  .woocommerce div.product div.summary {
    padding-top: 0;
  }

  .woocommerce-cart .woocommerce {
    grid-template-columns: minmax(0, 1fr);
  }

  .woocommerce form.checkout.woocommerce-checkout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "customer" "summary-title" "summary";
    gap: 16px;
  }

  .woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-account .woocommerce-MyAccount-navigation ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .woocommerce-cart .woocommerce-cart-form,
  .woocommerce-cart .cart-collaterals {
    grid-column: 1;
    grid-row: auto;
  }

  .woocommerce-cart .cart-collaterals {
    margin-top: 0;
  }

  .woocommerce table.shop_table {
    font-size: .88rem;
  }

  .woocommerce table.shop_table td,
  .woocommerce table.shop_table th {
    padding: 9px 7px;
  }

  .woocommerce-cart table.cart td.actions .coupon,
  .woocommerce-cart table.cart td.actions .coupon .input-text,
  .woocommerce-cart table.cart td.actions .coupon .button,
  .woocommerce-cart table.cart td.actions > .button { width: 100%; }

  .wc-block-checkout {
    width: calc(100% - 30px);
  }

  .wc-block-components-order-summary,
  .wc-block-components-sidebar {
    min-width: 0;
    max-width: 100%;
  }

  .woocommerce #payment .place-order,
  .woocommerce-page #payment .place-order {
    padding: 14px;
  }
}

/* Clear, roomy option swatches and a more useful variable-product cart action. */
.woocommerce form.variations_form.cc-has-swatches table.variations { display: none !important; }
.cc-variation-swatches { display: grid; gap: 18px; margin: 22px 0 24px; }
.cc-variation-swatch-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.cc-variation-swatch-group legend { margin: 0 0 10px; padding: 0; color: var(--cc-ink); font-size: .95rem; font-weight: 900; }
.cc-variation-swatch-list { display: grid; grid-template-columns: repeat(3, minmax(72px, 104px)); gap: 9px; }
.cc-color-swatch-group .cc-variation-swatch-list { grid-template-columns: repeat(2, minmax(104px, 1fr)); max-width: 420px; }
.cc-variation-swatch { display: inline-flex; min-width: 0; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border: 1.5px solid var(--cc-line); border-radius: 12px; background: #fff; color: var(--cc-ink); font-size: .92rem; font-weight: 900; line-height: 1.15; cursor: pointer; transition: border-color .16s ease,background-color .16s ease,color .16s ease,transform .16s ease; }
.cc-variation-swatch:hover { border-color: var(--cc-ink); transform: translateY(-1px); }
.cc-variation-swatch.is-selected { border-color: var(--cc-ink); background: var(--cc-ink); color: #fff; }
.cc-variation-swatch:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.cc-variation-swatch:focus-visible,.cc-variation-view-more:focus-visible { outline: 3px solid var(--cc-orange); outline-offset: 3px; }
.cc-variation-swatch-dot { width: 19px; height: 19px; flex: 0 0 19px; border: 1px solid rgba(21,43,37,.22); border-radius: 50%; background: var(--cc-swatch-color); }
.cc-variation-swatch.is-color { justify-content: flex-start; }
.cc-variation-swatch.is-color.is-selected .cc-variation-swatch-dot { box-shadow: 0 0 0 2px #fff,0 0 0 4px var(--cc-lime); }
.cc-variation-view-more { justify-self: start; margin-top: 10px; padding: 4px 0; border: 0; background: transparent; color: var(--cc-ink); font-size: .88rem; font-weight: 900; cursor: pointer; }
.cc-variation-price-context { flex: 0 0 100%; width: 100%; margin: 0 0 12px; color: var(--cc-soft); font-size: .92rem; font-weight: 800; }
.woocommerce div.product form.cart .single_add_to_cart_button { min-width: 190px; min-height: 56px; padding: 14px 25px; border: 2px solid var(--cc-orange); border-radius: 999px; background: var(--cc-orange); color: #fff; font-size: 1rem; font-weight: 900; }
.woocommerce div.product form.cart .single_add_to_cart_button:hover,.woocommerce div.product form.cart .single_add_to_cart_button:focus-visible { border-color: var(--cc-orange-dark); background: var(--cc-orange-dark); color: #fff; }
.woocommerce div.product form.cart .single_add_to_cart_button.disabled,.woocommerce div.product form.cart .single_add_to_cart_button:disabled { border-color: var(--cc-lime); background: var(--cc-lime); color: var(--cc-ink); opacity: .8; }
@media(max-width:680px) {
  .cc-variation-swatches { gap: 16px; margin-block: 20px 23px; }
  .cc-variation-swatch-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
  .cc-color-swatch-group .cc-variation-swatch-list { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 420px; }
  .cc-variation-swatch { min-height: 50px; padding: 10px 8px; }
  .woocommerce div.product form.cart .single_add_to_cart_button { width: 100%; min-height: 58px; }
}

/* Keep disabled and enabled cart actions in one brand color; use opacity for state. */
.woocommerce div.product form.cart .single_add_to_cart_button.disabled,
.woocommerce div.product form.cart .single_add_to_cart_button:disabled { border-color: var(--cc-orange); background: var(--cc-orange); color: #fff; opacity: .56; cursor: not-allowed; }
.woocommerce div.product form.cart .single_add_to_cart_button.disabled:not(:disabled) { border-color: var(--cc-orange); background: var(--cc-orange); color: #fff; opacity: .56; cursor: not-allowed; }
.woocommerce div.product form.variations_form .single_variation_wrap { flex: 0 0 100%; width: 100%; }
.woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart { display: grid !important; grid-template-columns: 84px minmax(0,1fr); align-items: center; gap: 12px; width: 100%; margin-top: 4px; }
.woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart .quantity { float: none; width: 84px; margin: 0 !important; }
.woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart input.qty { box-sizing: border-box; width: 100%; height: 58px; min-height: 58px; padding: 8px; border: 1.5px solid var(--cc-line); border-radius: 13px; background: #fff; color: var(--cc-ink); font-size: 1rem; font-weight: 900; text-align: center; }
.woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart .single_add_to_cart_button { width: 100%; min-width: 0; min-height: 58px; margin: 0 !important; }
.woocommerce div.product form.cart .quantity.cc-quantity-stepper { display: grid; grid-template-columns: 44px minmax(42px,1fr) 44px; align-items: stretch; width: 154px; min-height: 58px; overflow: hidden; border: 1.5px solid var(--cc-line); border-radius: 14px; background: #fff; }
.woocommerce div.product form.cart .quantity.cc-quantity-stepper .cc-quantity-stepper-button { display: grid; width: 44px; min-width: 44px; min-height: 56px; place-items: center; padding: 0; border: 0; border-radius: 0; background: var(--cc-cream); color: var(--cc-ink); font: inherit; font-size: 1.5rem; font-weight: 700; line-height: 1; cursor: pointer; touch-action: manipulation; }
.woocommerce div.product form.cart .quantity.cc-quantity-stepper .cc-quantity-stepper-button:hover { background: var(--cc-lime); }
.woocommerce div.product form.cart .quantity.cc-quantity-stepper .cc-quantity-stepper-button:focus-visible { z-index: 1; outline-offset: -3px; }
.woocommerce div.product form.cart .quantity.cc-quantity-stepper input.qty { box-sizing: border-box; width: 100%; min-width: 0; height: 56px; min-height: 56px; padding: 0 4px; border: 0; border-radius: 0; background: #fff; color: var(--cc-ink); font-size: 1rem; font-weight: 900; text-align: center; appearance: textfield; }
.woocommerce div.product form.cart .quantity.cc-quantity-stepper input.qty::-webkit-inner-spin-button,
.woocommerce div.product form.cart .quantity.cc-quantity-stepper input.qty::-webkit-outer-spin-button { margin: 0; appearance: none; }
.woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart { grid-template-columns: 154px minmax(0,1fr); }
.woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart .quantity.cc-quantity-stepper { width: 154px; }
.woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart input.qty { height: 56px; min-height: 56px; }
@media(max-width:680px) {
  .woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart { grid-template-columns: 148px minmax(0,1fr); gap: 10px; }
  .woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart .quantity.cc-quantity-stepper { width: 148px; grid-template-columns: 42px minmax(40px,1fr) 42px; }
  .woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart .quantity.cc-quantity-stepper .cc-quantity-stepper-button { width: 42px; min-width: 42px; }
}

/* Compact, keyboard-accessible site search in the primary header. */
.cc-nav-actions .cc-search-toggle { display: grid; width: 42px; min-width: 42px; height: 42px; place-items: center; padding: 0; border: 1.5px solid var(--cc-line); border-radius: 50%; background: transparent; color: var(--cc-ink); cursor: pointer; }
.cc-search-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.cc-nav-actions .cc-search-toggle:hover,
.cc-nav-actions .cc-search-toggle[aria-expanded="true"] { border-color: var(--cc-ink); background: var(--cc-ink); color: #fff; }
.cc-search-drawer { position: absolute; top: 100%; right: max(15px,calc((100vw - var(--cc-max))/2)); z-index: 2; width: min(500px,calc(100vw - 30px)); padding: 14px; border: 1px solid var(--cc-line); border-radius: 0 0 16px 16px; background: var(--cc-paper); box-shadow: 0 16px 28px rgb(21 43 37 / 12%); }
.cc-search-drawer[hidden] { display: none !important; }
.cc-site-search-form { display: flex; gap: 9px; }
.cc-site-search-form input[type="search"] { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 48px; padding: 10px 13px; border: 1px solid var(--cc-line); border-radius: 10px; background: #fff; color: var(--cc-ink); }
.cc-site-search-form input[type="search"]:focus { border-color: var(--cc-orange); outline: 3px solid rgb(242 108 58 / 18%); outline-offset: 1px; }
.cc-site-search-form .cc-btn { flex: 0 0 auto; min-height: 48px; }
.cc-search-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin: 28px 0; padding: 0; list-style: none; }
.cc-search-card { height: 100%; overflow: hidden; border: 1px solid var(--cc-line); border-radius: 16px; background: #fff; }
.cc-search-card-image { display: block; aspect-ratio: 1; overflow: hidden; background: var(--cc-cream); }
.cc-search-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cc-search-card-content { padding: 15px; }
.cc-search-card-type { margin: 0 0 6px; color: var(--cc-orange-dark); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.cc-search-card h2 { margin: 0 0 8px; font-size: 1.4rem; line-height: 1.1; }
.cc-search-card h2 a { text-decoration: none; }
.cc-search-card h2 a:hover { color: var(--cc-orange-dark); }
.cc-search-card .price { margin: 0 0 8px; font-weight: 900; }
.cc-search-card-excerpt { color: var(--cc-soft); font-size: .9rem; }
.cc-search-card-excerpt > :last-child { margin-bottom: 0; }
.cc-search-empty { padding: 22px; border: 1px solid var(--cc-line); border-radius: 14px; background: #fff; color: var(--cc-soft); }
@media (max-width: 850px) { .cc-search-results { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 680px) {
  .cc-search-drawer { position: static; width: auto; margin: 0 15px 12px; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .cc-site-search-form { gap: 7px; }
  .cc-site-search-form .cc-btn { min-height: 44px; padding: 9px 13px; }
  .cc-search-results { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .cc-search-card-content { padding: 11px; }
  .cc-search-card h2 { font-size: 1.08rem; }
}

/* Checkout: keep WooCommerce's native expandable summary in a clear sticky side panel. */
body.woocommerce-checkout .cc-page-content { max-width: var(--cc-max); }
body.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide.wc-block-checkout { width: 100%; max-width: none; margin-inline: 0; }
body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout { display: grid !important; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr); align-items: start; column-gap: clamp(24px, 3vw, 42px); }
body.woocommerce-checkout .wc-block-checkout__main { grid-column: 1; width: 100%; max-width: none; min-width: 0; }
body.woocommerce-checkout .wc-block-checkout__sidebar { display: block !important; grid-column: 2; grid-row: 1; position: sticky !important; top: 122px; align-self: start; min-width: 0; max-height: calc(100vh - 142px); overflow-y: auto; overscroll-behavior: contain; }
body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block { padding: 12px; border: 1px solid var(--cc-line); border-radius: 18px; background: var(--cc-paper); box-shadow: 0 12px 32px rgb(21 43 37 / 8%); }
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title { display: flex; min-height: 62px; align-items: center; gap: 12px; margin: 0; padding: 13px 15px; border: 1px solid var(--cc-line); border-radius: 13px; background: var(--cc-cream); color: var(--cc-ink); cursor: pointer; }
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title[aria-expanded="true"] { border-color: var(--cc-ink); background: var(--cc-ink); color: #fff; }
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-price { margin-left: auto; font-weight: 900; }
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-icon { flex: 0 0 auto; }
body.woocommerce-checkout .wc-block-components-checkout-order-summary__content { max-height: min(62vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 3px 3px; }
body.woocommerce-checkout .checkout-order-summary-block-fill-wrapper { display: none !important; }

@media (max-width: 850px) {
  body.woocommerce-checkout .cc-page-content { max-width: none; }
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout { display: flex !important; flex-direction: column; gap: 0; }
  body.woocommerce-checkout .wc-block-checkout__sidebar { order: 0; position: static !important; top: auto; z-index: auto; width: 100%; max-height: none; margin: 0 0 16px; padding: 8px 0; background: var(--cc-paper); transition: transform .22s ease, opacity .22s ease; }
  body.woocommerce-checkout .wc-block-checkout__main { order: 1; width: 100%; }
  body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block { padding: 8px; border-radius: 14px; }
  body.woocommerce-checkout .wc-block-components-checkout-order-summary__content { max-height: calc(100vh - 190px); }
}
/* Large WooCommerce summaries use this disclosure state so the side panel starts compact. */
body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block.cc-expandable-summary:not(.cc-summary-open) .wc-block-components-checkout-order-summary__content { display: none !important; }
body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block.cc-expandable-summary.cc-summary-open .wc-block-components-checkout-order-summary__content { display: block !important; }
body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block.cc-expandable-summary .wc-block-components-checkout-order-summary__title:focus-visible { outline: 3px solid var(--cc-orange); outline-offset: 3px; }

@media (max-width: 850px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.cc-summary-is-fixed { position: relative; }
  body.woocommerce-checkout .cc-checkout-summary-spacer { display: block; flex: 0 0 auto; width: 100%; }
  body.woocommerce-checkout .wc-block-checkout__sidebar.cc-summary-fixed {
    position: fixed !important;
    top: 76px;
    right: 15px;
    left: 15px;
    z-index: 100;
    width: auto;
    max-height: min(104px, calc(100vh - 92px));
    margin: 0;
    padding: 7px 0;
    overflow: visible;
    background: var(--cc-paper);
    box-shadow: 0 12px 24px rgb(21 43 37 / 12%);
    transition: transform .22s ease, opacity .22s ease;
  }
  body.woocommerce-checkout .wc-block-checkout__sidebar.cc-summary-fixed .wp-block-woocommerce-checkout-order-summary-block { padding: 6px; }
  body.woocommerce-checkout .wc-block-checkout__sidebar.cc-summary-hidden-up {
    transform: translateY(calc(-100% - 84px));
    opacity: 0;
    pointer-events: none;
  }
}



/* Shop archive improvements: delivery highlight, quick category filters, and quieter card actions. */
body.woocommerce-shop .cc-page-intro .cc-note,
body.tax-product_cat .cc-page-intro .cc-note {
  display: inline-block;
  max-width: 100%;
  margin: 10px 0 0;
  padding: 9px 12px;
  border-left: 4px solid var(--cc-orange);
  border-radius: 8px;
  background: var(--cc-lime);
  color: var(--cc-ink);
  font-weight: 800;
  line-height: 1.4;
}

.cc-shop-filters {
  display: flex;
  flex: 1 0 100%;
  order: 3;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-top: 2px;
}

.cc-shop-filter {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid var(--cc-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--cc-ink);
  font-size: .88rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.cc-shop-filter:hover,
.cc-shop-filter:focus-visible {
  border-color: var(--cc-ink);
  background: var(--cc-ink);
  color: #fff;
}

.cc-shop-filter.is-active,
.cc-shop-filter.is-active:hover {
  border-color: var(--cc-ink);
  background: var(--cc-ink);
  color: #fff;
}

body.woocommerce-shop .woocommerce ul.products li.product a.button,
body.tax-product_cat .woocommerce ul.products li.product a.button {
  display: flex !important;
  width: calc(100% - 32px);
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin: 14px 16px 0 !important;
  padding: 10px 13px !important;
  border: 2px solid var(--cc-ink) !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--cc-ink) !important;
  font-size: .88rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

body.woocommerce-shop .woocommerce ul.products li.product a.button:hover,
body.woocommerce-shop .woocommerce ul.products li.product a.button:focus-visible,
body.tax-product_cat .woocommerce ul.products li.product a.button:hover,
body.tax-product_cat .woocommerce ul.products li.product a.button:focus-visible {
  border-color: var(--cc-ink) !important;
  background: var(--cc-ink) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

@media (max-width: 680px) {
  .cc-shop-filters { gap: 7px; }
  .cc-shop-filter { min-height: 40px; padding-inline: 12px; font-size: .84rem; }
  body.woocommerce-shop .woocommerce ul.products li.product a.button,
  body.tax-product_cat .woocommerce ul.products li.product a.button {
    width: calc(100% - 24px);
    min-height: 44px;
    margin: 13px 12px 0 !important;
    padding: 9px 10px !important;
    font-size: .82rem;
  }
}

/* The shop loop is a direct child of main on this theme, so scope card actions from body. */
body.woocommerce-shop ul.products li.product a.button,
body.tax-product_cat ul.products li.product a.button {
  display: flex !important;
  width: calc(100% - 24px) !important;
  min-height: 44px !important;
  align-items: center;
  justify-content: center;
  margin: 13px 12px 0 !important;
  padding: 9px 10px !important;
  border: 2px solid var(--cc-ink) !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--cc-ink) !important;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

body.woocommerce-shop ul.products li.product a.button:hover,
body.woocommerce-shop ul.products li.product a.button:focus-visible,
body.tax-product_cat ul.products li.product a.button:hover,
body.tax-product_cat ul.products li.product a.button:focus-visible {
  border-color: var(--cc-ink) !important;
  background: var(--cc-ink) !important;
  color: #fff !important;
}

/* Keep selected and hover text on the warm-paper brand token. */
.cc-shop-filter:hover,
.cc-shop-filter:focus-visible,
.cc-shop-filter.is-active,
.cc-shop-filter.is-active:hover,
body.woocommerce-shop ul.products li.product a.button:hover,
body.woocommerce-shop ul.products li.product a.button:focus-visible,
body.tax-product_cat ul.products li.product a.button:hover,
body.tax-product_cat ul.products li.product a.button:focus-visible { color: var(--cc-paper) !important; }

/* Keep the delivery notice plain, with green text only. */
body.woocommerce-shop .cc-page-intro .cc-note,
body.tax-product_cat .cc-page-intro .cc-note {
  display: block;
  max-width: 100%;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cc-ink);
  font-weight: inherit;
  line-height: 1.4;
}
