/* Zino header v2 – layout via rtl-layout.css, components via zino-components.css */

.site-header-v2 {
    background: #fff;
    position: relative;
    z-index: 1045;
    padding: 0;
}

.site-header-v2 .header-topbar-links {
    direction: ltr;
}

.site-header-v2 .header-actions-desktop {
    gap: 12px;
}

.site-header-v2 .header-auth-links {
    gap: 8px;
}

/* ── Top bar ── */
.header-topbar {
    border-bottom: 1px solid var(--zino-border);
    padding: 10px 0;
}

.header-topbar-links a {
    color: var(--zino-text);
    font-size: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.header-topbar-links a:hover {
    color: var(--zino-green);
}

.header-topbar-tagline {
    color: var(--zino-text-muted);
    font-size: 0.6875rem;
    white-space: nowrap;
    direction: rtl;
    display: inline-block;
    text-align: right;
}

/* ── Main row ── */
.header-main {
    padding: 18px 0;
}

/* Main row: flex — actions left | search + logo together on right */
.site-header-v2 .header-main-flex {
    display: flex;
    align-items: center;
    direction: ltr;
    gap: 24px;
    min-height: 48px;
}

.site-header-v2 .header-actions-col {
    flex-shrink: 0;
}

.site-header-v2 .header-search-col {
    flex: 1 1 auto;
    width: 100%;
    max-width: 632px;
    min-width: 280px;
    margin-left: auto;
}

.site-header-v2 .header-logo-col {
    flex-shrink: 0;
}

.header-logo-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo-col .logo img,
.header-logo-col .logo .zino-logo {
    max-height: 34px;
    height: 34px;
    width: auto;
}

.header-search-col .search-form {
    width: 100%;
}

.header-actions-col {
    display: flex;
    align-items: center;
}

/* Cart block */
.header-cart-block {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 10px;
}

.header-cart-block:hover {
    color: inherit;
    opacity: 0.85;
}

.header-cart-block .cart-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.header-cart-block .cart-icon-wrap i {
    font-size: 1.5rem;
    color: var(--zino-text);
}

.header-cart-block .header-cart-counter {
    position: absolute;
    top: 1px;
    right: -7px;
    min-width: 15px;
    height: 15px;
    padding: 0 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    background: var(--zino-green-light) !important;
    color: var(--zino-text) !important;
    border-radius: 2px;
    margin: 0;
    text-align: center;
}

/* Persian price inside LTR action row (layout-cluster) */
.header-cart-price {
    direction: rtl;
    color: var(--zino-green);
    font-size: 0.875rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Wishlist */
.header-wishlist-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    text-decoration: none;
    color: var(--zino-text);
    transition: color 0.2s;
}

.header-wishlist-link:hover {
    color: var(--zino-green);
}

.header-wishlist-link i {
    font-size: 1.5rem;
}

/* Divider */
.header-divider {
    height: 1px;
    background: var(--zino-border);
    margin: 0;
}

/* ── Navigation row ── */
.header-nav {
    padding: 14px 0;
}

.header-nav-menu-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}

.header-nav-menu > li {
    position: relative;
}

.header-nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 260px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--zino-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 1050;
    padding: 12px 0;
}

.header-nav-menu > li:hover > .sub-menu {
    display: block;
}

.header-nav-menu .sub-menu li a {
    display: block;
    padding: 6px 16px;
    color: var(--zino-text);
    font-size: 0.8125rem;
    text-decoration: none;
}

.header-nav-menu .sub-menu li a.title {
    font-weight: 700;
    color: var(--zino-green);
    margin-top: 8px;
}

.header-nav-menu .sub-menu li a:hover {
    background: var(--zino-search-bg);
}

.header-nav-menu .mega-container {
    columns: 3;
    min-width: 480px;
    max-width: 720px;
}

/* Mobile menu button */
.btn-responsive-menu-v2 {
    background: none;
    border: none;
    padding: 4px;
    color: var(--zino-text);
    font-size: 1.625rem;
    line-height: 1;
}

.site-header-v2 .btn-action-cart-mobile {
    background: none;
    border: none;
    padding: 4px;
    position: relative;
    color: var(--zino-text);
    flex-shrink: 0;
}

