/*
Theme Name: Cradlora
Theme URI: https://cradlora.com
Update URI: https://cradlora.com
Author: Cradlora
Description: A custom WooCommerce storefront for baby shoes, clothing, toys, and gifts.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: cradlora
*/

:root {
  --cr-ink: #17243d;
  --cr-paper: #fffdf9;
  --cr-white: #ffffff;
  --cr-blue: #bdd7df;
  --cr-blue-deep: #284e62;
  --cr-coral: #d96f57;
  --cr-yellow: #e8c56a;
  --cr-green: #54786c;
  --cr-pink: #e9c6c3;
  --cr-line: #d9dee2;
  --cr-muted: #667085;
  --cr-display: Georgia, "Times New Roman", serif;
  --cr-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cr-shell: min(1400px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cr-ink);
  background: var(--cr-paper);
  font-family: var(--cr-body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}
.cr-shell { width: var(--cr-shell); margin-inline: auto; }
.cr-eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.cr-display {
  margin: 0;
  font-family: var(--cr-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}
.cr-button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid var(--cr-ink);
  border-radius: 2px;
  background: var(--cr-ink);
  color: var(--cr-white);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.cr-button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--cr-coral);
  border-color: var(--cr-coral);
  color: var(--cr-white);
  transform: translateY(-1px);
}
.cr-button--light { background: var(--cr-white); color: var(--cr-ink); border-color: var(--cr-white); }
.cr-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  font-weight: 750;
}

.announcement-bar {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 20px;
  background: var(--cr-ink);
  color: var(--cr-white);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(23, 36, 61, .12);
  background: rgba(255, 253, 249, .96);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}
