/* AYSAN GROUPS V3 visual refinements */
@font-face{font-family:Vazirmatn;src:url('../fonts/Vazirmatn-Bold.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:BTitr;src:url('../fonts/BTitrBd.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
:root{--font-body:'Vazirmatn',Tahoma,sans-serif;--font-heading:'BTitr','Vazirmatn',Tahoma,sans-serif}
html,body,button,input,textarea,select{font-family:var(--font-body)!important}
body{font-size:14px;line-height:2.05}
h1,h2,h3,h4,.section h2,.listing-hero h1,.detail-page h1,.admin-top h1,.admin-panel h2,.login-card h1,.install-card h1{font-family:var(--font-heading)!important;font-weight:400!important;line-height:1.85}
p,.intro-copy p,.production-copy p,.section p,.detail-body,.listing-hero p{ text-align:justify;text-align-last:right;text-justify:inter-word }
/* One consistent editorial image rhythm */
.lookbook-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;align-items:stretch;gap:22px}
.look-card,.look-tall,.look-wide,.look-small{display:block;grid-column:auto;grid-row:auto;min-height:0;height:auto;aspect-ratio:4/5}
.look-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.story-card img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center}
.product-photo{height:auto;aspect-ratio:4/5}
.product-photo img{width:100%;height:100%;object-fit:cover;object-position:center}
.detail-cover{width:100%;aspect-ratio:16/10;object-fit:cover}
.product-gallery img{width:100%;aspect-ratio:4/5;object-fit:cover}
/* Replace font-dependent decorative glyphs with CSS-drawn marks */
.theme-toggle{position:relative;font-size:0}
.theme-toggle:before{content:'';position:absolute;width:14px;height:14px;border:2px solid var(--gold);border-radius:50%;left:10px;top:10px;box-shadow:inset -6px 0 0 var(--gold)}
.menu-toggle{position:relative;font-size:0}
.menu-toggle:before,.menu-toggle:after{content:'';position:absolute;right:9px;width:17px;height:1.5px;background:currentColor}
.menu-toggle:before{top:12px;box-shadow:0 6px 0 currentColor,0 12px 0 currentColor}
.ornament{display:block;width:13px;height:13px;border:1px solid var(--gold);transform:rotate(45deg);flex:0 0 13px}
.feature-symbol{display:block;width:18px;height:18px;border:1px solid var(--gold);transform:rotate(45deg);margin:4px 0}
.feature-symbol-two{border-radius:50%;transform:none}
.feature-symbol-three{width:14px;height:14px;border-width:2px;transform:rotate(45deg)}
.video-mark{width:48px;height:48px;border:1px solid var(--gold);border-radius:50%;position:relative;display:block}
.video-mark:after,.play-icon:after{content:'';position:absolute;top:50%;left:53%;transform:translate(-35%,-50%);border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:12px solid var(--gold)}
.play-icon{width:58px;height:58px;border:1px solid var(--gold);border-radius:50%;display:block;position:relative;margin:auto}
.play-icon:after{border-top-width:10px;border-bottom-width:10px;border-left-width:15px}
.arrow-mark{display:inline-block;width:9px;height:9px;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-right:4px}
.text-link:after,.view-all:after,.story-card span:after,.product-card b:after{content:'';display:inline-block;width:8px;height:8px;border-left:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);margin-right:8px;vertical-align:middle}
.contact-phones{font-family:var(--font-body)!important;letter-spacing:0;direction:rtl}
.look-label h3{font-family:var(--font-heading)!important;font-weight:400}
.story-card h2,.story-card h3,.product-card h2,.product-card h3{font-family:var(--font-heading)!important;font-weight:400}
/* Responsive editorial cards remain equal-sized within each breakpoint */
@media(max-width:800px){.lookbook-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}.look-card,.look-tall,.look-wide,.look-small{aspect-ratio:4/5;grid-column:auto;grid-row:auto}}
@media(max-width:520px){.lookbook-grid{grid-template-columns:1fr;grid-template-rows:auto}.look-card,.look-tall,.look-wide,.look-small{aspect-ratio:4/5;grid-column:auto;grid-row:auto}.product-photo{aspect-ratio:4/5;height:auto}}

