:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f1f1ef;
  --primary: #1d1d1f;
  --primary-dark: #0f0f10;
  --secondary: #d8d8d4;
  --teal: #6e7a82;
  --pink: #ecece9;
  --text: #1a1a1a;
  --muted: #5f5f5d;
  --border: #e8e8e5;
  --shadow: 0 18px 40px rgba(15, 15, 16, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  background: linear-gradient(180deg, #fafaf9 0%, #f3f3f1 100%);
  color: var(--text);
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 249, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "Merriweather", serif;
  font-weight: 800;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #121212, #5b5b5b);
  color: #fff;
  box-shadow: 0 8px 16px rgba(17, 17, 17, 0.1);
}

.brand-name {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-weight: 700;
}

.hero {
  padding: 0;
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.04);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2 {
  font-family: "Merriweather", serif;
  line-height: 1;
  margin: 16px 0 18px;
}

.hero-copy h1 {
  font-size: 3.5rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 15px 24px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #1d1d1f, #4a4a4c);
  color: white;
  box-shadow: 0 12px 24px rgba(29, 29, 31, 0.12);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.mini-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-weight: 700;
}

.mini-points li::before {
  content: "✓";
  color: var(--teal);
  margin-right: 8px;
}

.hero-visual {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-slideshow-image {
  width: 100%;
  height: clamp(340px, 54vw, 760px);
  object-fit: cover;
  object-position: center 45%;
  display: block;
  transition: opacity 0.25s ease;
}

.hero-slideshow-image.fade-out {
  opacity: 0.25;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  touch-action: pan-y;
}

.hero-buy-button {
  position: absolute;
  right: clamp(16px, 7vw, 100px);
  bottom: clamp(14px, 4vw, 32px);
  z-index: 2;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d1d1f, #4a4a4c);
  color: #fff;
  box-shadow: 0 12px 24px rgba(29, 29, 31, 0.18);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-buy-button:hover {
  background: linear-gradient(135deg, #2b2b2d, #5a5a5c);
  transform: translateY(-1px);
}

.hero-copy {
  padding-top: 30px;
  padding-bottom: 36px;
}

.hero-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 0 18px;
}

.hero-dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #c4c7ca;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-dot.active::before {
  width: 20px;
  background: #45484b;
}

.hero-dot:focus-visible {
  outline: 2px solid #65a9e6;
  outline-offset: 1px;
  border-radius: 8px;
}

.keychain-ring {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 14px solid rgba(115, 115, 115, 0.8);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.7), 0 14px 30px rgba(92, 92, 92, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.keychain-name {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 12px;
}

.word {
  --word-width: 70%;
  display: block;
  width: var(--word-width);
  margin: 4px 0;
  color: #ffffff;
  font-family: "Merriweather", serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 0.85;
  text-shadow:
    0 1px 0 #f1f1f1,
    0 2px 0 #e4e4e2,
    0 3px 0 #d7d7d5,
    0 4px 0 #c9c9c6,
    0 5px 0 #babbb8,
    0 6px 0 #a9aaa7,
    0 10px 18px rgba(68, 68, 68, 0.12),
    0 18px 26px rgba(91, 91, 91, 0.08);
  transform: rotate(-2deg) skewX(-8deg);
  filter: drop-shadow(0 12px 14px rgba(69, 69, 69, 0.12));
}

.word-1 { font-size: clamp(2.7rem, 5vw, 4.2rem); }
.word-2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.word-3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.floating-badge {
  position: absolute;
  left: 28px;
  bottom: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(45, 42, 42, 0.06);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.08);
}

.floating-badge strong,
.floating-badge span {
  display: block;
}

.floating-badge strong {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.section-heading.left {
  text-align: left;
}

.section-heading h2 {
  font-size: 2.35rem;
  line-height: 1.2;
  margin-top: 12px;
}

.product-grid {
  display: flex;
  transition: transform 0.38s ease;
  will-change: transform;
}

.collection-carousel {
  width: min(100%, 900px);
  margin: 0 auto;
}

.collection-viewport {
  overflow: hidden;
  touch-action: pan-y;
  border-radius: 24px;
}

.product-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.03);
}

.product-style-card {
  flex: 0 0 100%;
  min-width: 0;
  padding: 18px 18px 22px;
}

.collection-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 800;
}

.collection-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.collection-arrow:hover {
  border-color: #65a9e6;
  background: #e3f2ff;
}

.style-slider {
  position: relative;
  margin-bottom: 14px;
}

.slider-viewport {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 18px;
  background: #efefee;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.08);
}

.slider-arrow.prev {
  left: 10px;
}

.slider-arrow.next {
  right: 10px;
}

.slide {
  cursor: zoom-in;
}

.image-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(16, 16, 18, 0.72);
  z-index: 100;
  padding: 24px;
}

.image-modal.open {
  display: grid;
}

.image-modal img {
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.24);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

.style-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(16, 16, 18, 0.68);
}

.style-detail-modal.open {
  display: grid;
}

.style-detail-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  width: min(100%, 900px);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.style-detail-dialog > img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.style-detail-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 32px 28px;
  overflow-y: auto;
}

.style-detail-copy h2,
.style-detail-copy p {
  margin: 0;
}

.style-detail-copy h2 {
  font-family: "Merriweather", serif;
  font-size: 1.65rem;
}

.style-detail-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.style-detail-copy .style-detail-product-type {
  color: var(--text);
  font-weight: 700;
}

.style-detail-specs {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 2px 0;
}

.style-detail-specs > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
}

.style-detail-specs dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.style-detail-specs dd {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.5;
}