.brand__name {
  font-family: var(--cr-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.brand__tagline {
  margin-top: 6px;
  color: var(--cr-muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .17em;
}
.primary-nav ul,
.header-actions,
.footer-nav,
.product-grid,
.category-grid,
.age-grid,
.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-nav > ul { display: flex; align-items: center; justify-content: center; gap: 28px; }
.primary-nav a { font-size: 14px; font-weight: 700; }
.primary-nav a:hover { color: var(--cr-coral); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions a,
.menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--cr-ink);
}
.header-actions svg,
.menu-toggle svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.cart-link { position: relative; }
.cart-count {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--cr-coral);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.menu-toggle { display: none; cursor: pointer; }

.hero {
  min-height: clamp(600px, 76vh, 780px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--cr-blue);
  background-position: center;
  background-size: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 36, 61, .14);
}
.hero--empty::after {
  content: "CRADLORA   /   LITTLE DAYS, BIG DISCOVERIES";
  position: absolute;
  right: 5vw;
  bottom: 5vh;
  max-width: 46vw;
  color: rgba(255, 255, 255, .55);
  font-family: var(--cr-display);
  font-size: clamp(22px, 4.5vw, 72px);
  line-height: 1;
  text-align: right;
}
.hero__content { position: relative; z-index: 2; width: min(620px, 90%); color: var(--cr-white); }
.hero h1 { max-width: 620px; font-size: clamp(52px, 6vw, 88px); }
.hero__copy { max-width: 520px; margin: 24px 0 30px; font-size: clamp(17px, 1.7vw, 21px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.trust-rail { border-bottom: 1px solid var(--cr-line); background: var(--cr-white); }
.trust-list { min-height: 82px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.trust-list li { padding: 8px 20px; border-right: 1px solid var(--cr-line); text-align: center; }
.trust-list li:last-child { border-right: 0; }
.trust-list strong { display: block; font-family: var(--cr-display); font-size: 19px; font-weight: 600; }
.trust-list span { display: block; margin-top: 3px; color: var(--cr-muted); font-size: 12px; }

.section { padding: 96px 0; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}
.section-heading h2 { max-width: 700px; font-size: clamp(40px, 4.8vw, 66px); }
.section-heading p { max-width: 470px; margin: 0; color: var(--cr-muted); }
.category-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: repeat(2, minmax(270px, 1fr));
  gap: 18px;
}
.category-card {
  min-height: 310px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--cr-pink);
  background-position: center;
  background-size: cover;
}
.category-card:first-child { grid-row: 1 / 3; min-height: 650px; background-color: var(--cr-yellow); }
.category-card:nth-child(2) { background-color: var(--cr-blue); }
.category-card:nth-child(3) { background-color: #b8c7ae; }
.category-card::before { content: ""; position: absolute; inset: 0; background: rgba(23, 36, 61, .18); }
.category-card--empty::after {
  content: attr(data-mark);
  position: absolute;
  top: 28px;
  right: 28px;
  color: rgba(255, 255, 255, .68);
  font-family: var(--cr-display);
  font-size: clamp(30px, 4vw, 64px);
}
.category-card__content { position: relative; z-index: 2; padding: 34px; color: var(--cr-white); }
.category-card h3 { margin: 0 0 10px; font-family: var(--cr-display); font-size: clamp(36px, 4vw, 58px); font-weight: 400; line-height: 1; }
.category-card p { max-width: 420px; margin: 0 0 20px; }

.products-section { background: var(--cr-white); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; }
.product-card__media {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #eef1f2;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card__media img { transform: scale(1.025); }
.product-card__placeholder { color: #8a98a2; font-family: var(--cr-display); font-size: 24px; }
.product-card__body { padding: 18px 2px 0; }
.product-card__category { margin-bottom: 6px; color: var(--cr-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.product-card h3 { margin: 0; font-family: var(--cr-display); font-size: 24px; font-weight: 500; line-height: 1.2; }
.product-card .price { display: block; margin-top: 9px; font-size: 14px; font-weight: 750; }
.collection-pending {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 40px;
  border: 1px solid var(--cr-line);
  background: #f2f7f7;
  text-align: center;
}
.collection-pending h3 { margin: 0 0 8px; font-family: var(--cr-display); font-size: 34px; font-weight: 400; }
.collection-pending p { max-width: 580px; margin: 0; color: var(--cr-muted); }

.story-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr); min-height: 650px; }
.story-band__media {
  min-height: 600px;
  position: relative;
  background-color: var(--cr-green);
  background-position: center;
  background-size: cover;
}
.story-band__media.cr-empty::after {
  content: "CRADLORA / WAREHOUSE TO HOME";
  position: absolute;
  left: 36px;
  bottom: 30px;
  color: rgba(255, 255, 255, .58);
  font-family: var(--cr-display);
  font-size: clamp(30px, 5vw, 70px);
  line-height: 1;
}
.story-band__content { display: flex; flex-direction: column; justify-content: center; padding: 7vw; background: var(--cr-ink); color: var(--cr-white); }
.story-band__content h2 { max-width: 560px; font-size: clamp(42px, 5vw, 70px); }
.story-band__content p { max-width: 570px; margin: 24px 0 30px; color: #dbe1ea; font-size: 18px; }

.age-section { background: #eef4f5; }
.age-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #b8c7cc; border-left: 1px solid #b8c7cc; }
.age-card { min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; border-right: 1px solid #b8c7cc; border-bottom: 1px solid #b8c7cc; transition: background-color .2s ease, color .2s ease; }
.age-card:hover { background: var(--cr-blue-deep); color: var(--cr-white); }
.age-card__number { font-size: 12px; font-weight: 800; }
.age-card h3 { margin: 0; font-family: var(--cr-display); font-size: 32px; font-weight: 400; }
.age-card p { margin: 8px 0 0; font-size: 13px; opacity: .78; }

.warehouse { background: var(--cr-coral); color: var(--cr-white); }
.warehouse__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: center; }
.warehouse h2 { font-size: clamp(42px, 5vw, 70px); }
.warehouse__lead { max-width: 600px; margin: 22px 0 0; font-size: 18px; }
.warehouse__facts { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.5); }
.warehouse__facts li { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.5); }
.warehouse__facts strong { font-family: var(--cr-display); font-size: 25px; font-weight: 400; }
.warehouse__facts span { align-self: center; }

.support-strip { padding: 54px 0; background: var(--cr-yellow); }
.support-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.support-strip h2 { font-size: clamp(32px, 4vw, 52px); }
.support-strip p { max-width: 600px; margin: 10px 0 0; }

.site-footer { background: var(--cr-white); border-top: 1px solid var(--cr-line); }
.footer-main { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 48px; padding: 72px 0; }
.footer-brand p { max-width: 330px; color: var(--cr-muted); }
.footer-column h3 { margin: 0 0 18px; font-size: 12px; text-transform: uppercase; letter-spacing: .13em; }
.footer-nav { display: grid; gap: 11px; color: #415067; font-size: 14px; }
.footer-nav a:hover { color: var(--cr-coral); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 1px solid var(--cr-line); color: var(--cr-muted); font-size: 12px; }

.site-main--inner { width: var(--cr-shell); min-height: 50vh; margin: 0 auto; padding: 70px 0 100px; }
.page-title,
.woocommerce-products-header__title { margin: 0 0 40px; font-family: var(--cr-display); font-size: clamp(44px, 5vw, 68px); font-weight: 400; }
.entry-content { max-width: 880px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }

.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 18px; margin: 0; padding: 0; }
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product a img { aspect-ratio: 4 / 5; object-fit: cover; margin: 0 0 16px; background: #eef1f2; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0; font-family: var(--cr-display); font-size: 23px; font-weight: 500; }
.woocommerce ul.products li.product .price { color: var(--cr-ink); font-size: 14px; font-weight: 750; }
.woocommerce ul.products li.product .button { width: 100%; margin-top: 14px; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error { border-top-color: var(--cr-coral); background: #f5f7f8; }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.woocommerce div.product div.images,
.woocommerce div.product div.summary { width: auto; float: none; }
.woocommerce div.product .product_title { font-family: var(--cr-display); font-size: clamp(40px, 5vw, 64px); font-weight: 400; line-height: 1.05; }
.woocommerce div.product p.price { color: var(--cr-ink); font-size: 22px; }

@media (max-width: 1100px) {
  :root { --cr-shell: min(100% - 36px, 1400px); }
  .site-header__inner { gap: 18px; }
  .primary-nav > ul { gap: 16px; }
  .primary-nav a { font-size: 12px; }
  .product-grid,
  .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: 1.2fr repeat(2, 1fr); }
  .footer-column:last-child { grid-column: 2; }
}

@media (max-width: 820px) {
  body.admin-bar .site-header { top: 46px; }
  :root { --cr-shell: min(100% - 28px, 1400px); }
  .site-header__inner { min-height: 68px; grid-template-columns: auto 1fr auto; }
  .brand__name { font-size: 23px; }
  .brand__tagline { display: none; }
  .menu-toggle { display: inline-flex; justify-self: start; }
  .site-header .brand { justify-self: center; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 22px 28px;
    border-bottom: 1px solid var(--cr-line);
    background: var(--cr-paper);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--cr-line); font-size: 15px; }
  .header-actions .account-link { display: none; }
  .hero { min-height: 650px; align-items: flex-end; padding-bottom: 64px; }
  .hero::before { background: rgba(23, 36, 61, .28); }
  .hero--empty::after { top: 42px; right: 20px; bottom: auto; max-width: 75vw; font-size: 34px; }
  .hero h1 { font-size: clamp(48px, 14vw, 68px); }
  .trust-list { grid-template-columns: 1fr 1fr; padding: 12px 0; }
  .trust-list li { min-height: 62px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--cr-line); }
  .trust-list li:nth-child(2) { border-right: 0; }
  .trust-list li:nth-child(3), .trust-list li:nth-child(4) { border-bottom: 0; }
  .section { padding: 72px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .category-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .category-card:first-child { grid-row: auto; min-height: 510px; }
  .category-card { min-height: 330px; }
  .product-grid,
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-band { grid-template-columns: 1fr; }
  .story-band__media { min-height: 440px; }
  .story-band__content { padding: 70px 30px; }
  .age-grid { grid-template-columns: 1fr 1fr; }
  .warehouse__inner { grid-template-columns: 1fr; gap: 40px; }
  .support-strip__inner { align-items: flex-start; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 42px 26px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-column:last-child { grid-column: auto; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  .announcement-bar { font-size: 11px; }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .cr-button { width: 100%; }
  .category-card__content { padding: 26px; }
  .product-grid,
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 30px 10px; }
  .product-card h3,
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 19px; }
  .product-card__body { padding-top: 12px; }
  .age-grid { grid-template-columns: 1fr; }
  .age-card { min-height: 170px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand,
  .footer-column:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
