/* ==========================================================================
   AIPro Academy — site layer.
   Deliberately narrow in scope: typography, colour tokens and a light
   elevation pass. It must never fight the theme's own layout/grid, so there
   are no width, padding, alignment or font-weight overrides here.
   ========================================================================== */

/* ---------- 1. Typography: IRANSansX with Persian numerals ---------- */
@font-face{font-family:IRANSansX;font-style:normal;font-weight:400;font-display:swap;src:url(fonts/IRANSansXFaNum-Regular.woff2) format('woff2')}
@font-face{font-family:IRANSansX;font-style:normal;font-weight:500;font-display:swap;src:url(fonts/IRANSansXFaNum-Regular.woff2) format('woff2')}
@font-face{font-family:IRANSansX;font-style:normal;font-weight:700;font-display:swap;src:url(fonts/IRANSansXFaNum-Bold.woff2) format('woff2')}
@font-face{font-family:"IRANSansX Latin";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/IRANSansX-Regular.woff2) format('woff2')}
@font-face{font-family:"IRANSansX Latin";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/IRANSansX-Bold.woff2) format('woff2')}

:root{
	--aip-ink:#1b1712;
	--aip-muted:#6f6659;
	--aip-cream:#faf7f0;
	--aip-surface:#fff;
	--aip-gold:#f0a92b;
	--aip-gold-2:#ffd27a;
	--aip-gold-ink:#1b1403;
	--aip-violet:#6d4aff;
	--aip-cyan:#06b6d4;
	--aip-line:rgba(27,23,18,.09);
	--aip-line-2:rgba(27,23,18,.14);
	--aip-grad-warm:linear-gradient(90deg,#f0a92b,#ffd27a);
	--aip-grad-cool:linear-gradient(120deg,#6d4aff,#06b6d4);
	--aip-e1:0 1px 2px rgba(27,23,18,.06);
	--aip-e2:0 10px 24px -14px rgba(27,23,18,.25);
	--aip-e3:0 20px 40px -20px rgba(27,23,18,.3);
}

/* font family only — weights, sizes and alignment stay with the theme */
body,button,input,select,textarea,
.elementor-widget-container,.wd-entities-title{
	font-family:IRANSansX,"IRANSansX Latin",Yekanbakh,Tahoma,sans-serif;
}
body:not(.aip-body),
body:not(.aip-body) h1,body:not(.aip-body) h2,body:not(.aip-body) h3,
body:not(.aip-body) h4,body:not(.aip-body) h5,body:not(.aip-body) h6,
body:not(.aip-body) .elementor-heading-title{letter-spacing:normal}
body:not(.aip-body) em,body:not(.aip-body) i:not([class*=fa-]):not([class*=wd-]):not([class*=icon]){font-style:normal}

/* ---------- 2. Header: white and clearly separated from the page ---------- */
body:not(.aip-body) .whb-general-header,
body:not(.aip-body) .whb-main-header .whb-row{background-color:#fff}
body:not(.aip-body) .whb-main-header{border-bottom:1px solid var(--aip-line-2);box-shadow:0 4px 14px -12px rgba(27,23,18,.5)}
body:not(.aip-body) .whb-top-bar{background:var(--aip-grad-cool);color:#fff}
body:not(.aip-body) .whb-top-bar a{color:#fff}

/* ---------- 3. Depth: cards, images and buttons stop looking flat ---------- */
body:not(.aip-body) .elementor-widget-image img{border-radius:14px;box-shadow:var(--aip-e2);transition:box-shadow .25s ease}
body:not(.aip-body) .elementor-widget-image a:hover img{box-shadow:var(--aip-e3)}
body:not(.aip-body) .wd-product .product-element-top{border-radius:14px;overflow:hidden;box-shadow:var(--aip-e2)}
body:not(.aip-body) .wd-product:hover .product-element-top{box-shadow:var(--aip-e3)}
body:not(.aip-body) .elementor-button,
body:not(.aip-body) .button,
body:not(.aip-body) .single_add_to_cart_button{box-shadow:var(--aip-e1);transition:box-shadow .2s ease,filter .2s ease}
body:not(.aip-body) .elementor-button:hover,
body:not(.aip-body) .button:hover{box-shadow:var(--aip-e2);filter:saturate(1.05)}
body:not(.aip-body) a:focus-visible,
body:not(.aip-body) button:focus-visible{outline:2px solid var(--aip-gold);outline-offset:2px}

/* ---------- 4. Colour accents (no layout impact) ---------- */
body:not(.aip-body) .single_add_to_cart_button,
body:not(.aip-body) .checkout-button,
body:not(.aip-body) .wd-buy-now-btn{background-image:var(--aip-grad-warm);color:var(--aip-gold-ink)}
body:not(.aip-body) .onsale,
body:not(.aip-body) .product-labels .label-text{background-image:var(--aip-grad-warm);color:var(--aip-gold-ink)}
body:not(.aip-body) .elementor-icon-list-icon svg,
body:not(.aip-body) .elementor-icon-list-icon i{color:var(--aip-violet);fill:var(--aip-violet)}

@media (prefers-reduced-motion:reduce){
	body:not(.aip-body) *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

/* ---------- 5. Guest promo banner above the header ---------- */
body:not(.aip-body) .header-banner{background:linear-gradient(90deg,#4327c9,#6d4aff)!important}
body:not(.aip-body) .header-banner,
body:not(.aip-body) .header-banner a,
body:not(.aip-body) .header-banner-container{color:#fff!important}
body:not(.aip-body) .header-banner a{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--aip-gold-2)}

/* ---------- 6. Softer corners (surface only, no layout change) ---------- */
body:not(.aip-body) .wd-product .product-element-top,
body:not(.aip-body) .elementor-widget-image img,
body:not(.aip-body) .wd-product img,
body:not(.aip-body) .woocommerce-product-gallery img,
body:not(.aip-body) .card,
body:not(.aip-body) .wd-card,
body:not(.aip-body) .cart_totals,
body:not(.aip-body) .cart-collaterals .cart_totals,
body:not(.aip-body) .woocommerce-checkout-review-order,
body:not(.aip-body) .woocommerce-info,
body:not(.aip-body) .woocommerce-message,
body:not(.aip-body) .woocommerce-error{border-radius:16px}
body:not(.aip-body) .elementor-button,
body:not(.aip-body) .button,
body:not(.aip-body) .btn,
body:not(.aip-body) input[type=text],
body:not(.aip-body) input[type=email],
body:not(.aip-body) input[type=tel],
body:not(.aip-body) input[type=password],
body:not(.aip-body) input[type=search],
body:not(.aip-body) input[type=number],
body:not(.aip-body) select,
body:not(.aip-body) textarea,
body:not(.aip-body) .select2-container .select2-selection{border-radius:12px}
body:not(.aip-body) .onsale,
body:not(.aip-body) .product-labels .label-text,
body:not(.aip-body) .wd-nav-pills a{border-radius:999px}

/* ---------- 7. Typography scale (weights/rhythm only — no widths or alignment) ----------
   Persian text at weight 900 renders as a heavy synthetic bold; 700 is the real bold. */
body:not(.aip-body){font-size:16px;line-height:1.8}
body:not(.aip-body) p{line-height:1.9}
body:not(.aip-body) .elementor-widget-heading .elementor-heading-title,
body:not(.aip-body) h1,body:not(.aip-body) h2,body:not(.aip-body) h3,
body:not(.aip-body) h4,body:not(.aip-body) h5,body:not(.aip-body) h6{font-weight:700!important}
body:not(.aip-body) h1,body:not(.aip-body) .elementor-widget-heading h1.elementor-heading-title{line-height:1.4!important}
body:not(.aip-body) h2,body:not(.aip-body) .elementor-widget-heading h2.elementor-heading-title{line-height:1.4!important}
body:not(.aip-body) h3,body:not(.aip-body) h4{line-height:1.6!important}
body:not(.aip-body) .elementor-button,
body:not(.aip-body) .button,
body:not(.aip-body) .single_add_to_cart_button{font-weight:600}
body:not(.aip-body) small,body:not(.aip-body) .elementor-icon-box-description{font-size:14px;line-height:1.8}
@media (max-width:767px){
	body:not(.aip-body) h1,body:not(.aip-body) .elementor-widget-heading h1.elementor-heading-title{line-height:1.5!important}
}

/* ---------- 8. Plain (non-Elementor) pages get a readable, centred column ----------
   Only direct text children are touched, so Elementor pages (whose child is .elementor)
   keep their own layout untouched. */
body:not(.aip-body) .wd-content-area .entry-content > h1,
body:not(.aip-body) .wd-content-area .entry-content > h2,
body:not(.aip-body) .wd-content-area .entry-content > h3,
body:not(.aip-body) .wd-content-area .entry-content > h4,
body:not(.aip-body) .wd-content-area .entry-content > p,
body:not(.aip-body) .wd-content-area .entry-content > ul,
body:not(.aip-body) .wd-content-area .entry-content > ol,
body:not(.aip-body) .wd-content-area .entry-content > blockquote,
body:not(.aip-body) .wd-content-area .entry-content > figure,
body:not(.aip-body) .wd-content-area .entry-content > table{max-width:880px;margin-inline:auto}
body:not(.aip-body) .wd-content-area .entry-content > h2{margin-top:40px;margin-bottom:12px}
body:not(.aip-body) .wd-content-area .entry-content > h3{margin-top:28px;margin-bottom:8px}
body:not(.aip-body) .wd-content-area .entry-content > p{margin-bottom:16px}
body:not(.aip-body) .wd-content-area .entry-content > ul,
body:not(.aip-body) .wd-content-area .entry-content > ol{margin-bottom:20px;padding-inline-start:1.4em}
body:not(.aip-body) .wd-content-area .entry-content > ul li{margin-bottom:8px}
body:not(.aip-body) .wd-content-area .entry-content > blockquote{background:var(--aip-cream);border-radius:16px;padding:18px 22px;border:1px solid var(--aip-line)}

/* ---------- 9. Full-width pages + opaque header spacing ----------
   Two narrowly-scoped rules:
   a) on the Elementor "full width" template the theme still caps the content
      column, which stops section backgrounds reaching the viewport edges;
   b) the header is set to overlap content (whb-overcontent). That is meant for a
      transparent header — ours is opaque, so the page needs to start below it. */
body.page-template-elementor_header_footer main.wd-content-layout,
body.page-template-elementor_canvas main.wd-content-layout{max-width:none;padding-left:0;padding-right:0}
body:not(.aip-body) .whb-overcontent ~ .main-page-wrapper{padding-top:96px}
@media (max-width:1024px){body:not(.aip-body) .whb-overcontent ~ .main-page-wrapper{padding-top:80px}}
@media (max-width:767px){body:not(.aip-body) .whb-overcontent ~ .main-page-wrapper{padding-top:64px}}
/* on full-width templates the text column keeps a readable measure (the theme used 1239px) */
body.page-template-elementor_header_footer .e-con.e-parent > .e-con-inner{max-width:1600px}
/* keep long paragraphs readable even on a very wide page */
body.page-template-elementor_header_footer .elementor-widget-text-editor,
body.page-template-elementor_header_footer .elementor-widget-heading{max-width:1100px;margin-inline:auto}

/* ---------- 10. 90-day guarantee badge (product page, cart, checkout) ---------- */
.aip-guarantee{display:flex;align-items:flex-start;gap:14px;margin:18px 0 0;padding:14px 16px;border:1px solid var(--aip-line-2);border-radius:16px;background:linear-gradient(180deg,#fffdf7,#fff);box-shadow:var(--aip-e1);clear:both}
.aip-guarantee__seal{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:62px;padding:8px 6px;border-radius:14px;background:var(--aip-grad-warm);color:var(--aip-gold-ink);box-shadow:var(--aip-e-gold,0 10px 22px -12px rgba(240,169,43,.6))}
.aip-guarantee__seal b{font-size:19px;line-height:1;display:flex;align-items:baseline;gap:3px}
.aip-guarantee__seal small{font-size:11px;font-weight:600}
.aip-guarantee__txt{display:flex;flex-direction:column;gap:3px}
.aip-guarantee__txt b{font-size:15px;color:var(--aip-ink)}
.aip-guarantee__txt small{font-size:13px;line-height:1.8;color:var(--aip-muted)}
.aip-guarantee__txt a{font-size:13px;color:var(--aip-violet);text-underline-offset:3px}
.aip-guarantee--compact{margin:14px 0;padding:12px 14px}
.aip-guarantee--compact .aip-guarantee__seal{min-width:54px}
.aip-guarantee--compact .aip-guarantee__txt small{display:none}
@media (max-width:480px){.aip-guarantee{flex-direction:row;gap:10px;padding:12px}.aip-guarantee__txt small{font-size:12px}}
