/* peptide-shop.com — project-specific styling. Loaded after Enfuse/VM styles.
   Keep additions scoped; do not import/duplicate legacy template rules. */

/* 1. Global typography — reserved; no site-wide redesign in PS-STAB-03. */

/* 2. Header and navigation — working B01/B02 rules remain in their files. */

/* PS-STAB-06: native VM catalog search; retain the single Enfuse magnifier. */
#search-position #searchOpenButton { border:0; padding:0; }
#search-position .ps-catalog-search-form { margin:0; padding:0; }
#search-position .ps-catalog-search { position:relative; display:flex; align-items:center; width:174px; max-width:calc(100vw - 90px); height:40px; margin:0; box-sizing:border-box; }
#search-position .ps-catalog-search .ps-search-input { flex:1 1 0; width:0; min-width:0; max-width:none; margin:0; font-size:16px; }
#search-position .ps-search-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
#search-position #searchOpenButton:focus-visible { outline:2px solid #0865ad; outline-offset:-2px; }

/* 3. Mobile layout — header brand fits without clipping or changing artwork. */
/* PS-STAB-09B / PS-LAYOUT-01: brand stacking through979px; desktop unchanged. */
@media (max-width:979px) {
    #top-handler #site-name-handler { float:none; width:100%; min-width:0; height:auto !important; margin:0; box-sizing:border-box; }
    #top-handler #sn-position { display:flex; flex-direction:column; align-items:center; gap:8px; width:100%; min-width:0; padding:24px 0 12px; box-sizing:border-box; text-align:center; }
    /* The legacy responsive stylesheet makes these static with !important;
       retain that contract and override only its extra padding/fixed offsets. */
    #top-handler #sn-position #h1,
    #top-handler #sn-position #h2 { position:static !important; float:none; width:auto; min-width:0; max-width:100%; margin:0; padding:0; box-sizing:border-box; }
    #top-handler #sn-position #h1 a { display:block; max-width:100%; }
    #top-handler #sn-position #h1 img { display:block; width:auto; max-width:100%; height:auto; margin-inline:auto; }
    #top-handler #sn-position #h2 { white-space:normal; overflow-wrap:anywhere; text-align:center; }
}


/* 4. VirtueMart categories, products and checkout. */
/* Cart/category CSS cleanup. Keep decorative HR spacing; do not hide plugin
   separators, terms text, customer-note wells or account forms elsewhere. */
.category_description,
.orderby-displaynumber { border:none !important; }

/* Three separators in the logged-in BS3 cart: one after the login/logout form,
   two direct children of checkoutForm. Transparent strokes preserve spacing. */
#cart-view.cart-view > form#form-login.well + hr,
#cart-view.cart-view > form#checkoutForm > hr {
    border-color:transparent; background:transparent; box-shadow:none;
}
#cart-view.cart-view > form#form-login.well {
    background:transparent; border:0; box-shadow:none;
}

/* PS-STAB-05 — scoped VM product, checkout and popup presentation.
   Important declarations only defeat legacy preset/ID/inline/sprite rules. */

