/* ============================================================
   Finderra UI system
   Kiddy-inspired structure, Finderra palette.
   Loaded after the Blocksy parent stylesheet on every page.
   ============================================================ */

:root{
  --fnd-ink:#2B2D42;
  --fnd-ink-soft:#5C6470;
  --fnd-cream:#FEFAE0;
  --fnd-sand:#F6F1E4;
  --fnd-paper:#FBF8EC;
  --fnd-white:#ffffff;
  --fnd-accent:#E76F51;
  --fnd-accent-dark:#C1121F;
  --fnd-amber:#F4A261;
  --fnd-green:#1B4332;
  --fnd-green-soft:#F1F6F2;
  --fnd-gold:#D4A373;
  --fnd-line:#E8E2D4;
  --fnd-line-strong:#D8CFBB;
  --fnd-muted:#6B7280;
  --fnd-radius:12px;
  --fnd-radius-sm:8px;
  --fnd-radius-lg:18px;
  --fnd-container:1240px;
  --fnd-gutter:clamp(18px,4vw,48px);
  --fnd-space:clamp(56px,7vw,96px);
  --fnd-font-body:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --fnd-font-head:"Outfit",system-ui,-apple-system,"Segoe UI",sans-serif;
}

/* Blocksy palette remap. html:root outranks the theme's :root block. */
html:root{
  --theme-palette-color-1:#E76F51;
  --theme-palette-color-2:#1B4332;
  --theme-palette-color-3:#5C6470;
  --theme-palette-color-4:#2B2D42;
  --theme-palette-color-5:#E8E2D4;
  --theme-palette-color-6:#F0EBDF;
  --theme-palette-color-7:#F9F7F0;
  --theme-palette-color-8:#ffffff;
  --theme-font-family:"Plus Jakarta Sans",system-ui,sans-serif;
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */
body,
.ct-body{
  font-family:var(--fnd-font-body);
  color:var(--fnd-ink);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

h1,h2,h3,h4,h5,h6,
.ct-heading,
.font-heading,
.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4{
  font-family:var(--fnd-font-head) !important;
  color:var(--fnd-ink);
  letter-spacing:-.02em;
  line-height:1.12;
}

p{color:inherit}

a{color:var(--fnd-accent);text-decoration:none;transition:color .15s ease}
a:hover{color:var(--fnd-green)}

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

:focus-visible{outline:2px solid var(--fnd-accent);outline-offset:3px;border-radius:2px}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.ct-container{
  max-width:var(--fnd-container);
  padding-left:var(--fnd-gutter);
  padding-right:var(--fnd-gutter);
}

.ct-container-fluid{
  max-width:var(--fnd-container);
  margin-left:auto;
  margin-right:auto;
  padding-left:var(--fnd-gutter);
  padding-right:var(--fnd-gutter);
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
header#header{
  position:sticky;
  top:0;
  z-index:999;
  background:var(--fnd-white);
  border-bottom:1px solid var(--fnd-line);
  box-shadow:none;
  backdrop-filter:none;
}

body.admin-bar header#header{top:32px}

header#header [data-row="middle"]{
  min-height:72px;
}

header#header [data-row="middle"] > .ct-container-fluid{
  min-height:72px;
  display:flex;
  align-items:center;
}

header#header .site-title a{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--fnd-font-head);
  font-size:22px;
  font-weight:800;
  letter-spacing:-.03em;
  color:var(--fnd-green);
}

header#header .site-title a::before{
  content:"F";
  display:inline-grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:10px;
  background:var(--fnd-green);
  color:var(--fnd-gold);
  font-family:var(--fnd-font-head);
  font-size:17px;
  font-weight:900;
  line-height:1;
}

header#header .ct-menu-link{
  font-family:var(--fnd-font-body);
  font-size:15px;
  font-weight:600;
  color:var(--fnd-ink);
  letter-spacing:0;
}

