/* Prevent accidental horizontal page drift on mobile */
html, body {
  overflow-x: clip;
}

/* Custom AnnaRealm lined-R logo & hidden Opening Gift Easter egg */
.logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.brand-logo {
  display: block;
  height: 28px;
  width: auto;
  object-fit: contain;
}
.footer-logo {
  height: 25px;
}
@media (max-width: 600px) {
  .brand-logo { height: 22px; }
}

/* Deep obsidian cosmic window framed on pearl-white stage for unclipped naked-eye 3D breakout */
html[data-palette="pearl"] .gallery-hero {
  height: min(58vw, 640px) !important;
  min-height: 480px !important;
  background: #f7f8f7 !important;
}
html[data-palette="pearl"] .gallery-hero .orbit-controls {
  bottom: 18px !important;
  right: 4.5% !important;
}
html[data-palette="pearl"] .gallery-hero .orbit-controls button {
  background: rgba(255, 255, 255, .88) !important;
  color: #3a464b !important;
  border-color: rgba(45, 51, 55, .16) !important;
}
@media (max-width: 600px) {
  html[data-palette="pearl"] .gallery-hero {
    height: 460px !important;
    min-height: 0 !important;
  }
}

.tap-crystal-hint {
  position: absolute;
  left: 50%;
  bottom: 22.5%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 9.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(214, 236, 242, .68);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity .35s ease;
}

.gift-egg {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #7d8688;
  opacity: .72;
  transition: opacity .35s ease, transform .35s ease, background .35s ease, color .35s ease;
}
@media (max-width: 600px) {
  .tap-crystal-hint {
    bottom: 26%;
    font-size: 9px;
    letter-spacing: .20em;
  }
  .gift-egg {
    left: 16px;
    transform: none;
    bottom: 15px;
    padding: 5px 10px;
    font-size: 9px;
    letter-spacing: .16em;
  }
  .gift-egg:hover,
  .gift-egg:focus-visible {
    transform: translateY(-2px);
  }
  html[data-palette="pearl"] .gallery-hero .orbit-controls {
    bottom: 14px !important;
    right: 16px !important;
  }
  html[data-palette="pearl"] .gallery-hero .orbit-controls button {
    font-size: 9.5px !important;
    padding: 5px 10px !important;
  }
}

/* Non-modal fixed bag drawer so PayPal JS SDK checkout overlay (z-index: 2147483647) is NEVER blocked by browser Top Layer on mobile! */
.bag-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(12, 18, 22, .48);
  backdrop-filter: blur(3px);
}
.bag-backdrop[hidden],
.bag-drawer[hidden] {
  display: none !important;
}
aside.bag-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  width: min(440px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 28px 26px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f7f8f7 !important;
  color: #2d3337 !important;
  box-shadow: -12px 0 40px rgba(10, 18, 24, .18);
}
@media (max-width: 600px) {
  aside.bag-drawer {
    padding: 22px 18px 48px;
  }
}
.gift-egg:hover,
.gift-egg:focus-visible {
  opacity: 1;
  color: #2d3337;
  background: rgba(255, 255, 255, .92);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 4px 16px rgba(45, 51, 55, .10);
}
.gift-dialog {
  width: min(410px, 92vw);
  border-radius: 6px;
}
.gift-card {
  padding: 36px 30px 30px;
  text-align: center;
}
.gift-card h3 {
  font-family: 'AnnaRealm Display', 'Arial Narrow', Arial, sans-serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: .06em;
  margin: 10px 0 12px;
}
.gift-card p {
  font-size: 13px;
  line-height: 1.75;
  color: #5b6368;
}
.gift-code-pill {
  display: inline-block;
  margin: 18px 0 6px;
  padding: 8px 20px;
  border: 1px dashed #a98958;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  color: #2d3337;
  background: #fff;
}
.gift-card .gift-sub {
  margin-top: 12px;
  font-size: 11px;
  color: #7e868a;
}

/* Clean, image-first homepage typography & spacing */
html[data-palette="pearl"] .holiday-story.holiday-story-poster {
  margin: 18px 4.2% 52px !important;
  min-height: 0 !important;
  background: transparent !important;
}
.holiday-story.holiday-story-poster a { display: block; }
.holiday-story.holiday-story-poster img {
  display: block;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain !important;
  border-radius: 4px;
}