/* VirtueMart categories and products: keep the Enfuse DOM and VM values. */
.productdetails-view { color:#202c37; font:400 1rem/1.6 system-ui,-apple-system, "Segoe UI", Arial, sans-serif; }
.productdetails-view > .row-fluid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; }
.productdetails-view > .row-fluid::before,.productdetails-view > .row-fluid::after { display:none; }
.productdetails-view > .row-fluid > .span6 { width:auto; min-width:0; margin:0; float:none; }
.productdetails-view h1,.productdetails-view h2 { font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif; font-weight:600; color:#202c37; white-space:normal; overflow-wrap:anywhere; line-height:1.35; }
.productdetails-view #b-area .spacer-buy-area { padding:0; min-width:0; }
.productdetails-view #b-area .product-price { float:none; width:auto; max-width:100%; margin:16px 0; line-height:1.5; }
.productdetails-view #b-area .product-price > div { float:none; width:auto; height:auto; white-space:normal; }
.productdetails-view #b-area .product-price span { line-height:1.5; white-space:normal; }
.productdetails-view #b-area .product-price .PricesalesPrice { font-size:1.5rem; line-height:1.4; color:#a35d06; }
.productdetails-view #b-area .product-price .PricesalesPrice span { font-size:inherit; letter-spacing:normal; }
.productdetails-view #b-area .ps-vm-buybar { display:flex; flex-wrap:wrap; align-items:center; gap:12px; clear:both; margin:12px 0; padding:0; }
.ps-vm-buybar .ps-quantity-group { display:flex; align-items:stretch; width:auto; max-width:100%; margin:0; }
.ps-vm-buybar .ps-quantity-group > .input-group-btn { display:flex; width:auto; }
#b-area .ps-vm-buybar button.quantity-controls { position:static; float:none; display:inline-flex; align-items:center; justify-content:center; min-width:44px; width:44px; height:44px; padding:0; margin:0; border:1px solid #a35d06; border-radius:4px !important; background-image:none; background-color:#fff !important; color:#783500 !important; font:600 1.35rem/1 system-ui,sans-serif; text-indent:0; }
#b-area .ps-vm-buybar input.quantity-input { position:static; float:none; width:64px; min-width:0; height:44px; margin:0; padding:8px; box-sizing:border-box; border:1px solid #a35d06 !important; border-radius:0 !important; background:#fff !important; color:#202c37 !important; font:600 1rem/1.4 system-ui,sans-serif; text-align:center; }
.ps-vm-buybar > .addtocart-button { flex:1 1 180px; min-width:0; margin:0; }
#b-area .ps-vm-buybar input.addtocart-button { display:block; width:100%; height:auto; min-height:44px; margin:0 !important; padding:10px 16px; box-sizing:border-box; text-indent:0; white-space:normal; background-image:none; }
.productdetails-view #b-area a.ask-a-question { display:inline-flex; align-items:center; justify-content:center; float:none; min-height:44px; max-width:100%; margin:8px 0; padding:10px 16px; box-sizing:border-box; white-space:normal; line-height:1.4; }
.ps-vm-buybar input,.ps-vm-buybar button { box-sizing:border-box; }

/* Primary / secondary actions, limited to VM product, cart and cart popup. */
#b-area .ps-vm-buybar input.addtocart-button,.productdetails-view #b-area a.ask-a-question,
.cart-view .btn-primary,.cart-view #checkoutFormSubmit,.ps-cart-popup a.showcart {
    color:#a35d06 !important; background-color:#fff !important; background-image:none; border:1px solid #dc913d; text-shadow:none; box-shadow:none;
}
.cart-view .btn-default,.ps-cart-popup a.continue_link { color:#783500 !important; background:#fff !important; border:1px solid #783500; text-shadow:none; box-shadow:none; }
#b-area .ps-vm-buybar button:focus-visible,.ps-cart-popup a:focus-visible { outline:3px solid #0865ad; outline-offset:2px; }

/* Cart/checkout: preserve native desktop table and all calculation output. */
.cart-view { color:#202c37; font:400 1rem/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif; }
.cart-view h1,.cart-view h2,.cart-view h3 { font-family:inherit; line-height:1.35; overflow-wrap:anywhere; }
.cart-view input,.cart-view select,.cart-view textarea { font:inherit; }
.cart-view,.cart-view #checkoutForm,.cart-view .vm-fieldset-pricelist { min-width:0; max-width:100%; box-sizing:border-box; }
.cart-view .ps-cart-summary { width:100%; table-layout:auto; }
.cart-view .ps-cart-summary th,.cart-view .ps-cart-summary td { white-space:normal; overflow-wrap:anywhere; vertical-align:top; }
.cart-view .ps-cart-summary .cart-images { float:left; width:64px; max-width:100%; margin:0 10px 8px 0; }
.cart-view .ps-cart-summary .cart-images img { display:block; width:auto; max-width:100%; height:auto; }
.cart-view .ps-cart-quantity { box-sizing:border-box; width:64px; max-width:100%; min-height:44px; margin:0; }
.cart-view .ps-cart-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:8px; }
.cart-view .ps-cart-actions button.vmicon { display:inline-flex; align-items:center; justify-content:center; position:static; min-width:44px; width:44px; height:44px; margin:0; padding:8px !important; text-indent:0; background-image:none; background-color:#fff !important; border:1px solid #a34400; color:#783500 !important; font:600 1.35rem/1 system-ui,sans-serif; }
.cart-view .vm-coupon-row .input-group { display:flex; flex-wrap:wrap; gap:8px; align-items:stretch; }
.cart-view .vm-coupon-row input.coupon.form-control { flex:1 1 130px; width:auto; min-width:0; min-height:44px; height:auto; margin:0; padding:8px; box-sizing:border-box; }
.cart-view .vm-coupon-row .input-group-btn { display:flex; width:auto; }
.cart-view .btn,.cart-view input[type=submit] { box-sizing:border-box; min-height:44px; max-width:100%; white-space:normal; padding:8px 12px; line-height:1.4; }
.cart-view .vm-continue-shopping { float:none; margin:0 0 15px; }
.cart-view .vm-payment-shipment-select,.cart-view .vm-shipment-plugin-single,.cart-view .vm-payment-plugin-single { min-width:0; max-width:100%; box-sizing:border-box; }
.cart-view .vm-payment-shipment-select label { display:inline; white-space:normal; overflow-wrap:anywhere; line-height:1.5; }
.cart-view .vmshipment,.cart-view .vmpayment,.cart-view .vmshipment_description,.cart-view .vmpayment_description,.cart-view .vmshipment_cost,.cart-view .vmpayment_cost { white-space:normal; overflow-wrap:anywhere; }
.cart-view .vm-carttotal-row > td.priceCol:last-child,.cart-view .vm-mobile-total tr:last-child > td.priceCol:last-child { font-weight:700; }
.ps-cart-summary .ps-cart-product > td::before { display:none; }

/* Separate popup contracts; Ask remains owned by its accepted PS-STAB-03 CSS. */
#fancybox-wrap.ps-vm-popup,#fancybox-wrap.ps-vm-popup #fancybox-outer,#fancybox-wrap.ps-vm-popup #fancybox-content { box-sizing:border-box; }
#fancybox-wrap.ps-vm-popup #fancybox-outer { padding:0; }
#fancybox-wrap.ps-vm-popup #fancybox-close { display:block !important; top:6px; right:6px; width:44px; height:44px; background:#fff; border:1px solid #dc913d; border-radius:50%; color:#783500; text-align:center; text-decoration:none; line-height:40px; box-sizing:border-box; }
#fancybox-wrap.ps-vm-popup #fancybox-close::before { content:"×"; font:400 30px/40px system-ui,sans-serif; }
#fancybox-wrap.ps-vm-popup #fancybox-close:focus-visible { outline:3px solid #783500; outline-offset:2px; }
.ps-cart-popup { padding:56px 20px 20px; box-sizing:border-box; max-width:100%; color:#202c37; background:#fff; overflow-wrap:anywhere; }
.ps-cart-popup h4 { margin:0 0 16px; font:600 1.15rem/1.5 system-ui,sans-serif !important; white-space:normal; overflow-wrap:anywhere; }
.ps-cart-popup-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:16px; }
.ps-cart-popup-actions > a.btn { display:flex; flex:1 1 180px; align-items:center; justify-content:center; gap:6px; min-height:44px; max-width:100%; margin:0; padding:10px 16px; box-sizing:border-box; white-space:normal; line-height:1.4; }
.ps-cart-popup img { max-width:100%; height:auto; }
.ps-tos-content { box-sizing:border-box; padding:56px 20px 20px; max-width:100%; color:#202c37; background:#fff; font:400 1rem/1.6 system-ui,sans-serif; overflow-wrap:anywhere; }
.ps-tos-content h2,.ps-tos-content h3 { font-family:inherit; font-weight:600; white-space:normal; line-height:1.4; }
.ps-tos-content h2 { font-size:1.4rem; }
.ps-tos-content h3 { font-size:1.1rem; }
.ps-tos-content img,.ps-tos-content table { max-width:100%; }
#fancybox-wrap.ps-vm-cart-popup #fancybox-content,#fancybox-wrap.ps-vm-tos-popup #fancybox-content { max-height:calc(100dvh - 48px); overflow:auto; }

/* Responsive adjustments: reflow product rows; retain every original form. */
@media (max-width:767px) {
    .productdetails-view > .row-fluid { grid-template-columns:minmax(0,1fr); gap:20px; }
    .productdetails-view #b-area { width:auto; }
    .cart-view .ps-cart-summary,.cart-view .ps-cart-summary > tbody { display:block; width:100%; max-width:100%; }
    .cart-view .ps-cart-summary > tbody > .vm-head-row { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); }
    .cart-view .ps-cart-summary > tbody > tr:not(.vm-head-row) { display:grid; grid-template-columns:minmax(0,1fr); gap:0; margin:0 0 16px; border:1px solid #d3dbe0; border-radius:6px; }
    .cart-view .ps-cart-summary > tbody > tr > td { display:block; width:auto; min-width:0; max-width:100%; padding:10px; text-align:left; border:0; box-sizing:border-box; }
    .cart-view .ps-cart-summary td[data-ps-label]:not([data-ps-label=""])::before { display:block; content:attr(data-ps-label); margin-bottom:4px; font-weight:600; color:#344654; }
    .cart-view .ps-cart-summary .ps-cart-product > td:first-child::before { display:none; }
    .cart-view .ps-cart-summary > tbody > tr > td.ps-empty-cell { display:none; }
    /* Every original totals row is now visible above, including payment currency.
       Suppress only VM's redundant second aggregate table on this layout. */
    .cart-view .ps-cart-summary + .vm-mobile-total { display:none; }
    .cart-view .vm-mobile-total td { white-space:normal; overflow-wrap:anywhere; padding:8px; }
    .cart-view .vm-coupon-row td > [class*="col-xs-"] { float:none; width:auto; padding:0; }
    .cart-view .vm-coupon-row td > [class*="col-xs-"] + div { margin-top:10px; }
    #fancybox-wrap.ps-vm-popup { left:12px !important; right:12px !important; width:auto !important; max-width:calc(100vw - 24px); padding:0; }
    #fancybox-wrap.ps-vm-popup #fancybox-content { width:100% !important; max-width:100%; border-width:0 !important; }
    #fancybox-wrap.ps-vm-popup #fancybox-content > div { max-width:100%; box-sizing:border-box; }
    #fancybox-wrap.ps-vm-image-popup #fancybox-img { display:block; width:100% !important; max-width:100%; height:auto !important; max-height:calc(100dvh - 48px); object-fit:contain; touch-action:pan-y pinch-zoom; }
    /* PS-STAB-09A: category viewer only. Let its containers follow the fitted
       intrinsic image, not the earlier Fancybox inline height. Desktop and
       product-detail galleries retain their accepted rules. !important is
       required to override Fancybox inline sizes and PS-STAB-05 image widths. */
    #fancybox-wrap.ps-vm-image-popup.ps-category-image-popup {
        position:fixed; top:50vh !important; top:50dvh !important;
        transform:translateY(-50%);
    }
    #fancybox-wrap.ps-vm-image-popup.ps-category-image-popup,
    #fancybox-wrap.ps-vm-image-popup.ps-category-image-popup #fancybox-outer,
    #fancybox-wrap.ps-vm-image-popup.ps-category-image-popup #fancybox-content { height:auto !important; }
    #fancybox-wrap.ps-vm-image-popup.ps-category-image-popup #fancybox-img {
        width:auto !important; height:auto !important; margin-inline:auto;
        max-width:100%; max-height:calc(100vh - 48px); max-height:calc(100dvh - 48px);
    }

    .ps-cart-popup,.ps-tos-content { padding:56px 16px 16px; }
    .ps-cart-popup-actions { flex-direction:column; }
    .ps-cart-popup-actions > a.btn { flex:0 0 auto; width:100%; }
}
@media (max-width:360px) { .ps-vm-buybar > .addtocart-button { flex-basis:100%; } }


/* PS-STAB-10: the non-carousel VM module list already stacks at natural
   height on mobile. Restore Enfuse's 18px separation on the outer card;
   .vmproduct .spacer has an existing !important zero-margin reset.
   Keep widths, floats, inner geometry and the desktop grid unchanged. */
@media (max-width:767px) {
    ul.vmproduct.product-details.row-fluid > li.span3.productdetails {
        margin-bottom:18px;
    }
}

/* PS-CSS-01 batch1 — recovered user CSS; exact lowercase legacy classes.
   Source: J3 19-Oct archive / Enfuse-old template.css and responsive-template.css.
   Preserve the authored values; do not alias Brands-2/3/10 or restore .brands here. */
table.table-3 {
    border-collapse: collapse;
    border-spacing: 0;
    width: 100%;
}
table.table-3 tr {
		background-color: #f8f8f8;
}

table.table-3 td {
	text-align: left;
	padding: 18px;
	border: 1px solid #f0ac63;
}
table.table-3 th {
    color: #fff;
    background-color: #f0ac63;
    text-align: left;
	padding: 18px;
	border: 1px solid #fff;
}

/* BRANDS-2 */
.brands2 {
  column-count: 2 !important;
  float: left !important;
}
img.brands2 {
  margin: 10px;
  max-width: 150px;
  float: left !important;
}
/* BRANDS-3 */
.brands3 {
  column-count: 3 !important;
  float: left !important;
}
img.brands3 {
  margin: 10px;
  max-width: 150px;
  float: left !important;
}

@media screen and (max-width: 600px) {
  	table.table-3 {
		border: 0;
  	}

  	table.table-3 thead {
	    border: none;
	    clip: rect(0 0 0 0);
	    height: 1px;
	    margin: -1px;
	    overflow: hidden;
	    padding: 0;
	    position: absolute;
	    width: 1px;
  	}
  
  	table.table-3 tr {
    	border: 1px solid #f0ac63;
    	display: block;
   		margin-bottom: 30px;
  	}
  
	table.table-3 td {
    	display: block;
    	text-align: right;
       list-style-type: none!important;
}
    table.table-3 li {
      list-style: none !important;
}
	table.table-3 td::before {
	    content: attr(data-label);
	    float: left;
	    font-weight: bold;
	    text-transform: uppercase;
	}
  
  	table.table-3 td:last-child {
    	border-bottom: 1px solid #f0ac63;;
  	}
}

/* PS-CSS-02 — legacy brand and informational-table recovery.
   Source: 10-Old-CSS. PS-CSS-01/table-3 remains unchanged. */

/* Brand items stay whole in explicit columns rather than fragmenting between
   multicolumn boxes. Keep the authored 10 / 6 / 3 breakpoints and logo assets. */
.brands:not(img) {
    display:grid;
    grid-template-columns:repeat(10,minmax(0,1fr));
    column-gap:1em;
    align-items:start;
    text-align:center;
}
.brands:not(img) > * { min-width:0; break-inside:avoid; }
.brands:not(img) img,
img.brands {
    display:block;
    float:none;
    width:150px;
    max-width:100%;
    height:auto;
    margin:10px auto;
}
@media (max-width:780px) {
    .brands:not(img) { grid-template-columns:repeat(6,minmax(0,1fr)); }
}
@media (max-width:480px) {
    .brands:not(img) { grid-template-columns:repeat(3,minmax(0,1fr)); }
}

/* The blue table style is restored even though no current content uses it. */
table.table-2 { border-collapse:collapse; border-spacing:0; width:100%; }
table.table-2 tr { background-color:#f8f8f8; }
table.table-2 td { text-align:left; padding:18px; border:1px solid #0077b1; }
table.table-2 th { color:#fff; background-color:#0077b1; text-align:left; padding:18px; border:1px solid #fff; }

/* Consolidated shared authored properties. Fixed table layout contains intrinsic
   image minimum widths; the <=900px reflow below retains each existing row. */
table.table-shop,
table.table-med {
    border-collapse:collapse;
    border-spacing:0;
    width:100%;
    max-width:100%;
    table-layout:fixed;
    font-weight:500;
    font-size:1.3em;
}
table.table-shop tr,
table.table-med tr { background-color:#fff; }
table.table-shop td,
table.table-med td { width:32%; border:0; vertical-align:top; min-width:0; overflow-wrap:anywhere; }
table.table-shop td,
table.table-shop th { text-align:left; }
table.table-med td,
table.table-med th { text-align:center; }
table.table-shop th,
table.table-med th { color:#fff; background-color:transparent; border:0; }
/* Retain authored important link styles against Enfuse's generic link rules. */
table.table-shop a,
table.table-med a { font-weight:500; color:#e3861c !important; font-size:12px !important; }
table.table-shop a:hover,
table.table-med a:hover { font-weight:700; text-decoration:none; }
table.table-shop p,
table.table-med p { padding:5px; }
table.table-shop img,
table.table-med img { max-width:100%; height:auto; }
img.cat-tablemed { width:250px; height:auto; max-width:100%; box-sizing:border-box; border:3px solid #e3861c; vertical-align:middle; }

@media screen and (max-width:900px) {
    table.table-shop,
    table.table-med,
    table.table-shop > tbody,
    table.table-med > tbody,
    table.table-shop > thead,
    table.table-med > thead { display:block; width:100%; box-sizing:border-box; }
}
/* Old 49% table-cell hints could not wrap a three-cell row. Reflow only these
   informational tables at tablet widths; do not flatten or change the markup. */
@media screen and (min-width:681px) and (max-width:900px) {
    table.table-shop tr,
    table.table-med tr { display:flex; flex-wrap:wrap; justify-content:space-between; }
    table.table-shop td,
    table.table-med td,
    table.table-shop th,
    table.table-med th { display:block; flex:0 1 49%; width:49%; max-width:49%; box-sizing:border-box; }
    table.table-shop td:only-child,
    table.table-med td:only-child { flex-basis:100%; width:100%; max-width:100%; }
}
@media screen and (min-width:901px) and (max-width:1600px) {
    table.table-shop td,
    table.table-med td { width:33%; }
}
@media screen and (max-width:680px) {
    table.table-shop,
    table.table-med { border:0; font-weight:bold; font-size:120%; }
    table.table-shop thead,
    table.table-med thead { border:0; clip:rect(0 0 0 0); height:1px; margin:-1px; overflow:hidden; padding:0; position:absolute; width:1px; }
    table.table-shop tr,
    table.table-med tr { border:0; display:block; margin-bottom:30px; }
    table.table-shop td,
    table.table-med td { display:block; width:100%; max-width:100%; text-align:left; font-weight:500; padding:1px; box-sizing:border-box; }
    table.table-shop td::before,
    table.table-med td::before { content:attr(data-label); float:left; font-weight:500; text-transform:uppercase; }
    table.table-shop td:last-child,
    table.table-med td:last-child { border-bottom:0; }
}

/* PS-USER-01 — authenticated links inside the existing My Account popup. */
#LoginForm .ps-account-nav { max-width:100%; min-width:0; margin:0 0 16px; }
#LoginForm .ps-account-nav ul { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; list-style:none; margin:0; padding:0; }
#LoginForm .ps-account-nav li { min-width:0; margin:0; padding:0; list-style:none; background:none; }
#LoginForm .ps-account-nav a { display:flex; align-items:center; box-sizing:border-box; min-height:44px; max-width:100%; padding:10px 12px; white-space:normal; overflow-wrap:anywhere; font:inherit; text-align:left; }
#LoginForm .ps-account-nav a:focus-visible { outline:2px solid #0865ad; outline-offset:2px; }
.ps-account-orders-scroll { max-width:100%; overflow-x:auto; }
.ps-account-orders-scroll:focus-visible { outline:2px solid #0865ad; outline-offset:2px; }
#ps-account-shipping { min-width:0; max-width:100%; scroll-margin-top:16px; }
@media (max-width:767px) {
    #LoginForm .ps-account-nav ul { grid-template-columns:minmax(0,1fr); }
}

/* 5. Ask a Question — the iframe receives this same file only on Ask requests. */
body.ps-ask-component { margin:0; padding:0; background:#fff; color:#202c37; font:400 16px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif; }
.ps-ask-question,.ps-ask-confirmation { box-sizing:border-box; max-width:100%; padding:20px; overflow-wrap:anywhere; }
.ps-ask-question *,.ps-ask-confirmation * { box-sizing:border-box; }
.ps-ask-question h1,.ps-ask-question h2 { position:static; margin:0 0 12px; font-family:inherit; line-height:1.35; color:#202c37; text-transform:none; }
.ps-ask-question h1 { font-size:1.5rem; }
.ps-ask-question h2 { font-size:1.15rem; }
.ps-ask-heading { display:flex; gap:12px; justify-content:space-between; align-items:flex-start; margin-bottom:16px; }
.ps-ask-summary { display:grid; grid-template-columns:minmax(0,1fr) minmax(70px,110px); gap:16px; margin-bottom:20px; }
.ps-ask-image img { display:block; max-width:100%; height:auto; }
.ps-ask-field { margin-bottom:16px; }
.ps-ask-field label { display:block; margin-bottom:6px; font-family:inherit; font-weight:600; font-size:1rem; line-height:1.5; color:#202c37; }
.ps-ask-question #askform { margin:0; }
.ps-ask-question #askform input:not([type=hidden]):not([type=submit]),.ps-ask-question #askform textarea { display:block; width:100%; max-width:100%; min-width:0; height:auto; margin:0; padding:10px 12px; border:1px solid #8795a1; border-radius:5px; background:#fff; color:#202c37; font:inherit; line-height:1.5; }
.ps-ask-question #askform textarea { resize:vertical; min-height:150px; }
.ps-ask-question #askform input:focus-visible,.ps-ask-question #askform textarea:focus-visible { outline:3px solid #0865ad; outline-offset:2px; }
.ps-ask-actions { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; align-items:center; margin-top:16px; }
.ps-ask-question .ps-ask-close,.ps-ask-confirmation .ps-ask-close,.ps-ask-question #askform .ps-ask-submit { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-height:44px; width:auto; height:auto; padding:10px 14px; border:1px solid #a34400; border-radius:5px; background:#a34400; color:#fff; font:600 1rem/1.4 system-ui,-apple-system,"Segoe UI",Arial,sans-serif; text-decoration:none; text-shadow:none; cursor:pointer; }
.ps-ask-counter { display:flex; gap:8px; align-items:center; margin:0; font-size:.9rem; }
.ps-ask-question #askform .ps-ask-counter input { width:5em; padding:6px; min-height:36px; }
.ps-ask-captcha { max-width:100%; overflow-x:auto; }
.ps-ask-question .iframe-login { display:block; }
.ps-ask-question button.vm-login[hidden] { display:none; }
#fancybox-wrap.ps-ask-popup,#fancybox-wrap.ps-ask-popup #fancybox-outer,#fancybox-wrap.ps-ask-popup #fancybox-content { box-sizing:border-box; max-width:calc(100vw - 24px); }
#fancybox-wrap.ps-ask-popup #fancybox-outer { padding:0; }
#fancybox-wrap.ps-ask-popup iframe { display:block; width:100%; max-width:100%; border:0; }

/* PS-STAB-03A / PS-STAB-05A: Joomla 5 messages in Ask and the Enfuse message region.
   Keep the live region, message text/background and popup close controls.
   Joomla creates an independent dismiss button; hide it only in these message regions. */
body.ps-ask-component #system-message-container joomla-alert > button.joomla-alert--close,
#top-com-handler #system-message-container joomla-alert > button.joomla-alert--close { display:none; }
/* The empty type marker inherits legacy .info/.notice box styles.
   Reset only its decoration, retaining the separate accessible title span. */
body.ps-ask-component #system-message-container joomla-alert > .alert-heading > span:empty:not(.visually-hidden),
#top-com-handler #system-message-container joomla-alert > .alert-heading > span:empty:not(.visually-hidden) {
    padding:0;
    margin:0;
    height:auto;
    border:0;
    background:none;
    box-shadow:none;
}

/* 6. Footer — reserved. */

/* 7. Responsive adjustments — Ask only; no global cart/menu/checkout selectors. */
@media (max-width:767px) {
    /* Necessary: Fancybox 1.3 writes left/width inline; contain only this popup. */
    #fancybox-wrap.ps-ask-popup { left:12px !important; right:12px !important; width:auto !important; padding:0; }
    #fancybox-wrap.ps-ask-popup #fancybox-content { width:100% !important; }
    .ps-ask-question,.ps-ask-confirmation { padding:16px; }
    .ps-ask-heading { flex-wrap:wrap; }
    .ps-ask-question h1 { font-size:1.3rem; }
}
@media (max-width:360px) { .ps-ask-summary { grid-template-columns:minmax(0,1fr); } .ps-ask-image { max-width:90px; } }

/* PS-USER-01B: order actions and print isolation; native order data is unchanged. */
.ps-order-details { min-width: 0; max-width: 100%; }
.ps-order-details .ps-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}
.ps-order-details .ps-order-actions .btn {
    box-sizing: border-box;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    text-align: center;
}
.ps-order-details .ps-order-actions .btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.ps-order-component-document { width: 100%; max-width: 100%; }
@media (max-width: 767px) {
    .ps-order-details .ps-order-actions .btn { flex: 1 1 120px; }
}
@media print {
    /* Hide only siblings outside the current order's ancestor path. Modern
       Chromium supports :has; no page-global screen or checkout changes. */
    body:has(.ps-order-details) :not(.ps-order-details):not(.ps-order-details *):not(:has(.ps-order-details)),
    .ps-order-details .ps-order-actions,
    .ps-order-details .ps-order-invoice-control,
    .ps-order-details #tabs,
    .ps-order-details button,
    .ps-order-details input,
    .ps-order-details select,
    .ps-order-details textarea {
        display: none !important;
    }
    /* Override Bootstrap floats/columns and inline widths on this order path. */
    body:has(.ps-order-details),
    body:has(.ps-order-details) :has(.ps-order-details),
    .ps-order-details,
    .ps-order-details .ps-order-component-document,
    .ps-order-details .vm-wrap,
    .ps-order-details .vm-orders-information,
    .ps-order-details .vm-orders-order,
    .ps-order-details .vm-orders-items,
    .ps-order-details #ui-tabs,
    .ps-order-details .tabs {
        display: block !important;
        position: static !important;
        float: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .ps-order-details table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: auto;
        border-collapse: collapse;
        font-size: 8.5pt;
        line-height: 1.25;
        break-inside: auto;
    }
    .ps-order-details th,
    .ps-order-details td {
        white-space: normal !important;
        overflow-wrap: anywhere;
        padding: 3px !important;
    }
    .ps-order-details tr { break-inside: avoid; page-break-inside: avoid; }
    .ps-order-details thead { display: table-header-group; }
    .ps-order-details img { max-width: 100% !important; height: auto !important; }
    .ps-order-details a[href]::after { content: none !important; }
}

/* PS-USER-01C: native Add/Edit Shipping fields only. Bootstrap 3 .row is
   rendered in the Bootstrap 2 Enfuse grid; remove its negative left gutter. */
#adminForm .userfields-wrap:has(label.shipto_phone_1),
#adminForm .userfields-wrap:has(label.shipto_phone_1) ~ .row {
    margin-left: 0;
    margin-right: 0;
    min-width: 0;
    max-width: 100%;
}
#adminForm .userfields-wrap:has(label.shipto_phone_1) > fieldset {
    box-sizing: border-box;
    float: none;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}
#adminForm .userfields-wrap:has(label.shipto_phone_1) table.user-details {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}
#adminForm .userfields-wrap:has(label.shipto_phone_1) table.user-details td.key {
    width: 35%;
    vertical-align: top;
}
#adminForm .userfields-wrap:has(label.shipto_phone_1) label {
    display: block;
    float: none;
    width: auto;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}
#adminForm .userfields-wrap:has(label.shipto_phone_1) input[type="text"],
#adminForm .userfields-wrap:has(label.shipto_phone_1) select {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}
@media (max-width: 767px) {
    #adminForm .userfields-wrap:has(label.shipto_phone_1) table.user-details,
    #adminForm .userfields-wrap:has(label.shipto_phone_1) table.user-details tbody,
    #adminForm .userfields-wrap:has(label.shipto_phone_1) table.user-details tr,
    #adminForm .userfields-wrap:has(label.shipto_phone_1) table.user-details td {
        display: block;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }
    #adminForm .userfields-wrap:has(label.shipto_phone_1) table.user-details td.key {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    #adminForm .userfields-wrap:has(label.shipto_phone_1) table.user-details tr {
        margin-bottom: 12px;
    }
}

/* PS-USER-01D: main Shopper Information uses the same BS3 row in Enfuse's
   BS2 grid. Neutralise its gutter without restyling inputs or table columns. */
#adminForm .userfields-wrap:has(label.username):has(label.phone_1),
#adminForm .userfields-wrap:has(label.username):has(label.phone_1) ~ .row {
    margin-left: 0;
    margin-right: 0;
}
#adminForm .userfields-wrap:has(label.username):has(label.phone_1) label {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* PS-SLIDER-01: banner captions are promotional text, followed by the stable
   Welcome H1 and section H2s. Preserve the original caption typography. */
h2[data-ps-home-heading="h1"] {
    font-size: 370%;
    letter-spacing: 0px;
}
#ph-camera-slideshow p[data-ps-home-heading] {
    font-family: "Open Sans", Arial, sans-serif;
    font-weight: 300;
    line-height: 1em;
    letter-spacing: 0px;
    margin: 10px 0 20px;
}
#ph-camera-slideshow p[data-ps-home-heading="h1"] {
    font-size: 370%;
}
#ph-camera-slideshow p[data-ps-home-heading="h4"] {
    font-size: 160%;
    color: #e3861c;
    font-weight: 700;
}

/* PS-CSS-03: clickable Enfuse breadcrumb links only; current-page spans unchanged. */
.breadcrumbs a.pathway[href] {
    color: #a35d06;
    text-decoration: underline;
}
.breadcrumbs a.pathway[href]:hover {
    color: #783500;
}

/* PS-CSS-04: one-property override of Enfuse's more specific heading rules
   (including nested links/spans). Other typography and colours stay native. */
h1, h2, h3, h4,
h1 *, h2 *, h3 *, h4 * {
    letter-spacing: 0 !important;
}
/* Native manufacturer title was reduced to 100% by virtuemart.css.
   Double only this direct page title, not other site H1s. */
.manufacturer-details-view > h1 {
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
}

/* PS-CSS-04A: BS3 manufacturer row inside Enfuse's BS2 content grid.
   Restore the existing column gutter; do not move the sidebar or title. */
.manufacturer-details-view > .row {
    margin-left: 0;
    margin-right: 0;
}
/* Only the two native layout separators, never authored description HRs. */
.manufacturer-details-view > .row > .col-md-12 > hr,
.manufacturer-details-view > hr {
    display: none;
}

/* PS-STAB-13: native previous/next products, clear of description floats. */
.productdetails-view .product-neighbours {
    clear: both;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
    padding: 12px 0;
    opacity: 1;
}
.productdetails-view .product-neighbours > a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    float: none;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: 8px 0;
    background: none;
    font: inherit;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #a35d06;
    text-decoration: none;
}
.productdetails-view .product-neighbours > .previous-page { grid-column: 1; }
.productdetails-view .product-neighbours > .next-page { grid-column: 2; text-align: right; }
.productdetails-view .product-neighbours .ps-neighbour-title { flex: 1 1 0; min-width: 0; }
.productdetails-view .product-neighbours .ps-neighbour-arrow { flex: 0 0 auto; font-size: 1.2em; }
.productdetails-view .product-neighbours > a:hover,
.productdetails-view .product-neighbours > a:focus-visible { color: #783500; }
.productdetails-view .product-neighbours > a:focus-visible { outline: 2px solid #783500; outline-offset: 3px; }
@media (max-width: 767px) {
    .productdetails-view .product-neighbours { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .productdetails-view .product-neighbours > .next-page { grid-column: 1; text-align: left; }
}

/* PS-STAB-14: Notify Me only; reuse accepted VM primary palette (#a34400).
   Dark orange preserves white-text contrast. No Add to Cart/Ask selectors. */
.productdetails-view .ps-vm-buybar > a.notify.btn.btn-primary.btn-block,
.ps-notify-view .ps-notify-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #dc913d;
    border-radius: 4px;
    color: #a35d06;
    background: #fff;
    box-shadow: none;
    text-shadow: none;
    font: 600 1rem/1.4 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
}
.productdetails-view .ps-vm-buybar > a.notify.btn.btn-primary.btn-block {
    flex: 1 1 180px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin: 0;
}
.productdetails-view .ps-vm-buybar > a.notify.btn.btn-primary.btn-block:hover,
.productdetails-view .ps-vm-buybar > a.notify.btn.btn-primary.btn-block:focus-visible,
.ps-notify-view .ps-notify-submit:hover,
.ps-notify-view .ps-notify-submit:focus-visible { background: #fff; border-color: #a35d06; color: #783500; }
.productdetails-view .ps-vm-buybar > a.notify.btn.btn-primary.btn-block:focus-visible,
.ps-notify-view a:focus-visible,
.ps-notify-view button:focus-visible,
.ps-notify-view input:focus-visible { outline: 3px solid #0865ad; outline-offset: 2px; }
.ps-notify-view { clear: both; box-sizing: border-box; width: 100%; max-width: 640px; margin: 0 0 24px; }
.ps-notify-view > h1 { margin-top: 0; }
.ps-notify-view .ps-notify-description { margin: 0 0 18px; line-height: 1.5; overflow-wrap: anywhere; }
.ps-notify-view .ps-notify-label { display: block; margin-bottom: 6px; font-weight: 600; }
.ps-notify-view .ps-notify-controls { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.ps-notify-view #notify_email {
    flex: 1 1 260px;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: 44px;
    margin: 0;
    padding: 10px;
    border: 1px solid #8995a0;
    border-radius: 4px;
    color: #202c37;
    background: #fff;
    font: 1rem/1.4 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.ps-notify-view .ps-notify-submit { flex: 0 0 auto; margin: 0; }
.ps-notify-view .ps-notify-back { display: inline-block; margin-top: 16px; padding: 10px 0; color: #a35d06; overflow-wrap: anywhere; }
.ps-notify-view .ps-notify-back:hover { color: #383500; }
@media (max-width: 480px) {
    .ps-notify-view .ps-notify-controls { flex-direction: column; }
    .ps-notify-view #notify_email { flex: 0 0 auto; width: 100%; }
    .ps-notify-view .ps-notify-submit { width: 100%; }
}

/* PS-STAB-15: VM category cards stack below Bootstrap's 768px breakpoint.
   The native horizontal-separator already spaces separate row-fluid groups;
   add the same 22px only between category siblings inside each group.
   Keep native column widths/gutters, image sizes and product grids unchanged. */
@media (max-width: 767px) {
    .category-view > .row-fluid > .category + .category {
        margin-top: 22px;
    }
}

/* PS-PERF-07: first-paint disclosure for assigned context modules 230/231. */
.ps-context-categories { display: none; }
.ps-context-categories summary { list-style: none; }
.ps-context-categories summary::-webkit-details-marker { display: none; }
@media (max-width: 979px) {
    .ps-context-categories + [data-ps-context-module] { display: none; }
    .ps-context-categories {
        display: block;
        box-sizing: border-box;
        max-width: 100%;
        margin-top: 8px;
        margin-bottom: 12px;
    }
    .ps-context-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        width: 100%;
        min-height: 44px;
        padding: 6px 15px;
        border: 1px solid #dc913d;
        border-radius: 5px;
        background: #fff;
        color: #a35d06;
        font: 600 16px/1.4 var(--ps-font-text);
        text-transform: uppercase;
        text-align: left;
        cursor: pointer;
    }
    .ps-context-toggle > span { font-size: 24px; transform: rotate(90deg); }
    .ps-context-disclosure[open] > .ps-context-toggle > span { transform: rotate(-90deg); }
    .ps-context-panel {
        box-sizing: border-box;
        max-height: 65vh;
        max-height: 65dvh;
        overflow-y: auto;
        overscroll-behavior-y: contain;
        border: 1px solid #ddd;
        border-top: 0;
        background: #fff;
    }
    .ps-context-categories ul { list-style: none; margin: 0; padding: 0; }
    .ps-context-categories li { list-style: none; margin: 0; padding: 0; background: none; }
    .ps-context-categories li > details > ul { padding-left: 14px; }
    .ps-context-categories .ps-cat-line { display: flex; align-items: stretch; min-width: 0; border-bottom: 1px solid #eee; }
    .ps-context-categories .ps-cat-line > a {
        display: flex;
        align-items: center;
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        padding: 8px 10px;
        box-sizing: border-box;
        font: 14px/1.4 Arial, sans-serif;
        color: #333;
        text-decoration: none;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .ps-context-categories .ps-cat-has-branch { position: relative; }
    .ps-context-categories .ps-cat-has-branch > .ps-cat-line { padding-inline-end: 44px; }
    .ps-context-categories .ps-cat-branch {
        position: absolute;
        inset-block-start: 0;
        inset-inline-end: 0;
        display: grid;
        place-items: center;
        width: 44px;
        min-height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #a65d0b;
        font: 24px/1 Arial, sans-serif;
        cursor: pointer;
    }
    .ps-context-categories .ps-cat-branch > span { display: inline-block; }
    .ps-context-categories details[open] > .ps-cat-branch > span { transform: rotate(90deg); }
    .ps-context-categories .ps-cat-current > .ps-cat-line > a { color: #a65d0b; font-weight: 700; }
    .ps-context-categories :is(a,summary):focus-visible { outline: 2px solid #a65d0b; outline-offset: -3px; }
}
/* Module219 remains a navigation link, not a disclosure. */
#mod-custom219 .ps-store-categories-link {
    display: inline-flex; align-items: center; gap: 8px;
    box-sizing: border-box; max-width: 100%; min-height: 44px;
    padding: 10px 12px; border: 1px solid #dc913d; border-radius: 3px;
    background: #fff; color: #a35d06;
    font: 600 14px/1.4 Arial, sans-serif; white-space: normal; overflow-wrap: anywhere;
    text-decoration: none;
}
#mod-custom219 .ps-store-categories-link > span { flex: 0 0 auto; font-size: 20px; }
#mod-custom219 .ps-store-categories-link:hover { color: #783500; border-color: #a35d06; }
#mod-custom219 .ps-store-categories-link:focus-visible { outline: 2px solid #a35d06; outline-offset: 2px; }

/* PS-BANNERS-01 pilot224: editable rendition of important-01.png.
   Orange sampled from original asset; brown reused from module219 hover.
   Container sizing preserves the 332x254 design where content fits;
   min-heights allow longer JCE edits to grow instead of clipping. */
.ps-important-notice {
    box-sizing: border-box;
    width: 332px;
    max-width: 100%;
    margin: 10px auto;
    border: 4px solid #f0ae63;
    border-radius: 7px;
    background: #f0ae63;
    color: #783500;
    container-type: inline-size;
    text-align: center;
    font-family: Arial, sans-serif;
    font-weight: 400;
}
.ps-important-notice > .ps-important-notice__upper {
    box-sizing: border-box;
    min-height: 170px;
    padding: 16px 24px 17px;
    border-radius: 3px 3px 0 0;
    background: #fff;
}
.ps-important-notice .ps-important-notice__title {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
    color: #a35d06;
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 24px !important;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}
.ps-important-notice p {
    margin: 0;
    padding: 0;
    color: #783500;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.ps-important-notice > .ps-important-notice__lower {
    box-sizing: border-box;
    min-height: 76px;
    padding: 16px 20px;
}
@supports (font-size: 1cqw) {
    .ps-important-notice > .ps-important-notice__upper {
        min-height: 52.46914cqw;
        padding: 4.93827cqw 7.40741cqw 5.24691cqw;
    }
    .ps-important-notice .ps-important-notice__title {
        margin-bottom: 6.17284cqw;
        font-size: clamp(18px, 7.40741cqw, 24px);
    }
    .ps-important-notice p { font-size: clamp(14px, 6.17284cqw, 20px); }
    .ps-important-notice > .ps-important-notice__lower {
        min-height: 23.45679cqw;
        padding: 4.93827cqw 6.17284cqw;
    }
}

/* PS-LAYOUT-01: one navigation breakpoint, including real phone landscape.
   Mobile/tablet <=979px; desktop >=980px retains the approved header.
   Remove Bootstrap's OUTER body gutters only on full site documents;
   restore equivalent inner main-content gutters below768px. No100vw breakout. */
@media (max-width: 979px) {
    body:has(#top-handler) { padding-inline: 0; }
    #top-bg, #bot-modules-2, #footer {
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }
    #top-handler > .container {
        box-sizing: border-box; width: auto; max-width: none;
        margin-inline: 16px; padding-inline: 0;
    }
    #top-handler #top > .row-fluid {
        display: flex; flex-direction: column; gap: 8px;
    }
    #top-handler #top > .row-fluid::before,
    #top-handler #top > .row-fluid::after,
    #menu-handler > .row-fluid::before,
    #menu-handler > .row-fluid::after { display: none; }
    #top-handler #top > .row-fluid > :is(#site-name-handler, #nav-handler) {
        float: none; width: 100%; min-width: 0; margin: 0;
    }
    #top-handler #sn-position { padding: 12px 0 0; }
    #top-handler #log-panel {
        display: flex; justify-content: center; flex-wrap: wrap;
        gap: 4px 16px; float: none; padding: 0; max-width: 100%;
    }
    /* layout.css applies !important li padding; override that rule only. */
    #top-handler #log-panel > li { padding: 0 !important; min-width: 0; }
    #top-handler #log-panel > li > a {
        max-width: 100%; box-sizing: border-box;
        min-height: 36px; line-height: 36px;
        white-space: normal; overflow-wrap: anywhere;
    }
    #menu-handler {
        position: relative; box-sizing: border-box;
        width: auto; max-width: none; margin-inline: 16px;
    }
    #menu.ps-mobile-ready #menu-handler > .row-fluid {
        display: grid; grid-template-columns: 44px minmax(0, 1fr);
        align-items: center; gap: 8px; width: 100%;
    }
    #menu-handler > .row-fluid > :is(.span8, .span12, .span4) {
        float: none; width: auto; min-width: 0; margin: 0;
    }
    #menu-handler > .row-fluid > .span4 {
        display: flex; align-items: center; justify-content: flex-end;
        flex-wrap: nowrap; gap: 8px;
    }
    #menu.ps-mobile-ready #menu-handler #menupanel {
        width: 44px; height: 44px; margin: 0;
    }
    #menu-handler #search-position {
        position: static; float: none; flex: 0 0 44px;
        width: 44px; height: 44px; margin: 0;
    }
    #menu-handler #searchOpenButton { width: 44px; height: 44px; }
    #menu-handler #search-position #searchpanel {
        top: calc(100% + 8px); left: 0; right: 0;
        box-sizing: border-box; width: auto; max-width: 100%;
        height: auto !important; min-height: 44px; padding: 8px;
    }
    #menu-handler #search-position .ps-catalog-search { width: 100%; max-width: 100%; }
    #menu-handler #vmCartModule {
        position: static; display: flex; align-items: center;
        flex: 0 1 auto; gap: 6px; float: none;
        min-width: 0; max-width: 100%; width: auto; margin: 0;
    }
    #menu-handler #vmCartModule > .show-cart { float: none; flex: 0 0 44px; }
    #menu-handler #vmCartModule .cart-button { width: 44px; height: 44px; }
    #menu-handler #vmCartModule > .total-items {
        float: none; flex: 1 1 auto; min-width: 0;
        white-space: normal; overflow-wrap: anywhere;
    }
    #menu-handler #vmCartModule > .panel2 {
        top: calc(100% + 8px); right: 0; left: auto;
        box-sizing: border-box; max-width: 100%;
    }
    /* Footer content remains constrained; background belongs to outer sections. */
    #bot-modules-2 { padding: 24px 0 16px; }
    #bot-modules-2 > .container, #footer > .container {
        box-sizing: border-box; width: 100%; max-width: none;
        margin-inline: 0; padding-inline: 16px;
    }
    #bot-modules-2 > .container > .row-fluid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
        gap: 24px;
    }
    #bot-modules-2 > .container > .row-fluid::before,
    #bot-modules-2 > .container > .row-fluid::after { display: none; }
    #bot-modules-2 > .container > .row-fluid > [class*="span"] {
        float: none; width: auto; min-width: 0; margin: 0;
    }
    #bot-modules-2 .module-content { min-width: 0; overflow-wrap: anywhere; }
    #footer { padding: 20px 0 24px; }
    #footer-line > [class*="span"] { min-width: 0; margin-left: 0; }
    #footer-line p { white-space: normal; overflow-wrap: anywhere; }
}
/* These are content gutters, not a second navigation breakpoint. */
@media (max-width: 767px) {
    body:has(#top-handler) > #main-handler,
    body:has(#top-handler) > #bottom-bg {
        box-sizing: border-box; padding-inline: 20px;
    }
}
/* Narrow desktop: reclaim unused Bootstrap span4 width, keep native links
   and search/cart at their existing edges. Navigation visibility stays980+. */
@media (min-width: 980px) and (max-width: 1199px) {
    #menu-handler > .row-fluid { display: flex; align-items: center; }
    #menu-handler > .row-fluid::before,
    #menu-handler > .row-fluid::after { display: none; }
    #menu-handler > .row-fluid > .span8 {
        flex: 1 1 auto; width: auto; min-width: 0; margin-right: 0;
    }
    #menu-handler > .row-fluid > .span4 {
        flex: 0 0 auto; width: auto; margin-left: 10px;
    }
    #menu #nav { display: flex; flex-wrap: nowrap; }
    #menu #nav > li { flex: 0 0 auto; float: none; }
}

