@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;600;700&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #2d2a26;
  --ink-soft: #4b4942;
  --ink-muted: #77736a;
  --cream: #f8f6f0;
  --paper: #ffffff;
  --accent: #8daabd;
  --accent-dark: #5f7f96;
  --butter: #d9b583;
  --border: rgba(95, 113, 124, 0.16);
  --shadow-soft: 0 24px 48px rgba(67, 60, 48, 0.14);
  --shadow-card: 0 18px 36px rgba(62, 50, 26, 0.12);
  font-family: 'Work Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background-color: var(--cream);
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--cream);
}

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

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(248, 246, 240, 0.88);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Fraunces', serif;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.35rem;
  background: var(--accent-dark);
  color: #fdfcfb;
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0 0.45rem;
}

.header-actions {
  display: flex;
  align-items: center;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 160ms ease;
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.site-main {
  flex: 1;
}

.wrapper {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  display: grid;
  gap: 3rem;
  padding: 6rem 0 4rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

.hero p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fdfcfb;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(95, 127, 150, 0.28);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  color: var(--ink);
}

.section {
  padding: 4rem 0 3rem;
}

.section-header {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 2.2rem;
  margin: 0 0 0.6rem;
}

.section-header p {
  max-width: 34rem;
  color: var(--ink-muted);
  margin: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(141, 170, 189, 0.18);
  color: var(--accent-dark);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  background: var(--paper);
  border-radius: 26px;
  padding: 1.6rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 1rem;
}

.product-card__image {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
}

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

.product-card__meta,
.product-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.product-card__meta {
  font-weight: 600;
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.product-card__tags span {
  background: rgba(217, 181, 131, 0.25);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.product-card__actions .btn {
  padding: 0.6rem 1.3rem;
  font-size: 0.95rem;
}

.product-card__actions a {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sample-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.notice,
.flash {
  border-radius: 18px;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.notice.info,
.flash.info {
  background: rgba(141, 170, 189, 0.18);
  color: var(--accent-dark);
}

.notice.success,
.flash.success {
  background: rgba(217, 181, 131, 0.25);
  color: var(--ink);
}

.notice.error,
.flash.error {
  background: rgba(214, 75, 71, 0.1);
  color: #8f1d1a;
}

.product-detail {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
  padding: 4rem 0 3rem;
}

.product-detail__gallery {
  background: var(--paper);
  border-radius: 30px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.product-detail__info {
  display: grid;
  gap: 1.4rem;
}

.product-detail__info h1 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 2.6rem;
}

.product-detail__price {
  font-size: 1.4rem;
  font-weight: 600;
}

.product-detail__description {
  line-height: 1.6;
  color: var(--ink-soft);
}

.product-detail__meta {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.cart-page {
  padding: 4rem 0 3rem;
}

.cart-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.cart-card {
  background: var(--paper);
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1.8rem;
  display: grid;
  gap: 1.2rem;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-list {
  display: grid;
  gap: 1rem;
}

.cart-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  display: grid;
  gap: 0.6rem;
}

.cart-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item__row {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cart-item__controls .stepper {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(233, 229, 220, 0.8);
  font-weight: 600;
  cursor: pointer;
}

.cart-item__controls .btn-small {
  padding: 0.35rem 0.9rem;
  background: rgba(214, 75, 71, 0.12);
  color: #a42a27;
  border: 1px solid rgba(214, 75, 71, 0.2);
}

.cart-note {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.btn-small {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
}

.btn-small.danger {
  padding: 0.4rem 0.9rem;
  background: rgba(214, 75, 71, 0.12);
  color: #a42a27;
  border: 1px solid rgba(214, 75, 71, 0.2);
}

.cart-empty {
  text-align: center;
  color: var(--ink-muted);
  padding: 1.5rem 0;
}

.cart-summary {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.cart-summary small {
  font-weight: 500;
  color: var(--ink-muted);
}

.checkout-form .form-grid {
  display: grid;
  gap: 1.1rem;
}

.checkout-form .two-column {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-field {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.input,
.textarea,
.select {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  font-family: inherit;
  font-size: 1rem;
}

.textarea {
  resize: vertical;
}

.radio-group {
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(248, 246, 240, 0.88);
  padding: 3rem 0 2.5rem;
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 1rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.copyright {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.admin-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #f9f6ef 0%, #eef2f4 100%);
  padding: 0 1.5rem 3rem;
}

.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 0;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.admin-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--border);
}

.admin-nav a.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fdfcfb;
  border: none;
}

.admin-card {
  background: var(--paper);
  border-radius: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 2rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(141, 170, 189, 0.18);
  color: var(--accent-dark);
}

@media (max-width: 760px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .hero-cta {
    width: 100%;
  }

  .product-detail {
    padding-top: 3rem;
  }
}
