/* One shared type scale for every template. This layer follows the layout CSS. */
:root {
  --ce-type-h1: 72px;
  --ce-type-h2: 44px;
  --ce-type-h3: 28px;
  --ce-type-card: 22px;
  --ce-type-body: 18px;
  --ce-type-label: 16px;
  --ce-type-meta: 14px;
  --ce-type-kicker: 12px;
  --ce-type-price: 22px;
}
@media (max-width: 1024px) {
  :root { --ce-type-h1: 60px; --ce-type-h2: 38px; --ce-type-h3: 26px; }
}
@media (max-width: 640px) {
  :root { --ce-type-h1: 46px; --ce-type-h2: 34px; --ce-type-h3: 24px; --ce-type-card: 20px; }
}
body { font-size: var(--ce-type-body); }
main h1, .ce-hero h1, .ce-shop-hero h1, .ce-shop-heading h1,
.ce-page-heading h1, .ce-about-hero h1, .ce-contact-intro h1,
.single-product .product_title {
  font-size: var(--ce-type-h1); line-height: 1.06; letter-spacing: -.045em;
}
main h2, .ce-section-heading h2, .ce-story h2, .ce-format-card h2,
.ce-faq h2, .ce-about-cta h2, .ce-catalog-help h2,
.ce-policy .ce-page-content h2, .woocommerce-Tabs-panel h2,
.related.products > h2, .cart_totals h2 {
  font-size: var(--ce-type-h2); line-height: 1.12;
}
main h3, .ce-ordering h3, .ce-principles h2,
.ce-contact-faq h2, .woocommerce-checkout h3,
.woocommerce-checkout #order_review_heading {
  font-size: var(--ce-type-h3); line-height: 1.2;
}
.woocommerce ul.products li.product h2,
.ce-featured ul.products li.product h2,
.ce-collection h3 { font-size: var(--ce-type-card); line-height: 1.25; }
.ce-hero-description, .ce-shop-description, .ce-lead,
.ce-contact-intro > p:not(.eyebrow), .ce-about-copy p,
.ce-story-copy > p:not(.eyebrow), .ce-format-card p:not(.eyebrow),
.ce-ordering-grid p, .ce-principles p, .ce-catalog-help p:not(.eyebrow),
.ce-policy .ce-page-content p, .ce-policy .ce-page-content li,
.ce-faq > div > p:not(.eyebrow), .ce-faq-list summary,
.ce-faq-list details p, .ce-contact-location p, .ce-contact-faq p,
.single-product .woocommerce-product-details__short-description,
.woocommerce-Tabs-panel p, .woocommerce-Tabs-panel li,
.ce-contact-email > a, .shop_table .product-name a,
.woocommerce-cart-form .product-name a {
  font-size: var(--ce-type-body); line-height: 1.75;
}
.ce-faq-list summary { line-height: 1.45; }
.eyebrow, .ce-hero-copy .eyebrow, .ce-section-heading .eyebrow,
.ce-format-card .eyebrow, .ce-story .eyebrow, .ce-ordering > .eyebrow,
.ce-faq > div > .eyebrow, .ce-shop-hero .eyebrow,
.ce-page-heading .eyebrow, .ce-about-hero .eyebrow,
.ce-contact-intro .eyebrow, .ce-contact-panel .eyebrow {
  font-size: var(--ce-type-kicker); line-height: 1.5;
}
.button, button.button, input.button, .woocommerce a.button,
.woocommerce button.button, .woocommerce input.button, .wp-element-button,
.ce-hero-actions .button, .ce-story-copy .button, .ce-filters .button,
.ce-footer-invitation .button, .coupon .button,
.woocommerce ul.products li.product .button,
.ce-featured ul.products li.product .button {
  font-size: var(--ce-type-label); line-height: 1.4;
}
.ce-text-link, .ce-section-heading > .ce-text-link,
.ce-hero-actions .ce-text-link, .ce-format-card .ce-text-link,
.ce-ordering > .ce-text-link, .ce-catalog-help .ce-text-link,
.ce-main-nav a, .ce-collection-tile strong,
.ce-header-search label, label, .ce-filters label,
.variations label, .wc_payment_method > label,
.ce-product-service, .ce-policy-links, .wc-tabs li {
  font-size: var(--ce-type-label);
}
input:not([type=checkbox]):not([type=radio]):not([type=submit]), select, textarea,
.ce-catalog-search #ce-catalog-query,
.ce-filters input, .ce-filters select,
.ce-contact-form input, .ce-contact-form select, .ce-contact-form textarea,
.checkout input, .checkout select, .checkout textarea,
.woocommerce-ordering select,
.select2-container--default .select2-selection--single .select2-selection__rendered {
  font-size: var(--ce-type-label);
}
.ce-filters input, .ce-filters select, .coupon input { font-size: var(--ce-type-label)!important; }
.ce-pack-detail, .ce-price-prefix, .ce-card-label, .ce-collection p,
.ce-collection-tile small, .ce-form-help, .optional,
.ce-hero-note, .ce-form-status, .ce-small,
.single-product .summary .ce-small, .single-product .product_meta,
.single-product .stock, .ce-policy .ce-page-content .ce-updated,
.woocommerce-breadcrumb, .ce-shop-hero .woocommerce-breadcrumb,
.woocommerce-result-count, .shipping-calculator-button,
.woocommerce-shipping-destination, .woocommerce-privacy-policy-text,
.woocommerce-terms-and-conditions-wrapper, .variations .reset_variations {
  font-size: var(--ce-type-meta); line-height: 1.65;
}
.ce-card-label { font-size: var(--ce-type-kicker); }
.woocommerce ul.products li.product .price { font-size: var(--ce-type-price); }
.single-product .summary .price, .woocommerce-variation-price { font-size: 26px; }
th, td, .cart_totals th, .cart_totals td, .shop_table th, .shop_table td,
.woocommerce-product-attributes th, .woocommerce-product-attributes td,
.woocommerce-cart-form .product-price, .woocommerce-cart-form .product-subtotal,
.woocommerce-message, .woocommerce-info, .woocommerce-error { font-size: var(--ce-type-label); }
.ce-footer-invitation p { font-size: var(--ce-type-h2); line-height: 1.15; }
.ce-footer-top a:not(:has(img)), .ce-footer-top p,
.ce-footer-top > div:first-child p { font-size: var(--ce-type-label); }
.ce-footer-top .ce-footer-email { font-size: var(--ce-type-body); }
.ce-footer-top h2, .ce-footer-bottom, .ce-preview-notice { font-size: var(--ce-type-meta); }
.ce-footer-fine { font-size: var(--ce-type-meta)!important; }