/* PS-LAYOUT-02: J3-inspired search interaction, native Joomla5/VM form.
   Mobile/tablet only; footer and category accordions are untouched. */
#menu-handler .ps-header-search-close { display: none; }
#menu-handler #searchpanel[hidden] { display: none !important; }
@media (max-width: 979px) {
    /* Keep original icon art within its intended20px sprite viewport.
       A36px background-bearing link exposed rows104–105 of the next icon. */
    #top-handler #log-panel > li > :is(a.open-register-form, a#v_register) {
        position: relative;
        background-image: none;
    }
    #top-handler #log-panel > li > :is(a.open-register-form, a#v_register)::before {
        content: "";
        position: absolute;
        left: 0; top: 50%; transform: translateY(-50%);
        width: 26px; height: 20px;
        background-image: url(../images/top-icons.png);
        background-repeat: no-repeat;
        pointer-events: none;
    }
    #top-handler #log-panel > li > a.open-register-form::before { background-position: 0 -70px; }
    #top-handler #log-panel > li > a#v_register::before { background-position: 0 -102px; }
    #menu.ps-mobile-ready #menu-handler #menupanel {
        border: 0; border-radius: 0; box-shadow: none; background: transparent;
    }
    #menu.ps-mobile-ready #menu-handler #menupanel .rm-line {
        width: 20px; height: 3px; margin: 2px 0; border-radius: 1px;
    }
    #menu-handler #vmCartModule { order: 1; }
    #menu-handler #search-position { order: 2; }
    /* Mobile search stays in flow even before opening: never an overlay. */
    #menu-handler #search-position #searchpanel {
        position: static; top: auto; left: auto; right: auto;
        width: auto; max-width: 100%; min-width: 0;
        min-height: 44px; padding: 0; background: transparent;
    }
    #menu-handler.ps-header-search-open #vmCartModule { display: none; }
    #menu-handler.ps-header-search-open #search-position {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px 36px;
        align-items: center; gap: 4px;
        flex: 1 1 auto; width: auto; min-width: 0;
    }
    #menu-handler.ps-header-search-open #searchpanel { grid-column: 1; grid-row: 1; }
    #menu-handler.ps-header-search-open #searchOpenButton { grid-column: 2; grid-row: 1; }
    #menu-handler.ps-header-search-open .ps-header-search-close:not([hidden]) {
        display: inline-flex; align-items: center; justify-content: center;
        grid-column: 3; grid-row: 1;
        box-sizing: border-box; width: 36px; min-height: 44px;
        margin: 0; padding: 0; border: 0; background: transparent;
        color: #fff; font: 26px/1 Arial, sans-serif; cursor: pointer;
    }
    #menu-handler.ps-header-search-open .ps-header-search-close:focus-visible {
        outline: 2px solid #fff; outline-offset: -3px;
    }
    #menu-handler.ps-header-search-open .ps-catalog-search-form { min-width: 0; }
    #menu-handler.ps-header-search-open .ps-catalog-search { height: 44px; }
    #menu-handler.ps-header-search-open .ps-search-input { height: 44px; margin: 0; }
}

