*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fbfaf8;color:#171614;font-family:Vazirmatn,Tahoma,"Segoe UI",Arial,sans-serif;line-height:1.6}.topbar{height:34px;background:#eee9e2;display:flex;align-items:center;justify-content:center;font-size:12px}.header{height:76px;background:#fff;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 6vw;position:sticky;top:0;z-index:20;border-bottom:1px solid #eee}.brand{font-family:Georgia,serif;font-size:43px;color:#111;text-decoration:none;letter-spacing:-2px}.nav{display:flex;gap:30px}.nav a,.section-head a,footer a{color:#222;text-decoration:none;font-size:13px}.actions{display:flex;gap:13px;justify-self:end;direction:ltr}.actions button{border:0;background:transparent;font-size:22px;cursor:pointer}.cart{position:relative}.cart span{position:absolute;background:#111;color:#fff;border-radius:10px;font:10px Arial;min-width:17px;height:17px;line-height:17px;top:-3px;right:-8px}.hero{min-height:430px;display:grid;grid-template-columns:38% 44% 18%;background:#e9e3da;overflow:hidden}.hero-copy{padding:70px 6vw 45px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.eyebrow{font-size:11px;letter-spacing:7px;color:#777}.hero h1{font-size:36px;line-height:1.45;margin:16px 0 6px}.hero p{font-size:17px;color:#4e4a46}.btn{border:0;padding:11px 24px;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;cursor:pointer;font:inherit}.dark{background:#171717;color:#fff}.hero-img{overflow:hidden}.hero-img img{width:100%;height:100%;object-fit:cover;object-position:55% center;transform:scale(1.05)}.hero-note{font-family:Georgia,serif;font-size:37px;font-style:italic;color:#aaa;display:flex;flex-direction:column;justify-content:center;align-items:center;line-height:1.15;text-align:center}.hero-note span{font-family:Arial;font-size:8px;letter-spacing:3px;font-style:normal;margin-top:38px;color:#666}.section{padding:30px 6vw}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.section-head h2{font-size:20px}.categories,.products{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.cat{background:#f0ede8;text-align:center;text-decoration:none;color:#222;overflow:hidden}.cat img{width:100%;height:116px;object-fit:cover}.cat b{display:block;font-size:13px;margin-top:7px}.cat span{display:block;color:#777;font-size:11px;padding-bottom:8px}.tabs{display:flex;gap:20px}.tabs button{border:0;background:transparent;padding:5px 0;font-size:12px}.tabs .active{border-bottom:2px solid #111}.product{background:#fff;position:relative;cursor:pointer}.product-img{height:260px;overflow:hidden;background:#eee}.product-img img{width:100%;height:100%;object-fit:cover;transition:.35s}.product:hover img{transform:scale(1.025)}.heart{position:absolute;top:10px;left:10px;border:0;background:#fff9;border-radius:50%;width:30px;height:30px;font-size:20px}.product-body{padding:9px 4px 12px}.product-title{font-size:13px}.product-price{font-weight:700;font-size:13px;margin:3px 0}.old-price{text-decoration:line-through;color:#999;font-weight:400;margin-right:6px}.add{width:100%;background:#fff;border:1px solid #bbb;border-radius:3px;padding:8px;cursor:pointer}.lookbook{margin-top:6px;display:grid;grid-template-columns:40% 28% 32%;min-height:180px;background:#eee8df;align-items:center}.lookbook img{width:100%;height:100%;object-fit:cover}.lookbook>div{padding:22px;text-align:center;border-left:1px solid #d3ccc4}.lookbook h2{font-family:Georgia,serif;font-size:28px;margin:0}.lookbook a{font-size:12px;color:#222;text-decoration:none}.lookbook blockquote{font-size:20px;font-weight:700;text-align:center;padding:25px}.lookbook small{display:block;font-size:11px;font-weight:400;color:#666;margin-top:12px}.sale{margin:14px 6vw 0;min-height:130px;background:#e8e1d7;display:grid;grid-template-columns:34% 42% 24%;align-items:center;overflow:hidden}.sale>div:first-child{padding:25px 40px}.sale strong{display:block;font-size:25px}.sale span{display:block;font-size:12px;margin-bottom:8px}.sale img{width:100%;height:150px;object-fit:cover}.sale-en{text-align:center;letter-spacing:5px;font:12px Georgia}.sale-en b{display:block;font-size:28px;letter-spacing:2px}.sale-en small{display:block;font-family:Vazirmatn,Tahoma,sans-serif;letter-spacing:0}.trust{display:grid;grid-template-columns:repeat(4,1fr);padding:28px 6vw;background:#fff;border-top:1px solid #eee;border-bottom:1px solid #eee;margin-top:18px}.trust div{text-align:center;border-left:1px solid #eee}.trust div:last-child{border:0}.trust b,.trust span{display:block}.trust span{font-size:11px;color:#777}footer{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px;padding:35px 6vw;background:#fff}footer>div{display:flex;flex-direction:column;gap:6px;font-size:12px}.foot-brand>b{font:32px Georgia}.foot-brand>span{color:#777}.enamad-box{border:1px solid #ddd;border-radius:8px;width:90px;height:90px;display:flex;align-items:center;justify-content:center;text-align:center;background:#fafafa;color:#777}.copyright{padding:12px 6vw;background:#f3f0ec;color:#777;font-size:10px}.overlay{position:fixed;inset:0;background:#0007;opacity:0;visibility:hidden;z-index:39;transition:.2s}.overlay.show{opacity:1;visibility:visible}.drawer{position:fixed;top:0;left:-430px;width:400px;max-width:92vw;height:100vh;background:#fff;z-index:40;padding:20px;transition:.3s;box-shadow:10px 0 30px #0002;display:flex;flex-direction:column}.drawer.open{left:0}.drawer-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eee}.close,.dialog-close{border:0;background:transparent;font-size:30px;cursor:pointer}.cart-items{flex:1;overflow:auto}.cart-item{display:grid;grid-template-columns:64px 1fr auto;gap:10px;padding:12px 0;border-bottom:1px solid #eee}.cart-item img{width:64px;height:76px;object-fit:cover}.cart-item b{font-size:12px}.cart-item small{display:block;color:#777}.remove{border:0;background:none;cursor:pointer}.cart-total{display:flex;justify-content:space-between;padding:15px 0}.full{width:100%}dialog{border:0;border-radius:8px;box-shadow:0 20px 80px #0005;max-width:860px;width:92%;padding:0}dialog::backdrop{background:#0008}.dialog-close{position:absolute;left:12px;top:8px;z-index:2}.detail{display:grid;grid-template-columns:1fr 1fr;direction:rtl}.detail-image{height:540px;background:#eee}.detail-image img{width:100%;height:100%;object-fit:cover}.detail-info{padding:55px 35px}.detail-info h2{font-size:28px}.price-big{font-size:20px;font-weight:700}.selector{margin:22px 0}.selector label{display:block;font-weight:700;margin-bottom:7px}.chips{display:flex;gap:7px;flex-wrap:wrap}.chip{border:1px solid #bbb;background:#fff;border-radius:2px;min-width:42px;padding:8px 12px;cursor:pointer}.chip.selected{background:#111;color:#fff;border-color:#111}.color-dot{width:26px;height:26px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #aaa;cursor:pointer}.color-dot.selected{box-shadow:0 0 0 2px #111}.checkout-dialog{max-width:720px;padding:35px}.checkout-dialog h2{margin-top:0}.muted{color:#777;font-size:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid label,.upload{font-size:12px}.form-grid input,.form-grid textarea{width:100%;padding:11px;border:1px solid #ccc;margin-top:5px;font:inherit}.form-grid textarea{min-height:80px}.wide{grid-column:1/-1}.payment{margin:22px 0}.card{background:#25211f;color:#fff;border-radius:12px;padding:20px;max-width:380px;margin:10px 0}.card span,.card small{display:block;color:#bbb}.card b{display:block;font-size:19px;direction:ltr;text-align:right;letter-spacing:2px}.upload{border:1px dashed #aaa;padding:13px;display:block;cursor:pointer}.upload input{display:none}.success-dialog{max-width:460px;text-align:center;padding:40px}.success-mark{width:70px;height:70px;margin:auto;background:#111;color:#fff;border-radius:50%;font-size:42px}.success-dialog strong{display:block;font-size:27px;direction:ltr;margin:15px}.toast{position:fixed;bottom:25px;right:25px;background:#111;color:#fff;padding:10px 17px;border-radius:4px;z-index:99;font-size:12px}
@media(max-width:900px){.header{grid-template-columns:auto 1fr auto;padding:0 4vw}.brand{font-size:33px}.nav{display:none}.hero{grid-template-columns:1fr;min-height:auto}.hero-copy{order:2;padding:35px 7vw}.hero-img{height:370px;order:1}.hero-note{display:none}.categories{display:flex;overflow:auto}.cat{min-width:170px}.products{grid-template-columns:repeat(2,1fr)}.lookbook{grid-template-columns:1fr}.lookbook>div{border:0}.lookbook blockquote{margin:0}.sale{grid-template-columns:1fr;margin:10px 4vw}.sale img{height:180px}.sale-en{padding:20px}.trust{grid-template-columns:repeat(2,1fr);gap:20px}.trust div{border:0}footer{grid-template-columns:1fr 1fr}.detail{grid-template-columns:1fr}.detail-image{height:360px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}}
@media(max-width:520px){.topbar{font-size:10px}.header{height:62px}.actions button:nth-child(-n+2){display:none}.hero-img{height:300px}.hero h1{font-size:29px}.section{padding:24px 4vw}.products{gap:8px}.product-img{height:220px}.lookbook{margin:0}.trust{padding:25px 4vw}footer{grid-template-columns:1fr}.checkout-dialog{padding:25px 18px}}


