@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Typography */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', Arial, Helvetica, sans-serif;
  --font-ui: 'DM Sans', Arial, Helvetica, sans-serif;

  /* Brand */
  --color-bg: #fffdfc;
  --color-surface: #f8f4f5;
  --color-surface-soft: #fbf8f9;

  --color-primary: #c88fa4;
  --color-primary-hover: #b97d93;
  --color-primary-soft: #f2e5e9;

  --color-text: #30292c;
  --color-text-soft: #766d70;
  --color-text-muted: #9a9194;

  --color-border: #ebe4e6;
  --color-border-dark: #d8ced1;

  --color-white: #ffffff;
  --color-black: #171315;

  --color-sale: #b76e79;
  --color-success: #667a68;

  /* Layout */
  --container-width: 1600px;
  --container-padding: 18px;

  --header-height: 72px;

  /* Spacing */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Motion */
  --transition-fast: 180ms ease;
  --transition-base: 320ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 700ms cubic-bezier(0.22, 1, 0.36, 1);

  /* Shadows */
  --shadow-soft: 0 12px 40px rgba(48, 41, 44, 0.06);
  --shadow-floating: 0 14px 42px rgba(48, 41, 44, 0.12);

  /* Media */
  --ratio-product: 4 / 5;
  --ratio-editorial: 3 / 4;
  --ratio-landscape: 16 / 9;
}

/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  background: var(--color-bg);
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;

  background: var(--color-bg);
  color: var(--color-text);

  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-menu-open,
body.is-modal-open {
  overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  margin: 0;
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

input,
textarea,
select {
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote {
  margin: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* =========================================================
   SELECTION
========================================================= */

::selection {
  background: var(--color-primary-soft);
  color: var(--color-text);
}

/* =========================================================
   SCROLLBAR
========================================================= */

html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-dark) transparent;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-dark);
  border-radius: var(--radius-pill);
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
h4,
.display-text,
.editorial-title {
  font-family: var(--font-display);
  font-weight: 400;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

h4 {
  font-size: 1.5rem;
  line-height: 1.2;
}

p {
  color: var(--color-text-soft);
}

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.text-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;

  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: var(--color-text-muted);
}

.text-small {
  font-size: 0.82rem;
  line-height: 1.5;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-soft {
  color: var(--color-text-soft);
}

.text-center {
  text-align: center;
}

/* =========================================================
   LAYOUT
========================================================= */

.container {
  width: min(
    calc(100% - (var(--container-padding) * 2)),
    var(--container-width)
  );

  margin-inline: auto;
}

.container-fluid {
  width: 100%;
  padding-inline: var(--container-padding);
}

.section {
  position: relative;
  padding-block: var(--space-4xl);
}

.section-tight {
  padding-block: var(--space-3xl);
}

.section-large {
  padding-block: var(--space-5xl);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}

/* =========================================================
   LINKS
========================================================= */

.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 500;

  transition:
    color var(--transition-fast),
    opacity var(--transition-fast);
}

.link::after {
  content: '';
  position: absolute;

  left: 0;
  bottom: -3px;

  width: 100%;
  height: 1px;

  background: currentColor;

  transform: scaleX(0);
  transform-origin: right;

  transition: transform var(--transition-base);
}

.link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link:hover {
  color: var(--color-primary-hover);
}

/* =========================================================
   BUTTONS
========================================================= */

.button {
  min-height: 46px;
  padding: 12px 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border-radius: var(--radius-pill);

  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 500;

  transition:
    background var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base);
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--color-text);
  color: var(--color-white);
}

.button-primary:hover {
  background: var(--color-primary-hover);
}

.button-secondary {
  background: transparent;
  color: var(--color-text);

  border: 1px solid var(--color-border-dark);
}

.button-secondary:hover {
  border-color: var(--color-text);
}

.button-soft {
  background: var(--color-primary-soft);
  color: var(--color-text);
}

.button-text {
  min-height: auto;
  padding: 0;

  border-radius: 0;

  background: transparent;
  color: var(--color-text);
}

/* =========================================================
   IMAGE / MEDIA
========================================================= */

.media {
  position: relative;
  overflow: hidden;

  background: var(--color-surface);
}

