/*
Theme Name: Dino Delights
Theme URI: https://littledinodelights.com
Author: Little Dino Delights
Description: Cretaceous storefront theme — bone parchment, fern green, fossil amber, and a hint of goth. Built for WooCommerce.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: dinodelights
*/

:root {
  --ldd-bone: #f2ead8;
  --ldd-parchment: #e7dbc0;
  --ldd-ink: #241c29;
  --ldd-plum: #362a3e;
  --ldd-fern: #35543c;
  --ldd-moss: #87a878;
  --ldd-amber: #d98e32;
  --ldd-magma: #c25543;
  --ldd-display: "Rockwell Nova", Rockwell, "Roboto Slab", "Bookman Old Style", "Iowan Old Style", Georgia, serif;
}

::selection {
  background: var(--ldd-amber);
  color: var(--ldd-ink);
}

body {
  background-color: var(--ldd-bone);
  background-image:
    radial-gradient(rgba(54, 42, 62, 0.05) 1px, transparent 1.5px),
    radial-gradient(rgba(53, 84, 60, 0.045) 1px, transparent 1.5px);
  background-size: 28px 28px, 42px 42px;
  background-position: 0 0, 14px 21px;
}

h1, h2, h3, h4,
.wp-block-post-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--ldd-display);
  letter-spacing: 0.01em;
}

/* ---------- Header ---------- */

.ldd-header {
  background: var(--ldd-ink);
  background-image:
    radial-gradient(rgba(217, 142, 50, 0.22) 1px, transparent 1.6px),
    radial-gradient(rgba(242, 234, 216, 0.10) 1px, transparent 1.6px);
  background-size: 90px 90px, 60px 60px;
  background-position: 20px 15px, 45px 40px;
  border-bottom: 4px solid var(--ldd-amber);
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.ldd-logo { display: inline-flex; align-items: center; text-decoration: none; }
.ldd-logo svg { height: 58px; width: auto; display: block; }

.ldd-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.ldd-nav a {
  color: var(--ldd-bone);
  font-family: var(--ldd-display);
  font-size: 1.05rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ldd-nav a:hover {
  color: var(--ldd-amber);
  text-decoration: underline wavy var(--ldd-amber) 2px;
  text-underline-offset: 6px;
}

.ldd-nav .ldd-cart-link {
  border: 2px solid var(--ldd-amber);
  border-radius: 2px;
  padding: 0.35rem 0.9rem;
  box-shadow: 3px 3px 0 rgba(217, 142, 50, 0.35);
}

/* ---------- Marquee strip ---------- */

.ldd-marquee {
  background: var(--ldd-fern);
  color: var(--ldd-bone);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.55rem 0;
  border-bottom: 3px solid var(--ldd-ink);
  font-family: var(--ldd-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.ldd-marquee-inner {
  display: inline-block;
  animation: ldd-scroll 30s linear infinite;
}

@keyframes ldd-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ldd-marquee-inner { animation: none; }
}

/* ---------- Hero ---------- */

.ldd-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 4.5rem 2rem 3.5rem;
  max-width: 1150px;
  margin: 0 auto;
}

.ldd-hero-copy { max-width: 560px; }

.ldd-hero-copy h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.04;
  margin: 0 0 1rem;
  color: var(--ldd-ink);
}

.ldd-hero-copy h1 em {
  font-style: normal;
  color: var(--ldd-fern);
  text-decoration: underline wavy var(--ldd-amber) 3px;
  text-underline-offset: 8px;
}

.ldd-hero-copy p {
  font-size: 1.2rem;
  color: var(--ldd-plum);
  margin-bottom: 1.8rem;
}

.ldd-hero-art svg { width: min(380px, 80vw); height: auto; display: block; }

/* ---------- Buttons ---------- */

.wp-element-button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button {
  background: var(--ldd-amber) !important;
  color: var(--ldd-ink) !important;
  font-family: var(--ldd-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--ldd-ink) !important;
  border-radius: 2px !important;
  box-shadow: 4px 4px 0 var(--ldd-ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wc-block-components-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ldd-ink);
  background: var(--ldd-amber) !important;
}

.wp-element-button:active,
.wp-block-button__link:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ldd-ink);
}

/* ---------- Section headings ---------- */

.ldd-section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--ldd-ink);
  margin: 3rem 0 0.4rem;
}

.ldd-section-title::before,
.ldd-section-title::after {
  content: " ✦ ";
  color: var(--ldd-amber);
}

.ldd-section-sub {
  text-align: center;
  color: var(--ldd-plum);
  margin: 0 0 2rem;
  font-style: italic;
}

/* ---------- WooCommerce product grid ---------- */

.woocommerce ul.products li.product {
  background: #faf5e9;
  border: 2px solid var(--ldd-ink);
  border-radius: 3px;
  box-shadow: 5px 5px 0 var(--ldd-fern);
  padding: 1rem 1rem 1.4rem;
  text-align: center;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.woocommerce ul.products li.product:hover {
  transform: translate(-3px, -3px) rotate(-0.6deg);
  box-shadow: 9px 9px 0 var(--ldd-fern);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.15rem;
  color: var(--ldd-ink);
  padding-top: 0.6rem;
}

.woocommerce ul.products li.product .price {
  color: var(--ldd-fern);
  font-family: var(--ldd-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.woocommerce span.onsale {
  background: var(--ldd-magma);
  color: var(--ldd-bone);
  border: 2px solid var(--ldd-ink);
  border-radius: 999px;
  font-family: var(--ldd-display);
}

/* ---------- Category cards ---------- */

.ldd-cats {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 2rem 3.5rem;
}

.ldd-cat-card {
  background: var(--ldd-plum);
  color: var(--ldd-bone);
  border: 2px solid var(--ldd-ink);
  border-radius: 3px;
  box-shadow: 5px 5px 0 var(--ldd-amber);
  padding: 1.6rem 2.2rem;
  text-align: center;
  text-decoration: none;
  font-family: var(--ldd-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  min-width: 200px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.ldd-cat-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--ldd-amber);
  color: var(--ldd-amber);
}

.ldd-cat-card .ldd-cat-emoji { display: block; font-size: 2rem; margin-bottom: 0.5rem; }

/* ---------- Content wrapper ---------- */

.ldd-main {
  max-width: 1150px;
  margin: 0 auto;
  padding: 1rem 2rem 3rem;
}

/* ---------- Footer ---------- */

.ldd-footer {
  background: var(--ldd-ink);
  color: var(--ldd-bone);
  border-top: 4px solid var(--ldd-amber);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.95rem;
}

.ldd-footer a { color: var(--ldd-amber); }

.ldd-footer .ldd-footer-tagline {
  font-family: var(--ldd-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ldd-moss);
  margin-bottom: 0.6rem;
}