/* PS-STAB-22: shared header search palette. Keep the existing 38px outer
   height while overriding the legacy border and content height in layout.css. */
#search-position #searchpanel .ps-catalog-search .ps-search-input {
    box-sizing: border-box;
    height: 38px !important;
    border: 2px solid #dc913d !important;
    background-color: #ffffff;
    color: #a35d06;
    box-shadow: none;
}
#search-position #searchpanel .ps-catalog-search .ps-search-input:focus,
#search-position #searchpanel .ps-catalog-search .ps-search-input:active {
    border-color: #a35d06 !important;
    color: #783500;
    outline: none;
    box-shadow: none;
}

/* PS-LAYOUT-02A: mobile placeholder contrast and category-bar alignment. */
@media (max-width: 979px) {
    #menu-handler #search-position #searchpanel .ps-search-input::placeholder {
        color: #666666;
        opacity: 1;
    }
    /* Same parent width/gutters as #menu-handler; override Bootstrap container.
       Context modules230/231 live in the content sidebar, not this header. */
    #top-bg > #ps-category-navigation {
        box-sizing: border-box;
        width: auto;
        max-width: none;
        min-width: 0;
        margin-inline: 16px;
        padding-inline: 0;
    }
}

/* PS-SALE-01: original J3 red badge; scoped to its new server-rendered marker. */
.pr-img-handler:has(> .ps-sale-badge), .ps-sale-detail-media { position: relative; }
.ps-sale-badge.special-price-label {
    position: absolute; top: -10px; right: -10px;
    background: #e60000; color: #fff;
    padding: 6px 12px; font: bold 12px/1.4 Tahoma, Arial, sans-serif;
    border-radius: 4px; z-index: 20; text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,.3); pointer-events: none;
    max-width: calc(100% - 4px); box-sizing: border-box; overflow-wrap: anywhere;
}
/* Do not offset beyond narrow screens; keep the original badge art/colour. */
@media (max-width: 979px) {
    .ps-sale-badge.special-price-label { top: 4px; right: 4px; }
}
/* Readable Special Price page title. Product H2 keeps the verified J3 14px
   card size; never replace heading elements just to change their size. */