.site-header-v2 .btn-action-cart-mobile .header-cart-price {
    display: none;
}

.site-header-v2 .btn-action-cart-mobile i {
    font-size: 1.625rem;
}


/* Override legacy style2 search rules inside header v2 */
.site-header-v2 .search-filed .search-input {
    border-radius: 0;
    border-color: transparent;
}

.site-header-v2 .search-filed .search-input:focus {
    border: none;
    box-shadow: none;
}

.site-header-v2 .search-filed .search-btn,
.site-header-v2 .zino-search-field .search-btn {
    top: 0;
    bottom: 0;
    left: 16px !important;
    transform: none !important;
    margin-top: auto;
    margin-bottom: auto;
}

.site-header-v2 .search-filed .search-btn i,
.site-header-v2 .zino-search-field .search-btn i {
    color: var(--zino-green) !important;
    font-size: 1.5rem;
}

.site-header-v2 .header-cart-counter {
    width: auto;
    min-width: 15px;
    height: 15px;
    line-height: 1;
    margin: 0;
    top: 1px;
    right: -7px;
    font-size: 0.875rem !important;
    font-weight: 600;
}

.site-header-v2 + .mega-menu {
    display: none !important;
}

/* ── Groups mega popup ── */
.header-nav > .container-fluid {
    position: relative;
}

.header-nav-menu .grp-wrap {
    position: static;
}

button.zino-nav-link {
    background: none;
    border: none;
}

.grp-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: #fff;
    box-shadow: 1px 5px 9.5px 0 rgba(0, 0, 0, 0.25);
    z-index: 1060;
    direction: rtl;
    max-height: calc(100vh - 180px);
    overflow: hidden;
}

.grp-popup.is-open {
    display: flex;
}

/* Sidebar */
.grp-sidebar {
    width: 180px;
    min-width: 180px;
    flex-shrink: 0;
    background: #f2f2f2;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--zino-border);
    direction: rtl;
}

.grp-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    width: 100%;
    color: #575756;
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    direction: rtl;
    text-align: right;
    transition: color 0.15s;
}

.grp-tab:hover {
    color: var(--zino-green);
}

.grp-tab.grp-tab--active {
    color: var(--zino-green);
    font-weight: 700;
    background: #fff;
    border-left: 3px solid var(--zino-green);
    padding-left: 13px;
}

.grp-tab.grp-tab--disabled {
    color: #bbb;
    cursor: not-allowed;
    opacity: 0.7;
}

