/* Cornellà: cartelismo local sobre la marca original, sin sustituir su logo. */
:root { --cb-brick: #a0402b; --cb-park: #2e6b40; --cb-river: #3a7ca5; --cb-iron: #5a6265; }
.cb-navigation { background: #eee5d6; border-top: 3px double var(--cb-iron); border-bottom: 3px double var(--cb-brick); }
.cb-navigation a { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.cb-navigation a::before { content: ''; width: 5px; height: 5px; border: 1px solid var(--cb-brick); position: absolute; left: -15px; top: 50%; transform: translateY(-50%) rotate(45deg); }
.cb-navigation a:first-child::before { display: none; }
.cb-hero { padding-block: 45px; background-image: radial-gradient(#a0402b12 .65px, transparent .65px); background-size: 7px 7px; }
.cb-hero__grid { grid-template-columns: 1.05fr 1fr; gap: 65px; }
.cb-hero .cb-eyebrow { color: var(--cb-brick); letter-spacing: 1.4px; }
.cb-hero h1 { font-family: 'Arial Black', Arial, Helvetica, sans-serif; font-weight: 900; font-size: clamp(42px, 4.4vw, 65px); line-height: 1.04; letter-spacing: -2.7px; }
.cb-hero h1 em { font-weight: 900; font-style: normal; }
.cb-hero__copy > p { color: #56584f; margin-top: 27px; }
.cb-hero__note .cb-dot { background: var(--cb-park); }
.cb-cornella-poster { padding: 0; border: 1px solid #cbbda7; border-radius: 0; aspect-ratio: 8 / 9; background: #ede5d4; box-shadow: 9px 9px 0 #e5dbcb; overflow: hidden; }
.cb-cornella-poster__art { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cb-cornella-poster__heading { position: absolute; top: 4.1%; left: 0; right: 0; text-align: center; font-size: clamp(9px, 1vw, 13px); color: #26231f; font-weight: 800; letter-spacing: 2px; }
.cb-cornella-poster .cb-hero__photo { position: absolute; top: 35%; left: 19%; width: 62%; height: 32%; border: 8px solid #fff; border-radius: 0; background: #fff; transform: rotate(-3deg); box-shadow: 0 5px 15px #26231f1c; }
.cb-cornella-poster .cb-hero__photo img { object-fit: cover; transform: scale(1.42); }
.cb-cornella-poster .cb-hero__label { position: absolute; top: 66%; left: 15%; width: 70%; min-height: 58px; padding: 8px 16px; line-height: 1.2; background: var(--cb-paper); border: 1px solid #d7c9b7; }
.cb-cornella-poster .cb-hero__label span { font-size: 8px; letter-spacing: .7px; color: #5a6265; }
.cb-cornella-poster .cb-hero__label strong { font-size: clamp(16px, 1.65vw, 23px); }
.cb-cornella-poster .cb-hero__label .cb-round-arrow { flex-shrink: 0; font-size: 20px; color: var(--cb-red); }
.cb-cornella-poster__caption { position: absolute; bottom: 1.8%; left: 0; width: 100%; color: #fff; text-align: center; font-size: 10px; letter-spacing: .5px; }
.cb-service-strip { background: #e8dfcd; border-block: 1px solid #c6b69d; }
.cb-service-strip b { color: #713524; }
.cb-section-heading h2 { font-weight: 600; }
.cb-categories { counter-reset: counter-category; gap: 20px; }
.cb-categories > a { counter-increment: counter-category; border-bottom: 3px double var(--cb-iron); padding-bottom: 12px; }
.cb-categories > a > div { border-radius: 3px 3px 0 0; border: 1px solid #cab59b; border-top: 4px solid var(--cb-brick); }
.cb-categories h3 { font-weight: 700; font-size: 12px; }
.cb-categories h3::before { content: '0' counter(counter-category); margin-right: 7px; font-family: Georgia, serif; font-size: 12px; color: var(--cb-brick); }
.cb-categories h3 span { margin-left: auto; padding-left: 3px; }
.cb-showcase { border-top: 5px solid var(--cb-brick); background: #eee7da; }
body article.product-miniature { border-top: 3px solid #d5b49e !important; }
/* El catálogo no tiene #content: el formulario debe apilarse también aquí. */
html body #wrapper article.product-miniature form,
html body #js-product-list article.product-miniature form { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; width: 100% !important; min-width: 0 !important; padding: 0 !important; gap: 9px !important; margin-top: 4px !important; }
.cb-packs { border: 1px solid #b2bdab; border-left: 5px solid var(--cb-park); }
.cb-story { background-color: #26231f; position: relative; border-top: 7px solid var(--cb-brick); }
.cb-story h2 em { color: #d6ac83; }
.cb-story .cb-eyebrow { color: #d6ac83; }
.cb-local-sign { margin-top: 33px; display: inline-flex; flex-direction: column; gap: 2px; color: #f8f5ed; }
.cb-local-sign > span:first-child { font-size: 34px; line-height: 1; font-weight: 900; letter-spacing: 2px; }
.cb-local-sign > span:nth-child(2) { font-size: 9px; font-weight: 700; letter-spacing: 5px; }
.cb-local-sign i { width: 155px; height: 15px; margin-top: 9px; background: url('../img/cornella-friso.svg') center bottom / 400px auto; }
.cb-story__address { border-left: 3px solid #d6ac83; padding-left: 18px; }
.cb-delivery > div { border-top: 3px double var(--cb-iron); padding-top: 20px; }
.cb-number { color: var(--cb-brick); font-weight: 700; }
.cb-contact-line { border-top-color: var(--cb-park); }
.cb-footer { position: relative; padding-top: 0; border-top: 0; }
.cb-cornella-frieze { height: clamp(65px, 9.4vw, 140px); background: url('../img/cornella-friso.svg') center bottom / max(900px, 100%) auto no-repeat; margin-bottom: 42px; }
.cb-footer__bottom { border-top: 3px double #b9ad98; }
body:not(#index) #js-product-list-header .page-title-section, body:not(#index) .page-header h1 { border-bottom: 3px double var(--cb-brick) !important; padding-bottom: 15px; }
@media (max-width: 1100px) {
  .cb-navigation .cb-container { gap: 18px; }
  .cb-navigation a { font-size: 10px; }
  .cb-navigation a::before { left: -11px; width: 4px; height: 4px; }
  .cb-hero__grid { gap: 35px; }
  .cb-cornella-poster .cb-hero__label { padding: 9px 12px; min-height: 52px; }
}
@media (max-width: 767px) {
  .cb-navigation a { font-size: 12px; }
  .cb-navigation a::before { display: none; }
  .cb-hero { padding-block: 30px 35px; }
  .cb-hero__grid { grid-template-columns: 1fr; gap: 35px; }
  .cb-hero h1 { font-size: clamp(40px, 10.8vw, 67px); letter-spacing: -2px; }
  .cb-hero .cb-eyebrow { font-size: 9px; letter-spacing: 1px; }
  .cb-hero__copy > p { margin-top: 20px; }
  .cb-cornella-poster { max-width: 480px; width: 100%; margin-inline: auto; box-shadow: 6px 6px 0 #e5dbcb; }
  .cb-cornella-poster__heading { font-size: 9px; letter-spacing: 1.2px; }
  .cb-cornella-poster .cb-hero__photo { border-width: 5px; }
  .cb-cornella-poster .cb-hero__label { left: 12%; width: 76%; padding: 8px 10px; min-height: 46px; }
  .cb-cornella-poster .cb-hero__label span { font-size: 6px; letter-spacing: .4px; }
  .cb-cornella-poster .cb-hero__label strong { font-size: clamp(15px, 4.4vw, 21px); }
  .cb-cornella-poster .cb-hero__label .cb-round-arrow { width: 28px; height: 28px; font-size: 16px; }
  .cb-cornella-poster__caption { font-size: 8px; }
  .cb-categories { gap: 18px 12px; }
  .cb-categories h3 { font-size: 11px; flex-wrap: wrap; }
  .cb-categories h3::before { font-size: 10px; margin-right: 4px; }
  .cb-categories > a { padding-bottom: 10px; }
  .cb-cornella-frieze { margin-bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
