/* 
   Manifest Decay — kawaii apparel storefront
   Layout inspired by Dropdead.world
*/

:root {
  /* Manifest Decay Palette */
  --c-bg: #fbf6ee;
  --c-bg-alt: #f5ecdb;
  --c-bg-warm: #fce8df;
  --c-fg: #2d2426;
  --c-fg-soft: #584b46;
  --c-peach: #e8826a;
  --c-peach-soft: #f8d6c8;
  --c-peach-deep: #7e3220;
  --c-pink: #f4c8d3;
  --c-pink-deep: #e293a4;
  --c-leaf: #6b8e5a;
  --c-border: #e0d3bd;
  --c-card: #ffffff;
  --c-focus: #2d2426;
  --c-error: #a4262c;

  /* Typography */
  --f-display: "Fredoka", "Quicksand", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-body: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Spacing (Fluid) */
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --container: 1440px;

  /* Transitions */
  --transition: 240ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-fg);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: var(--transition); }

/* --- Layout Components (Dropdead Style) --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(251, 246, 238, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 40px; width: auto; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 500; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-links a:hover { color: var(--c-peach); }

.hero-bleed {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 600px;
  background: var(--c-bg-alt);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: var(--gutter);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-bottom: 2rem;
  color: #fff; /* Assumes hero image has a dark overlay or is atmospheric */
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.hero-content h1 {
  font-family: var(--f-display);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  margin-bottom: 1rem;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--c-fg);
  color: var(--c-bg);
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--c-peach);
  transform: translateY(-2px);
}

/* Product Grid (Dropdead Pattern) */
.section-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  margin: 6rem 0 3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px; /* Hairline grid style */
  background: var(--c-border);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--c-bg);
  transition: var(--transition);
}

.product-card:hover {
  background: var(--c-bg-warm);
}

.product-image {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-info h3 {
  font-family: var(--f-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.product-info .price {
  font-weight: 700;
  color: var(--c-peach-deep);
}

/* Footer */
.site-footer {
  background: var(--c-fg);
  color: var(--c-bg);
  padding: 4rem var(--gutter);
  margin-top: 6rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-logo img { height: 60px; filter: brightness(0) invert(1); }

.footer-links h4 {
  font-family: var(--f-display);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a:hover { color: var(--c-peach); }

/* --- Utility --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
