:root {
  --cream: #f6eee1;
  --sage: #efe2cf;
  --leaf: #000000;
  --forest: #350201;
  --clay: #c01f21;
  --terracotta: #8d0308;
  --ink: #000000;
  --muted: #000000;
  --card: #ffffff;
  --border: rgba(0, 0, 0, 0.2);
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --header-image: url("assets/header-image.png");
  --fingerprint-image: url("assets/fingerprint.png");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* Page-to-page transitions (cross-document view transitions; Chrome/Edge and Safari 18.2+).
   Kept deliberately calm: the header stays put, the old page fades out quickly and the new one
   fades in with no gap and no sliding. The only thing that moves is the rose photo when you open
   or leave a rose page (see "rose-photo" further down).
   <main> is its own layer so it always sits above the products-page corner rose, which simply
   fades with the rest of the page. */
@view-transition {
  navigation: auto;
}

.home-header {
  view-transition-name: site-header;
}

main {
  view-transition-name: page-content;
}

::view-transition-group(page-content),
::view-transition-group(site-header) {
  animation: none;
}

::view-transition-old(root),
::view-transition-old(page-content) {
  animation: page-fade-out 140ms ease-out both;
}

::view-transition-new(root),
::view-transition-new(page-content) {
  animation: page-fade-in 260ms ease-out 60ms both;
}

@keyframes page-fade-out {
  to { opacity: 0; }
}

@keyframes page-fade-in {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

body {
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: #FFFFFF;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  display: none;
}

body > * {
  position: relative;
  z-index: 1;
}

main {
  margin-top: -30px;
}

a,
button,
input,
select,
textarea,
label,
.menu-toggle {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: Arial, sans-serif;
  line-height: 1.1;
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  text-align: justify;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 92vw);
  margin: 0 auto;
  text-align: center;
}

.section-pad {
  padding: clamp(2.7rem, 6vw, 5.8rem) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #8E0000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
  color: var(--cream);
  overflow: hidden;
  height: 120px;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(142, 0, 0, 0.7);
  z-index: 1;
  pointer-events: none;
}

.nav-wrap {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.3rem;
  padding: 0;
  position: relative;
  z-index: 2;
}

.birthstone-regular {
  font-family: "Birthstone", cursive;
  font-weight: 400;
  font-style: normal;
}

.site-title {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
  line-height: 1;
  position: absolute;
  top: -40px;
  left: -10px;
  z-index: 2;
}

.site-title-banner {
  width: 324px;
  height: auto;
  max-height: none;
  display: block;
  object-fit: contain;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  width: 100%;
  padding-left: 340px;
  padding-right: 2rem;
  box-sizing: border-box;
}

.cart-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.5rem;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fff;
  color: #8E0000;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 2px;
}

.site-nav a {
  padding: 0.32rem 0.6rem;
  border-radius: 7px;
  font-weight: 600;
}

.site-nav a.active,
.site-nav a:hover {
  background: rgba(27, 6, 6, 0.16);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.3rem;
  position: absolute;
  top: 1.1rem;
  right: 0;
}

.menu-toggle span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--cream);
  margin: 0;
}

.site-header.nav-collapsed .menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  top: 50%;
  transform: translateY(-50%);
  right: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  z-index: 12;
}

.site-header.nav-collapsed {
  overflow: visible;
}

.site-header.nav-collapsed .site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(142, 0, 0, 0.96);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1rem;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  z-index: 11;
}

.site-header.nav-collapsed .site-nav.open {
  display: flex;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.6rem;
  align-items: center;
}

.about-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
}

.hero::before {
  display: none;
}

.home-hero-copy {
  text-align: left;
}

.home-hero-copy .lead {
  margin: 0 0 1rem;
}

.home-hero-copy .lead:last-child {
  margin-bottom: 0;
}

body[data-page="cart"] .page-hero {
  background: transparent;
  padding-top: clamp(3.6rem, 7vw, 5.2rem);
  padding-bottom: clamp(2.6rem, 5vw, 3.4rem);
}

body[data-page="cart"] .page-hero .lead {
  text-align: center;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: none;
  white-space: nowrap;
}

body[data-page="cart"] .cart-content {
  padding-top: clamp(2rem, 4vw, 2.8rem);
}

body[data-page="cart"] {
  background:
    linear-gradient(90deg, #ffffff 0%, #fff9fb 64%, #ffeef5 100%);
}

body[data-page="cart"] main {
  margin-top: 0;
}

body[data-page="cart"] .home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: transparent;
  border-bottom: none;
}

body[data-page="cart"] .home-brand-logo {
  width: 200px;
}

body[data-page="cart"] .home-nav a:hover {
  color: #b5070d;
  border-bottom-color: rgba(181, 7, 13, 0.45);
}

body[data-page="cart"] .home-nav a.is-active {
  color: #b5070d;
  border-bottom-color: #b5070d;
  font-weight: 700;
}

body[data-page="cart"] .page-hero .narrow {
  width: min(900px, 92vw);
}

body[data-page="cart"] .page-hero .eyebrow {
  display: none;
}

body[data-page="cart"] .page-hero h1 {
  margin-bottom: 0.8rem;
  color: #0b0b0b;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 5.6vw, 5rem);
  line-height: 0.95;
}

body[data-page="cart"] .page-hero .lead {
  color: #2f2f2f;
  font-size: 1.06rem;
}

body[data-page="home"] .hero::before {
  inset: clamp(5.6rem, 11vw, 7.8rem) auto auto 4%;
}

body[data-page="home"] .home-hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
}

.page-hero h1,
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 0.6rem;
  color: #B30000;
}

.eyebrow {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(213, 7, 3, 0.12);
  color: #d50703;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
}

body[data-page="products"] .products-hero .lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

body[data-page="products"] .product-card p {
  display: none;
}

.info-panel,
.product-card,
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #CC0000;
}

.info-panel,
.contact-form,
.product-card {
  padding: 1.15rem;
}

.price {
  color: #CC0000;
  font-weight: 800;
}

.btn-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.66rem 1.15rem;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: #ffffff;
  color: #000000;
  border-color: rgba(0, 0, 0, 0.2);
}

.btn-outline {
  border-color: rgba(0, 0, 0, 0.2);
  color: #000000;
  background: #ffffff;
}

.availability-viewer-panel {
  color: #240303;
}

.availability-document-wrap {
  margin-top: 1rem;
}

#availabilityFrame {
  width: 100%;
  min-height: 90vh;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
}

.availability-download-row {
  margin-top: 0.85rem;
  text-align: center;
}

body[data-page="availability"] {
  background: linear-gradient(90deg, #ffffff 0%, #fff9fb 66%, #ffeef4 100%);
  font-size: 16px;
}

body[data-page="availability"] .alt-bg {
  background: transparent;
}

body[data-page="availability"] main {
  margin-top: 0;
}

body[data-page="availability"] .home-header {
  border-bottom: none;
  padding-top: 1.15rem;
  padding-bottom: 1.05rem;
}

body[data-page="availability"] .home-brand-logo {
  width: 182px;
}

body[data-page="availability"] .home-nav {
  font-size: 0.98rem;
  gap: 1.65rem;
}

body[data-page="availability"] .home-cta {
  padding: 0.62rem 1.45rem;
  font-size: 0.98rem;
}

body[data-page="availability"] .availability-hero {
  padding-top: clamp(2.25rem, 4.4vw, 3.15rem);
  padding-bottom: clamp(1.55rem, 3vw, 2.05rem);
}

body[data-page="availability"] .page-hero h1 {
  margin-bottom: 0.62rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 5.5vw, 4.15rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.01em;
}

body[data-page="availability"] .availability-title .title-main {
  color: #111111;
}

body[data-page="availability"] .availability-title .title-accent {
  color: #b1060d;
}

body[data-page="availability"] .page-hero .lead {
  max-width: 610px;
  margin-left: auto;
  margin-right: auto;
  color: #434343;
  font-size: 1.02rem;
  line-height: 1.5;
  text-align: center;
}

body[data-page="availability"] .availability-panel-section {
  padding-top: 0;
  padding-bottom: 1.3rem;
  background: transparent;
}

body[data-page="availability"] .availability-panel-wrap {
  width: min(900px, 92vw);
}

body[data-page="availability"] .availability-viewer-panel {
  padding: 1.45rem 1.4rem 1.25rem;
  border: 1px solid #e1e1e1;
  box-shadow: none;
  border-radius: 9px;
  color: #232323;
}

body[data-page="availability"] .availability-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body[data-page="availability"] .availability-viewer-panel .section-title {
  margin: 0;
  font-size: clamp(1.95rem, 2.7vw, 2.35rem);
  color: #2a2a2a;
  line-height: 1.05;
}

body[data-page="availability"] #availabilityStatus {
  margin: 0.6rem 0 0;
  color: #727272;
  font-size: 0.9rem;
  text-align: left;
}

body[data-page="availability"] .availability-download-row {
  margin: 0;
  text-align: right;
}

body[data-page="availability"] #availabilityDownloadLink {
  border-radius: 9px;
  padding: 0.64rem 1.08rem;
  border-color: #e0e0e0;
  color: #ba0000;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

body[data-page="availability"] .availability-document-wrap {
  margin-top: 1.05rem;
}

body[data-page="availability"] #availabilityFrame {
  min-height: 420px;
  border: 1px solid #dedede;
  border-radius: 6px;
}

body[data-page="availability"] .site-footnote {
  text-align: center;
  color: #8b8b8b;
  font-size: 0.95rem;
  padding: 1.2rem 1rem 2rem;
}

@media (max-width: 760px) {
  body[data-page="availability"] .availability-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  body[data-page="availability"] .availability-download-row {
    text-align: left;
  }

  body[data-page="availability"] #availabilityFrame {
    min-height: 380px;
  }
}

.availability-admin-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 0.8rem 1rem;
}

.availability-admin-panel summary {
  cursor: pointer;
  font-weight: 800;
  color: #8d0308;
}

.availability-upload-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
}

.availability-upload-form label {
  font-weight: 700;
}

.availability-upload-form input[type="password"],
.availability-upload-form input[type="file"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.58rem 0.7rem;
}

.availability-upload-message {
  margin: 0.2rem 0 0;
  font-weight: 600;
  color: #1f5f2b;
}

.availability-upload-message.is-error {
  color: #8d0308;
}

.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cert-logos {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  margin: 2rem 0 2.5rem;
  width: 100%;
}

.cert-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.cert-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.alt-bg {
  background: #ffffff;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ticks li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
}

.toolbar {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 11px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.search-wrap input {
  min-width: 300px;
  background: #ffffff;
  color: #000000;
  border-color: rgba(0, 0, 0, 0.2);
}

.search-wrap input::placeholder {
  color: rgba(0, 0, 0, 0.55);
}

.product-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.85rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body[data-page="products"] .product-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.15rem;
  align-items: center;
}

body[data-page="products"] .product-card h3 {
  margin: 0;
  padding: 0;
  text-align: center;
}

body[data-page="products"] .product-card {
  gap: 0.55rem;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(53, 2, 1, 0.18);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: start;
}

.product-detail-media {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.8rem;
  color: #CC0000;
}

.product-detail-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.product-detail-info .lead {
  margin-top: 0;
}

.packaging-copy {
  margin: 1rem 0;
  font-weight: 600;
}

.packaging-copy p {
  margin: 0 0 0.3rem;
  text-align: left;
}

.packaging-list {
  margin: 0;
  padding-left: 1.15rem;
}

.packaging-list li {
  text-align: left;
}

.detail-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  max-width: 320px;
}

.detail-controls label {
  font-weight: 700;
  margin-top: 0.45rem;
}

.order-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.qty-control button {
  border: 0;
  min-width: 2.2rem;
  height: 2.2rem;
  font-size: 1.2rem;
  font-weight: 800;
  background: transparent;
  color: var(--forest);
}

.qty-control span {
  min-width: 2.2rem;
  text-align: center;
  font-weight: 700;
}

.selection-summary {
  margin-top: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.next-flower-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  font-weight: 800;
  color: var(--forest);
}

.next-flower-link:hover {
  transform: translateY(-1px);
}

.detail-nav-row {
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  grid-column: 1 / -1;
  width: 100%;
  flex-wrap: nowrap;
}

body.product-detail-page .detail-nav-row {
  margin-top: 0;
  transform: translateY(-2rem);
}

.detail-nav-row .next-flower-link {
  margin-top: 0;
}

#nextFlowerBtn {
  margin-left: auto;
  text-align: right;
}

.delivery-notes {
  margin-top: 1rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.delivery-notes p {
  margin: 0.2rem 0;
  text-align: left;
  font-weight: 600;
}

body.product-detail-page {
  background: linear-gradient(90deg, #ffffff 0%, #fff9fb 64%, #ffeef5 100%);
  overflow: hidden;
  height: 100vh;
}

body.product-detail-page main {
  margin-top: 0;
  height: calc(100vh - 90px);
}

body.product-detail-page .home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, #ffffff 0%, #fff9fb 64%, #ffeef5 100%);
  border-bottom: none;
}

body.product-detail-page .product-detail-section {
  background: transparent;
  height: 100%;
  padding-top: clamp(0.7rem, 1.8vw, 1.1rem);
  padding-bottom: clamp(0.6rem, 1.6vw, 1rem);
}

body.product-detail-page .product-detail-layout {
  height: 100%;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
  grid-template-rows: auto 1fr auto;
  align-content: start;
  gap: clamp(1rem, 2.6vw, 2rem);
}

body.product-detail-page .product-detail-media {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(20, 14, 14, 0.08);
  padding: 0.45rem;
}

body.product-detail-page .product-detail-media img {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  object-fit: contain;
  background: #ffffff;
  max-height: min(48vh, 520px);
}

body.product-detail-page .detail-kicker {
  margin: 0 0 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c91b1d;
  font-weight: 800;
  font-size: 0.72rem;
}

body.product-detail-page .detail-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #c91b1d;
}

