/*
 * Cottontail Cottage storefront skin.
 * The visual language is a compact antique catalogue: parchment paper,
 * sage ink, botanical engraving, and quiet framed commerce controls.
 */

:root {
  --cc-surface: #fcf9f0;
  --cc-surface-soft: #f6f3ea;
  --cc-surface-mid: #f1eee5;
  --cc-surface-strong: #e5e2da;
  --cc-ink: #1c1c17;
  --cc-muted: #444840;
  --cc-sage: #506148;
  --cc-sage-dark: #33462f;
  --cc-gold: #9a6a3e;
  --cc-rose: #7d5454;
  --cc-rose-soft: #fec7c7;
  --cc-line: #d9d2c1;
  --cc-line-strong: #c7bdab;
  --cc-white: #fffdf7;
  --cc-shadow: 0 10px 30px rgba(80, 65, 40, 0.08);
  --cc-font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --cc-font-body: "Noto Serif", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--cc-surface);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--cc-ink);
  font-family: var(--cc-font-body);
  line-height: 1.55;
  background:
    linear-gradient(rgba(252, 249, 240, 0.86), rgba(252, 249, 240, 0.88)),
    url("/assets/images/pattern-bg.svg");
  background-size: auto, 260px 260px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.72), transparent 34rem),
    radial-gradient(circle at 78% 16%, rgba(219, 198, 158, 0.12), transparent 28rem),
    linear-gradient(90deg, rgba(80, 97, 72, 0.035), transparent 24%, transparent 76%, rgba(80, 97, 72, 0.035));
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--cc-sage);
  font-family: var(--cc-font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--cc-sage);
  outline-offset: 3px;
}

.skip-nav {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.6rem 1rem;
  color: var(--cc-white);
  background: var(--cc-sage);
}

.skip-nav:focus {
  left: 0;
}

.cc-shell {
  width: min(100% - 2rem, 1820px);
  margin: 0 auto;
}

.cc-page {
  padding: 1rem 0 0;
}

.cc-site-frame {
  overflow: clip;
  border: 1px solid rgba(217, 210, 193, 0.82);
  border-radius: 14px;
  background: rgba(252, 249, 240, 0.94);
  box-shadow: var(--cc-shadow);
}

.cc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.cc-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 66px;
  padding: 0 1.5rem;
  border-bottom: 1px solid rgba(217, 210, 193, 0.78);
  background: rgba(252, 249, 240, 0.88);
}

.cc-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.cc-icon-button,
.cc-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  color: var(--cc-ink);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.cc-icon-button:hover,
.cc-icon-link:hover {
  color: var(--cc-sage);
  transform: translateY(-1px);
}

.cc-brand {
  color: var(--cc-sage);
  font-family: var(--cc-font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-style: italic;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.cc-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 3.25rem);
}

.cc-nav a {
  color: var(--cc-ink);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.cc-nav a:hover {
  color: var(--cc-sage);
}

.cc-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.cart-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.9rem;
  height: 0.9rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  color: var(--cc-white);
  background: var(--cc-sage-dark);
  font-size: 0.55rem;
  line-height: 1;
}

.cc-main {
  min-height: 58vh;
}

.cc-section {
  padding: clamp(2rem, 4vw, 4rem) clamp(1.1rem, 3vw, 3rem);
}

.cc-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.18rem 0.62rem;
  border-radius: 999px;
  color: var(--cc-sage-dark);
  background: var(--cc-surface-mid);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cc-display-title {
  color: var(--cc-sage);
  font-family: var(--cc-font-display);
  font-style: italic;
  font-weight: 500;
}

.cc-body-copy {
  color: var(--cc-muted);
  font-family: var(--cc-font-body);
}

.cc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.68rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--cc-white);
  background: var(--cc-sage);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.cc-button:hover {
  background: var(--cc-sage-dark);
  transform: translateY(-1px);
}

.cc-button-secondary {
  color: var(--cc-sage);
  border-color: var(--cc-line-strong);
  background: rgba(255, 253, 247, 0.42);
}

.cc-button-secondary:hover {
  color: var(--cc-white);
}

.cc-button-quiet {
  min-height: auto;
  padding: 0;
  color: var(--cc-gold);
  border: 0;
  border-bottom: 1px solid var(--cc-line-strong);
  border-radius: 0;
  background: transparent;
  font-size: 0.82rem;
  text-decoration: none;
}

.cc-button-quiet:hover {
  color: var(--cc-sage);
  background: transparent;
  transform: none;
}

.cc-card {
  border: 1px solid rgba(217, 210, 193, 0.9);
  border-radius: 8px;
  background: rgba(246, 243, 234, 0.74);
  box-shadow: 0 4px 18px rgba(80, 65, 40, 0.035);
}

.cc-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  color: var(--cc-line-strong);
}

.cc-divider::before,
.cc-divider::after {
  content: "";
  width: min(7rem, 20vw);
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.cc-flourish {
  display: inline-block;
  width: 4.5rem;
  height: 1.2rem;
  opacity: 0.58;
  background:
    radial-gradient(circle at 50% 50%, var(--cc-rose) 0 2px, transparent 2.2px),
    linear-gradient(90deg, transparent 0 6%, var(--cc-line-strong) 6% 43%, transparent 43% 57%, var(--cc-line-strong) 57% 94%, transparent 94%);
  background-repeat: no-repeat;
  background-position: center;
}

.cc-product-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(217, 210, 193, 0.95);
  border-radius: 8px;
  background: rgba(246, 243, 234, 0.82);
  box-shadow: 0 3px 14px rgba(80, 65, 40, 0.04);
}

