/*
Theme Name: The Enoch Clock — Unified
Theme URI: https://www.theenochclock.com/
Description: Unified relaunch child theme for The Enoch Clock.
Author: The Enoch Clock
Template: flatsome
Version: 1.0.0
Text Domain: enoch-clock-unified
*/

:root { --tec-wp-max: 90rem; }
html { scroll-behavior: smooth; }
body.tec-wp { background: var(--tec-paper, #f5efe6); color: var(--tec-ink, #17130f); }
.tec-wp #wrapper, .tec-wp #main { background: transparent; }
.tec-wp .tec-header { position: sticky; top: 0; }
.tec-wp.admin-bar .tec-header { top: 32px; }
.tec-wp .tec-nav ul, .tec-wp .tec-footer ul { margin: 0; }
.tec-wp .tec-nav li, .tec-wp .tec-footer li { margin: 0; }
.tec-wp .tec-footer a, .tec-wp .tec-header a { color: inherit; }
.tec-wp .tec-utility { position: relative; }
.tec-cart-count { display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; margin-left: .15rem; border-radius: 99px; background: var(--tec-fire, #eb5b16); color: #fff; font: 700 .65rem/1 system-ui,sans-serif; }

.tec-wp-page { min-height: 60vh; }
.tec-wp-content { width: min(100% - 2rem, 78rem); margin-inline: auto; padding: clamp(4rem,8vw,8rem) 0; }
.tec-wp-content > :first-child { margin-top: 0; }
.tec-wp-content > h1:first-child { display: none; }
.tec-wp-content h1 { max-width: 16ch; font: 700 clamp(3rem,8vw,7rem)/.94 var(--tec-serif,Georgia,serif); letter-spacing: -.05em; }
.tec-wp-content h2 { margin-top: 2.5rem; font: 700 clamp(2rem,4vw,3.7rem)/1 var(--tec-serif,Georgia,serif); }
.tec-wp-content h3 { margin-top: 2rem; font: 700 clamp(1.35rem,2vw,2rem)/1.1 var(--tec-serif,Georgia,serif); }
.tec-wp-content p, .tec-wp-content li { max-width: 72ch; font-size: 1.05rem; line-height: 1.75; }
.tec-wp-content a:not(.button):not(.tec-button) { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }

.woocommerce .tec-commerce-hero { padding: clamp(4rem,9vw,8rem) 0 clamp(2rem,5vw,4rem); background: var(--tec-night,#11100e); color: #fff; }
.tec-commerce-hero__inner { width: min(100% - 2rem, 88rem); margin-inline: auto; }
.tec-commerce-hero h1 { max-width: 13ch; margin: .5rem 0 1rem; color: inherit; font: 700 clamp(3rem,7vw,6.5rem)/.95 var(--tec-serif,Georgia,serif); letter-spacing: -.05em; }
.tec-commerce-hero__title { max-width: 13ch; margin: .5rem 0 1rem; color: inherit; font: 700 clamp(3rem,7vw,6.5rem)/.95 var(--tec-serif,Georgia,serif); letter-spacing: -.05em; }
.tec-commerce-hero p { max-width: 48rem; color: rgba(255,255,255,.76); font-size: clamp(1rem,1.5vw,1.25rem); }
.woocommerce .tec-commerce-shell { width: min(100% - 2rem, 88rem); margin-inline: auto; padding: clamp(3rem,6vw,6rem) 0; }
.woocommerce .woocommerce-breadcrumb { margin: 0 0 2rem; color: #645f59; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 2rem; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1.5rem,3vw,3rem); margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: clamp(1.25rem,3vw,2.5rem); border: 1px solid rgba(23,19,15,.16); background: #fff; }
.woocommerce ul.products li.product img { aspect-ratio: 1 / 1; object-fit: contain; background: #f0e9df; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--tec-ink,#17130f); font: 700 clamp(1.6rem,3vw,2.7rem)/1.02 var(--tec-serif,Georgia,serif); }
.woocommerce ul.products li.product .price { color: var(--tec-ink,#17130f); font: 700 1.1rem/1.2 system-ui,sans-serif; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { min-height: 2.9rem; padding: .85rem 1.2rem; border-radius: 999px; background: var(--tec-ink,#17130f); color: #fff; font-weight: 700; letter-spacing: .01em; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--tec-fire,#eb5b16); color: #fff; }

.single-product .tec-commerce-shell > .product { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(20rem,.95fr); gap: clamp(2rem,6vw,7rem); align-items: start; }
.single-product .product .woocommerce-product-gallery, .single-product .product .summary { width: auto !important; float: none !important; }
.single-product .product .summary { position: sticky; top: 8rem; }
.single-product .product_title { color: var(--tec-ink,#17130f); font: 700 clamp(2.6rem,5vw,5rem)/.95 var(--tec-serif,Georgia,serif); letter-spacing: -.045em; }
.single-product .price { color: var(--tec-ink,#17130f) !important; font-size: 1.35rem !important; }
.single-product .woocommerce-product-details__short-description { font-size: 1.08rem; line-height: 1.7; }
.single-product form.cart { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.single-product table.variations { margin-bottom: 1rem; }
.single-product .product_meta { padding-top: 1.5rem; border-top: 1px solid rgba(23,19,15,.18); font-size: .85rem; }
.single-product .woocommerce-tabs, .single-product .related { grid-column: 1 / -1; width: 100%; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0; background: transparent; }

.woocommerce-cart .tec-wp-content, .woocommerce-checkout .tec-wp-content, .woocommerce-account .tec-wp-content { width: min(100% - 2rem, 88rem); }
.woocommerce table.shop_table { border-color: rgba(23,19,15,.18); border-radius: 0; background: #fff; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 1rem; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout #order_review, .woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register { padding: clamp(1.25rem,3vw,2.5rem); border: 1px solid rgba(23,19,15,.18); background: #fff; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 3.1rem; border: 1px solid #777; background: #fff; color: #17130f; }
.woocommerce form .form-row label { color: #1f2937; font-weight: 700; }

.tec-contact-layout { display: grid; grid-template-columns: minmax(0,.7fr) minmax(20rem,1.3fr); gap: clamp(2rem,7vw,8rem); align-items: start; }
.tec-contact-form { padding: clamp(1.5rem,4vw,3.5rem); border: 1px solid rgba(23,19,15,.16); background: #fff; }
.tec-contact-form label { color: #1f2937; font-weight: 700; }
.tec-contact-form input, .tec-contact-form textarea { width: 100%; border: 1px solid #777; background: #fff; color: #333; }
.tec-contact-form .wpcf7-submit { width: auto; border-radius: 99px; background: #17130f; color: #fff; }

@media (max-width: 849px) {
  .tec-wp.admin-bar .tec-header { top: 46px; }
  .single-product .tec-commerce-shell > .product, .tec-contact-layout { grid-template-columns: 1fr; }
  .single-product .product .summary { position: static; }
}
@media (max-width: 599px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .tec-wp-content { width: min(100% - 1.25rem, 78rem); }
}
