/*
Theme Name: Darex Base
Theme URI: https://staging.darex.ir/
Author: Darex
Description: Minimal standalone WordPress/WooCommerce shell for the Darex UI Engine, Header, Footer and page plugins. No Elementor dependency.
Version: 0.1.1
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: darex-base
License: GPL-2.0-or-later
*/
:root{color-scheme:light;--dxb-bg:#f7f8fb;--dxb-ink:#202b3b;--dxb-surface:#fff;--dxb-radius:18px;--dxb-site-width:1440px}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body.darex-base-theme{margin:0;background:var(--dxb-bg);color:var(--dxb-ink);line-height:1.75;min-height:100vh}
.dxb-skip{position:absolute;top:-120px;inset-inline-start:12px;padding:10px 16px;background:#202b3b;color:white;z-index:100000}
.dxb-skip:focus{top:8px}
.dxb-site{min-height:45vh}
.dxb-shell{width:min(calc(100% - 36px),var(--dxb-site-width));margin-inline:auto}
.dxb-main{padding-block:28px 50px}
.dxb-home-main{padding:0;margin:0;width:100%;max-width:none}
.dxb-body{background:var(--dxb-surface);border-radius:var(--dxb-radius);padding:clamp(18px,3vw,38px)}
.dxb-article-title,.dxb-archive-title{font-size:clamp(24px,3vw,38px);line-height:1.4;margin:0 0 20px}
.dxb-entry-content{overflow-wrap:break-word}
.dxb-entry-content img,.dxb-entry-content iframe{max-width:100%;height:auto}
.dxb-post{background:var(--dxb-surface);border-radius:var(--dxb-radius);padding:24px;margin-block-end:20px}
.dxb-post-title{font-size:1.3rem;margin:0 0 12px}
.dxb-post-title a{text-decoration:none;color:inherit}
.dxb-post-meta{opacity:.65;font-size:.9rem;margin-block-end:12px}
.dxb-fallback-header,.dxb-fallback-footer{background:#fff;padding:16px 0}
.dxb-fallback-header .dxb-shell{display:flex;align-items:center;justify-content:space-between;gap:18px}
.dxb-fallback-header a{color:inherit;text-decoration:none}
.dxb-brand{font-weight:800;font-size:1.45rem}
.dxb-nav{display:flex;flex-wrap:wrap;gap:16px}
.dxb-fallback-footer{border-top:1px solid #e7e9ec;margin-top:24px;text-align:center;font-size:.9rem}
.dxb-pagination{margin-block:18px 30px}
body.darex-base-theme.woocommerce-page .dxb-shell,body.darex-base-theme.woocommerce .dxb-shell{max-width:var(--dxb-site-width)}
@media(max-width:768px){.dxb-shell{width:min(calc(100% - 22px),var(--dxb-site-width))}.dxb-main{padding-block:18px 32px}.dxb-body,.dxb-post{padding:16px}.dxb-fallback-header .dxb-shell{flex-wrap:wrap}.dxb-nav{gap:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Shared font provider owns the family and font files. Icon classes retain their own families. */
body.darex-base-theme{font-family:var(--darex-font-family,Tahoma,Arial,sans-serif)}
body.darex-base-theme :where(h1,h2,h3,h4,h5,h6,input,select,textarea,button){font-family:inherit}