body.product-detail-page .product-detail-info h1 {
  margin-bottom: 0.55rem;
  color: #121212;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.25rem, 3.8vw, 3.3rem);
  line-height: 0.95;
}

body.product-detail-page .back-to-roses-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(233, 78, 78, 0.45);
  border-radius: 999px;
  background: #ffffff;
  color: #e13232;
  font-weight: 800;
}

body.product-detail-page .product-detail-layout > .back-to-roses-link {
  grid-column: 1 / -1;
  justify-self: start;
  margin-bottom: 0.1rem;
}

body.product-detail-page .back-to-roses-link:hover {
  transform: translateY(-1px);
}

body.product-detail-page .packaging-copy {
  margin: 0 0 0.6rem;
  color: #1f1f1f;
}

body.product-detail-page .packaging-list li {
  margin-bottom: 0.24rem;
}

body.product-detail-page .detail-controls {
  max-width: 100%;
  gap: 0.2rem;
}

body.product-detail-page .detail-controls label {
  margin-top: 0.52rem;
  color: #1d1d1d;
  font-weight: 700;
}

body.product-detail-page .order-row {
  margin-top: 0.65rem;
}

body.product-detail-page .qty-control {
  border-color: rgba(0, 0, 0, 0.16);
  min-height: 42px;
}

body.product-detail-page .qty-control button {
  color: #c91b1d;
}

body.product-detail-page #addBoxBtn {
  background: #c10000;
  color: #ffffff;
  border-color: #c10000;
  min-height: 42px;
  padding: 0.6rem 1.15rem;
}

body.product-detail-page .selection-summary {
  color: #2e2e2e;
  font-weight: 700;
  margin-top: 0.55rem;
}

body.product-detail-page .delivery-notes {
  margin-top: 0.6rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.product-detail-page .next-flower-link {
  border-color: rgba(233, 78, 78, 0.45);
  color: #e13232;
  background: #ffffff;
}

body.order-details-page {
  background: linear-gradient(90deg, #ffffff 0%, #fff9fb 64%, #ffeef5 100%);
}

body.order-details-page main {
  margin-top: 0;
}

body.order-details-page .home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, #ffffff 0%, #fff9fb 64%, #ffeef5 100%);
  border-bottom: none;
}

body.order-details-page .page-hero {
  background: transparent;
  padding-top: clamp(1.6rem, 3.6vw, 2.6rem);
  padding-bottom: clamp(1rem, 2.4vw, 1.6rem);
}

body.order-details-page .page-hero .narrow {
  width: min(920px, 92vw);
}

body.order-details-page .order-kicker {
  margin: 0 0 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c91b1d;
  font-weight: 800;
  font-size: 0.72rem;
}

body.order-details-page .order-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #c91b1d;
}

body.order-details-page .order-display {
  margin: 0 0 0.8rem;
  color: #121212;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 5.8vw, 4.8rem);
  line-height: 0.95;
}

body.order-details-page .order-display span {
  color: #c91b1d;
}

body.order-details-page .page-hero .lead {
  max-width: 46ch;
  color: #2f2f2f;
  font-size: 1.03rem;
  line-height: 1.6;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

body.order-details-page .checkout-content {
  background: transparent;
  padding-top: clamp(0.85rem, 2vw, 1.3rem);
  padding-bottom: clamp(2.4rem, 4.7vw, 3.6rem);
}

body.order-details-page .checkout-grid {
  grid-template-columns: minmax(300px, 0.92fr) minmax(470px, 1.08fr);
  gap: clamp(1.15rem, 2.4vw, 2rem);
}

body.order-details-page .checkout-grid .section-title {
  color: #121212;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  line-height: 0.94;
  margin-bottom: 0.7rem;
}

body.order-details-page .selected-products-panel {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(20, 14, 14, 0.07);
  padding: 1rem;
}

body.order-details-page .selected-products-panel .section-title {
  margin-bottom: 0.9rem;
}

body.order-details-page .selected-products-panel .cart-items {
  gap: 0.72rem;
}

body.order-details-page .selected-products-panel .cart-item-card {
  grid-template-columns: 84px 1fr;
  gap: 0.75rem;
  background: #fff8fa;
  border: 1px solid rgba(200, 0, 0, 0.1);
  border-radius: 13px;
  box-shadow: none;
  color: #1f1f1f;
  padding: 0.72rem;
}

body.order-details-page .selected-products-panel .cart-item-image {
  width: 84px;
  border: 0;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
}

body.order-details-page .selected-products-panel .cart-item-copy h3 {
  font-size: 0.96rem;
  margin-bottom: 0.26rem;
}

body.order-details-page .selected-products-panel .cart-item-copy p {
  color: #3c3c3c;
  font-size: 0.84rem;
  line-height: 1.35;
}

body.order-details-page #deliveryForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(20, 14, 14, 0.07);
  padding: 1rem;
  gap: 0.72rem 0.78rem;
}

body.order-details-page #deliveryForm .order-form-title {
  grid-column: 1 / -1;
  margin-bottom: 0.2rem;
  color: #121212;
}

body.order-details-page #deliveryForm .order-field {
  display: grid;
  gap: 0.3rem;
}

body.order-details-page #deliveryForm .order-field-wide {
  grid-column: 1 / -1;
}

body.order-details-page #deliveryForm #deliveryMessage,
body.order-details-page #deliveryForm .checkout-next-row {
  grid-column: 1 / -1;
}

body.order-details-page #deliveryForm label {
  color: #b51618;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

body.order-details-page #deliveryForm input,
body.order-details-page #deliveryForm select {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 9px;
  background: #ffffff;
  color: #171717;
  min-height: 42px;
  padding: 0 0.72rem;
  font-size: 0.92rem;
}

body.order-details-page #deliveryMessage {
  display: none;
}

body.order-details-page #deliveryForm .checkout-next-row {
  margin-top: 0.22rem;
}

body.order-details-page #deliveryForm label.legal-check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 0.72rem;
  margin-top: 0.06rem;
  padding: 0.76rem 0.82rem;
  border: 1px solid rgba(193, 0, 0, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff9fa 0%, #ffffff 100%);
  color: #2a2a2a;
  font-size: 0.89rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
}

body.order-details-page #deliveryForm .legal-check-row input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 0.09rem;
  padding: 0;
  border: 1.5px solid #970408;
  border-radius: 5px;
  background: #ffffff;
  position: relative;
}

body.order-details-page #deliveryForm .legal-check-row input[type="checkbox"]:checked {
  background: #c10000;
  border-color: #c10000;
}

body.order-details-page #deliveryForm .legal-check-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

body.order-details-page #deliveryForm .legal-check-row input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(193, 0, 0, 0.38);
  outline-offset: 2px;
}

body.order-details-page #deliveryForm .legal-check-copy {
  display: block;
  text-transform: none;
}

body.order-details-page #deliveryForm .legal-check-row a {
  color: #8d0308;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

body.order-details-page #deliveryForm .legal-check-row a:hover {
  color: #c10000;
}

body.order-details-page #deliveryForm .legal-required {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.06rem 0.42rem;
  border-radius: 999px;
  background: rgba(193, 0, 0, 0.1);
  color: #8d0308;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.order-details-page #toPaymentBtn {
  min-width: 84px;
  min-height: 42px;
  padding: 0.58rem 1.16rem;
  background: #c10000;
  color: #ffffff;
  border-color: #c10000;
  box-shadow: 0 10px 24px rgba(181, 7, 13, 0.22);
}

body.order-details-page .order-confirmation {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

body.order-details-page .order-confirm-card {
  max-width: 540px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(20, 14, 14, 0.09);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.8rem);
  text-align: center;
}

body.order-details-page .order-confirm-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #c10000;
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 60px;
  margin: 0 auto 1.4rem;
}

body.order-details-page .order-confirm-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: #121212;
  margin-bottom: 0.7rem;
}

body.order-details-page .order-confirm-lead {
  color: #3c3c3c;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 40ch;
  margin: 0 auto 1.6rem;
}

body.order-details-page .order-confirm-btn {
  background: #c10000;
  color: #ffffff;
  border-color: #c10000;
  box-shadow: 0 10px 24px rgba(181, 7, 13, 0.2);
  padding: 0.7rem 1.4rem;
}

.cart-items {
  display: grid;
  gap: 0.9rem;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.85rem;
  color: #CC0000;
}

.cart-item-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.cart-item-copy h3 {
  margin: 0 0 0.2rem;
}

.cart-item-copy p {
  margin: 0;
  text-align: left;
}

.cart-summary-row {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.cart-actions {
  display: inline-flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body[data-page="cart"] .cart-content .container {
  width: min(1060px, 88vw);
}

body[data-page="cart"] .cart-items {
  gap: 1.35rem;
}

body[data-page="cart"] .cart-item-card {
  grid-template-columns: 126px 1fr auto;
  gap: 1.35rem;
  align-items: center;
  padding: 1.5rem 1.65rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 38px rgba(20, 14, 14, 0.08);
  color: #1f1f1f;
}

body[data-page="cart"] .cart-item-image {
  width: 104px;
  aspect-ratio: 1 / 1;
  border: 0;
  object-fit: contain;
}

body[data-page="cart"] .cart-item-copy h3 {
  margin: 0 0 0.5rem;
  color: #161616;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1;
}

body[data-page="cart"] .cart-item-copy p {
  margin: 0.22rem 0;
  color: #2d2d2d;
  font-size: 1rem;
}

body[data-page="cart"] .cart-item-copy p:first-of-type,
body[data-page="cart"] .cart-item-copy p:nth-of-type(2),
body[data-page="cart"] .cart-item-copy p:nth-of-type(3) {
  font-weight: 500;
}

body[data-page="cart"] .cart-remove-btn {
  min-width: 90px;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  border-color: rgba(233, 78, 78, 0.55);
  background: #ffffff;
  color: #e13232;
  font-weight: 700;
}

body[data-page="cart"] .cart-summary-row {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

body[data-page="cart"] #cartTotal {
  margin: 0;
  justify-self: center;
  color: #c91b1d;
  font-size: 1.15rem;
  font-weight: 800;
}

body[data-page="cart"] .cart-actions {
  gap: 0.8rem;
}

body[data-page="cart"] .cart-summary-row .btn,
body[data-page="cart"] .cart-actions .btn,
body[data-page="cart"] .cart-actions a.btn {
  min-height: 46px;
  padding: 0.82rem 1.45rem;
}

body[data-page="cart"] .cart-summary-row .btn-outline,
body[data-page="cart"] .cart-actions .btn-outline {
  border-color: rgba(233, 78, 78, 0.45);
  color: #e13232;
  background: #ffffff;
  box-shadow: none;
}

body[data-page="cart"] .cart-summary-row .btn-solid,
body[data-page="cart"] .cart-actions .btn-solid {
  background: #b5070d;
  color: #ffffff;
  border-color: #b5070d;
  box-shadow: 0 10px 24px rgba(181, 7, 13, 0.22);
}

body[data-page="cart"] #cartEmptyState {
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 38px rgba(20, 14, 14, 0.08);
  color: #1f1f1f;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: 1rem;
  align-items: start;
}

.checkout-next-row {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0;
  font-weight: 700;
}

.pay-option input {
  width: auto;
}

.product-pagination {
  margin-top: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.page-indicator {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.page-jump-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.page-jump-btn {
  min-width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #000000;
  font-weight: 800;
  cursor: pointer;
}

.page-jump-btn:hover {
  transform: translateY(-1px);
}

.page-jump-btn.is-active {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.32);
  color: #000000;
}

.page-ellipsis {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
}

body[data-page="home"]::before {
  display: none;
}

body[data-page="home"] main {
  margin-top: 0;
}

body[data-page="home"] {
  overflow: hidden;
  height: 100vh;
}

.home-shell {
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(90deg, #ffffff 0%, #fffafa 58%, #ffe4ef 100%);
}

.home-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 20;
  width: 100%;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  padding-top: 1.1rem;
}

.home-brand {
  display: inline-flex;
  align-items: center;
}

.home-brand-logo {
  width: 200px;
  height: auto;
}

.home-nav {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 1.7rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: #2a2a2a;
}

.home-nav a {
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.home-nav a:hover {
  color: #b5070d;
  border-bottom-color: rgba(181, 7, 13, 0.45);
}

.home-nav a.is-active {
  color: #b5070d;
  border-bottom-color: #b5070d;
  font-weight: 700;
}

.home-header-actions {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 1rem;
}

.home-cta {
  background: #b5070d;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.62rem 1.45rem;
  font-weight: 700;
}

.home-cart-link {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #252525;
}

.home-cart-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-cart-count {
  position: absolute;
  top: 2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #b5070d;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  padding: 0 4px;
}

.home-hero-redesign {
  height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(350px, 1.05fr);
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0 2rem;
  overflow: visible;
}

.home-copy-col {
  max-width: 660px;
  align-self: flex-start;
  padding-top: clamp(2.5rem, 8vh, 5rem);
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b5070d;
  font-weight: 800;
  font-size: 0.87rem;
  pointer-events: none;
  margin: 0 0 1.1rem;
  text-align: left;
}

.home-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: #b5070d;
  border-radius: 999px;
}

.home-display {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5.8vw, 5.3rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  color: #0b0b0b;
}

.home-line-main {
  white-space: nowrap;
}

.home-display .home-emphasis {
  color: #b5070d;
}

.home-subcopy {
  margin-top: 1.6rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  color: #373737;
  text-align: left;
}

.home-actions-row {
  margin-top: 1.7rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #b5070d;
  color: #ffffff;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.8rem 1.45rem;
}

.home-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.15rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  font-weight: 700;
  color: #111111;
}

.pdf-viewer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 15, 15, 0.72);
  padding: clamp(0.75rem, 3vw, 2.5rem);
  align-items: center;
  justify-content: center;
}