section[id]{scroll-margin-top:104px}


/* AYSAN V4: editorial slider, consistent iconography and gallery */
.hero-slider{background:none;isolation:isolate;--hero-overlay:62%}
.hero-slide{position:absolute;inset:0;display:flex;align-items:center;opacity:0;visibility:hidden;transition:opacity .75s ease,visibility .75s ease;background-image:var(--slide-image);background-size:cover;background-position:center 42%;z-index:0}
.hero-slide.is-active{opacity:1;visibility:visible;z-index:1}
.hero-slide .hero-overlay{background:linear-gradient(270deg,rgba(34,12,29,.94),rgba(48,20,41,.72) 38%,rgba(48,20,41,.12) 100%);opacity:var(--hero-overlay,.62)}
.hero-copy{z-index:2}
.hero-slider[data-position="center"] .hero-copy{margin:0 auto;text-align:center;width:min(720px,82%)}
.hero-slider[data-position="center"] .hero-copy p{margin-inline:auto;text-align:justify}
.hero-slider[data-position="center"] .hero-actions{justify-content:center}
.hero-slider[data-position="left"] .hero-copy{margin-right:auto;margin-left:9%}
.hero-icon-wrap{display:inline-flex;color:var(--gold2);margin-bottom:12px}
.hero-icon{width:34px;height:34px;display:block}
.hero-slider-controls{position:absolute;z-index:5;left:6%;bottom:28px;display:flex;align-items:center;gap:13px}
.hero-arrow{width:34px;height:34px;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(31,12,26,.2);color:#fff;font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center}
.hero-dots{display:flex;align-items:center;gap:8px}
.hero-dot{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.55);cursor:pointer;transition:.25s}
.hero-dot.active{width:25px;border-radius:8px;background:var(--gold2)}
.hero-index{left:auto;right:6%;bottom:38px;z-index:4}
.hero-index span{font:10px Georgia;letter-spacing:2px}
.hero-index i{width:44px}
.feature-grid{align-items:start}
.feature-grid div{min-width:112px;justify-items:start;gap:9px}
.feature-icon{width:38px;height:38px;display:grid;place-items:center;color:var(--gold);border:1px solid rgba(196,154,80,.5);border-radius:50%;transform:none!important}
.feature-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.look-card,.story-card img,.product-photo{overflow:hidden}
.look-card img,.story-card img,.product-photo img{aspect-ratio:4/5;object-fit:cover;width:100%;height:100%}
.story-card img{height:auto}
.product-photo{height:auto;aspect-ratio:4/5}
/* Product image carousel */
.product-gallery{min-width:0}
.gallery-stage{position:relative;width:100%;aspect-ratio:4/5;background:var(--cream);overflow:hidden}
.gallery-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;visibility:hidden;transition:opacity .3s ease}
.gallery-image.is-active{opacity:1;visibility:visible}
.gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.gallery-arrow{flex:0 0 36px;width:36px;height:36px;border:1px solid var(--gold);border-radius:50%;background:transparent;color:var(--plum);font-size:24px;cursor:pointer}
.gallery-thumbs{display:flex;gap:9px;overflow-x:auto;flex:1;justify-content:center;padding:3px}
.gallery-thumb{flex:0 0 58px;width:58px;height:72px;padding:2px;border:1px solid transparent;background:transparent;cursor:pointer;opacity:.68}
.gallery-thumb.active{border-color:var(--gold);opacity:1}
.gallery-thumb img{width:100%;height:100%;object-fit:cover}
.detail-specs{display:grid;gap:0;margin:20px 0 25px;border-top:1px solid var(--line)}
.spec-row{display:grid;grid-template-columns:minmax(105px,.38fr) 1fr;gap:18px;padding:13px 0;border-bottom:1px solid var(--line);align-items:start}
.spec-row dt{color:var(--plum);font-weight:700}
.dark .spec-row dt{color:var(--gold2)}
.spec-row dd{margin:0;color:var(--muted);text-align:justify}
.detail-specs>p{margin:8px 0;color:var(--muted)}
/* Admin slide editor */
.slide-admin-card{border:1px solid #eadfd5;background:#fffdf9;padding:20px;margin:22px 0}
.slide-admin-card h3{font-size:16px;color:#5a2343}
.slide-admin-image{display:grid;grid-template-columns:190px 1fr;gap:18px;align-items:center;margin:15px 0}
.slide-admin-image img{width:190px;aspect-ratio:16/9;object-fit:cover;border:1px solid #e8dccc}
.slide-admin-card .language-editor{margin:12px 0}
.slide-admin-card h4{margin:0;color:#5a2343;font-size:13px}
.hero-slides-admin>p{color:#776a72;font-size:12px}
@media(max-width:800px){.hero{height:650px;min-height:570px}.hero-copy{width:84%;margin:160px auto 0}.hero-slider[data-position="left"] .hero-copy{margin:160px auto 0}.hero-slider-controls{left:6%;bottom:18px}.hero-index{right:6%;bottom:28px}.slide-admin-image{grid-template-columns:1fr}.slide-admin-image img{width:100%;max-width:300px}}
@media(max-width:520px){.hero{min-height:590px;height:650px}.hero-copy{margin:150px auto 0!important}.hero-slider-controls{bottom:16px}.hero-index{display:none}.hero-slider[data-position="center"] .hero-copy{width:88%}.gallery-thumb{flex-basis:48px;width:48px;height:60px}.spec-row{grid-template-columns:1fr;gap:4px}}
@media(prefers-reduced-motion:reduce){.hero-slide,.gallery-image{transition:none}.hero-slider-controls{scroll-behavior:auto}}

.product-code{font-family:BTitr,Vazirmatn,sans-serif!important;letter-spacing:0;font-size:13px}


/* AYSAN V5: viewport-fit layout for laptop and mobile */
@media (min-width:801px){
  .hero-slider{height:min(820px,calc(100svh - 88px));min-height:500px;max-height:820px}
  .hero-slide{background-position:center center}
  .hero-copy{max-width:500px}
  .product-detail{max-width:1440px;padding:clamp(14px,2vh,24px) 28px 48px}
  .product-detail .back-link{margin-bottom:7px}
  .product-detail>h1{font-size:clamp(24px,2.3vw,38px);line-height:1.45;margin:3px 0 8px}
  .product-detail .overline{font-size:10px}
  .product-detail-grid{grid-template-columns:minmax(0,1fr) minmax(0,.92fr);gap:clamp(24px,3.4vw,52px);align-items:center;margin-top:8px}
  .product-info{position:static;align-self:center}
  .product-info h2{margin:12px 0 6px}
  .product-info .detail-excerpt{font-size:13px!important;line-height:1.9;margin:8px 0}
  .product-info .detail-specs{margin:12px 0 16px}
  .product-info .spec-row{padding:9px 0}
  .gallery-stage{width:min(100%,500px,calc((100svh - 310px)*.8));aspect-ratio:4/5;margin-inline:auto}
  .gallery-controls{margin-top:8px}
  .gallery-thumb{width:48px;height:58px;flex-basis:48px}
}
@media(max-width:800px){
  .hero-slider{height:calc(100svh - 76px);min-height:510px;max-height:760px}
  .hero-slide{background-position:45% center}
  .hero-copy{margin:0 auto!important;width:88%;padding:18px 0}
  .hero-slider-controls{bottom:16px}
  .product-detail{padding-top:20px}
  .product-detail-grid{grid-template-columns:1fr;gap:22px}
  .product-info{position:static;order:2}
  .product-gallery{order:1}
  .gallery-stage{width:min(100%,460px,calc((100svh - 300px)*.8));aspect-ratio:4/5;margin-inline:auto}
}
@media(max-width:520px){
  .hero-slider{height:calc(100svh - 72px);min-height:500px;max-height:700px}
  .hero-copy{width:88%;margin:0 auto!important}
  .hero h1{font-size:clamp(27px,8vw,34px);line-height:1.55}
  .hero-copy p{font-size:12px;line-height:2}
  .hero-actions{margin-top:18px}
  .gallery-stage{width:min(100%,390px,calc((100svh - 310px)*.8))}
  .gallery-thumb{width:46px;height:56px;flex-basis:46px}
}
.aysan-floating-actions{position:fixed;z-index:70;right:18px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;gap:11px;align-items:flex-start;direction:ltr}
.aysan-floating-action{width:48px;height:48px;display:flex;align-items:center;gap:10px;position:relative;border-radius:50%;background:var(--white);border:1px solid rgba(196,154,80,.58);box-shadow:0 7px 24px rgba(36,15,31,.16);padding:7px;color:var(--plum);transition:width .22s,transform .22s,box-shadow .22s;overflow:hidden}
.aysan-floating-action:hover{width:145px;border-radius:28px;transform:translateX(-2px);box-shadow:0 10px 30px rgba(36,15,31,.23)}
.aysan-floating-action img{width:32px;height:32px;flex:0 0 32px;object-fit:contain}
.floating-fallback{width:32px;height:32px;flex:0 0 32px;border-radius:50%;display:grid;place-items:center;background:var(--plum);color:#fff;font-family:var(--font-heading);font-size:15px}
.floating-label{font-size:11px;font-weight:700;white-space:nowrap;opacity:0;transition:opacity .18s}
.aysan-floating-action:hover .floating-label,.aysan-floating-action:focus-visible .floating-label{opacity:1}
.dark .aysan-floating-action{background:#2b202c;color:#f4e9e7}
.floating-admin-row{display:grid;grid-template-columns:90px 1fr;gap:18px;padding:18px 0;border-bottom:1px solid #eee;align-items:start}
.floating-admin-preview{width:76px;height:76px;border-radius:50%;border:1px solid #ead7b0;background:#fbf7ef;display:grid;place-items:center;overflow:hidden}
.floating-admin-preview img{width:100%;height:100%;object-fit:contain}
.floating-admin-preview span{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#4b1739;color:white;font-size:20px}
.floating-admin-fields h3{margin:0;color:#5a2343}
.floating-admin-fields small{display:block;color:#8b7d84;font-size:10px;margin-top:5px}
.contact-phones a{white-space:nowrap;transition:color .2s}
.contact-phones a:hover{color:var(--gold2)}
@media(max-width:800px){
 .aysan-floating-actions{right:10px;top:auto;bottom:18px;transform:none;gap:8px}
 .aysan-floating-action{width:44px;height:44px;padding:6px}
 .aysan-floating-action img,.floating-fallback{width:30px;height:30px;flex-basis:30px}
 .aysan-floating-action:hover{width:44px;border-radius:50%;transform:none}
 .floating-label{display:none}
 .floating-admin-row{grid-template-columns:1fr}
}


/* V6: dynamic floating contact buttons administration */
.floating-admin-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.floating-admin-toolbar h2{margin-bottom:8px}
.floating-admin-toolbar p{max-width:760px;line-height:1.9;color:var(--muted,#81737a)}
.floating-admin-count{flex:0 0 76px;height:76px;border:1px solid rgba(196,154,80,.45);border-radius:18px;background:#fbf7ef;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#4b1739}
.floating-admin-count strong{font-size:25px;font-family:var(--font-heading)}
.floating-admin-count span{font-size:11px}
.floating-row-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.floating-row-heading h3{margin:0}
.floating-remove-btn{border:1px solid #d9a9a9;background:#fff8f7;color:#9b3434;border-radius:9px;padding:8px 12px;font:inherit;font-size:12px;cursor:pointer}
.floating-remove-btn:hover{background:#fbe8e6}
.floating-admin-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;flex-wrap:wrap}
.floating-admin-actions button:disabled{opacity:.45;cursor:not-allowed}
.floating-admin-row{border:1px solid rgba(196,154,80,.22);border-radius:14px;padding:18px;margin:14px 0;background:rgba(255,255,255,.42)}
.floating-admin-fields label{display:block;margin:10px 0}
.floating-admin-fields input,.floating-admin-fields select{width:100%;box-sizing:border-box}
@media(max-width:700px){.floating-admin-toolbar{flex-direction:column}.floating-admin-count{width:100%;height:auto;min-height:55px;flex-direction:row;gap:8px}.floating-admin-actions{align-items:stretch;flex-direction:column}.floating-admin-actions .btn{width:100%}}