.cc-product-media {
  position: relative;
  aspect-ratio: 1.32 / 1;
  overflow: hidden;
  background:
    linear-gradient(rgba(246, 243, 234, 0.88), rgba(246, 243, 234, 0.86)),
    url("/assets/images/pattern-bg.svg");
  background-size: auto, 190px 190px;
}

.cc-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.cc-product-card:hover .cc-product-media img {
  transform: scale(1.035);
}

.cc-product-favorite {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid rgba(217, 210, 193, 0.7);
  border-radius: 999px;
  color: var(--cc-rose);
  background: rgba(255, 253, 247, 0.78);
}

.cc-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.24rem;
  padding: 0.78rem 0.85rem 0.7rem;
}

.cc-product-title {
  color: var(--cc-ink);
  font-family: var(--cc-font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
}

.cc-product-title a {
  text-decoration: none;
}

.cc-product-meta,
.cc-product-price {
  color: var(--cc-muted);
  font-size: 0.78rem;
}

.cc-product-price {
  color: var(--cc-ink);
  font-weight: 600;
}

.cc-product-card .cc-button {
  width: 100%;
  min-height: 1.9rem;
  margin-top: 0.45rem;
  padding: 0.38rem 0.65rem;
  font-size: 0.72rem;
}

.cc-fallback-art {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 1.25rem;
}

.cc-fallback-art img {
  width: min(62%, 9rem);
  height: auto;
  object-fit: contain;
  opacity: 0.82;
}

.cc-form-control {
  min-height: 2.35rem;
  border: 1px solid var(--cc-line);
  border-radius: 5px;
  color: var(--cc-ink);
  background: rgba(255, 253, 247, 0.52);
  font-size: 0.82rem;
}

.cc-filter-panel {
  border: 1px solid rgba(217, 210, 193, 0.95);
  border-radius: 8px;
  background: rgba(246, 243, 234, 0.82);
}

.cc-filter-section {
  padding: 0.92rem 1rem;
  border-top: 1px solid rgba(217, 210, 193, 0.68);
}

.cc-filter-section:first-child {
  border-top: 0;
}

.cc-filter-heading {
  margin-bottom: 0.58rem;
  color: var(--cc-ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.cc-check-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.34rem;
  color: var(--cc-muted);
  font-size: 0.76rem;
}

.cc-check-row input {
  width: 0.8rem;
  height: 0.8rem;
  color: var(--cc-sage);
  border-color: var(--cc-line-strong);
  border-radius: 2px;
}

.cc-service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(217, 210, 193, 0.82);
  background: rgba(241, 238, 229, 0.74);
}

.cc-service-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1rem;
  color: var(--cc-muted);
  border-left: 1px solid rgba(217, 210, 193, 0.55);
  font-size: 0.78rem;
}

.cc-service-item:first-child {
  border-left: 0;
}

.cc-service-item i {
  color: var(--cc-sage);
  font-size: 1.35rem;
}

.cc-service-item strong {
  display: block;
  color: var(--cc-ink);
  font-size: 0.86rem;
  font-weight: 600;
}

.cc-footer {
  border-top: 1px solid rgba(217, 210, 193, 0.82);
  background: rgba(246, 243, 234, 0.78);
}

.cc-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding: 2rem clamp(1.1rem, 3vw, 3rem);
}

.cc-footer h2,
.cc-footer h3 {
  margin-bottom: 0.75rem;
  color: var(--cc-sage);
  font-size: 1rem;
  font-style: italic;
}

.cc-footer p,
.cc-footer a {
  color: var(--cc-muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.cc-footer a:hover {
  color: var(--cc-sage);
}

@media (max-width: 900px) {
  .cc-shell {
    width: 100%;
  }

  .cc-page {
    padding-top: 0;
  }

  .cc-site-frame {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .cc-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    min-height: 68px;
    padding: 0 0.9rem;
  }

  .cc-nav {
    display: none;
  }

  .cc-brand-wrap {
    gap: 0.35rem;
  }

  .cc-icon-button,
  .cc-icon-link {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
  }

  .cc-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 2.75rem;
    overflow: hidden;
    font-size: clamp(1.15rem, 5vw, 1.45rem);
    text-overflow: ellipsis;
  }

  .cc-actions {
    gap: 0.05rem;
  }

  .cc-button-quiet,
  .cc-footer a,
  nav[aria-label="Breadcrumb"] a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .cc-check-row {
    min-height: 2.75rem;
    margin-top: 0;
  }

  .cc-check-row input {
    width: 1.05rem;
    height: 1.05rem;
  }

  .cc-service-strip,
  .cc-footer-inner {
    grid-template-columns: 1fr;
  }

  .cc-service-item {
    border-top: 1px solid rgba(217, 210, 193, 0.55);
    border-left: 0;
  }

  .cc-service-item:first-child {
    border-top: 0;
  }
}