header#header .ct-menu-link:hover,
header#header .current-menu-item > .ct-menu-link{
  color:var(--fnd-accent);
}

header#header .menu > li > a{padding-left:13px;padding-right:13px}

header#header .ct-header-search,
header#header .ct-header-cart,
header#header .ct-account-item{
  color:var(--fnd-ink);
}

header#header .ct-header-cart:hover,
header#header .ct-header-search:hover{color:var(--fnd-accent)}

header#header .ct-button,
header#header .ct-header-button .ct-button{
  padding:11px 20px;
  font-size:14px;
}

@media (max-width:999px){
  header#header [data-row="middle"],
  header#header [data-row="middle"] > .ct-container-fluid{min-height:64px}
  header#header .site-title a{font-size:19px}
  header#header .site-title a::before{width:30px;height:30px;font-size:15px;border-radius:9px}
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.ct-footer{
  background:#F9FAFB;
  border-top:1px solid var(--fnd-line);
  color:var(--fnd-ink-soft);
}

.ct-footer .ct-container{max-width:var(--fnd-container)}

.ct-footer h1,.ct-footer h2,.ct-footer h3,
.ct-footer h4,.ct-footer h5,.ct-footer h6{
  font-family:var(--fnd-font-head) !important;
  font-size:13px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--fnd-ink);
  margin-bottom:14px;
}

.ct-footer p,
.ct-footer li,
.ct-footer .stk-block-text__text{
  font-size:14px;
  line-height:1.7;
  color:var(--fnd-ink-soft);
}

.ct-footer a{color:var(--fnd-ink-soft)}
.ct-footer a:hover{color:var(--fnd-accent)}

.ct-footer [data-row="bottom"]{
  border-top:1px solid var(--fnd-line);
  font-size:13px;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.ct-button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .single_add_to_cart_button,
.woocommerce a.button.alt,
.woocommerce button.button.alt{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:var(--fnd-ink);
  color:#fff;
  border:1px solid var(--fnd-ink);
  border-radius:var(--fnd-radius-sm);
  padding:14px 26px;
  font-family:var(--fnd-font-body);
  font-size:15px;
  font-weight:600;
  line-height:1.2;
  letter-spacing:0;
  text-transform:none;
  box-shadow:none;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}

.ct-button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover{
  background:var(--fnd-green);
  border-color:var(--fnd-green);
  color:#fff;
}

.ct-button:active,
.woocommerce a.button:active{transform:translateY(1px)}

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea{
  font-family:var(--fnd-font-body);
  font-size:15px;
  color:var(--fnd-ink);
  background:var(--fnd-white);
  border:1px solid var(--fnd-line-strong);
  border-radius:var(--fnd-radius-sm);
  padding:12px 14px;
  box-shadow:none;
}

input:focus,
textarea:focus,
select:focus{
  border-color:var(--fnd-accent);
  outline:none;
  box-shadow:0 0 0 3px rgba(231,111,81,.14);
}

/* ------------------------------------------------------------
   WooCommerce product cards
   ------------------------------------------------------------ */
.woocommerce ul.products{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
  margin:0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after{display:none}

.woocommerce ul.products li.product{
  width:auto !important;
  float:none !important;
  margin:0 !important;
  padding:0;
  background:var(--fnd-white);
  border:1px solid var(--fnd-line);
  border-radius:var(--fnd-radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  text-align:left;
  box-shadow:none;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}

.woocommerce ul.products li.product:hover{
  border-color:var(--fnd-line-strong);
  box-shadow:0 14px 34px rgba(43,45,66,.08);
  transform:translateY(-3px);
}

.woocommerce ul.products li.product a img{
  margin:0;
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:0;
  transition:transform .4s ease;
}

.woocommerce ul.products li.product:hover a img{transform:scale(1.03)}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2{
  font-family:var(--fnd-font-head) !important;
  font-size:16px !important;
  font-weight:600;
  line-height:1.3;
  color:var(--fnd-ink);
  padding:14px 16px 0;
  margin:0;
}

.woocommerce ul.products li.product .price{
  color:var(--fnd-ink) !important;
  font-family:var(--fnd-font-head);
  font-size:17px;
  font-weight:700;
  padding:6px 16px 0;
}

.woocommerce ul.products li.product .price del{
  color:var(--fnd-muted);
  font-size:13px;
  font-weight:500;
}

.woocommerce ul.products li.product .button{
  margin:14px 16px 16px;
  padding:11px 16px;
  font-size:14px;
  border-radius:var(--fnd-radius-sm);
}

.woocommerce ul.products li.product .onsale{
  top:10px;
  right:10px;
  left:auto;
  min-height:0;
  min-width:0;
  padding:4px 10px;
  border-radius:999px;
  background:var(--fnd-accent);
  color:#fff;
  font-size:11px;
  font-weight:700;
  line-height:1.4;
}

.woocommerce ul.products li.product .star-rating{margin:6px 16px 0;font-size:12px}

@media (max-width:1023px){
  .woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
}

@media (max-width:767px){
  .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px !important;padding:11px 12px 0}
  .woocommerce ul.products li.product .price{font-size:15px;padding:4px 12px 0}
  .woocommerce ul.products li.product .button{margin:10px 12px 12px;font-size:13px;padding:9px 12px}
}

/* ------------------------------------------------------------
   Shared utilities for templates
   ------------------------------------------------------------ */
.fnd-container{
  width:100%;
  max-width:var(--fnd-container);
  margin-left:auto;
  margin-right:auto;
  padding-left:var(--fnd-gutter);
  padding-right:var(--fnd-gutter);
}

.fnd-section{padding:var(--fnd-space) 0}

.fnd-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--fnd-font-body);
  font-size:11px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--fnd-accent);
}

