@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Great+Vibes&family=Inter:wght@300;400;500;600&display=swap');

:root {
  color-scheme: light;
  --bg: #f7f3ef;
  --surface: #ffffff;
  --surface-soft: #f1ebe4;
  --text: #221e1b;
  --muted: #6f675f;
  --border: #dfd7cf;
  --accent: #8b5f45;
  --accent-soft: #d8c3b3;
  --radius-none: 0px;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: transparent;
}

/* Brand law baseline: architectural geometry and no decorative depth */
:where(
  button,
  .button,
  input,
  select,
  textarea,
  [class*="card"],
  [class*="panel"],
  [class*="drawer"],
  [class*="modal"],
  [class*="shell"],
  [class*="section"]
) {
  border-radius: var(--radius-none);
  box-shadow: none;
}

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

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

button,
input,
select {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 44px 72px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 12;
  background: transparent;
  border-bottom: none;
  padding-top: 28px;
}

.hero-header {
  color: #fff;
}

.hero-header .brand,
.hero-header .site-nav a,
.hero-header .nav-icon {
  color: #fff;
}

.hero-header .nav-icon {
  border-color: rgba(255, 255, 255, 0.45);
}

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

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.24ch;
  font-size: 1.05rem;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0.04em;
}

.brand-script {
  font-family: 'Great Vibes', cursive;
  font-size: 1.2em;
  font-weight: 400;
  letter-spacing: 0;
  transform: translateY(0.02em);
}

.brand-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-variant-caps: all-small-caps;
  font-feature-settings: 'smcp' 1;
  font-size: 1em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.05;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.35rem;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.nav-icon {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-count {
  display: inline-flex;
  min-width: 1.5em;
  height: 1.5em;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--text);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.35em;
}

.nav-icon:hover,
.nav-icon:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  outline: none;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 15, 13, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 20;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  border-left: 1px solid rgba(34, 30, 27, 0.08);
  padding: 32px;
  transform: translateX(100%) scale(0.98);
  transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.28s ease;
  opacity: 0.98;
  z-index: 22;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: none;
}

.cart-drawer.open {
  transform: translateX(0) scale(1);
  opacity: 1;
}

.cart-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 24px;
}

.cart-items {
  display: grid;
  gap: 18px;
  overflow-y: auto;
  padding-right: 2px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  align-items: start;
  border-top: 1px solid rgba(34, 30, 27, 0.08);
  padding-top: 18px;
}

.cart-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cart-item-copy {
  display: grid;
  gap: 10px;
}

.cart-item-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.cart-item-price {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cart-quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(34, 30, 27, 0.12);
  padding: 6px 10px;
}

.cart-quantity-controls button {
  min-width: 32px;
  border: none;
  background: transparent;
  font-size: 1rem;
  color: var(--text);
}

.cart-remove {
  align-self: start;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 6px 8px;
}

.cart-summary {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.cart-note,
.checkout-summary-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

.hero-video,
.collections-section,
.editorial-piece,
.featured-jewelry,
.lifestyle-full,
.more-collections,
.newsletter-section,
.about-section,
.shop-grid-section,
.featured-section {
  margin-top: 40px;
}

.hero-video {
  position: relative;
  width: 100%;
  min-height: 92vh;
  height: clamp(80vh, 100vh, 100vh);
  overflow: hidden;
}

.hero-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 6vw;
  background: rgba(10, 10, 10, 0.12);
}

.hero-overlay-inner {
  max-width: 520px;
  color: #fff;
  /* nudge the whole overlay content down by 30px */
  transform: translateY(30px);
}

.hero-overlay .eyebrow {
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.28em;
  margin-bottom: 1rem;
}

.hero-video h1 {
  color: #fff;
  /* reduced by 25% for a more modest heading */
  font-size: clamp(1.9rem, 3.2vw, 3.57rem);
  line-height: 0.96;
  /* lower the H1 by 20px relative to its container */
  margin-top: 20px;
  margin-bottom: 1.2rem;
}

.hero-h1-sub {
  display: inline-block;
  transform: translateY(13px);
}