.ps-special-price-view > h1 { line-height: 1.25; overflow-wrap: anywhere; }
/* Ordinary text only: no universal selector, icon pseudo-element or logo rule. */
body { letter-spacing: 0; }
body :is(p,span,a,button,input,textarea,select,label,li,td,th,legend,dt,dd,summary,h5,h6,.userfields_info,.result-title,span.title):not(#sn-position *,svg *,[class*="icon"],[class*="fa-"],.fa,.fas,.far,.fab),
.camera_caption :is(p,h5,h6),
.productdetails-view #b-area .product-price .PricesalesPrice span,
.spacer-buy-area .product-price .PricesalesPrice span {
    letter-spacing: 0 !important;
}


/* PS-APP-02 — Application of Peptides, category 50 only.
 * 12px in the recovered table-med rule is !important, so this scoped override
 * needs the same priority. Other medical tables retain their accepted styling. */
.ps-application-description table.table-med a {
    font-size: 14px !important;
    letter-spacing: 0;
}
.ps-application-description table.table-med a:focus-visible {
    outline: 3px solid #783500;
    outline-offset: 3px;
}
.ps-application-description table.table-med a:focus-visible img {
    outline: 3px solid #783500;
    outline-offset: 3px;
}
/* Preserve the former browse-view H1's measured 14px/16.8px presentation. */
.browse-view > h2.ps-application-catalog-heading {
    font-size: 100%;
    line-height: 1.2;
    font-weight: 400;
    margin: 1px;
    padding: 15px 0;
    text-transform: none;
    letter-spacing: 0;
}
/* vertical desctop menu */
.moduletable_menu ul.menu li a, .VMmenu li div a {
    color: #a35d06 !important;
}
.moduletable_menu ul.menu li a:hover, .VMmenu li div a:hover {
    color: #783500 !important;
}
/* VM categories */
.category-view .row-fluid .category .spacer h2 a .cat-title {
    color: #783500;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    padding: 5px;
}

.category .spacer:hover {
    background: #ffcf91;
}
/* product name */
.pr-add a, .pr-add-bottom a, .featured-view .spacer h3 a, .latest-view .spacer h3 a, .topten-view .spacer h3 a, .recent-view .spacer h3 a, .related-products-view .spacer h3 a, .browse-view .product .spacer h2 a, .h-pr-title a {
    color: #a35d06;
    font-weight: 700;
    font-size: 16px;
} 

/* button */
.button, button, a.button, dt.tabs.closed:hover, dt.tabs.closed:hover h3 a, .closemenu, .vmproduct .productdetails .spacer:hover .pr-add, .vmproduct .productdetails .spacer:hover .pr-add-bottom, a.product-details, input.addtocart-button, a.ask-a-question, .highlight-button, .vm-button-correct, .cartpanel span.closecart, .vm-pagination ul li a, #LoginForm .btn-group > .dropdown-menu, #LoginForm .btn-group > .dropdown-menu a, a.details, .spacer:hover .button.button-3, .row-fluid .spacer .pr-img-handler .popout-price .show-pop-up-image, .product-sl-handler ol li:hover, .product-sl-handler ol li.current, .camera_prev:hover > span, .camera_next:hover > span {
    color: #a35d06 !important;
    background-color: #ffffff !important;
    border: 1px solid #dc913d;
}

/* PS-STAB-17: remove stacked wrapper spacing where notices meet the footer. */
#bottom-bg:has(+ #bot-modules-2) #bot-modules:has(.ps-important-notice) {
    padding-bottom: 0;
    margin-bottom: 0;
}

#bottom-bg:has(#bot-modules .ps-important-notice) + #bot-modules-2 {
    padding-top: 24px;
}