.grp-soon-badge {
    margin-right: auto;
    font-size: 0.5625rem;
    font-weight: 600;
    color: #fff;
    background: var(--zino-warn);
    padding: 1px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

/* Main content */
.grp-main {
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 24px 20px;
}

/* View switching via data-view on .grp-popup */
.grp-view { display: none; }
.grp-popup[data-view="brand"]  .grp-view-brands { display: block; }
.grp-popup[data-view="usage"]  .grp-view-usages { display: block; }
.grp-popup[data-view="alpha"]  .grp-view-groups  { display: block; }

/* Column grid — do not force whole letter-blocks into the next column
   (break-inside/overflow on .grp-group left empty gaps and forced scroll). */
.grp-columns {
    columns: 5;
    column-gap: 0;
    width: 100%;
}

.grp-popup[data-view="brand"] .grp-columns {
    columns: 7;
}

/* Usage: exactly one column per کاربرد — not CSS multi-column (that
   balanced 6 short columns and split lists so items looked stacked/overlapping). */
.grp-popup[data-view="usage"] .grp-columns {
    columns: unset;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

.grp-popup[data-view="usage"] .grp-group {
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 0;
    padding-right: 12px;
    padding-left: 12px;
}

.grp-popup[data-view="usage"] .grp-group:first-child {
    padding-right: 0;
}

.grp-popup[data-view="usage"] .grp-group-title {
    white-space: normal;
    line-height: 1.35;
    margin-bottom: 10px;
    break-after: unset;
}

.grp-popup[data-view="usage"] .grp-group-list li a {
    line-height: 1.5;
    padding-top: 5px;
    padding-bottom: 5px;
}

.grp-group {
    margin-bottom: 22px;
    padding-right: 16px;
    border-right: 1px solid var(--zino-border);
}

.grp-group:first-child {
    border-right: none;
}

/* Category / letter title */
.grp-group-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #5b5b5b;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    break-after: avoid;
}

/* Alpha + Brand + Usage views: letter/category headers stand out */
.grp-popup[data-view="alpha"] .grp-group-title,
.grp-popup[data-view="brand"] .grp-group-title,
.grp-popup[data-view="usage"] .grp-group-title {
    color: var(--zino-green);
    font-size: 0.9375rem;
    font-weight: 700;
}

/* Sub-items — truncate long names so columns stay within container */
.grp-group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.grp-group-list li a {
    display: block;
    max-width: 100%;
    font-size: 0.75rem;
    color: #5b5b5b;
    text-decoration: none;
    line-height: 1.5;
    padding-top: 4px;
    padding-bottom: 4px;
    transition: color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grp-group-list li a:hover {
    color: var(--zino-green);
}

.grp-link--featured {
    color: var(--zino-green) !important;
    font-weight: 700;
    background: rgba(0, 174, 94, 0.12);
    padding: 0 5px;
    max-width: 100%;
}

/* ── User account panel (hdp = Header Dropdown Panel) ── */
.hdp-wrap {
    position: relative;
}

.hdp-panel {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    width: 264px;
    background: #fff;
    box-shadow: 1px 5px 9.5px 0 rgba(0, 0, 0, 0.25);
    z-index: 1060;
    overflow: hidden;
    direction: rtl;
}

.hdp-panel.hdp-panel--end {
    left: auto;
    right: 0;
}

.hdp-panel.is-open {
    display: block;
}

/* Section items */
.hdp-section-item {
    border-bottom: 1px solid var(--zino-border);
}

.hdp-section-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
    padding: 12px 16px;
    color: #575756;
    font-size: 1rem;
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    direction: rtl;
    text-align: right;
    transition: background 0.15s;
}

.hdp-section-toggle:hover {
    background: var(--zino-search-bg);
}

.hdp-section-title {
    flex: 1;
}

.hdp-section-chevron {
    font-size: 0.75rem;
    color: #bbb;
    flex-shrink: 0;
    transition: transform 0.2s;
}

/* bi-chevron-left (‹) rotates to ↓ when open */
.hdp-section-item.is-open > .hdp-section-toggle .hdp-section-chevron {
    transform: rotate(90deg);
}

/* Sub-menu content */
.hdp-section-content {
    display: none;
    padding-bottom: 6px;
}

.hdp-section-item.is-open > .hdp-section-content {
    display: block;
}

/* Sub-links — hover shape via .zino-trap-hover (zino-components.css) */
.hdp-sub-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 28px 8px 14px;
    color: #575756;
    font-size: 0.8125rem;
    text-decoration: none;
    direction: rtl;
}

/* Green bounded to content area: 14px gap on left + 48px (icon+padding) on right */
.hdp-sub-link.zino-trap-hover::before {
    left: 16px;
    width: calc(100% - 66px);
}

/* Icon and badge sit in the uncolored zone — keep them legible */
.hdp-sub-link:hover .hdp-sub-icon {
    color: #575756;
}

.hdp-sub-link:hover .hdp-amount {
    color: #5b5b5b;
}

.hdp-sub-icon {
    font-size: 1.0625rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Amount badge */
.hdp-amount {
    margin-left: auto;
    font-size: 0.625rem;
    font-weight: 600;
    color: #5b5b5b;
    background: #efefef;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
}

/* "جدید" badge */
.hdp-new-badge {
    margin-left: auto;
    font-size: 0.5625rem;
    font-weight: 600;
    color: #fff;
    background: var(--zino-green);
    padding: 1px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

/* Logout */
.hdp-logout-wrap {
    padding: 10px 14px 12px;
}

.hdp-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 8px 14px;
    color: var(--zino-warn);
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--zino-warn-bg);
    border: 1px solid var(--zino-warn-border);
    border-radius: 0;
    cursor: pointer;
    direction: rtl;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hdp-logout-btn:hover {
    background: var(--zino-warn);
    border-color: var(--zino-warn);
    color: #fff;
}

/* ── Search result popup (srp) ── */
.srp-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 1px 5px 9.5px 0 rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    z-index: 1070;
    padding: 18px 20px;
}

