@charset "UTF-8";
/*
Theme Name: Cartonparsiran 2026
Version: 1.0
Author: Sitralweb
Author URI: https://sitralweb.com
Description: Cartonparsiran 2026 Designed By Sitralweb Group
*/
/*
 * کارتن‌سازی پارس ایران — استایل اختصاصی صفحه نخست
 * فایل را پس از استایل قالب بارگذاری کنید.
 * پالت: سرمه‌ای صنعتی + سبز فیروزه‌ای + زمینه گرم روشن
 */
:root {
    --ps-ink: #3a1820;
    --ps-ink-soft: #54232e;
    --ps-primary: #d64550;
    --ps-primary-dark: #b5343e;
    --ps-primary-light: #fdeceb;
    --ps-accent: #f0a44b;
    --ps-text: #4a2e34;
    --ps-muted: #8a6b71;
    --ps-bg: #faf6f6;
    --ps-bg-warm: #fdf3f0;
    --ps-white: #fff;
    --ps-line: #f0dfe0;
    --ps-shadow: 0 16px 42px rgba(58, 24, 32, .08);
    --ps-shadow-hover: 0 22px 52px rgba(58, 24, 32, .14);
    --ps-radius: 18px;
    --ps-radius-sm: 12px;
    --ps-container: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IRANSans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}