.pdf-viewer-overlay.is-open {
  display: flex;
}

.pdf-viewer-modal {
  width: min(920px, 100%);
  height: min(88vh, 1100px);
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.pdf-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
}

.pdf-viewer-title {
  font-weight: 700;
  color: #111111;
}

.pdf-viewer-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdf-viewer-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #b5070d;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

.pdf-viewer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  color: #111111;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.pdf-viewer-close:hover {
  background: rgba(0, 0, 0, 0.12);
}

.pdf-viewer-body {
  flex: 1;
  background: #f2f2f2;
}

.pdf-viewer-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

body.pdf-viewer-locked {
  overflow: hidden;
}

.home-image-col {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  overflow: visible;
  position: relative;
}

.home-image-col img {
  width: min(1700px, 1000vw);
  height: auto;
  object-fit: contain;
  filter: saturate(1.08) contrast(1.02) drop-shadow(0 0 40px rgba(181, 7, 13, 0.32)) drop-shadow(0 0 10px rgba(181, 7, 13, 0.18));
  /* To rotate the rose, change the deg value below (e.g. 15deg, -20deg) */
  transform: translateX(60.4%) translateY(-20%) rotate(-30deg);
  pointer-events: none;
}

body[data-page="products"] {
  background: #fff6f8;
}

body[data-page="products"] .products-corner-image .home-image-col img {
  filter: saturate(1.08) contrast(1.02);
}

body[data-page="products"] main {
  margin-top: 0;
}

body[data-page="products"] .products-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff6f8 !important;
  border-bottom: none;
  box-shadow: 0 2px 14px rgba(20, 20, 20, 0);
  transition: box-shadow 450ms ease;
}

body[data-page="products"] .products-topbar.is-scrolled {
  background: #fff6f8 !important;
  box-shadow: 0 2px 14px rgba(20, 20, 20, 0.08) !important;
}

body[data-page="products"] .home-header {
  width: 100%;
  margin: 0;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  padding-top: 1.1rem;
  padding-bottom: 0;
}

body[data-page="products"] .products-hero-redesign {
  position: relative;
  overflow: hidden;
  background: transparent;
  border-bottom: none;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  height: 280px;
  max-height: 280px;
}

body[data-page="products"] .products-hero-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0;
  height: 100%;
}

body[data-page="products"] .products-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body[data-page="products"] .products-kicker {
  margin: 0 0 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b5070d;
  font-weight: 800;
  text-align: left;
}

body[data-page="products"] .products-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #b5070d;
}

body[data-page="products"] .products-hero-redesign .products-hero-copy h1 {
  margin: 0 0 0.2rem;
  color: #0b0b0b;
  font-family: "Cormorant Garamond", serif;
  font-size: var(--title-page);
  line-height: 1;
}

body[data-page="products"] .products-hero-copy h1 span {
  color: #b5070d;
}

body[data-page="products"] .products-hero-copy h1::after {
  content: "";
  display: block;
  width: 32px;
  height: 2.5px;
  background: #b5070d;
  border-radius: 999px;
  margin-top: 0.25rem;
}

body[data-page="products"] .products-hero-copy .lead {
  margin: 0.15rem 0 0;
  max-width: 62ch;
  text-align: left;
  color: #2f2f2f;
  font-size: 0.88rem;
  line-height: 1.55;
}

body[data-page="products"] .products-hero-actions {
  margin-top: 1rem;
}

body[data-page="products"] .products-hero-actions .home-btn-primary {
  padding: 0.72rem 1.3rem;
  font-size: 0.92rem;
}

body[data-page="products"] .products-corner-image {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

body[data-page="products"] .products-corner-image .home-hero-redesign {
  display: block;
  height: auto;
  margin: 0;
  padding: 0;
}

body[data-page="products"] .products-corner-image .home-copy-col {
  display: none;
}

/* The rose has two layouts and slides between them as the window narrows:
   - wide (p = 0): drawn at its 1440px-wide size on the right, shrinking proportionally on smaller
     screens towards its bottom edge, which stays below the bottom of the window.
   - narrow (p = 1): upright, slightly wider than the window, pinned to the bottom of the window
     behind the cards with its heart just above the bottom edge (lowered on wider windows so the
     petals never reach above 45vh). The 0.893 / 0.7234 / 2.012 / 0.528 multipliers come from where
     the flower sits inside ALTAMIRA-hero.webp (about half the image width, heart at 44% / 54%).
   --products-rose-p goes from 0 at 1024px to 1 at 820px; script.js updates it live while resizing,
   and the media queries below give the same end values before the script runs. */
body[data-page="products"] {
  --products-rose-p: 0;
  --products-rose-size: 110vw;
  --rose-wide-width: min(1654.56px, 114.9vw);
  /* the bottom of the flower stays at 993px (or 40px below the window on taller screens) while it
     shrinks, so it never pulls up and leaves an empty corner at the bottom right */
  --rose-wide-col-top: calc(max(993px, 100vh + 40px) - min(825px, 57.29vw));
  --rose-wide-col-left: calc(100% - min(301px, 20.9vw));
  --rose-narrow-img-top: calc(var(--products-rose-size) * -0.7234 - min(8vh, 45vh - var(--products-rose-size) * 0.528));
  --rose-narrow-img-left: calc(var(--products-rose-size) * -0.893);
  --rose-narrow-width: calc(var(--products-rose-size) * 2.012);
}

@media (max-width: 820px) {
  body[data-page="products"] {
    --products-rose-p: 1;
  }
}

body[data-page="products"] .products-corner-image .home-image-col {
  position: absolute;
  top: calc(var(--rose-wide-col-top) + (100% - var(--rose-wide-col-top)) * var(--products-rose-p));
  left: calc(var(--rose-wide-col-left) + (50% - var(--rose-wide-col-left)) * var(--products-rose-p));
  width: 0;
  height: 0;
  margin: 0;
  display: block;
}

body[data-page="products"] .products-corner-image .home-image-col img {
  position: absolute;
  top: calc(var(--rose-narrow-img-top) * var(--products-rose-p));
  left: calc(-1 * var(--rose-wide-width) + (var(--rose-narrow-img-left) + var(--rose-wide-width)) * var(--products-rose-p));
  width: calc(var(--rose-wide-width) + (var(--rose-narrow-width) - var(--rose-wide-width)) * var(--products-rose-p));
  max-width: none;
  transform:
    translateX(calc(60.4% * (1 - var(--products-rose-p))))
    translateY(calc(-20% * (1 - var(--products-rose-p))))
    rotate(calc(-30deg * (1 - var(--products-rose-p))));
}

body[data-page="products"] .products-content {
  padding-top: clamp(1.4rem, 2.8vw, 2rem);
  padding-bottom: 3rem;
}

body[data-page="products"] .section-pad {
  padding-top: clamp(1.4rem, 2.8vw, 2rem);
  padding-bottom: 3rem;
}

/* Products page: search + colour chips toolbar and rose cards */
body[data-page="products"] {
  --rose-ink: #1d1416;
  --rose-muted: #6f5f62;
  --rose-line: #efe1e4;
  --rose-red: #b5070d;
}

.rose-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 1.6rem;
  margin-bottom: 1.4rem;
}

.rose-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.rose-field:first-child {
  flex: 0 1 280px;
}

.rose-field:last-child {
  flex: 1 1 420px;
}

.rose-field-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-ink);
}

.rose-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  height: 44px;
  padding: 0 1rem;
  border: 1px solid #e3d3d7;
  border-radius: 999px;
  background: #ffffff;
}

.rose-search:focus-within {
  border-color: var(--rose-ink);
}

.rose-search svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--rose-muted);
  stroke-width: 2;
}

.rose-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  color: var(--rose-ink);
}

.rose-search input::placeholder {
  color: var(--rose-muted);
  transition: opacity 150ms ease;
}

/* hide the example text as soon as the search box is clicked */
.rose-search input:focus::placeholder {
  opacity: 0;
}

.rose-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rose-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 1rem;
  border: 1px solid #e3d3d7;
  border-radius: 999px;
  background: #ffffff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--rose-ink);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.rose-chip:hover {
  border-color: var(--rose-ink);
}

.rose-chip.is-active {
  background: var(--rose-ink);
  border-color: var(--rose-ink);
  color: #ffffff;
}

.rose-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-block;
}