.srp-section {
    margin-bottom: 14px;
}

.srp-section-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #5b5b5b;
    margin-bottom: 10px;
    text-align: right;
}

.srp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    direction: rtl;
}

.srp-tag {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    background: #f7f7f7;
    border: 1px solid #f2f2f2;
    color: #5b5b5b;
    font-size: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.srp-tag:hover {
    background: var(--zino-green);
    border-color: var(--zino-green);
    color: #fff;
}

/* Product list */
.srp-products {
    list-style: none;
    padding: 0;
    margin: 0 0 4px;
}

.srp-product-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    color: #5b5b5b;
    font-size: 0.75rem;
    text-decoration: none;
    direction: rtl;
    border-bottom: 1px solid var(--zino-border);
    transition: color 0.15s;
}

.srp-product-link:hover {
    color: var(--zino-green);
}

.srp-product-thumb {
    width: 35px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border-radius: 3px;
    flex-shrink: 0;
    font-size: 1.125rem;
    color: #ccc;
    overflow: hidden;
}

.srp-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.srp-product-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.srp-product-price {
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--zino-green);
    white-space: nowrap;
}

/* View more link */
.srp-more {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 12px 0 2px;
    color: #706f6f;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    direction: rtl;
    transition: color 0.15s;
}

.srp-more:hover {
    color: var(--zino-green);
}

/* ── Mobile offcanvas menu v2 (rmv2) ── */
.offcanvas.rmv2 {
    direction: rtl;
    max-width: 100%;
}

.rmv2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    direction: ltr;
    padding: 20px 24px 14px;
}

.rmv2-header .btn-close {
    margin: 0;
    font-size: 0.875rem;
}

.rmv2-logo .zino-logo {
    height: 30px;
    width: auto;
}

.rmv2-body {
    padding: 12px 24px 32px;
}

.rmv2-menu,
.rmv2-secondary,
.rmv2-leaf-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Rows: icon (right) + label + chevron, anchored to the right edge */
.rmv2-link,
.rmv2-sublink,
.rmv2-charlink {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 0;
    background: none;
    border: none;
    color: var(--zino-text);
    font-size: 0.875rem;
    text-align: right;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}

.rmv2-link:hover,
.rmv2-sublink:hover,
.rmv2-charlink:hover {
    color: var(--zino-green);
}

.rmv2-ico {
    font-size: 1.1875rem;
    flex-shrink: 0;
}

.rmv2-ico-img {
    flex-shrink: 0;
}

.rmv2-chev {
    font-size: 0.6875rem;
    color: #bbb;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.rmv2-link--promo {
    color: var(--zino-green);
    font-weight: 700;
}

/* Accordion */
.rmv2-acc-panel {
    display: none;
}

.rmv2-acc.is-open > .rmv2-acc-panel {
    display: block;
}

.rmv2-acc.is-open > .rmv2-acc-toggle {
    color: var(--zino-green);
}

.rmv2-acc.is-open > .rmv2-acc-toggle .rmv2-chev {
    transform: rotate(-90deg);
    color: var(--zino-green);
}

/* گروه کالاها grey panel */
.rmv2-groups-panel {
    background: #f7f7f7;
    padding: 10px 16px;
    margin: 4px 0 8px;
}

.rmv2-sublink,
.rmv2-charlink {
    font-size: 0.8125rem;
    padding: 9px 0;
}

.rmv2-sublink--disabled {
    color: #bbb;
    cursor: not-allowed;
}

.rmv2-sublink--disabled:hover {
    color: #bbb;
}

/* Nested level indent */
.rmv2-indent {
    padding-right: 24px;
}

/* Leaf links (group / brand names) */
.rmv2-leaf-list {
    padding: 2px 24px 8px 0;
}

.rmv2-leaf-list li a {
    display: block;
    padding: 5px 0;
    color: var(--zino-text);
    font-size: 0.75rem;
    text-decoration: none;
    text-align: right;
    transition: color 0.15s;
}

