/* =========================================================
   Home Decor page — calm, modern, modest.
   Loaded after styles.css; re-themes the shared colors to
   warm neutrals and adds the page's own sections.
   ========================================================= */

.theme-decor {
  --cream: #f5f2ed;       /* linen */
  --cream-deep: #ebe6de;  /* sand */
  --paper: #fbfaf7;
  --blush: #d8cfc2;
  --rose: #8b7d6b;        /* taupe accent */
  --rose-deep: #5f5b4b;   /* deep olive-stone */
  --wine: #3b3833;        /* charcoal */
  --ink: #2f2c28;
  --muted: #77716a;
  --line: #e2dcd2;
  --shadow: 0 24px 50px -30px rgba(47, 44, 40, .35);
}
.theme-decor h1 em, .theme-decor h2 em { color: var(--rose); }

.theme-decor .slot { background: linear-gradient(150deg, #efebe5, #e3ddd4); }
.theme-decor .slot-hint { color: var(--rose-deep); border-color: rgba(95, 91, 75, .3); }
.theme-decor .btn::before { background: var(--rose); }
.theme-decor .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.d-hero { padding: 150px 0 6rem; }
.d-hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4.5rem; align-items: center; }
.d-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.d-hero .lead { margin-bottom: 2.2rem; }
.d-hero-img { aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.d-hero-in > * { animation: rise 1s var(--ease) both; }
.d-hero-in > :nth-child(2) { animation-delay: .1s; }
.d-hero-in > :nth-child(3) { animation-delay: .2s; }
.d-hero-in > :nth-child(4) { animation-delay: .3s; }
.d-hero-img { animation: unveil 1.4s var(--ease) .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
/* wait for the loading screen before the hero animates in */
.js.has-loader:not(.page-ready) .d-hero-in > *,
.js.has-loader:not(.page-ready) .d-hero-img { animation-play-state: paused; }
@keyframes unveil { from { clip-path: inset(0 0 100% 0 round 20px); } to { clip-path: inset(0 0 0 0 round 20px); } }

.values { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; padding: 0; margin: 2.4rem 0 0; font-size: .9rem; color: var(--muted); }
.values li { display: flex; align-items: center; gap: .5rem; }
.values li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }

/* ---------- Christmas / winter edit (shown by date, see js/config.js) ----------
   Deep forest green with gentle snow, cream text and a touch of gold. */
.season {
  position: relative; overflow: hidden; color: #f5f0e6;
  background:
    radial-gradient(60% 70% at 80% 10%, rgba(214, 180, 110, .16), transparent 70%),
    linear-gradient(160deg, #24382d, #16241c);
}
.season[hidden] { display: none; }
.season .petal-canvas { z-index: 0; }
.season .container { position: relative; z-index: 1; }
.season .eyebrow { color: #d9bd7e; }
.season h2 em { color: #d9bd7e; }
.season-lead { color: rgba(245, 240, 230, .75); max-width: 46ch; margin: 1rem auto 0; }
.season-products { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.season .product { background: rgba(255, 255, 255, .06); border: 1px solid rgba(217, 189, 126, .22); color: #f5f0e6; box-shadow: none; }
.season .product-body p, .season p.product-specs { color: rgba(245, 240, 230, .7); }
.season .spec-size { color: #f5f0e6; }
.season .tag { color: #d9bd7e; }
.season .slot { background: linear-gradient(150deg, #2e4638, #1e3027); }
.season .slot-hint { color: #d9bd7e; border-color: rgba(217, 189, 126, .3); }
.season .slot-hint code { background: rgba(0, 0, 0, .2); color: #d9bd7e; }
.season .add-btn { color: #f5f0e6; border-color: rgba(245, 240, 230, .4); }
.season .add-btn:hover { background: #d9bd7e; border-color: #d9bd7e; color: #16241c; }
@media (max-width: 1000px) { .season-products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .season-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; } }

/* ---------- Categories ---------- */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.category { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.category .slot { aspect-ratio: 3 / 4; }
.category .slot img { transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.category:hover .slot img { transform: scale(1.05); }
.category-label {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
  padding: .8rem 1.1rem; border-radius: 14px;
  background: var(--label-bg, rgba(251, 250, 247, .9)); backdrop-filter: blur(6px);
  font-family: var(--serif); font-size: 1.3rem;
}
.category-label span { font-family: var(--sans); font-size: 1rem; transition: transform .4s var(--ease); }
.category:hover .category-label span { transform: translateX(4px); }
.category .slot-hint { inset: 12px 12px 80px; }

/* ---------- Shop ---------- */
.decor-products { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.decor-products .product-img { aspect-ratio: 1; }
.decor-products .product { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.decor-products .product:hover { transform: translateY(-4px); }
.decor-products .product-body { padding: 1.2rem 1.3rem 1.4rem; }
.decor-products h3 { font-size: 1.4rem; }
.decor-products .product-body p { font-size: .9rem; }

/* ---------- Styled spaces ---------- */
.spaces { display: grid; gap: 5rem; }
.space { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: center; }
.space:nth-child(even) .space-img { order: 2; }
.space-img { aspect-ratio: 16 / 11; }
.space-num { font-family: var(--serif); font-style: italic; color: var(--rose); font-size: 1.1rem; }
.space ul { list-style: none; padding: 0; margin: 1.2rem 0 2rem; }
.space li { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.space li span:last-child { color: var(--muted); }
.space p { color: var(--muted); }

/* ---------- Pair with flowers ---------- */
.pair {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center;
  padding: 3.5rem; border-radius: calc(var(--radius) + 8px);
  background: var(--wine); color: var(--light);
}
.pair h2 { margin-bottom: .3em; }
.pair h2 em { color: var(--blush); }
.pair p { color: rgba(245, 242, 237, .72); margin: 0; }
.pair .btn { background: var(--light); color: #2f2c28; border-color: var(--light); justify-self: end; }
.pair .btn:hover { color: var(--light); border-color: var(--rose); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .d-hero-grid, .space, .pair { grid-template-columns: 1fr; gap: 2.5rem; }
  .space:nth-child(even) .space-img { order: 0; }
  .decor-products { grid-template-columns: repeat(2, 1fr); }
  .pair .btn { justify-self: start; }
}
@media (max-width: 820px) {
  .categories {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem;
    margin-inline: -16px; padding-inline: 16px; scrollbar-width: none;
  }
  .categories::-webkit-scrollbar { display: none; }
  .category { scroll-snap-align: start; }
}
@media (max-width: 620px) {
  .d-hero { padding-top: 120px; }
  .decor-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .pair { padding: 2.2rem 1.4rem; }
}
@media (max-width: 359px) {
  .decor-products, .season-products { grid-template-columns: 1fr; }
}

/* Dark mode (follows the device setting) */
@media (prefers-color-scheme: dark) {
  .theme-decor {
    --cream: #161513;
    --cream-deep: #1f1d1a;
    --paper: #1c1a18;
    --rose: #b8a991;
    --rose-deep: #d2c7b3;
    --wine: #2c2a26;
    --ink: #ece7df;
    --muted: #a8a197;
    --line: #34312c;
    --shadow: 0 24px 50px -30px rgba(0, 0, 0, .75);
    --label-bg: rgba(28, 26, 24, .88);
  }
  .theme-decor .slot { background: linear-gradient(150deg, #24221f, #1c1a18); }
  .theme-decor .slot-hint { border-color: rgba(210, 199, 179, .3); }
}
