/* Shared page system for live WordPress/WooCommerce routes.
 * Product and customer data remain owned by WooCommerce. */

body.ofs-shop-v2 .site-main,
body.ofs-shop-v2 .site-main > .ct-container-full { background: #fff; }
body.ofs-shop-v2 .site-main .ct-container {
  box-sizing: border-box;
  width: min(calc(100% - 48px), 1240px);
  margin-inline: auto;
}
body.ofs-shop-v2 .site-main .entry-header {
  padding-block: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--of-line);
  background: var(--of-paper);
  background-image: none !important;
}
body.ofs-shop-v2 .site-main .entry-header .ct-container { padding-block: 0; }
body.ofs-shop-v2 .site-main .entry-header .entry-title {
  margin: 0;
  color: var(--of-navy);
  font-size: clamp(30px, 4vw, 46px);
}
body.ofs-shop-v2 .site-main .entry-content {
  width: min(calc(100% - 48px), 1240px);
  margin: clamp(24px, 4vw, 44px) auto 0;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--of-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(4, 41, 88, .045);
  color: var(--of-ink);
  line-height: 1.72;
}
body.ofs-shop-v2 .site-main .entry-content > :is(p, ul, ol, blockquote, table, h2, h3, h4) {
  max-width: 84ch;
  margin-inline: auto;
}
body.ofs-shop-v2 .site-main .entry-content > :is(h2, h3, h4) {
  margin-top: 1.8em;
  margin-bottom: .65em;
}
body.ofs-shop-v2 .site-main .entry-content > :is(p, ul, ol, blockquote, table) + :is(p, ul, ol, blockquote, table) {
  margin-top: 1em;
}
body.ofs-shop-v2 .site-main .entry-content :is(ul, ol) { padding-inline-start: 1.35em; }
body.ofs-shop-v2 .site-main .entry-content a { color: var(--of-blue); text-underline-offset: 3px; }
body.ofs-shop-v2 .site-main .entry-content a:hover { color: var(--of-blue-deep); }
body.ofs-shop-v2 .site-main .entry-content table { width: 100%; border-collapse: collapse; }
body.ofs-shop-v2 .site-main .entry-content th,
body.ofs-shop-v2 .site-main .entry-content td { padding: 11px 13px; border: 1px solid var(--of-line); text-align: left; }
body.ofs-shop-v2.page-id-872 .site-main .entry-header { padding-block: 0; border: 0; background: #fff; }
body.ofs-shop-v2.page-id-872 .site-main .entry-content {
  width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
}
/* The collection page has its own meaningful H1 inside its content. */
body.ofs-shop-v2.page-id-17299 .site-main .entry-header { display: none; }

/* Archive and category browsing */
body.ofs-shop-v2 .site-main .woocommerce-products-header {
  margin: 0 0 24px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--of-line);
  border-radius: 20px;
  background: var(--of-paper);
  background-image: none !important;
}
/* Page-title bands stay calm and legible; keep homepage, family and product imagery. */
body.ofs-shop-v2 .site-main .hero-section {
  background-color: var(--of-paper);
  background-image: none !important;
}
body.ofs-shop-v2 .site-main .hero-section::before,
body.ofs-shop-v2 .site-main .hero-section::after,
body.ofs-shop-v2 .site-main .entry-header::before,
body.ofs-shop-v2 .site-main .entry-header::after,
body.ofs-shop-v2 .site-main .woocommerce-products-header::before,
body.ofs-shop-v2 .site-main .woocommerce-products-header::after {
  background-image: none !important;
}
body.ofs-shop-v2 .site-main .hero-section :is(img, picture, .ct-media-container),
body.ofs-shop-v2 .site-main .entry-header :is(img, picture, .ct-media-container),
body.ofs-shop-v2 .site-main .woocommerce-products-header :is(img, picture, .ct-media-container) {
  display: none !important;
}
/* The catalogue has its own descriptive H1 immediately above the product grid. */
body.ofs-shop-v2.woocommerce-shop .site-main .hero-section { display: none !important; }
body.ofs-shop-v2 .site-main .woocommerce-products-header:not(.ofs-archive-heading):not(:has(.woocommerce-products-header__description)) {
  display: none;
}
/* A Blocksy hero already supplies the archive title on live product categories.
 * Hide only the empty WooCommerce archive header that would duplicate it. */