/* Quieter, smaller section typography so photos lead */
html[data-palette="pearl"] .section-title h2,
html[data-palette="pearl"] .about-story h2 {
  font-size: clamp(28px, 3vw, 38px) !important;
  line-height: 1.08 !important;
  letter-spacing: .06em !important;
  margin-top: 6px !important;
}
.compact-title { margin-bottom: 20px !important; }
/* Narrower centered editorial layout for comfortable desktop side margins */
html[data-palette="pearl"] header,
.collection,
.collar-collection,
.compact-notes,
html[data-palette="pearl"] footer {
  max-width: 1160px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
html[data-palette="pearl"] header {
  padding-left: clamp(20px, 3vw, 36px) !important;
  padding-right: clamp(92px, 8vw, 110px) !important;
}
.collection { padding: 36px clamp(20px, 3vw, 36px) 58px !important; }
.collar-collection { padding: 36px clamp(20px, 3vw, 36px) 64px !important; border-top: 1px solid #e3e6e5; }
.compact-notes { padding: 44px clamp(20px, 3vw, 36px) 58px !important; border-top: 1px solid #e3e6e5; }
.compact-notes .note-grid { margin-top: 0 !important; }

/* 6-column colourful rainbow rows for dog collars on homepage */
.collar-tier {
  margin-top: 28px;
}
.collar-tier:first-child {
  margin-top: 6px;
}
.collar-tier-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.collar-tier-head h3 {
  font-family: 'AnnaRealm Display', 'Arial Narrow', Arial, sans-serif !important;
  font-size: 21px !important;
  font-weight: 400 !important;
  letter-spacing: .07em !important;
  color: #2d3337 !important;
  margin: 0 !important;
}
.collar-tier-head span {
  font-size: 11px;
  color: #687177;
}
.collar-products.six-col {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 20px 12px !important;
}
.collar-card-price-only {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #373b3b;
}

/* Shopify-style color-banded Five-Piece Walk Set card */
.collar-card.is-five-piece button {
  background: #ffffff !important;
  border: 2.5px solid var(--fp-color, #4E9F9D) !important;
  border-radius: 3px;
  padding: 4px !important;
}
.collar-card.is-five-piece .fp-ribbon {
  position: absolute;
  left: 0;
  right: 0;
  top: 47%;
  transform: translateY(-50%);
  background: var(--fp-color, #4E9F9D);
  color: #ffffff;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
  padding: 4px 2px;
  line-height: 1.1;
  pointer-events: none;
  z-index: 2;
}
@media (max-width: 960px) {
  .collar-products.six-col {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 560px) {
  .collar-products.six-col {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px 10px !important;
  }
}

/* About Us (Our Story) with full uncropped vertical portrait */
.about-story {
  max-width: 1040px;
  margin: 12px auto 56px !important;
  padding: 44px 4.2% 0 !important;
  border-top: 1px solid #e3e6e5;
  grid-template-columns: minmax(260px, 400px) 1fr !important;
  gap: 48px;
  align-items: center;
}
.about-story figure {
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
}
.about-story img {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border-radius: 6px;
}
.about-story .editorial-copy {
  padding: 12px 6% 12px 2% !important;
}
.about-story .editorial-copy > p:not(.eyebrow) {
  max-width: 440px !important;
  font-size: 13px !important;
  line-height: 1.85 !important;
  color: #51595e !important;
}
.about-story .story-sign {
  margin-top: 18px !important;
  font-weight: 600 !important;
  color: #2d3337 !important;
  font-size: 13px !important;
}
.about-sketches.single-sketch {
  display: block;
  margin-top: 18px;
  max-width: 220px;
}
.about-sketches img {
  display: block;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 4px;
  border: 1px solid #e4e6e5;
}

/* Make entire crystal & collar cards clickable */
.product-card, .collar-card { cursor: pointer; }

/* Clean crisp crystal detail gallery (no weird 3D wobble) + Stone Callout Arrow Tags */
.crystal-detail-media {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f7f8f7;
}
.crystal-stage {
  position: relative;
  aspect-ratio: 1;
  background: #f7f8f7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crystal-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.crystal-stage img.is-studio {
  transform: translate(var(--visual-x, 0%), var(--visual-y, 0%)) scale(var(--visual-scale, 1));
  transform-origin: 50% 50%;
}
.crystal-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #f7f8f7;
  border-top: 1px solid #e3e6e5;
  overflow-x: auto;
}
.crystal-thumbs button {
  width: 68px;
  height: 68px;
  flex: none;
  padding: 2px;
  border: 1px solid #d7d9d5;
  background: #fff;
  cursor: pointer;
  border-radius: 3px;
  position: relative;
}
.crystal-thumbs button.selected {
  border-color: #2d3337;
  box-shadow: inset 0 0 0 1px #2d3337;
}
.crystal-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stone-callouts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.stone-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #ffffff;
  border: 1px solid #dce0df;
  border-radius: 999px;
  font-size: 11.5px;
  color: #2d3337;
  line-height: 1.25;
}
.stone-tag .stone-arrow {
  color: #4E9F9D;
  font-weight: 700;
  font-size: 11px;
}

/* Shopify-matched Interactive Walkset Customizer & 0-API Live Laser Engraving Preview */
.ar-opt-group { margin: 12px 0; }
.ar-opt-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #2d3337;
  margin-bottom: 7px;
}
.ar-opt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ar-opt-pills button {
  border: 1px solid #c8cecd;
  background: #ffffff;
  color: #2d3337;
  padding: 7px 11px;
  font-size: 11.5px;
  border-radius: 4px;
  transition: all .15s ease;
}
.ar-opt-pills button.selected {
  background: #4E9F9D !important;
  color: #ffffff !important;
  border-color: #4E9F9D !important;
  font-weight: 600;
}

.ar-cust-box {
  margin: 14px 0 12px;
  padding: 12px;
  background: #FAF9F7;
  border: 1px solid #E8E5DF;
  border-radius: 8px;
}
.ar-cust-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1A1A1A;
  margin-bottom: 9px;
}
.ar-cust-head span { font-weight: 400; text-transform: none; color: #666; letter-spacing: 0; }
.ar-pers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ar-pers-grid.is-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 540px) { .ar-pers-grid.is-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ar-pers-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 4px 8px;
  background: #FFFFFF;
  border: 1.5px solid #E2DFD9;
  border-radius: 7px;
  cursor: pointer;
  color: #1A1A1A;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.ar-pers-card:hover { border-color: #4E9F9D; transform: translateY(-1px); }
.ar-pers-card.is-selected {
  border-color: #4E9F9D;
  box-shadow: 0 0 0 2px rgba(78, 159, 157, .22);
  background: #F7FCFC;
}
.ar-pers-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #4E9F9D;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .15s ease, transform .15s ease;
}
.ar-pers-card.is-selected .ar-pers-check { opacity: 1; transform: scale(1); }
.ar-pers-card img {
  display: block;
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 4px;
}
.ar-pers-card strong { font-size: 11px; font-weight: 600; color: #1A1A1A; line-height: 1.2; text-align: center; }
.ar-pers-card em { font-style: normal; font-size: 11px; font-weight: 600; color: #555; }
.ar-pers-card em.is-free { color: #4E9F9D; }

.ar-shared-inputs { margin-top: 11px; padding-top: 10px; border-top: 1px solid #E8E5DF; }
.ar-live-stage {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.ar-live-item {
  position: relative;
  width: 138px;
  height: 138px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid #EAE6DF;
  overflow: hidden;
  flex-shrink: 0;
}
.ar-live-item img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ar-live-overlay {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  color: #3D2E1C;
  text-shadow: 0 0.6px 0 rgba(255, 250, 232, .55);
  font-family: "Optima", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  white-space: nowrap;
}
.ar-live-item.is-buckle .ar-live-overlay { top: 50%; width: 64px; }
.ar-live-item.is-heart .ar-live-overlay { top: 54%; width: 88px; }
.ar-live-item.is-round .ar-live-overlay { top: 56%; width: 92px; }
.ar-live-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.15;
  text-transform: uppercase;
}
.ar-live-item.is-buckle .ar-live-name { font-size: 9px; }
.ar-live-phone { font-size: 8px; font-weight: 500; letter-spacing: .04em; line-height: 1.25; margin-top: 2px; }
.ar-live-item.is-buckle .ar-live-phone { font-size: 7px; }
.ar-paw-svg { display: inline-block; width: 1.05em; height: 1.05em; fill: currentColor; vertical-align: middle; flex-shrink: 0; }

.ar-shared-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
@media (max-width: 540px) { .ar-shared-grid { grid-template-columns: 1fr; } }
.ar-name-wrap { position: relative; display: flex; align-items: center; }
.ar-name-wrap input { padding-right: 40px !important; }
.ar-char-count {
  position: absolute;
  right: 10px;
  font-size: 10px;
  color: #888e92;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.ar-char-count.is-max { color: #b6362b; font-weight: 600; }
.ar-shared-grid input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #D6D3CC;
  border-radius: 5px;
  background: #FFFFFF;
  font-size: 12.5px;
  color: #1A1A1A;
}
.ar-shared-grid input.is-error {
  border-color: #7D1E2E !important;
  box-shadow: 0 0 0 2px rgba(125, 30, 46, .16);
}
.ar-sym-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ar-sym-label { font-size: 11.5px; font-weight: 600; color: #555; margin-right: 2px; }
.ar-sym-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 3px 10px;
  border: 1px solid #D6D3CC;
  border-radius: 999px;
  background: #FFFFFF;
  color: #1A1A1A;
  font-size: 12px;
  cursor: pointer;
}
.ar-sym-btn.is-active { background: #4E9F9D; border-color: #4E9F9D; color: #FFFFFF; }
.ar-cust-warn { margin: 0; font-size: 11px; line-height: 1.4; color: #7D1E2E; }
.ar-err-msg {
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 5px;
  background: #FDF2F4;
  border: 1px solid #E5B4BE;
  color: #7D1E2E;
  font-size: 11.5px;
  font-weight: 600;
}
.ar-add-burgundy {
  background: #7D1E2E !important;
  color: #ffffff !important;
}
.ar-add-burgundy:hover { background: #641624 !important; }

/* Additive styles for AnnaRealm live PayPal checkout, promo code, and collar engraving */
.engrave-box {
  margin-top: 16px;
  padding: 13px;
  background: #ffffff;
  border: 1px solid #dce0df;
  border-radius: 3px;
}
.engrave-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #2d3337;
  margin-bottom: 8px;
}
.engrave-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.engrave-grid input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cfd4d3;
  border-radius: 2px;
  font-size: 12px;
  background: #f7f8f7;
  color: #2d3337;
}
.engrave-hint {
  font-size: 10px;
  color: #687177;
  margin-top: 6px;
}
.collar-variants-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 185px;
  overflow-y: auto;
  margin: 8px 0 14px;
  padding-right: 4px;
}
.collar-variants-grid button {
  border: 1px solid #c2c8c7;
  background: #fff;
  color: #2d3337;
  padding: 7px 10px;
  font-size: 11px;
  border-radius: 2px;
  text-align: left;
}
.collar-variants-grid button.selected {
  background: #2d3337 !important;
  color: #fff !important;
  border-color: #2d3337 !important;
}
.promo-row {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.promo-row input {
  flex: 1;
  padding: 9px 11px;
  border: 1px solid #cfd4d3;
  border-radius: 2px;
  background: #fff;
  color: #2d3337;
  font-size: 12px;
  text-transform: uppercase;
}
.promo-row button {
  padding: 9px 14px;
  background: #2d3337;
  color: #fff;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.promo-msg {
  font-size: 11px;
  margin-top: 6px;
  color: #2b6e4e;
}
.promo-msg.err { color: #a63232; }
.summary-rows {
  margin: 16px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
}
.summary-row { display: flex; justify-content: space-between; }
.summary-row.total {
  font-size: 15px;
  font-weight: 700;
  padding-top: 10px;
  border-top: 1px solid #dce0df;
}
.paypal-btn {
  background: #0070ba !important;
  color: #ffffff !important;
  width: 100%;
  padding: 15px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  border-radius: 3px;
  margin-top: 10px;
  text-align: center;
}
.paypal-btn:hover { background: #005ea6 !important; }
@media (max-width: 700px) {
  .about-story { grid-template-columns: 1fr !important; gap: 24px; padding-top: 32px; }
  .about-story .editorial-copy { padding: 0 !important; }
  .engrave-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .crystal-stage.turn-active img.is-studio,
  .crystal-stage.turn-active::after { animation: none !important; }
}
