/* Entspos Trading: inner pages. Colour tokens and fonts come from home.css.
   This file maps them onto Blocksy, Elementor and WooCommerce. */

:root{--accent-strong:#013E73}
:root[data-theme="dark"]{--accent-strong:#0F5FA8}

/* Blocksy theme variables */
html[data-theme]{
  --theme-palette-color-1:var(--accent);--theme-palette-color-2:var(--accent-strong);
  --theme-palette-color-3:var(--text);--theme-palette-color-4:var(--ink);
  --theme-palette-color-5:var(--line);--theme-palette-color-6:var(--bg);
  --theme-palette-color-7:var(--bg);--theme-palette-color-8:var(--surface);
  --theme-font-family:'Manrope',system-ui,sans-serif;
  --theme-text-color:var(--text);--theme-headings-color:var(--ink);
  --theme-link-initial-color:var(--accent-text);--theme-link-hover-color:var(--accent-hover);
  --theme-border-color:var(--line);
  --theme-button-border-radius:999px;--theme-button-min-height:48px;
  --theme-button-background-initial-color:var(--accent);--theme-button-background-hover-color:var(--accent-strong);
  --theme-button-text-initial-color:#FFFFFF;--theme-button-text-hover-color:#FFFFFF;
  --theme-form-field-border-radius:12px;--theme-form-field-height:48px;
  --theme-form-field-border-initial-color:var(--line2);--theme-form-field-border-focus-color:var(--accent-text);
  --theme-form-text-initial-color:var(--ink);--theme-form-text-focus-color:var(--ink);
  --theme-form-field-background-initial-color:var(--surface);--theme-form-field-background-focus-color:var(--surface);
  --theme-normal-container-max-width:1216px;
}
html[data-theme] body{background:var(--bg);color:var(--text);font-family:'Manrope',system-ui,sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
html[data-theme] #main-container,html[data-theme] #main{background:transparent}
html[data-theme] body :is(h1,h2,h3,h4,h5,h6,.entry-title,.page-title,.product_title){font-family:'Sora','Manrope',sans-serif;font-weight:600;letter-spacing:-0.025em;color:var(--ink)}
html[data-theme] body :is(.page-title,.entry-header .entry-title,h1.product_title){font-size:clamp(32px,4vw,48px);line-height:1.08;letter-spacing:-0.035em}
html[data-theme] .ct-container,html[data-theme] .ct-container-narrow{--theme-container-edge-spacing:32px}

/* Elementor: colours follow the mode */
html[data-theme="dark"] body[class*="elementor-kit-"]{
  --e-global-color-primary:#EEF2F6;--e-global-color-secondary:#97A4B1;--e-global-color-text:#B4C0CC;
  --e-global-color-accent:#2B86D9;--e-global-color-etsurface:#141C26;--e-global-color-etcard:#141C26;
  --e-global-color-etbg:#0C1219;--e-global-color-etline:#243140;--e-global-color-etsky:#132637;--e-global-color-etdeep:#7DBBF0;
}
html[data-theme] .elementor-element.animated.fadeInUp{animation-name:et-up;animation-duration:.9s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
html[data-theme] .elementor a:not(.elementor-button){color:var(--accent-text)}
html[data-theme] .elementor-widget-heading a{color:inherit}
html[data-theme] .elementor-button{transition:transform .2s,box-shadow .2s,background-color .2s}
html[data-theme] .elementor-button:hover{transform:translateY(-2px)}
html[data-theme] .elementor-widget-image img{border-radius:14px}
html[data-theme] .elementor-field-group .elementor-field-label{color:var(--ink);font-weight:600;font-size:14px}
html[data-theme] .elementor-field-group :is(input.elementor-field,select,textarea.elementor-field){background-color:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line2)!important;border-radius:12px!important;min-height:48px;font-family:'Manrope',sans-serif;font-size:15px}
html[data-theme] .elementor-form .elementor-button[type=submit]{border-radius:999px!important;background-color:var(--accent)!important;color:#FFFFFF!important}
html[data-theme] .elementor-field-group :is(input,select,textarea):focus{border-color:var(--accent-text);box-shadow:none;outline:2px solid var(--accent-text);outline-offset:1px}
html[data-theme] .elementor-form .elementor-button{border-radius:999px;background:var(--accent);color:#FFFFFF;min-height:52px;padding:0 26px;font:700 16px 'Manrope',sans-serif;text-transform:none;letter-spacing:0}
html[data-theme] .elementor-accordion .elementor-accordion-item{border:1px solid var(--line);border-radius:18px;background:var(--surface);margin-bottom:12px;overflow:hidden}
html[data-theme] .elementor-accordion .elementor-tab-title{border:0;color:var(--ink);font:600 17px 'Sora',sans-serif;letter-spacing:-0.02em;padding:18px 22px}
html[data-theme] .elementor-accordion .elementor-tab-title a{color:var(--ink)}
html[data-theme] .elementor-accordion .elementor-tab-content{border:0;color:var(--text);padding:0 22px 20px}
html[data-theme] .elementor-icon-box-title,html[data-theme] .elementor-icon-box-title a{color:var(--ink)}
html[data-theme] .elementor-icon-box-description{color:var(--muted)}

/* WooCommerce: catalogue */
html[data-theme] .woocommerce-page .hero-section,html[data-theme] .hero-section{background:transparent}
html[data-theme] :is(.woocommerce-result-count,.woocommerce-breadcrumb,.ct-breadcrumbs){color:var(--muted);font-size:14px}
html[data-theme] select.orderby{border-radius:999px;background-color:var(--surface);color:var(--ink);border:1px solid var(--line2);min-height:44px}
html[data-theme] [data-products] .product,html[data-theme] ul.products li.product{background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:14px 14px 20px;transition:box-shadow .4s,transform .4s cubic-bezier(.2,.8,.2,1)}
html[data-theme] [data-products] .product:hover,html[data-theme] ul.products li.product:hover{box-shadow:0 24px 48px -20px var(--hover-shadow);transform:translateY(-6px)}
html[data-theme] [data-products] .product :is(figure,.ct-media-container),html[data-theme] ul.products li.product :is(figure,.ct-media-container){border-radius:14px;overflow:hidden;background:var(--tint-blue)}
html[data-theme] [data-products] .product img{border-radius:14px}
html[data-theme] .woocommerce-loop-product__title,html[data-theme] .woocommerce-loop-category__title{font-family:'Manrope',sans-serif;font-size:16px;font-weight:700;line-height:1.4;letter-spacing:0;color:var(--ink);text-align:left}
html[data-theme] .woocommerce-loop-product__title a{color:var(--ink)}
html[data-theme] [data-products] .product :is(.price,.entry-meta,.ct-woo-card-actions){text-align:left;justify-content:flex-start}
html[data-theme] .price,html[data-theme] .woocommerce-Price-amount{font-family:'Sora',sans-serif;font-weight:600;color:var(--accent-text)}
html[data-theme] .price del,html[data-theme] .price del .woocommerce-Price-amount{color:var(--muted);font-weight:500}
html[data-theme] .onsale,html[data-theme] .out-of-stock-badge{border-radius:999px;background:var(--surface);color:var(--accent-text);font-weight:700;font-size:12px;padding:5px 10px;min-height:0;line-height:1.2}
html[data-theme] :is(.button,.wp-element-button,button[type=submit],.wc-block-components-button):not(.elementor-button):not(.et-icon-btn):not(.et-chip):not(.et-step){border-radius:999px;font-family:'Manrope',sans-serif;font-weight:700;letter-spacing:0;text-transform:none}
html[data-theme] nav.woocommerce-pagination a,html[data-theme] nav.woocommerce-pagination span{border-radius:999px}

/* WooCommerce: single product */
html[data-theme] .single-product div.product .woocommerce-product-gallery :is(figure,.ct-media-container,img){border-radius:22px}
html[data-theme] .single-product div.product .entry-summary{color:var(--text)}
html[data-theme] .single-product .product_meta,html[data-theme] .single-product .product_meta a{color:var(--muted);font-size:14px}
html[data-theme] .woocommerce-tabs .tabs li a{font-family:'Sora',sans-serif;font-weight:600;color:var(--muted)}
html[data-theme] .woocommerce-tabs .tabs li.active a{color:var(--ink)}
html[data-theme] .woocommerce-tabs,html[data-theme] .related,html[data-theme] .upsells{border-color:var(--line)}
html[data-theme] .quantity :is(input,.qty){background:var(--surface);color:var(--ink);border-color:var(--line2)}

/* WooCommerce: cart, checkout, account, notices */
html[data-theme] :is(.woocommerce-cart-form,.cart_totals,.woocommerce-checkout-review-order,.woocommerce-MyAccount-content,.woocommerce-form-login,.woocommerce-form-register,.ct-order-review,.cart-collaterals .cart_totals){background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:24px}
html[data-theme] table.shop_table,html[data-theme] table.shop_table :is(th,td){border-color:var(--line);color:var(--text)}
html[data-theme] table.shop_table th{color:var(--ink);font-weight:700}
html[data-theme] table.shop_table a{color:var(--ink)}
html[data-theme] :is(.woocommerce-message,.woocommerce-info,.woocommerce-error,.wc-empty-cart-message .cart-empty,.woocommerce-notice){background:var(--surface);border:1px solid var(--line);border-radius:18px;color:var(--ink)}
html[data-theme] :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=search],select,textarea):not(.et-search input){background-color:var(--surface);color:var(--ink);border-color:var(--line2)}
html[data-theme] .select2-container--default .select2-selection--single{background:var(--surface);border-color:var(--line2);border-radius:12px;height:48px}
html[data-theme] .select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--ink);line-height:46px}
html[data-theme] .select2-dropdown{background:var(--surface);color:var(--ink);border-color:var(--line2)}
html[data-theme] label{color:var(--ink)}

/* generic WordPress content (blog posts, plain pages) */
html[data-theme] .entry-content{color:var(--text)}
html[data-theme] article.post,html[data-theme] .entries article{color:var(--text)}

@media (max-width:960px){
  html[data-theme] .ct-container,html[data-theme] .ct-container-narrow{--theme-container-edge-spacing:20px}
}
