/* RED MILLS Pet - product detail page (PDP) design, 28 Sep 2026.
   Generalised from the approved Go Native Puppy Salmon prototype (salmon-pdp-prototype.css).
   Markup is built by inc/product-render-v2.php from the Product page content fields.
   --sal is the range accent colour, --sal-pale the tinted background of the benefits band. */
.single-rmp_product .rmp-pdp{--sal:var(--rmp-gonative,#333F48);--sal-pale:#F1F2F3;background:#fff;color:#37383b;padding-bottom:0}
.rmp-pdp.rmp-pdp--leader{--sal:var(--rmp-leader,#036355);--sal-pale:#EDF4F3}
.rmp-pdp.rmp-pdp--winner{--sal:var(--rmp-winner,#092D4E);--sal-pale:#EEF2F6}
.rmp-pdp.rmp-pdp--engage{--sal:var(--rmp-engage,#0E004D);--sal-pale:#F0EFF6}
.rmp-pdp .sal-wrap{max-width:1240px;margin:0 auto;padding:0 28px}

/* Breadcrumb */
.rmp-pdp .sal-crumbs{padding:22px 0 10px;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#666}
.rmp-pdp .sal-crumbs a{color:#666;text-decoration:none}.rmp-pdp .sal-crumbs span{padding:0 8px;color:#aaa}

/* Hero */
.rmp-pdp .sal-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(390px,.9fr);gap:76px;align-items:start;padding:38px 0 28px}

/* Image carousel: the theme's product carousel (pages.js arrows + product-carousel.js thumbs), styled as a grey gallery box. */
.rmp-pdp .sal-carousel .rmp-carousel__track{border:1px solid #e5e1e3;border-radius:5px;background:#fafafa}
.rmp-pdp .sal-carousel .sal-slide{position:relative;aspect-ratio:1/1.02;background:#fafafa;display:grid;place-items:center;overflow:hidden}
.rmp-pdp .sal-carousel .sal-slide img{display:block;width:auto;height:auto;max-width:72%;max-height:86%;aspect-ratio:auto;object-fit:contain;background:transparent}
/* Pack shot: size and centre come from the image's measured content box (inline --fit-* variables), so
   transparent padding in the PNG does not shrink the pack. Target size is the "Pack shot size" field. */
.rmp-pdp .sal-carousel .sal-slide img.sal-pack{position:absolute;top:50%;left:50%;width:auto;max-width:none;max-height:none;height:var(--fit-h);transform:translate(var(--fit-x),var(--fit-y))}
/* Lifestyle / detail photos fill the box edge to edge. */
.rmp-pdp .sal-carousel .sal-slide img.sal-photo{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
.rmp-pdp .sal-carousel .sal-slide .rmp-ph{width:100%;height:100%;min-height:0;border-radius:0;background:#fafafa}
.rmp-pdp .sal-carousel .rmp-carousel__nav{top:0;left:0;right:0;aspect-ratio:1/1.02;box-sizing:border-box;padding:0 16px;align-items:center}
.rmp-pdp .sal-carousel .rmp-cbtn{color:var(--sal);border-radius:3px}
.rmp-pdp .sal-carousel .rmp-cbtn:hover{background:var(--sal);border-color:var(--sal);color:#fff}
.rmp-pdp .sal-carousel .rmp-cbtn:disabled{opacity:.35;transform:none;background:#fff;color:var(--sal);border-color:#e5e1e3}
.rmp-pdp .sal-carousel-thumbs{grid-template-columns:repeat(3,88px);gap:12px;margin-top:14px}
.rmp-pdp .sal-carousel .rmp-product-carousel__thumb{position:relative;overflow:hidden;border:1px solid #ddd4d7;border-radius:3px;background:#fff}
.rmp-pdp .sal-carousel .rmp-product-carousel__thumb[aria-current="true"]{border:2px solid var(--sal)}
.rmp-pdp .sal-carousel .rmp-product-carousel__thumb img{padding:6px;box-sizing:border-box}
.rmp-pdp .sal-carousel .rmp-product-carousel__thumb img.sal-pack{position:absolute;top:50%;left:50%;width:auto;max-width:none;max-height:none;padding:0;height:var(--tfit-h);transform:translate(var(--fit-x),var(--fit-y))}
.rmp-pdp .sal-carousel .rmp-product-carousel__thumb img.sal-photo{padding:0;width:100%;height:100%;object-fit:cover}
.rmp-pdp .sal-carousel .rmp-product-carousel__thumb .rmp-ph{background:#fff;padding:6px}
.rmp-pdp .sal-carousel .rmp-product-carousel__thumb .rmp-ph__label{font-size:9px;letter-spacing:.08em;color:#8c8185}

/* Hero copy */
.rmp-pdp .sal-kicker{font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--flv-txt,var(--sal));margin:7px 0 14px}
.rmp-pdp .sal-title{font-family:var(--rmp-font);font-size:30px;font-weight:700;line-height:1.06;text-transform:uppercase;letter-spacing:.005em;color:#45464a;margin:0}
.rmp-pdp .sal-rating{font-size:13px;letter-spacing:.12em;margin:19px 0}.rmp-pdp .sal-rating span{color:#777;letter-spacing:0}
.rmp-pdp .sal-title+.sal-tagline{margin-top:19px}
.rmp-pdp .sal-tagline{font-family:var(--rmp-font);font-size:16px;line-height:1.65;font-weight:400;color:#45464a;margin:0 0 25px}
.rmp-pdp .sal-glance{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid #e5dfe2;border-left:1px solid #e5dfe2;margin:0 0 22px}.rmp-pdp .sal-glance div{min-height:91px;border-right:1px solid #e5dfe2;border-bottom:1px solid #e5dfe2;padding:15px 13px;display:flex;gap:10px;align-items:center}.rmp-pdp .sal-glance p{margin:0}.rmp-pdp .sal-dot{width:26px;height:26px;flex:0 0 auto;border:2px solid var(--flv,var(--sal));border-radius:50%;position:relative}.rmp-pdp .sal-dot:after{content:"";position:absolute;width:7px;height:3px;border-left:2px solid var(--flv,var(--sal));border-bottom:2px solid var(--flv,var(--sal));transform:rotate(-45deg);left:7px;top:8px}.rmp-pdp .sal-glance strong{display:block;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#414246}.rmp-pdp .sal-glance small{display:block;font-size:13px;line-height:1.35;color:#6d6d70;margin-top:3px}
.rmp-pdp .sal-packs{font-size:14px;color:#55565a;margin:0 0 22px}.rmp-pdp .sal-packs strong{text-transform:uppercase;letter-spacing:.06em;font-size:12px;color:#414246;margin-right:4px}
.rmp-pdp .sal-actions{display:flex;gap:12px;flex-wrap:wrap}.rmp-pdp .sal-button{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 24px;border:2px solid var(--flv,var(--sal));font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;text-decoration:none;border-radius:3px;box-sizing:border-box}.rmp-pdp .sal-button--solid{background:var(--flv,var(--sal));color:var(--flv-ink,#fff)}.rmp-pdp .sal-button--outline{color:var(--flv-out,var(--sal));background:#fff}.rmp-pdp .sal-button[aria-disabled="true"]{cursor:default}

/* Benefits band */
.rmp-pdp .sal-why{background:var(--sal-pale);padding:40px 0}.rmp-pdp .sal-section-kicker{display:block;text-align:center;color:var(--flv-txt,var(--sal));font-size:12px;letter-spacing:.17em;text-transform:uppercase;font-weight:700;margin-bottom:10px}.rmp-pdp h2.sal-section-title{text-align:center;text-transform:uppercase;margin:0 0 32px}.rmp-pdp .sal-columns{display:grid;grid-template-columns:1fr 1fr;gap:25px}.rmp-pdp .sal-columns--single{grid-template-columns:1fr}.rmp-pdp .sal-panel{background:#fff;border-radius:5px;padding:28px 30px;border-top:4px solid var(--flv,var(--sal))}.rmp-pdp .sal-panel h3{font-size:16px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin:0 0 16px;color:#3f4043}.rmp-pdp .sal-panel ul{list-style:none;padding:0;margin:0;display:grid;gap:11px}.rmp-pdp .sal-panel li{font-size:15px;line-height:1.45;padding-left:19px;position:relative}.rmp-pdp .sal-panel li:before{content:"";position:absolute;left:0;top:.52em;width:7px;height:7px;border:2px solid var(--sal);border-radius:50%}

/* Product information tabs */
.rmp-pdp .sal-data{padding:40px 0 28px}.rmp-pdp .sal-tabs{display:flex;border-bottom:1px solid #d9d4d6;gap:5px}.rmp-pdp .sal-tab{appearance:none;border:0;background:transparent;cursor:pointer;font-family:inherit;padding:17px 22px;font-size:14px;font-weight:700;color:#56565a;text-transform:uppercase;letter-spacing:.025em}.rmp-pdp .sal-tab.is-active{background:var(--flv,var(--sal));color:var(--flv-ink,#fff)}.rmp-pdp .sal-tab-panel{border:1px solid #dedbdd;border-top:0;padding:35px 38px}.rmp-pdp .sal-tab-panel[hidden]{display:none}.rmp-pdp .sal-tab-panel h3{font-size:20px;margin:0 0 18px;color:#3f4043}.rmp-pdp .sal-tab-panel p{font-size:15px;line-height:1.6}.rmp-pdp .sal-table{width:100%;border-collapse:collapse;font-size:15px}.rmp-pdp .sal-table th,.rmp-pdp .sal-table td{text-align:left;padding:14px 12px;border-bottom:1px solid #e4e1e2}.rmp-pdp .sal-table th{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#555}.rmp-pdp .sal-table td:last-child,.rmp-pdp .sal-table th:last-child{text-align:right}.rmp-pdp .sal-data-note{font-size:14px;color:#68686b;margin:18px 0 0}.rmp-pdp .sal-tab-panel p.sal-data-note{font-size:14px}.rmp-pdp .sal-table td[colspan],.rmp-pdp .sal-table th:only-child{text-align:left;line-height:1.6}

/* You may also like */
.rmp-pdp .sal-related{background:#f5f5f5;padding:40px 0 62px}.rmp-pdp .sal-related-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}.rmp-pdp .sal-related-head .sal-section-kicker{text-align:left}.rmp-pdp .sal-related-head h2{text-transform:uppercase;margin:0}.rmp-pdp .sal-related-link{color:var(--sal);font-weight:700;text-decoration:none;font-size:14px;white-space:nowrap}.rmp-pdp .sal-products{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.rmp-pdp .sal-product-card{display:block;background:#fff;padding:18px;border-radius:4px;color:inherit;text-decoration:none}.rmp-pdp .sal-card-image{height:190px;background:#fafafa;display:grid;place-items:center}.rmp-pdp .sal-card-image img{max-height:170px;max-width:90%;width:auto;height:auto}.rmp-pdp .sal-product-card h3{font-size:16px;margin:16px 0 5px;color:#3f4043}.rmp-pdp .sal-product-card p{font-size:14px;color:#6c6d70;margin:0}

/* Main pack shot 10% smaller (Ava, 12 Oct 2026). Still centred: the
   translate is a % of the image's own size. Thumbnails unchanged.
   Rollback: delete this rule. */
.rmp-pdp .sal-carousel .sal-slide img.sal-pack{height:calc(var(--fit-h) * .9)}
/* Gallery box capped at 564px tall on every PDP (Ava, 12 Oct 2026): its bottom
   lines up with the buttons; width unchanged, pack scales with the box (its
   height is a % of the box), arrows stay centred. Only bites above ~1280px
   (narrower boxes are already shorter). Rollback: delete this rule. */
/* The arrow bar is sized with a container query, not max-height: max-height
   plus aspect-ratio narrowed it, pulling the right arrow onto the pack. */
.rmp-pdp .sal-carousel{container-type:inline-size}
@media (min-width:801px){
.rmp-pdp .sal-carousel .sal-slide{max-height:564px}
.rmp-pdp .sal-carousel .rmp-carousel__nav{aspect-ratio:auto;height:min(564px,100cqw * 1.02)}
}
/* Keep the pack clear of the arrows (Ava, 12 Oct 2026): each arrow takes
   16px inset + 38px button, plus a 14px gap = 68px a side. Wide packs (e.g.
   bars) in narrow boxes shrink so their visible width fits 100cqw - 136px;
   --fit-vw (from PHP) is visible width per unit of image height. */
.rmp-pdp .sal-carousel .sal-slide img.sal-pack{height:min(calc(var(--fit-h) * .9), calc((100cqw - 136px) / var(--fit-vw, .01)))}

/* Section headings match the product title. */
.rmp-pdp h2.sal-section-title,.rmp-pdp .sal-related-head h2{font-family:var(--rmp-font);font-size:30px;font-weight:700;line-height:1.06;letter-spacing:.005em;color:#45464a}

@media(max-width:800px){.rmp-pdp .sal-wrap{padding:0 20px}.rmp-pdp .sal-hero{grid-template-columns:1fr;gap:30px;padding-top:20px}.rmp-pdp .sal-title,.rmp-pdp h2.sal-section-title,.rmp-pdp .sal-related-head h2{font-size:29px}.rmp-pdp .sal-columns{grid-template-columns:1fr}.rmp-pdp .sal-products{grid-template-columns:1fr}.rmp-pdp .sal-related-head{flex-wrap:wrap}.rmp-pdp .sal-tabs{overflow-x:auto}.rmp-pdp .sal-tab{white-space:nowrap;padding:14px}.rmp-pdp .sal-tab-panel{padding:26px 20px}}
