:root {
  --navy: #223f73;
  --navy-deep: #172e55;
  --gold: #c59e49;
  --gold-light: #f3ead6;
  --ink: #202b3e;
  --muted: #69717d;
  --line: #e3e6eb;
  --canvas: #faf9f6;
  --surface: #fff;
  --bs-body-font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: #fff;
  --bs-primary: #223f73;
  --bs-primary-rgb: 34, 63, 115;
  --bs-link-color: #223f73;
  --bs-link-hover-color: #172e55;
  --bs-border-color: #e3e6eb;
  --bs-border-radius: .55rem;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; min-width: 280px; font-size: 15px; line-height: 1.85; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { text-decoration: none; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a, button, input, select, textarea { transition: color .18s, background-color .18s, border-color .18s, box-shadow .18s; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
main:focus { outline: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.6; }
h1 { font-size: clamp(1.45rem, 2vw, 1.9rem); }
h2 { font-size: clamp(1.2rem, 1.65vw, 1.55rem); }
h3 { font-size: 1.12rem; }
p { margin-bottom: 1rem; }
img, svg { max-width: 100%; }
.container-xl { max-width: 1360px; --bs-gutter-x: 3rem; }
.app-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; line-height: 1; vertical-align: -.12em; }
.btn { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; padding: .65rem 1.15rem; font-weight: 600; border-radius: 7px; line-height: 1.6; }
.btn-primary { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-color: #fff; --bs-btn-hover-bg: var(--navy-deep); --bs-btn-hover-border-color: var(--navy-deep); --bs-btn-active-bg: #142745; --bs-btn-active-border-color: #142745; --bs-btn-disabled-bg: #7b899e; --bs-btn-disabled-border-color: #7b899e; --bs-btn-focus-shadow-rgb: 197,158,73; }
.btn-outline-primary { --bs-btn-color: var(--navy); --bs-btn-border-color: #bcc7d9; --bs-btn-hover-bg: var(--navy); --bs-btn-hover-border-color: var(--navy); --bs-btn-hover-color: #fff; --bs-btn-active-bg: var(--navy); --bs-btn-active-border-color: var(--navy); }
.btn-gold { color: var(--navy-deep); background: var(--gold); border-color: var(--gold); }
.btn-gold:hover { color: var(--navy-deep); background: #d5b163; border-color: #d5b163; }
.btn-light { border-color: var(--line); background: #fff; }
.form-control, .form-select { min-height: 45px; border-color: #d8dde5; border-radius: 7px; }
.form-control::placeholder { color: #838997; }
.form-control:focus, .form-select:focus { border-color: var(--navy); box-shadow: 0 0 0 .2rem rgba(34,63,115,.1); }
.form-label { font-weight: 600; margin-bottom: .45rem; }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-check-input:focus { border-color: var(--navy); box-shadow: 0 0 0 .2rem rgba(34,63,115,.1); }
input[type='number'], input[type='tel'] { direction: ltr; text-align: right; }
.text-navy { color: var(--navy) !important; }
.text-gold { color: #967224 !important; }
.text-muted { color: var(--muted) !important; }
.bg-soft { background: var(--canvas); }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 7px; background: transparent; color: inherit; }
.icon-button:hover { background: rgba(34,63,115,.075); }
.skip-link { position: fixed; inset-block-start: -100px; inset-inline-start: 16px; z-index: 20000; padding: .6rem 1rem; border-radius: 5px; background: #fff; color: var(--navy); }
.skip-link:focus { inset-block-start: 12px; }
.site-header { color: #fff; background: var(--navy); padding-bottom: 15px; }
.topbar { min-height: 77px; display: flex; justify-content: space-between; align-items: center; gap: 2rem; direction: ltr; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; width: 218px; }
.brand img { display: block; width: 100%; height: auto; }
.topbar-right { display: flex; align-items: center; gap: 24px; }
.desktop-nav { display: flex; align-items: center; gap: 25px; }
.desktop-nav a, .header-account { color: #fff; font-weight: 500; white-space: nowrap; }
.desktop-nav a { padding: 9px 0; position: relative; }
.desktop-nav a::after { content: ''; position: absolute; inset-inline: 0; bottom: 2px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.desktop-nav a:hover::after, .desktop-nav a.router-link-exact-active::after { transform: scaleX(1); }
.header-account { display: inline-flex; align-items: center; gap: 7px; }
.header-account:hover { color: #eee0be; }
.header-cart { min-height: 42px; padding: 7px 15px; color: var(--navy-deep); background: var(--gold); border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.header-cart:hover { color: var(--navy-deep); background: #d7b567; }
.cart-count { display: inline-flex; min-width: 23px; height: 23px; align-items: center; justify-content: center; padding-inline: 5px; border-radius: 20px; background: var(--navy); color: #fff; font-size: .75rem; }
.header-search { position: relative; }
.header-search input { display: block; width: 100%; height: 46px; padding: 7px 53px 7px 16px; border: 1px solid #dce2ed; border-radius: 7px; background: #fff; color: var(--ink); font-size: .93rem; direction: rtl; }
.header-search input::placeholder { color: #7a818e; }
.header-search input:focus { outline: 3px solid rgba(197,158,73,.75); outline-offset: 2px; }
.search-submit { position: absolute; right: 4px; top: 2px; width: 43px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--navy); background: transparent; border: 0; border-radius: 5px; }
.search-submit:hover { background: #f1f4f8; }
.mobile-menu-button, .mobile-navigation { display: none; }
.checkout-header { padding-bottom: 0; }
.checkout-header .topbar { min-height: 85px; }
.checkout-back { color: #fff; display: flex; align-items: center; gap: 9px; font-size: .95rem; }
.checkout-back .app-icon { color: var(--gold); }
.storage-alert { display: flex; gap: 10px; align-items: center; padding-block: 12px; margin-top: 14px; border-radius: 8px; color: #74591c; background: #fff5db; font-size: .9rem; }
.home-page { padding-top: 25px; padding-bottom: 30px; }
.home-intro { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 1rem; }
.home-intro h1 { margin: 0 0 1px; }
.home-intro p { margin: 0; color: var(--muted); font-size: .99rem; }
.category-showcase { --category-gap: 18px; display: flex; flex-wrap: wrap; gap: var(--category-gap); }
.category-showcase > .category-card { flex: 1 1 calc((100% - (var(--category-columns, 3) - 1) * var(--category-gap)) / var(--category-columns, 3) - 1px); min-width: calc((100% - (var(--category-columns, 3) - 1) * var(--category-gap)) / var(--category-columns, 3) - 1px); max-width: 100%; }
.category-fallback { display: block; width: 100%; aspect-ratio: 1.7 / 1; background: #ece7e0; }
.category-card { overflow: hidden; border-radius: 9px; display: block; color: #fff; background: #eee9e2; box-shadow: 0 1px 2px rgba(20,40,75,.05); }
.category-card:hover { color: #fff; }
.category-card .asset-image { transition: filter .25s; }
.category-card:hover .asset-image { filter: brightness(1.025); }
.category-caption { height: 47px; display: flex; align-items: center; justify-content: center; padding: 6px 46px; position: relative; background: var(--navy); }
.category-caption strong { font-size: 1.05rem; font-weight: 600; white-space: nowrap; }
.category-caption .app-icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--gold); transition: left .2s; }
.category-card:hover .category-caption { background: var(--navy-deep); }
.category-card:hover .category-caption .app-icon { left: 13px; }
.asset-image { display: block; width: 100%; position: relative; overflow: hidden; background: #f2efeb; flex: 0 0 auto; }
.asset-image > svg, .asset-image > img { display: block; width: 100%; height: 100%; }
.asset-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: #9ba6b7; font-size: 1.4rem; }
.home-products { margin-top: 33px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 17px; }
.section-heading h2 { margin: 0; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); font-size: .88rem; font-weight: 600; }
.text-link:hover { color: #132b53; }
.home-product-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 17px; }
.product-card { background: #fff; border: 1px solid #ececef; border-radius: 9px; position: relative; overflow: hidden; min-width: 0; transition: box-shadow .2s, border-color .2s; }
.product-card:hover { border-color: #cbd3de; box-shadow: 0 5px 15px rgba(27,47,80,.06); }
.product-photo-link { display: block; position: relative; background: #f2efeb; }
.product-photo-link .asset-image { background: #f2efeb; }
.product-card-body { padding: 13px 14px 15px; text-align: center; }
.product-name { display: block; color: var(--ink); font-size: .94rem; font-weight: 600; line-height: 1.7; min-height: 3.2em; }
.product-name:hover { color: var(--navy); }
.product-price { color: var(--ink); font-size: .94rem; margin-top: 4px; font-weight: 500; white-space: nowrap; }
.product-card .product-price { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 2.9em; margin-top: 6px; color: var(--navy); font-weight: 700; line-height: 1.45; white-space: normal; }
.product-card .co-sale-list { font-size: .78rem; font-weight: 500; }
.product-detail-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 6px; color: var(--navy); font-size: .8rem; font-weight: 600; }
.product-detail-link:hover { color: var(--navy-deep); }
.favorite-button { position: absolute; top: 9px; left: 9px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.96); color: var(--navy); border: 1px solid #e4e5e8; border-radius: 50%; box-shadow: 0 1px 4px #00000005; }
.favorite-button.selected { color: #a4485e; border-color: #efd5dc; }
.stock-label { position: absolute; right: 10px; bottom: 10px; background: #fff; border-radius: 4px; color: #6d727a; padding: 2px 8px; font-size: .78rem; }
.site-footer { padding-top: 12px; }
.service-links { background: #f6f5f3; border: 1px solid #f0eeeb; border-radius: 9px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 17px 0; }
.service-links a { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--navy); font-weight: 600; }
.service-links a + a { border-inline-start: 1px solid #dcdde0; }
.service-links .app-icon { color: var(--navy); }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 28px 0 24px; }
.footer-brand strong { font-size: 1.4rem; color: var(--navy); }
.footer-brand p { color: var(--muted); font-size: .78rem; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-links a { color: #5d6675; font-size: .85rem; }
.footer-links a:hover { color: var(--navy); }
.admin-entry { display: inline-flex; align-items: center; gap: 7px; color: #69788f; font-size: .78rem; white-space: nowrap; }
.footer-bottom { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; padding: 12px 0 16px; font-size: .73rem; color: #7c828c; }
.page-heading { margin-bottom: 25px; }
.page-heading h1 { margin-bottom: 4px; }
.page-heading p { color: var(--muted); }
.eyebrow { font-size: .72rem; color: #8b7753; letter-spacing: .08em; font-weight: 600; }
.empty-page, .empty-state { text-align: center; padding: 60px 20px; }
.empty-page { min-height: 55vh; }
.empty-page p, .empty-state p { color: var(--muted); }
.empty-illustration { width: 96px; height: 96px; background: var(--canvas); border-radius: 50%; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.aco-dialog { border: 1px solid var(--line); padding: 0; width: min(880px, calc(100% - 24px)); max-height: 90dvh; margin: auto; color: var(--ink); background: #fff; border-radius: 13px; box-shadow: 0 22px 80px rgba(10,25,50,.25); }
.aco-dialog::backdrop { background: rgba(17,31,54,.48); backdrop-filter: blur(2px); }
.dialog-inner { display: flex; flex-direction: column; max-height: 89dvh; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 22px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.dialog-header h2 { font-size: 1.1rem; margin: 0; }
.dialog-body { padding: 22px; overflow-y: auto; overscroll-behavior: contain; }
.dialog-footer { border-top: 1px solid var(--line); padding: 15px 22px; display: flex; gap: 10px; justify-content: flex-end; }
body:has(dialog[open]) { overflow: hidden; }
.toast-stack { position: fixed; left: 20px; bottom: 22px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; max-width: min(430px, calc(100vw - 32px)); pointer-events: none; }
.aco-toast { direction: rtl; pointer-events: auto; background: #fff; border: 1px solid #dce4dd; border-right: 4px solid #44876c; box-shadow: 0 8px 28px #1d36551c; border-radius: 8px; padding: 12px 13px; display: flex; align-items: center; gap: 11px; font-size: .88rem; }
.aco-toast > .app-icon { color: #44876c; }
.aco-toast-error { border-right-color: #b44f58; }
.aco-toast-error > .app-icon { color: #b44f58; }
.aco-toast-info { border-right-color: var(--navy); }
.aco-toast-info > .app-icon { color: var(--navy); }
.aco-toast .icon-button { width: 30px; height: 30px; margin-inline-start: auto; }
.toast-enter-active, .toast-leave-active { transition: opacity .2s, transform .2s; }
.toast-enter-from, .toast-leave-to { transform: translateY(10px); opacity: 0; }
@media (max-width: 1199.98px) {
  .topbar-right { gap: 18px; }
  .desktop-nav { gap: 17px; }
  .brand { width: 190px; }
  .home-product-grid { gap: 12px; }
  .footer-main { flex-wrap: wrap; }
  .product-card-body { padding-inline: 9px; }
  .product-name, .product-price { font-size: .87rem; }
}
@media (max-width: 991.98px) {
  .desktop-nav { display: none; }
  .mobile-menu-button { display: inline-flex; color: #fff; }
  .mobile-menu-button:hover { background: #ffffff12; }
  .mobile-navigation { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 16px 0 2px; gap: 8px; }
  .mobile-navigation a { color: #fff; background: #ffffff0a; border: 1px solid #ffffff19; border-radius: 5px; text-align: center; padding: 9px; font-size: .85rem; }
  .home-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .home-product-grid .product-card:nth-child(n+4) { min-width: 0; }
  .category-showcase { --category-gap: 14px; }
  .service-links a { gap: 11px; }
}
@media (max-width: 767.98px) {
  body { font-size: 14px; }
  .container-xl { --bs-gutter-x: 2rem; }
  .topbar { min-height: 67px; gap: 14px; }
  .brand { width: 160px; }
  .topbar-right { gap: 10px; }
  .header-account span { display: none; }
  .header-cart { padding: 7px 10px; }
  .header-cart .cart-label { display: none; }
  .home-page { padding-top: 21px; }
  .home-intro { margin-bottom: 16px; }
  .home-intro h1 { font-size: 1.38rem; }
  .home-intro p { font-size: .87rem; }
  .category-showcase > .category-card { flex-basis: calc(50% - 14px); min-width: calc(50% - 14px); }
  .category-showcase .asset-image, .category-fallback { aspect-ratio: 1.35 / 1 !important; }
  .category-caption { height: 45px; padding-inline: 28px; }
  .category-caption strong { font-size: .94rem; }
  .home-products { margin-top: 27px; }
  .section-heading { gap: 12px; margin-bottom: 14px; }
  .section-heading h2 { font-size: 1.23rem; }
  .text-link { font-size: .77rem; gap: 4px; }
  .home-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .home-product-grid .product-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .product-name { min-height: auto; }
  .product-card-body { padding: 12px 9px; }
  .product-detail-link { font-size: .78rem; }
  .favorite-button { width: 40px; height: 40px; }
  .service-links { padding: 12px 0; }
  .service-links a { flex-direction: column; gap: 7px; font-size: .79rem; }
  .service-links .app-icon { font-size: 23px !important; }
  .footer-main { gap: 20px; padding-top: 25px; }
  .footer-brand { flex: 1 0 auto; }
  .footer-links { order: 3; width: 100%; gap: 12px 19px; }
  .footer-bottom { flex-direction: column; gap: 3px; padding-top: 13px; }
  .checkout-header .topbar { min-height: 75px; }
  .checkout-back { font-size: .81rem; gap: 5px; }
  .dialog-header { padding: 12px 16px; }
  .dialog-body { padding: 16px; }
  .dialog-footer { padding: 12px 16px; flex-wrap: wrap; }
  .toast-stack { bottom: 88px; left: 12px; max-width: calc(100vw - 24px); }
}
@media (max-width: 399.98px) {
  .container-xl { --bs-gutter-x: 1.5rem; }
  .brand { width: 132px; }
  .topbar-right { gap: 6px; }
  .header-account { display: none; }
  .header-search input { font-size: .79rem; }
  .category-showcase { --category-gap: 10px; }
  .category-showcase > .category-card { flex-basis: calc(50% - 10px); min-width: calc(50% - 10px); }
  .category-caption strong { font-size: .87rem; }
  .category-caption .app-icon { left: 10px; font-size: 14px !important; }
  .home-intro h1 { font-size: 1.25rem; }
  .product-name, .product-price { font-size: .82rem; }
  .section-heading .text-link { max-width: 118px; text-align: left; }
  .service-links a { font-size: .72rem; }
  .checkout-back { max-width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .toast-stack, .skip-link, .favorite-button, .btn, button { display: none !important; }
  body { color: #000; background: #fff; }
  a { color: #000 !important; }
  main { max-width: 100% !important; }
}