.rose-dot--red { background: #a8231f; }
.rose-dot--pink { background: #e897ad; }
.rose-dot--white { background: #ffffff; box-shadow: inset 0 0 0 1px #b9aaad; }
.rose-dot--yellow { background: #f0c330; }
.rose-dot--orange { background: #ee8a2b; }
.rose-dot--peach { background: #f4c39c; }
.rose-dot--lavender { background: #b6a6d4; }
.rose-dot--purple { background: #6b2a5b; }
.rose-dot--bicolor { background: linear-gradient(135deg, #f2a33a 50%, #c62a2a 50%); }
.rose-dot--green { background: #a3b86c; }
.rose-dot--mixed { background: conic-gradient(#e8467c 0 25%, #f0c330 0 50%, #b6a6d4 0 75%, #ee8a2b 0); }

body[data-page="products"] .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.rose-card {
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 0.9rem;
  border: 1px solid var(--rose-line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--rose-ink);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rose-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(53, 2, 1, 0.12);
}

.rose-card-media {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.rose-card-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.rose-card-name {
  margin: 0 0 0.4rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--rose-ink);
}

.rose-card-colour {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  text-align: left;
  min-height: 2.6em;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--rose-muted);
}

.rose-card-colour .rose-dot {
  margin-top: 0.3em;
}

.rose-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rose-line);
}

.rose-card-colour + .rose-card-footer {
  margin-top: 0.9rem;
}

.rose-card-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose-muted);
}

.rose-card-stem {
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--rose-ink);
}

.rose-card-arrow {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fbe8ec;
  color: var(--rose-red);
  font-size: 0.9rem;
  transition: background-color 150ms ease, color 150ms ease;
}

.rose-card:hover .rose-card-arrow {
  background: var(--rose-red);
  color: #ffffff;
}

body[data-page="products"] .product-pagination {
  margin-top: 1.8rem;
  gap: 1rem;
}

body[data-page="products"] .page-indicator {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--rose-muted);
}

.rose-load-more {
  height: 42px;
  padding: 0 1.3rem;
  border: 1px solid var(--rose-ink);
  border-radius: 999px;
  background: #ffffff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--rose-ink);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.rose-load-more:hover {
  background: var(--rose-ink);
  color: #ffffff;
}

@media (max-width: 1024px) {
  body[data-page="products"] .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-page="products"] .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .rose-field:first-child,
  .rose-field:last-child {
    flex: 1 1 100%;
  }

  /* compact toolbar on phones: the labels stay for screen readers but are hidden visually */
  .rose-toolbar {
    gap: 0.7rem;
    margin-bottom: 1rem;
  }

  .rose-field {
    gap: 0;
  }

  .rose-field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .rose-chips {
    gap: 0.4rem;
  }

  .rose-chip {
    height: 36px;
    padding: 0 0.8rem;
    font-size: 0.8rem;
  }

  .rose-card {
    padding: 0.8rem 0.8rem 0.75rem;
  }

  .rose-card-media {
    height: 120px;
    margin-bottom: 0.7rem;
  }

  .rose-card-name {
    font-size: 1.3rem;
  }

  .rose-card-colour {
    font-size: 0.74rem;
  }
}

body[data-page="about"] {
  background: linear-gradient(90deg, #ffffff 0%, #fff7fb 58%, #ffe7f1 100%);
}

body[data-page="about"] main {
  margin-top: 0;
}

body[data-page="about"] .home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, #ffffff 0%, #fff7fb 58%, #ffe7f1 100%);
  border-bottom: none;
}

body[data-page="about"] .about-hero {
  background: linear-gradient(90deg, #ffffff 0%, #fff7fb 58%, #ffe7f1 100%);
  padding-top: clamp(1.8rem, 4vw, 2.7rem);
  padding-bottom: clamp(1.25rem, 2.8vw, 1.9rem);
}

body[data-page="about"] .about-hero .container {
  text-align: center;
}

body[data-page="about"] .about-hero h1,
body[data-page="about"] .about-hero .lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

body[data-page="about"] .about-hero h1 {
  max-width: none;
  margin-bottom: 0.9rem;
  color: #121212;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 5.8vw, 4.8rem);
  line-height: 0.94;
}

body[data-page="about"] .about-display span {
  display: block;
  color: #c91b1d;
}

body[data-page="about"] .about-hero .lead {
  max-width: 44ch;
  color: #2f2f2f;
  font-size: 1.02rem;
  line-height: 1.55;
}

body[data-page="about"] .about-beliefs {
  background: linear-gradient(90deg, #ffffff 0%, #fff7fb 58%, #ffe7f1 100%);
  padding-top: clamp(1.2rem, 2.8vw, 2rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

body[data-page="about"] .alt-bg {
  background: linear-gradient(90deg, #ffffff 0%, #fff7fb 58%, #ffe7f1 100%);
}

body[data-page="about"] .about-story-grid {
  grid-template-columns: minmax(300px, 0.92fr) minmax(300px, 1.08fr);
  gap: clamp(2.4rem, 5vw, 4.5rem);
  align-items: center;
}

body[data-page="about"] .about-story-copy {
  max-width: 540px;
}

body[data-page="about"] .about-story-copy .section-title {
  margin-bottom: 1.15rem;
  color: #111111;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 0.96;
}

body[data-page="about"] .about-story-copy .section-title::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #c91b1d;
  margin-top: 0.9rem;
}

body[data-page="about"] .about-story-copy p {
  margin: 0 0 1rem;
  max-width: 54ch;
  color: #2f2f2f;
  font-size: 1rem;
  line-height: 1.9;
  text-align: left;
}

body[data-page="about"] .about-image-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(20, 14, 14, 0.08);
  padding: 0.85rem;
}

body[data-page="about"] .about-image {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border: 0;
  box-shadow: none;
}

body[data-page="contact"] .page-hero {
  background: transparent;
  padding-top: clamp(1.8rem, 4vw, 2.8rem);
  padding-bottom: clamp(1.2rem, 2.6vw, 1.8rem);
}

body[data-page="contact"] .page-hero .lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 44ch;
  color: #2f2f2f;
  font-size: 1.03rem;
  line-height: 1.6;
}

body[data-page="contact"] .contact-content {
  background: transparent;
  padding-top: clamp(1rem, 2.1vw, 1.5rem);
  padding-bottom: clamp(2.6rem, 5vw, 3.9rem);
}

body[data-page="contact"] {
  background: linear-gradient(90deg, #ffffff 0%, #fff9fb 64%, #ffeef5 100%);
}

body[data-page="contact"] main {
  margin-top: 0;
}

body[data-page="contact"] .home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, #ffffff 0%, #fff9fb 64%, #ffeef5 100%);
  border-bottom: none;
}

body[data-page="contact"] .page-hero .narrow {
  width: min(920px, 92vw);
}

body[data-page="contact"] .contact-kicker {
  margin: 0 0 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c91b1d;
  font-weight: 800;
  font-size: 0.72rem;
}

body[data-page="contact"] .contact-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #c91b1d;
}

body[data-page="contact"] .contact-display {
  margin: 0 0 0.9rem;
  color: #121212;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 5.8vw, 4.9rem);
  line-height: 0.95;
}

body[data-page="contact"] .contact-display span {
  color: #c91b1d;
}

body[data-page="contact"] .contact-form-centered {
  max-width: min(760px, 100%);
}

body[data-page="contact"] .contact-form {
  gap: 0.58rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(20, 14, 14, 0.08);
  padding: 1rem;
}

body[data-page="contact"] .contact-form label {
  color: #1c1c1c;
  font-size: 0.92rem;
  font-weight: 700;
}

body[data-page="contact"] .contact-form input,
body[data-page="contact"] .contact-form textarea {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: #1f1f1f;
}

body[data-page="contact"] .contact-form textarea {
  min-height: 118px;
}

body[data-page="contact"] .contact-form .btn {
  margin-top: 0.42rem;
  width: 100%;
  min-height: 44px;
}

body[data-page="contact"] .contact-form .btn-solid {
  background: #c10000;
  color: #ffffff;
  border-color: #c10000;
}

.contact-form {
  display: grid;
  gap: 0.65rem;
}

.contact-form-centered {
  max-width: min(640px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.contact-form label {
  font-weight: 700;
}

.check-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 500;
}

.legal-check-row {
  align-items: flex-start;
  font-weight: 600;
  line-height: 1.5;
  color: #272727;
}

.legal-check-row input {
  margin-top: 0.22rem;
}

.legal-check-row a {
  color: #8d0308;
  text-decoration: underline;
}

.check-row input {
  width: auto;
}

.form-message {
  min-height: 1.3em;
  font-size: 0.93rem;
  font-weight: 700;
}

.form-message.success {
  color: #d50703;
}

.form-message.error {
  color: #c01f21;
}

.site-footer {
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--border);
  background: #000000;
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form button {
  border: 0;
  border-radius: 10px;
  padding: 0 0.9rem;
  font-weight: 800;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
}

.copyright {
  text-align: center;
  color: var(--cream);
  margin: 1.3rem 0 0;
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
}

.cookie-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  background: #fffdf8;
  border: 1px solid rgba(53, 2, 1, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 1rem 1rem 0.95rem;
}

.cookie-banner-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: #8d0308;
}

.cookie-banner-copy {
  margin: 0.35rem 0 0;
  text-align: left;
  color: #252525;
}

.cookie-banner-copy a {
  color: #8d0308;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.legal-page {
  background: linear-gradient(180deg, #fffdf8 0%, #f7efe2 100%);
}

.legal-page main {
  margin-top: 0;
}

.legal-page .home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(90deg, #ffffff 0%, #fff9fb 64%, #ffeef5 100%);
  border-bottom: none;
}

.legal-hero {
  padding-top: clamp(3.5rem, 7vw, 5rem);
  padding-bottom: clamp(2.2rem, 4vw, 3rem);
}

.legal-kicker {
  justify-content: center;
}

.legal-display {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 5.8vw, 5rem);
  line-height: 0.95;
  margin: 0 0 0.8rem;
  color: #0b0b0b;
  text-align: center;
}

.legal-display span {
  color: #b5070d;
}

.legal-content {
  padding-top: 1rem;
}

.legal-layout {
  max-width: 880px;
}

.legal-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  padding: clamp(1.4rem, 3vw, 2.3rem);
}

.legal-card h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #8d0308;
  margin: 1.7rem 0 0.65rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: #222222;
  text-align: left;
  margin: 0 0 1rem;
}

.legal-footer {
  padding: 0 0 2.5rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.4rem;
}

.legal-links a {
  color: #8d0308;
  font-weight: 700;
  border-bottom: 1px solid rgba(141, 3, 8, 0.22);
  padding-bottom: 0.15rem;
}

.legal-links-inline {
  margin-top: 1.25rem;
}

.legal-links-footer {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.stagger-list > * {
  animation: riseIn 0.6s ease both;
}

.stagger-list > *:nth-child(2) {
  animation-delay: 0.12s;
}

.stagger-list > *:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 930px) {
  .hero-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-pad {
    padding: clamp(1.8rem, 5.5vw, 3rem) 0;
  }

  .site-header {
    height: 120px;
    overflow: hidden;
  }

  body[data-page="home"] .home-hero-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
  }

  body[data-page="home"] .home-hero-copy {
    width: min(620px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  body[data-page="home"] .home-hero-copy {
    text-align: center;
  }

  body[data-page="home"] .home-hero-copy .lead {
    margin-left: auto;
    margin-right: auto;
  }

  body[data-page="about"] .page-hero {
    padding-top: 1.6rem;
  }

  body[data-page="about"] .about-hero .lead {
    max-width: 34ch;
  }

  body[data-page="about"] .about-story-grid {
    gap: 1.6rem;
  }

  body[data-page="about"] .about-story-copy {
    max-width: 100%;
  }

  body[data-page="about"] .about-story-copy .section-title,
  body[data-page="about"] .about-story-copy p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  body[data-page="about"] .about-story-copy .section-title::after {
    margin-left: auto;
    margin-right: auto;
  }

  body[data-page="about"] .about-image-card {
    width: min(420px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  body[data-page="contact"] .contact-display {
    font-size: clamp(2.6rem, 8.2vw, 3.8rem);
  }

  body[data-page="contact"] .contact-form-centered {
    max-width: min(94vw, 760px);
  }

  body.order-details-page .checkout-grid {
    grid-template-columns: 1fr;
  }

  body.order-details-page #deliveryForm {
    grid-template-columns: 1fr;
  }

  body.order-details-page #deliveryForm input,
  body.order-details-page #deliveryForm select {
    min-height: 44px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .cart-item-card {
    grid-template-columns: 90px 1fr;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .cart-remove-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .product-pagination {
    gap: 0.6rem;
  }

  .btn,
  .page-jump-btn,
  .site-nav a {
    min-height: 44px;
  }

  .search-wrap {
    width: 100%;
  }

  .search-wrap input {
    min-width: 0;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  body[data-page="home"] .home-nav {
    display: none;
  }

  body[data-page="products"] .home-header {
    grid-template-columns: auto 1fr auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body[data-page="products"] .home-brand-logo {
    width: 200px;
  }

  body[data-page="products"] .products-hero-redesign {
    height: auto;
    max-height: none;
    overflow: hidden;
  }

  body[data-page="products"] .products-hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1.8rem 0 1.1rem;
  }

  body[data-page="products"] .products-hero-copy {
    text-align: left;
  }

  body[data-page="products"] .products-kicker,
  body[data-page="products"] .products-hero-copy .lead {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  body[data-page="products"] .products-hero-copy .lead .lead-break {
    display: none;
  }

  body[data-page="products"] .products-hero-actions {
    display: flex;
    justify-content: flex-start;
  }

  .home-hero-redesign {
    height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.4rem;
    min-height: auto;
    padding-top: 0.65rem;
    padding-bottom: 2.4rem;
  }

  .home-copy-col {
    max-width: 100%;
    padding-top: 0.35rem;
  }

  .home-subcopy {
    max-width: 60ch;
  }

  .home-image-col {
    justify-content: center;
    align-items: center;
    height: auto;
    margin-top: 0.35rem;
  }

  .home-image-col img {
    width: min(430px, 88vw);
    transform: none;
  }

  body[data-page="cart"] .page-hero .lead {
    white-space: normal;
    max-width: 40ch;
  }

  body[data-page="cart"] .cart-content .container {
    width: min(94vw, 760px);
  }

  body[data-page="cart"] .cart-item-card {
    grid-template-columns: 96px 1fr;
    align-items: start;
  }

  body[data-page="cart"] .cart-remove-btn {
    grid-column: 1 / -1;
    justify-self: end;
  }

  body[data-page="cart"] .cart-summary-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  body[data-page="cart"] .cart-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container,
  .narrow {
    width: min(100%, 94vw);
  }

  .page-hero h1,
  .hero h1 {
    font-size: clamp(1.85rem, 9.6vw, 2.45rem);
  }

  .lead {
    font-size: 1rem;
  }

  .hero::before {
    width: 88px;
    height: 88px;
  }

  .toolbar {
    margin-bottom: 0.95rem;
  }

  .product-pagination {
    flex-direction: column;
  }

  .page-jump-wrap {
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-form,
  .info-panel,
  .product-card {
    padding: 1rem;
  }

  body[data-page="home"] .home-hero-copy .lead {
    max-width: 42ch;
  }

  body::before {
    right: -262px;
    width: min(85vw, 700px);
    max-height: 100vh;
    opacity: 0.09;
  }
}

@media (max-width: 520px) {
  .section-pad {
    padding: clamp(1.35rem, 6vw, 2rem) 0;
  }

  .site-header {
    height: 120px;
    overflow: hidden;
  }

  .site-title {
    top: -40px;
    left: -10px;
  }

  .site-title-banner {
    width: 324px;
  }

  .hero::before {
    display: none;
  }

  body[data-page="home"] .home-hero-copy .lead {
    max-width: 34ch;
    margin-bottom: 0.78rem;
  }

  body[data-page="about"] .about-hero {
    padding-top: 1.1rem;
  }

  body[data-page="about"] .about-hero h1 {
    font-size: clamp(2.25rem, 11.2vw, 3rem);
  }

  body[data-page="about"] .about-hero .lead,
  body[data-page="about"] .about-story-copy p {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  body[data-page="contact"] .contact-display {
    font-size: clamp(2.25rem, 11.6vw, 3rem);
    line-height: 1;
  }

  body[data-page="contact"] .contact-kicker {
    font-size: 0.67rem;
  }

  body[data-page="contact"] .page-hero .lead {
    font-size: 0.95rem;
    max-width: 33ch;
  }

  body.order-details-page .order-display {
    font-size: clamp(2.3rem, 11.6vw, 3rem);
  }

  body.order-details-page .page-hero .lead {
    max-width: 34ch;
    font-size: 0.95rem;
  }

  body.product-detail-page .product-detail-section {
    padding-top: 1.1rem;
  }

  body.product-detail-page .product-detail-info h1 {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }

  body.product-detail-page .detail-controls {
    gap: 0.42rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 185px;
  }

  .btn {
    width: 100%;
  }

  body[data-page="products"] .product-pagination #productsLoadMoreBtn {
    width: auto;
    min-width: 180px;
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }

  .order-row {
    align-items: stretch;
  }

  .detail-nav-row {
    align-items: center;
    padding: 0;
  }

  .cart-summary-row {
    align-items: stretch;
  }

  body::before {
    right: -188px;
    width: min(90vw, 500px);
    max-height: 90vh;
    opacity: 0.07;
  }

  .home-header {
    padding-top: 0.8rem;
    gap: 0.7rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-brand-logo {
    width: 200px;
  }

  .home-header-actions {
    gap: 0.4rem;
  }

  .home-cta {
    padding: 0.56rem 0.95rem;
    font-size: 0.92rem;
  }

  .home-display {
    line-height: 0.95;
  }

  .home-subcopy {
    margin-top: 1.2rem;
  }

  .home-actions-row {
    margin-top: 1.3rem;
  }

  body[data-page="cart"] .page-hero {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  body[data-page="cart"] .page-hero h1 {
    font-size: clamp(2.55rem, 13vw, 3.4rem);
  }

  body[data-page="cart"] .cart-item-card {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 1.2rem;
  }

  body[data-page="cart"] .cart-item-image {
    width: 88px;
  }

  body[data-page="cart"] .cart-remove-btn,
  body[data-page="cart"] .cart-summary-row .btn,
  body[data-page="cart"] .cart-actions .btn,
  body[data-page="cart"] .cart-actions a.btn {
    width: 100%;
  }
}

/* ─── Hamburger button (hidden on desktop) ─────────────────────── */
.home-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  z-index: 31;
  flex-shrink: 0;
}

.home-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.home-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.home-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.home-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile nav drawer ─────────────────────────────────────────── */
.home-nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}

.home-nav-drawer.is-open {
  display: block;
}

.home-nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.home-nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(280px, 80vw);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.5rem 2rem;
  gap: 0.2rem;
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  overflow-y: auto;
}

.home-nav-drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  color: #1a1a1a;
  padding: 0.2rem 0.4rem;
  margin-bottom: 0.8rem;
}

.home-nav-drawer-panel a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.home-nav-drawer-panel a:last-child {
  border-bottom: none;
  margin-top: 0.6rem;
  color: #c10000;
}

body.nav-drawer-open {
  overflow: hidden;
}

/* ─── Mobile layout overrides ≤ 640px ───────────────────────────── */
@media (max-width: 640px) {
  .home-hamburger {
    display: flex;
  }

  .home-nav {
    display: none !important;
  }

  .home-cta {
    display: none;
  }

  .home-header {
    grid-template-columns: 1fr auto auto;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
    padding-top: 0.8rem;
    gap: 0.45rem;
  }

  .home-brand-logo {
    width: 200px;
  }

  .home-header-actions {
    gap: 0.45rem;
  }

  .home-display {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
    line-height: 1.0;
  }

  .home-subcopy {
    font-size: 0.95rem;
  }

  body[data-page="home"] .home-hero-redesign {
    padding-top: 0.45rem;
    gap: 1rem;
    padding-bottom: 0.85rem;
  }

  body[data-page="home"] .home-copy-col {
    padding-top: 0;
    position: relative;
    z-index: 2;
  }

  body[data-page="home"] .home-kicker {
    margin-bottom: 0.8rem;
    font-size: 0.66rem;
    letter-spacing: 0.09em;
  }

  body[data-page="home"] .home-display {
    font-size: clamp(2.6rem, 12vw, 3.45rem);
    line-height: 0.94;
  }

  body[data-page="home"] .home-subcopy {
    margin-top: 1rem;
    max-width: 33ch;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  body[data-page="home"] .home-actions-row {
    margin-top: 1rem;
    gap: 0.85rem;
    flex-wrap: nowrap;
  }

  body[data-page="home"] .home-btn-primary {
    padding: 0.72rem 1.25rem;
    font-size: 0.94rem;
    white-space: nowrap;
  }

  body[data-page="home"] .home-btn-text {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    font-size: 0.92rem;
    white-space: nowrap;
  }

  body[data-page="home"] .home-image-col {
    margin-top: 1rem;
    transform: translateX(-260px) translateY(-100px);
    pointer-events: none;
    position: relative;
    z-index: 1;
  }

  body[data-page="home"] .home-image-col img {
    width: 1000px;
    max-width: 1000px;
  }

  body[data-page="products"] .products-topbar {
    background: #fff6f8;
  }

  body[data-page="products"] .home-header {
    grid-template-columns: 1fr auto auto;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.85rem;
    gap: 0.55rem;
  }

  body[data-page="products"] .home-brand-logo {
    width: 200px;
  }

  body[data-page="products"] .products-hero-redesign {
    height: auto;
    max-height: none;
    padding-top: 1.45rem;
    padding-bottom: 1.25rem;
    background: transparent;
  }

  body[data-page="products"] .products-hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
    padding: 0.5rem 0 0;
  }

  body[data-page="products"] .products-hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  body[data-page="products"] .products-kicker {
    margin: 0 0 0.55rem;
    font-size: 0.64rem;
    letter-spacing: 0.09em;
    gap: 0.5rem;
  }

  body[data-page="products"] .products-kicker::before,
  body[data-page="products"] .products-kicker::after {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: #cf1f26;
    display: inline-block;
  }

  body[data-page="products"] .products-hero-redesign .products-hero-copy h1 {
    font-size: var(--title-page);
    line-height: 0.96;
    margin: 0;
  }

  body[data-page="products"] .products-hero-copy h1::after {
    display: none;
  }

  body[data-page="products"] .products-hero-copy .lead {
    margin: 0.65rem 0 0;
    max-width: none;
    text-align: left;
    font-size: 0.91rem;
    line-height: 1.5;
  }

  body[data-page="products"] .products-hero-actions {
    margin-top: 0.85rem;
  }

  body[data-page="products"] .products-content,
  body[data-page="products"] .section-pad {
    padding-top: 1rem;
    padding-bottom: 1.4rem;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .product-card {
    padding: 0.6rem;
  }

  .product-image {
    height: 160px;
  }

  body.product-detail-page .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  body.product-detail-page {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
  }

  body.product-detail-page main {
    height: auto;
    min-height: calc(100vh - 90px);
  }

  body.product-detail-page .product-detail-section,
  body.product-detail-page .product-detail-layout {
    height: auto;
  }

  body.product-detail-page .product-detail-section {
    padding-top: 0.75rem;
    padding-bottom: 1.15rem;
  }

  body.product-detail-page .product-detail-media {
    border-radius: 16px;
    padding: 0.35rem;
  }

  body.product-detail-page .product-detail-media img {
    width: 100%;
    height: min(76vw, 430px);
    max-height: none;
    border-radius: 12px;
    object-fit: contain;
  }

  body.product-detail-page .product-detail-layout > .back-to-roses-link {
    display: inline-flex;
    grid-column: 1;
    justify-self: center;
    margin: 0 0 0.45rem;
  }

  body.product-detail-page .detail-kicker {
    margin-bottom: 0.58rem;
    font-size: 0.6rem;
  }

  body.product-detail-page .product-detail-info h1 {
    margin-bottom: 0.35rem;
    font-size: clamp(2.15rem, 10.2vw, 2.8rem);
    line-height: 0.95;
  }

  body.product-detail-page .packaging-copy {
    margin: 0 0 0.45rem;
    font-size: 0.84rem;
  }

  body.product-detail-page .packaging-list li {
    font-size: 0.82rem;
    line-height: 1.35;
  }

  body.product-detail-page .detail-controls {
    gap: 0.15rem;
  }

  body.product-detail-page .detail-controls label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
  }

  body.product-detail-page .detail-controls select {
    min-height: 50px;
    font-size: 0.96rem;
  }

  body.product-detail-page .order-row {
    margin-top: 0.75rem;
    flex-wrap: nowrap;
    gap: 0.55rem;
    align-items: center;
  }

  body.product-detail-page .qty-control {
    flex: 0 0 37%;
    min-width: 0;
    min-height: 54px;
    justify-content: space-between;
  }

  body.product-detail-page .qty-control button,
  body.product-detail-page .qty-control span {
    min-width: 2.5rem;
  }

  body.product-detail-page #addBoxBtn {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 54px;
  }

  body.product-detail-page .selection-summary {
    margin-top: 0.65rem;
    font-size: 0.88rem;
  }

  body.product-detail-page .delivery-notes {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: start;
    column-gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.55rem;
  }

  body.product-detail-page .delivery-notes::before {
    content: "";
    width: 24px;
    height: 24px;
    margin-top: 0.04rem;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23de2a2a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.5' y='6.5' width='12.5' height='10.5' rx='1.5'/%3E%3Cpath d='M14 9h3.2l2.8 3v5H14z'/%3E%3Ccircle cx='7' cy='18.5' r='1.5'/%3E%3Ccircle cx='18' cy='18.5' r='1.5'/%3E%3C/svg%3E");
  }

  body.product-detail-page .delivery-notes p {
    grid-column: 2;
    margin: 0.05rem 0;
    font-size: 0.79rem;
    line-height: 1.35;
  }

  body.product-detail-page .detail-nav-row {
    margin-top: 0.7rem;
    transform: none;
    gap: 0.55rem;
    padding-bottom: 0.1rem;
  }

  body.product-detail-page .detail-nav-row .next-flower-link {
    margin-top: 0;
    flex: 1 1 0;
    min-width: 0;
    min-height: 64px;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    padding: 0.62rem 0.68rem;
    font-size: 0.88rem;
  }

  body[data-page="cart"] .cart-item-card {
    grid-template-columns: 80px 1fr;
    gap: 0.7rem;
    padding: 0.9rem;
  }

  body[data-page="cart"] .cart-item-image {
    width: 80px;
  }

  body.order-details-page #deliveryForm {
    grid-template-columns: 1fr;
  }

  body.order-details-page #deliveryForm .order-field,
  body.order-details-page #deliveryForm .order-field-wide,
  body.order-details-page #deliveryForm .order-form-title,
  body.order-details-page #deliveryForm #deliveryMessage,
  body.order-details-page #deliveryForm .checkout-next-row {
    grid-column: 1;
  }

  body[data-page="about"] .about-image-card {
    display: none;
  }

  body[data-page="about"] .about-story-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.15rem;
  }

  body[data-page="about"] {
    background: #ffffff;
  }

  body[data-page="about"] .home-header,
  body[data-page="about"] .about-hero {
    background: linear-gradient(90deg, #ffffff 0%, #fff7fb 58%, #ffe7f1 100%);
  }

  body[data-page="about"] .about-hero {
    padding-top: 1.35rem;
    padding-bottom: 1.2rem;
  }

  body[data-page="about"] .about-hero h1.about-display {
    font-size: clamp(1.85rem, 8.8vw, 2.35rem);
    line-height: 1.04;
    white-space: nowrap;
  }

  body[data-page="about"] .about-display span {
    display: block;
    white-space: nowrap;
  }

  body[data-page="about"] .about-hero .lead {
    max-width: 30ch;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  body[data-page="about"] .about-beliefs,
  body[data-page="about"] .alt-bg {
    background: #ffffff;
  }

  body[data-page="about"] .about-story-copy {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  body[data-page="about"] .about-story-copy .section-title {
    font-size: clamp(2.35rem, 11vw, 3rem);
    margin-bottom: 0.9rem;
  }

  body[data-page="about"] .about-story-copy p {
    max-width: 34ch;
    font-size: 0.93rem;
    line-height: 1.55;
    margin-bottom: 0.85rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  body[data-page="about"] .alt-bg .section-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.92rem;
  }

  body[data-page="about"] .alt-bg .section-title::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #c91b1d;
    margin: 0.72rem auto 0;
  }

  body[data-page="about"] .cert-logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 1.1rem 0 1.5rem;
    align-items: stretch;
    justify-items: stretch;
  }

  body[data-page="about"] .cert-logo {
    width: 100%;
    height: 86px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    background: #ffffff;
  }

  body[data-page="about"] .cert-logo img {
    width: 62px;
    height: 62px;
  }

  body[data-page="about"] .cert-logo:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.3rem);
    max-width: 190px;
    height: 86px;
    border-radius: 14px;
    margin-top: 0.1rem;
  }

  body[data-page="about"] .cert-logo:last-child img {
    width: 62px;
    height: 62px;
  }

  body[data-page="contact"] .contact-form-centered {
    max-width: 100%;
  }

  input, select, textarea {
    font-size: 16px;
    min-height: 46px;
  }

  textarea {
    min-height: 110px;
  }

  .checkout-next-row .btn,
  body[data-page="contact"] .contact-form .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }

  .section-pad {
    padding: clamp(1.1rem, 5vw, 1.8rem) 0;
  }

  body[data-page="about"] .about-display {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  body[data-page="contact"] .contact-display {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  body.order-details-page .order-display {
    font-size: clamp(2rem, 11vw, 2.8rem);
  }

  .cert-logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
  }

  .cert-logo {
    width: 80px;
    height: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 930px) {
  /* keep the "Showing X of Y roses" line readable on top of the rose */
  body[data-page="products"] .product-pagination .page-indicator {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
  }
}

.rose-empty {
  grid-column: 1 / -1;
  margin: 1.5rem 0;
  text-align: center;
  color: #6f5f62;
}

.rose-chip[hidden] {
  display: none;
}

.rose-chip-more {
  color: var(--rose-muted);
  border-style: dashed;
}

.rose-chip-chevron {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 0.1rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.rose-chip-chevron.is-up {
  margin-top: 3px;
  transform: rotate(-135deg);
}

/* Single rose page (product-detail.html) */
body.rose-detail-page {
  --rose-ink: #1d1416;
  --rose-muted: #6f5f62;
  --rose-line: #efe1e4;
  --rose-red: #b5070d;
  background: #fff6f8;
}

body.rose-detail-page main {
  margin-top: 0;
}

body.rose-detail-page .home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff6f8;
}

.rose-detail {
  padding: clamp(0.5rem, 2vw, 1.2rem) 0 3rem;
}

.rose-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rose-red);
  text-decoration: none;
}

.rose-detail-back:hover span {
  transform: translateX(-3px);
}

.rose-detail-back span {
  transition: transform 150ms ease;
}

.rose-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.rose-detail-media {
  aspect-ratio: 1 / 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  border: 1px solid var(--rose-line);
  border-radius: 18px;
  background: #ffffff;
}

.rose-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rose-detail-name {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--rose-ink);
}

.rose-detail-colour {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.6rem;
  font-size: 0.92rem;
  color: var(--rose-muted);
}

.rose-detail-group {
  margin: 0 0 1.4rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.rose-detail-label {
  display: block;
  margin: 0 0 0.6rem;
  padding: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-ink);
}

.rose-box-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.rose-box-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e3d3d7;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.rose-box-option:hover {
  border-color: #c9b3b8;
}

.rose-box-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rose-box-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.78rem;
  color: var(--rose-muted);
}

