/* Phone Shop Bristol — WooCommerce layout refinement 2026-11-06.
   Visual-only improvements; no prices, orders, payment or booking logic. */
body.woocommerce .psb-wc-container,
body.woocommerce-page .psb-wc-container{min-width:0;box-sizing:border-box}
body.woocommerce .psb-shop-layout,
body.woocommerce .psb-shop-results,
body.woocommerce .psb-shop-sidebar{min-width:0}
body.woocommerce .psb-shop-hero{overflow:hidden}
body.woocommerce .psb-shop-hero img{max-width:100%;height:auto;object-fit:contain}
body.woocommerce .psb-shop-chips{display:flex;gap:9px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;padding-bottom:8px}
body.woocommerce .psb-shop-chips a{white-space:nowrap;flex-shrink:0}
body.woocommerce .psb-shop-result-head{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
body.woocommerce .psb-shop-result-head form{max-width:100%;min-width:0}
body.woocommerce .psb-shop-result-head select{min-height:42px;max-width:100%;border-radius:10px}
body.woocommerce .psb-products-grid{min-width:0;align-items:stretch}
body.woocommerce .psb-products-grid .psb-product-card{min-width:0;display:flex;flex-direction:column;height:100%;box-sizing:border-box;overflow:hidden;border:1px solid #e4e9e4;border-radius:18px;background:#fff;box-shadow:0 9px 26px rgba(11,61,46,.055);transition:border-color .2s ease,box-shadow .2s ease}
body.woocommerce .psb-products-grid .psb-product-card:hover{border-color:#eeac82;box-shadow:0 14px 34px rgba(11,61,46,.09)}
body.woocommerce .psb-product-card .psb-product-image{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;background:#fafbf9;padding:14px;box-sizing:border-box;overflow:hidden}
body.woocommerce .psb-product-card .psb-product-image img{display:block!important;width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center}
body.woocommerce .psb-product-card .psb-product-body{display:flex;flex:1;flex-direction:column;gap:8px;padding:15px;min-width:0}
body.woocommerce .psb-product-card .psb-product-kicker{color:#376256;letter-spacing:.065em;font-weight:800;font-size:11px;text-transform:uppercase}
body.woocommerce .psb-product-card h2{margin:0!important;min-height:2.7em;font-size:clamp(14px,1.1vw,17px)!important;line-height:1.35!important;overflow-wrap:anywhere}
body.woocommerce .psb-product-card h2 a{color:#14201b!important;text-decoration:none}
body.woocommerce .psb-product-card h2 a:hover{text-decoration:underline}
body.woocommerce .psb-product-card .psb-product-meta{display:flex;flex-wrap:wrap;gap:5px;margin:0}
body.woocommerce .psb-product-card .psb-product-meta span{font-size:11px!important;line-height:1.25;border-radius:8px;padding:5px 7px;color:#3f514a;background:#f4f8f5}
body.woocommerce .psb-product-card .psb-product-meta span:nth-child(n+3){display:none!important}
body.woocommerce .psb-product-card .psb-card-facts{font-size:12px;line-height:1.45;margin:0}
body.woocommerce .psb-product-card .psb-card-facts span:nth-child(n+3){display:none}
body.woocommerce .psb-product-card .psb-product-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:auto;padding-top:10px;border-top:1px solid #edf1ec}
body.woocommerce .psb-product-card .psb-price{min-width:0}
body.woocommerce .psb-product-card .psb-price .amount{font-size:19px!important;line-height:1.15;font-weight:850!important;color:#143629!important}
body.woocommerce .psb-product-card .psb-price del .amount{font-size:12px!important;color:#66746d!important;font-weight:600!important}
body.woocommerce .psb-product-card .psb-stock{font-size:11px!important;line-height:1.25;white-space:normal}
body.woocommerce .psb-product-card .psb-product-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;width:100%;margin-top:4px}
body.woocommerce .psb-product-card .psb-product-actions a{box-sizing:border-box!important;display:flex!important;align-items:center;justify-content:center;min-width:0;min-height:44px!important;margin:0!important;padding:9px 8px!important;white-space:normal!important;text-align:center;font-size:12px!important;line-height:1.25!important;border-radius:10px!important;text-decoration:none;font-weight:750!important}
body.woocommerce .psb-product-card .psb-product-actions .psb-view-product{background:#fff!important;color:#14201b!important;border:1px solid #aebbb4!important}
body.woocommerce .psb-product-card .psb-product-actions .button{background:#f26b1d!important;color:#14201b!important;border:1px solid #f26b1d!important}
body.woocommerce .psb-product-card .psb-product-actions .button:hover{background:#dc5a10!important;border-color:#dc5a10!important;color:#fff!important}
body.woocommerce .psb-product-card .psb-reserve-link{margin-top:3px;display:inline-flex;align-items:center;gap:5px;color:#145d47!important;font-size:12px;line-height:1.4;text-decoration:underline;text-underline-offset:2px}
body.woocommerce .psb-product-card .psb-card-disclaimer{font-size:10px!important;line-height:1.45;color:#69756e}
body.single-product .psb-single-product-top{min-width:0}
body.single-product .psb-product-gallery-column,
body.single-product .psb-product-buy-card{min-width:0;box-sizing:border-box}
body.single-product .psb-product-gallery-column .woocommerce-product-gallery{max-width:100%;box-sizing:border-box}
body.single-product .woocommerce-product-gallery img{display:block;max-width:100%;height:auto;object-fit:contain}
body.single-product .woocommerce-product-gallery{opacity:1!important}
body.single-product .psb-product-buy-card{border:1px solid #e4e9e4;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(11,61,46,.055)}
body.single-product .psb-product-buy-card .product_title{overflow-wrap:anywhere;line-height:1.18!important}
body.single-product .psb-product-buy-card .price .amount{color:#123829}
body.single-product .psb-product-buy-card form.cart{max-width:100%;box-sizing:border-box}
body.single-product .psb-product-buy-card form.cart .button{min-height:48px;white-space:normal;line-height:1.3;text-align:center;box-sizing:border-box}
body.single-product .psb-product-buy-card form.cart input.qty{min-height:44px;box-sizing:border-box}
body.single-product .psb-single-product-lower{min-width:0;box-sizing:border-box}
body.single-product .woocommerce-tabs{max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
body.single-product .woocommerce-tabs .wc-tabs{max-width:100%;display:flex;flex-wrap:wrap;gap:7px}
body.single-product .woocommerce-tabs .wc-tabs li{max-width:100%}
body.single-product .woocommerce-tabs .wc-tabs li a{white-space:normal}
body.woocommerce-cart .psb-generic-featured,
body.woocommerce-checkout .psb-generic-featured{display:none!important}
body.woocommerce-cart .psb-content-narrow,
body.woocommerce-checkout .psb-content-narrow{box-sizing:border-box;width:min(100% - 32px,1160px)!important;max-width:1160px!important;margin-inline:auto}
body.woocommerce-cart .psb-entry-content,
body.woocommerce-checkout .psb-entry-content{min-width:0}
body.woocommerce-cart .woocommerce table.shop_table,
body.woocommerce-checkout .woocommerce table.shop_table{width:100%;max-width:100%;border-collapse:separate}
body.woocommerce-cart .woocommerce .button,
body.woocommerce-checkout .woocommerce .button{min-height:44px;white-space:normal;border-radius:10px}
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-checkout #place_order{background:#f26b1d!important;color:#14201b!important;font-weight:800!important;text-align:center}
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info{background:#eff8f3;color:#163d2d;border-color:#0e7c66}
body.woocommerce-cart .woocommerce-info a,
body.woocommerce-checkout .woocommerce-info a{color:#07543e;text-decoration:underline;text-underline-offset:2px}
body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row select,
body.woocommerce-checkout .woocommerce form .form-row textarea{width:100%;max-width:100%;box-sizing:border-box;min-height:44px}
body.woocommerce-cart .woocommerce :focus-visible,
body.woocommerce-checkout .woocommerce :focus-visible,
body.single-product .woocommerce :focus-visible,
body.woocommerce-shop .woocommerce :focus-visible{outline:3px solid #145d47!important;outline-offset:2px!important}
@media(max-width:980px){
 body.woocommerce .psb-shop-layout{grid-template-columns:minmax(0,1fr)}
 body.single-product .psb-single-product-top{gap:22px!important}
}
@media(max-width:767px){
 body.woocommerce .psb-shop-hero{grid-template-columns:minmax(0,1fr)!important}
 body.woocommerce .psb-shop-hero img{max-height:250px;object-fit:contain}
 body.woocommerce .psb-shop-result-head{align-items:stretch}
 body.woocommerce .psb-shop-result-head form{width:100%}
 body.woocommerce .psb-shop-result-head select{width:100%}
 body.woocommerce .psb-products-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 body.woocommerce .psb-product-card .psb-product-image{padding:9px}
 body.woocommerce .psb-product-card .psb-product-body{padding:11px;gap:7px}
 body.woocommerce .psb-product-card h2{font-size:13px!important;line-height:1.38!important;min-height:3.9em}
 body.woocommerce .psb-product-card .psb-product-meta{display:none}
 body.woocommerce .psb-product-card .psb-card-facts span:nth-child(n+2){display:none}
 body.woocommerce .psb-product-card .psb-price .amount{font-size:17px!important}
 body.woocommerce .psb-product-card .psb-product-row{display:block}
 body.woocommerce .psb-product-card .psb-stock{display:inline-flex;margin-top:6px}
 body.woocommerce .psb-product-card .psb-product-actions{grid-template-columns:minmax(0,1fr)!important}
 body.woocommerce .psb-product-card .psb-product-actions .psb-view-product{display:none!important}
 body.woocommerce .psb-product-card .psb-reserve-link{font-size:11px}
 body.single-product .psb-product-buy-card{padding:16px!important}
 body.single-product .psb-product-buy-card form.cart{display:grid;grid-template-columns:minmax(0,1fr)!important}
 body.single-product .psb-product-buy-card form.cart .button{display:block;width:100%!important;margin:0!important}
 body.single-product .woocommerce-product-gallery{padding:12px!important}
 body.woocommerce-cart .psb-content-narrow,
 body.woocommerce-checkout .psb-content-narrow{width:100%!important;padding-inline:16px!important}
 body.woocommerce-cart .woocommerce table.shop_table_responsive td,
 body.woocommerce-checkout .woocommerce table.shop_table_responsive td{overflow-wrap:anywhere}
 body.woocommerce-checkout .woocommerce .col2-set .col-1,
 body.woocommerce-checkout .woocommerce .col2-set .col-2{width:100%!important;float:none!important;max-width:100%!important}
}
@media(max-width:380px){
 body.woocommerce .psb-products-grid{gap:9px!important}
 body.woocommerce .psb-product-card .psb-product-body{padding:9px}
 body.woocommerce .psb-product-card .psb-product-actions a{font-size:11px!important}
}
/* 2026-11-06 mobile catalogue correction.
   The older main-v651.css forces every product card into grid-column:1!important,
   leaving the second column empty. Override the item placement as well as the grid. */
@media(max-width:767px){
 body.post-type-archive-product .psb-shop-results .psb-archive-grid,
 body.tax-product_cat .psb-shop-results .psb-archive-grid,
 body.tax-product_tag .psb-shop-results .psb-archive-grid{
   display:grid!important;
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
   grid-auto-flow:row!important;
   gap:12px!important;
   width:100%!important;
   justify-items:stretch!important;
 }
 body.woocommerce .psb-archive-grid > article.psb-product-card{
   grid-column:auto!important;
   grid-row:auto!important;
   width:100%!important;
   min-width:0!important;
   max-width:100%!important;
   margin:0!important;
   float:none!important;
   justify-self:stretch!important;
   align-self:stretch!important;
   height:100%!important;
 }
 body.woocommerce .psb-archive-grid .psb-product-image{
   aspect-ratio:1/1!important;
   min-height:0!important;
   height:auto!important;
   padding:9px!important;
   display:flex!important;
   align-items:center!important;
   justify-content:center!important;
   box-sizing:border-box!important;
 }
 body.woocommerce .psb-archive-grid .psb-product-image img{
   display:block!important;
   width:100%!important;
   height:100%!important;
   max-height:100%!important;
   min-width:0!important;
   object-fit:contain!important;
 }
 body.woocommerce .psb-archive-grid .psb-product-body{
   display:flex!important;
   flex-direction:column!important;
   gap:7px!important;
   min-height:0!important;
   padding:11px!important;
 }
 body.woocommerce .psb-archive-grid .psb-product-kicker{
   font-size:10px!important;
   line-height:1.35!important;
   letter-spacing:.035em!important;
   margin:0!important;
 }
 body.woocommerce .psb-archive-grid .psb-product-card h2{
   font-size:13px!important;
   min-height:0!important;
   line-height:1.37!important;
   margin:0!important;
   letter-spacing:-.02em!important;
 }
 body.woocommerce .psb-archive-grid .psb-product-meta,
 body.woocommerce .psb-archive-grid .psb-card-facts{
   display:none!important;
 }
 body.woocommerce .psb-archive-grid .psb-product-row{
   display:flex!important;
   flex-direction:column!important;
   align-items:flex-start!important;
   gap:5px!important;
   margin-top:auto!important;
   padding-top:8px!important;
 }
 body.woocommerce .psb-archive-grid .psb-stock{
   margin:0!important;
   padding:4px 6px!important;
 }
 body.woocommerce .psb-archive-grid .psb-product-actions{
   display:grid!important;
   grid-template-columns:minmax(0,1fr)!important;
   gap:6px!important;
   margin-top:2px!important;
 }
 body.woocommerce .psb-archive-grid .psb-product-actions .psb-view-product{
   display:none!important;
 }
 body.woocommerce .psb-archive-grid .psb-product-actions .button{
   display:flex!important;
   width:100%!important;
   min-height:44px!important;
   align-items:center!important;
   justify-content:center!important;
   margin:0!important;
   padding:8px!important;
   line-height:1.25!important;
   box-sizing:border-box!important;
 }
 body.woocommerce .psb-archive-grid .psb-reserve-link{
   display:flex!important;
   margin:0!important;
   font-size:10px!important;
   line-height:1.35!important;
   min-height:0!important;
   padding:5px 0!important;
   background:transparent!important;
   text-decoration:underline!important;
   justify-content:flex-start!important;
 }
 body.woocommerce .psb-archive-grid .psb-card-disclaimer{
   display:none!important;
 }
}
@media(max-width:380px){
 body.woocommerce .psb-shop-results .psb-archive-grid{gap:9px!important}
 body.woocommerce .psb-archive-grid .psb-product-body{padding:9px!important}
 body.woocommerce .psb-archive-grid .psb-product-card h2{font-size:12.5px!important}
 body.woocommerce .psb-archive-grid .psb-image-grade,
 body.woocommerce .psb-archive-grid .psb-sale-badge{font-size:9px!important}
}
@media(prefers-reduced-motion:reduce){body.woocommerce .psb-product-card{transition:none!important}}

/* Root-cause desktop fix: the WooCommerce class is on the body itself. The old
   body.single-product .woocommerce selector missed this outer product wrapper,
   leaving its default two-column grid active and the entire product in column one. */
body.single-product.woocommerce div.product.psb-product-page,
body.single-product.woocommerce-page div.product.psb-product-page{
  display:block!important;
  grid-template-columns:none!important;
  grid-template-rows:none!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  float:none!important;
  clear:both!important;
}

/* 2026-11-08 — reliable full-width single-product desktop gallery and related cards.
   Scope only to WooCommerce product pages; keep sale/variation/cart logic unchanged. */
body.single-product .psb-single-product-main > .psb-wc-container {
  box-sizing:border-box!important;
  max-width:1280px!important;
}
body.single-product .psb-single-product-shell,
body.single-product .psb-product-page,
body.single-product .psb-single-product-top,
body.single-product .psb-single-product-lower{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
@media(min-width:901px){
  body.single-product .psb-single-product-top{
    display:grid!important;
    grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr)!important;
    gap:clamp(24px,3vw,44px)!important;
    align-items:start!important;
  }
}
body.single-product .psb-product-gallery-column,
body.single-product .psb-product-buy-card{
  min-width:0!important;
  max-width:100%!important;
}
body.single-product .psb-product-gallery-column .woocommerce-product-gallery {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  opacity:1!important;
  box-sizing:border-box!important;
}
body.single-product .psb-product-gallery-column .woocommerce-product-gallery__image a{
  display:block;
  width:100%;
}
body.single-product .psb-product-gallery-column .woocommerce-product-gallery__image img{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  max-height:540px;
  margin:0 auto;
  object-fit:contain!important;
}
/* Variable products must not inherit the simple-product three-column form grid.
   Keep model and colour selections readable at every desktop width. */
body.single-product .psb-product-buy-card form.variations_form.cart{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:18px 0 14px!important;
}
body.single-product .psb-product-buy-card form.variations_form.cart table.variations{
  display:table!important;
  table-layout:fixed;
  width:100%!important;
  max-width:100%!important;
  margin:0 0 16px!important;
  border-collapse:separate;
  border-spacing:0 10px;
}
body.single-product .psb-product-buy-card form.variations_form.cart table.variations th.label{
  width:116px;
  max-width:116px;
  padding:0 12px 0 0!important;
  font-size:14px;
  line-height:1.35;
  text-align:left;
  vertical-align:middle;
}
body.single-product .psb-product-buy-card form.variations_form.cart table.variations td.value{
  min-width:0;
  width:auto;
  padding:0!important;
  text-align:left;
}
body.single-product .psb-product-buy-card form.variations_form.cart table.variations select{
  display:block;
  box-sizing:border-box;
  min-height:50px;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  border-radius:10px;
  padding:10px;
  border:1px solid #cad7d0;
  background-color:#fff;
  color:#142b21;
}
body.single-product .psb-product-buy-card form.variations_form.cart .single_variation_wrap{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
}
body.single-product .psb-product-buy-card form.variations_form.cart .woocommerce-variation-add-to-cart{
  display:grid!important;
  grid-template-columns:80px minmax(0,1fr)!important;
  align-items:stretch;
  gap:10px;
  width:100%;
}
body.single-product .psb-product-buy-card form.variations_form.cart .woocommerce-variation-add-to-cart .quantity{
  display:block!important;
  grid-column:1!important;
  width:100%!important;
}
body.single-product .psb-product-buy-card form.variations_form.cart .woocommerce-variation-add-to-cart .single_add_to_cart_button{
  grid-column:2!important;
  min-height:50px;
  width:100%!important;
  margin:0!important;
  border-radius:12px!important;
}
@media(max-width:480px){
  body.single-product .psb-product-buy-card form.variations_form.cart table.variations th.label{
    width:95px;
    max-width:95px;
    font-size:12px;
  }
}

/* WooCommerce no-slider fallback: avoid seven 500px photos shrinking into one row.
   Once FlexSlider wraps the gallery in .flex-viewport, its native layout takes over. */
body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport)) > .woocommerce-product-gallery__wrapper{
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  align-items:start;
  width:100%!important;
  min-width:0!important;
}
body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport)) > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport)) > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child{
  grid-column:1/-1;
  display:flex!important;
  align-items:center;
  justify-content:center;
  min-height:390px;
}
body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport)) > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child img{
  max-height:520px!important;
  width:100%!important;
  object-fit:contain!important;
}
body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport)) > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:not(:first-child) img{
  width:100%!important;
  aspect-ratio:1/1;
  object-fit:contain!important;
  max-height:110px!important;
  border:1px solid #e7ebe8;
  border-radius:9px;
  padding:3px;
  box-sizing:border-box;
}
/* Related products use <article> cards (not the default WooCommerce <li>).
   Explicitly size those grid children to avoid the squashed desktop cards. */
body.single-product .psb-single-product-lower .related,
body.single-product .psb-single-product-lower .upsells{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
body.single-product .psb-single-product-lower .related > ul.products,
body.single-product .psb-single-product-lower .upsells > ul.products{
  display:grid!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
}
body.single-product .psb-single-product-lower ul.products > article.psb-product-card{
  display:flex!important;
  flex-direction:column!important;
  grid-column:auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  float:none!important;
  box-sizing:border-box!important;
}
body.single-product .psb-single-product-lower ul.products > article.psb-product-card .psb-product-image{
  width:100%!important;
  min-width:0!important;
  aspect-ratio:1/1;
  overflow:hidden;
}
body.single-product .psb-single-product-lower ul.products > article.psb-product-card .psb-product-image img{
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  object-fit:contain!important;
}
@media(max-width:1080px){
 body.single-product .psb-single-product-lower .related > ul.products,
 body.single-product .psb-single-product-lower .upsells > ul.products{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
}
@media(max-width:900px){
 body.single-product .psb-single-product-top{display:block!important;}
 body.single-product .psb-single-product-lower .related > ul.products,
 body.single-product .psb-single-product-lower .upsells > ul.products{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
}
@media(max-width:600px){
 body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport)) > .woocommerce-product-gallery__wrapper{
   grid-template-columns:repeat(4,minmax(0,1fr));
 }
 body.single-product .woocommerce-product-gallery:not(:has(.flex-viewport)) > .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:first-child{
   min-height:220px;
 }
 body.single-product .psb-single-product-lower .related > ul.products,
 body.single-product .psb-single-product-lower .upsells > ul.products{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
 }
}

