:root {
  --bg: #fffaf3;
  --surface: #fffdf9;
  --text: #30231f;
  --muted: #7a625b;
  --accent: #c95773;
  --accent-dark: #873d4f;
  --accent-gold: #c08c4a;
  --card: #fff6ed;
  --border: #ead8c8;
  --shadow: 0 18px 50px rgba(72, 42, 30, 0.1);
  --shadow-hover: 0 26px 70px rgba(72, 42, 30, 0.16);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 227, 185, 0.58), transparent 31rem),
    radial-gradient(circle at 96% 18%, rgba(233, 171, 178, 0.32), transparent 26rem),
    linear-gradient(180deg, var(--bg) 0%, #fffdf9 46%, #fff8f0 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  background: rgba(255, 250, 243, 0.86);
  z-index: 10;
  border-bottom: 1px solid rgba(192, 140, 74, 0.24);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(72, 42, 30, 0.04);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.34rem;
  letter-spacing: 0.01em;
  color: var(--accent-dark);
}

.logo::after {
  content: "";
  position: absolute;
  left: 0.05rem;
  right: 0.05rem;
  bottom: -0.22rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  transform: scaleX(0.7);
  opacity: 0.72;
}

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

.nav-links a,
.footer-nav a {
  position: relative;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.22s ease;
}

.nav-links a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.28rem;
  height: 1px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease);
}

.nav-links a:hover,
.footer-nav a:hover {
  color: var(--accent-dark);
}

.nav-links a:hover::after,
.footer-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  padding: 4.5rem 0 3.25rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(192, 140, 74, 0.25);
  border-radius: 36px;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
  font-weight: 700;
  letter-spacing: 0;
}

h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.hero-copy,
.section-copy,
.cart-items p,
.checkout-note p {
  color: var(--muted);
  max-width: 620px;
}

.hero-copy {
  font-size: 1.08rem;
  margin: 1.25rem 0 1.65rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease), background 0.24s ease, border-color 0.24s ease;
  font-weight: 700;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.nav-links a:focus-visible,
.footer-nav a:focus-visible {
  outline: 3px solid rgba(192, 140, 74, 0.38);
  outline-offset: 4px;
}

.button-primary {
  color: #fffaf3;
  background: linear-gradient(135deg, #a84d5f 0%, #c95773 54%, #c08c4a 100%);
  box-shadow: 0 16px 28px rgba(135, 61, 79, 0.22);
}

.button-primary:hover {
  box-shadow: 0 22px 38px rgba(135, 61, 79, 0.28);
}

.hero-image {
  position: relative;
  animation: floatIn 0.8s var(--ease) both;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: -0.65rem 0.85rem 0.85rem -0.65rem;
  border: 1px solid rgba(192, 140, 74, 0.42);
  border-radius: 30px;
  transform: rotate(-2deg);
}

.hero-image img {
  position: relative;
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow-hover);
  transform: rotate(1.5deg);
}

.hero-slideshow {
  display: grid;
}

.hero-slideshow img,
.hero-slide {
  grid-area: 1 / 1;
}

.hero-slide {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.featured-section,
.page-content {
  padding: 2.5rem 0 4rem;
}

.section-heading {
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.65rem);
}

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

.card,
.cart-item,
.checkout-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease;
  animation: riseIn 0.7s var(--ease) both;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border: 1px solid rgba(192, 140, 74, 0.22);
  pointer-events: none;
  z-index: 1;
}

.card:hover {
  border-color: rgba(192, 140, 74, 0.52);
  box-shadow: var(--shadow-hover);
  transform: translateY(-7px);
}

.card img {
  width: 100%;
  aspect-ratio: 1.07;
  object-fit: cover;
  transition: transform 0.55s var(--ease), filter 0.35s ease;
}

.card:hover img {
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.045);
}

.card-content,
.cart-item-content,
.product-detail-content,
.checkout-form {
  padding: 1.25rem;
}

.card-content {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.96), var(--surface));
}

.card-content h3,
.product-detail h2,
.cart-item-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card-content p,
.product-detail-description,
.cart-item-meta,
.checkout-note p {
  margin: 0;
}

.card-content .price,
.product-price,
.cart-total {
  font-weight: 700;
  margin-top: 1rem;
  color: var(--accent-dark);
}

.product-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  gap: 0.75rem;
}

.product-action .button {
  width: 100%;
}

.page-heading {
  margin-bottom: 2rem;
}

.product-detail {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.product-detail img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  min-height: 380px;
  box-shadow: var(--shadow);
}

.product-detail-content {
  display: grid;
  gap: 1rem;
}

.product-detail-content h2 {
  font-size: clamp(2rem, 2.5vw, 2.5rem);
}

.product-detail-description {
  color: var(--muted);
}

.cart-section {
  display: grid;
  gap: 1.75rem;
}

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

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
}

.cart-item img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item-content {
  display: grid;
  gap: 0.35rem;
}

.cart-item-meta,
.cart-total,
.cart-summary h2 {
  color: var(--muted);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.remove-button,
.add-button {
  border: 1px solid rgba(192, 140, 74, 0.24);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: #fff8f0;
  color: var(--accent-dark);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(72, 42, 30, 0.06);
  transition: transform 0.22s var(--ease), background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.remove-button:hover,
.add-button:hover {
  background: #fff0df;
  border-color: rgba(192, 140, 74, 0.5);
  box-shadow: 0 12px 26px rgba(72, 42, 30, 0.1);
  transform: translateY(-1px);
}

.cart-summary {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.checkout-form {
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.admin-login-form {
  max-width: 460px;
}

.checkout-form label {
  font-weight: 700;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fffdf9;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px rgba(192, 140, 74, 0.14);
  outline: none;
}

.checkout-note {
  padding: 1.5rem;
  border-radius: 8px;
  background: #fff6ed;
  border: 1px solid var(--border);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.admin-form {
  position: sticky;
  top: 6.2rem;
}

.admin-stack {
  display: grid;
  gap: 1rem;
}

.admin-stack .admin-form {
  position: static;
}

.admin-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-form-actions .button:not(.button-primary) {
  background: #fff8f0;
  color: var(--accent-dark);
  border: 1px solid rgba(192, 140, 74, 0.35);
}

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

.admin-users-section {
  margin-top: 2rem;
}

.admin-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.admin-item img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
}

.admin-item-content h3 {
  margin-bottom: 0.35rem;
}

.admin-item-content p {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(192, 140, 74, 0.22);
  background: rgba(255, 250, 243, 0.58);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

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

@media (max-width: 860px) {
  .hero-content,
  .product-detail,
  .header-inner,
  .site-footer .footer-inner {
    grid-template-columns: 1fr;
  }

  .product-detail img {
    min-height: 260px;
  }

  .hero::before {
    inset: 0.75rem;
  }
}

@media (max-width: 680px) {
  .site-header,
  .site-footer {
    padding: 1rem 0;
  }

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

  .nav-links,
  .footer-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .product-grid,
  .cart-section {
    gap: 1rem;
  }

  .cart-item,
  .admin-item {
    grid-template-columns: 1fr;
  }

  .cart-item-actions,
  .admin-item-actions {
    flex-direction: row;
  }

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

  .admin-form {
    position: static;
  }
}
