/* Frozena site-wide styles for Blocksy + WooCommerce (light, clean, fast). */

/* Blocksy palette -> ink, white and the Frozena blue */
:root {
  --theme-palette-color-1: #0e7a4d;
  --theme-palette-color-2: #0a5c3a;
  --theme-palette-color-3: #3d4f47;
  --theme-palette-color-4: #0d2a22;
  --theme-palette-color-5: #e1e9e4;
  --theme-palette-color-6: #f2f7f4;
  --theme-palette-color-7: #ffffff;
  --theme-palette-color-8: #ffffff;
  --fz-ink: #0d2a22;
  --fz-paper: #ffffff;
  --fz-mist: #f2f7f4;
  --fz-line: #e1e9e4;
  --fz-muted: #56665f;
  --fz-blue: #0e7a4d;
  --fz-blue-dark: #0a5c3a;
  --fz-sky: #e8f5ed;
  --fz-radius: 14px;
  --fz-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body { font-family: var(--fz-text); color: var(--fz-ink); background: var(--fz-paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .product_title, .page-title, .entry-title { font-family: var(--fz-text) !important; font-weight: 700 !important; letter-spacing: -.02em; color: var(--fz-ink); }
a { text-underline-offset: 3px; }

/* Header */
#header { border-bottom: 1px solid var(--fz-line); position: relative; z-index: 100; }
#header .site-title-container, #header .site-description { display: none !important; }
#header .site-logo-container { --logo-max-height: 48px; }
#header .ct-menu-link { color: var(--fz-ink) !important; font-weight: 600 !important; font-size: 14px !important; }
#header .ct-menu-link:hover, #header .current-menu-item > .ct-menu-link { color: var(--fz-blue) !important; }
#header .ct-icon, #header svg { color: var(--fz-ink); fill: currentColor; }

/* Header dropdowns: white panel, dark readable text, green on hover */
#header [data-id="menu"], #header .ct-header-menu, #header nav[class*="menu"] {
  --dropdown-background-color: #ffffff; --dropdown-items-color: var(--fz-ink); --dropdown-items-hover-color: var(--fz-blue);
  --dropdown-divider: 1px solid var(--fz-line); --dropdown-box-shadow: 0 14px 34px rgba(13, 42, 34, .12);
}
#header .sub-menu { z-index: 101;
  background: #ffffff !important; border: 1px solid var(--fz-line); border-radius: 12px !important;
  box-shadow: 0 14px 34px rgba(13, 42, 34, .12) !important; padding: 8px 0 !important; min-width: 230px;
}
#header .sub-menu li { border: 0 !important; }
/* invisible bridge over the gap between the menu item and its dropdown, so the dropdown stays open while the mouse moves down */
#header .menu-item-has-children > .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -60px; height: 60px; background: transparent; }
#header .sub-menu .ct-menu-link {
  color: var(--fz-ink) !important; font-weight: 500 !important; font-size: 14px !important; letter-spacing: 0 !important;
  text-transform: none !important; padding: 10px 18px !important; background: transparent !important;
}
#header .sub-menu .ct-menu-link:hover, #header .sub-menu .current-menu-item > .ct-menu-link { color: var(--fz-blue) !important; background: var(--fz-mist) !important; text-decoration: none !important; }

/* Page title band */
.hero-section[data-type="type-2"] { background: var(--fz-mist); --min-height: 150px; min-height: 150px !important; }
.hero-section[data-type="type-2"] .page-title { font-size: clamp(26px, 3vw, 38px) !important; }
.home .hero-section { display: none; }

/* Buttons */
.button, button.button, .single_add_to_cart_button, .checkout-button, a.added_to_cart, .ct-button, button[type="submit"], input[type="submit"] {
  border-radius: 999px !important; background: var(--fz-blue) !important; color: #fff !important; border: 0 !important;
  font: 600 14px/1 var(--fz-text) !important; min-height: 46px; padding: 0 24px !important; transition: background-color .15s ease;
}
.button:hover, .single_add_to_cart_button:hover, .checkout-button:hover, .ct-button:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--fz-blue-dark) !important; color: #fff !important; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--fz-blue) !important; outline-offset: 3px; }

