/* ============================================================
   Josan Kim Online Store - Main Stylesheet
   CSS Custom Properties, Base Styles, Typography, Layout
   ============================================================ */

/* --- Color System (CSS Variables) --- */
:root {
  --primary-pink: #D81B60;
  --soft-rose: #F4A6C1;
  --blush: #FCE7EF;
  --main-bg: #FFF8FA;
  --dark-rose: #7A173F;
  --white: #FFFFFF;
  --charcoal: #333333;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* --- Base Styles --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background-color: var(--main-bg);
  overflow-x: hidden;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

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

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

button {
  font-family: 'DM Sans', sans-serif;
}

/* --- Selection --- */
::selection {
  background-color: var(--soft-rose);
  color: var(--dark-rose);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--blush);
}

::-webkit-scrollbar-thumb {
  background: var(--soft-rose);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-pink);
}

/* --- Layout Utilities --- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-spacing {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 3.5rem 0;
  }
}

/* --- Section Headings --- */
.section-heading {
  font-family: 'Playfair Display', serif;
  color: var(--dark-rose);
  font-weight: 700;
}

.section-subheading {
  color: #777;
  max-width: 600px;
  margin: 0.75rem auto 0;
  line-height: 1.6;
}

/* --- Image Placeholder --- */
.img-placeholder {
  background: linear-gradient(135deg, var(--blush) 0%, var(--soft-rose) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-pink);
  font-size: 2.5rem;
  overflow: hidden;
}

/* --- Focus Visible --- */
*:focus-visible {
  outline: 2px solid var(--primary-pink);
  outline-offset: 2px;
}

/* --- Skip to Content (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--primary-pink);
  color: white;
  z-index: 10000;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}
