/* Rules shared by both layouts, plus the pages the mockup did not have. */
[hidden] { display: none !important; }

/* Links that take the place of the mockup's buttons */
a.media, a.btile, a.own, a.rtile, .cbody a, .crumbs a, .ghead a { color: inherit; text-decoration: none; }
a.media { cursor: pointer; }
a.own { color: var(--on-band); }
.ghead h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Room above the footer so the skyline never covers content */
body.catalog-page main { padding-bottom: 96px; }

/* Page head and breadcrumbs for brand, category and product pages */
.page-head { padding-block: clamp(24px, 4vw, 48px) 8px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.page-head .lede { margin-top: 12px; color: var(--rice-dim); max-width: 62ch; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: end; }
.page-head-media { width: min(100%, 300px); border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: 0 10px 30px rgba(20, 24, 28, .12); }
.page-head-media img { width: 100%; height: auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; margin: 0 0 14px; padding: 0; font-size: .92rem; color: var(--rice-dim); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .6; }
.crumbs a:hover { color: var(--rice); text-decoration: underline; }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-block: 8px 48px; }
.pdp-media { border-radius: 22px; overflow: hidden; background: var(--card); border: 1.5px solid var(--card-line); aspect-ratio: 1; }
.pdp-media img, .pdp-media .art { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-text { display: grid; gap: 14px; align-content: start; min-width: 0; }
.pdp-text h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.pdp-text .ne { color: var(--turmeric); font-size: 1.5rem; line-height: 1.2; }
.pdp-brand { font-weight: 600; color: var(--rice-dim); text-decoration: none; }
.pdp-brand:hover { text-decoration: underline; }
.pdp-order { display: grid; gap: 12px; padding: 18px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--card-line); }
.pdp-order .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.pdp-note { color: var(--rice-dim); font-size: .92rem; }
.related { padding-block: 8px 48px; }
.related h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 16px; }
.more-brands { padding-block: 8px 48px; }
.more-brands h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 16px; }

@media (max-width: 800px) {
  .pdp, .page-head-grid { grid-template-columns: minmax(0, 1fr); }
}