/* Vincy mobile polish */
button,input,textarea,select{font-family:Vazirmatn,Tahoma,"Segoe UI",Arial,sans-serif}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{display:block;max-width:100%}

@media(max-width:900px){
  .topbar{height:30px;padding:0 12px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .header{height:68px;grid-template-columns:auto 1fr auto;padding:0 16px;gap:10px}
  .brand{font-size:34px;justify-self:center;grid-column:2}
  .actions{grid-column:3;gap:6px}
  .actions button{width:38px;height:38px;display:grid;place-items:center;font-size:21px}
  .actions button[aria-label="حساب"],.actions button[aria-label="جستجو"]{display:none}
  .hero{display:flex;flex-direction:column;background:#e9e3da}
  .hero-img{order:1;height:54vw;min-height:270px;max-height:430px}
  .hero-img img{object-position:55% 22%;transform:none}
  .hero-copy{order:2;padding:28px 20px 32px;align-items:center;text-align:center}
  .eyebrow{font-size:10px;letter-spacing:5px}
  .hero h1{font-size:31px;line-height:1.45;margin:11px 0 4px}
  .hero p{font-size:14px;margin:5px 0 17px}
  .hero .btn{min-width:180px}
  .hero-note{display:none}
  .section{padding:26px 16px}
  .section-head{align-items:flex-end;gap:10px}
  .section-head h2{font-size:18px;margin:0}
  .section-head>a{font-size:11px;white-space:nowrap}
  .categories{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 0 8px;scrollbar-width:none}
  .categories::-webkit-scrollbar{display:none}
  .cat{min-width:150px;scroll-snap-align:start;border-radius:4px}
  .cat img{height:108px}
  .tabs{display:none}
  .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .product{min-width:0}
  .product-img{height:auto;aspect-ratio:3/4}
  .product-body{padding:8px 2px 10px}
  .product-title{font-size:12px;line-height:1.65;min-height:40px}
  .product-price{font-size:12px;line-height:1.7}
  .old-price{display:block;margin:0;font-size:10px}
  .add{min-height:38px;font-size:11px;padding:7px 4px}
  .heart{top:8px;left:8px;width:29px;height:29px;font-size:18px}
  .lookbook{grid-template-columns:1fr;margin-top:0}
  .lookbook img{height:260px;object-position:center 30%}
  .lookbook>div{padding:24px 18px;border:0;border-bottom:1px solid #d8d1c9}
  .lookbook h2{font-size:25px}
  .lookbook blockquote{padding:24px 22px;margin:0;font-size:17px}
  .sale{grid-template-columns:1fr;margin:14px 16px 0;border-radius:4px}
  .sale>div:first-child{padding:24px;text-align:center}
  .sale strong{font-size:23px}
  .sale img{height:220px;order:-1}
  .sale-en{padding:18px 12px 22px}
  .trust{grid-template-columns:1fr 1fr;gap:0;padding:12px 16px;margin-top:16px}
  .trust div{padding:16px 6px;border-left:0;border-bottom:1px solid #eee}
  .trust div:nth-last-child(-n+2){border-bottom:0}
  footer{grid-template-columns:1fr 1fr;gap:28px 20px;padding:30px 18px}
  .foot-brand{grid-column:1/-1}
  .copyright{text-align:center;padding:12px 16px}
  .drawer{width:min(390px,100vw);max-width:100vw;padding:18px}
  dialog{width:calc(100% - 24px);max-height:92vh;overflow:auto;border-radius:10px}
  .detail{grid-template-columns:1fr}
  .detail-image{height:auto;aspect-ratio:4/5}
  .detail-info{padding:24px 18px 26px}
  .detail-info h2{font-size:22px;margin-top:0}
  .selector{margin:17px 0}
  .chip{min-width:46px;min-height:42px}
  .color-dot{width:31px;height:31px}
  .checkout-dialog{padding:28px 18px 22px}
  .form-grid{grid-template-columns:1fr;gap:10px}
  .wide{grid-column:auto}
  .form-grid input,.form-grid textarea{font-size:16px;padding:12px}
  .card{max-width:none}
  .toast{right:14px;left:14px;bottom:14px;text-align:center}
}

@media(max-width:520px){
  .topbar{font-size:9px}
  .header{height:60px;padding:0 10px}
  .brand{font-size:30px}
  .actions button{width:34px;height:34px}
  .actions button[aria-label="علاقه مندی"]{display:none}
  .hero-img{height:78vw;min-height:280px;max-height:360px}
  .hero-copy{padding:24px 16px 28px}
  .hero h1{font-size:27px}
  .hero p{font-size:13px}
  .section{padding:22px 12px}
  .cat{min-width:136px}
  .cat img{height:98px}
  .products{gap:8px}
  .product-title{font-size:11px}
  .product-price{font-size:11px}
  .add{font-size:10px}
  .lookbook img{height:225px}
  .sale{margin-left:12px;margin-right:12px}
  .sale img{height:190px}
  .trust{padding:10px 12px}
  .trust b{font-size:12px}
  .trust span{font-size:10px}
  footer{grid-template-columns:1fr;padding:26px 16px}
  .enamad-box{width:82px;height:82px}
  .drawer{padding:14px}
  .cart-item{grid-template-columns:58px 1fr auto}
  .cart-item img{width:58px;height:72px}
  .checkout-dialog{padding:24px 14px 18px}
  .success-dialog{padding:30px 18px}
}


/* Vincy mobile-first refinement v3 */
:root{--control-h:48px;--radius:8px;--line:#d8d3cc;--soft:#f5f1eb}
input,select,textarea,button{border-radius:var(--radius)}
.form-grid label{display:flex;flex-direction:column;gap:5px}
.form-grid input,.form-grid select,.form-grid textarea{
  width:100%;height:var(--control-h);min-height:var(--control-h);max-height:var(--control-h);
  padding:0 13px;margin-top:0;border:1px solid var(--line);background:#fff;outline:none;
}
.form-grid textarea{resize:none;padding-top:12px;line-height:1.5}
.form-grid input:focus,.form-grid textarea:focus{border-color:#777;box-shadow:0 0 0 2px #00000008}
.size-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.size-row label{margin:0!important}
.size-guide-link{border:0;background:transparent;padding:2px 0;border-bottom:1px solid #777;border-radius:0;font-size:11px;color:#555;cursor:pointer}
.size-guide-dialog{max-width:560px;padding:28px}
.size-guide-dialog h2{margin:0 0 6px;font-size:22px}
.size-guide-dialog p{margin:0 0 16px}
.size-table-wrap{overflow:auto;border:1px solid #e7e2dc;border-radius:10px}
.size-table{width:100%;border-collapse:collapse;text-align:center;min-width:430px;background:#fff}
.size-table th,.size-table td{padding:11px 12px;border-bottom:1px solid #eee;border-left:1px solid #eee;font-size:12px}
.size-table th{background:#f4f0ea;font-weight:700}.size-table tr:last-child td{border-bottom:0}
.size-note{margin-top:12px;font-size:11px;color:#777;background:#f7f4ef;padding:10px 12px;border-radius:8px}

@media(max-width:900px){
  body{background:#fff}
  main{overflow:hidden}
  .topbar{background:#f2eee8}
  .header{position:sticky;top:0;box-shadow:0 2px 12px #00000008}
  .hero{margin:0;border-radius:0}
  .hero-img{height:72vw;min-height:300px;max-height:470px}
  .hero-copy{padding:25px 18px 30px;background:#eee8df}
  .hero h1{font-size:30px;letter-spacing:-.5px}
  .hero .btn{height:44px;border-radius:5px}
  .section{padding:27px 14px}
  .section-head{margin-bottom:15px}
  .section-head h2{font-size:19px}
  .categories{margin-left:-14px;padding-left:14px}
  .cat{min-width:142px;border-radius:9px;background:#f4f1ed;box-shadow:0 1px 0 #00000008}
  .cat img{height:126px}.cat b{font-size:12px}.cat span{font-size:10px;padding:0 7px 9px}
  .products{gap:9px}
  .product{border-radius:9px;overflow:hidden;background:#fff;border:1px solid #f0ede9}
  .product-img{aspect-ratio:3/4.2}
  .product-body{padding:9px 8px 10px}
  .product-title{font-size:12px;min-height:39px}
  .product-price{font-size:12px;margin:5px 0 8px}
  .add{height:40px;border-color:#d8d2cb;border-radius:6px;background:#faf9f7}
  .lookbook{border-top:8px solid #f7f4ef;border-bottom:8px solid #f7f4ef}
  .lookbook img{height:290px}
  .sale{border-radius:10px;overflow:hidden}
  .trust{background:#faf8f5;border-radius:0;margin-top:18px}
  .drawer{border-radius:0 16px 16px 0}
  .drawer-head{padding-bottom:8px}
  .cart-item{align-items:center}
  dialog{width:calc(100% - 16px);max-height:94vh;border-radius:14px}
  .detail-image{order:1;aspect-ratio:4/4.8}
  .detail-info{order:2;padding:21px 16px 24px}
  .detail-info h2{font-size:21px;margin:5px 0 5px}
  .price-big{font-size:17px}
  .selector{margin:15px 0}
  .chips{gap:8px}
  .chip{height:44px;min-width:48px;padding:0 13px;border-radius:6px}
  .color-dot{width:32px;height:32px}
  #addDetail{height:48px;border-radius:7px;position:sticky;bottom:0}
  .checkout-dialog{padding:24px 14px 18px}
  .checkout-dialog h2{font-size:22px}
  .form-grid{gap:11px}
  .form-grid input,.form-grid select,.form-grid textarea{font-size:16px;height:48px;min-height:48px;max-height:48px}
  .payment{margin:18px 0}.payment h3{font-size:16px}
  .card{border-radius:12px;padding:18px;margin:8px 0 12px}
  .upload{height:48px;display:flex;align-items:center;padding:0 13px;border-radius:8px}
  .checkout-dialog .btn.full{height:50px;border-radius:8px}
  .size-guide-dialog{width:calc(100% - 18px);padding:24px 14px 16px}
  .size-guide-dialog h2{font-size:20px;padding-left:30px}
  footer{background:#faf9f7}
}
@media(max-width:520px){
  .header{padding:0 8px}.brand{font-size:29px}
  .hero-img{height:86vw;min-height:305px;max-height:385px}
  .hero-copy{padding:21px 14px 26px}.hero h1{font-size:26px}.hero p{font-size:12px}
  .section{padding:24px 10px}.categories{margin-left:-10px;padding-left:10px;gap:8px}.cat{min-width:132px}.cat img{height:116px}
  .products{gap:7px}.product-body{padding:8px 6px 9px}.product-title{font-size:11px}.product-price{font-size:11px}
  .add{font-size:10px;height:38px}.lookbook img{height:245px}.sale{margin:12px 10px 0}.sale img{height:205px}
  .trust{padding:10px}.trust div{padding:14px 4px}
  .detail-image{aspect-ratio:4/4.65}.detail-info{padding:18px 13px 20px}
  .checkout-dialog{padding:22px 12px 16px}.form-grid{gap:9px}
  .size-guide-dialog{padding:22px 12px 14px}
}

/* Vincy product gallery + mobile purchase flow v4 */
.product-gallery{position:relative;width:100%;height:100%;overflow:hidden;background:#f2efeb;direction:ltr;touch-action:pan-y}
.gallery-track{display:flex;width:100%;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none}
.gallery-track::-webkit-scrollbar{display:none}
.gallery-slide{position:relative;flex:0 0 100%;width:100%;height:100%;padding:0;border:0;border-radius:0;background:#eee;overflow:hidden;scroll-snap-align:start;cursor:zoom-in}
.gallery-slide img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.gallery-slide.gallery-main img{object-position:center center}
.gallery-slide.gallery-detail img{transform:scale(1.3);object-position:center 38%}
.gallery-slide.gallery-fabric img{transform:scale(1.75);object-position:56% 48%}
.gallery-top{position:absolute;top:14px;right:14px;left:14px;display:flex;direction:rtl;justify-content:space-between;align-items:center;pointer-events:none;z-index:3}
.gallery-count,.gallery-hint{background:#fffdf9d9;backdrop-filter:blur(8px);padding:5px 9px;border-radius:99px;font-size:10px;color:#3c3834;box-shadow:0 2px 10px #0000000b}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;width:38px;height:38px;border:0;border-radius:50%;background:#fffdf9dd;box-shadow:0 3px 14px #0002;font-size:24px;display:grid;place-items:center;cursor:pointer}
.gallery-arrow.prev{right:12px}.gallery-arrow.next{left:12px}
.gallery-dots{position:absolute;bottom:13px;left:50%;transform:translateX(-50%);z-index:4;display:flex;gap:6px;direction:ltr}
.gallery-dot{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:#fff9;box-shadow:0 0 0 1px #0002;transition:.2s}
.gallery-dot.active{width:19px;border-radius:8px;background:#171614}
.stock-note{font-size:11px;color:#537051;background:#f4f8f2;border:1px solid #dfe8db;border-radius:7px;padding:8px 10px;margin:5px 0 13px}
.purchase-actions{display:grid;grid-template-columns:1fr 1.15fr;gap:8px;position:relative;z-index:5}
.purchase-actions .btn{height:50px;border-radius:8px;padding:0 10px}
.light-buy{background:#fff;color:#171614;border:1px solid #171614}
.image-viewer{position:fixed;inset:0;background:#111e;z-index:1000;display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:.2s;padding:48px 10px 35px}
.image-viewer.show{opacity:1;visibility:visible}
.image-viewer img{width:min(720px,100%);height:min(86vh,880px);object-fit:contain;border-radius:0;transition:.2s}
.image-viewer img.viewer-detail{transform:scale(1.12)}
.image-viewer img.viewer-fabric{transform:scale(1.28)}
.viewer-close{position:absolute;top:12px;left:14px;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#111;font-size:29px;z-index:2}
.viewer-tip{position:absolute;bottom:9px;color:#fff;font-size:10px;background:#0007;padding:5px 9px;border-radius:20px}

@media(max-width:900px){
  #productDialog{width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border-radius:0;padding:0;overflow:hidden}
  #productDialog::backdrop{background:#fff}
  #productDialog .dialog-close{position:fixed;top:12px;left:12px;width:42px;height:42px;border-radius:50%;background:#fffdf9e8;box-shadow:0 2px 14px #0002;font-size:29px;z-index:30;display:grid;place-items:center}
  #productDialog .detail{display:block;height:100dvh;overflow-y:auto;padding-bottom:86px;background:#fff}
  #productDialog .detail-image{width:100%;height:auto;aspect-ratio:4/4.8;order:0}
  #productDialog .detail-info{padding:18px 15px 14px;order:0}
  #productDialog .eyebrow{display:block;font-size:9px;letter-spacing:5px;margin-bottom:4px}
  #productDialog .product-desc{margin:8px 0 12px;line-height:1.7}
  #productDialog .selector{margin:14px 0}
  #productDialog .purchase-actions{position:fixed;right:0;left:0;bottom:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fffc;border-top:1px solid #eee;backdrop-filter:blur(12px);box-shadow:0 -5px 20px #0000000a;z-index:25}
  #productDialog .purchase-actions .btn{height:52px;font-size:13px}
  #productDialog .gallery-arrow{display:none}
  #productDialog .gallery-hint{display:block}
  .gallery-top{top:14px;right:12px;left:58px}
  .gallery-count{font-size:10px}
  .gallery-dots{bottom:12px}
}
@media(max-width:520px){
  #productDialog .detail-image{aspect-ratio:4/4.7;max-height:58vh}
  #productDialog .detail-info h2{font-size:19px;margin:2px 0 2px}
  #productDialog .price-big{font-size:15px}
  #productDialog .chip{height:42px;min-width:45px}
  #productDialog .color-dot{width:30px;height:30px}
  #productDialog .purchase-actions{gap:7px;padding-left:9px;padding-right:9px}
  #productDialog .purchase-actions .btn{height:50px;font-size:12px}
  .image-viewer{padding-left:0;padding-right:0}
}

/* v5 fix: true mobile product-page ordering */
@media(max-width:900px){
  #productDialog .detail{
    display:flex;
    flex-direction:column;
    height:100dvh;
    overflow-y:auto;
    padding-bottom:88px;
    background:#fff;
    direction:rtl;
  }
  #productDialog .detail-image{
    order:1;
    flex:0 0 auto;
    width:100%;
    aspect-ratio:4/4.8;
    background:#f2efeb;
  }
  #productDialog .detail-info{
    order:2;
    flex:0 0 auto;
    width:100%;
    background:#fff;
  }
  #productDialog .product-gallery,
  #productDialog .gallery-track,
  #productDialog .gallery-slide{
    min-height:0;
  }
  #productDialog .gallery-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
  }
}
@media(max-width:520px){
  #productDialog .detail-image{
    aspect-ratio:4/4.9;
    min-height:390px;
    max-height:62vh;
  }
  #productDialog .detail-info{
    padding:16px 14px 22px;
  }
}

/* v6: always-visible product close control */
#productDialog .dialog-close{
  position:absolute;top:14px;left:14px;width:44px;height:44px;padding:0;
  display:grid;place-items:center;border:1px solid rgba(0,0,0,.12);border-radius:50%;
  background:rgba(255,255,255,.96);color:#111;box-shadow:0 3px 16px rgba(0,0,0,.14);
  font:400 30px/1 Arial,sans-serif;z-index:999;cursor:pointer;
}
#productDialog .dialog-close:hover{background:#111;color:#fff}
@media(max-width:600px){
  #productDialog .dialog-close{position:fixed;top:12px;left:12px;width:42px;height:42px;z-index:9999}
}

/* v7: black cart, OTP login, customer account */
.actions .cart{position:relative;color:#111;background:transparent;border:0;display:grid;place-items:center;width:38px;height:38px;padding:0}
.actions .cart svg{width:25px;height:25px;display:block}
.actions .cart #cartCount{position:absolute;top:-1px;right:-1px;min-width:17px;height:17px;padding:0 4px;border-radius:20px;background:#111;color:#fff;font:700 9px/17px Vazirmatn,sans-serif;text-align:center}
.auth-dialog,.account-dialog{width:min(430px,calc(100% - 24px));padding:30px 24px 22px;border-radius:16px}
.auth-box h2,.account-head h2{font-size:22px;margin:7px 0 4px}.auth-label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;margin:18px 0 12px}.auth-label input{width:100%;height:50px;border:1px solid #ddd;border-radius:9px;padding:0 13px;font:inherit;font-size:16px;direction:ltr;text-align:left}.auth-dialog .btn{height:50px;border-radius:9px}.demo-otp-note{margin-top:12px;padding:10px;border-radius:8px;background:#f7f4ef;font-size:11px;color:#6e655c;text-align:center}.text-btn{display:block;margin:12px auto 0;border:0;background:transparent;text-decoration:underline;font:inherit;font-size:11px;color:#555;cursor:pointer}.account-phone{direction:ltr;text-align:right;font-size:13px;color:#777}.account-links{display:flex;gap:5px;border-bottom:1px solid #eee;margin-top:18px}.account-links button{border:0;background:transparent;padding:9px 11px;font:inherit;font-size:11px;color:#888}.account-links button.active{color:#111;border-bottom:2px solid #111}.my-orders{display:grid;gap:9px;margin:14px 0}.my-order{border:1px solid #eee;border-radius:10px;padding:12px;display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center}.my-order>div:first-child{display:flex;flex-direction:column;gap:2px}.my-order span{font-size:9px;color:#999}.my-order-status{font-size:10px;background:#f3f0eb;padding:5px 8px;border-radius:20px}.my-order-total{font-size:11px;font-weight:700}.empty-account{padding:24px 10px;text-align:center;color:#888;font-size:11px}.logout-btn{width:100%;height:44px;border:1px solid #ddd;border-radius:8px;background:#fff;font:inherit;font-size:11px;cursor:pointer}.checkout-login-state{background:#f3f8f1;border:1px solid #dce9d8;color:#496448;border-radius:8px;padding:9px 11px;margin:8px 0 13px;font-size:11px}.checkout-login-state b{direction:ltr;display:inline-block}
@media(max-width:600px){.auth-dialog,.account-dialog{width:100%;max-width:none;margin:auto 0 0;height:auto;max-height:88dvh;border-radius:18px 18px 0 0;padding:28px 16px calc(18px + env(safe-area-inset-bottom))}.auth-dialog::backdrop,.account-dialog::backdrop{background:#0007}.auth-dialog .dialog-close,.account-dialog .dialog-close{top:10px;left:10px}.actions .cart{width:36px;height:36px}.actions .cart svg{width:23px;height:23px}}

/* Vincy mobile footer redesign v8 */
@media(max-width:600px){
  footer{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    padding:20px 12px 14px;
    background:#f8f6f2;
    border-top:1px solid #ece7e0;
    align-items:start;
  }
  footer>div{
    gap:0;
    min-width:0;
  }
  .foot-brand{
    grid-column:1/-1;
    align-items:center;
    text-align:center;
    padding:0 8px 16px;
    margin-bottom:2px;
    border-bottom:1px solid #e6e0d9;
  }
  .foot-brand>b{
    font:34px/1 Georgia,serif;
    margin-bottom:7px;
  }
  .foot-brand>span{
    font-size:10px;
    color:#77716b;
    margin-bottom:10px;
  }
  .foot-brand .social{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    direction:ltr;
    font-size:10px;
    color:#282522;
  }
  .foot-brand .social::first-letter{letter-spacing:0}
  footer>div:not(.foot-brand):not(.enamad){
    background:#fff;
    border:1px solid #ece7e1;
    border-radius:12px;
    padding:13px 12px 11px;
    min-height:150px;
  }
  footer>div:not(.foot-brand):not(.enamad)>b{
    font-size:12px;
    margin-bottom:8px;
    padding-bottom:8px;
    border-bottom:1px solid #f0ece7;
  }
  footer>div:not(.foot-brand):not(.enamad)>a{
    display:block;
    padding:5px 0;
    font-size:10px;
    color:#5e5953;
    white-space:nowrap;
  }
  .enamad{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:12px;
    background:#fff;
    border:1px solid #ece7e1;
    border-radius:12px;
    padding:11px 12px;
    margin-top:0;
  }
  .enamad>b{
    font-size:11px;
    font-weight:700;
  }
  .enamad-box{
    width:62px;
    height:62px;
    border-radius:9px;
    font-size:9px;
    background:#faf9f7;
  }
  .copyright{
    padding:10px 12px 14px;
    background:#f8f6f2;
    color:#8b857e;
    font-size:9px;
    text-align:center;
    border-top:0;
  }
}

/* v10 - clearer interactive product tabs */
.tabs button{
  cursor:pointer;
  position:relative;
  border:1px solid transparent;
  border-radius:10px;
  padding:7px 12px;
  font-family:inherit;
  color:#2a2825;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.tabs button:hover{
  background:#f1ede7;
  border-color:#cfc7bd;
  color:#111;
  transform:translateY(-1px);
  box-shadow:0 3px 10px rgba(0,0,0,.05);
}
.tabs button:active{transform:translateY(0) scale(.98)}
.tabs button.active{
  background:#171717;
  color:#fff;
  border-color:#171717;
  box-shadow:none;
}
.tabs button.active:hover{background:#171717;color:#fff;border-color:#171717}
.tabs .active{border-bottom:1px solid #171717}
.products{transition:opacity .16s ease,transform .16s ease}
.products.switching{opacity:.35;transform:translateY(3px)}
@media(max-width:600px){
  .tabs{gap:6px;overflow-x:auto;padding:2px 0 5px;scrollbar-width:none}
  .tabs::-webkit-scrollbar{display:none}
  .tabs button{white-space:nowrap;padding:7px 10px;font-size:11px;flex:0 0 auto}
}
/* v11 commerce/admin integration */
.product-img{position:relative}.product-sale-badge{position:absolute;right:9px;top:9px;z-index:2;background:#171717;color:#fff;border-radius:20px;padding:5px 8px;font-size:10px;font-weight:800}.coupon-row{display:grid;grid-template-columns:1fr auto;gap:7px;padding:10px 0;border-top:1px solid #eee}.coupon-row input{height:42px;border:1px solid #ddd;border-radius:8px;padding:0 10px;font:inherit;direction:ltr;text-align:left}.coupon-row button{border:1px solid #222;background:#fff;border-radius:8px;padding:0 14px;font:inherit}.coupon-message{font-size:10px;color:#6d655e;min-height:17px}.coupon-message.ok{color:#28704b}.coupon-message.bad{color:#a53d3d}.cart-breakdown{border-top:1px solid #eee;padding-top:7px}.cart-breakdown>div{display:flex;align-items:center;justify-content:space-between;padding:5px 0;font-size:11px}.cart-breakdown .cart-total{font-size:14px;border-top:1px dashed #ddd;margin-top:4px;padding-top:10px}.cart-item .qty{display:inline-flex;gap:4px;align-items:center;margin-top:5px}.cart-item .qty button{width:24px;height:24px;border:1px solid #ddd;background:#fff;border-radius:6px}.cart-item .qty span{min-width:18px;text-align:center}.product-price .sale-percent{font-size:9px;background:#171717;color:#fff;border-radius:10px;padding:2px 5px;margin-right:4px}