.rose-box-text strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rose-ink);
}

.rose-box-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.5px solid #b9aaad;
  border-radius: 50%;
  background: #ffffff;
}

.rose-box-option:has(input:checked) {
  border-color: var(--rose-red);
  box-shadow: inset 0 0 0 1px var(--rose-red);
}

.rose-box-option input:checked ~ .rose-box-check {
  border-color: var(--rose-red);
  background: var(--rose-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.rose-box-option input:focus-visible ~ .rose-box-check {
  outline: 2px solid var(--rose-red);
  outline-offset: 2px;
}

.rose-select {
  position: relative;
}

.rose-select::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 1.5px solid var(--rose-ink);
  border-bottom: 1.5px solid var(--rose-ink);
  transform: rotate(45deg);
  pointer-events: none;
}

.rose-select select {
  width: 100%;
  height: 48px;
  padding: 0 2.5rem 0 1rem;
  border: 1px solid #e3d3d7;
  border-radius: 12px;
  background: #ffffff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--rose-ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.rose-select select:focus-visible {
  outline: 2px solid var(--rose-red);
  outline-offset: 1px;
}

.rose-order-row {
  display: flex;
  gap: 0.75rem;
}

.rose-qty {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 0.3rem;
  border: 1px solid #e3d3d7;
  border-radius: 999px;
  background: #ffffff;
}

.rose-qty button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1.1rem;
  color: var(--rose-red);
  cursor: pointer;
}