body.ofs-shop-v2 .site-main .woocommerce-products-header.ofs-archive-heading:not(:has(.woocommerce-products-header__description)) {
  display: none;
}
body.ofs-shop-v2.term-bonnes-affaires .site-main .hero-section .page-description {
  display: none !important;
}
body.ofs-shop-v2 .site-main .woocommerce-products-header h1 {
  margin: 0;
  color: var(--of-navy);
  font-size: clamp(30px, 3.6vw, 44px);
}
body.ofs-shop-v2 .site-main .woocommerce-products-header__description { max-width: 76ch; margin-top: 12px; color: var(--of-muted); }
body.ofs-shop-v2 .site-main .woocommerce-breadcrumb { margin: 0 0 18px; color: var(--of-muted); font-size: 13px; }
body.ofs-shop-v2 .site-main .woocommerce-breadcrumb a { color: var(--of-blue); }
body.ofs-shop-v2 .site-main .woocommerce-result-count { color: var(--of-muted); font-size: 14px; }
body.ofs-shop-v2 .site-main .woocommerce-ordering select,
body.ofs-shop-v2 .site-main .woocommerce-widget-layered-nav-dropdown select,
body.ofs-shop-v2 .site-main .widget select {
  min-height: 44px;
  padding: 8px 38px 8px 13px;
  border: 1px solid var(--of-line);
  border-radius: 10px;
  background-color: #fff;
  color: var(--of-ink);
}
body.ofs-shop-v2 .site-main ul.products,
body.ofs-shop-v2 .site-main .wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0 !important;
  padding: 0 !important;
}
body.ofs-shop-v2 .site-main ul.products::before,
body.ofs-shop-v2 .site-main ul.products::after { display: none !important; content: none !important; }
body.ofs-shop-v2 .site-main ul.products li.product,
body.ofs-shop-v2 .site-main .wc-block-grid__product {
  display: flex;
  float: none !important;
  flex-direction: column;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--of-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body.ofs-shop-v2 .site-main ul.products li.product:hover,
body.ofs-shop-v2 .site-main .wc-block-grid__product:hover {
  transform: translateY(-2px);
  border-color: #9cc8e5;
  box-shadow: 0 12px 28px rgba(4, 41, 88, .08);
}
body.ofs-shop-v2 .site-main ul.products li.product a img,
body.ofs-shop-v2 .site-main .wc-block-grid__product-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0 0 14px;
  padding: 10px;
  border-radius: 11px;
  background: var(--of-paper);
  object-fit: contain;
}
body.ofs-shop-v2 .site-main ul.products li.product .woocommerce-loop-product__title,
body.ofs-shop-v2 .site-main .wc-block-grid__product-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--of-navy);
  font: 600 15px/1.42 Lexend, 'Segoe UI', sans-serif;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body.ofs-shop-v2 .site-main ul.products li.product .price,
