/* =====================================================================
   Caspian Monarque — type and spacing layer
   Rosarivo for titles, labels and the menu; Lora for text and buttons.
   Small, quiet sizes; tracked capitals for labels; navy text on warm
   off-white; the brand teal for the one primary action.
   Loaded after refine.css; the fonts are declared in inc/typeset.php.
   Switch off: add_filter('caspian_typeset_enable', '__return_false');

   Selectors start "html body[class]": the theme's own stylesheets load after
   this file, and that prefix out-ranks their "body.page …" selectors.
   Floor: 13px for lowercase reading text; capitals labels go down to 10px.
   ===================================================================== */

/* ---- Tokens: the theme reads its faces, sizes and colours from these ---- */
html:root {
  --font-heading: "Rosarivo", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --font-h5: "Rosarivo", Georgia, "Times New Roman", serif;

  --fs-p-default: .875rem;        /* 14px running text */
  --fs-text-default: .875rem;
  --fs-text-primary: .6875rem;    /* 11px top bar and menu */
  --fs-button-primary: .75rem;    /* 12px tracked capitals */
  --fs-input: .875rem;
  --fs-h1-default: 1.625rem;      /* 26px page titles   (was 70px) */
  --fs-h2-default: 1.5rem;        /* 24px section titles (was 38px) */
  --fs-h2-secondary: 1.625rem;    /*                     (was 48px) */
  --fs-h3-default: 1.375rem;      /* 22px                (was 32px) */
  --fs-h4-default: 1.0625rem;     /* 17px                (was 24px) */
  --fs-h5-default: .75rem;        /* 12px labels */
  --lh-paragraph: 1.6;

  /* Navy text throughout; the four greys go. */
  --color-txt-secondary: #000E34;
  --color-txt-sixth: #000E34;
  --color-txt-eighth: #333E5D;
  /* Warm off-white grounds. */
  --color-bg-secondary: #FCFCFC;
  --color-bg-third: #FAF9F7;
  --color-bg-sixth: #FAF9F7;
  /* The brand teal; navy text on it reads at 6.9:1. */
  --color-bg-primary: #05ACA3;

  --cm-navy: #000E34;
  --cm-teal: #05ACA3;
  --cm-teal-ink: #00857E;         /* teal for text on light grounds */
  --cm-hair: rgba(0, 14, 52, .14);
  --cm-section: 5rem;
}
@media (max-width: 768px) {
  html:root {
    --fs-h1-default: 1.25rem;     /* 20px */
    --fs-h2-default: 1.25rem;
    --fs-h2-secondary: 1.25rem;
    --fs-h3-default: 1.125rem;
    --fs-h4-default: 1rem;
    --fs-input: 1rem;             /* 16px: phones do not zoom into the field */
    --cm-section: 3.5rem;
  }
}
@media (max-width: 575px) { html:root { --fs-h3-default: 1.125rem; } }

/* ---- Base ---- */
html body[class] { font-size: .875rem; letter-spacing: .035em; color: var(--cm-navy); background-color: #FAF9F7; }
html body[class] :is(h1, h2, h3, h4) { letter-spacing: .02em; font-weight: 400; }
html body[class] h5 { font-family: "Rosarivo", Georgia, serif; font-style: normal; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--cm-navy); }
html body[class] [data-eggs_radar] h5 { color: var(--cm-teal); }

/* ---- Top bar and menu ---- */
html body[class] header .announcement-bar { background-color: var(--cm-navy); }
html body[class] header .announcement-bar span,
html body[class] header .announcement-bar a { font-size: .6875rem; letter-spacing: .045em; }
html body[class] header .announcement-bar--right .wpml-ls ul li a { font-size: .6875rem; letter-spacing: .14em; }
html body[class] header .navigation-wrapper .header-menu > li > a { font-family: "Rosarivo", Georgia, serif; font-weight: 400; }
@media (min-width: 993px) {
  html body[class] header .navigation-wrapper .header-menu > li > a { font-size: .6875rem; letter-spacing: .18em; }
}
@media (max-width: 992px) {
  html body[class] header .nav-box .navigation .navigation-wrapper .header-menu > li > a { font-size: .8125rem; letter-spacing: .16em; }
}

