/* DealProof Price-first system: one hierarchy for catalogue, deals and product pages. */
:root{
  --deal-red:#cf1720;
  --deal-red-dark:#a70f18;
  --saving-yellow:#ffd92e;
  --saving-yellow-dark:#d4a900;
  --cream:#fcfaf3;
  --card-border:#e5e5db;
  --soft-green:#eaf6ee;
  --shadow:0 8px 22px rgba(17,46,28,.07);
}
body{background:linear-gradient(180deg,#fff 0,#fbfbf7 100%)}
.site-header{background:#fff;box-shadow:0 1px 0 rgba(16,37,27,.08)}
.header-inner{max-width:1240px;padding:14px 24px}
.brand img{width:176px}
.media-shell{position:relative;display:grid;width:100%;height:100%;place-items:center}
.media-shell>img{display:block;max-width:100%;max-height:100%}
.media-shell>.image-placeholder{position:absolute;inset:0;place-items:center;border-radius:8px;background:linear-gradient(135deg,#edf5ef,#f9f5e9);color:var(--green);font-size:12px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.media-shell>.image-placeholder[hidden]{display:none!important}
.media-shell>.image-placeholder:not([hidden]){display:grid}

.compact-hero{margin:30px 0 42px;padding:44px 52px;border-radius:20px}
.compact-hero h1{font-size:clamp(39px,4.8vw,58px)}
.section{margin:52px 0}
.section-title h2{font-size:30px}

/* Category previews use actual tracked products instead of empty text tiles. */
.category-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.category-card{min-height:0;display:grid;grid-template-columns:86px 1fr;gap:13px;align-items:center;padding:13px;border-radius:14px;background:#fff;border-color:var(--card-border);box-shadow:0 3px 10px rgba(19,43,26,.035)}
.category-card:hover{box-shadow:var(--shadow)}
.category-card-image{display:grid;width:86px;height:82px;padding:7px;place-items:center;border:1px solid #edf0eb;border-radius:10px;background:#fbfcf8}
.category-product-image{width:100%;height:100%;object-fit:contain}
.category-card-copy{display:flex;min-width:0;flex-direction:column;align-items:flex-start}
.category-card b{font-size:16px;line-height:1.12}
.category-card-copy>span{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.3}
.category-card i{margin-top:10px;font-size:12px}

/* Product cards share one strict layout across the home page, category and search.
   The image region must never overlap the card copy. */
.product-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.catalogue-results .product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.product-card{display:flex;min-width:0;min-height:456px;flex-direction:column;overflow:hidden;border-color:var(--card-border);border-radius:15px;box-shadow:0 3px 11px rgba(19,43,26,.045);transition:transform .16s ease,box-shadow .16s ease}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.product-card-image{height:196px;min-height:196px;overflow:hidden;padding:14px;background:#fff;border-bottom-color:#edf0eb}
.product-card-image .media-shell{width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}
.product-card-image .product-image{width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}
.product-card-content{display:flex;min-height:258px;flex:1;flex-direction:column;padding:16px}
.product-card h3{display:-webkit-box;min-height:44px;overflow:hidden;margin:3px 0 8px;font-size:16px;line-height:1.34;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.product-card h3 a:hover{color:var(--green)}
.product-card .retailers{margin:0 0 12px;font-size:13px}
.price-stack{display:flex;align-items:flex-start;flex-direction:column;gap:4px;margin-top:auto}
.current-price-label{color:#6a746d;font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.price-stack strong{color:var(--deal-red);font-size:23px;line-height:1.05;letter-spacing:-.04em}
.price-stack del{color:#68736b;font-size:13px;font-weight:700;text-decoration-thickness:2px}
.price-stack .saving{padding:4px 7px;border:1px solid #f0c705;border-radius:5px;background:var(--saving-yellow);color:#201c03;font-size:12px;font-weight:900}
.product-card .text-link{margin-top:13px;font-size:14px}

/* Deals reuse the card price component rather than a second visual language. */
.deal-card{grid-template-columns:112px minmax(0,1fr) minmax(180px,.35fr);gap:20px;padding:14px 17px;border-color:var(--card-border);border-radius:15px;background:#fffdf7;box-shadow:0 3px 11px rgba(25,24,8,.04)}
.deal-card:hover{box-shadow:var(--shadow)}
.deal-image{height:92px;overflow:hidden;padding:9px;border-color:#ece7d7;background:#fff}
.deal-image .media-shell{min-width:0;min-height:0;overflow:hidden}
.deal-image .deal-product-image{width:100%;height:100%;object-fit:contain}
.deal-copy h3{font-size:17px;line-height:1.3}
.deal-card>.price-stack{align-items:flex-end;margin-top:0}
.deal-card>.price-stack strong{font-size:29px}

/* A comparison page may be green for trust, but prices always remain red. */
.lowest-box{border-color:#cfe0d4;background:#fbfffc;box-shadow:0 5px 14px rgba(23,76,40,.05)}
.lowest-badge{background:var(--soft-green);color:var(--green-dark)}
.lowest-box strong,.table-price{color:var(--deal-red)}
.best-offer{background:#f2fbf4}
.button{border-radius:8px}
.single-retailer-note{border-color:var(--card-border)}

@media(max-width:1120px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.catalogue-results .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:860px){.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.catalogue-results .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){
  .header-inner{padding:10px 16px}
  .brand img{width:142px}
  .compact-hero{padding:31px 24px}
  .category-grid,.product-grid,.catalogue-results .product-grid{grid-template-columns:1fr}
  .category-card{grid-template-columns:100px 1fr}
  .category-card-image{width:100px;height:88px}
  .product-card{display:grid;min-height:0;grid-template-columns:118px 1fr}
  .product-card-image{height:auto;min-height:150px;padding:12px;border-right:1px solid #edf0eb;border-bottom:0}
  .product-card-content{min-height:0;padding:14px}
  .product-card h3{min-height:0}
  .product-card .price-stack,.product-card .text-link{grid-column:2}
  .deal-card{grid-template-columns:82px 1fr;gap:13px}
  .deal-image{height:82px}
  .deal-card>.price-stack{grid-column:2;align-items:flex-start;border-top:1px solid #eee7d6;padding-top:10px}
}

/* Full public-site consistency: catalogue, deal, retailer and detail pages all
   share the same quiet surface, clear hierarchy and price-first emphasis. */
main{max-width:1240px;padding:0 24px}
.page-intro{max-width:760px;margin:54px 0 34px}
.page-intro h1{margin:5px 0 12px;font-size:clamp(34px,4vw,52px);letter-spacing:-.045em}
.page-intro>p:last-child{max-width:650px;color:#536159;font-size:18px;line-height:1.55}
.section-title{gap:20px;align-items:flex-end}
.section-title>span{color:#526259;font-size:14px;font-weight:700}

/* Keep navigation usable on smaller screens instead of hiding it entirely. */
@media(max-width:1000px){
  .header-inner{flex-wrap:wrap;gap:10px 16px}
  .header-search{display:flex;order:3;max-width:none;flex:1 0 min(100%,520px)}
  .site-header nav{display:flex;order:4;width:100%;padding:2px 0 0;overflow-x:auto;gap:20px;white-space:nowrap}
  .site-header nav a{padding:9px 0;font-size:14px}
}

/* Retailer directory: keep it informational rather than pretending to be a
   marketplace tile. */
.retailer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0 0 64px}
.retailer-card{position:relative;min-height:230px;padding:28px 25px;border:1px solid var(--card-border);border-radius:16px;background:#fff;box-shadow:0 3px 12px rgba(19,43,26,.04)}
.retailer-card:hover{box-shadow:var(--shadow)}
.retailer-card .retailer-mark{display:grid;width:38px;height:38px;margin-bottom:15px;place-items:center;border-radius:11px;background:var(--soft-green);color:var(--green-dark);font-size:17px;font-weight:900}
.retailer-card h2{margin:4px 0 10px;font-size:23px;line-height:1.15}
.retailer-card>p:not(.eyebrow){max-width:310px;color:#5d685f;line-height:1.48}
.retailer-card .text-link{position:absolute;bottom:25px;left:25px}

/* Product detail hierarchy. The photo lives in a bounded panel; offer evidence
   is a separate surface and red is reserved for a price. */
.breadcrumb{max-width:1240px;margin:28px 0 22px;color:#6b756e;font-size:13px}
.product-hero{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(300px,1.15fr) minmax(250px,.72fr);gap:36px;align-items:stretch;padding:30px;border:1px solid var(--card-border);border-radius:20px;background:#fff;box-shadow:0 5px 18px rgba(19,43,26,.035)}
.product-visual{display:grid;min-height:365px;padding:24px;place-items:center;overflow:hidden;border:1px solid #edf0eb;border-radius:15px;background:linear-gradient(145deg,#fff,#f8faf6)}
.product-visual .media-shell{width:100%;height:100%;min-width:0;min-height:0;overflow:hidden}
.product-page-image{width:100%;height:100%;object-fit:contain}
.product-summary{align-self:center;min-width:0;padding:8px 0}
.product-summary h1{margin:6px 0 22px;font-size:clamp(32px,3.5vw,48px);line-height:1.04;letter-spacing:-.045em}
.product-summary dl{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 20px}
.product-summary dl>div{padding:8px 10px;border:1px solid #edf0eb;border-radius:8px;background:#fafcf9}
.product-summary dt{margin-bottom:3px;color:#78847c;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.product-summary dd{margin:0;color:#142d20;font-size:14px;font-weight:800}
.product-summary .retailers{max-width:390px;margin:0;color:#536259;line-height:1.48}
.lowest-box{display:flex;min-height:0;align-items:flex-start;flex-direction:column;justify-content:center;padding:24px;border:1px solid #cfe0d4;border-radius:15px}
.lowest-box>small{margin:10px 0 3px;color:#617169;font-size:13px}
.lowest-box strong{margin:0 0 6px;font-size:37px;letter-spacing:-.05em}
.lowest-box>b{font-size:16px}
.lowest-box p{margin:8px 0 18px;color:#15713d;font-size:14px;font-weight:800}
.lowest-box .button{width:100%;text-align:center}
.lowest-box .button+small{margin:9px 0 0;text-align:center}

.comparison-section,.single-retailer-note,.history-section{margin:32px 0;padding:28px;border:1px solid var(--card-border);border-radius:18px;background:#fff;box-shadow:0 3px 12px rgba(19,43,26,.03)}
.comparison-section .section-title{margin-bottom:20px}
.comparison-section .section-title h2,.single-retailer-note h2,.history-section h2{margin:4px 0 0;font-size:28px}
.table-wrap{overflow-x:auto;border:1px solid #e3e9e3;border-radius:12px}
.table-wrap table{min-width:850px;margin:0;border:0}
.table-wrap th{padding:13px 15px;background:#f5f8f4;color:#526259;font-size:11px;letter-spacing:.07em;text-transform:uppercase}
.table-wrap td{padding:15px;border-color:#e5ebe5;vertical-align:middle}
.table-wrap tr.best-offer td{background:#f1faf3}
.table-price{font-size:18px;font-weight:900;white-space:nowrap}
.freshness{display:inline-block;color:#536259;font-size:13px;white-space:nowrap}
.freshness-pending{color:#7a827c;font-style:italic}
.button-small{padding:9px 12px;white-space:nowrap}
.single-retailer-note{border-left:4px solid #15713d}
.single-retailer-note>p:last-child{max-width:650px;margin:10px 0 0;color:#59675e;line-height:1.55}
.history-section{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;background:linear-gradient(130deg,#fff,#f6fbf6)}
.history-section h2{font-size:27px}
.history-section p:last-child{max-width:680px;margin:10px 0 0;color:#59675e;line-height:1.55}
.history-status{display:inline-flex;flex:0 0 auto;align-items:center;gap:8px;padding:8px 11px;border:1px solid #cfe2d3;border-radius:999px;background:#eef8f0;color:#17633a;font-size:12px;font-weight:900}
.history-status::before{width:7px;height:7px;border-radius:50%;background:#21a154;content:""}

/* Deal rows use the same type and offer treatment as the product cards. */
.all-deals{max-width:1000px;margin-bottom:62px}
.all-deals .deal-card{margin-bottom:13px}
.deal-card .eyebrow{margin-bottom:5px}
.deal-card .price-stack del{white-space:nowrap}

/* Static trust pages stay deliberately simple, readable and on-brand. */
.info-page{max-width:820px;margin:62px auto;padding:42px;border:1px solid var(--card-border);border-radius:20px;background:#fff;box-shadow:0 5px 18px rgba(19,43,26,.035)}
.info-page h1{margin:5px 0 18px;font-size:clamp(36px,4vw,52px);letter-spacing:-.045em}
.info-page>p:last-child{max-width:690px;color:#536159;font-size:18px;line-height:1.65}

.site-footer{display:grid;grid-template-columns:1fr minmax(260px,1.3fr) auto;gap:34px;align-items:start;max-width:none;margin-top:72px;padding:34px max(24px,calc((100vw - 1240px)/2));border-top:1px solid #dde5de;background:#f4f8f4}
.site-footer strong{display:block;color:#123c24;font-size:18px}
.site-footer span{display:block;margin-top:7px;color:#5e6e63;font-size:14px;line-height:1.45}
.site-footer nav{display:flex;gap:18px;flex-wrap:wrap}
.site-footer nav a{font-size:14px;font-weight:800}

@media(max-width:860px){
  main{padding:0 18px}
  .product-hero{grid-template-columns:1fr 1fr;gap:22px;padding:22px}
  .product-visual{min-height:300px}
  .lowest-box{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:16px}
  .lowest-box .lowest-badge,.lowest-box>small:first-of-type{grid-column:1/-1}
  .lowest-box strong,.lowest-box>b,.lowest-box p{margin:0}
  .lowest-box .button{grid-column:2;grid-row:2/5;width:auto}
  .lowest-box .button+small{grid-column:2;grid-row:5;margin:0;text-align:right}
  .retailer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .site-footer{grid-template-columns:1fr 1fr;padding:30px 24px}
  .site-footer nav{grid-column:1/-1}
}
@media(max-width:680px){
  .header-search{display:flex!important;order:3;flex-basis:100%}
  .site-header nav{display:flex!important;gap:16px}
  .header-inner{padding:11px 16px}
  .page-intro{margin:36px 0 26px}
  .page-intro>p:last-child{font-size:16px}
  .retailer-grid{grid-template-columns:1fr;margin-bottom:40px}
  .retailer-card{min-height:210px}
  .breadcrumb{margin:19px 0 15px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .product-hero{grid-template-columns:1fr;padding:16px}
  .product-visual{min-height:270px;padding:18px;order:0}
  .product-summary{padding:4px 4px 0;order:1}
  .product-summary h1{font-size:33px}
  .lowest-box{display:flex;padding:20px;order:2}
  .lowest-box .button{width:100%}
  .lowest-box .button+small{margin:9px 0 0;text-align:center}
  .comparison-section,.single-retailer-note,.history-section{margin:22px 0;padding:20px}
  .history-section{display:block}
  .history-status{margin-top:15px}
  .site-footer{display:block;margin-top:42px;padding:28px 18px}
  .site-footer .footer-trust{margin-top:20px}
  .site-footer nav{margin-top:20px}
}