.rose-qty button:hover {
  background: #fbe8ec;
}

.rose-qty span {
  min-width: 2rem;
  text-align: center;
  font-weight: 600;
  color: var(--rose-ink);
}

.rose-add-btn {
  flex: 1;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--rose-red);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.rose-add-btn:hover {
  background: #93050a;
}

.rose-add-btn:active {
  transform: scale(0.98);
}

.rose-detail-summary {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--rose-muted);
}

.rose-arrival {
  padding-top: 1.2rem;
  border-top: 1px solid var(--rose-line);
}

.rose-arrival-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: var(--rose-muted);
}

.rose-arrival-row strong {
  font-weight: 700;
  color: var(--rose-ink);
}

.rose-detail-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 2.8rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--rose-line);
}

.rose-pager-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  color: var(--rose-ink);
  text-decoration: none;
}

.rose-pager-link.is-next {
  text-align: right;
}

.rose-pager-link > span:not(.rose-pager-arrow) {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rose-pager-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose-muted);
}

.rose-pager-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
}

.rose-pager-arrow {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fbe8ec;
  color: var(--rose-red);
  transition: background-color 150ms ease, color 150ms ease;
}

.rose-pager-link:hover .rose-pager-arrow {
  background: var(--rose-red);
  color: #ffffff;
}

/* On computer screens the whole rose page fits in the window without scrolling: the page is
   exactly one screen tall and the photo card takes whatever height is left. Very short windows
   (and phones, below) keep normal scrolling so nothing gets cut off. */
@media (min-width: 761px) and (min-height: 700px) {
  /* the header plus the rose fill exactly one screen; the footer sits just below it */
  body.rose-detail-page {
    --rd-header: 151px;
  }

  body.rose-detail-page main {
    height: calc(100vh - var(--rd-header));
    height: calc(100dvh - var(--rd-header));
    min-height: 0;
    display: flex;
  }

  body.rose-detail-page .rose-detail {
    flex: 1;
    min-height: 0;
    display: flex;
    padding: 0 0 clamp(0.8rem, 2.2vh, 1.4rem);
  }

  body.rose-detail-page .rose-detail > .container {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .rose-detail-back {
    margin-bottom: clamp(0.5rem, 1.6vh, 1rem);
  }

  .rose-detail-layout {
    flex: 1;
    min-height: 0;
    align-items: stretch;
  }

  .rose-detail-media {
    aspect-ratio: auto;
    min-height: 0;
    padding: clamp(1rem, 3vh, 2rem);
  }

  .rose-detail-media img {
    max-height: 100%;
  }

  .rose-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
  }

  .rose-detail-name {
    font-size: clamp(2.2rem, 5.6vh, 3.4rem);
    margin-bottom: clamp(0.25rem, 0.8vh, 0.5rem);
  }

  .rose-detail-colour {
    margin-bottom: clamp(0.8rem, 2.4vh, 1.6rem);
  }

  .rose-detail-group {
    margin-bottom: clamp(0.7rem, 2vh, 1.4rem);
  }

  .rose-detail-label {
    margin-bottom: clamp(0.35rem, 1vh, 0.6rem);
  }

  .rose-box-option {
    padding: clamp(0.55rem, 1.4vh, 0.85rem) 1rem;
  }

  .rose-select select,
  .rose-qty,
  .rose-add-btn {
    height: clamp(42px, 5.4vh, 48px);
  }

  .rose-detail-summary {
    margin-top: clamp(0.35rem, 1vh, 0.65rem);
  }

  .rose-arrival {
    padding-top: clamp(0.7rem, 2vh, 1.2rem);
  }

  .rose-arrival-row {
    padding: clamp(0.1rem, 0.5vh, 0.3rem) 0;
  }

  .rose-detail-pager {
    flex-shrink: 0;
    margin-top: clamp(0.8rem, 2.4vh, 2rem);
    padding-top: clamp(0.6rem, 1.8vh, 1.3rem);
  }
}

/* Short laptop windows: a slightly smaller logo frees enough height for the rose page to fit */
@media (min-width: 761px) and (min-height: 700px) and (max-height: 780px) {
  body.rose-detail-page {
    --rd-header: 108px;
  }

  body.rose-detail-page .home-header {
    padding-top: 0.5rem;
  }

  body.rose-detail-page .home-brand-logo {
    width: 150px;
  }
}

@media (max-width: 760px) {
  .rose-detail-layout {
    grid-template-columns: 1fr;
  }

  .rose-detail-media {
    aspect-ratio: 1 / 0.9;
  }

  .rose-box-options {
    gap: 0.5rem;
  }

  .rose-box-option {
    padding: 0.75rem 0.8rem;
  }

  .rose-pager-name {
    font-size: 1.1rem;
  }
}

/* Contact page (contact.html) */
body.contact-page {
  --ct-ink: #1d1416;
  --ct-muted: #6f5f62;
  --ct-line: #e3d3d7;
  --ct-red: #b5070d;
  background: #fff6f8;
}

body.contact-page main {
  margin-top: 0;
}

body.contact-page .home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff6f8;
}

.ct {
  padding: clamp(1.5rem, 5vh, 3.5rem) 0 4rem;
}

.ct-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.ct-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ct-red);
}

.ct-kicker::before {
  content: "";
  width: 1.4rem;
  height: 1.5px;
  background: currentColor;
}

.ct-title {
  margin: 0 0 1.4rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 5.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  color: var(--ct-ink);
}

.ct-title span {
  display: block;
  color: var(--ct-red);
}

.ct-lead {
  max-width: 34ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ct-ink);
}

.ct-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.3rem, 3vw, 1.8rem);
  border: 1px solid #efe1e4;
  border-radius: 18px;
  background: #ffffff;
}

.ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.ct-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ct-ink);
}

.ct-field input,
.ct-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--ct-line);
  border-radius: 10px;
  background: #ffffff;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ct-ink);
  box-sizing: border-box;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.ct-field input {
  height: 46px;
}

.ct-field textarea {
  min-height: 130px;
  resize: vertical;
}

.ct-field input:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: var(--ct-ink);
  box-shadow: 0 0 0 3px rgba(29, 20, 22, 0.06);
}

.ct-field textarea::placeholder {
  color: var(--ct-muted);
}

.ct-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ct-ink);
  cursor: pointer;
}

.ct-consent input {
  width: 17px;
  height: 17px;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  accent-color: var(--ct-red);
  cursor: pointer;
}

.ct-consent a {
  font-weight: 700;
  color: var(--ct-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ct-submit {
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--ct-red);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.ct-submit:hover {
  background: #93050a;
}

.ct-submit:active {
  transform: scale(0.98);
}

@media (max-width: 860px) {
  .ct-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ct-row {
    grid-template-columns: 1fr;
  }
}

/* Legal pages: "last updated" line, lists, company details */
.legal-updated {
  margin: 0.8rem 0 0;
  font-size: 0.8rem;
  color: #6f5f62;
}

.legal-card ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.legal-card li {
  margin: 0.3rem 0;
  line-height: 1.6;
}

.legal-company,
.ct-company {
  margin: 0.4rem 0 1rem;
  font-size: 0.85rem;
  color: #6f5f62;
}

.ct-company {
  margin-top: 1.4rem;
}

/* Cart page (cart.html) */
body.cart-page {
  --cp-ink: #1d1416;
  --cp-muted: #6f5f62;
  --cp-line: #efe1e4;
  --cp-red: #b5070d;
  background: #fff6f8;
}

body.cart-page main {
  margin-top: 0;
}

body.cart-page .home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff6f8;
}

.cp {
  padding: clamp(1rem, 4vh, 2.5rem) 0 4rem;
}

.cp-title {
  margin: 0 0 0.4rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cp-ink);
}

.cp-lead {
  margin: 0 0 1.6rem;
  font-size: 0.95rem;
  color: var(--cp-ink);
}

.cp-empty {
  margin-top: 1.4rem;
  padding: clamp(2.5rem, 7vh, 4rem) 1.5rem;
  border: 1px solid var(--cp-line);
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
}

.cp-empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fbe8ec;
}

.cp-empty-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--cp-red);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cp-empty h2 {
  margin: 0 0 0.6rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cp-ink);
}

.cp-empty p {
  max-width: 30ch;
  margin: 0 auto 1.4rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--cp-ink);
}

.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--cp-red);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.cp-btn:hover {
  background: #93050a;
}

.cp-btn-block {
  display: flex;
  width: 100%;
  height: 48px;
}

.cp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 1.5rem;
  align-items: start;
}

.cp-list {
  padding: 0 1.2rem;
  border: 1px solid var(--cp-line);
  border-radius: 18px;
  background: #ffffff;
}

.cp-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.cp-item + .cp-item {
  border-top: 1px solid var(--cp-line);
}

.cp-item-image {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  object-fit: contain;
}

.cp-item-copy {
  flex: 1;
  min-width: 0;
}

.cp-item-copy h3 {
  margin: 0 0 0.15rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--cp-ink);
}

.cp-item-copy p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--cp-muted);
}

.cp-qty {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 0.2rem;
  border: 1px solid #e3d3d7;
  border-radius: 999px;
  background: #ffffff;
}

.cp-qty button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 1rem;
  color: var(--cp-red);
  cursor: pointer;
}

.cp-qty button:hover:not(:disabled) {
  background: #fbe8ec;
}

.cp-qty button:disabled {
  color: #cdbfc2;
  cursor: default;
}

.cp-qty span {
  min-width: 1.8rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cp-ink);
}

.cp-remove {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.cp-remove svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--cp-muted);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cp-remove:hover {
  background: #fbe8ec;
}

.cp-remove:hover svg {
  stroke: var(--cp-red);
}

.cp-add-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cp-red);
  text-decoration: none;
}

.cp-add-more:hover {
  text-decoration: underline;
}

.cp-summary {
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--cp-line);
  border-radius: 18px;
  background: #ffffff;
}

.cp-summary h2 {
  margin: 0 0 0.8rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cp-ink);
}

.cp-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: var(--cp-ink);
}

.cp-summary-total {
  margin-bottom: 1rem;
  border-top: 1px solid var(--cp-line);
  font-weight: 700;
}

.cp-summary-total span:last-child {
  font-size: 1.25rem;
}

.cp-summary-note {
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
  color: var(--cp-muted);
}