/* ---- Buttons: one primary; the rest are underlined text ---- */
html body[class] .btn,
html body[class] .product-hero .single_add_to_cart_button,
html body[class] .product-hero .popup .btn,
html body[class] .woocommerce a.checkout-button,
html body[class] .woocommerce #place_order {
  color: var(--cm-navy); background-color: var(--cm-teal); border-color: var(--cm-teal);
  font-family: var(--font-body); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; border-radius: 0;
}
html body[class] .slider-block .btn { color: var(--cm-navy); height: 2.75rem; padding: 0 1.75rem; }
html body[class] .btn:hover,
html body[class] .btn:focus-visible,
html body[class] .product-hero .single_add_to_cart_button:hover,
html body[class] .product-hero .popup .btn:hover,
html body[class] .woocommerce a.checkout-button:hover,
html body[class] .woocommerce #place_order:hover { color: #fff; background-color: var(--cm-navy); border-color: var(--cm-navy); }

/* secondary: tracked capitals with a hairline underline, as text links */
html body[class] .image-with-list .btn,
html body[class] .blocks-with-icon .button-wrapper .btn,
html body[class] #caviar-slider .btn {
  background-color: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
  color: var(--cm-navy); height: auto; min-height: 0; width: auto; min-width: 0; padding: .25rem .625rem;
}
html body[class] .image-with-list .btn:hover,
html body[class] .blocks-with-icon .button-wrapper .btn:hover,
html body[class] #caviar-slider .btn:hover { background-color: transparent; color: var(--cm-teal-ink); }

