* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PeydaWeb", Tahoma, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.9;
  overflow-x: hidden;
  direction: rtl;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

@font-face {
  font-family: "IRANSansX";
  src: url("/fonts/IRANSansXFaNum-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
	font-family: 'PeydaWeb';
	src: url('/fonts/woff2/PeydaWeb-ExtraLight.woff2') format('woff2'),
		 url('/fonts/woff/PeydaWeb-ExtraLight.woff') format('woff');
	font-weight: 200;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'PeydaWeb';
	src: url('/fonts/woff2/PeydaWeb-Regular.woff2') format('woff2'),
		 url('/fonts/woff/PeydaWeb-Regular.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'PeydaWeb';
	src: url('/fonts/woff2/PeydaWeb-SemiBold.woff2') format('woff2'),
		 url('/fonts/woff/PeydaWeb-SemiBold.woff') format('woff');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}


@font-face {
	font-family: 'PeydaWeb';
	src: url('/fonts/woff2/PeydaWeb-Black.woff2') format('woff2'),
		 url('/fonts/woff/PeydaWeb-Black.woff') format('woff');
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'PeydaWeb';
	src: url('/fonts/woff2/PeydaWeb-Bold.woff2') format('woff2'),
		 url('/fonts/woff/PeydaWeb-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

html {
    scroll-behavior: smooth;
}

#online-visit-categories,
#online-visit-doctors {
    scroll-margin-top: 110px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

#home-featured-products {
    scroll-margin-top: 110px;
}
#contact,
#vetban-ecosystem {
    scroll-margin-top: 110px;
}



#components-reconnect-modal {
    display: none;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

#components-reconnect-modal.components-reconnect-hide {
    display: none;
}


.vetban-connection-page {
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(
        135deg, #153b29, #286947, #3a7d44
    );
}

.connection-card {
    width: 100%;
    max-width: 430px;
    padding: 40px 26px;
    text-align: center;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 65px rgba(0,0,0,.18);
}

.connection-icon {
    font-size: 60px;
    color: #3a7d44;
}

.connection-card h2 {
    font-size: 24px;
    color: #344054;
    margin: 15px 0;
}

.connection-card p {
    font-size: 15px;
    line-height: 2;
    color: #667085;
}

.connection-spinner {
    width: 38px;
    height: 38px;
    margin: 25px auto;
    border: 4px solid #e4eee7;
    border-top-color: #3a7d44;
    border-radius: 50%;
    animation: vetban-spin .8s linear infinite;
}

.connection-card button {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    background: #3a7d44;
    color: white;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

@keyframes vetban-spin {
    to { transform: rotate(360deg); }
}


.vetban-initial-loader {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        #163d2b 0%,
        #267148 50%,
        #3a7d44 100%
    );
    color: white;
}

.vetban-first-load .vetban-initial-loader {
    display: flex;
}

.vetban-loader-content {
    text-align: center;
}

.vetban-loader-spinner {
    width: 64px;
    height: 64px;
    margin: 0 auto 25px;
    border: 5px solid rgba(255,255,255,.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vetban-spin .8s linear infinite;
}

.vetban-loader-content h2 {
    color: white;
    font-size: 36px;
    font-weight: 900;
    margin: 0 0 10px;
}

.vetban-loader-content p {
    color: rgba(255,255,255,.85);
    font-size: 15px;
}


.vetban-not-found {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    background: linear-gradient(
        135deg,
        #f0f7f2,
        #ffffff
    );
    text-align: center;
}

.not-found-content {
    max-width: 550px;
}

.not-found-code {
    font-size: clamp(100px, 20vw, 180px);
    font-weight: 900;
    line-height: 1.2;
    color: #3a7d44;
}

.not-found-content h1 {
    margin: 15px 0;
    font-size: 28px;
    color: #344054;
}

.not-found-content p {
    margin: 20px 0 30px;
    color: #667085;
    font-size: 16px;
    line-height: 2;
}

.not-found-home {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 12px;
    background: #3a7d44;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.not-found-home:hover {
    background: #286947;
    color: #fff;
}