@media (max-width: 820px) {
  .cp-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cp-list {
    padding: 0 0.9rem;
  }

  .cp-item {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .cp-item-copy {
    flex-basis: calc(100% - 70px);
  }

  .cp-qty {
    margin-left: 70px;
  }

  .cp-remove {
    margin-left: auto;
  }
}

.cp-layout[hidden],
.cp-empty[hidden],
.cp-lead[hidden] {
  display: none;
}

/* Override older site-wide cart and paragraph rules */
body.cart-page .cp p {
  text-align: inherit;
}

body.cart-page .cp-lead {
  text-align: left;
}

body.cart-page #cartEmptyState {
  box-shadow: none;
}

body.cart-page #cartTotal {
  color: var(--cp-ink);
}

/* "View cart" shortcut next to the selection summary on the rose page */
.rose-detail-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.rose-cart-link {
  flex-shrink: 0;
  margin-top: clamp(0.35rem, 1vh, 0.65rem);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rose-red);
  text-decoration: none;
  white-space: nowrap;
}

.rose-cart-link[hidden] {
  display: none;
}

.rose-cart-link:hover {
  text-decoration: underline;
}

.rose-cart-link.is-highlighted {
  animation: cart-link-flash 1.4s ease;
}

@keyframes cart-link-flash {
  0%, 60% { background: #fbe8ec; }
  100% { background: transparent; }
}

/* Delivery details page (order-details.html) */
body.delivery-page {
  --dp-ink: #1d1416;
  --dp-muted: #6f5f62;
  --dp-line: #efe1e4;
  --dp-field: #e3d3d7;
  --dp-red: #b5070d;
  background: #fff6f8;
}

body.delivery-page main {
  margin-top: 0;
}

body.delivery-page .home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff6f8;
}

.dp {
  padding: clamp(0.8rem, 3vh, 1.8rem) 0 4rem;
}

.dp[hidden] {
  display: none;
}

.dp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dp-red);
  text-decoration: none;
}

.dp-title {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--dp-ink);
}

.dp-title span {
  color: var(--dp-red);
}

.dp-lead {
  margin: 0 0 1.6rem;
  font-size: 0.95rem;
  color: var(--dp-ink);
  text-align: left;
}

.dp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 1.5rem;
  align-items: start;
}

.dp-card,
.dp-summary {
  border: 1px solid var(--dp-line);
  border-radius: 18px;
  background: #ffffff;
}

.dp-card {
  padding: clamp(1.2rem, 3vw, 1.6rem);
}

.dp-section-title {
  margin: 0 0 0.9rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dp-ink);
}

.dp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 0.75rem;
}

.dp-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.dp-field-wide {
  grid-column: 1 / -1;
}

.dp-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dp-ink);
}

.dp-field input,
.dp-select select {
  width: 100%;
  height: 46px;
  padding: 0 0.9rem;
  border: 1px solid var(--dp-field);
  border-radius: 10px;
  background: #ffffff;
  font: inherit;
  font-size: 0.92rem;
  color: var(--dp-ink);
  box-sizing: border-box;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.dp-field input:focus,
.dp-select select:focus {
  outline: none;
  border-color: var(--dp-ink);
  box-shadow: 0 0 0 3px rgba(29, 20, 22, 0.06);
}

.dp-select {
  position: relative;
}

.dp-select::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 1.5px solid var(--dp-ink);
  border-bottom: 1.5px solid var(--dp-ink);
  transform: rotate(45deg);
  pointer-events: none;
}

.dp-select select {
  padding-right: 2.4rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.dp-select select:invalid {
  color: var(--dp-muted);
}

.dp-hint {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: var(--dp-muted);
  text-align: left;
}

.dp-divider {
  margin: 1.4rem 0;
  border: 0;
  border-top: 1px solid var(--dp-line);
}

.dp-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--dp-ink);
  cursor: pointer;
}

.dp-check input {
  width: 17px;
  height: 17px;
  margin: 0.1rem 0 0;
  flex-shrink: 0;
  accent-color: var(--dp-red);
  cursor: pointer;
}

.dp-check a {
  font-weight: 700;
  color: var(--dp-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dp-check em {
  font-style: normal;
  color: var(--dp-muted);
}

.dp-message {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dp-red);
  text-align: left;
}

.dp-message:empty {
  display: none;
}

.dp-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-top: 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--dp-red);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.dp-submit:hover:not(:disabled) {
  background: #93050a;
}

.dp-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.dp-summary {
  position: sticky;
  top: 170px;
  padding: 1.3rem 1.2rem;
}

.dp-summary h2 {
  margin: 0 0 0.8rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dp-ink);
}

.dp-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0;
}

.dp-item img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
}

.dp-item-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dp-item-copy strong {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--dp-ink);
}

.dp-item-copy span {
  font-size: 0.74rem;
  color: var(--dp-muted);
}

.dp-item-qty {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dp-ink);
  white-space: nowrap;
}

.dp-items-empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--dp-muted);
}

.dp-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.7rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--dp-line);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dp-ink);
}

.dp-summary-total span:last-child {
  font-size: 1.25rem;
}

.dp-edit {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dp-red);
  text-decoration: none;
}

.dp-edit:hover {
  text-decoration: underline;
}

.dp-done-card {
  max-width: 560px;
  margin: clamp(1rem, 6vh, 3rem) auto 0;
  padding: clamp(2rem, 6vh, 3rem) 1.5rem;
  border: 1px solid var(--dp-line);
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
}

.dp-done-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fbe8ec;
  font-size: 1.4rem;
  color: var(--dp-red);
}

.dp-done-card h1 {
  margin: 0 0 0.7rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dp-ink);
}

.dp-done-card p {
  max-width: 40ch;
  margin: 0 auto 1.4rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--dp-ink);
  text-align: center;
}

.dp-done-btn {
  width: auto;
  display: inline-flex;
  padding: 0 1.6rem;
}

@media (max-width: 860px) {
  .dp-layout {
    grid-template-columns: 1fr;
  }

  /* on phones the product summary comes first, then the form */
  .dp-summary {
    position: static;
    order: -1;
  }
}

@media (max-width: 520px) {
  .dp-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Shared title sizes =====
   One size per role so titles match from page to page:
   - page titles: The Roses, rose name, Contact, Cart, Delivery Details, legal pages
   - section titles: card headings (Summary, Company, Selected Products, legal headings)
   The About page keeps its larger statement headline. */
:root {
  --title-page: clamp(2.6rem, 4.2vw, 3.6rem);
  --title-section: 1.65rem;
}

body[data-page="products"] .products-hero-redesign .products-hero-copy h1,
.ct-title,
.cp-title,
.dp-title,
.legal-hero h1.legal-display {
  font-size: var(--title-page);
  line-height: 1.02;
}

.legal-hero h1.legal-display {
  color: #1d1416;
}

.legal-hero h1.legal-display span {
  color: #b5070d;
}

/* the rose page also has to fit one screen, so on short windows the name scales with the height */
.rose-detail-name {
  font-size: min(var(--title-page), 6.4vh);
}

.legal-card h2,
.cp-summary h2,
.cp-empty h2,
.dp-section-title,
.dp-summary h2 {
  font-size: var(--title-section);
}

/* Cards added by "Load More Roses" fade and rise in one after another */
/* "backwards" (not "both") so the animation lets go of the card when it ends: the hover lift keeps
   working without removing the class, and removing it would restart the older stagger-list animation */
.product-grid > .rose-card-enter {
  animation: rose-card-in 560ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(var(--enter-i, 0) * 40ms);
}

@keyframes rose-card-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-grid > .rose-card-enter {
    animation: none;
  }
}

/* ===== Rose card <-> rose page ("magnification") =====
   Opening a rose: the clicked white card grows into the white photo panel of the rose page, with the
   photo growing inside it; the grid fades away underneath and the details fade in once the panel has
   nearly landed. Going back reverses it: the panel shrinks into the card's place and the card's text
   fades back in as it lands.
   Motion: 560ms with a fast start and a long, soft settle (no slow wind-up), so it responds the
   moment you click and still feels calm when repeated for many roses. */
:root {
  --morph-duration: 560ms;
  --morph-ease: cubic-bezier(0.2, 0, 0, 1);
}

.rose-detail-media {
  view-transition-name: rose-panel;
}

/* the photo box hugs the picture, like on the cards, so the photo grows without jumping */
.rose-detail-media img {
  view-transition-name: rose-photo;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.rose-detail-info {
  view-transition-name: rose-info;
}

::view-transition-group(rose-panel),
::view-transition-group(rose-photo) {
  animation-duration: var(--morph-duration);
  animation-timing-function: var(--morph-ease);
}

/* while it moves, the panel floats above the page with a soft shadow instead of looking like a flat
   white cut-out; the shadow fades away as it lands */
::view-transition-group(rose-panel) {
  border-radius: 18px;
  animation-name: -ua-view-transition-group-anim-rose-panel, panel-float;
}

@keyframes panel-float {
  0%, 100% { box-shadow: 0 0 0 rgba(70, 20, 30, 0); }
  35%, 70% { box-shadow: 0 24px 60px rgba(70, 20, 30, 0.14), 0 4px 14px rgba(70, 20, 30, 0.06); }
}

/* the photo's white background melts into whatever is underneath while it moves */
::view-transition-group(rose-photo) {
  mix-blend-mode: multiply;
}

::view-transition-old(rose-panel),
::view-transition-new(rose-panel) {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

::view-transition-old(rose-photo),
::view-transition-new(rose-photo) {
  height: 100%;
  object-fit: contain;
}

/* Opening: only the clean white panel and the large, sharp rose-page photo are shown while growing */
html:active-view-transition-type(rose-open)::view-transition-old(rose-panel),
html:active-view-transition-type(rose-open)::view-transition-old(rose-photo) {
  animation: none;
  opacity: 0;
}

html:active-view-transition-type(rose-open)::view-transition-new(rose-panel),
html:active-view-transition-type(rose-open)::view-transition-new(rose-photo) {
  animation: none;
  opacity: 1;
}

/* the rose page is already complete, so it is shown at once and the grid dissolves on top of it
   (no moment where both pages are half-transparent) */
html:active-view-transition-type(rose-open)::view-transition-new(root),
html:active-view-transition-type(rose-open)::view-transition-new(page-content) {
  animation: none;
}

html:active-view-transition-type(rose-open)::view-transition-old(root),
html:active-view-transition-type(rose-open)::view-transition-old(page-content) {
  animation: page-fade-out 180ms ease-out both;
}

::view-transition-new(rose-info):only-child {
  animation: details-in 420ms cubic-bezier(0.2, 0, 0, 1) 200ms both;
}

/* Going back: the details step aside at once, the grid fades in underneath the shrinking panel,
   and the card's own text fades in during the last part of the landing */
::view-transition-old(rose-info):only-child {
  animation: page-fade-out 120ms ease-out both;
}

html:active-view-transition-type(rose-close)::view-transition-old(rose-photo) {
  animation: none;
  opacity: 1;
}

html:active-view-transition-type(rose-close)::view-transition-new(rose-photo) {
  animation: none;
  opacity: 0;
}

html:active-view-transition-type(rose-close)::view-transition-old(rose-panel) {
  animation: page-fade-out calc(var(--morph-duration) * 0.35) ease-out calc(var(--morph-duration) * 0.65) both;
}

html:active-view-transition-type(rose-close)::view-transition-new(rose-panel) {
  animation: page-fade-in calc(var(--morph-duration) * 0.4) ease-out calc(var(--morph-duration) * 0.55) both;
}

/* the grid comes back fully loaded from the browser's memory: show it at full strength straight away
   and let the rose page dissolve quickly on top of it */
html:active-view-transition-type(rose-close)::view-transition-new(root),
html:active-view-transition-type(rose-close)::view-transition-new(page-content) {
  animation: none;
}

html:active-view-transition-type(rose-close)::view-transition-old(root),
html:active-view-transition-type(rose-close)::view-transition-old(page-content) {
  animation: page-fade-out 140ms ease-out both;
}

/* Previous / Next between roses: everything simply crossfades in place */
::view-transition-group(rose-info) {
  animation-duration: 300ms;
}

@keyframes details-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ===== About Us entrance: the headline rises in softly, the story follows a moment later ===== */
.ab-hero {
  view-transition-name: about-hero;
}

.ab-story {
  view-transition-name: about-story;
}

::view-transition-new(about-hero):only-child {
  animation: premium-rise 900ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

::view-transition-new(about-story):only-child {
  animation: premium-rise 1000ms cubic-bezier(0.16, 1, 0.3, 1) 260ms both;
}

::view-transition-old(about-hero):only-child,
::view-transition-old(about-story):only-child {
  animation: page-fade-out 160ms ease-out both;
}

@keyframes premium-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* About Us page (about.html) */
body.about-page {
  --ab-ink: #1d1416;
  --ab-muted: #6f5f62;
  --ab-line: #e9dcdf;
  --ab-red: #b5070d;
  background: #fff6f8;
}

body.about-page main {
  margin-top: 0;
}

body.about-page .home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff6f8;
}

.ab {
  padding: clamp(1.5rem, 6vh, 3.5rem) 0 5rem;
}

.ab-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ab-red);
}

.ab-kicker::before {
  content: "";
  width: 1.4rem;
  height: 1.5px;
  background: currentColor;
}

.ab-title {
  margin: 0 0 1.4rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  color: var(--ab-ink);
}

.ab-title span {
  display: block;
  color: var(--ab-red);
}

.ab-lead {
  max-width: 44ch;
  text-align: left;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ab-ink);
}

.ab-story {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.9fr) minmax(200px, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: clamp(2.5rem, 7vh, 4rem);
  padding-top: clamp(2rem, 5vh, 3rem);
  border-top: 1px solid #a99a9d;
}

