/* 0.9.1 owner review: loaded only by the isolated local homepage.
   Retain the shop's light identity, IRANYekan and #033593 brand blue. */
.home-polished {
    --home-ink: #222b35;
    --home-muted: #5c6671;
    --home-line: #e5e8ed;
    --home-blue: #033593;
    --home-radius: 12px;
    font-size: 16px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}
.home-polished .main-container { max-width: 1440px; padding-inline: 40px; }
.home-polished header.main-header .main-container { max-width: 1440px; padding-inline: 40px; }
.home-polished .main-content { margin-block: 24px 0 !important; }
.home-polished :is(h2,h3,h5,p) { overflow-wrap: anywhere; }
.home-polished :is(button,a,input):focus-visible { outline: 3px solid #648bdf; outline-offset: 4px; }

/* A single, compact rhythm across logo, search and account controls. */
.home-polished header.main-header .topbar { padding-block: 16px; }
.home-polished .topbar > .row { gap: 32px; }
.home-polished header.main-header .logo-area { margin: 0; }
.home-polished header.main-header .mahsun-brand .logo-area,
.home-polished header.main-header .mahsun-brand img { width: 64px; height: 64px; object-fit: contain; }
.home-polished header.main-header .topbar > .row > .mahsun-brand { flex-basis: 112px; }
.home-polished .smart-search { border-radius: 10px; background: #f4f5f6; }
.home-polished .smart-search input { height: 50px; font-size: 15px; }
.home-polished .smart-search:focus-within { outline: 2px solid #648bdf; outline-offset: 2px; }
.home-polished .smart-search input:focus-visible { outline: none; }
.home-polished .smart-search input::placeholder { color: #616c78; }
.home-polished .smart-search-panel { border-radius: 12px; }
.home-polished .smart-search-item { font-size: 14px; line-height: 1.8; }
.home-polished .modern-language summary { min-height: 44px; font-size: 13px; }
.home-polished header.main-header .nav-link { font-size: 14px; }
.home-polished header.main-header .main-menu > .list > li > a,
.home-polished .modern-mega > summary { min-height: 52px; font-size: 15px; color: var(--home-ink); }
.home-polished .modern-mega-grid h3,
.home-polished .modern-mega-grid > div > a { font-size: 15px; }
.home-polished .modern-mega-grid a { font-size: 14px; }
.home-polished .bottom-header { border-top-color: #f0f1f3; }
@media (min-width:993px) {
    .home-polished .topbar .topbar-left { flex: 0 0 270px; width: 270px; max-width: 270px; }
    .home-polished .topbar-left > .nav { flex-wrap: nowrap; align-items: center; gap: 8px; }
    .home-polished .topbar-left .account > .nav-link { white-space: nowrap; }
}

/* Keep all three campaigns and their existing management controls. */
.home-polished .home-banner-grid { gap: 16px; align-items: stretch; }
.home-polished .home-banner-side { gap: 16px; }
.home-polished .home-hero,
.home-polished .home-banner-side a,
.home-polished .home-banner-side img { border-radius: var(--home-radius); }
.home-polished .home-hero img { max-height: none; }
.home-polished .banner-controls {
    top: 12px; bottom: auto; left: auto; right: auto;
    inset-inline-start: 12px; gap: 0; padding: 0 4px;
    border: 1px solid #ffffffb3; box-shadow: none;
    background: #fffffff2; border-radius: 30px;
}
.home-polished .banner-controls button { width: 44px; height: 44px; }
.home-polished .banner-controls span { font-size: 12px; min-width: 34px; font-variant-numeric: tabular-nums; }
.home-polished [data-banner-count], .home-polished [data-carousel-position] { direction: ltr; unicode-bidi: isolate; }

.home-polished .home-category-section { margin-block: 48px 56px; }
.home-polished .home-products-section { margin-block: 0 72px; }
.home-polished .home-magazine-section { margin-block: 0 64px; padding-top: 40px; border-top: 1px solid var(--home-line); }
.home-polished .home-section-heading { margin-bottom: 28px; gap: 20px; }
.home-polished .home-section-heading h2 { font-size: 28px; line-height: 1.6; font-weight: 700; color: var(--home-ink); }
.home-polished .home-section-heading > a { font-size: 14px; font-weight: 500; white-space: nowrap; text-underline-offset: 6px; }
.home-polished .home-category-links { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 24px; }
.home-polished .home-category-links a { gap: 14px; font-size: 14px; line-height: 1.9; color: var(--home-ink); }
.home-polished .category-orb { width: 96px; height: 96px; background: var(--home-blue); box-shadow: none; transition: transform 180ms cubic-bezier(.16,1,.3,1); }
.home-polished .category-orb img { width: 64px; height: 64px; }
.home-polished .category-orb-photo img { width: 100%; height: 100%; }

/* Heading and collection navigation form one toolbar on wide screens. */
.home-polished .home-products-section { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 24px 48px; align-items: center; }
.home-polished .home-products-section > .home-section-heading { margin: 0; }
.home-polished .home-product-tabs { justify-self: end; max-width: 100%; margin: 0; gap: 8px; border: 0; padding: 4px; background: #f3f5f7; border-radius: 10px; }
.home-polished .home-product-tabs button { min-height: 44px; padding: 8px 20px; border: 0; border-radius: 7px; font-size: 14px; color: var(--home-muted); white-space: nowrap; }
.home-polished .home-product-tabs button[aria-selected=true] { background: #fff; color: var(--home-blue); box-shadow: 0 1px 4px #1e355014; }
.home-polished .home-product-panel { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 20px; }
.home-polished .home-product-grid[data-product-carousel] { grid-column: 1 / -1; gap: 24px; padding-block: 4px 12px; scroll-padding-inline: 0; scrollbar-color: #c9d1dc transparent; }
.home-polished .home-product-grid[data-product-carousel] > .item { flex-basis: calc((100% - 72px)/4); }
.home-polished .product-card { display: flex; flex-direction: column; border: 0; border-radius: 0; overflow: visible; }
.home-polished .product-card .image-card { aspect-ratio: 1.14; margin: 0; padding: 10px; background: #fff; border: 1px solid #eef0f3; border-radius: 12px; overflow: hidden; }
.home-polished .product-card .image-card img { mix-blend-mode: normal; object-fit: contain; }
.home-polished .product-card .product-card-body { padding: 16px 0 0; flex: 1; display: flex; flex-direction: column; text-align: start; }
.home-polished .product-card .product-title { margin: 0 0 12px; min-height: 56px; height: auto; }
.home-polished .product-card .product-title a { font-size: 16px; line-height: 28px; font-weight: 500; color: var(--home-ink) !important; }
.home-polished .product-card .price-index-h { margin: auto 0 16px; min-height: 54px; }
.home-polished .product-card .product-prices-div { text-align: start; }
.home-polished .product-card .product-price { display: flex; align-items: baseline; gap: 6px; font-size: 19px; font-weight: 700; line-height: 30px; color: var(--home-ink); }
.home-polished .product-price small { font-size: 12px; font-weight: 400; color: var(--home-muted); }
.home-polished .product-card .product-price-del { font-size: 13px; line-height: 24px; color: var(--home-muted); }
.home-polished .product-card .cart { background: transparent; border-radius: 8px; margin-top: auto; }
.home-polished .product-card .cart a,
.home-polished .product-card a.ms-select-options { width: 100%; min-height: 46px; border-radius: 8px; font-size: 14px; line-height: 1.6; font-weight: 500; background: var(--home-blue) !important; color: #fff !important; border-color: var(--home-blue) !important; }
.home-polished .product-card a.ms-select-options { margin-top: auto; }
.home-polished .product-card .cart a i { font-size: 19px; }
.home-polished .ms-product-badges { top: 12px; }
.home-polished .ms-product-badge { font-size: 12px; padding: 5px 12px; }
.home-polished .product-carousel-controls { grid-column: 2; grid-row: 2; margin: 0; gap: 12px; }
.home-polished .product-carousel-controls button { border-color: #d8dfe7; color: var(--home-ink); width: 44px; height: 44px; }
.home-polished .product-carousel-controls span { color: var(--home-muted); font-size: 13px; }
.home-polished .home-view-all { grid-column: 1; grid-row: 2; justify-self: start; margin: 0; padding: 0 2px; border: 0; min-height: 44px; gap: 10px; font-size: 14px; font-weight: 500; border-radius: 2px; }

/* Three changing stories, with one lead story and two compact editorial rows. */
.home-polished .home-article-grid { grid-template-columns: 1.1fr 1fr; grid-template-rows: repeat(2,1fr); gap: 24px 40px; }
.home-polished .home-article { display: grid; grid-template-columns: minmax(0,40%) minmax(0,1fr); gap: 22px; align-items: center; min-width: 0; }
.home-polished .home-article img { width: 100%; height: auto; aspect-ratio: 1.18; border-radius: 10px; object-fit: cover; }
.home-polished .home-article h3 { margin: 0; font-size: 18px; line-height: 1.85; font-weight: 700; color: var(--home-ink); }
.home-polished .home-article-copy { min-width: 0; }
.home-polished .home-article-action { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--home-blue); }
.home-polished .home-article:first-child { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
.home-polished .home-article:first-child img { aspect-ratio: 2; }
.home-polished .home-article:first-child h3 { font-size: 22px; line-height: 1.8; }
.home-polished .home-article:nth-child(3) { border-top: 1px solid var(--home-line); padding-top: 24px; }
.home-polished .main-footer { margin-top: 0; padding-top: 0; border: 0; }
.home-polished .main-footer .back-to-top { display: flex; align-items: center; justify-content: center; height: 56px; margin: 0; padding: 6px 0; }
.home-polished .main-footer .back-to-top a { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.home-polished .footer-widgets { padding-block: 24px 32px; }
.home-polished .footer-widgets .widget-menu.card { padding: 0; margin: 0; }
.home-polished .footer-widgets > .row > div:first-child .footer-menu { columns: 2; column-gap: 24px; }
.home-polished .footer-menu li { break-inside: avoid; }
@media (min-width:993px) {
    .home-polished .footer-widgets > .row > div:first-child { flex-basis: 40%; max-width: 40%; }
    .home-polished .footer-widgets > .row > div:not(:first-child) { flex-basis: 20%; max-width: 20%; }
}
.home-polished .main-footer .card-title { font-size: 17px; line-height: 1.8; font-weight: 700; margin-bottom: 12px; }
.home-polished .main-footer .footer-menu a { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; line-height: 1.8; }
.home-polished .main-footer .footer-social a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.home-polished .main-footer .copyright p { font-size: 12px; line-height: 1.9; }
html[lang=en] .home-polished,
html[lang=en] .home-polished header.main-header,
html[lang=en] .home-polished .product-card .product-title a { font-family: Arial, sans-serif; }
html[lang=en] .home-polished .banner-controls,
html[lang=en] .home-polished .product-carousel-controls { direction: ltr; }
html[lang=en] .home-polished :is(.banner-controls,.product-carousel-controls) .mdi { display: inline-block; transform: rotate(180deg); }

@media (hover:hover) and (pointer:fine) {
    .home-polished .home-category-links a:hover .category-orb { transform: translateY(-3px); }
    .home-polished .home-section-heading > a:hover,
    .home-polished .home-view-all:hover,
    .home-polished .home-article:hover h3 { text-decoration: underline; text-underline-offset: 6px; }
    .home-polished .product-card .cart a:hover,
    .home-polished .product-card a.ms-select-options:hover { box-shadow: inset 0 0 0 50px #ffffff14; }
}
.home-polished :is(.home-product-tabs button,.product-carousel-controls button,.product-card .cart a,.home-view-all) { transition: transform 150ms cubic-bezier(.16,1,.3,1); }
.home-polished :is(.home-product-tabs button,.product-carousel-controls button:not(:disabled),.product-card .cart a,.home-view-all):active { transform: scale(.98); }

@media (max-width:1100px) {
    .home-polished .main-container,
    .home-polished header.main-header .main-container { padding-inline: 24px; }
    .home-polished .home-products-section { grid-template-columns: 1fr; gap: 20px; }
    .home-polished .home-product-tabs { justify-self: start; }
    .home-polished .home-product-grid[data-product-carousel] > .item { flex-basis: calc((100% - 48px)/3); }
    .home-polished .home-article-grid { gap: 24px; }
    .home-polished .home-article { gap: 16px; }
    .home-polished .home-article h3 { font-size: 16px; }
}
@media (max-width:992px) {
    .home-polished header.main-header .topbar { padding-block: 12px; }
    .home-polished header.main-header .topbar > .row > .mahsun-brand { flex: 1; max-width: calc(100% - 88px); }
    .home-polished .topbar > .row { gap: 12px; }
    .home-polished header.main-header .mahsun-brand .logo-area,
    .home-polished header.main-header .mahsun-brand img { width: 48px; height: 48px; }
    .home-polished .smart-search input { height: 48px; font-size: 16px; }
    .home-polished .home-category-links { gap: 20px 16px; }
    .home-polished .category-orb { width: 84px; height: 84px; }
    .home-polished .category-orb img { width: 58px; height: 58px; }
    .home-polished .category-orb-photo img { width: 100%; height: 100%; }
    .home-polished .home-article-grid { grid-template-columns: 1fr 1fr; }
    .home-polished .home-article:first-child { grid-column: 1 / -1; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
    .home-polished .home-article:first-child img { aspect-ratio: 1.6; }
    .home-polished .home-article:not(:first-child) { grid-template-columns: 1fr; align-items: start; }
    .home-polished .home-article:nth-child(3) { border: 0; padding-top: 0; }
    .home-polished .home-article:not(:first-child) img { aspect-ratio: 1.8; }
}
@media (max-width:600px) {
    .home-polished .main-container,
    .home-polished header.main-header .main-container { padding-inline: 16px; }
    .home-polished .main-content { margin-top: 16px !important; }
    .home-polished .home-banner-grid,
    .home-polished .home-banner-side { gap: 10px; }
    .home-polished .home-hero,
    .home-polished .home-banner-side a,
    .home-polished .home-banner-side img { border-radius: 10px; }
    .home-polished .home-banner-main .home-hero { height: auto; }
    .home-polished .banner-controls { position: static; width: max-content; margin: 4px auto 0; padding: 0; background: transparent; border: 0; }
    .home-polished .home-category-section { margin-block: 32px 40px; }
    .home-polished .home-products-section { margin-bottom: 44px; gap: 16px; }
    .home-polished .home-magazine-section { padding-top: 28px; margin-bottom: 40px; }
    .home-polished .home-section-heading { margin-bottom: 20px; gap: 12px; }
    .home-polished .home-section-heading h2 { font-size: 22px; line-height: 1.7; }
    .home-polished .home-section-heading > a { font-size: 12px; }
    .home-polished .home-category-links { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px 12px; }
    .home-polished .home-category-links a { gap: 10px; font-size: 13px; line-height: 1.9; }
    .home-polished .category-orb { width: 76px; height: 76px; }
    .home-polished .category-orb img { width: 52px; height: 52px; }
    .home-polished .category-orb-photo img { width: 100%; height: 100%; }
    .home-polished .home-product-tabs { width: 100%; gap: 0; }
    .home-polished .home-product-tabs button { flex: 1 0 auto; padding: 8px 12px; font-size: 13px; }
    .home-polished .home-product-grid[data-product-carousel] { gap: 14px; }
    .home-polished .home-product-grid[data-product-carousel] > .item { flex-basis: calc((100% - 14px)/1.45); }
    .home-polished .product-card .image-card { aspect-ratio: 1.08; padding: 8px; }
    .home-polished .product-card .product-card-body { padding: 12px 0 0; }
    .home-polished .product-card .product-title { min-height: 52px; margin-bottom: 10px; }
    .home-polished .product-card .product-title a { font-size: 14px; line-height: 26px; }
    .home-polished .product-card .product-price { font-size: 17px; line-height: 28px; }
    .home-polished .product-card .price-index-h { min-height: 48px; margin-bottom: 12px; }
    .home-polished .product-card .cart a,
    .home-polished .product-card a.ms-select-options { min-height: 44px; font-size: 13px; }
    .home-polished .home-product-panel { gap: 14px 8px; }
    .home-polished .product-carousel-controls { gap: 4px; }
    .home-polished .product-carousel-controls span { min-width: 46px; font-size: 12px; }
    .home-polished .home-view-all { font-size: 12px; gap: 4px; }
    .home-polished .home-article-grid { display: flex; flex-direction: column; gap: 24px; }
    .home-polished .home-article:first-child { display: flex; gap: 14px; }
    .home-polished .home-article:first-child img { aspect-ratio: 1.8; }
    .home-polished .home-article:first-child h3 { font-size: 20px; line-height: 1.9; }
    .home-polished .home-article:not(:first-child) { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: center; gap: 16px; border-top: 1px solid var(--home-line); padding-top: 24px; }
    .home-polished .home-article:not(:first-child) img { width: 112px; height: 112px; aspect-ratio: 1; }
    .home-polished .home-article h3 { font-size: 15px; line-height: 1.9; }
    .home-polished .home-article-action { margin-top: 8px; font-size: 12px; }
    .home-polished .footer-widgets { padding-block: 32px 16px; }
    .home-polished .footer-widgets > .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 12px; margin-inline: 0; }
    .home-polished .footer-widgets > .row > div { padding: 0; max-width: none; }
    .home-polished .footer-widgets > .row > div:first-child { grid-column: 1 / -1; }
    .home-polished .main-footer .card-title { font-size: 15px; }
    .home-polished .main-footer .footer-menu a { min-height: 44px; font-size: 13px; }
    .home-polished .main-footer .widget { margin-bottom: 0; }
    .home-polished .mobile-bottom-nav > a,
    .home-polished .mobile-bottom-nav > button { font-size: 11px; gap: 3px; }
}
@media (prefers-reduced-motion:reduce) {
    .home-polished *, .home-polished *::before, .home-polished *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .home-polished .category-orb { transform: none !important; }
}