@media (max-width: 767px) {
    #bottom-bg:has(+ #bot-modules-2) #bot-modules > .row-fluid > :last-child
    > .moduletable:last-child:has(.ps-important-notice) {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    #bottom-bg:has(+ #bot-modules-2) #bot-modules > .row-fluid > :last-child
    > .moduletable:last-child > .module-content:has(.ps-important-notice) {
        padding-bottom: 0;
    }
}

@media (min-width: 768px) {
    #bottom-bg:has(+ #bot-modules-2) #bot-modules > .row-fluid
    > * > .moduletable:last-child:has(.ps-important-notice) {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    #bottom-bg:has(+ #bot-modules-2) #bot-modules > .row-fluid
    > * > .moduletable:last-child > .module-content:has(.ps-important-notice) {
        padding-bottom: 0;
    }
}


/* PS-STAB-18: category caption case and equal heights on the VM storefront only. */
.ps-storefront-categories > .row-fluid > .category .cat-title {
    text-transform: uppercase;
    overflow-wrap: anywhere;
}
@media (min-width: 768px) {
    .ps-storefront-categories > .row-fluid { display: flex; flex-wrap: wrap; }
    .ps-storefront-categories > .row-fluid::before,
    .ps-storefront-categories > .row-fluid::after,
    .ps-storefront-categories > .row-fluid > .clear { display: none; }
    .ps-storefront-categories > .row-fluid > .category { display: flex; flex: 0 0 auto; }
    .ps-storefront-categories > .row-fluid > .category > .spacer {
        flex: 1;
        min-width: 0;
        height: auto;
    }
}

/* Each Enfuse product row shares its content tracks, including optional fields.
   Keep native stacking below 768px and the original grid in browsers without subgrid. */
@supports (grid-template-rows: subgrid) {
    @media (min-width: 768px) {
        :is(.browse-view, .featured-view, .latest-view, .topten-view, .recent-view)
            > .row-fluid:has(> .product > .spacer :is(.h-pr-details, .action-handler)):not(.productdetails-view *),
        .vmproduct.product-details.row-fluid:has(> .productdetails > .spacer > .action-handler):not(.productdetails-view *) {
            --ps-card-gap: 2.127659574%;
            display: grid;
            grid-template-columns: repeat(12, minmax(0, 1fr));
            grid-template-rows: repeat(6, auto);
            column-gap: var(--ps-card-gap);
            @media (max-width: 979px) { --ps-card-gap: 2.762430939%; }
            @media (min-width: 1200px) { --ps-card-gap: 2.564102564%; }
            &:has(> .ex-span2) { grid-template-columns: repeat(5, 17.92%); }
            &:has(> .ex-span1_5) { grid-template-columns: repeat(6, 14.46%); }
            &:has(> .sp20) { grid-template-columns: repeat(5, 19.2%); column-gap: 1%; }
            &::before, &::after, & > .clear { display: none; }
            & > :is(.product, .productdetails) {
                grid-row: 1 / 7;
                grid-column: span var(--ps-card-span, 1);
                display: grid;
                grid-template-rows: subgrid;
                grid-template-columns: minmax(0, 1fr);
                width: auto;
                min-width: 0;
                margin-left: 0;
            }
            & > .span12 { --ps-card-span: 12; }
            & > .span6 { --ps-card-span: 6; }
            & > .span4 { --ps-card-span: 4; }
            & > .span3 { --ps-card-span: 3; }
            & > .span2:not(.ex-span2, .ex-span1_5, .sp20) { --ps-card-span: 2; }
            & > :is(.product, .productdetails) > .spacer,
            & > .product > .spacer > .spacer-handler:has(> .action-handler) {
                grid-row: 1 / 7;
                display: grid;
                grid-template-rows: subgrid;
                grid-template-columns: minmax(0, 1fr);
                min-width: 0;
                height: auto;
            }
            & .spacer > .pr-img-handler, & .spacer-handler > .pr-img-handler {
                grid-row: 1;
                align-self: start;
            }
            & .spacer > .h-pr-title { grid-row: 2; }
            & .spacer > .product_s_desc { grid-row: 3; }
            & .spacer > :is(.h-pr-title, .product_s_desc), & .action-handler > .h-pr-title {
                min-width: 0;
                align-self: start;
                overflow-wrap: anywhere;
            }
            & .spacer > .h-pr-details {
                grid-row: 4 / 7;
                display: grid;
                grid-template-rows: subgrid;
                grid-template-columns: minmax(0, 1fr);
            }
            & .h-pr-details > .product-price-1 { grid-row: 1; }
            & .h-pr-details > .paddingtop8 { grid-row: 2; }
            & .h-pr-details > p { grid-row: 3; }
            & :is(.spacer, .spacer-handler) > .action-handler {
                grid-row: 2 / 7;
                display: grid;
                grid-template-rows: subgrid;
                grid-template-columns: minmax(0, 1fr);
                min-width: 0;
            }
            & .action-handler > .h-pr-title { grid-row: 1; }
            & .action-handler > .product-price { grid-row: 3; }
            & .action-handler > :is(.hand-product-details, .add2cart-handler, div:has(> .notify)) {
                grid-row: 5;
                align-self: start;
                justify-self: center;
                max-width: 100%;
            }
        }
    }
}





/* PS-STAB-19: comparison amounts on the primary product detail price only. */
.productdetails-view #b-area .ps-detail-comparison {
    display: grid;
    grid-template-columns: max-content minmax(0, max-content);
    column-gap: .65rem;
    row-gap: .1rem;
    margin: .25rem 0 0;
    font-size: .9rem;
    line-height: 1.4;
}
.productdetails-view #b-area .ps-detail-comparison > :is(dt, dd) {
    margin: 0;
    font-weight: normal;
    overflow-wrap: anywhere;
}


/* PS-STAB-20: three long category-description headings on mobile. */
@media (max-width: 979px) {
    html:has(head > link[rel="canonical"]:is(
        [href$="/derinat-immunomodulating-agent"],
        [href$="/imunofan-effective-peptide-immunomodulator"],
        [href$="/panavir-natural-antiviral-and-immunomodulatory-agent"]
    )) .category_description > h1:has(> a#category) {
        letter-spacing: 0;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}


/* PS-STAB-22: text actions only. Legacy icon links keep their sprites. */
:is(
    .browse-view .h-pr-details a.product-details,
    .ps-vm-buybar input.addtocart-button:enabled,
    .productdetails-view #b-area a.ask-a-question,
    #mod-custom219 a.ps-store-categories-link,
    .cart-view #checkoutFormSubmit:enabled,
    .cart-view a.continue_link,
    .ps-cart-popup a:is(.showcart, .continue_link),
    #contact-form button.validate[type="submit"]:enabled,
    #LoginForm button[data-ps-login-close]:enabled,
    #LoginForm .mod-login-logout button[name="Submit"]:enabled,
    .orderby-displaynumber .input-group > .input-group-btn > a.hasTooltip[type="button"],
    .ps-order-details .ps-order-actions > :is(a.btn, button.btn:enabled),
    #userForm:has(> input[name="task"][value="saveUser"]):has(> input[name="address_type"])
        .control-buttons:has(> button[type="submit"]:not([name])) > button:is([type="submit"]:not([name]), [type="reset"]):enabled,
    #main-content-handler #form-login:not(.cart-view *):has(> input[name="task"][value="user.logout"]) > input[name="Submit"]:enabled,
    #LoginForm #login-form .ps-login-actions > button[name="Submit"][type="submit"]:enabled,
    #com-users-login__form button.input-password-toggle[type="button"]:enabled,
    #com-users-login__form .com-users-login__submit button[type="submit"]:enabled,
    .category_description a.button,
    .productdetails-view .product-description a.button,
    #bot-modules-2 #mod-custom104 a.button[href$="/contact-us"],
    #bot-modules-2 #mod-custom134 a.button[href$="/peptide-online-store"],
    #mod-custom205 a.button[href$="/peptide-online-store"]
):not(:where(.disabled, .loading, .is-loading, [aria-disabled="true"], [aria-busy="true"])) {
    color: #a35d06 !important;
    background-color: #ffffff !important;
    border: 1px solid #dc913d;
    box-shadow: none;

    &:hover,
    &:active,
    &:focus-visible {
        color: #783500 !important;
        border-color: #a35d06;
    }

    &:focus {
        box-shadow: none;
    }

    &:focus-visible {
        outline: 2px solid #783500;
        outline-offset: 2px;
    }
}


/* PS-STAB-24: Shopper Information and Your Orders in the VM account form. */
#adminForm:has(> input[name="controller"][value="user"]) > #ui-tabs > #tabs > li:first-child,
#adminForm:has(> input[name="controller"][value="user"]) > #ui-tabs:has(> .tabs:last-child .ps-account-orders-scroll) > #tabs > li:last-child {
    color: #a35d06;
    background: #ffffff;
    border-color: #dc913d;

    &:hover,
    &:focus-visible,
    &:active {
        color: #783500;
        border-color: #a35d06;
    }

    &.current {
        color: #783500;
        background: #fff1df;
        border-color: #a35d06;
    }

    &:focus-visible {
        outline: 2px solid #783500;
        outline-offset: -3px;
    }
}


/* PS-STAB-25: remove legacy gradients only from the VM logout and full
   address form actions. The guest Register and Checkout buttons are separate. */
#main-content-handler #form-login:not(.cart-view *):has(> input[name="task"][value="user.logout"]) > input[name="Submit"]:enabled,
#userForm:has(> input[name="task"][value="saveUser"]):has(> input[name="address_type"])
    .control-buttons:has(> button[type="submit"]:not([name])) > button:is([type="submit"]:not([name]), [type="reset"]):enabled {
    background-image: none;
}

/* PS-STAB-25: reuse the two silhouettes of the existing Enfuse sprite. */
@supports (mask-image: url("../images/product-details.png")) {
    .row-fluid .spacer .pr-img-handler .popout-price-buttons-handler > :is(.show-pop-up-image, a.product-details) {
        background-image: none;
        border-color: #dc913d;
        color: #a35d06 !important;

        &::before {
            content: "";
            position: absolute;
            inset: 0;
            background-color: currentColor;
            mask: url("../images/product-details.png") no-repeat var(--ps-overlay-icon-x, 0px) 0;
            pointer-events: none;
        }

        &:focus-within {
            color: #783500 !important;
            border-color: #a35d06;
        }

        &:hover {
            color: #ffffff !important;
            background-color: #783500 !important;
            border-color: #a35d06;
        }
    }

    .row-fluid .spacer .pr-img-handler .popout-price-buttons-handler > a.product-details {
        --ps-overlay-icon-x: -39px;
    }
}

.row-fluid .spacer .pr-img-handler .popout-price:focus-within {
    opacity: 1;
}

.row-fluid .spacer .pr-img-handler .popout-price-buttons-handler >
    :is(.show-pop-up-image:has(> a:focus-visible), a.product-details:focus-visible) {
    left: 0;
    opacity: 1;
    outline: 2px solid #783500;
    outline-offset: -2px;
    box-shadow: none;
}

.row-fluid .spacer .pr-img-handler .popout-price-buttons-handler > .show-pop-up-image > a:focus-visible {
    outline: none;
    box-shadow: none;
}


/* PS-STAB-25A: the shipping toolbar can also render in the checkout context. */
#userForm:has(> input[name="task"][value="saveUser"]):has(> input[name="address_type"][value="ST"])
    .control-buttons > button:is([type="submit"]:not([name]), [type="reset"]):enabled:not(:where(.disabled, .loading, .is-loading, [aria-disabled="true"], [aria-busy="true"])) {
    &:hover,
    &:active,
    &:focus {
        background-image: none;
        box-shadow: none;
    }
}


/* PS-STAB-26: text links in the three homepage editorial modules. */
#newsflash-position .table-shop a.ps-home-section-link {
    color: #a35d06 !important;
    font-weight: 500;
}
#newsflash-position .table-shop a.ps-home-section-link:hover,
#newsflash-position .table-shop a.ps-home-section-link:focus-visible {
    color: #783500 !important;
}
#newsflash-position .table-shop a.ps-home-section-link:focus-visible {
    outline: 2px solid #783500;
    outline-offset: 2px;
}


/* PS-STAB-27: compact breadcrumbs only above the populated cart. */
#nav-line:has(+ #tmp-container #cart-view.cart-view) {
    margin-bottom: 16px;
}
#nav-line:has(+ #tmp-container #cart-view.cart-view) #brcr {
    padding-bottom: 0;
}
#nav-line:has(+ #tmp-container #cart-view.cart-view) #brcr .moduletable:has(.breadcrumbs) {
    margin-bottom: 0;
    padding-bottom: 0;
}