.ab-heading {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: var(--title-section, 1.65rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ab-ink);
}

.ab-copy p {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ab-ink);
  text-align: left;
}

.ab-copy p:last-child {
  margin-bottom: 0;
}

.ab-certs {
  padding-left: clamp(1.2rem, 3vw, 2.2rem);
  border-left: 1px solid var(--ab-line);
  text-align: center;
}

.ab-certs-label {
  margin: 0 0 1.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--ab-muted);
  text-align: center;
}

.ab-cert-stage {
  display: grid;
}

/* all logos sit in the same spot and crossfade */
.ab-cert {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 600ms ease, transform 600ms ease;
  pointer-events: none;
}

.ab-cert.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ab-cert img {
  display: block;
  border-radius: 50%; /* the logos are round badges: clip off the white square corners */
  width: 110px;
  height: 110px;
  margin: 0 auto;
  object-fit: contain;
}

.ab-cert figcaption {
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ab-ink);
}

.ab-dots {
  display: flex;
  justify-content: center;
  gap: 0.15rem;
  margin-top: 1rem;
}

/* small visible dot with a larger click area */
.ab-dot {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ab-dot::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 0 auto;
  border-radius: 50%;
  background: #e2c9cf;
  transition: background-color 200ms ease;
}

.ab-dot:hover::before {
  background: #c99aa5;
}

.ab-dot.is-active::before {
  background: var(--ab-red);
}

.ab-dot:focus-visible {
  outline: 2px solid var(--ab-red);
  outline-offset: 1px;
  border-radius: 50%;
}

@media (max-width: 900px) {
  .ab-story {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .ab-certs {
    margin-top: 1rem;
    padding: 1.8rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--ab-line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-cert {
    transition: none;
  }
}

/* ===== Steady header across pages =====
   The header must be pixel-identical on every page, otherwise switching pages makes it jump.
   - the active link looks bold through a thin text outline instead of font-weight, so it is
     exactly as wide as a normal link and the menu never shifts
   - the scrollbar's space is always reserved, so long and short pages have the same header width
   - during page changes the header is swapped instantly instead of crossfaded, so it never doubles */
html {
  scrollbar-gutter: stable;
}

.home-nav a,
.home-nav a.is-active,
body[data-page="cart"] .home-nav a.is-active {
  font-weight: 500;
}

.home-nav a.is-active {
  -webkit-text-stroke: 0.55px currentColor;
}

::view-transition-old(site-header) {
  animation: none;
  opacity: 0;
}

::view-transition-new(site-header) {
  animation: none;
  opacity: 1;
}

/* ===== Compact site footer (all pages) ===== */
.site-foot {
  position: relative;
  z-index: 2;
  padding: 1.4rem 0 1.2rem;
  border-top: 1px solid #efe1e4;
  background: #ffffff;
  font-size: 0.82rem;
  color: #1d1416;
}

.site-foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
}

.site-foot-meta {
  margin-top: 0.9rem;
  font-size: 0.76rem;
  color: #6f5f62;
}

.site-foot-meta p {
  margin: 0;
}

.site-foot-logo img {
  display: block;
  width: 96px;
  height: auto;
}

.site-foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.6rem;
}

.site-foot-links a {
  color: inherit;
  text-decoration: none;
}

.site-foot-links a:hover {
  color: #b5070d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-foot .site-foot-cta {
  font-weight: 700;
  color: #b5070d;
}

@media (max-width: 640px) {
  .site-foot-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-foot-links {
    gap: 0.4rem 1.1rem;
  }
}

/* Keep the footer at the bottom of the window on short pages (e.g. a cart with one rose):
   the page is at least one screen tall and <main> takes up any spare space. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

body > main {
  flex: 1 0 auto;
}

body > .site-foot {
  flex-shrink: 0;
}

/* ===== Shared intro text =====
   The short paragraph under each page title has one size, colour and spacing on every page
   (products, About Us, contact, cart, delivery details, legal pages). */
:root {
  --text-intro: 1rem;
  --text-intro-line: 1.6;
  --text-intro-color: #1d1416;
}

body[data-page="products"] .products-hero-redesign .products-hero-copy .lead,
body .ab-lead,
body .ct-lead,
body .cp-lead,
body .dp-lead,
body .legal-hero .lead {
  font-size: var(--text-intro);
  line-height: var(--text-intro-line);
  color: var(--text-intro-color);
}

body[data-page="products"] .products-hero-redesign .products-hero-copy .lead,
body .ab-lead,
body .ct-lead,
body .cp-lead,
body .dp-lead {
  text-align: left;
}

body .legal-hero .lead {
  text-align: center;
}

/* =====================================================================
   Site-wide type scale: one size per role, on every page.
   Change a value here and every text of that role follows.
   ===================================================================== */
:root {
  --fs-page-title: var(--title-page);      /* The Roses, About Us, Contact, Cart, ...       ~58px */
  --fs-section: 1.65rem;                   /* What We Do, Summary, Company, legal headings  ~26px */
  --fs-item: 1.375rem;                     /* rose names on cards, in the cart, Previous/Next 22px */
  --fs-body: 1rem;                         /* intro and running text                         16px */
  --fs-ui: 0.9rem;                         /* buttons, fields, chips, links, summary rows   14.4px */
  --fs-small: 0.8rem;                      /* descriptions, details, hints, notes, footer   12.8px */
  --fs-label: 0.7rem;                      /* small capital labels                          11.2px */
}

/* Page titles (About Us joins the others) */
body .ab-title,
body .rose-detail-name {
  font-size: var(--fs-page-title);
  line-height: 1.02;
}

@media (min-width: 761px) and (min-height: 700px) {
  /* the rose page must still fit one screen on short windows */
  body .rose-detail-name {
    font-size: min(var(--fs-page-title), 6.4vh);
  }
}

/* Section titles */
body .ab-heading,
body .legal-card h2,
body .cp-summary h2,
body .cp-empty h2,
body .dp-section-title,
body .dp-summary h2 {
  font-size: var(--fs-section);
}

/* Item names */
body .rose-card-name,
body .cp-item-copy h3,
body .rose-pager-name {
  font-size: var(--fs-item);
}

/* Body text */
body .ab-copy p,
body .legal-card p,
body .legal-card li {
  font-size: var(--fs-body);
  line-height: 1.65;
}

/* Buttons, fields, chips, links, summary rows */
body[data-page="products"] .products-hero-actions .home-btn-primary,
body .rose-search input,
body .rose-chip,
body .rose-load-more,
body .page-indicator,
body .rose-select select,
body .rose-add-btn,
body .rose-box-text strong,
body .rose-arrival-row,
body .rose-cart-link,
body .rose-detail-back,
body .ct-field input,
body .ct-field textarea,
body .ct-submit,
body .cp-btn,
body .cp-add-more,
body .cp-summary-row,
body .dp-back,
body .dp-field input,
body .dp-select select,
body .dp-submit,
body .dp-summary-total,
body .ab-cert figcaption {
  font-size: var(--fs-ui);
}

/* Small text */
body .rose-card-colour,
body .rose-card-stem,
body .rose-detail-colour,
body .rose-box-text,
body .rose-detail-summary,
body .cp-item-copy p,
body .cp-summary-note,
body .ct-field label,
body .ct-consent,
body .dp-field label,
body .dp-hint,
body .dp-check,
body .dp-edit,
body .dp-item-copy strong,
body .dp-item-copy span,
body .dp-item-qty,
body .legal-updated,
body .site-foot,
body .site-foot-meta {
  font-size: var(--fs-small);
}

/* the colour line under the big rose name reads as an intro, so it uses body size */
body .rose-detail-colour {
  font-size: var(--fs-body);
}

/* Small capital labels: same size, weight and spacing everywhere */
body[data-page="products"] .products-kicker,
body .home-kicker.legal-kicker,
body .ab-kicker,
body .ct-kicker,
body .rose-field-label,
body .rose-detail-label,
body .rose-card-label,
body .rose-pager-label,
body .ab-certs-label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Totals: one emphasis size */
body .cp-summary-total span:last-child,
body .dp-summary-total span:last-child {
  font-size: 1.25rem;
}

/* older, more specific rules that still set their own size */
body[data-page="cart"] #cartTotal {
  font-size: 1.25rem;
  font-weight: 700;
}

body[data-page="products"] .product-pagination .page-indicator {
  font-size: var(--fs-ui);
}

/* "Stem length" on the cards stays non-bold (as requested), at the shared label size */
body .rose-card-label {
  font-weight: 500;
}

/* Toolbar edge to edge: search starts at the grid's left edge, and the single row of colour chips
   shares out the leftover space so the last chip ends at the grid's right edge */
.rose-chips.is-single-row {
  flex-wrap: wrap;
}

.rose-chips.is-single-row > .rose-chip:not([hidden]) {
  flex: 1 1 auto;
  justify-content: center;
}

/* ===== Products page on phones: smooth scrolling and no gap under the rose =====
   - The rose layer is exactly one *large* screen tall (the height with the browser bars hidden), so it
     doesn't change size while the address bar slides in and out, and it reaches the very bottom of
     the screen, under the floating address bar, instead of stopping above it.
   - It gets its own graphics layer, so scrolling the cards over it doesn't make the phone redraw
     the huge rose image every frame. */
body[data-page="products"] .products-corner-image {
  bottom: auto;
  height: 100vh;
  height: 100lvh;
  transform: translateZ(0);
  contain: strict;
}

@media (max-width: 820px) {
  /* the subtle colour filter is too costly for phones to redraw; the photo looks the same */
  body[data-page="products"] .products-corner-image .home-image-col img {
    filter: none;
  }
}

/* Contact form: hidden anti-spam field and the sent / error message */
.ct-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct-message {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.5;
}

.ct-message:empty {
  display: none;
}

.ct-message[data-kind="success"] {
  color: #2f6b3a;
}

.ct-message[data-kind="error"] {
  color: #b5070d;
}

/* Order review (order-review.html, for the office) and order response (order-response.html, for the client).
   Both reuse the delivery page's .dp-* layout; these are the extra pieces. */
.or-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dp-red);
}

.or-eyebrow:empty {
  display: none;
}

.or-banner {
  margin: 0 0 1.2rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--dp-red);
  border-radius: 0 10px 10px 0;
  background: #ffffff;
  font-size: 0.88rem;
  color: var(--dp-ink);
  text-align: left;
}

.or-details {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0.55rem 1rem;
  margin: 0;
  font-size: 0.88rem;
}

.or-details dt {
  color: var(--dp-muted);
}

.or-details dd {
  margin: 0;
  color: var(--dp-ink);
  overflow-wrap: anywhere;
}

.or-summary-line {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--dp-muted);
  text-align: left;
}

.or-summary-line strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  color: var(--dp-red);
}

.or-hint {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--dp-muted);
  text-align: left;
}

.or-alt {
  margin: 0.8rem 0 0;
  font-size: 0.82rem;
  color: var(--dp-ink);
  text-align: left;
}

.or-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--dp-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.or-link:disabled {
  opacity: 0.6;
  cursor: default;
}

.or-danger {
  color: var(--dp-muted);
}

.or-danger:hover:not(:disabled) {
  color: var(--dp-red);
}

.or-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 1.3rem;
  border: 1.5px solid var(--dp-red);
  border-radius: 999px;
  background: #ffffff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dp-red);
  cursor: pointer;
  transition: background-color 150ms ease;
}

.or-secondary:hover:not(:disabled) {
  background: #fbe8ec;
}

.or-secondary:disabled {
  opacity: 0.6;
  cursor: default;
}

.or-wide {
  width: 100%;
  height: 50px;
  margin-top: 0.7rem;
}

.or-edit-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0.4rem 0.75rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--dp-line);
}

.or-edit-row img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.or-edit-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dp-ink);
}

.or-edit-controls {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.or-mini-select select {
  height: 38px;
  width: auto;
  min-width: 6.5rem;
  font-size: 0.85rem;
}

.or-add-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.or-add-row .dp-select {
  flex: 1;
  min-width: 0;
}

.dp-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--dp-field);
  border-radius: 10px;
  background: #ffffff;
  font: inherit;
  font-size: 0.92rem;
  color: var(--dp-ink);
  box-sizing: border-box;
  resize: vertical;
}

.dp-field textarea:focus {
  outline: none;
  border-color: var(--dp-ink);
  box-shadow: 0 0 0 3px rgba(29, 20, 22, 0.06);
}

.or-optional {
  font-style: normal;
  font-weight: 400;
  color: var(--dp-muted);
}

.or-note {
  margin: 0 0 1.4rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--dp-red);
  border-radius: 0 10px 10px 0;
  background: #fff6f8;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--dp-ink);
  text-align: left;
}

.or-note p {
  margin: 0;
  text-align: left;
}

.or-note .or-note-title {
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dp-muted);
}

.or-changes {
  margin: 0;
  padding: 0;
  list-style: none;
}

.or-changes li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--dp-line);
  font-size: 0.9rem;
  color: var(--dp-ink);
}

@media (max-width: 520px) {
  .or-details {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .or-details dd {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 860px) {
  /* on the order review pages the order comes first, then the decision buttons */
  body[data-page="order-review"] .dp-summary,
  body[data-page="order-response"] .dp-summary {
    order: 0;
  }
}