body.ofs-shop-v2 .site-main .wc-block-grid__product-price {
  margin: 8px 0 12px;
  color: var(--of-blue);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
body.ofs-shop-v2 .site-main ul.products li.product .price del { color: var(--of-muted); font-size: 13px; font-weight: 500; }
body.ofs-shop-v2 .site-main ul.products li.product .price ins { color: var(--of-blue); text-decoration: none; }
body.ofs-shop-v2 .site-main ul.products li.product .star-rating { color: #a56a00; }
body.ofs-shop-v2 .site-main ul.products li.product .onsale,
body.ofs-shop-v2 .site-main .wc-block-grid__product-onsale {
  min-height: auto;
  margin: 8px;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: #a52b25;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}
body.ofs-shop-v2 .site-main ul.products li.product .button { width: 100%; margin-top: auto; }

/* Product cards: keep the decision surface focused on the reference, price
   and purchase action. Trust copy and taxonomy remain available on the
   product page, but do not compete with the card CTA. */
body.ofs-shop-v2 .site-main ul.products li.product .ofs-kan236-trust,
body.ofs-shop-v2 .site-main .wc-block-grid__product .ofs-kan236-trust,
body.ofs-shop-v2 .site-main ul.products li.product ul.entry-meta:has(.meta-categories),
body.ofs-shop-v2 .site-main .wc-block-grid__product ul.entry-meta:has(.meta-categories) {
  display: none !important;
}

/* Blocksy's card rule currently wins over the shared button token. Reassert
   the approved Office Fusion blue and the accessible white label here. */
body.ofs-shop-v2 .site-main ul.products li.product .ct-woo-card-actions > a.button,
body.ofs-shop-v2 .site-main .wc-block-grid__product .ct-woo-card-actions > a.button {
  box-sizing: border-box;
  min-height: 44px;
  margin-top: auto;
  border: 1px solid var(--of-blue) !important;
  border-radius: 10px;
  background: var(--of-blue) !important;
  color: #fff !important;
  font-weight: 700;
  text-align: center;
}
body.ofs-shop-v2 .site-main ul.products li.product .ct-woo-card-actions > a.button:hover,
body.ofs-shop-v2 .site-main ul.products li.product .ct-woo-card-actions > a.button:focus-visible,
body.ofs-shop-v2 .site-main .wc-block-grid__product .ct-woo-card-actions > a.button:hover,
body.ofs-shop-v2 .site-main .wc-block-grid__product .ct-woo-card-actions > a.button:focus-visible {
  border-color: #084783 !important;
  background: #084783 !important;
  color: #fff !important;
}
body.ofs-shop-v2 .site-main ul.products li.product .ct-woo-card-actions > a.button:focus-visible,
body.ofs-shop-v2 .site-main .wc-block-grid__product .ct-woo-card-actions > a.button:focus-visible {
  outline: 3px solid var(--of-cyan);
  outline-offset: 2px;
}
body.ofs-shop-v2 .site-main .woocommerce-pagination ul.page-numbers {
  display: flex; flex-wrap: wrap; gap: 6px; border: 0;
}
body.ofs-shop-v2 .site-main .woocommerce-pagination .page-numbers li { border: 0; }
body.ofs-shop-v2 .site-main .woocommerce-pagination .page-numbers a,
body.ofs-shop-v2 .site-main .woocommerce-pagination .page-numbers span {
  min-width: 40px; min-height: 40px; display: grid; place-items: center;
  border: 1px solid var(--of-line); border-radius: 10px; background: #fff; color: var(--of-navy);
}
body.ofs-shop-v2 .site-main .woocommerce-pagination .page-numbers .current { background: var(--of-navy); color: #fff; }

/* Single product: real Woo gallery, price, stock, variants and tabs. */
body.ofs-shop-v2.single-product .site-main .product.type-product {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: start;
  column-gap: clamp(24px, 4vw, 52px);
  row-gap: 0;
}
/* Blocksy groups the gallery and purchase summary in this wrapper; keep the
   description tabs as a separate, full-width section below that two-column row. */
body.ofs-shop-v2.single-product .site-main .product.type-product > .product-entry-wrapper {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: start;
  gap: clamp(24px, 4vw, 52px);
  min-width: 0;
  width: auto !important;
  max-width: none;
  float: none !important;
}
body.ofs-shop-v2.single-product .site-main .product.type-product > .woocommerce-product-gallery,
body.ofs-shop-v2.single-product .site-main .product.type-product > .summary,
body.ofs-shop-v2.single-product .site-main .product.type-product > .product-entry-wrapper > .woocommerce-product-gallery,
body.ofs-shop-v2.single-product .site-main .product.type-product > .product-entry-wrapper > .summary {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}
body.ofs-shop-v2.single-product .woocommerce-product-gallery {
  padding: 14px;
  border: 1px solid var(--of-line);
  border-radius: 20px;
  background: #fff;
}
body.ofs-shop-v2.single-product .woocommerce-product-gallery__image > a {
  display: grid;
  place-items: center;
  width: 100%;
}
body.ofs-shop-v2.single-product .woocommerce-product-gallery .ct-product-gallery-container > .ct-media-container {
  display: grid;
  place-items: center;
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
}
body.ofs-shop-v2.single-product .woocommerce-product-gallery__image img,
body.ofs-shop-v2.single-product .woocommerce-product-gallery .ct-product-gallery-container > .ct-media-container > img.wp-post-image {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: min(60vh, 480px) !important;
  margin-inline: auto;
  border-radius: 12px;
  aspect-ratio: auto !important;
  background: #fff;
  object-fit: contain !important;
  object-position: center;
}
body.ofs-shop-v2.single-product .woocommerce-product-gallery__image img.zoomImg,
body.ofs-shop-v2.single-product .woocommerce-product-gallery .ct-product-gallery-container > .ct-media-container > img.zoomImg { display: none !important; }
body.ofs-shop-v2.single-product .summary {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--of-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(4, 41, 88, .05);
}
body.ofs-shop-v2.single-product .summary .product_title { margin: 0 0 14px; font-size: clamp(27px, 3vw, 38px); }
body.ofs-shop-v2.single-product .summary .price { color: var(--of-blue); font-size: clamp(22px, 2.5vw, 30px); font-weight: 800; font-variant-numeric: tabular-nums; }
body.ofs-shop-v2.single-product .summary .price del { color: var(--of-muted); font-size: .65em; font-weight: 500; }
body.ofs-shop-v2.single-product .summary .price ins { color: var(--of-blue); text-decoration: none; }
body.ofs-shop-v2.single-product .summary .stock { color: #177653; font-weight: 700; }
body.ofs-shop-v2.single-product .summary .out-of-stock { color: #a14343; }
body.ofs-shop-v2.single-product .summary form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
body.ofs-shop-v2.single-product .summary .quantity .qty { width: 78px; min-height: 44px; border: 1px solid var(--of-line); border-radius: 10px; text-align: center; }
body.ofs-shop-v2.single-product .summary .single_add_to_cart_button { flex: 1 1 190px; }
body.ofs-shop-v2.single-product .summary .product_meta { display: grid; gap: 7px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--of-line); color: var(--of-muted); font-size: 13px; }
body.ofs-shop-v2.single-product .woocommerce-tabs { margin-top: clamp(32px, 5vw, 60px); }
body.ofs-shop-v2.single-product .site-main .product.type-product > .woocommerce-tabs {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}
body.ofs-shop-v2.single-product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 !important; border: 0 !important; }
body.ofs-shop-v2.single-product .woocommerce-tabs ul.tabs::before,
body.ofs-shop-v2.single-product .woocommerce-tabs ul.tabs li::before,
body.ofs-shop-v2.single-product .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.ofs-shop-v2.single-product .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
body.ofs-shop-v2.single-product .woocommerce-tabs ul.tabs a { display: block; padding: 11px 16px !important; border: 1px solid var(--of-line); border-radius: 999px; background: #fff; color: var(--of-ink); }
body.ofs-shop-v2.single-product .woocommerce-tabs ul.tabs .active a { border-color: var(--of-navy); background: var(--of-navy); color: #fff; }
body.ofs-shop-v2.single-product .woocommerce-tabs .panel { padding: clamp(20px, 3vw, 34px); border: 1px solid var(--of-line); border-radius: 18px; background: #fff; }
body.ofs-shop-v2.single-product .woocommerce-tabs .panel > h2:first-child { margin-top: 0; }
body.ofs-shop-v2.single-product .related > h2,
body.ofs-shop-v2.single-product .upsells > h2 { margin: 44px 0 18px; font-size: clamp(24px, 3vw, 34px); }

/* Cart and checkout: style the Woo blocks without replacing their behavior. */
body.ofs-shop-v2.woocommerce-cart .site-main .ct-container,
body.ofs-shop-v2.woocommerce-checkout .site-main .ct-container { padding-block: clamp(24px, 4vw, 48px); }
body.ofs-shop-v2 .wc-block-cart__main,
body.ofs-shop-v2 .wc-block-cart__sidebar,
body.ofs-shop-v2 .wc-block-checkout__form,
body.ofs-shop-v2 .wc-block-checkout__sidebar,
body.ofs-shop-v2 .woocommerce-cart-form,
body.ofs-shop-v2 .cart-collaterals .cart_totals {
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--of-line);
  border-radius: 18px;
  background: #fff;
}
body.ofs-shop-v2 .wc-block-cart__sidebar,
body.ofs-shop-v2 .wc-block-checkout__sidebar,
body.ofs-shop-v2 .cart-collaterals .cart_totals { box-shadow: 0 10px 28px rgba(4, 41, 88, .05); }
/* Keep the cart-to-checkout action visibly labeled under inherited theme rules. */
body.ofs-shop-v2.woocommerce-cart .wc-block-cart__submit-button,
body.ofs-shop-v2.woocommerce-cart .wc-proceed-to-checkout > .checkout-button {
  box-sizing: border-box;
  display: inline-flex !important;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--of-blue) !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.25 !important;
  text-align: center;
  text-decoration: none !important;
  text-indent: 0 !important;
  white-space: normal;
  visibility: visible !important;
  opacity: 1 !important;
}
body.ofs-shop-v2.woocommerce-cart .wc-block-cart__submit-button .wc-block-components-button__text {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
  text-indent: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body.ofs-shop-v2.woocommerce-cart .wc-block-cart__submit-button .screen-reader-text,
body.ofs-shop-v2.woocommerce-cart .wc-proceed-to-checkout > .checkout-button .screen-reader-text {
  position: static !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
  text-indent: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body.ofs-shop-v2 .wc-block-components-totals-wrapper,
body.ofs-shop-v2 .wc-block-cart-items__row,
body.ofs-shop-v2 .woocommerce-cart-form .shop_table th,
body.ofs-shop-v2 .woocommerce-cart-form .shop_table td { border-color: var(--of-line); }
body.ofs-shop-v2 .wc-block-components-title,
body.ofs-shop-v2 .wc-block-components-checkout-step__title,
body.ofs-shop-v2 .wc-block-cart__empty-cart__title { color: var(--of-navy); font-family: Lexend, 'Segoe UI', sans-serif; }
body.ofs-shop-v2 .wc-block-components-text-input input,
body.ofs-shop-v2 .wc-block-components-text-input textarea,
body.ofs-shop-v2 .wc-blocks-components-select .wc-blocks-components-select__container,
body.ofs-shop-v2 .wc-block-components-combobox .components-combobox-control__input,
body.ofs-shop-v2 .wc-block-components-textarea {
  min-height: 46px;
  border-color: var(--of-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--of-ink) !important;
}
body.ofs-shop-v2 .wc-block-components-text-input input:focus,
body.ofs-shop-v2 .wc-block-components-text-input textarea:focus,
body.ofs-shop-v2 .wc-block-components-textarea:focus { border-color: var(--of-blue) !important; box-shadow: 0 0 0 3px rgba(65, 185, 242, .2); }
body.ofs-shop-v2 .wc-block-components-radio-control-accordion-option,
body.ofs-shop-v2 .wc-block-components-checkout-step,
body.ofs-shop-v2 .wc-block-components-order-summary { border-color: var(--of-line); }
body.ofs-shop-v2 .wc-block-components-notice-banner { border-radius: 12px; }
body.ofs-shop-v2 .woocommerce-cart .shop_table { border-color: var(--of-line); border-radius: 12px; overflow: hidden; }
body.ofs-shop-v2 .woocommerce-cart .shop_table th { color: var(--of-navy); }
body.ofs-shop-v2 .woocommerce-cart .shop_table td.product-name a { color: var(--of-navy); font-weight: 700; }
body.ofs-shop-v2 .woocommerce-cart .cart-collaterals { margin-top: 24px; }

/* Account dashboard and sign-in forms */
body.ofs-shop-v2.woocommerce-account .site-main .woocommerce:not(.woocommerce-order),
body.ofs-shop-v2 .woocommerce-account .site-main .woocommerce {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
body.ofs-shop-v2.woocommerce-account .woocommerce-MyAccount-navigation,
body.ofs-shop-v2.woocommerce-account .woocommerce-MyAccount-content,
body.ofs-shop-v2.woocommerce-account .woocommerce-form-login,
body.ofs-shop-v2.woocommerce-account .woocommerce-form-register,
body.ofs-shop-v2.woocommerce-account .woocommerce-ResetPassword {
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid var(--of-line);
  border-radius: 18px;
  background: #fff;
}
body.ofs-shop-v2.woocommerce-account .woocommerce-MyAccount-navigation ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
body.ofs-shop-v2.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; }
body.ofs-shop-v2.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--of-ink); font-weight: 650; text-decoration: none; }
body.ofs-shop-v2.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
body.ofs-shop-v2.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--of-blue-soft); color: var(--of-blue); }
body.ofs-shop-v2.woocommerce-account .woocommerce-MyAccount-content { min-width: 0; }
body.ofs-shop-v2.woocommerce-account .woocommerce-MyAccount-content a { color: var(--of-blue); }
body.ofs-shop-v2.woocommerce-account .woocommerce form .form-row label { color: var(--of-ink); font-weight: 700; }
body.ofs-shop-v2.woocommerce-account .woocommerce form .form-row input.input-text { min-height: 46px; }
body.ofs-shop-v2.woocommerce-account .woocommerce-LostPassword { margin-top: 14px; }

@media (max-width: 1050px) {
  body.ofs-shop-v2 .site-main ul.products,
  body.ofs-shop-v2 .site-main .wc-block-grid__products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  body.ofs-shop-v2 .site-main ul.products,
  body.ofs-shop-v2 .site-main .wc-block-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.ofs-shop-v2.single-product .site-main .product.type-product { grid-template-columns: minmax(0, 1fr); }
  body.ofs-shop-v2.single-product .site-main .product.type-product > .product-entry-wrapper { grid-column: 1; grid-template-columns: minmax(0, 1fr); }
  body.ofs-shop-v2.single-product .site-main .product.type-product > .woocommerce-tabs { grid-column: 1; }
  body.ofs-shop-v2.single-product .woocommerce-product-gallery__image img,
  body.ofs-shop-v2.single-product .woocommerce-product-gallery .ct-product-gallery-container > .ct-media-container > img.wp-post-image { max-height: min(54vh, 360px) !important; }
  body.ofs-shop-v2.woocommerce-account .site-main .woocommerce:not(.woocommerce-order) { grid-template-columns: minmax(0, 1fr); }
  body.ofs-shop-v2.woocommerce-account .woocommerce-MyAccount-navigation ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body.ofs-shop-v2 .site-main .ct-container,
  body.ofs-shop-v2 .site-main .entry-content { width: min(calc(100% - 32px), 1240px); }
  body.ofs-shop-v2 .site-main .entry-content { padding: 22px 18px; border-radius: 15px; }
  body.ofs-shop-v2 .site-main .entry-header { padding-block: 26px; }
  body.ofs-shop-v2 .site-main .woocommerce-products-header { padding: 22px 18px; border-radius: 15px; }
  body.ofs-shop-v2 .site-main ul.products,
  body.ofs-shop-v2 .site-main .wc-block-grid__products { gap: 10px; }
  body.ofs-shop-v2 .site-main ul.products li.product,
  body.ofs-shop-v2 .site-main .wc-block-grid__product { padding: 10px; border-radius: 13px; }
  body.ofs-shop-v2 .site-main ul.products li.product .woocommerce-loop-product__title,
  body.ofs-shop-v2 .site-main .wc-block-grid__product-title { font-size: 13px; }
  body.ofs-shop-v2 .site-main ul.products li.product .price,
  body.ofs-shop-v2 .site-main .wc-block-grid__product-price { font-size: 15px; }
  body.ofs-shop-v2.single-product .summary { padding: 21px 18px; }
  body.ofs-shop-v2 .wc-block-cart__main,
  body.ofs-shop-v2 .wc-block-cart__sidebar,
  body.ofs-shop-v2 .wc-block-checkout__form,
  body.ofs-shop-v2 .wc-block-checkout__sidebar,
  body.ofs-shop-v2 .woocommerce-cart-form,
  body.ofs-shop-v2 .cart-collaterals .cart_totals { padding: 16px; }
  body.ofs-shop-v2.woocommerce-account .woocommerce-MyAccount-navigation ul { grid-template-columns: 1fr 1fr; }
  body.ofs-shop-v2 .woocommerce-result-count { float: none; margin: 0 0 8px; }
  body.ofs-shop-v2 .woocommerce-ordering { float: none; margin: 0 0 10px; }

  /* Keep the live cart and checkout legible while this plugin is the fallback. */
  body.ofs-shop-v2.woocommerce-cart .site-main .entry-content,
  body.ofs-shop-v2.woocommerce-checkout .site-main .entry-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 16px 12px;
  }
  body.ofs-shop-v2.woocommerce-cart .wp-block-woocommerce-cart.alignwide,
  body.ofs-shop-v2.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide,
  body.ofs-shop-v2.woocommerce-cart .wc-block-components-sidebar-layout,
  body.ofs-shop-v2.woocommerce-checkout .wc-block-components-sidebar-layout {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
  }
  body.ofs-shop-v2.woocommerce-cart .wc-block-components-sidebar-layout,
  body.ofs-shop-v2.woocommerce-checkout .wc-block-components-sidebar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  body.ofs-shop-v2.woocommerce-cart .wc-block-components-main,
  body.ofs-shop-v2.woocommerce-cart .wc-block-components-sidebar,
  body.ofs-shop-v2.woocommerce-checkout .wc-block-components-main,
  body.ofs-shop-v2.woocommerce-checkout .wc-block-components-sidebar,
  body.ofs-shop-v2.woocommerce-checkout .wc-block-checkout__form,
  body.ofs-shop-v2.woocommerce-checkout .wc-block-checkout__sidebar {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
  }
  body.ofs-shop-v2.woocommerce-cart .wc-block-cart-items {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  body.ofs-shop-v2.woocommerce-cart .wc-block-cart-items__row {
    box-sizing: border-box;
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas: "image product" "image total";
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 12px;
    row-gap: 10px;
  }
  body.ofs-shop-v2.woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__image,
  body.ofs-shop-v2.woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__product,
  body.ofs-shop-v2.woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__total {
    box-sizing: border-box;
    position: static;
    display: block;
    float: none;
    width: auto;
    max-width: 100%;
    min-width: 0;
  }
  body.ofs-shop-v2.woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__image {
    grid-area: image;
    width: 64px;
  }
  body.ofs-shop-v2.woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__product { grid-area: product; }
  body.ofs-shop-v2.woocommerce-cart .wc-block-cart-items__row > .wc-block-cart-item__total {
    grid-area: total;
    justify-self: start;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  body.ofs-shop-v2.woocommerce-checkout .wc-block-components-order-summary-item {
    box-sizing: border-box;
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    column-gap: 12px;
    row-gap: 8px;
  }
  body.ofs-shop-v2.woocommerce-checkout .wc-block-components-order-summary-item__image {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 48px;
    max-width: 100%;
  }
  body.ofs-shop-v2.woocommerce-checkout .wc-block-components-order-summary-item__description,
  body.ofs-shop-v2.woocommerce-checkout .wc-block-components-order-summary-item__total-price {
    grid-column: 2;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  body.ofs-shop-v2.woocommerce-checkout .wc-block-components-order-summary-item__total-price {
    margin: 0;
    text-align: left;
  }
  body.ofs-shop-v2.woocommerce-cart .of2-whatsapp,
  body.ofs-shop-v2.woocommerce-checkout .of2-whatsapp,
  body.ofs-shop-v2.woocommerce-cart .ofs-shell-whatsapp,
  body.ofs-shop-v2.woocommerce-checkout .ofs-shell-whatsapp { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.ofs-shop-v2 .site-main ul.products li.product,
  body.ofs-shop-v2 .site-main .wc-block-grid__product { transition: none; }
}