/* Compact navigation and search for phones and tablets. */
.ce-mobile-nav { width: min(360px, 92vw); padding: 24px; overflow-y: auto; }
.ce-drawer-top { gap: 12px; font-size: 20px; }
.ce-mobile-nav nav { margin: 22px 0; }
.ce-mobile-nav nav a {
  font: 550 20px/1.35 var(--sans); padding: 12px 0; min-height: 48px; align-items: center;
}
.ce-mobile-nav nav a > span { font-size: 18px; }
.ce-mobile-nav > p { font-size: 14px; line-height: 1.7; }
.ce-drawer-search { margin-top: 22px; }
.ce-drawer-search > label { display: block; font-size: 14px; margin-bottom: 9px; }
.ce-drawer-search-row { display: flex; align-items: center; gap: 8px; padding: 4px; border: 1px solid #bdc8b2; border-radius: 9px; background: var(--paper); }
.ce-drawer-search-row:focus-within { outline: 2px solid #667b44; outline-offset: 3px; }
.ce-drawer-search #ce-menu-search-input {
  min-width: 0; width: 100%; min-height: 46px; padding: 8px 10px; margin: 0;
  border: 0; border-radius: 5px; background: transparent; font-size: 16px;
}
.ce-drawer-search button {
  flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: var(--green); color: var(--ivory);
}
.ce-logo-coastal { width: 212px; }
.ce-drawer-logo { display: block; width: 190px; }
.ce-drawer-logo img { width: 100%; height: auto; }
.ce-brand-reverse { filter: brightness(0) invert(1); }
.ce-footer-top > div:first-child img.ce-brand-reverse { width: 240px; height: auto; }
@media (max-width: 1024px) {
  .ce-header-inner { height: 86px; gap: 12px; }
  .ce-menu-toggle { display: inline-flex; margin-left: -8px; }
  .ce-main-nav, .ce-account-link { display: none; }
  .ce-logo { margin-right: auto; }
  .ce-logo-coastal { width: 200px; }
}
@media (max-width: 640px) {
  .ce-header-inner { height: 80px; gap: 4px; }
  .ce-mobile-nav { padding: 22px; }
  .ce-image-caption { font-size: 10px; }
  .ce-card-label { font-size: 11px; letter-spacing: .025em; }
  .ce-logo-coastal { width: 176px; }
  .ce-footer-top > div:first-child img.ce-brand-reverse { width: 220px; }
}
@media (max-width: 380px) { .ce-logo-coastal { width: 160px; } }
@media (max-width: 350px) { .ce-logo-coastal { width: 144px; } }

/* Homepage components use the same type roles as the other page templates. */
body.home .ce-hero h1 { font-size: var(--ce-type-h1); }
body.home .ce-section-heading h2, body.home .ce-format-card h2,
body.home .ce-story h2, body.home .ce-faq h2 { font-size: var(--ce-type-h2); }
body.home .ce-ordering h3 { font-size: var(--ce-type-h3); }
body.home .ce-collection h3 { font-size: var(--ce-type-card); }
body.home .ce-hero-description, body.home .ce-collection p,
body.home .ce-format-card p:not(.eyebrow),
body.home .ce-story-copy > p:not(.eyebrow), body.home .ce-ordering-grid p,
body.home .ce-faq > div > p:not(.eyebrow), body.home .ce-faq-list details p {
  font-size: var(--ce-type-body); line-height: 1.75;
}
body.home .ce-hero-stamp > img { width: 40px; height: 40px; object-fit: contain; margin-bottom: 2px; }
