:root {
  --black: #000;
  --white: #fff;
  --text: #222;
  --muted: #666;
  --line: #e5e5e5;
  --magenta: #9e005d;
  --pink: #d4145a;
  --success: #1e7d3a;
  --error: #b00020;
  --font: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --font-display: Raleway, Helvetica, Arial, sans-serif;
  --container: 1200px;
  --gutter: 16px;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  /* Raleway defaults to old-style numerals, which look uneven in headings */
  font-variant-numeric: lining-nums;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--magenta);
}

h1,
h2,
h3 {
  line-height: 1.25;
}

address {
  font-style: normal;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 8px 16px;
  background: var(--white);
  color: var(--black);
}

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

.center {
  text-align: center;
}

.lead {
  font-size: 1.15rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  text-transform: uppercase;
  margin: 1.5rem 0;
}

.button {
  display: inline-block;
  padding: 12px 36px;
  border: 0;
  border-radius: 999px;
  background: var(--magenta);
  color: var(--white);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.button:hover,
.button:focus-visible {
  background: var(--pink);
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Header */

.site-header {
  background: var(--white);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.2s;
}

.site-header.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.header-bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  grid-template-areas: "logo search phone cart";
  align-items: center;
  gap: 12px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  grid-area: logo;
}

.logo img {
  width: 170px;
}

.header-search {
  grid-area: search;
  max-width: 440px;
  justify-self: center;
  width: 100%;
}

/* Ecwid search widget */
.header-search .ecwid-search-widget {
  position: relative;
}

.header-search .ecwid-search-widget__input {
  width: 100% !important;
  height: 42px !important;
  padding: 0 46px 0 20px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: #f3f3f3 !important;
  box-shadow: none !important;
  color: var(--text) !important;
  font-family: var(--font) !important;
  font-size: 0.95rem !important;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.header-search .ecwid-search-widget__input::placeholder {
  color: #888;
}

.header-search .ecwid-search-widget__input:hover {
  background: #ececec !important;
}

.header-search .ecwid-search-widget__input:focus {
  outline: none !important;
  background: var(--white) !important;
  border-color: var(--magenta) !important;
  box-shadow: 0 0 0 3px rgba(158, 0, 93, 0.12) !important;
}

.header-search .ecwid-search-widget__btn {
  position: absolute !important;
  top: 50% !important;
  right: 8px !important;
  transform: translateY(-50%);
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  color: var(--text) !important;
}

.header-search .ecwid-search-widget__btn:hover {
  color: var(--magenta) !important;
}

.header-phone {
  grid-area: phone;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  white-space: nowrap;
}

.header-cart {
  grid-area: cart;
  position: relative;
  display: flex;
  padding: 8px;
  color: var(--text);
}

.header-cart:hover,
.header-cart:focus-visible {
  color: var(--pink);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--pink);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: bold;
  line-height: 18px;
  text-align: center;
}

.cart-count[hidden] {
  display: none;
}

.nav-toggle {
  display: none;
}

/* Navigation */

.site-nav {
  border-top: 1px solid var(--line);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0 auto;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Underline that slides in on hover and marks the current page */
.nav-item > a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 8px;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-item > a:hover::after,
.nav-item > a:focus-visible::after,
.nav-item > a[aria-current="page"]::after,
.has-menu:hover > a::after {
  transform: scaleX(1);
}

.chevron {
  transition: transform 0.2s ease;
}

.has-menu:hover > a .chevron,
.has-menu:focus-within > a .chevron {
  transform: rotate(180deg);
}

.submenu-toggle {
  display: none;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  grid-template-columns: repeat(3, minmax(180px, max-content));
  gap: 24px;
  padding: 24px 20px 20px;
  background: var(--white);
  border-top: 2px solid var(--pink);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  animation: menu-in 0.15s ease-out;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.has-menu:hover .mega-menu,
.has-menu:focus-within .mega-menu {
  display: grid;
}

.mega-heading {
  display: block;
  margin: 0 12px 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--magenta);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.mega-heading:hover,
.mega-heading:focus-visible {
  color: var(--pink);
}

.mega-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-group li a {
  display: block;
  padding: 7px 12px;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}

.mega-group li a:hover,
.mega-group li a:focus-visible {
  background: #fdf2f8;
  color: var(--magenta);
}

@media (max-width: 959px) {
  .header-bar {
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas:
      "logo phone cart toggle"
      "search search search search";
  }

  .header-phone {
    justify-self: end;
    font-size: 0.95rem;
  }

  .header-search {
    max-width: none;
  }

  .nav-toggle {
    grid-area: toggle;
    display: block;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: var(--text);
    content: "";
  }

  .nav-toggle-bars {
    top: 21px;
  }

  .nav-toggle-bars::before {
    left: 0;
    top: -7px;
  }

  .nav-toggle-bars::after {
    left: 0;
    top: 7px;
  }

  .site-nav {
    display: none;
  }

  .site-nav.open {
    display: block;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    padding-bottom: 12px;
  }

  .nav-item {
    border-bottom: 1px solid var(--line);
  }

  .nav-item > a {
    padding: 14px 0;
  }

  .nav-item > a::after,
  .nav-item > a .chevron {
    display: none;
  }

  .nav-item > a[aria-current="page"] {
    color: var(--pink);
  }

  .has-menu {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .submenu-toggle {
    display: block;
    width: 44px;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
  }

  .submenu-toggle[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
  }

  .has-menu:hover .mega-menu,
  .has-menu:focus-within .mega-menu {
    display: none;
  }

  .has-menu.open .mega-menu {
    display: grid;
  }

  .mega-menu {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 14px;
    padding: 16px 8px 8px;
    border: 0;
    border-radius: 10px;
    background: #faf6f8;
    box-shadow: none;
  }

  .mega-heading {
    margin-bottom: 4px;
  }

  .mega-group li a {
    padding: 12px;
    font-size: 1rem;
  }

  /* Touch screens have no hover, so highlight the row while it's pressed */
  .mega-group li a:active {
    background: #f9e1ee;
    color: var(--magenta);
  }
}

@media (max-width: 480px) {
  .header-phone {
    display: none;
  }

  .header-bar {
    grid-template-areas:
      "logo . cart toggle"
      "search search search search";
  }

  .logo img {
    width: 140px;
  }
}

/* Footer */

.site-footer {
  background: var(--black);
  color: #ccc;
  font-size: 0.875rem;
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.footer-inner p {
  margin: 0;
}

.site-footer a {
  color: #ccc;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .social img {
  filter: invert(1);
}

/* Social icons */

.social {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Page layout */

[id] {
  scroll-margin-top: 150px;
}

.page-header {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px -20px rgba(0, 0, 0, 0.4);
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  margin: 24px 0 16px;
}

.page-body {
  padding-top: 32px;
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 2.5rem;
}

.prose h3 {
  font-size: 1.05rem;
  margin-top: 2rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 767px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.banner {
  display: block;
  margin-bottom: 24px;
}

/* Products */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 32px 0;
}

.category-grid a {
  display: block;
  text-decoration: none;
  color: var(--text);
  text-align: center;
}

.category-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s;
}

.category-grid a:hover img {
  transform: scale(1.03);
}

.category-grid span {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cta {
  margin: 48px 0 0;
  padding: 40px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fdf2f8, #f6e3ee);
  text-align: center;
}

.cta-eyebrow {
  margin: 0;
  color: var(--magenta);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cta-heading {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 300;
}

.cta p:not(.cta-eyebrow) {
  max-width: 720px;
  margin: 0 auto 28px;
  color: #444;
  font-size: 1.1rem;
}

.cta-button {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 999px;
  background: var(--magenta);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--pink);
}

/* About */

.about-lead {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 300;
  line-height: 1.45;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0 0 64px;
  padding: 0;
}

.stats li {
  padding: 28px 24px;
  border-radius: 12px;
  background: #faf6f8;
}

.stat-value {
  display: block;
  margin-bottom: 8px;
  color: var(--magenta);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
}

.stat-label {
  color: #444;
  line-height: 1.45;
}

.story {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}

.story h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 300;
}

.story p {
  margin: 0 0 1.2em;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.75;
}

@media (max-width: 767px) {
  .story {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Policy */

.policy {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.policy-toc {
  position: sticky;
  top: 160px;
  padding: 20px;
  border-radius: 12px;
  background: #faf6f8;
}

.policy-toc p {
  margin: 0 0 8px;
  color: var(--magenta);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.policy-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.policy-toc a {
  display: block;
  padding: 6px 0;
  color: var(--text);
  text-decoration: none;
}

.policy-toc a:hover,
.policy-toc a:focus-visible {
  color: var(--magenta);
}

.policy .prose h2:first-child {
  margin-top: 0;
}

@media (max-width: 767px) {
  .policy {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .policy-toc {
    position: static;
  }
}

/* Contact */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 48px;
  text-align: center;
  font-weight: 600;
}

.contact-cards li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  border-radius: 12px;
  background: #faf6f8;
}

.contact-cards a {
  color: var(--text);
  text-decoration: none;
}

.contact-cards a:hover {
  color: var(--magenta);
}

.contact-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: normal;
}

.contact-icon img {
  width: 24px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* Inquiry form */

.inquiry-form {
  display: grid;
  gap: 12px;
}

.inquiry-form h2 {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 1.3rem;
}

.inquiry-form label {
  display: grid;
  gap: 4px;
  font-size: 0.9rem;
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f7f7f7;
  font: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(158, 0, 93, 0.12);
  background: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.inquiry-form .button {
  justify-self: start;
}

.form-status {
  margin: 0;
  min-height: 1.6em;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

/* Store intro: the welcome text on the store's front page, set in Ecwid */

.ec-store__category-page--0 .grid__description,
.ec-store__category-page--0 .grid__description p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.3;
  margin: 8px auto 32px !important;
  max-width: 900px;
}

/* Store product cards. Ecwid's own selectors are very specific, hence the !important flags. */

.ec-store .grid-product__wrap {
  border-radius: 10px;
  overflow: hidden;
}

.ec-store .grid-product__wrap-inner {
  padding-bottom: 16px !important;
}

.ec-store .grid-product__title,
.ec-store .grid-product__price,
.ec-store .grid-product__button {
  padding-left: 14px !important;
  padding-right: 14px !important;
  box-sizing: border-box;
}

.ec-store .grid-product__title {
  padding-top: 6px !important;
}

.ec-store .grid-product__price {
  margin-top: 6px !important;
}

.ec-store .grid-product__button {
  margin-top: 14px !important;
}

/* Buy Now */
.ec-store .grid-product__buy-now .form-control {
  width: 100% !important;
}

.ec-store .grid-product__buy-now .form-control__button {
  width: 100% !important;
  height: 40px !important;
  border: 1.5px solid var(--text) !important;
  border-radius: 999px !important;
  background: var(--white) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  transition: border-color 0.2s, background 0.2s;
}

.ec-store .grid-product__buy-now .form-control__button-text {
  color: var(--text) !important;
  transition: color 0.2s;
}

.ec-store .grid-product__buy-now .form-control__button:hover,
.ec-store .grid-product__buy-now .form-control__button:focus-visible {
  border-color: var(--magenta) !important;
  background: #fdf2f8 !important;
}

.ec-store .grid-product__buy-now .form-control__button:hover .form-control__button-text,
.ec-store .grid-product__buy-now .form-control__button:focus-visible .form-control__button-text {
  color: var(--magenta) !important;
}

/* Out of stock (Ecwid renders it as a bare span in place of the button) */
.ec-store .grid-product__buy-now > span {
  display: block;
  width: 100%;
  padding: 10px 0;
  border-radius: 999px;
  background: #f1f1f1;
  color: var(--muted) !important;
  font-size: 0.8rem !important;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* On Sale / Sold Out badges */
.ec-store .grid-product__label .ec-label {
  margin: 10px !important;
  padding: 5px 12px !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ec-store .grid-product__label .label__text {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: var(--white) !important;
}

/* Retail convention: red for sale, neutral grey for sold out */
.ec-store .grid-product__label .label--notice {
  background: #d32f2f !important;
}

.ec-store .grid-product__label .label--attention {
  background: #6b6b6b !important;
}