/* Minimalist hero scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 36px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 6px 8px;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1;
  opacity: 1;
  transition: opacity 320ms ease, transform 320ms ease;
  z-index: 30;
}

.hero-scroll-indicator:focus-visible {
  outline: 2px solid rgba(255,255,255,0.95);
  outline-offset: 8px;
  border-radius: 0;
}

.hero-scroll-indicator .hero-scroll-label {
  display: block;
  color: #fff;
}

.hero-scroll-indicator .hero-scroll-chevron {
  display: block;
  width: 28px;
  height: 14px;
  color: #fff;
  will-change: transform;
}

@keyframes hero-bob {
  0% { transform: translateY(0); }
  50% { transform: translateY(6px); }
  100% { transform: translateY(0); }
}

.hero-scroll-indicator .hero-scroll-chevron polyline {
  stroke: currentColor;
}

.hero-scroll-indicator .hero-scroll-chevron {
  animation: hero-bob 2.6s ease-in-out infinite;
}

/* Hidden when hero is out of view */
.hero-scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}

/* Slightly larger touch target on mobile */
@media (max-width: 640px) {
  .hero-scroll-indicator {
    bottom: 28px;
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}

.hero-button {
  margin-top: 1.8rem;
  padding: 16px 32px;
  color: #fff;
}

.button.primary.hero-button,
.button.hero-button,
.hero-button.button-primary {
  background: rgba(34, 30, 27, 0.75);
}

.hero-button:hover,
.hero-button:focus-visible {
  background: rgba(34, 30, 27, 0.9);
}

.hero-header .nav-icon {
  /* 20% more translucent resting state on home */
  background: rgba(255, 255, 255, 0.6);
}

.hero-header .nav-icon:hover,
.hero-header .nav-icon:focus-visible {
  background: rgba(255, 255, 255, 1);
}

.collections-section {
  width: 100vw;
  max-width: none;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-left: 2.5vw;
  padding-right: 2.5vw;
  /* ensure no extra bottom spacing so following section can align closely */
  margin-bottom: 0;
}

.collections-section .section-header {
  max-width: none;
}

.collections-section .collection-grid,
.featured-jewelry .featured-grid,
.more-collections .more-grid {
  display: grid;
  gap: 16px;
}

.collection-grid {
  width: 100%;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.collection-card,
.featured-item,
.more-panel {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  min-height: 460px;
}

.collection-card img,
.featured-item img,
.more-panel img,
.editorial-media img,
.editorial-media video,
.lifestyle-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.collection-card img,
.featured-item img,
.more-panel img {
  aspect-ratio: 4 / 5;
}

.collection-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 32px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.collection-card-label {
  margin: 0;
  color: #fff;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: none;
  line-height: 1.05;
}

.collection-card:hover img,
.collection-card:focus-visible img {
  transform: scale(1.01);
}

.collection-card:hover .collection-card-overlay,
.collection-card:focus-visible .collection-card-overlay {
  background: rgba(0, 0, 0, 0.38);
}

.collection-card:hover .collection-card-label,
.collection-card:focus-visible .collection-card-label {
  color: #fff;
}

.editorial-piece {
  position: relative;
  padding: 0;
  overflow: visible;
}

/* Static craftsmanship editorial section (full-width background image) */
.craftsmanship-section {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  /* tighten spacing above collections while preserving internal breathing room */
  margin-top: 16px !important;
  /* match the collection grid gap (16px) at the top for visual consistency */
  padding: 16px 0 80px;
  min-height: 72vh;
  display: flex;
  align-items: center;
  background-image: url('assets/images/eye-of-ra-necklace/02-eye_or_ra_pendant.jpg');
  background-size: cover;
  background-position: 50% 40%;
  background-repeat: no-repeat;
}

.craftsmanship-shell {
  width: min(1400px, calc(100% - 88px));
  margin: 0 auto;
}

.editorial-media {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  transform-origin: top left;
  will-change: transform;
  z-index: 1;
}

.editorial-copy-block {
  display: grid;
  gap: 24px;
  max-width: 44ch;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.editorial-copy-block h2 {
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 1.05;
}

.editorial-copy-block p {
  max-width: 42ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

@media (max-width: 900px) {
  .editorial-piece {
    min-height: 150vh;
  }

  .editorial-content {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    height: auto;
    padding: 40px 0;
  }

  .editorial-media {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }
}

.featured-item,
.more-panel {
  display: grid;
  gap: 18px;
}

.featured-item h3,
.collection-card h3,
.more-panel h3 {
  margin: 0;
  font-size: 1.1rem;
}

.lifestyle-full {
  margin-top: 64px;
}

.lifestyle-full img {
  width: 100%;
  height: 78vh;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.section-header-quiet h2,
.section-header-quiet p {
  max-width: 42ch;
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 44px 72px;
}

/* Auth forms styling */
.auth-section {
  padding: 80px 0;
}
.auth-panel {
  max-width: 680px;
  margin: 0 auto;
}
.auth-entry {
  padding: 100px 0;
}
.auth-entry-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 40px;
}
.account-card {
  display: block;
  padding: 34px 32px;
  border: 1px solid rgba(34, 30, 27, 0.08);
  border-radius: 0;
  background: rgba(255,255,255,0.9);
  color: var(--text);
  transition: border-color 180ms ease, transform 180ms ease;
}
.account-card:hover,
.account-card:focus-visible {
  border-color: rgba(34, 30, 27, 0.18);
  transform: translateY(-1px);
}
.account-card h3 {
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 1.4rem;
  line-height: 1.05;
}
.account-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}
.auth-form {
  display: grid;
  gap: 22px;
  max-width: 520px;
  margin-top: 42px;
}
.auth-form label {
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}
.auth-form input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(34, 30, 27, 0.12);
  border-radius: 0;
  background: rgba(255,255,255,0.96);
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.auth-form input.input-error {
  border-color: rgba(159, 72, 72, 0.55);
  box-shadow: none;
}
.auth-row {
  display: grid;
  gap: 18px;
}
.auth-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.button-text {
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0;
  font-size: 0.95rem;
  text-decoration: underline;
}
.auth-note {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}
.auth-message {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 8px;
  min-height: 1.6em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 240ms ease, transform 260ms ease;
  letter-spacing: 0.01em;
}
.auth-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.auth-message.is-error {
  color: #8f4e4e;
}
.auth-message.is-success {
  color: #5b6f57;
}

.account-session-loading {
  margin-top: 40px;
  padding: 24px 26px;
  border: 1px solid rgba(34, 30, 27, 0.08);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  opacity: 1;
  transition: opacity 180ms ease;
}

.account-session-loading p {
  margin: 0;
  letter-spacing: 0.02em;
}

.account-profile-prompt h3,
.account-profile-editor h3 {
  margin-bottom: 12px;
}

.account-profile-prompt p {
  margin-bottom: 18px;
}

.account-profile-form {
  max-width: 100%;
  margin-top: 20px;
}

.account-profile-form input[readonly] {
  color: var(--muted);
  background: rgba(247, 245, 241, 0.8);
}

.account-shell {
  display: grid;
  gap: 34px;
  max-width: 960px;
  margin-top: 40px;
}
.account-welcome {
  padding: 44px 44px 36px;
  border: 1px solid rgba(34, 30, 27, 0.08);
  border-radius: 0;
  background: rgba(255,255,255,0.95);
}
.account-welcome h2 {
  margin-bottom: 14px;
}
.account-welcome p {
  max-width: 45ch;
  color: var(--muted);
}
.account-summary {
  display: grid;
  gap: 24px;
}
.account-card-panel {
  padding: 28px;
  border: 1px solid rgba(34, 30, 27, 0.08);
  border-radius: 0;
  background: rgba(255,255,255,0.95);
}
.account-card-panel h3 {
  margin-top: 0;
  margin-bottom: 16px;
}
.account-card-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}
.account-card-panel .button-secondary {
  margin-top: 22px;
}
.account-details {
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.account-details strong {
  color: var(--text);
}
.account-addresses {
  display: grid;
  gap: 16px;
}
.address-placeholder,
.order-placeholder,
.saved-placeholder {
  padding: 22px 20px;
  border: 1px solid rgba(34, 30, 27, 0.08);
  border-radius: 0;
  background: rgba(255,255,255,0.92);
  color: var(--muted);
}
.order-placeholder p,
.saved-placeholder p,
.address-placeholder p {
  margin: 0;
}
.account-signout {
  text-align: right;
}
.account-signout .button-text {
  color: var(--text);
}

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

.footer-shell {
  padding: 0;
}

.site-footer {
  position: relative;
  background: transparent;
  border-top: 1px solid rgba(34, 30, 27, 0.06);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.02em;
}
/* Overlay used to sit text on top of the background image */
.craftsmanship-overlay {
  max-width: 640px;
  color: #fff;
  position: relative;
  z-index: 2;
  padding: 28px 32px;
}

/* Optional subtle dark backing for legibility */
.craftsmanship-overlay .backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
  z-index: -1;
  border-radius: 0;
}

.craftsmanship-overlay h2 {
  color: #fff;
}

.craftsmanship-overlay p {
  color: rgba(255,255,255,0.9);
}

h1 {
  font-size: clamp(2.8rem, 4.2vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: 0.4em;
}

h2 {
  font-size: clamp(1.75rem, 2.4vw, 2.4rem);
  line-height: 1.08;
  margin-bottom: 0.85em;
}

h3 {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.65em;
}

.hero-copy,
.page-hero p,
.about-section p,
.newsletter-copy p,
.shop-grid-section p,
.featured-card p {
  max-width: 36ch;
  color: var(--muted);
  line-height: 1.9;
}

.hero-actions,
.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.preview-actions-wide {
  justify-content: flex-start;
}

.button {
  border: 1px solid transparent;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, opacity 0.2s ease;
  position: relative;
}

.button:not(:disabled):not(.loading):hover {
  transform: translateY(-1px);
}

.button:not(:disabled):active {
  transform: translateY(0);
}

.button:disabled,
.button.loading {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.button.loading::after {
  content: '';
  position: absolute;
  right: 16px;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 0;
  animation: button-spin 0.75s linear infinite;
}

body.page-exit .page-shell {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.button-primary {
  background: var(--text);
  color: #fff;
}

.button-primary:hover {
  background: #0f0d0b;
}

.button-secondary,
.button-tertiary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button-secondary:hover,
.button-tertiary:hover {
  background: rgba(255, 255, 255, 0.08);
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.section-header {
  margin-bottom: 24px;
}

.section-header p {
  max-width: 38ch;
  color: var(--muted);
}

.featured-section .section-header,
.shop-grid-section .section-header {
  max-width: 560px;
}

.page-hero-shop {
  min-height: 62vh;
  align-items: end;
  padding-top: 24px;
  margin-bottom: 40px;
}

.page-hero-shop h1 {
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: 0.6em;
}

.page-hero-shop p {
  max-width: 34ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

body[data-page="collection"] .page-shell {
  max-width: none;
  width: min(94vw, 1800px);
  padding: 40px 3.5vw 80px;
}

body[data-page="collection"] .page-hero-collection {
  padding: 100px 0 52px;
  margin-bottom: 72px;
  border-bottom: none;
}

body[data-page="collection"] .page-hero-collection h1 {
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 1;
  margin-bottom: 0.8rem;
}

body[data-page="collection"] .page-hero-collection p {
  max-width: 48ch;
  color: rgba(34, 30, 27, 0.78);
  font-size: 1.05rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

body[data-page="collection"] .shop-grid-section .section-header {
  max-width: none;
  margin-bottom: 54px;
}

body[data-page="collection"] .shop-grid-section .section-header h2 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: 1.02;
  margin-bottom: 1rem;
}

body[data-page="collection"] .shop-grid-section .section-header p {
  max-width: 44ch;
  color: rgba(34, 30, 27, 0.78);
  font-size: 1rem;
  line-height: 1.95;
  margin: 0;
}

body[data-page="collection"] .shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-top: 60px;
}

body[data-page="collection"] .shop-card {
  display: grid;
  gap: 18px;
  text-decoration: none;
  color: inherit;
}

body[data-page="collection"] .shop-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

body[data-page="collection"] .shop-card:hover img,
body[data-page="collection"] .shop-card:focus-visible img {
  transform: scale(1.01);
}

body[data-page="collection"] .shop-card h3 {
  font-size: 1.15rem;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.02em;
}

body[data-page="collection"] .shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

@media (max-width: 1100px) {
  body[data-page="collection"] .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-page="collection"] .shop-card img {
    height: 470px;
  }
}

@media (max-width: 720px) {
  body[data-page="collection"] .shop-grid {
    grid-template-columns: 1fr;
  }
  body[data-page="collection"] .shop-card img {
    height: 420px;
  }
}

.shop-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  margin-top: 42px;
}

.shop-hero-copy {
  max-width: 460px;
}

.shop-hero-image {
  overflow: hidden;
  border-radius: 0;
  min-height: 520px;
}

.shop-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-curated,
.shop-curated-grid,
.curated-card,
.curated-card-large,
.curated-stack,
.curated-card-tall,
.curated-card-medium,
.curated-card img,
.curated-copy {
  display: none;
}

.curated-copy h2 {
  font-size: clamp(1.65rem, 2.6vw, 2rem);
  line-height: 1.1;
  max-width: 16ch;
}

.curated-copy p {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  opacity: 0.9;
  text-transform: uppercase;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  margin-top: 40px;
}

.product-card {
  min-height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.product-card img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.product-card .product-card-copy {
  padding: 22px 0 0;
  display: grid;
  gap: 10px;
}

.product-card h3 {
  font-size: 1.05rem;
  line-height: 1.12;
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

.product-card .product-card-copy {
  padding: 28px 0 0;
  display: grid;
  gap: 12px;
}

.product-card h3 {
  font-size: 1.22rem;
  line-height: 1.08;
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

.product-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: rgba(34, 30, 27, 0.54);
  font-weight: 500;
}

.product-price {
  font-size: 0.85rem;
  color: rgba(34, 30, 27, 0.56);
}

.product-card a {
  color: inherit;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.product-details-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.product-details-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-header-quiet h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.page-hero-shop {
  min-height: 62vh;
  align-items: end;
}

.page-hero-shop h1 {
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  line-height: 1.02;
  margin-bottom: 0.45em;
}

.page-hero-shop p {
  max-width: 36ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.featured-card {
  background: transparent;
  border: none;
  padding: 0;
  display: grid;
}

.featured-card-quiet {
  padding: 30px 0 0 0;
  border-top: 1px solid rgba(34, 30, 27, 0.06);
}

.featured-card-quiet .featured-copy {
  gap: 10px;
}

.featured-copy {
  display: grid;
  gap: 14px;
}

.featured-copy span {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
}

.featured-copy h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.featured-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 33ch;
}

.shop-preview {
  margin-top: 64px;
}

.home-gallery {
  display: grid;
  gap: 40px;
  margin-top: 64px;
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 28px;
}

.home-gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  min-height: 560px;
  box-shadow: none;
  background: #fff;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.home-gallery-card:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.home-gallery-card-large {
  min-height: 780px;
}

.home-gallery-side {
  display: grid;
  gap: 30px;
}

.home-gallery-card-slim {
  min-height: 330px;
}

.home-gallery-card img,
.home-gallery-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s ease;
}

.home-gallery-card:hover img,
.home-gallery-banner:hover img {
  transform: scale(1.01);
}

.home-gallery-banner {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 0;
  box-shadow: none;
}

.gallery-copy {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: #fff;
  text-shadow: none;
  z-index: 1;
}

.gallery-copy-soft {
  color: var(--text);
}

.gallery-copy h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  max-width: 16ch;
}

.gallery-copy p {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  opacity: 0.9;
  text-transform: uppercase;
}

.preview-actions-wide {
  justify-content: flex-start;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.preview-card {
  display: grid;
  gap: 18px;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(34, 30, 27, 0.08);
  box-shadow: none;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

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

.preview-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  min-height: 420px;
}

.preview-card .preview-copy {
  padding: 22px;
}

.preview-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.preview-card p {
  margin: 0;
  color: var(--muted);
}

.about-section {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 52px;
  margin-top: 72px;
  padding: 56px 0;
  border-top: 1px solid rgba(34, 30, 27, 0.08);
  border-bottom: 1px solid rgba(34, 30, 27, 0.08);
}

.about-highlights {
  display: grid;
  gap: 22px;
}

.about-highlights h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.newsletter-section {
  margin-top: 72px;
  padding: 50px 44px;
  background: rgba(209, 196, 180, 0.18);
  border-radius: 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}

.newsletter-copy h2 {
  margin-top: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.2rem);
  line-height: 1.08;
}

.newsletter-form {
  display: grid;
  gap: 16px;
}

.newsletter-form input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 18px 22px;
  color: var(--text);
}

.newsletter-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.page-hero-shop {
  display: grid;
  gap: 20px;
}

.product-card {
  min-height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.25s ease;
}

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

.product-card img {
  width: 100%;
  display: block;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}


.product-card .product-card-copy {
  padding: 18px 0 0;
  display: grid;
  gap: 8px;
}

.product-card h3 {
  font-size: 1.15rem;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}

.product-category {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  font-weight: 500;
}

.product-price {
  font-size: 0.88rem;
  color: rgba(34, 30, 27, 0.68);
}

.product-card a {
  color: inherit;
}

.product-card p {
  margin: 0;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.page-hero {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.page-hero-shop {
  display: grid;
  gap: 20px;
}

.product-page {
  display: grid;
  /* Increase left column width ~30-35% so main image is dominant */
  grid-template-columns: 1.65fr 0.85fr;
  gap: 58px;
  /* Move the entire product section below the fixed header */
  margin-top: 96px;
  padding-top: 0;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  align-items: start;
}

.product-gallery > img {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
  transform: translateZ(0);
  will-change: transform, opacity;
}

.product-gallery > img:first-child {
  grid-column: 1 / -1;
  min-height: 720px;
}

.product-gallery > img {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
  transform: translateZ(0);
  will-change: transform;
}

.product-details {
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(34, 30, 27, 0.08);
  border-radius: 0;
  padding: 46px;
  display: grid;
  gap: 18px;
  align-content: start;
  box-shadow: none;
  position: sticky;
  top: 48px; /* align sticky offset with page padding so it sits below header */
}

.product-details h1 {
  font-size: clamp(2.8rem, 3.8vw, 3.4rem);
  line-height: 1.05;
}

.product-details .product-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.product-details .product-price {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 8px;
}

.product-details ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
}

.product-details p {
  margin: 0;
  color: var(--muted);
}

.product-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.product-actions .button {
  width: fit-content;
}

.product-actions .button-secondary {
  border-color: var(--border);
}

.product-section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

@media (max-width: 1040px) {
  .hero-section,
  .about-section,
  .product-page,
  .home-gallery-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid,
  .preview-grid,
  .shop-grid,
  .home-gallery-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 20px 18px 32px;
  }

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

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
  }

  .site-nav.nav-visible {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-section {
    min-height: auto;
  }

  .preview-grid,
  .featured-grid,
  .shop-grid,
  .home-gallery-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-section {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: 340px;
    aspect-ratio: 1 / 1;
  }

  /* Mobile product page spacing: smaller gap under header */
  body[data-page="product"] .product-page {
    padding-top: 28px; /* 24-32px mobile target */
  }

  body[data-page="product"] .product-details {
    top: 28px;
  }
}

.checkout-page {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 46px;
  margin-top: 68px;
}

.checkout-stage,
.checkout-summary {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(34, 30, 27, 0.08);
  padding: 32px;
}

.checkout-form {
  display: grid;
  gap: 24px;
}

.checkout-form fieldset {
  border: 1px solid rgba(34, 30, 27, 0.08);
  padding: 24px;
  display: grid;
  gap: 18px;
}

.checkout-form legend {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.checkout-form label {
  display: grid;
  gap: 10px;
}

.checkout-form input,
.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.checkout-items,
.admin-products {
  display: grid;
  gap: 16px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: center;
}

.checkout-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.checkout-item-title {
  margin: 0 0 6px;
  font-weight: 600;
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 700;
}

.checkout-summary-note {
  margin-top: 16px;
}

.admin-page {
  display: grid;
  gap: 40px;
  margin-top: 72px;
}

.admin-form {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(34, 30, 27, 0.08);
  padding: 32px;
  background: rgba(255, 255, 255, 0.98);
}

.admin-form label {
  display: grid;
  gap: 10px;
  font-weight: 500;
}

.admin-form textarea {
  min-height: 120px;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.admin-products {
  display: grid;
  gap: 18px;
}

.admin-product-card {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(34, 30, 27, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-product-slug {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .checkout-page,
  .admin-page {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 20px 18px 32px;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
  }

  .site-nav.nav-visible {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-section {
    min-height: auto;
  }

  .preview-grid,
  .featured-grid,
  .shop-grid,
  .home-gallery-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-section {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: 340px;
    aspect-ratio: 1 / 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visual cleanup overrides: square corners and hero flush to top */
/* Make hero video start flush at the top of the viewport */
.hero-video {
  margin-top: 0 !important;
  /* ensure it fills the viewport area */
  min-height: 100vh;
}

/* Make all primary/secondary/tertiary buttons square */
button,
.button,
.button-primary,
.button-secondary,
.button-tertiary,
input[type="button"],
input[type="submit"] {
  border-radius: 0;
}

/* Make nav/cart controls square as requested (except functional badges) */
.nav-icon,
.menu-toggle {
  border-radius: 0;
}

/* Remove rounded corners from image and card containers site-wide */
.collection-card,
.home-gallery-card,
.home-gallery-banner,
.preview-card,
.product-details,
.product-card,
.featured-card,
.admin-product-card,
.checkout-stage,
.checkout-summary,
.home-gallery-card img,
.home-gallery-banner img,
.preview-card img,
.collection-card img,
.featured-item img,
.more-panel img,
.product-gallery img,
.product-card img,
.shop-hero-image,
.newsletter-section,
.admin-form {
  border-radius: 0;
}

/* Make newsletter input square */
.newsletter-form input {
  border-radius: 0;
}

/* Preserve circular badges (cart count bubble, etc.) */
.cart-count {
  border-radius: 0;
}

/* Product gallery: premium, minimal layout */
.gallery-main {
  width: 100%;
  display: block;
  background: transparent;
  /* Restore generous main image size for premium presentation */
  min-height: 720px;
  max-height: 1000px;
  overflow: hidden;
}
.gallery-main-inner {
  width: 100%;
  height: 100%;
  position: relative;
}
.gallery-main-inner img.gallery-current {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 0;
  align-items: flex-start;
  justify-content: flex-start; /* left-align the thumbnail strip beneath the main image */
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px 0 8px;
  scroll-snap-type: x proximity;
}
.gallery-thumb {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  overflow: hidden;
  border-radius: 0;
  scroll-snap-align: start;
  transition: border-color 180ms ease, opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
  display: block;
}
.gallery-thumb:hover,
.gallery-thumb:focus {
  transform: translateY(-1px);
  box-shadow: none;
  outline: none;
}
.gallery-thumb.selected {
  border-color: var(--text);
  background: #fff;
  opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,6,6,0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.lightbox-inner {
  position: relative;
  max-width: 1200px;
  width: 100%;
  max-height: 92vh;
  outline: none;
}
.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}
.lightbox-image {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  transition: transform 220ms ease;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 12px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  padding: 8px 12px;
  cursor: pointer;
}
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 38px; }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 38px; }
.lightbox-close { right: 12px; }

@media (max-width: 1040px) {
  .gallery-main { min-height: 520px; }
  .gallery-thumb { width: 90px; height: 90px; flex: 0 0 90px; }
}

@media (max-width: 760px) {
  .gallery-main { min-height: 420px; }
  .gallery-thumbs {
    gap: 10px;
    margin-top: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-thumb {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
  }
}


