/* Shared storefront identity; existing portal content and native forms stay intact. */
.wholesale-body{--portal-blue:#33518f;--portal-ink:#203866;--portal-cream:#f5efe6;--portal-line:#dce3ed;margin:0;background:#fff;color:var(--portal-ink);font:400 16px/1.85 'IRANSansX',sans-serif;-webkit-font-smoothing:antialiased}
.wholesale-body *{box-sizing:border-box}.wholesale-body :is(button,input,select,textarea){font:inherit}.wholesale-shell{width:min(1040px,100%);max-width:1040px;margin:auto;padding:0 32px 64px}.wholesale-brand{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;padding:24px 0;margin:0 0 40px;border-bottom:1px solid var(--portal-line);background:#fff}.wholesale-brand>a:first-child{display:block;flex:none}.wholesale-brand img{display:block;width:124px;height:64px;object-fit:contain;background:var(--portal-blue);border-radius:7px;padding:4px 10px}.wholesale-brand .wholesale-site-link{font-size:.875rem;font-weight:500;color:var(--portal-blue);text-decoration:none;min-height:44px;display:flex;align-items:center;gap:12px}
.wholesale-body :is(h1,h2,h3){font-weight:600;line-height:1.6;color:var(--portal-ink);letter-spacing:normal}.wholesale-body h1{font-size:clamp(1.5rem,3vw,2rem)}.wholesale-body :is(.wholesale-card,.wholesale-section,.wholesale-page-head,.wholesale-welcome){background:#fff;border:1px solid var(--portal-line);border-radius:20px;box-shadow:none;padding:28px;margin-bottom:24px}.wholesale-body .wholesale-card{max-width:480px;margin:56px auto}.wholesale-card>small,.wholesale-welcome>small{color:var(--portal-blue);font-size:.875rem;font-weight:600}.wholesale-body p,.wholesale-body small{color:#607089;line-height:1.9}.wholesale-body .wholesale-welcome{background:var(--portal-cream);border-color:var(--portal-cream)}
.wholesale-body :is(input,select,textarea){width:100%;max-width:100%;border:1px solid var(--portal-line);border-radius:10px;background:#fff;color:var(--portal-ink);padding:12px 16px;min-height:48px}.wholesale-body label{display:block;font-size:.875rem;color:var(--portal-ink);font-weight:500}.wholesale-body input[inputmode=numeric],.wholesale-body input[type=tel]{direction:ltr;text-align:right}.wholesale-body textarea{min-height:112px;resize:vertical}.wholesale-body :is(.wholesale-submit,.wholesale-card form button:not([type=button])){background:var(--portal-blue);border:1px solid var(--portal-blue);border-radius:10px;color:#fff;padding:12px 20px;min-height:48px;box-shadow:none;font-weight:600}.wholesale-body :is(a,button,input,select,textarea):focus-visible{outline:3px solid #a8bce1;outline-offset:3px}.wholesale-body button{cursor:pointer}
.wholesale-body .wholesale-home-actions{display:grid;grid-template-columns:1fr 1fr;gap:24px}.wholesale-body .wholesale-home-actions>a{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:176px;padding:28px;background:#eef2fa;border:1px solid #e0e7f3;border-radius:20px;color:var(--portal-blue);box-shadow:none;text-decoration:none}.wholesale-home-actions>a>b{font-size:1.25rem;font-weight:600}.wholesale-home-actions>a>small{color:#526b96}.wholesale-home-actions>a>span{font-size:1.5rem}.wholesale-home-actions>a:hover{background:#e5ecf8}.wholesale-body .wholesale-back{display:inline-flex;align-items:center;min-height:44px;color:var(--portal-blue);margin-bottom:16px}.wholesale-body .wholesale-products article{border:1px solid var(--portal-line);border-radius:14px;background:#fff;padding:20px}.wholesale-body .wholesale-products article input{max-width:112px}.wholesale-body .wholesale-alert{background:#fff4ee;color:#933f2d;border:1px solid #f0d6ca;border-radius:10px;padding:16px}.wholesale-body .wholesale-logout button{background:none;color:#607089;border:0;min-height:44px;padding:12px 24px}.wholesale-body :is(.wholesale-card,.wholesale-section,.wholesale-products,.wholesale-history-list){min-width:0;overflow-wrap:anywhere}.wholesale-body .wholesale-note{display:block;margin-top:16px}
@media(max-width:640px){.wholesale-shell{padding:0 20px 40px}.wholesale-brand{padding:16px 0;margin-bottom:24px;gap:12px}.wholesale-brand img{width:104px;height:56px}.wholesale-brand .wholesale-site-link{font-size:.75rem;gap:6px}.wholesale-body .wholesale-card{margin:32px auto}.wholesale-body :is(.wholesale-card,.wholesale-section,.wholesale-page-head,.wholesale-welcome){padding:20px}.wholesale-body .wholesale-home-actions{grid-template-columns:1fr;gap:16px}.wholesale-body .wholesale-home-actions>a{min-height:144px;padding:24px}}

@media screen{.wholesale-body .wholesale-print-invoice{max-width:100%;overflow-x:auto}.wholesale-print-invoice table{font-size:.875rem}.wholesale-print-invoice header img{width:104px;height:54px;object-fit:contain;background:#33518f;border-radius:7px;padding:4px 10px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.wholesale-brand .wholesale-site-link>span{display:inline;width:auto;height:auto;background:none;border-radius:0;color:inherit;font-size:1rem}}
@media print{.wholesale-body .wholesale-brand,.wholesale-body .wholesale-invoice-actions{display:none!important}.wholesale-body .wholesale-shell{width:auto;max-width:none;padding:0}.wholesale-body .wholesale-print-invoice{overflow:visible;box-shadow:none;border:0}.wholesale-print-invoice header img{width:104px;height:54px;object-fit:contain;background:#33518f;border-radius:7px;padding:4px 10px;print-color-adjust:exact;-webkit-print-color-adjust:exact}}

/* The shared date calendar keeps its seven-column Iranian layout. */
.wholesale-body .jalali-picker button{min-height:36px;padding:4px;width:auto}
.wholesale-body .wholesale-products article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}
@media(max-width:380px){.wholesale-body .wholesale-products article{grid-template-columns:1fr;gap:12px}.wholesale-products article>label{justify-self:start}}

.wholesale-login .wholesale-catalog-link {
  display: block;
  width: fit-content;
  padding: 8px 12px;
  min-height: 44px;
  border: 1px solid #cbd7eb;
  border-radius: 8px;
  font-weight: 650;
}
.wholesale-login .wholesale-catalog-link:focus-visible,
.wholesale-login .wholesale-catalog-link:hover { background: #edf3fd; }