/* tin cards: outlined in navy */
html body[class] .variant-product .inner .add-to-cart { color: var(--cm-navy); border-color: var(--cm-navy); letter-spacing: .08em; font-size: .75rem; }
html body[class] .variant-product .inner .add-to-cart:hover { color: #fff; background-color: var(--cm-navy); }
html body[class] .variant-product .inner ul li button { font-size: .75rem; }

/* ---- Footer ---- */
html body[class] footer .inner nav > ul > li > a { font-family: "Rosarivo", Georgia, serif; font-size: .625rem; letter-spacing: .2em; text-transform: uppercase; }
html body[class] footer .inner nav > ul > li > ul li a { font-size: .75rem; letter-spacing: .04em; }
html body[class] footer p { font-size: .75rem; letter-spacing: .04em; }

/* =====================================================================
   Home page
   ===================================================================== */
@media (min-width: 768px) {
  html body[class].home .slider-block .with-video .inner .content > h1.title { font-size: 1.75rem; line-height: 1.35; max-width: 30rem; }
  html body[class].home .slider-block .with-video .inner .content > p.mob { font-family: var(--font-body); font-size: .6875rem; letter-spacing: .14em; }
}
html body[class].home #caviar-slider .caviar-slider--top .info h2 { font-size: 1.625rem; }
html body[class] #caviar-slider .caviar-slider--top .meta h4 { font-size: 1.375rem; }
html body[class] #caviar-slider .caviar-slider--mid .item { font-size: .8125rem; line-height: 1.6; }
html body[class] #caviar-slider .caviar-slider--mid .item em { color: var(--cm-navy); font-size: .625rem; letter-spacing: .14em; }
html body[class] #caviar-slider .caviar-slider--low .item span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 767px) {
  html body[class] .caviar-slider--mobile .item h2 { font-size: 1.25rem; }
  html body[class] #caviar-slider .caviar-slider--top .egg-wrap .property span { font-size: .625rem; letter-spacing: .12em; }
}
/* taste radar: its plugin sets sizes and colours with !important utility classes */
html body[class] [data-eggs_radar] h2 { font-size: 1.75rem !important; line-height: 1.2 !important; }
html body[class] [data-eggs_radar] h4 { font-size: 1.375rem !important; line-height: 1.3 !important; }
@media (max-width: 767px) { html body[class] [data-eggs_radar] h2 { font-size: 1.375rem !important; } }
html body[class] [data-eggs_radar] [data-eggs_radar_quality_level] { color: rgba(255, 255, 255, .62); }            /* 6.4:1 on navy */
html body[class] [data-eggs_radar] [data-eggs_radar_quality_level].text-teal { color: var(--cm-teal); }          /* 6.7:1 on navy */
html body[class] [data-eggs_radar] .radar-caviar-cta {
  background-color: var(--cm-teal) !important; color: var(--cm-navy) !important;
  font-family: var(--font-body); font-size: .75rem; letter-spacing: .08em;
}
html body[class] [data-eggs_radar] .radar-caviar-cta:hover { background-color: #fff !important; }

html body[class] .variant-product .inner .title { font-size: 1.0625rem; }
html body[class] .best-selling .swiper .swiper-slide p { font-size: .8125rem; }
html body[class].home .blocks-with-icon .blocks .title { font-family: "Rosarivo", Georgia, serif; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
html body[class].home .blocks-with-icon .blocks p { font-size: .8125rem; }
html body[class] .common-blocks.info-cards h4 { font-family: "Rosarivo", Georgia, serif; font-size: .875rem; letter-spacing: .16em; }
html body[class].home .image-with-text .text p,
html body[class] .image-with-list .content p { max-width: 36rem; }
@media (min-width: 768px) { html body[class] .logos-slider .header h3 { font-size: 1.375rem; } }
@media (max-width: 767px) { html body[class].home .logos-slider .header h3 { font-size: 1.0625rem; } }

/* =====================================================================
   Product page
   ===================================================================== */
html body[class] .product-hero .heading h1 { font-size: 1.5rem; line-height: 1.3; }
@media (max-width: 768px) { html body[class] .product-hero h1 { font-size: 1.25rem; } }
html body[class] .product-hero .under-title {
  font-family: var(--font-body); font-style: italic; font-size: .8125rem; text-transform: none; letter-spacing: .035em;
}
html body[class] .product-hero .heading .price-wrapper .price-element bdi,
html body[class] .product-hero .heading .price-wrapper .price-element bdi span,
html body[class] .product-hero .heading .price-wrapper,
html body[class] .product-hero .heading .price-wrapper *,
html body[class] .product-hero .popup .fake-select .price,
html body[class] .product-hero .popup .fake-select .price * { color: var(--cm-navy); }
html body[class] .product-hero .heading .price-element bdi { font-size: 1rem; }
html body[class] .product-hero .description * { font-size: .875rem; line-height: 1.6; }
html body[class] .product-hero .variation-title { font-size: .8125rem; letter-spacing: .035em; text-transform: none; }
html body[class] .product-hero .variation-radio .title { font-size: .875rem; }
html body[class] .product-hero .variation-radio span.text { font-size: .75rem; letter-spacing: .035em; text-transform: none; }
html body[class] .product-hero .variation-radio .price { font-size: .875rem; }
html body[class] .product-hero .single_add_to_cart_button { height: 2.5rem; }
/* the shipping line under the button: smaller, with air above it */
html body[class] .product-hero .caspian-add-to-cart-text { margin-top: .75rem; }
html body[class] .product-hero .caspian-add-to-cart-text span { font-size: .75rem; letter-spacing: .04em; }
html body[class] .product-hero .accordions .title { font-family: "Rosarivo", Georgia, serif; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; }
html body[class] .product-hero .accordions p { font-size: .8125rem; color: var(--cm-navy); }
html body[class] .product-hero .popup h2 { font-size: 1.0625rem; }
html body[class] .product-hero .popup .fake-select .serves { font-size: .6875rem; letter-spacing: .035em; text-transform: none; }

html body[class] .product-info .row .tab-button { font-family: "Rosarivo", Georgia, serif; font-size: .6875rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; }
html body[class] .product-info .row .tab-button.active { color: var(--cm-navy); }
html body[class] .product-parameters h6,
html body[class] .product-parameters .line-box span { font-size: .625rem; font-weight: 400; letter-spacing: .1em; }
html body[class] .product-parameters .row .content .list .item p { font-size: .8125rem; }
html body[class].single-product #caviar-slider .caviar-slider--top .info h2 { font-size: 1.5rem; }
html body[class] .columns-section .title { font-family: "Rosarivo", Georgia, serif; font-size: .75rem; letter-spacing: .16em; }
@media (max-width: 768px) {
  html body[class] .product-hero .single_add_to_cart_button { height: 2.75rem; }
  html body[class] .info-slider.temp2 h3 { font-size: 1.125rem; }
  html body[class] .info-slider .top .image .label-box span { font-size: .625rem; }
}

/* =====================================================================
   Shop page: price under the name, the whole card opens the caviar
   ===================================================================== */
/* "woocommerce-shop", "-cart" and "-checkout" are classes on <body> itself */
html body[class].woocommerce-shop .shop-content .woocommerce-products-header h1 { font-size: 1.625rem; }
html body[class].woocommerce-shop .shop-content ul.products li.product { position: relative; }
html body[class].woocommerce-shop .shop-content ul.products li.product h2 { font-size: 1.25rem; }
html body[class].woocommerce-shop .shop-content ul.products li.product h3 { font-family: var(--font-body); font-style: italic; font-size: .875rem; }
html body[class].woocommerce-shop .shop-content ul.products li.product .product-info-text p { font-size: .8125rem; }
html body[class].woocommerce-shop .shop-content ul.products li.product .product-parameters > ul .parameter-name { font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cm-navy); }
html body[class].woocommerce-shop .shop-content ul.products li.product .product-info-text .product-parameters > ul .parameter-value { font-size: .625rem; letter-spacing: .1em; color: var(--cm-navy); }
html body[class].woocommerce-shop .shop-content ul.products li.product .top-rated-badge span { color: var(--cm-navy); font-size: .6875rem; letter-spacing: .14em; }
html body[class].woocommerce-shop .shop-content ul.products li.product .product-text { display: flex; flex-direction: column; }
html body[class].woocommerce-shop .shop-content ul.products li.product .product-text > div { order: 0; }
html body[class].woocommerce-shop .shop-content ul.products li.product .product-text .price,
html body[class].woocommerce-shop .shop-content ul.products li.product .product-text .price * {
  color: var(--cm-navy); font-size: .875rem; letter-spacing: .035em;
}
html body[class].woocommerce-shop .shop-content ul.products li.product .product-text .price { order: 1; margin: .25rem 0 1.25rem; text-transform: none; }
html body[class].woocommerce-shop .shop-content ul.products li.product .product-text .price * { text-transform: none; }
html body[class].woocommerce-shop .shop-content ul.products li.product .product-text .price::before,
html body[class].woocommerce-shop .shop-content ul.products li.product .product-text .price::after { display: none; }
html body[class].woocommerce-shop .shop-content ul.products li.product .add_to_cart_button {
  order: 2; align-self: center; font-size: .75rem !important; font-weight: 400; letter-spacing: .08em; height: auto; min-height: 0; width: auto;
  padding: .25rem .625rem; background-color: transparent; border: 0; border-bottom: 1px solid currentColor; color: var(--cm-navy);
}
html body[class].woocommerce-shop .shop-content ul.products li.product .add_to_cart_button::after { content: ""; position: absolute; inset: 0; }
html body[class].woocommerce-shop .shop-content ul.products li.product:hover .add_to_cart_button { color: var(--cm-teal-ink); background-color: transparent; }
@media (max-width: 768px) {
  /* five flavour columns must fit a phone: no tracking, and each column may shrink */
  html body[class].woocommerce-shop .shop-content ul.products li.product .product-parameters > ul { gap: .375rem; }
  html body[class].woocommerce-shop .shop-content ul.products li.product .product-parameters > ul > li { flex: 1 1 0; min-width: 0; }
  html body[class].woocommerce-shop .shop-content ul.products li.product .product-parameters > ul .parameter-name,
  html body[class].woocommerce-shop .shop-content ul.products li.product .product-info-text .product-parameters > ul .parameter-value { letter-spacing: 0; font-size: .5625rem; }
  html body[class].woocommerce-shop .shop-content .woocommerce-products-header h1 { font-size: 1.25rem; }
  html body[class].woocommerce-shop .shop-content ul.products li.product h2 { font-size: 1.125rem; }
  html body[class].woocommerce-shop .shop-content ul.products li.product .product-info-text p { font-size: .875rem; }
}

/* =====================================================================
   Cart, checkout, account
   ===================================================================== */
html body[class].woocommerce-checkout label,
html body[class].woocommerce-checkout span,
html body[class].woocommerce-checkout input,
html body[class].woocommerce-checkout input::placeholder { font-size: .875rem; }
html body[class].woocommerce-checkout table.shop_table tfoot th { font-size: .875rem; }
html body[class].woocommerce-checkout table.shop_table tfoot bdi { font-size: 1rem; }
html body[class].woocommerce-checkout #payment.woocommerce-checkout-payment .woocommerce-terms-and-conditions-wrapper p { font-size: .8125rem; }
html body[class] .woocommerce-form-login-toggle .woocommerce-info { font-size: .8125rem; }
html body[class].woocommerce-cart .woocommerce .cart-collaterals .cart_totals table tbody tr td *,
html body[class].woocommerce-cart .woocommerce .cart-collaterals .cart_totals table tbody tr th { font-size: .875rem; }
/* card logos beside the payment name may wrap instead of pushing the page sideways */
html body[class].woocommerce-checkout .wc_payment_method > label { white-space: normal; display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; max-width: 100%; }
html body[class].woocommerce-checkout .wc_payment_method > label img { max-height: 1.5rem; width: auto; }
@media (max-width: 768px) {
  html body[class].woocommerce-checkout input,
  html body[class].woocommerce-checkout select,
  html body[class].woocommerce-checkout textarea { font-size: 1rem; }
}

/* =====================================================================
   About, blog: long reading gets a little more size and air
   ===================================================================== */
html body[class] .caspian--iwt-block .caspian--iwt--content p { font-size: .9375rem; }
html body[class] .caspian--iwt-block .caspian--iwt--text h5 { font-size: .75rem; }
html body[class] .left-right-container .left-right-wrapper p { font-size: .875rem; }
html body[class] div.blog-posts-page p,
html body[class] div.blog-posts-page li,
html body[class] div.single-post-container p,
html body[class] div.single-post-container li { font-size: .9375rem; line-height: 1.75; }