#cart-view .vm-continue-shopping > a.continue_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-inline: 9px;
}
#cart-view .vm-continue-shopping > a.continue_link::before {
    content: "\2190" / "";
    flex: none;
    font-size: 16px;
    line-height: 1;
}

/* VirtueMart uses alert-info for the numbered steps as well as its notices. */
#cart-view .checkoutStep:is(#checkoutStep1, #checkoutStep2, #checkoutStep3, #checkoutStep4),
#main-content-handler .checkoutStep:is(#checkoutStep2, #checkoutStep3):has(+ :is(#shipmentForm, #paymentForm)) {
    clear: both;
    height: auto;
    padding: 10px 12px;
    border: 0;
    border-left: 2px solid #dc913d;
    border-radius: 2px;
    background: #fff7ec;
    color: #783500;
    line-height: 1.5;
    text-shadow: none;
    box-shadow: none;
}
#cart-view .checkoutStep:is(#checkoutStep2, #checkoutStep3) {
    margin-top: 12px;
}

#cart-view #checkoutForm .billto-shipto > div > a.details.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #a35d06 !important;
    background-color: #fff !important;
    border: 1px solid #dc913d;
    text-shadow: none;
    box-shadow: none;
}
#cart-view #checkoutForm .billto-shipto > div > a.details.btn:is(:hover, :active, :focus-visible) {
    color: #783500 !important;
    border-color: #a35d06;
}

#cart-view :is(.vm-shipment-row, .vm-payment-row) > td:first-child > .label-success {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    padding: 5px 8px;
    border: 1px solid #dc913d;
    border-radius: 2px;
    background: #fff7ec;
    color: #783500;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
    text-shadow: none;
    box-shadow: none;
}

/* Keep provider-specific controls intact. The grid applies to a radio-label pair. */
:where(#cart-view, #shipmentForm, #paymentForm) .vm-payment-shipment-select > :is(.vm-shipment-plugin-single, .vm-payment-plugin-single) {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}
:where(#cart-view, #shipmentForm, #paymentForm) .vm-payment-shipment-select > :is(.vm-shipment-plugin-single, .vm-payment-plugin-single):has(> input[type="radio"]:first-child + label:last-child) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 8px;
}
:where(#cart-view, #shipmentForm, #paymentForm) .vm-payment-shipment-select > :is(.vm-shipment-plugin-single, .vm-payment-plugin-single) > input[type="radio"]:first-child:has(+ label:last-child) {
    margin: 4px 0 0;
}
:where(#cart-view, #shipmentForm, #paymentForm) .vm-payment-shipment-select :is(label, .vmshipment, .vmpayment, .vmshipment_name, .vmpayment_name, .vmshipment_cost, .vmpayment_cost) {
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}
:where(#cart-view, #shipmentForm, #paymentForm) .vm-payment-shipment-select label {
    margin-bottom: 0;
}
:where(#cart-view, #shipmentForm, #paymentForm) .vm-payment-shipment-select :is(.vmshipment_description, .vmpayment_description) {
    color: #56504b;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

:is(#cart-view, #shipmentForm, #paymentForm) :is(button, input, select, textarea):focus {
    box-shadow: none;
}
:is(#cart-view, #shipmentForm, #paymentForm) .form-control:not(.invalid):focus {
    border-color: #a35d06;
}
:is(#cart-view, #shipmentForm, #paymentForm) :is(a[href], button, input, select, textarea):focus-visible {
    outline: 2px solid #783500;
    outline-offset: 2px;
}

/* PS-STAB-27A: restore readable sizes where the cart inherits legacy table and .small styles. */
#cart-view .ps-cart-summary > tbody > tr > :is(th, td),
#cart-view .billto-shipto :is(.output-billto, .output-shipto, .output-shipto label),
#cart-view .vm-coupon-row :is(input.coupon, input[name="setcoupon"]) {
    font-size: 14px;
    line-height: 1.5;
}
#cart-view .ps-cart-product > td:first-child .small,
#cart-view .vm-coupon-row .label,
#cart-view #com-form-login .small {
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Keep amounts together in the original desktop table and mobile product rows. */
#cart-view .ps-cart-summary > tbody > tr > td.priceCol:last-child {
    white-space: nowrap;
    overflow-wrap: normal;
}
@media (min-width: 768px) {
    #cart-view .ps-cart-summary .vm-head-row > th:nth-last-child(-n+2) {
        width: 1%;
        white-space: nowrap;
        overflow-wrap: normal;
    }
    #cart-view .ps-cart-summary .vm-head-row > th:last-child {
        min-width: calc(10ch + 20px);
    }
    #cart-view .ps-cart-summary > tbody > tr > td.priceCol,
    #cart-view .ps-cart-summary .vm-head-row > th:last-child {
        text-align: right;
    }
}


/* PS-STAB-29: trim the chrome between the three homepage editorial modules. */
#newsflash-position > .moduletable:has(> .module-content > :is(#mod-custom205, #mod-custom203, #mod-custom204)) {
    padding-block-end: 7px;
    margin-block-end: 12px;
}
#newsflash-position > .moduletable:has(> .module-content > :is(#mod-custom203, #mod-custom204)) {
    padding-block-start: 7px;
}

/* The featured component on the homepage currently renders a whitespace-only wrapper. */
#content-handler:has(#newsflash-position #mod-custom205) {
    & .tmp-content-area:has(> .blog-featured:only-child):not(:has(> .blog-featured > *)) {
        padding-block-end: 0;
    }
    & #top-content-modules .moduletable_style1:has(:is(#mod-custom211, #mod-custom212, #mod-custom213, #mod-custom214)) {
        margin-block-end: 12px;
    }
}

@media (max-width: 767px) {
    /* Bootstrap hides the promo modules on phones, but leaves their 30px columns. */
    #content-handler:has(#newsflash-position #mod-custom205)
        #top-content-modules > .row-fluid > .span3:has(> .hidden-phone:only-child) {
        display: none;
    }
    body:has(#ps-category-navigation)
        #main-content-handler > .row-fluid > .span3:has(> .moduletable_menu:only-child [data-ps-desktop-categories="97"]) {
        display: none;
    }
}

@media (max-width: 979px) {
    /* An adjacent component follows the crumbs directly on these public views. */
    #content-handler > #nav-line:has(.breadcrumbs):has(+ #tmp-container .tmp-content-area > :is(
        .ps-storefront-categories, .category_description, .browse-view, .productdetails-view, .com-contact
    )) {
        margin-block-end: 18px;

        & #brcr {
            padding-block-end: 0;
        }
        & #brcr > .moduletable:has(.breadcrumbs) {
            padding-block-end: 0;
            margin-block-end: 0;
        }
    }

    /* The storefront title is visible even when the category tree moves above the crumbs. */
    #main-content-handler > .row-fluid:has(> .span9 > .tmp-content-area > .ps-storefront-categories)
        > .span3 > .moduletable:has(#mod-custom220) {
        padding-block: 0;
        margin-block-end: 12px;
    }
}


/* PS-STAB-30: keep the native cart and details link in the card's action row. */
.ps-manufacturer-products .h-pr-details > .ps-manufacturer-actions {
    grid-row: 3;
    min-width: 0;
}
.ps-manufacturer-products .ps-manufacturer-actions form.product {
    width: auto;
    margin: 0;
}
.ps-manufacturer-products .ps-vm-buybar .quantity-input {
    width: 3.5em;
}
.ps-manufacturer-products .ps-vm-buybar input.addtocart-button {
    height: auto;
    white-space: normal;
}


/* PS-DESIGN-01: Enfuse header palette and regular Open Sans. */
@font-face {
    font-family: "Open Sans";
    src: url("../fonts/ps-open-sans-latin-v44.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
    --ps-font-text: "Open Sans", Arial, sans-serif;
    --ps-header-brown: #783500;
    --ps-header-active: #a35d06;
    font-family: var(--ps-font-text);
    font-weight: 400;
}

/* Match the legacy selectors that specify a separate font or shorthand. */
:is(h1, h2, h3, h4, h5, h6, .userfields_info, .result-title, span.title),
#sn-position :is(#h1, #h2),
#LoginForm .modal-header #myModalLabel,
#tabs-1 .nav-tabs > li > a,
.moduletable_menu ul.menu > li > a,
ul.VMmenu > li > div > a,
.vmproduct .productdetails .spacer .product-price .PricesalesPrice,
.total-items > strong,
.sl-item-title,
#ph-camera-slideshow .camera_caption > div,
.productdetails-view,
.productdetails-view :is(h1, h2),
.cart-view,
.cart-view :is(h1, h2, h3),
body.ps-ask-component,
.ps-tos-content,
:is(#search-position, #LoginForm, #main-content-handler) :is(input, textarea, select):not([type="button"], [type="submit"]),
#menu .ps-mobile-tree .ps-mobile-label,
#ps-category-navigation :is(summary, a) {
    font-family: var(--ps-font-text);
}

:is(h2, h3, h4, h5, h6),
.productdetails-view h2 {
    font-weight: 700;
    overflow-wrap: anywhere;
}

:is(.browse-view, .featured-view, .latest-view, .topten-view, .recent-view) .spacer :is(.h-pr-title, h3),
.vmproduct .spacer :is(.h-pr-title, h3) {
    font-weight: 600;
}

/* text.css declares the family !important on this set of text controls. */
:is(a.button, button:not([class*="icon"], .quantity-controls), a.product-details,
    input.addtocart-button, a.ask-a-question, .highlight-button, .vm-button-correct, a.details) {
    font-family: var(--ps-font-text) !important;
}
:is(a.button, a.product-details, input.addtocart-button, a.ask-a-question,
    .highlight-button, .vm-button-correct, a.details, button[type="submit"]:not([class*="icon"])) {
    font-weight: 600;
}

#menu #menu-handler {
    background-color: var(--ps-header-brown);
}
#menu #menu-handler :is(#menupanel, #searchOpenButton, .cart-button):focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
}

/* The original sprite remains the source of both account icons. */
#top-handler #log-panel > li > :is(a.open-register-form, a#v_register) {
    position: relative;
    background-image: none;
    color: var(--ps-header-brown) !important;
    font-weight: 600;
}
#top-handler #log-panel > li > :is(a.open-register-form, a#v_register)::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 20px;
    background: currentColor;
    mask: url("../images/top-icons.png") 0 var(--ps-account-icon-y) no-repeat;
    pointer-events: none;
}
#top-handler #log-panel > li > a.open-register-form { --ps-account-icon-y: -70px; }
#top-handler #log-panel > li > a#v_register { --ps-account-icon-y: -102px; }
#top-handler #log-panel > li > :is(a.open-register-form, a#v_register):is(:hover, :focus-visible) {
    color: var(--ps-header-active) !important;
}
#top-handler #log-panel > li > :is(a.open-register-form, a#v_register):focus-visible {
    outline: 2px solid var(--ps-header-brown);
    outline-offset: 2px;
}

@media (min-width: 980px) {
    #menu #nav > li > a {
        font-size: clamp(15px, 1.25vw, 17px);
        padding-inline: clamp(6px, 0.7vw, 9px);
    }
    #menu #nav li > a {
        font-family: var(--ps-font-text);
        font-weight: 600;
    }
    #menu #nav > li > a,
    #menu #nav > li > a small { color: #fff !important; }
    #menu #nav > li:is(.active, .current, .sfHover) > a,
    #menu #nav > li > a:is(:hover, :focus-visible) {
        background-color: var(--ps-header-active) !important;
    }
    #menu #nav > li > a:focus-visible {
        outline: 2px solid #fff;
        outline-offset: -3px;
    }

    /* Enfuse paints dropdowns white. Keep submenu colors separate from the bar. */
    #menu #nav li > ul { background-color: #fff; opacity: 1; }
    #menu #nav li li > a,
    #menu #nav li li > a small {
        color: var(--ps-header-brown) !important;
        overflow-wrap: anywhere;
    }
    #menu #nav li li.sfHover > a,
    #menu #nav li li > a:is(:hover, :focus-visible) {
        background-color: #fff7ec !important;
    }
    #menu #nav li li:is(.active, .current) > a,
    #menu #nav li li:is(.active, .current) > a small {
        color: var(--ps-header-active) !important;
    }
    #menu #nav li li > a:focus-visible {
        outline: 2px solid var(--ps-header-brown);
        outline-offset: -2px;
    }
    #menu #nav li li > a .sf-sub-indicator {
        border-left-color: currentColor !important;
    }
}

