/* Periche UI: tokens, font stack, a11y base. Brand tokens come from Elementor global variables. */
:root{
	--periche-font-text:'IRANYekanXFN','IRANYekanX',Tahoma,'Segoe UI',sans-serif;
	--periche-font-code:'IRANYekanX','IRANYekanXFN',Tahoma,sans-serif;
	--periche-ease:cubic-bezier(.2,.7,.2,1);
}
html{background-color:var(--neutral-050,#FAF8F5);}
body{
	background-color:var(--neutral-050,#FAF8F5);
	color:var(--neutral-900,#221C1D);
	font-family:var(--periche-font-text);
	-webkit-font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
.elementor, .elementor :is(a,h1,h2,h3,h4,h5,h6,p,span,li,button,input,select,textarea,label,div){
	font-family:var(--periche-font-text) !important;
}
/* LTR islands inside RTL text (SKU, color codes, Latin collection names) */
.periche-ltr{direction:ltr;unicode-bidi:isolate;font-family:var(--periche-font-code);}
:focus-visible{outline:3px solid var(--brand-700,#8D0E34);outline-offset:3px;}
@media (prefers-reduced-motion:reduce){
	*,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important;scroll-behavior:auto !important;}
}

/* ---- Icons: line icons via CSS mask (no SVG upload needed). Button text stays for screen readers. ---- */
.elementor .pi{font-size:0 !important;line-height:0 !important;display:inline-flex !important;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px !important;padding:0 !important;background:transparent;border:0;cursor:pointer;}
.elementor .pi::before{content:"";display:block;width:22px;height:22px;background-color:currentColor;-webkit-mask:var(--pi-ic) center/contain no-repeat;mask:var(--pi-ic) center/contain no-repeat;}
.elementor .pi.pi-ring{border:1px solid currentColor !important;border-radius:50%;}
.elementor .pi-search{--pi-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E");}
.elementor .pi-phone{--pi-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 005 5L15 13l5 2v4a2 2 0 01-2 2A16 16 0 013 6a2 2 0 012-2z'/%3E%3C/svg%3E");}
.elementor .pi-mail{--pi-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E");}
.elementor .pi-pin{--pi-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0114 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");}
.elementor .pi-menu{--pi-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");}
.elementor .pi-close{--pi-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");}
.elementor .pi-telegram{--pi-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.5 3.5L2.8 10.8l5.6 2 2.1 6.4 3.2-4 5 3.7z'/%3E%3Cpath d='M8.4 12.8l13.1-9.3'/%3E%3C/svg%3E");}
.elementor .pi-instagram{--pi-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='.6'/%3E%3C/svg%3E");}
.elementor .pi-youtube{--pi-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5.5' width='19' height='13' rx='4'/%3E%3Cpath d='M10 9.5l5 2.5-5 2.5z'/%3E%3C/svg%3E");}
.elementor .pi-linkedin{--pi-ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='M8 10v6M8 7.5v.01M12 16v-6M12 12.5c0-1.5 1-2.5 2.3-2.5 1.5 0 2.2 1 2.2 2.6V16'/%3E%3C/svg%3E");}

/* ---- Header: sticky bar, hover/focus mega menu, mobile drawer ---- */
.elementor .periche-sticky{position:sticky;top:0;z-index:60;}
.elementor .periche-nav-item{position:static;}
.elementor .periche-mega{display:none !important;}
.elementor .periche-nav-item:hover > .periche-mega,
.elementor .periche-nav-item:focus-within > .periche-mega{display:flex !important;}
.elementor .periche-nav-link{position:relative;}
.elementor .periche-nav-link::after{content:"";position:absolute;inset-inline:0;bottom:-6px;height:2px;background:var(--brand-500,#B41442);transform:scaleX(0);transition:transform 200ms var(--periche-ease);}
.elementor .periche-nav-item:hover .periche-nav-link::after,.elementor .periche-nav-link:focus-visible::after,.elementor .periche-nav-link[aria-current="page"]::after{transform:scaleX(1);}
.elementor .periche-overlay{position:fixed;inset:0;background:rgba(34,28,29,.55);opacity:0;visibility:hidden;transition:opacity 250ms var(--periche-ease),visibility 250ms;z-index:70;}
.elementor .periche-drawer{position:fixed;top:0;bottom:0;right:0;width:min(88vw,380px);background:var(--neutral-050,#FAF8F5);transform:translateX(100%);visibility:hidden;transition:transform 300ms var(--periche-ease),visibility 300ms;z-index:80;overflow-y:auto;}
html.periche-drawer-open{overflow:hidden;}
html.periche-drawer-open .periche-overlay{opacity:1;visibility:visible;}
html.periche-drawer-open .periche-drawer{transform:none;visibility:visible;}
.elementor .periche-desktop-only{display:flex;}
.elementor .periche-mobile-only{display:none !important;}
@media (max-width:767px){
	.elementor .periche-desktop-only{display:none !important;}
	.elementor .periche-mobile-only{display:flex !important;}
	.elementor .periche-nav-item:hover > .periche-mega{display:none !important;}
}
@media (prefers-reduced-motion:reduce){.elementor .periche-drawer,.elementor .periche-overlay{transition:none;}}
.elementor .periche-drawer-link{display:flex !important;justify-content:space-between;align-items:center;width:100%;}
.elementor .periche-drawer-link::after{content:"\2190";font-size:20px;color:var(--brand-500,#B41442);}

/* ---- Product grid + search dialog ---- */
.periche-products{width:100%;display:block;}
.periche-products *{box-sizing:border-box;}
.pp-bar{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;padding-block-end:24px;}
.pp-field{display:flex;flex-direction:column;gap:6px;min-width:0;}
.pp-field label{font-size:14px;font-weight:600;color:var(--neutral-900,#221C1D);}
.pp-search{flex:1 1 260px;}
.pp-input,.pp-select{min-height:48px;padding-inline:16px;border:1px solid var(--neutral-200,#DEDAD5);border-radius:8px;background:var(--neutral-000,#fff);font:inherit;font-size:16px;color:var(--neutral-900,#221C1D);width:100%;}
.pp-select{min-width:170px;}
.pp-clear{min-height:48px;padding-inline:20px;border:1.5px solid var(--brand-500,#B41442);border-radius:8px;background:transparent;color:var(--brand-500,#B41442);font:inherit;font-size:15px;font-weight:600;cursor:pointer;transition:background-color 200ms var(--periche-ease,ease);}
.pp-clear:hover{background:var(--brand-100,#FCE7EC);}
.pp-count{font-size:15px;color:var(--neutral-500,#615B59);padding-block-end:16px;margin:0;}
.pp-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:32px;}
.pp-card a{display:flex;flex-direction:column;gap:14px;text-decoration:none;color:inherit;}
.pp-media{display:block;aspect-ratio:4/5;overflow:hidden;background:var(--neutral-100,#F1EEEA);}
.pp-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 450ms var(--periche-ease,ease);}
.pp-card a:hover .pp-media img,.pp-card a:focus-visible .pp-media img{transform:scale(1.03);}
.pp-title{font-size:19px;font-weight:700;line-height:1.6;color:var(--neutral-900,#221C1D);}
.pp-coll{font-size:15px;color:var(--neutral-500,#615B59);direction:ltr;unicode-bidi:isolate;text-align:right;}
.pp-empty{padding:48px 0;text-align:center;font-size:17px;color:var(--neutral-500,#615B59);grid-column:1/-1;list-style:none;}
@media (max-width:767px){.pp-grid{grid-template-columns:1fr 1fr;gap:20px;}.pp-select{min-width:0;flex:1 1 140px;}}
@media (prefers-reduced-motion:reduce){.pp-media img{transition:none;}.pp-card a:hover .pp-media img{transform:none;}}
.periche-dialog{position:fixed;inset:0;z-index:90;display:none;align-items:flex-start;justify-content:center;padding:12vh 16px 0;background:rgba(34,28,29,.55);}
.periche-dialog.is-open{display:flex;}
.periche-dialog form{width:min(640px,100%);display:flex;gap:12px;background:var(--neutral-050,#FAF8F5);padding:20px;border-radius:12px;}
.periche-dialog input[type=search]{flex:1;min-height:52px;padding-inline:16px;border:1px solid var(--neutral-200,#DEDAD5);border-radius:8px;font:inherit;font-size:17px;background:#fff;color:var(--neutral-900,#221C1D);}
.periche-dialog button{min-height:52px;padding-inline:24px;border:0;border-radius:8px;background:var(--brand-500,#B41442);color:#fff;font:inherit;font-size:16px;font-weight:600;cursor:pointer;}
.periche-dialog button:hover{background:var(--brand-900,#621027);}