/* Product grid: 4 per row on desktop, 3 on tablet, 2 on phone; every image the same square */
[data-products] { --shop-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 999.98px) { [data-products] { --shop-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 689.98px) { [data-products] { --shop-columns: repeat(2, minmax(0, 1fr)) !important; } }
ul.products { gap: 28px 20px; }
ul.products li.product { text-align: left; display: flex; flex-direction: column; }
ul.products li.product figure { margin-bottom: 14px !important; }
ul.products li.product .ct-media-container { background: #fff; border: 1px solid var(--fz-line); border-radius: var(--fz-radius); aspect-ratio: 1 / 1; overflow: hidden; }
ul.products li.product .ct-media-container img { width: 100% !important; height: 100% !important; aspect-ratio: 1 / 1 !important; object-fit: contain !important; padding: 10px; transition: transform .35s ease; }
ul.products li.product:hover .ct-media-container img { transform: scale(1.03); }
ul.products li.product .woocommerce-loop-product__title {
  font: 600 15px/1.4 var(--fz-text) !important; color: var(--fz-ink); margin-bottom: 6px !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em;
}
ul.products li.product .price { font: 700 16px/1.2 var(--fz-text) !important; color: var(--fz-ink) !important; }
ul.products li.product .entry-meta, ul.products li.product .meta-categories { display: none; }
ul.products li.product .ct-woo-card-actions { margin-top: auto; padding-top: 12px; }

/* Shop and category pages */
.woocommerce-result-count, .woocommerce-ordering select { font-size: 14px; color: var(--fz-muted); }
.woocommerce-ordering select { border-radius: 999px; border-color: var(--fz-line); min-height: 40px; }
.term-description, .woocommerce-products-header__description { color: var(--fz-muted); max-width: 760px; margin: 0 auto; }

/* Single product */
.product_title { font-size: clamp(23px, 2.3vw, 31px) !important; line-height: 1.2 !important; }
.single-product .summary .price { font: 700 28px/1.2 var(--fz-text) !important; color: var(--fz-ink) !important; }
.single-product .woocommerce-product-gallery .flexy-items { background: #fff; border: 1px solid var(--fz-line); border-radius: var(--fz-radius); }
.single-product .woocommerce-product-gallery .flexy-items img { object-fit: contain !important; aspect-ratio: 1 / 1; }
.single-product .woocommerce-product-gallery .flexy-pills img { object-fit: contain !important; background: #fff; }
.single-product .tagged_as, .single-product .sku_wrapper { display: none !important; }
.single-product .product_meta a { color: var(--fz-muted) !important; opacity: 1 !important; }
.single-product .woocommerce-product-details__short-description { font-size: 16px; line-height: 1.65; color: #34443d; }
.single-product table.variations { margin-bottom: 8px !important; }
.single-product table.variations select { min-height: 46px; max-width: 100%; font-size: 14.5px; }
.fz-perks { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--fz-line); display: grid; gap: 8px; }
.fz-perks li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--fz-ink); }
.fz-perks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--fz-blue); border-bottom: 2px solid var(--fz-blue); transform: rotate(-45deg); }
.single-product .woocommerce-tabs .reviews_tab { display: none; }
.single-product .woocommerce-Tabs-panel { font-size: 16px; line-height: 1.7; color: #2a3a33; }
.woocommerce-Tabs-panel h2 { font-size: 20px !important; margin-top: 32px !important; margin-bottom: 12px !important; }
.woocommerce-Tabs-panel h2:first-child { margin-top: 0 !important; }
.woocommerce-Tabs-panel h3 { font-size: 16px !important; font-weight: 600 !important; margin-top: 16px !important; margin-bottom: 4px !important; }
.woocommerce-Tabs-panel h3 + p { margin-top: 0; }
.fz-lead { font-size: 17px; line-height: 1.7; }
.fz-features, .fz-options { padding-left: 20px; }
.fz-features li, .fz-options li { margin-bottom: 6px; }
.fz-specs { width: 100% !important; border-collapse: collapse; margin-bottom: 8px !important; font-size: 15px; }
.fz-specs th, .fz-specs td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--fz-line); }
.fz-specs th { width: 38%; font-weight: 500; color: var(--fz-muted); background: var(--fz-mist); }
.fz-note { background: #fff6e5; border-radius: 10px; padding: 12px 16px; font-size: 15px; }
.fz-faq h3 { margin-top: 18px !important; }

/* Buy it now (below Add to cart, full width) */
.single-product form.cart:not(.variations_form), .single-product .woocommerce-variation-add-to-cart { flex-wrap: wrap; }
.single-product .fz-buynow { flex: 1 0 100%; margin: 10px 0 0 !important; background: var(--fz-ink) !important; color: #fff !important; }
.single-product .fz-buynow:hover { background: #000 !important; }
.single-product .fz-buynow[disabled] { opacity: .7; cursor: wait; }
.single-product .quantity { border-color: var(--fz-line) !important; }

/* Breadcrumbs */
.ct-breadcrumbs, .ct-breadcrumbs a, .woocommerce-breadcrumb, .woocommerce-breadcrumb a { color: var(--fz-muted) !important; }
.ct-breadcrumbs a:hover, .woocommerce-breadcrumb a:hover { color: var(--fz-ink) !important; }

/* Phone gallery: thumbnails in one scrolling row */
@media (max-width: 689.98px) {
  .woocommerce-product-gallery .flexy-pills { height: 72px; overflow: hidden; }
  .woocommerce-product-gallery .flexy-pills ol { display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; overflow-x: auto; scrollbar-width: none; margin: 0 !important; padding: 0 0 8px !important; }
  .woocommerce-product-gallery .flexy-pills ol::-webkit-scrollbar { display: none; }
  .woocommerce-product-gallery .flexy-pills li { flex: 0 0 64px !important; width: 64px !important; max-width: 64px !important; height: 64px !important; margin: 0 !important; }
  .woocommerce-product-gallery .flexy-pills li .ct-media-container, .woocommerce-product-gallery .flexy-pills li img { width: 64px !important; height: 64px !important; object-fit: contain; border-radius: 8px; }
}

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], textarea, select { border-radius: 10px !important; }

/* Checkout: email after the name, no company / address line 2, two matching cards */
.woocommerce-billing-fields__field-wrapper { display: flex; flex-wrap: wrap; justify-content: space-between; }
.woocommerce-billing-fields__field-wrapper > .form-row { order: 10; width: 100%; float: none; }
.woocommerce-billing-fields__field-wrapper > #billing_first_name_field, .woocommerce-billing-fields__field-wrapper > #billing_last_name_field { order: 1; width: calc(50% - 10px); }
.woocommerce-billing-fields__field-wrapper > #billing_email_field { order: 2; }
.woocommerce-billing-fields__field-wrapper > #billing_company_field, .woocommerce-billing-fields__field-wrapper > #billing_address_2_field { display: none !important; }
.woocommerce-checkout form.checkout { align-items: start; }
.woocommerce-checkout .ct-customer-details, .woocommerce-checkout .ct-order-review { background: var(--fz-paper); border: 1px solid var(--fz-line) !important; border-radius: var(--fz-radius); padding: 32px !important; }
.woocommerce-checkout .woocommerce-billing-fields h3, .woocommerce-checkout #order_review_heading { font-size: 18px; font-weight: 700; color: var(--fz-ink); margin: 0 0 20px; }
@media (max-width: 689.98px) { .woocommerce-checkout .ct-customer-details, .woocommerce-checkout .ct-order-review { padding: 20px !important; } }

/* Checkout: the store ships to the United States only, so the country field is fixed (no arrow, not clickable) */
#billing_country_field select, #shipping_country_field select { pointer-events: none; -webkit-appearance: none; appearance: none; background-image: none !important; background-color: var(--fz-mist) !important; }
#billing_country_field .select2-selection, #shipping_country_field .select2-selection { pointer-events: none; background: var(--fz-mist) !important; }
#billing_country_field .select2-selection__arrow, #shipping_country_field .select2-selection__arrow { display: none !important; }
#billing_country_field, #shipping_country_field { cursor: default; }

/* Checkout: PayPal button look when PayPal is selected */
body.fz-pay-paypal #place_order {
  background: #ffc439 !important; color: #111 !important; font-size: 0 !important; min-height: 52px; width: 100%;
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; border-radius: 999px !important;
}
body.fz-pay-paypal #place_order::before { content: "Pay with"; font: 600 16px/1 var(--fz-text); color: #111; }
body.fz-pay-paypal #place_order::after { content: ""; width: 82px; height: 23px; background: var(--fz-pp-logo) center / contain no-repeat; }
body.fz-pay-paypal #place_order:hover { background: #f2ba36 !important; filter: brightness(.98); }
body.fz-pay-paypal .place-order::after { content: "You will complete your payment securely with PayPal."; display: block; text-align: center; font-size: 13px; color: var(--fz-muted); margin-top: 10px; }

/* Footer: the Frozena footer replaces the theme footer */
#footer { display: none !important; }
.fz-footer { background: var(--fz-mist); border-top: 1px solid var(--fz-line); color: var(--fz-muted); font-size: 14.5px; line-height: 1.6; }
.fz-footer__wrap { max-width: 1240px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.fz-footer a { color: var(--fz-muted); text-decoration: none; }
.fz-footer a:hover { color: var(--fz-ink); text-decoration: underline; }
.fz-footer__brand img { display: block; width: 60px !important; height: 60px !important; border-radius: 14px; }
.fz-footer__brand p { margin: 14px 0 18px; max-width: 360px; }
.fz-footer__h { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fz-ink) !important; margin: 4px 0 14px !important; }
.fz-footer__links, .fz-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fz-footer__contact span { display: block; font-size: 12.5px; color: #7f8e87; }
.fz-footer__contact li { color: var(--fz-ink); }
.fz-footer__cards { display: flex; flex-wrap: wrap; gap: 8px; }
.fz-footer__cards svg { display: block; width: 48px; height: 31px; border-radius: 5px; box-shadow: 0 0 0 1px var(--fz-line); background: #fff; }
.fz-footer__bottom { border-top: 1px solid var(--fz-line); }
.fz-footer__bottom p { max-width: 1240px; margin: 0 auto; padding: 18px 24px; font-size: 13.5px; }
@media (max-width: 999.98px) { .fz-footer__wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 689.98px) {
  .fz-footer__wrap { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 40px 16px 28px; }
  .fz-footer__brand, .fz-footer__wrap > div:last-child { grid-column: 1 / -1; }
  .fz-footer__bottom p { padding: 16px; }
}

@media (max-width: 689.98px) {
  ul.products { gap: 20px 12px; }
  ul.products li.product .ct-media-container img { padding: 6px; }
  ul.products li.product .woocommerce-loop-product__title { font-size: 14px !important; }
  ul.products li.product .price { font-size: 15px !important; }
  ul.products li.product .button { width: 100%; font-size: 13px !important; padding: 0 10px !important; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