@media (max-width: 979px) {
    /* Keep the compact accordion, painting only its current and hover rows. */
    #menu .ps-mobile-tree .ps-mobile-row > .ps-mobile-label:is(:hover, [aria-current="page"]) {
        background-color: var(--ps-header-active);
        color: #fff;
    }
    #menu .ps-mobile-tree .ps-mobile-label:focus-visible {
        outline: 2px solid var(--ps-header-brown);
        outline-offset: -2px;
    }
}

/* PS-DESIGN-02B: one responsive scale for real page H1s. */
body {
    --ps-page-h1: clamp(26px, calc(24px + 0.7vw), 30px);
}
@media (min-width: 768px) {
    body { --ps-page-h1: clamp(30px, calc(16px + 1.8vw), 34px); }
}
@media (min-width: 980px) {
    body { --ps-page-h1: clamp(34px, calc(24px + 1vw), 38px); }
}
@media (min-width: 1366px) {
    body { --ps-page-h1: clamp(38px, calc(28px + 0.75vw), 42px); }
}

/* A single size declaration also covers headings carrying editor inline sizes. */
body:not(.ps-ask-component) h1 {
    font-size: var(--ps-page-h1) !important;
    font-weight: 600 !important;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* PS-DESIGN-02C: regroup shared product cards across server-generated rows. */
.browse-view:has(> .row-fluid > .product > .spacer > .h-pr-details) {
    --ps-browse-columns: 1;
    display: grid;
    grid-template-columns: repeat(var(--ps-browse-columns), minmax(0, 1fr));
    column-gap: clamp(12px, 1.6vw, 22px);
    min-width: 0;

    &::before, &::after { display: none; }

    & > * { grid-column: 1 / -1; min-width: 0; }
    & > .horizontal-separator:has(+ .row-fluid > .product) { display: none; }

    & > .row-fluid:has(> .product > .spacer > .h-pr-details) {
        display: contents;

        &::before, &::after, & > .clear { display: none; }
        & > .product {
            grid-column: auto;
            grid-row: auto;
            float: none;
            width: auto;
            min-width: 0;
            margin-inline: 0;
        }
        & > .product > .spacer { height: auto; }
    }

    @media (min-width: 768px) { --ps-browse-columns: 2; }
    @media (min-width: 980px) { --ps-browse-columns: 3; }
}

@supports (grid-template-rows: subgrid) {
    @media (min-width: 768px) {
        /* Preserve the six Enfuse tracks, repeating them for each visual row. */
        .browse-view:has(> .row-fluid > .product > .spacer > .h-pr-details)
            > .row-fluid:has(> .product > .spacer > .h-pr-details) > .product {
            grid-column: auto;
            grid-row: span 6;
        }
    }
}

/* The second full-width footer column inherits a Bootstrap column gutter. */
#footer #footer-line > .span12 {
    margin-inline: 0;
    min-width: 0;
}

/* PS-DESIGN-03A: use the approved image's lighter left area on mobile. */
@media (max-width: 979px) {
    #top-bg {
        background-position: 15% top;
    }
}
@media (min-width: 600px) and (max-width: 979px) {
    /* Cover can otherwise fill the width exactly, leaving no room to pan. */
    #top-bg {
        background-size: 200% auto;
        background-position: 7% top;
    }
}

/* PS-DESIGN-03B: Standard payment and VM's order-access fallback share these classes. */
.vm-order-done .post_payment_payment_name {
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.vm-order-done .post_payment_payment_name :is(
    .post_payment_payment_name_title, .vmpayment_name, .vmpayment_description
) {
    display: block;
    margin-inline: 0;
    padding-inline: 0;
}
.vm-order-done .post_payment_payment_name .post_payment_payment_name_title {
    font-weight: 600;
}
.vm-order-done .post_payment_payment_name .vmpayment_name {
    margin-block: 2px 4px;
    font-weight: 700;
}
.vm-order-done .post_payment_payment_name .vmpayment_description {
    color: inherit;
    font-size: 14px;
    line-height: 1.5;
}
.vm-order-done .post_payment_payment_name small {
    font-size: 13px;
}

/* PS-DESIGN-03C: the well is the logout form itself. Retain the native form. */
.vm-order-done > #form-login.well:has(> input[name="task"][value="user.logout"]) {
    min-height: 0;
    margin-block: 16px 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow-wrap: anywhere;
}
.vm-order-done > #form-login.well:has(> input[name="task"][value="user.logout"]) + hr {
    display: none;
}

/* PS-DESIGN-03D: Fancybox uses one close control for Terms, images and cart. */
#fancybox-wrap.ps-vm-popup #fancybox-close:hover,
#fancybox-wrap.ps-vm-popup #fancybox-close:focus-visible {
    background: #783500;
    border-color: #a35d06;
    color: #fff;
}
:is(.ps-ask-question, .ps-ask-confirmation) .ps-ask-close:hover,
:is(.ps-ask-question, .ps-ask-confirmation) .ps-ask-close:focus-visible {
    background: #783500;
    border-color: #a35d06;
    color: #fff;
}
.ps-ask-close:focus-visible {
    outline: 3px solid #783500;
    outline-offset: 2px;
}

/* PS-DESIGN-03E: the email artwork is the only float reset in the footer. */
@media (max-width: 979px) {
    #bot-modules-2 #mod-custom104 p:has(img[src*="/peptide-shop-email-new.png"]) {
        clear: both;
    }
    #bot-modules-2 #mod-custom104 img[src*="/peptide-shop-email-new.png"] {
        display: block;
        float: none !important;
        width: auto;
        max-width: 100%;
        height: auto;
        margin: 5px 0 0 !important;
    }
}


/* PS-MFR-01: dynamic directory and the link below the homepage brand grid. */
.ps-mfr-directory {
    font-family: "Open Sans", Arial, sans-serif;
}
.ps-mfr-directory > h1 {
    margin-block: 0 20px;
    text-align: center;
}
.ps-mfr-directory .ps-mfr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ps-mfr-directory .ps-mfr-item {
    display: grid;
    min-width: 0;
    margin: 0;
    padding: 0;
}
.ps-mfr-directory .ps-mfr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    padding: 8px 4px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    color: #783500;
    text-align: center;
    text-decoration: none;
}
.ps-mfr-directory .ps-mfr-card:not(:has(.ps-mfr-logo)) {
    justify-content: center;
}
.ps-mfr-directory .ps-mfr-logo {
    display: grid;
    place-items: center;
    width: min(100%, 150px);
    aspect-ratio: 1;
    min-width: 0;
}
.ps-mfr-directory .ps-mfr-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Current 150px logo files include a one-pixel orange edge. */
    clip-path: inset(1%);
}
.ps-mfr-directory .ps-mfr-name {
    max-width: 100%;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.ps-mfr-directory .ps-mfr-card:hover {
    border-color: #dc913d;
    color: #783500;
}
#mod-custom217 .ps-all-manufacturers-link:hover {
    border-color: #a35d06;
    background: #fff7ec;
    color: #783500;
}
.ps-mfr-directory .ps-mfr-card:focus-visible,
#mod-custom217 .ps-all-manufacturers-link:focus-visible {
    outline: 2px solid #783500;
    outline-offset: 2px;
}
#mod-custom217 .ps-all-manufacturers-cta {
    clear: both;
    margin: 16px 0 0;
    text-align: center;
}
#mod-custom217 .ps-all-manufacturers-link {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #dc913d;
    border-radius: 5px;
    background: #fff;
    color: #a35d06;
    font-weight: 600;
    text-decoration: none;
}
@media (min-width: 980px) {
    .ps-mfr-directory .ps-mfr-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
    .ps-mfr-directory .ps-mfr-card { padding: 12px; }
    .ps-mfr-directory .ps-mfr-name { font-size: 15px; }
}


/* PS-DESIGN-04: prose and editorial captions in light content areas. */
:is(
    .category_description,
    .manufacturer-description,
    .productdetails-view .product-description,
    .com-content-article__body,
    #newsflash-position .mod-custom,
    #main-content-handler .mod-custom
) a:any-link:not(:where(
    .btn, .button, [class*="button-"], [class*="-button"],
    .product-details, .ask-a-question, .modal, [role="button"],
    [data-toggle], [data-bs-toggle], [aria-haspopup],
    .ps-all-manufacturers-link, .ps-mfr-card, .ps-home-cta,
    nav a, .menu a, .VMmenu a, .ps-important-notice a,
    .cart-view a, .checkout-view a,
    .category_description table.table-med > tbody > tr > td > p:has(> a[href] > img.cat-tablemed) ~ p > a,
    h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
    :has(img, picture, svg, video, canvas, i[class])
)) {
    /* Editorial tables have legacy !important colors and sizes. */
    color: #a35d06 !important;
    font-family: var(--ps-font-text, "Open Sans", Arial, sans-serif);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: .14em;
    overflow-wrap: anywhere;

    &:not(:where([style*="font-size" i], [style*="font:" i])) {
        font-size: max(14px, 1em);
    }

    &:is(.table-shop a, .table-med a):not(:where([style*="font-size" i], [style*="font:" i])) {
        font-size: max(14px, 1em) !important;
    }

    &:is(:hover, :focus-visible) {
        color: #783500 !important;
        text-decoration: underline;
    }

    &:focus-visible {
        outline: 2px solid #783500;
        outline-offset: 2px;
    }
}


/* PS-DESIGN-04A: text captions following linked images in category description grids. */
.category_description table.table-med > tbody > tr > td > p:has(> a[href] > img.cat-tablemed) ~ p > a:any-link:not(:where(
    .btn, .button, [class*="button-"], [class*="-button"],
    .modal, [role="button"], [data-toggle], [data-bs-toggle], [aria-haspopup],
    :has(img, picture, svg, video, canvas, i[class])
)) {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
    text-transform: uppercase;
    font-family: var(--ps-font-text, "Open Sans", Arial, sans-serif);
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: break-word;
    color: #a35d06 !important;
    text-decoration: none;

    &:hover {
        color: #783500 !important;
        text-decoration: underline;
        text-underline-offset: .14em;
    }

    &:focus-visible {
        outline: 2px solid #783500;
        outline-offset: 2px;
    }
}

/* PS-PERF-04: mobile header background. */
@media (max-width: 979px) {
    #top-bg {
        background-image: radial-gradient(ellipse clamp(140px, 25vw, 250px) 300px at 45% 8px, #ffedc9 0%, #ffe2ad 45%, #ffe2ad00 100%), linear-gradient(#ffce8a, #ffcb83);
        background-position: center top;
        background-size: 100% 100%, 100% 100%;
        background-repeat: no-repeat, no-repeat;
    }
}

/* PS-FINAL-UX-01: preserve the legacy cart icon geometry on the native button. */
#vmCartModule button#cartpanel {
    appearance: none;
    box-sizing: content-box;
    padding: 0 !important;
    margin: 0;
    border: 0;
    font-family: inherit !important;
    font-size: 0 !important;
    font-weight: inherit;
    line-height: 0;
    text-transform: none !important;
    overflow: visible;
    box-shadow: none;
    cursor: pointer;
}
#vmCartModule button#cartpanel .popover-content,
#vmCartModule button#cartpanel .total_products { display: block; }