.fnd-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:14px 26px;
  border-radius:var(--fnd-radius-sm);
  border:1px solid var(--fnd-ink);
  background:var(--fnd-ink);
  color:#fff;
  font-family:var(--fnd-font-body);
  font-size:15px;
  font-weight:600;
  line-height:1.2;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}

.fnd-btn:hover{background:var(--fnd-green);border-color:var(--fnd-green);color:#fff}

.fnd-btn--ghost{
  background:transparent;
  color:var(--fnd-ink);
  border-color:var(--fnd-line-strong);
}

.fnd-btn--ghost:hover{
  background:var(--fnd-ink);
  border-color:var(--fnd-ink);
  color:#fff;
}

.fnd-btn--accent{
  background:var(--fnd-accent);
  border-color:var(--fnd-accent);
  color:#fff;
}

.fnd-btn--accent:hover{
  background:var(--fnd-accent-dark);
  border-color:var(--fnd-accent-dark);
  color:#fff;
}

.fnd-card{
  background:var(--fnd-white);
  border:1px solid var(--fnd-line);
  border-radius:var(--fnd-radius);
  box-shadow:none;
}

.fnd-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--fnd-line-strong);
  background:var(--fnd-white);
  color:var(--fnd-ink);
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
}

.fnd-chip:hover{border-color:var(--fnd-accent);color:var(--fnd-accent)}

/* ------------------------------------------------------------
   WooCommerce notices, tables, misc
   ------------------------------------------------------------ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  border-radius:var(--fnd-radius-sm);
  border-top:0;
  border-left:3px solid var(--fnd-accent);
  background:var(--fnd-paper);
  color:var(--fnd-ink);
  font-size:14px;
}

.woocommerce-message::before,
.woocommerce-info::before{color:var(--fnd-accent)}

.quantity .qty{
  border-radius:var(--fnd-radius-sm);
  border:1px solid var(--fnd-line-strong);
  padding:10px 8px;
}

/* Hide plugin pinterest overlay noise on cards */
.pinterest-for-woocommerce-image-wrapper{display:none !important}