.ps-home { direction: rtl; color: var(--ps-text); background: #fff; font-family: inherit; line-height: 1.95; overflow: clip; }
.ps-home *, .ps-home *::before, .ps-home *::after { box-sizing: border-box; }
.ps-home img { display: block; max-width: 100%; height: auto; }
.ps-home a { text-decoration: none; }
.ps-home p { margin: 0 0 16px; }
.ps-container { width: min(var(--ps-container), calc(100% - 40px)); margin-inline: auto; }
.ps-section { padding: 88px 0; }
.ps-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 13px !important; color: var(--ps-primary); font-size: .88rem; font-weight: 800; letter-spacing: -.01em; }
.ps-eyebrow::before { content: ""; width: 25px; height: 3px; border-radius: 4px; background: var(--ps-accent); }
.ps-home h1, .ps-home h2, .ps-home h3 { color: var(--ps-ink); line-height: 1.55; letter-spacing: -.035em; }
.ps-home h1 { margin: 0 0 20px; font-size: clamp(2rem, 3vw, 3.45rem); font-weight: 900; }
.ps-home h2 { margin: 0 0 18px; font-size: clamp(1.6rem, 2.7vw, 2.35rem); font-weight: 850; }
.ps-home h3 { margin: 0 0 12px; font-size: 1.18rem; font-weight: 800; }
.ps-home p { color: var(--ps-text); }
.ps-home .ps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 22px; border: 1px solid transparent; border-radius: 10px; font-weight: 800; font-size: .95rem; line-height: 1.6; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.ps-home .ps-btn:hover { transform: translateY(-2px); }
.ps-btn-primary { color: #fff !important; background: var(--ps-primary); box-shadow: 0 9px 22px rgba(214,69,80,.25); }
.ps-btn-primary:hover { background: var(--ps-primary-dark); color: #fff !important; }
.ps-btn-light { background: #fff; color: var(--ps-ink) !important; }
.ps-btn-light:hover { box-shadow: var(--ps-shadow); }
.ps-btn-outline { color: var(--ps-primary) !important; border-color: var(--ps-primary) !important; background: transparent; }
.ps-btn-outline:hover { background: var(--ps-primary-light); }
.ps-btn-white { color: var(--ps-ink) !important; background: #fff; }
.ps-btn-outline-light { color: #fff !important; border-color: rgba(255,255,255,.65) !important; background: transparent; }
.ps-btn-block { width: 100%; }
.ps-center { text-align: center; margin-top: 30px; }
.ps-hero { position: relative; isolation: isolate; padding: 80px 0 74px; color: #fff; background: radial-gradient(circle at 15% 15%, rgba(240,164,75,.17), transparent 30%), linear-gradient(125deg, #2a1119 0%, #4a1c26 57%, #d64550 130%); }
.ps-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 7px; background: linear-gradient(90deg, var(--ps-accent) 0 22%, var(--ps-primary) 22% 100%); z-index: -1; }
.ps-hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 56px; }
.ps-hero .ps-eyebrow { color: #f6c9c9; }
.ps-hero h1 { color: #fff; max-width: 760px; }
.ps-hero-lead { max-width: 720px; color: rgba(255,255,255,.86) !important; font-size: 1.08rem; line-height: 2.15; }
.ps-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 27px 0 24px; }
.ps-hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; color: rgba(255,255,255,.85); font-size: .9rem; }
.ps-hero-points li::before { content: "✓"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 8px; border-radius: 50%; color: var(--ps-ink); background: var(--ps-accent); font-weight: 900; }
.ps-hero-media { position: relative; }
.ps-hero-note { position: absolute; right: -18px; bottom: 20px; max-width: 280px; padding: 15px 19px; border: 1px solid rgba(255,255,255,.35); border-radius: 13px; background: rgba(42,17,25,.92); color: #fff; box-shadow: var(--ps-shadow); }
.ps-hero-note strong, .ps-hero-note span { display: block; }
.ps-hero-note span { color: rgba(255,255,255,.78); font-size: .84rem; }
.ps-trust-strip { padding: 24px 0; background: var(--ps-bg); }
.ps-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.ps-trust-grid > div { display: flex; align-items: center; gap: 13px; padding: 8px 14px; }
.ps-trust-number { color: var(--ps-primary); font-size: 1.45rem; font-weight: 900; }
.ps-trust-grid strong, .ps-trust-grid small { display: block; }
.ps-trust-grid strong { color: var(--ps-ink); font-size: .97rem; }
.ps-trust-grid small { color: var(--ps-muted); font-size: .8rem; }
.ps-about { background: #fff; }
.ps-two-col { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 62px; }
.ps-section-copy p, .ps-two-col > div > p { line-height: 2.05; }
.ps-text-link { display: inline-block; margin-top: 4px; color: var(--ps-primary); font-weight: 850; }
.ps-about-visual { position: relative; padding: 14px; border-radius: 26px; background: var(--ps-bg-warm); }
.ps-floating-card { position: relative; margin: -38px 20px 0; padding: 18px 20px; border-radius: 13px; background: #fff; box-shadow: var(--ps-shadow); }
.ps-floating-card strong, .ps-floating-card span { display: block; }
.ps-floating-card strong { color: var(--ps-ink); margin-bottom: 4px; }
.ps-floating-card span { color: var(--ps-muted); font-size: .88rem; }
.ps-products-section { background: var(--ps-bg); }
.ps-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 34px; }
.ps-section-heading > div { max-width: 690px; }
.ps-section-heading > p { max-width: 440px; margin: 0 0 8px; color: var(--ps-muted); }
.ps-product-intro { display: flex; align-items: flex-start; gap: 20px; padding: 24px; margin-bottom: 26px; border: 1px solid var(--ps-line); border-radius: var(--ps-radius); background: #fff; }
.ps-product-intro-icon { flex: 0 0 54px; display: grid; place-items: center; height: 54px; border-radius: 15px; background: var(--ps-primary-light); color: var(--ps-primary); font-size: 1.8rem; }
.ps-product-intro h3 { margin-bottom: 6px; }
.ps-product-intro p { margin: 0; color: var(--ps-muted); }
.ps-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.ps-product-card { min-width: 0; overflow: hidden; border: 1px solid var(--ps-line); border-radius: var(--ps-radius-sm); background: #fff; transition: transform .22s ease, box-shadow .22s ease; }
.ps-product-card:hover { transform: translateY(-5px); box-shadow: var(--ps-shadow-hover); }
.ps-product-image { display: grid; place-items: center; min-height: 210px; padding: 18px; background: #fff; border-bottom: 1px solid var(--ps-line); }
.ps-product-image img { width: 100%; height: 190px; object-fit: contain; }
.ps-product-no-image { display: grid; place-items: center; width: 100%; min-height: 170px; border: 1px dashed var(--ps-line); border-radius: 10px; color: var(--ps-muted); font-size: .85rem; }
.ps-product-info { padding: 18px; }
.ps-product-info h3 { font-size: 1.03rem; line-height: 1.7; }
.ps-product-info h3 a { color: var(--ps-ink); }
.ps-product-price { margin: 8px 0; color: var(--ps-primary); font-weight: 900; }
.ps-product-info p { min-height: 54px; color: var(--ps-muted); font-size: .84rem; line-height: 1.8; }
.ps-product-link { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--ps-line); color: var(--ps-primary); font-size: .86rem; font-weight: 850; }
.ps-empty-products { padding: 32px; border: 1px dashed var(--ps-line); border-radius: var(--ps-radius); background: #fff; text-align: center; }
.ps-empty-products strong { display: block; margin-bottom: 8px; color: var(--ps-ink); font-size: 1.1rem; }
.ps-empty-products p { color: var(--ps-muted); }
.ps-online-section { background: #fff; }
.ps-online-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ps-feature-card { position: relative; padding: 27px 25px; border: 1px solid var(--ps-line); border-radius: var(--ps-radius); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.ps-feature-card:hover { transform: translateY(-4px); box-shadow: var(--ps-shadow); }
.ps-feature-index { position: absolute; top: 18px; left: 20px; color: #f0dfe0; font-size: 1.55rem; font-weight: 900; }
.ps-feature-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 15px; color: var(--ps-primary); background: var(--ps-primary-light); font-size: 1.6rem; }
.ps-feature-card p { margin: 0; color: var(--ps-muted); font-size: .92rem; line-height: 2; }
.ps-types-section { background: var(--ps-bg); }
.ps-type-list { display: grid; gap: 18px; }
.ps-pricing-section { background: var(--ps-bg-warm); }
.ps-pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.ps-pricing-grid article { padding: 24px; border: 1px solid #eee5d8; border-radius: var(--ps-radius-sm); background: #fff; }
.ps-pricing-symbol { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 16px; border-radius: 12px; background: #fff0db; color: #a76011; font-size: 1.3rem; font-weight: 900; }
.ps-pricing-grid p { margin: 0; color: var(--ps-muted); font-size: .9rem; line-height: 1.95; }
.ps-pricing-note { margin: 22px 0 0 !important; padding: 15px 18px; border-right: 3px solid var(--ps-accent); background: rgba(255,255,255,.7); color: var(--ps-muted) !important; font-size: .9rem; }
.ps-process-section { background: #fff; }
.ps-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ps-process-grid > div { position: relative; padding: 24px; border-radius: var(--ps-radius-sm); background: var(--ps-bg); }
.ps-process-grid > div > span { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 13px; background: var(--ps-primary); color: #fff; font-size: 1.15rem; font-weight: 900; }
.ps-process-grid p { margin: 0; color: var(--ps-muted); font-size: .9rem; }
.ps-faq-section { background: var(--ps-bg); }
.ps-faq-container { max-width: 950px; }
.ps-faq-list { display: grid; gap: 11px; }
.ps-faq-list details { border: 1px solid var(--ps-line); border-radius: 12px; background: #fff; }
.ps-faq-list summary { position: relative; padding: 18px 22px 18px 50px; color: var(--ps-ink); font-weight: 800; cursor: pointer; list-style: none; }
.ps-faq-list summary::-webkit-details-marker { display: none; }
.ps-faq-list summary::after { content: "+"; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--ps-primary); font-size: 1.4rem; font-weight: 500; }
.ps-faq-list details[open] summary::after { content: "−"; }
.ps-faq-list details p { padding: 0 22px 19px; margin: 0; color: var(--ps-muted); line-height: 2; }
.ps-final-cta { padding: 62px 0; color: #fff; background: linear-gradient(120deg, #2a1119, #d64550); }
.ps-final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ps-final-cta .ps-eyebrow { color: #f6c9c9; }
.ps-final-cta h2 { max-width: 750px; color: #fff; }
.ps-final-cta p:not(.ps-eyebrow) { margin: 0; color: rgba(255,255,255,.82); }
.ps-final-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.ps-home a:focus-visible, .ps-home summary:focus-visible { outline: 3px solid var(--ps-accent); outline-offset: 3px; }
@media (max-width: 1024px) {
    .ps-hero-grid { gap: 30px; }
    .ps-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ps-online-grid { grid-template-columns: repeat(2, 1fr); }
    .ps-pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .ps-two-col { gap: 36px; }
}
@media (max-width: 760px) {
    .ps-container { width: min(var(--ps-container), calc(100% - 30px)); }
    .ps-section { padding: 58px 0; }
    .ps-hero { padding: 54px 0 48px; }
    .ps-hero-grid, .ps-two-col, .ps-cartonchi-inner { grid-template-columns: 1fr; }
    .ps-hero-grid { gap: 30px; }
    .ps-hero h1 { font-size: clamp(1.9rem, 8vw, 2.55rem); }
    .ps-hero-lead { font-size: 1rem; }
    .ps-hero-note { right: 10px; bottom: 10px; max-width: 250px; }
    .ps-trust-grid { grid-template-columns: repeat(2, 1fr); }
    .ps-section-heading { display: block; }
    .ps-section-heading > p { margin-top: 12px; }
    .ps-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ps-product-image { min-height: 155px; padding: 12px; }
    .ps-product-image img { height: 135px; }
    .ps-product-info { padding: 13px; }
    .ps-product-info p { min-height: 0; }
    .ps-online-grid { grid-template-columns: 1fr; }
    .ps-process-grid { grid-template-columns: repeat(2, 1fr); }
    .ps-final-cta-inner { display: block; }
    .ps-final-actions { margin-top: 22px; }
}
@media (max-width: 440px) {
    .ps-hero-actions, .ps-final-actions { flex-direction: column; }
    .ps-hero-actions .ps-btn, .ps-final-actions .ps-btn { width: 100%; }
    .ps-trust-grid { grid-template-columns: 1fr; gap: 4px; }
    .ps-product-grid { grid-template-columns: 1fr; }
    .ps-product-image { min-height: 220px; }
    .ps-product-image img { height: 195px; }
    .ps-pricing-grid, .ps-process-grid { grid-template-columns: 1fr; }
    .ps-product-intro { padding: 17px; gap: 12px; }
    .ps-faq-list summary { padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ps-home *, .ps-home *::before, .ps-home *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
    .ps-hero-actions, .ps-final-actions { display: none !important; }
    .ps-section { padding: 25px 0; }
    .ps-home { color: #000; }
}

/* ===== افزوده‌های جدید ===== */
.ps-hero-image { overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: var(--ps-radius); background: rgba(255,255,255,.06); }
.ps-hero-image img { width: 100%; height: auto; }
.ps-trust-grid > div > span:last-child { display: block; }
.ps-trust-number { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--ps-primary-light); }
.ps-about-visual img { width: 100%; height: auto; border-radius: 14px; }
.ps-home .ps-feature-card a, .ps-home .ps-product-intro a, .ps-home .ps-pricing-note a { color: var(--ps-primary); font-weight: 800; }
.ps-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ps-type-card { padding: 26px 26px 22px; border: 1px solid var(--ps-line); border-right: 4px solid var(--ps-primary); border-radius: var(--ps-radius-sm); background: #fff; }
.ps-type-card h3 { margin-bottom: 8px; }
.ps-type-card p { margin: 0; color: var(--ps-muted); font-size: .94rem; line-height: 2.05; }
.ps-cartonchi { padding: 56px 0; background: var(--ps-bg-warm); }
.ps-cartonchi-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 38px 42px; border-radius: 24px; color: #fff; background: linear-gradient(125deg, #2a1119 0%, #4a1c26 60%, #b5343e 130%); }
.ps-cartonchi h2 { color: #fff; }
.ps-cartonchi .ps-eyebrow { color: #f6c9c9; }
.ps-cartonchi p:not(.ps-eyebrow) { margin: 0; max-width: 720px; color: rgba(255,255,255,.86); }
.ps-cartonchi-action { flex-shrink: 0; }
@media (max-width: 1024px) {
    .ps-type-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .ps-cartonchi-inner { display: block; padding: 26px; }
    .ps-cartonchi-action { margin-top: 20px; }
    .ps-trust-number { flex-basis: 38px; width: 38px; height: 38px; }
}

/* ===== استایل‌های مورد استفاده در صفحه محصول ===== */
.ps-quick-nav { background: #fff; border-bottom: 1px solid var(--ps-line); }
.ps-quick-nav-inner { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; padding-block: 16px; }
.ps-quick-nav a { color: var(--ps-ink-soft); font-size: .9rem; font-weight: 750; }
.ps-quick-nav a:hover { color: var(--ps-primary); }
.ps-image-placeholder { display: flex; min-height: 210px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; border: 1px dashed #c9a3a8; border-radius: var(--ps-radius); background: repeating-linear-gradient(135deg, rgba(214,69,80,.035) 0 12px, rgba(255,255,255,.65) 12px 24px); text-align: center; color: var(--ps-muted); }
.ps-image-placeholder strong { color: var(--ps-ink); font-size: 1rem; }
.ps-placeholder-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--ps-primary-light); color: var(--ps-primary); font-size: 1.8rem; }
@media (max-width: 760px) { .ps-quick-nav-inner { gap: 8px 17px; } }
@media print { .ps-quick-nav { display: none !important; } }

/* =====================================================================
   آیکون‌های SVG متحرک
   ===================================================================== */
.ps-ic { display: block; width: 1.65em; height: 1.65em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ps-ic * { transform-box: fill-box; transform-origin: center; }
.ps-trust-number .ps-ic, .ps-feature-icon .ps-ic { width: 26px; height: 26px; }
.ps-trust-number, .ps-feature-icon { color: var(--ps-primary); }
.ps-pricing-symbol .ps-ic { width: 24px; height: 24px; }
.ps-product-intro-icon .ps-ic { width: 28px; height: 28px; }
@keyframes ps-lid     { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-2.4px); } }
@keyframes ps-stretch { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(.7); } }
@keyframes ps-float   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.7px); } }
@keyframes ps-paper   { 0%,100% { transform: translateY(-2.5px); } 50% { transform: translateY(1.5px); } }
@keyframes ps-smoke   { 0% { transform: translateY(0) scale(.5); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-7px) scale(1.3); opacity: 0; } }
@keyframes ps-spin    { to { transform: rotate(360deg); } }
@keyframes ps-bounce  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-.8px); } }
@keyframes ps-draw    { 0% { stroke-dashoffset: 20; } 55%,100% { stroke-dashoffset: 0; } }
@keyframes ps-swing   { 0%,100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
.ps-ic .ic-lid   { animation: ps-lid 2.6s ease-in-out infinite; }
.ps-ic .ic-arrow { animation: ps-stretch 2.4s ease-in-out infinite; }
.ps-ic .l1 { animation: ps-float 2.8s ease-in-out infinite; }
.ps-ic .l2 { animation: ps-float 2.8s ease-in-out .25s infinite; }
.ps-ic .l3 { animation: ps-float 2.8s ease-in-out .5s infinite; }
.ps-ic .ic-top   { animation: ps-float 2.4s ease-in-out infinite; }
.ps-ic .ic-paper { animation: ps-paper 2.6s ease-in-out infinite; }
.ps-ic .ic-smoke { animation: ps-smoke 2.4s ease-out infinite; fill: currentColor; stroke: none; }
.ps-ic .ic-smoke.s2 { animation-delay: 1.2s; }
.ps-ic .ic-wheel { animation: ps-spin 1.1s linear infinite; }
.ps-ic .ic-body  { animation: ps-bounce .55s ease-in-out infinite; }
.ps-ic .ic-draw  { stroke-dasharray: 20; animation: ps-draw 2.8s ease-in-out infinite; }
.ps-ic .ic-swing { transform-origin: top left; animation: ps-swing 2.6s ease-in-out infinite; }
.ps-type-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ps-type-head h3 { margin: 0; }
.ps-type-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; background: var(--ps-primary-light); color: var(--ps-primary); }
.ps-type-icon .ps-ic { width: 26px; height: 26px; }
.ps-cartonchi-icon { display: grid; place-items: center; flex: 0 0 84px; width: 84px; height: 84px; border-radius: 22px; background: rgba(255,255,255,.1); color: #f6c9c9; }
.ps-cartonchi-icon .ps-ic { width: 46px; height: 46px; }
.ps-cartonchi-text { flex: 1; }

/* =====================================================================
   جداکننده‌های بخش‌ها (تم کارتن سازی)
   tape = نوار چسب | flute = ورق موج‌دار | zigzag = لبه برش | boxes = ردیف کارتن‌ها | dash = خط برش
   ===================================================================== */
.ps-home { overflow-x: clip; }
.ps-bg-white { background: #fff !important; }
.ps-bg-soft  { background: var(--ps-bg) !important; }
.ps-divider { position: relative; display: block; width: 100%; background: var(--from); line-height: 0; }
.ps-divider::before, .ps-divider::after { content: ""; position: absolute; inset: 0; }
.ps-divider::before { background: var(--to); }

/* ورق موج‌دار با خط کرافت */
.ps-divider--flute { height: 26px; }
.ps-divider--flute::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='26' viewBox='0 0 48 26'%3E%3Cpath d='M0 26V13Q12 1 24 13T48 13V26Z'/%3E%3C/svg%3E") repeat-x 0 0 / 48px 26px;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='26' viewBox='0 0 48 26'%3E%3Cpath d='M0 26V13Q12 1 24 13T48 13V26Z'/%3E%3C/svg%3E") repeat-x 0 0 / 48px 26px;
}
.ps-divider--flute::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='26' viewBox='0 0 48 26'%3E%3Cpath d='M0 13Q12 1 24 13T48 13' fill='none' stroke='%23e0a24f' stroke-width='2.6'/%3E%3C/svg%3E") repeat-x 0 0 / 48px 26px;
    animation: ps-flow 6s linear infinite;
}
@keyframes ps-flow { to { background-position-x: 48px; } }

/* لبه برش (فلپ جعبه) */
.ps-divider--zigzag { height: 14px; }
.ps-divider--zigzag::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14 14 0 28 14Z'/%3E%3C/svg%3E") repeat-x 0 0 / 28px 14px;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 14 14 0 28 14Z'/%3E%3C/svg%3E") repeat-x 0 0 / 28px 14px;
}

/* ردیف کارتن‌های چیده‌شده با نوار چسب */
.ps-divider--boxes { height: 48px; }
.ps-divider--boxes::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='48' viewBox='0 0 240 48'%3E%3Crect x='0' y='22' width='40' height='26' rx='2'/%3E%3Crect x='44' y='10' width='36' height='38' rx='2'/%3E%3Crect x='84' y='28' width='30' height='20' rx='2'/%3E%3Crect x='118' y='4' width='44' height='44' rx='2'/%3E%3Crect x='166' y='18' width='34' height='30' rx='2'/%3E%3Crect x='204' y='30' width='36' height='18' rx='2'/%3E%3C/svg%3E") repeat-x 0 100% / 240px 48px;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='48' viewBox='0 0 240 48'%3E%3Crect x='0' y='22' width='40' height='26' rx='2'/%3E%3Crect x='44' y='10' width='36' height='38' rx='2'/%3E%3Crect x='84' y='28' width='30' height='20' rx='2'/%3E%3Crect x='118' y='4' width='44' height='44' rx='2'/%3E%3Crect x='166' y='18' width='34' height='30' rx='2'/%3E%3Crect x='204' y='30' width='36' height='18' rx='2'/%3E%3C/svg%3E") repeat-x 0 100% / 240px 48px;
}
.ps-divider--boxes::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='48' viewBox='0 0 240 48'%3E%3Cg stroke='%23e0a24f' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M20 22v12M62 10v16M99 28v10M140 4v18M183 18v12M222 30v8'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 100% / 240px 48px;
}

/* نوار چسب بسته‌بندی */
.ps-divider--tape { height: 46px; background: linear-gradient(var(--from) 50%, var(--to) 50%); }
.ps-divider--tape::before {
    inset: auto; left: -3%; width: 106%; top: 50%; height: 30px; margin-top: -15px; transform: rotate(-1.2deg);
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 2px, transparent 2px 7px), linear-gradient(180deg, #efc58a, #d9a35e);
    box-shadow: 0 3px 8px rgba(58,24,32,.2);
    content: "کارتن سازی پارس ایران  ✦  تولید مستقیم از کارخانه  ✦  کارتن ۳ و ۵ لایه  ✦  چاپ اختصاصی  ✦  کارتن سازی پارس ایران  ✦  تولید مستقیم از کارخانه  ✦  کارتن ۳ و ۵ لایه  ✦  چاپ اختصاصی  ✦  کارتن سازی پارس ایران  ✦  تولید مستقیم از کارخانه  ✦  کارتن ۳ و ۵ لایه  ✦  چاپ اختصاصی  ✦  کارتن سازی پارس ایران  ✦  تولید مستقیم از کارخانه  ✦  کارتن ۳ و ۵ لایه  ✦  چاپ اختصاصی";
    color: #7a4a1d; font-size: .78rem; font-weight: 800; line-height: 30px; white-space: nowrap; overflow: hidden; direction: rtl; text-align: center;
}
.ps-divider--tape::after { display: none; }

/* خط برش با آیکون کارتن */
.ps-divider--dash { height: 46px; background: linear-gradient(var(--from) 50%, var(--to) 50%); }
.ps-divider--dash::before { inset: auto 0; top: 50%; height: 0; background: none; border-top: 2px dashed #e0a24f; }
.ps-divider--dash::after { display: none; }
.ps-divider-icon { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 2px solid #e0a24f; border-radius: 50%; background: #fff; color: var(--ps-primary); }
.ps-divider-icon .ps-ic { width: 22px; height: 22px; }

/* =====================================================================
   فرم استعلام قیمت
   ===================================================================== */
.ps-quote { position: relative; isolation: isolate; padding: 70px 0 80px; background: #2a1119; color: #fff; overflow: hidden; }
.ps-quote::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 320px at 12% 18%, rgba(214,69,80,.32), transparent 70%), radial-gradient(480px 300px at 92% 92%, rgba(224,162,79,.16), transparent 70%); }
.ps-quote-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 46px; align-items: start; }
.ps-quote .ps-eyebrow { color: #f6c9c9; }
.ps-quote-copy h2 { color: #fff; }
.ps-quote-copy > p:not(.ps-eyebrow) { color: rgba(255,255,255,.84); }
.ps-quote-points { display: grid; gap: 12px; margin: 22px 0 28px; padding: 0; list-style: none; }
.ps-quote-points li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.92); font-weight: 700; }
.ps-quote-points .ps-ic { flex: 0 0 24px; width: 24px; height: 24px; color: #f0b36a; }
.ps-quote-form { padding: 28px; border-radius: 22px; background: #fff; color: var(--ps-ink); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.ps-quote-form h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; font-size: 1.2rem; }
.ps-quote-form-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--ps-primary-light); color: var(--ps-primary); }
.ps-quote-form-icon .ps-ic { width: 22px; height: 22px; }
.ps-field { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.ps-field > label, .ps-field > legend, .ps-dims-grid label > span { display: block; margin-bottom: 8px; padding: 0; color: var(--ps-ink); font-size: .9rem; font-weight: 800; }
.ps-quote-form input[type="text"], .ps-quote-form input[type="tel"] {
    width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--ps-line); border-radius: 12px; background: #fff; color: var(--ps-ink); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.ps-quote-form input::placeholder { color: #a7959a; }
.ps-quote-form input:focus { outline: 0; border-color: var(--ps-primary); box-shadow: 0 0 0 3px rgba(214,69,80,.15); }
.ps-quote-form input:disabled { background: #f5eeee; cursor: not-allowed; }
.ps-dims-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.ps-dims-grid label > span { margin-bottom: 6px; color: var(--ps-muted); font-weight: 700; }
.ps-dims-grid input { text-align: center; }
.ps-dims.is-disabled .ps-dims-grid { opacity: .45; }
.ps-check { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--ps-ink-soft); font-size: .92rem; font-weight: 700; }
.ps-check input { width: 20px; height: 20px; accent-color: var(--ps-primary); }
.ps-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.ps-choice { position: relative; cursor: pointer; }
.ps-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ps-choice span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--ps-line); border-radius: 12px; background: #fff; color: var(--ps-ink-soft); font-size: .92rem; font-weight: 700; transition: all .18s; }
.ps-choice:hover span { border-color: var(--ps-primary); }
.ps-choice input:checked + span { border-color: var(--ps-primary); background: var(--ps-primary-light); color: var(--ps-primary); box-shadow: 0 0 0 3px rgba(214,69,80,.12); }
.ps-choice input:focus-visible + span { outline: 3px solid rgba(214,69,80,.4); outline-offset: 2px; }
.ps-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); }
.ps-swatch--white { background: #fff; }
.ps-swatch--brown { background: #b98a5a; }
.ps-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ps-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ps-submit { position: relative; width: 100%; justify-content: center; margin-top: 4px; }
.ps-spinner { display: none; width: 18px; height: 18px; margin-right: 10px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: ps-spin .7s linear infinite; }
.ps-submit.is-loading .ps-spinner { display: inline-block; }
.ps-submit:disabled { opacity: .75; cursor: wait; }
.ps-form-msg { margin-top: 14px; border-radius: 12px; font-weight: 700; }
.ps-form-msg.is-ok  { padding: 13px 16px; background: #e8f6ee; color: #1f6b43; }
.ps-form-msg.is-err { padding: 13px 16px; background: #fdeaea; color: #a52a33; }

/* =====================================================================
   رسپانسیو: وسط‌چین کردن عنوان‌ها
   ===================================================================== */
@media (max-width: 1024px) {
    .ps-quote-grid { grid-template-columns: 1fr; gap: 32px; }
    .ps-quote-copy { text-align: center; }
    .ps-quote-points { justify-items: center; }
}
@media (max-width: 760px) {
    .ps-eyebrow { display: flex; justify-content: center; align-items: center; text-align: center; }
    .ps-eyebrow::after { content: ""; flex: 0 0 24px; height: 2px; margin-right: 9px; background: currentColor; opacity: .7; }
    .ps-hero-copy, .ps-section-copy, .ps-section-heading, .ps-section-heading > div, .ps-cartonchi-text, .ps-process-section .ps-section-heading { text-align: center; }
    .ps-hero h1, .ps-home h2 { text-align: center; }
    .ps-section-heading { justify-items: center; }
    .ps-section-heading > p { margin-inline: auto; text-align: center; }
    .ps-hero-lead { margin-inline: auto; }
    .ps-hero-actions { justify-content: center; }
    .ps-hero-points { justify-content: center; }
    .ps-section-copy > p { text-align: right; }
    .ps-text-link { display: inline-block; }
    .ps-section-copy { text-align: center; }
    .ps-cartonchi-inner { flex-direction: column; text-align: center; }
    .ps-cartonchi-icon { margin: 0 auto 16px; }
    .ps-cartonchi-text p:not(.ps-eyebrow) { margin-inline: auto; }
    .ps-quote { padding: 54px 0 60px; }
    .ps-quote-form { padding: 20px 16px; }
    .ps-field-row { grid-template-columns: 1fr; gap: 0; }
    .ps-dims-grid { gap: 8px; }
    .ps-choice span { padding: 8px 12px; }
    .ps-divider--tape::before { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ps-ic *, .ps-divider::after, .ps-spinner { animation: none !important; }
}


/* ===== اصلاح لوگو و چیدمان برند هدر =====
   این قوانین عمداً به هدر محدود شده‌اند تا روی تصاویر محتوای صفحات اثر نگذارند. */
.carton-header .carton-header-inner,
.carton-header .carton-brand,
.carton-header .carton-brand-link {
    min-width: 0;
}

.carton-header .carton-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    text-decoration: none;
}

.carton-header .carton-brand-link img.logo {
    display: block;
    flex: 0 0 auto;
    width: auto !important;
    height: auto !important;
    max-width: 180px;
    max-height: 72px;
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.carton-header .carton-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.6;
}

.carton-header .carton-brand-text strong,
.carton-header .carton-brand-text small {
    display: block;
    margin: 0;
}

@media (max-width: 760px) {
    .carton-header .carton-brand-link img.logo {
        max-width: 118px;
        max-height: 54px;
    }
    .carton-header .carton-brand-link {
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .carton-header .carton-brand-link img.logo {
        max-width: 92px;
        max-height: 46px;
    }
}