.rmv2-leaf-list li a:hover {
    color: var(--zino-green);
}

.rmv2-leaf--featured {
    color: var(--zino-green) !important;
    font-weight: 700;
}

.rmv2-divider {
    height: 1px;
    background: var(--zino-border);
    margin: 18px 0;
}

.rmv2-secondary li a {
    display: block;
    padding: 7px 0;
    color: var(--zino-text);
    font-size: 0.8125rem;
    text-decoration: none;
    text-align: right;
    transition: color 0.15s;
}

.rmv2-secondary li a:hover {
    color: var(--zino-green);
}

@media only screen and (max-width: 991.98px) {
    .site-header-v2 {
        position: sticky;
        top: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .header-main {
        padding: 14px 0;
    }

    /* Two rows: row 1 = user pill + wishlist | tagline + logo,
       row 2 = cart | search | menu toggle */
    .site-header-v2 .header-main-flex {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 18px 10px;
    }

    /* Actions take the leftover width so row 1 never wraps —
       the pill truncates its text instead of pushing the logo down */
    .site-header-v2 .header-actions-col {
        order: 1;
        flex: 1 1 0;
        min-width: 0;
    }

    .header-mobile-actions {
        display: flex;
        width: 100%;
        min-width: 0;
        justify-content: flex-start; /* pin the pill + wishlist to the end of row 1 (ltr cluster → physical left) */
    }

    .header-mobile-actions .hdp-wrap {
        min-width: 0;
    }

    /* Compact pill: long names truncate at 180px (or the available space) */
    .header-mobile-actions .zino-pill-btn {
        max-width: min(180px, 100%);
        min-height: 30px;
        padding: 4px 10px 4px 14px;
        font-size: 0.75rem;
        gap: 5px;
    }

    .header-mobile-actions .zino-pill-btn__icon {
        width: 15px;
        height: 17px;
    }

    .header-mobile-actions .header-wishlist-link {
        width: 24px;
        height: 24px;
    }

    .header-mobile-actions .header-wishlist-link i {
        font-size: 1.25rem;
    }

    .site-header-v2 .header-logo-col {
        order: 2;
        flex: 0 0 auto;
    }

    .site-header-v2 .header-search-col {
        order: 3;
        flex: 1 1 100%;
        max-width: none;
        min-width: 0;
        margin-left: 0;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .site-header-v2 .header-search-col .search-form {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Shorter search field on phones */
    .site-header-v2 .zino-search-field .search-input,
    .site-header-v2 .zino-search-field .form-control {
        height: 40px;
        font-size: 0.875rem;
        padding: 8px 14px 8px 44px;
    }

    .site-header-v2 .search-filed .search-btn,
    .site-header-v2 .zino-search-field .search-btn {
        left: 12px !important;
    }

    .site-header-v2 .search-filed .search-btn i,
    .site-header-v2 .zino-search-field .search-btn i {
        font-size: 1.25rem;
    }

    .header-logo-col .logo img,
    .header-logo-col .logo .zino-logo {
        max-height: 26px;
        height: 26px;
    }

    /* The user pill sits at the screen's left edge — open its panel to the right */
    .header-mobile-actions .hdp-panel {
        left: 0;
        right: auto;
    }
}

/* ── iziToast v2 reskin (cart success + site-wide toasts) ───────────────────
   Soft tint + accent bar, square corners, site font — matches panel/cheque alerts. */
.iziToast {
    font-family: var(--main-font), sans-serif;
    border-radius: 0;
    border: none;
    min-height: 0;
    padding: var(--space-3) 2.75rem var(--space-3) var(--space-4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.iziToast.iziToast-rtl {
    padding: var(--space-3) var(--space-4) var(--space-3) 2.75rem;
    font-family: var(--main-font), sans-serif;
}

.iziToast:after {
    display: none !important;
}

.iziToast > .iziToast-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    margin: 0;
    min-height: 0;
}

.iziToast > .iziToast-body .iziToast-texts {
    float: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

.iziToast > .iziToast-body .iziToast-title {
    float: none !important;
    width: 100%;
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 700;
    color: var(--zino-text-heading);
    white-space: normal;
}

.iziToast > .iziToast-body .iziToast-message {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--zino-text);
    margin: var(--space-1) 0 0;
}

.iziToast > .iziToast-body .iziToast-icon {
    display: none;
}

.iziToast.iziToast-rtl > .iziToast-body {
    margin: 0;
    padding: 0;
}

.iziToast > .iziToast-close {
    width: 36px;
    opacity: 0.45;
}

.iziToast > .iziToast-progressbar {
    background: transparent;
}

.iziToast > .iziToast-progressbar > div {
    border-radius: 0;
    height: 2px;
}

/* success */
.iziToast.iziToast-color-green {
    background: var(--zino-green-tint);
    border-inline-start: 3px solid var(--zino-green);
}

.iziToast.iziToast-color-green > .iziToast-body .iziToast-title {
    color: var(--zino-green);
}

.iziToast.iziToast-color-green > .iziToast-progressbar > div {
    background: var(--zino-green);
}

/* warning */
.iziToast.iziToast-color-orange,
.iziToast.iziToast-color-yellow {
    background: var(--zino-warn-bg);
    border-inline-start: 3px solid var(--zino-warn);
}

.iziToast.iziToast-color-orange > .iziToast-body .iziToast-title,
.iziToast.iziToast-color-yellow > .iziToast-body .iziToast-title {
    color: var(--zino-warn);
}

.iziToast.iziToast-color-orange > .iziToast-progressbar > div,
.iziToast.iziToast-color-yellow > .iziToast-progressbar > div {
    background: var(--zino-warn);
}

/* error */
.iziToast.iziToast-color-red {
    background: var(--zino-warn-bg);
    border-inline-start: 3px solid var(--zino-warn);
}

.iziToast.iziToast-color-red > .iziToast-body .iziToast-title {
    color: var(--zino-warn);
}

.iziToast.iziToast-color-red > .iziToast-progressbar > div {
    background: var(--zino-warn);
}

/* info / question */
.iziToast.iziToast-color-blue {
    background: #f3fafe;
    border-inline-start: 3px solid var(--zino-blue);
}

.iziToast.iziToast-color-blue > .iziToast-body .iziToast-title {
    color: var(--zino-text-heading);
}

.iziToast.iziToast-color-blue > .iziToast-progressbar > div {
    background: var(--zino-blue);
}

/* CTA inside toast (e.g. «برو به سبد خرید» after add-to-cart) */
.iziToast > .iziToast-body .iziToast-buttons {
    float: none !important;
    clear: both;
    display: flex;
    justify-content: flex-start; /* physical right in RTL */
    width: 100%;
    margin: 0 !important;
    padding-top: var(--space-5); /* 24px — gap above CTA */
    min-height: 0;
}

.iziToast > .iziToast-body .iziToast-buttons > button,
.iziToast > .iziToast-body .iziToast-buttons > a,
.iziToast .izi-toast-btn {
    position: relative;
    isolation: isolate;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 var(--space-4) 0 calc(var(--space-4) + 6px);
    min-height: 32px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    overflow: hidden;
}

/* slanted left edge — same trapezoid as .pc-cart-btn / .azc-btn--save */
.iziToast .izi-toast-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--zino-green);
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
    transition: background 0.2s ease;
}

.iziToast > .iziToast-body .iziToast-buttons > button:hover,
.iziToast > .iziToast-body .iziToast-buttons > a:hover,
.iziToast .izi-toast-btn:hover {
    background: transparent;
}

.iziToast .izi-toast-btn:hover::before {
    background: var(--zino-green-hover);
}

.iziToast > .iziToast-body .iziToast-buttons > button:focus,
.iziToast > .iziToast-body .iziToast-buttons > a:focus,
.iziToast .izi-toast-btn:focus {
    box-shadow: none;
    outline: 2px solid var(--zino-green-light);
    outline-offset: 2px;
}

.iziToast > .iziToast-body .iziToast-buttons > button:active,
.iziToast > .iziToast-body .iziToast-buttons > a:active,
.iziToast .izi-toast-btn:active {
    top: 0;
}

@media only screen and (min-width: 568px) {
    .iziToast {
        border-radius: 0;
        max-width: 28rem;
    }
}