.media img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform var(--transition-slow),
    opacity var(--transition-base);
}

.media-product {
  aspect-ratio: var(--ratio-product);
}

.media-editorial {
  aspect-ratio: var(--ratio-editorial);
}

.media-landscape {
  aspect-ratio: var(--ratio-landscape);
}

.media-square {
  aspect-ratio: 1 / 1;
}

.media-contain img {
  object-fit: contain;
}

.media-hover:hover img {
  transform: scale(1.025);
}

/* =========================================================
   PRODUCT
========================================================= */

.product-card {
  position: relative;
  min-width: 0;
}

.product-card-media {
  position: relative;
  overflow: hidden;

  aspect-ratio: var(--ratio-product);

  background: var(--color-surface);
}

.product-card-media img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    opacity var(--transition-base),
    transform var(--transition-slow);
}

.product-card-media .product-image-hover {
  position: absolute;
  inset: 0;

  opacity: 0;
}

.product-card:hover .product-image-cover {
  opacity: 0;
}

.product-card:hover .product-image-hover {
  opacity: 1;
}

.product-card:hover .product-card-media img {
  transform: scale(1.018);
}

.product-card-content {
  padding-top: var(--space-sm);
}

.product-card-title {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.product-card-category {
  margin-top: 2px;

  font-size: 0.76rem;
  color: var(--color-text-muted);
}

.product-card-price {
  margin-top: 4px;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;

  font-family: var(--font-ui);
  font-size: 0.84rem;
}

.product-price-current {
  color: var(--color-text);
}

.product-price-original {
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-card-badges {
  position: absolute;

  top: 10px;
  left: 10px;

  z-index: 2;

  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* =========================================================
   BADGES
========================================================= */

.badge {
  width: fit-content;
  padding: 5px 9px;

  border-radius: var(--radius-pill);

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);

  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;

  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-sale {
  color: var(--color-sale);
}

.badge-new {
  color: var(--color-primary-hover);
}

.badge-soldout {
  color: var(--color-text-soft);
}

/* =========================================================
   GRID
========================================================= */

.grid {
  display: grid;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 32px 12px;
}

/* =========================================================
   DIVIDER
========================================================= */

.divider {
  width: 100%;
  height: 1px;

  background: var(--color-border);
}

/* =========================================================
   VISIBILITY / ACCESSIBILITY
========================================================= */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  white-space: nowrap;

  border: 0;
}

.skip-link {
  position: fixed;

  top: 12px;
  left: 12px;

  z-index: 9999;

  padding: 10px 14px;

  background: var(--color-text);
  color: var(--color-white);

  border-radius: var(--radius-sm);

  transform: translateY(-150%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================================================
   FOCUS
========================================================= */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* =========================================================
   PARALLAX
========================================================= */

[data-parallax] {
  --parallax-y: 0px;

  transform: translate3d(
    0,
    var(--parallax-y),
    0
  );

  will-change: transform;
}

/* =========================================================
   REVEAL
========================================================= */

[data-reveal] {
  opacity: 0;

  transform: translateY(24px);

  transition:
    opacity var(--transition-slow),
    transform var(--transition-slow);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   LOADING
========================================================= */

.is-loading {
  pointer-events: none;
}

.skeleton {
  position: relative;
  overflow: hidden;

  background: var(--color-surface);
}

.skeleton::after {
  content: '';

  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.65),
    transparent
  );

  transform: translateX(-100%);
  animation: skeleton-loading 1.4s infinite;
}

@keyframes skeleton-loading {
  to {
    transform: translateX(100%);
  }
}

/* =========================================================
   UTILITIES
========================================================= */

.hidden {
  display: none !important;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

  [data-parallax] {
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   ICONS
========================================================= */

.icon {
  width: 18px;
  height: 18px;

  display: inline-block;
  flex: 0 0 auto;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

.icon-lg {
  width: 22px;
  height: 22px;
}

.site-logo img {
  display: block;

  width: auto;
  height: auto;

  max-width: 132px;
  max-height: 42px;

  object-fit: contain;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
}

.footer-logo img {
  display: block;

  width: auto;
  height: auto;

  max-width: 132px;
  max-height: 42px;

  object-fit: contain;
}