/* Global reset, theme tokens, and document defaults */

:root {
  --cp-primary: #172841;
  --cp-primary-deep: #0f1c30;
  --cp-primary-light: #2a4a6e;
  --cp-primary-rgb: 23, 40, 65;
  --cp-gold: var(--cp-primary);
  --cp-gold-deep: var(--cp-primary-deep);
  --cp-bg: #ffffff;
  --cp-bg-subtle: #f7f7f7;
  --cp-bg-muted: #f3f3f3;
  --cp-bg-elevated: #ffffff;
  --cp-header-bg: #ffffff;
  --cp-text: #1a1a1a;
  --cp-text-muted: rgba(26, 26, 26, 0.72);
  --cp-text-soft: rgba(26, 26, 26, 0.55);
  --cp-border: #e8e8e8;
  --cp-border-strong: #d4d4d4;
  --cp-card: #ffffff;
  --cp-card-muted: #fafafa;
  --cp-on-gold: #ffffff;
  --cp-on-image: #ffffff;
  --cp-hero-overlay-start: rgba(255, 255, 255, 0.35);
  --cp-hero-overlay-end: rgba(255, 255, 255, 0.92);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: var(--font-body);
  --font-ui: var(--font-body);
  --font-logo: var(--font-body);
  --cp-container-max: 1240px;
  --cp-container-padding-x: 1.25rem;
  --cp-radius: 8px;
  --cp-radius-sm: 8px;
  --cp-radius-pill: 8px;
  --cp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cp-duration: 0.22s;
  --cp-btn-height: 2.85rem;
  --cp-btn-padding-x: 1.75rem;
  --cp-btn-font-size: 12px;
  --cp-btn-font-weight: 500;
  --cp-heading-font-weight: 600;

  /* Aliases used across component CSS */
  --cp-black: var(--cp-bg);
  --cp-white: var(--cp-text);
  --cp-header: var(--cp-header-bg);
  --cp-muted: var(--cp-text-muted);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--cp-bg);
  color: var(--cp-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.cp-nav-open {
  overflow: hidden;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--cp-gold);
  outline-offset: 2px;
}

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

/* Shared height for primary actions (buttons & button-styled links) */
.cp-btn,
.cp-cta__btn,
.cp-about__btn,
.cp-trust__shop,
.cp-shop-hero__cta,
.cp-home-catalog__all,
.cp-home-newsletter__submit,
.cp-product-card__cta,
.cp-product-detail__add,
.cp-contact__submit,
.cp-reviews__cta,
.cp-cart__checkout,
.cp-cart__view-cart,
button.cp-product-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--cp-btn-height);
  padding-top: 0;
  padding-bottom: 0;
  padding-left: var(--cp-btn-padding-x);
  padding-right: var(--cp-btn-padding-x);
  box-sizing: border-box;
  font-family: inherit;
  font-size: var(--cp-btn-font-size);
  font-weight: var(--cp-btn-font-weight);
  line-height: 1.2;
}