.style-detail-copy .style-detail-notice {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f7fb;
  color: #44566a;
  font-size: 0.84rem;
  line-height: 1.5;
}

.style-detail-taglines {
  display: grid;
  gap: 4px;
}

.style-detail-taglines p {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: italic;
}

.style-detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.product-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-family: "Merriweather", serif;
}

.product-card p {
  color: var(--muted);
  line-height: 1.7;
  min-height: 72px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed rgba(45, 42, 42, 0.12);
  color: var(--text);
  font-weight: 700;
}

.price-row strong {
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.product-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.product-actions .btn {
  width: min(50%, 180px);
  justify-content: center;
}

.order-box {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: clamp(20px, 4vw, 38px);
  box-shadow: 0 24px 48px rgba(17, 17, 17, 0.04);
}

.order-form {
  display: grid;
  gap: 22px;
}

.field-group {
  display: grid;
  gap: 10px;
}

label {
  font-weight: 800;
  color: var(--text);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 122, 89, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 122, 89, 0.08);
}

input[aria-invalid="true"] {
  border-color: #c62828;
}

.field-error {
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 700;
}

.field-error:empty {
  display: none;
}

.name-fields-group {
  gap: 8px;
}

.name-list-headings,
.name-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 48px;
  gap: 8px;
  align-items: end;
}

.name-list-headings {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
}

.name-list {
  display: grid;
  gap: 8px;
}

.name-entry input {
  min-width: 0;
}

.name-quantity {
  padding: 12px 8px;
}

.remove-name,
.add-name {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.remove-name {
  font-size: 1.4rem;
}

.remove-name:hover:not(:disabled),
.add-name:hover {
  border-color: var(--primary-dark);
}

.remove-name:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.add-name {
  justify-self: start;
  padding: 0 16px;
}

.row {
  display: grid;
  gap: 20px;
}

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

.design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.design-option {
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 10px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.design-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.design-option small {
  color: var(--primary-dark);
}

.design-option.selected {
  border-color: #65a9e6;
  background: #e3f2ff;
  box-shadow: 0 0 0 3px rgba(101, 169, 230, 0.2), 0 10px 22px rgba(101, 169, 230, 0.16);
}

.summary-box {
  background: linear-gradient(135deg, #f8f8f7, #f2f2f1);
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 1rem;
}

.summary-row strong {
  font-size: 1.2rem;
}

.summary-row.total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(45, 42, 42, 0.14);
  color: var(--text);
}

.summary-row.total strong {
  color: var(--primary-dark);
}

.btn-full {
  width: 100%;
  margin-top: 8px;
}

.payment-wrap {
  display: grid;
  gap: 24px;
}

.payment-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.payment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  padding: 24px;
}

.qr-card {
  text-align: center;
}

.qr-image-button {
  display: block;
  width: min(100%, 240px);
  margin: 0 auto 16px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(45, 42, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  cursor: zoom-in;
}

.qr-image-button img {
  width: 100%;
  border-radius: 18px;
}

.qr-image-button:focus-visible,
.qr-download:focus-visible {
  outline: 2px solid #65a9e6;
  outline-offset: 3px;
}

.qr-download {
  display: inline-flex;
  justify-content: center;
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.qr-download:hover {
  border-color: #65a9e6;
  background: #e3f2ff;
}

.qr-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.details-card h3 {
  margin-top: 0;
  font-size: 1.8rem;
  font-family: "Merriweather", serif;
}

.details-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
}

.notice {
  margin-top: 22px;
  background: #f4f4f3;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 16px;
  padding: 16px;
  color: var(--text);
  line-height: 1.6;
}

.footer {
  padding: 18px 0 30px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(45, 42, 42, 0.1);
  padding-top: 20px;
  color: var(--muted);
}

.footer-wrap a {
  color: var(--primary-dark);
  font-weight: 800;
}

@media (max-width: 900px) {
  .payment-grid {
    grid-template-columns: 1fr 1fr;
  }

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

}

@media (max-width: 640px) {
  .nav-wrap,
  .footer-wrap {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .nav-links a {
    padding: 8px 4px;
    text-align: center;
  }

  .hero {
    padding-top: 0;
  }

  .product-grid,
  .payment-grid,
  .two-col,
  .design-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 12px;
  }

  .product-style-card {
    flex-basis: calc(100% - 32px);
  }

  .style-detail-dialog {
    grid-template-columns: 1fr;
    max-height: calc(100svh - 32px);
    overflow-y: auto;
  }

  .style-detail-dialog > img {
    height: min(42svh, 280px);
  }

  .style-detail-copy {
    gap: 10px;
    padding: 22px;
  }

  .style-detail-copy h2 {
    font-size: 1.5rem;
  }

  .hero-copy h1 {
    font-size: 1.75rem;
    line-height: 1.22;
    margin: 12px 0;
  }

  .hero-copy p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero-copy {
    padding-top: 22px;
    padding-bottom: 28px;
  }

  .hero-copy .eyebrow {
    padding: 6px 10px;
    font-size: 0.68rem;
  }

  .hero-copy .cta-row {
    gap: 10px;
    margin-top: 18px;
  }

  .hero-copy .mini-points {
    gap: 8px 12px;
    margin-top: 16px;
    font-size: 0.82rem;
  }

  .hero-buy-button {
    right: 12px;
    bottom: 12px;
    min-height: 40px;
    font-size: 0.85rem;
    padding: 0 19px;
  }

  .section-heading h2 {
    font-size: 1.5rem;
  }

  .product-card h3 {
    font-size: 1.15rem;
  }

  .section {
    padding: 58px 0;
  }

  .hero-slideshow-image {
    height: clamp(340px, 112vw, 620px);
    object-position: center;
  }
}
