/* Optimist: the new eCommerce storefront templates (customer area, wallet, club, referral, order tracking...) in the
   site's own black / white look and font. Only the module's colour variables are changed here - the theme (iransite)
   and the module files stay untouched. */
html:root {
    /* html:root outranks the module's :root whatever the load order */
    --ec-primary: #1e1e1e;
    --ec-primary-dark: #000000;
    --ec-primary-soft: #f1f1f1;
    --ec-text: #0c0c0c;
    --ec-text-2: #3f444d;
    --ec-border: #e0e0e2;
    --ec-radius: 5px;
    --ec-radius-lg: 10px;
    --ec-font: iranSite, Tahoma, sans-serif;
}

/* customer area menu (Console module of /profile/*): 8 pages now - let the tiles wrap instead of running off the page */
.ModConsoleC .console.group > .console-small { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
/* DNN 10's Console always sorts its pages by name: the customer area order is set here (by page address) */
.ModConsoleC .console-small > .console-small:has(a[href$="/profile/dashboard"]) { order: 1; }
.ModConsoleC .console-small > .console-small:has(a[href$="/profile/orders"]) { order: 2; }
.ModConsoleC .console-small > .console-small:has(a[href$="/profile/wallet"]) { order: 3; }
.ModConsoleC .console-small > .console-small:has(a[href$="/profile/club"]) { order: 4; }
.ModConsoleC .console-small > .console-small:has(a[href$="/profile/referral"]) { order: 5; }
.ModConsoleC .console-small > .console-small:has(a[href$="/profile/address"]) { order: 6; }
.ModConsoleC .console-small > .console-small:has(a[href$="/profile/wishlist"]) { order: 7; }
.ModConsoleC .console-small > .console-small:has(a[href$="/profile/support"]) { order: 8; }
.ModConsoleC .console-small > .console-small:has(a[href$="/profile/account"]) { order: 9; }


/* ---- product lists (ProductList "ssr": shop, brand pages, discounts) in the site's own card look ---- */
.ec-sf.ec-pl .ec-pl-list { gap: 16px; padding: 4px 0; border: 0 !important; }
@media (min-width: 992px) { .ec-sf.ec-pl .ec-pl-list:not(.ec-pl-rows) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 3 cards per row at every desktop width, as on the live site */
.ec-sf.ec-pl .ec-card { background: #fff; border: 1px solid #ececee !important; border-radius: 5px; box-shadow: 0 1px 6px rgba(0, 0, 0, .06); padding: 12px 12px 14px; transition: box-shadow .2s; }
.ec-sf.ec-pl .ec-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .10); }
.ec-sf.ec-pl .ec-card-title { color: #0c0c0c; font-size: 14px; }
.ec-sf.ec-pl .ec-amount { color: #0c0c0c; font-weight: 800; }
/* the heart and cart buttons always visible, at the bottom like before (no compare on this shop) */
.ec-sf.ec-pl .ec-card .addtocompare { display: none !important; }
@media (hover: hover) { .ec-sf.ec-pl .ec-card-actions { opacity: 1 !important; transform: none !important; } }
.ec-sf.ec-pl .ec-act { background: #f1f1f1; color: #1e1e1e; border-radius: 50%; }

/* the shop list sits in the theme's full-width pane (no padding): side gutters on phones / tablets */
@media (max-width: 991.98px) { .ec-sf.ec-pl { padding-inline: 12px; } }

/* the theme's full-width row is 32px wider than the screen (Bootstrap row margins without a container): not for the list */
.dng-row:has(.ec-sf.ec-pl) { margin-inline: 0; }
.dng-row:has(.ec-sf.ec-pl) > .dng-column { padding-inline: 0; }

@media (min-width: 992px) { .ec-sf.ec-pl { max-width: 1320px; margin-inline: auto; padding-inline: 32px; } }


/* ---- public customer club landing page (/club) ---- */
.opt-club { max-width: 1100px; margin: 0 auto 40px; padding: 0 16px; color: #0c0c0c; line-height: 1.95; }
.opt-club section { margin: 34px 0; }
.opt-club h1 { font-size: clamp(24px, 4vw, 38px); font-weight: 900; margin: 14px 0; }
.opt-club h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.opt-club h3 { font-size: 17px; font-weight: 800; margin: 4px 0 6px; }
.opt-club-hero { background: #1e1e1e; color: #fff; border-radius: 16px; padding: clamp(24px, 5vw, 56px); }
.opt-club-hero p { color: #dcdcdc; max-width: 640px; }
.opt-club-badge { display: inline-block; background: #ffd166; color: #1e1e1e; font-weight: 800; border-radius: 999px; padding: 4px 14px; font-size: 13px; }
.opt-club-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.opt-btn { display: inline-block; padding: 10px 22px; border-radius: 999px; border: 1px solid #fff; color: #fff !important; font-weight: 700; text-decoration: none !important; }
.opt-btn-dark { background: #fff; color: #1e1e1e !important; }
.opt-grid2, .opt-grid3, .opt-grid4 { display: grid; gap: 14px; }
@media (min-width: 768px) { .opt-grid2 { grid-template-columns: repeat(2, 1fr); } .opt-grid3 { grid-template-columns: repeat(3, 1fr); } .opt-grid4 { grid-template-columns: repeat(4, 1fr); } }
.opt-card, .opt-level { background: #fff; border: 1px solid #ececee; border-radius: 12px; padding: 18px; }
.opt-club-steps .opt-card b { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: #1e1e1e; color: #fff; align-items: center; justify-content: center; }
.opt-level { border-top: 4px solid #c0c0c0; }
.opt-level:nth-child(2) { border-top-color: #d4a93a; }
.opt-level-top { border-top-color: #1e1e1e; background: #fafafa; }
.opt-amount { font-weight: 800; color: #3f444d; margin-bottom: 6px; }
.opt-big { font-size: 20px; font-weight: 900; margin: 4px 0; }
.opt-card ul { padding-inline-start: 20px; margin: 0; }
.opt-muted { color: #6b7076; }
.opt-small { font-size: 13px; }
.opt-faq details { border: 1px solid #ececee; border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; background: #fff; }
.opt-faq summary { font-weight: 700; cursor: pointer; }
.opt-club .opt-club-hero h1 { color: #fff !important; }


/* ---- QC 2: ssr lists like the live site ---- */
/* category header: full-width patterned band, square rounded sub-category cards */
.ec-sf.ec-pl .ec-pl-subcats { background: #f4f4f4 url(/Portals/0/images/subcat-bg.jpg) center / cover; margin-inline: calc(50% - 50vw); padding: 26px max(16px, calc(50vw - 640px)); margin-bottom: 20px; }
.ec-sf.ec-pl .ec-subcat { flex: 0 0 auto; width: 196px; text-align: center; font-size: 15px; color: #0c0c0c !important; gap: 12px; }
.ec-sf.ec-pl .ec-subcat-img { display: block; width: 196px !important; height: 196px !important; border-radius: 12px !important; background: #fff; overflow: hidden; margin: 0 auto 10px; box-shadow: none; border: 0 !important; }
.ec-sf.ec-pl .ec-subcat-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
@media (max-width: 575.98px) { .ec-sf.ec-pl .ec-subcat { width: 132px; } .ec-sf.ec-pl .ec-subcat-img { width: 132px !important; height: 132px !important; } }
/* sidebar: each filter group on a soft grey rounded panel */
.ec-sf.ec-pl .ec-pl-side { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
.ec-sf.ec-pl .ec-pl-side .ec-acc { background: #f9f9f9; border: 0 !important; border-radius: 12px; padding: 4px 16px; margin-bottom: 12px; }
.ec-sf.ec-pl .ec-pl-side .ec-acc-head { font-weight: 700; padding: 14px 0; }
/* colour filter with its colour thumbnails */
.ec-sf.ec-pl .customlist-items { display: flex; flex-direction: column; gap: 4px; max-height: 280px; overflow-y: auto; padding-inline-end: 4px; }
.ec-sf.ec-pl .customlist-item { display: flex !important; align-items: center; gap: 10px; padding: 5px 2px; cursor: pointer; font-size: 14px; position: relative; }
.ec-sf.ec-pl .customlist-item input { position: absolute; opacity: 0; pointer-events: none; }
.ec-sf.ec-pl .customlist-thumbnail { flex: none; width: 26px; height: 26px; border-radius: 50%; background-size: cover; background-position: center; border: 1px solid #ddd; box-shadow: inset 0 0 0 2px #fff; }
.ec-sf.ec-pl .customlist-item:has(input:checked) .customlist-thumbnail { border-color: #1e1e1e; box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #1e1e1e; }
.ec-sf.ec-pl .customlist-item:has(input:checked) { font-weight: 700; }
.ec-sf.ec-pl .customlist-checked { display: none; }
/* pagination: plain numbers, the current page a dark rounded square (no ellipses) */
.ec-sf.ec-pl .pagination { gap: 6px; flex-wrap: wrap; }
.ec-sf.ec-pl .pagination .page-link { min-width: 42px; height: 42px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 0 !important; border-radius: 12px !important; background: transparent; color: #0c0c0c; box-shadow: none !important; }
.ec-sf.ec-pl .pagination .page-link:hover { background: #f1f1f1; }
.ec-sf.ec-pl .pagination .active .page-link { background: #1e1e1e !important; color: #fff !important; }
/* cards: heart + cart at the bottom-left, as on the live site (quick view stays in the cart's model dialog) */
.ec-sf.ec-pl .ec-card { position: relative; border-radius: 8px; padding-bottom: 66px; }
.ec-sf.ec-pl .ec-card-actions { top: auto !important; bottom: 14px; inset-inline-start: auto; inset-inline-end: 14px; flex-direction: row-reverse !important; gap: 8px; }
.ec-sf.ec-pl .ec-act.ec-quick:not(.ec-addcart-models) { display: none !important; }
.ec-sf.ec-pl .ec-act { width: 38px; height: 38px; }
.ec-sf.ec-pl .customlist-items { max-height: none; overflow: visible; }
/* club FAQ: soft accordions in the site's look */
.opt-faq details { border: 0 !important; border-bottom: 1px solid #ececee !important; border-radius: 0 !important; background: transparent !important; padding: 0 !important; margin: 0 !important; }
.opt-faq details:first-of-type { border-top: 1px solid #ececee !important; }
.opt-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px; font-weight: 700; cursor: pointer; transition: color .2s; }
.opt-faq summary::-webkit-details-marker { display: none; }
.opt-faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #f1f1f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e1e1e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s, background-color .25s; }
.opt-faq details[open] summary::after { transform: rotate(45deg); background-color: #1e1e1e; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.opt-faq summary:hover { color: #555; }
.opt-faq details p { margin: 0; padding: 0 4px 18px; color: #3f444d; animation: opt-faq-in .25s ease; }
@keyframes opt-faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---- product categories mega menu (eCommerce Skin/Categories "Server"): multi-column panel, grouped children ---- */
.ecommerceNav .CategoriesMenu .megamenu-holder { border-radius: 0 0 16px 16px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.ecommerceNav .CategoriesMenu .main-items { border-radius: 10px; margin: 2px 8px; padding: 10px 14px !important; transition: background .15s; position: relative; }
.ecommerceNav .CategoriesMenu .main-items > a { font-size: 15px; color: #3f444d; }
.ecommerceNav .CategoriesMenu .main-items.active { background: #f1f1f1 !important; }
.ecommerceNav .CategoriesMenu .main-items.active > a { color: #0c0c0c; font-weight: 800; }
.ecommerceNav .CategoriesMenu .main-items.active::before { content: ""; position: absolute; inset-inline-start: -8px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: #1e1e1e; }
.ecommerceNav .submenu-box .holder > .dropdown-menu.active { column-width: 210px; column-gap: 32px; column-rule: 1px solid #f1f1f1; padding: 22px 28px !important; }
.ecommerceNav .submenu-box .holder > .dropdown-menu.active > li { break-inside: avoid; page-break-inside: avoid; display: block; margin: 0 0 4px; }
.ecommerceNav .submenu-box .holder > .dropdown-menu.active > li > a { display: block; padding: 7px 0; font-size: 14px; color: #3f444d !important; border: 0 !important; transition: color .15s, padding .15s; }
.ecommerceNav .submenu-box .holder > .dropdown-menu.active > li > a:hover { color: #0c0c0c !important; padding-inline-start: 4px; }
/* an item with children: a group with a bold title and its children below */
.ecommerceNav .submenu-box .holder > .dropdown-menu.active > li.dropdown { margin: 10px 0 14px; }
.ecommerceNav .submenu-box .holder > .dropdown-menu.active > li.dropdown > a { color: #0c0c0c !important; font-weight: 800; font-size: 15px; border-inline-start: 0 !important; padding: 4px 0 8px !important; margin-bottom: 4px; border-bottom: 2px solid #1e1e1e !important; display: inline-block; }
.ecommerceNav .submenu-box .holder > .dropdown-menu.active > li.dropdown > .dropdown-menu { position: static !important; display: block !important; float: none; border: 0; box-shadow: none; background: transparent; padding: 0 !important; margin: 0; min-width: 0; columns: auto !important; }
.ecommerceNav .submenu-box .holder > .dropdown-menu.active > li.dropdown > .dropdown-menu > li > a { display: block; padding: 5px 0; font-size: 13px; color: #6b7076 !important; transition: color .15s; }
.ecommerceNav .submenu-box .holder > .dropdown-menu.active > li.dropdown > .dropdown-menu > li > a:hover { color: #0c0c0c !important; }
/* thin scrollbars inside the menu */
.ecommerceNav .CategoriesMenu * { scrollbar-width: thin; scrollbar-color: #cfcfd3 transparent; }
.ecommerceNav .submenu-box .holder > .dropdown-menu.active { height: auto !important; max-height: 640px; overflow-y: auto; overflow-x: hidden; column-fill: balance; }
.ecommerceNav .CategoriesMenu .nav > ul, .ecommerceNav .CategoriesMenu .holder { overflow-x: hidden !important; }
.ecommerceNav .CategoriesMenu .main-items { margin-inline: 6px 10px; }
.ecommerceNav .submenu-box .holder > .dropdown-menu.active { max-height: none !important; overflow: visible !important; }
.ecommerceNav .submenu-box { max-height: 660px; overflow-y: auto !important; overflow-x: hidden !important; }
.ecommerceNav .submenu-box .holder { height: auto !important; }
@media (min-width: 992px) { .ec-sf.ec-pl .ec-pl-list:not(.ec-pl-rows) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }


/* ---- contact form (DNN Feedback 6.8 on /contactus) in the live site's look ---- */
.ModDNNFeedbackC .dnnForm { max-width: 100%; }
.ModDNNFeedbackC .dnnFormSectionHead { display: none; }
.ModDNNFeedbackC fieldset { border: 0; padding: 0; margin: 0; }
.ModDNNFeedbackC .dnnFormItem { display: flex; flex-direction: column; align-items: stretch; margin: 0 0 18px; padding: 0; float: none; width: 100%; }
.ModDNNFeedbackC .dnnFormItem .dnnLabel { width: auto !important; float: none !important; text-align: start !important; padding: 0 !important; margin: 0 0 8px !important; }
.ModDNNFeedbackC .dnnFormItem .dnnLabel label, .ModDNNFeedbackC .dnnFormItem .dnnLabel span { font-size: 15px; color: #313131; }
.ModDNNFeedbackC .dnnFormItem input[type=text], .ModDNNFeedbackC .dnnFormItem textarea { width: 100% !important; max-width: 100% !important; border: 0 !important; border-radius: 6px !important; background: #fff !important; box-shadow: 0 0 5px rgba(0, 0, 0, .1) !important; padding: 8px 12px !important; font-size: 14px; color: #333; }
.ModDNNFeedbackC .dnnFormItem input[type=text] { height: 40px; }
.ModDNNFeedbackC .dnnFormItem textarea { min-height: 110px; resize: vertical; }
.ModDNNFeedbackC .dnnFormItem input:focus, .ModDNNFeedbackC .dnnFormItem textarea:focus { outline: 0; box-shadow: 0 0 0 2px #1e1e1e33, 0 0 5px rgba(0, 0, 0, .1) !important; }
.ModDNNFeedbackC .dnnFormRequired::after { color: #d00; }
.ModDNNFeedbackC .Feedback_CharCount { flex-direction: row; gap: 8px; font-size: 13px; color: #6b7076; }
.ModDNNFeedbackC .Feedback_CharCount label, .ModDNNFeedbackC .Feedback_CharCount span { width: auto !important; float: none !important; padding: 0 !important; }
.ModDNNFeedbackC img[id*=Captcha], .ModDNNFeedbackC .dnnCaptcha img { border-radius: 6px; }
.ModDNNFeedbackC .dnnActions { padding: 0; margin: 8px 0 0; text-align: start; }
.ModDNNFeedbackC .dnnPrimaryAction, .ModDNNFeedbackC input[type=submit] { min-width: 195px; height: 45px; display: inline-flex; align-items: center; justify-content: center; border: 0 !important; border-radius: 12px !important; background: #17892a !important; color: #fff !important; font-size: 15px; font-weight: 700; box-shadow: none !important; text-shadow: none !important; }
.ModDNNFeedbackC .dnnPrimaryAction:hover { background: #127222 !important; }

/* ---- a list page's own "nothing here yet" (discounts with no active discount) ---- */
.ec-sf.ec-pl .ec-pl-empty-own { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin: 10px auto 30px; max-width: 760px; padding: 48px 28px; border-radius: 20px; background: #1e1e1e url(/Portals/0/images/subcat-bg.jpg) center / cover; background-blend-mode: soft-light; color: #fff; }
.ec-sf.ec-pl .ec-pl-empty-own i { font-size: 46px; color: #ffd166; margin-bottom: 4px; }
.ec-sf.ec-pl .ec-pl-empty-own b { font-size: 24px; font-weight: 900; color: #fff; }
.ec-sf.ec-pl .ec-pl-empty-own span { color: #e3e3e3; line-height: 2; max-width: 560px; }
.ec-sf.ec-pl .ec-pl-empty-own .ec-pl-empty-btn { margin-top: 8px; background: #fff !important; color: #1e1e1e !important; border-radius: 999px; padding: 10px 26px; font-weight: 800; text-decoration: none !important; }
/* nothing to filter or sort on an empty page */
.ec-sf.ec-pl:has(.ec-pl-empty-own) .ec-pl-side, .ec-sf.ec-pl:has(.ec-pl-empty-own) .ec-sort, .ec-sf.ec-pl:has(.ec-pl-empty-own) .ec-pl-subcats, .ec-sf.ec-pl:has(.ec-pl-empty-own) [class*=ec-pl-tools], .ec-sf.ec-pl:has(.ec-pl-empty-own) [class*=ec-pl-bar] { display: none !important; }
.ec-sf.ec-pl:has(.ec-pl-empty-own) .ec-pl-layout { display: block !important; }
.ec-sf.ec-pl:has(.ec-pl-empty-own) .ec-pl-mbar { display: none !important; }

/* contact form fields: right-to-left like the rest of the site (Feedback 6.8 makes them ltr) */
.ModDNNFeedbackC .dnnFormItem input[type=text], .ModDNNFeedbackC .dnnFormItem textarea, .ModDNNFeedbackC .dnnFormItem input { direction: rtl !important; text-align: right !important; }
.ModDNNFeedbackC .dnnFormItem .dnnLabel, .ModDNNFeedbackC .dnnFormItem label { text-align: right !important; direction: rtl; }
.ModDNNFeedbackC .dnnForm, .ModDNNFeedbackC fieldset { direction: rtl; text-align: right; }


/* list view (rows): one product per row, image beside the details, buttons at the end */
.ec-sf.ec-pl .ec-pl-list.ec-pl-rows { grid-template-columns: 1fr !important; }
.ec-sf.ec-pl .ec-pl-rows .ec-card { display: grid !important; grid-template-columns: 200px 1fr; grid-template-areas: "img title" "img thumbs" "img meta" "img price"; column-gap: 22px; align-items: start; padding: 14px 14px 14px 70px !important; min-height: 0; }
.ec-sf.ec-pl .ec-pl-rows .ec-card-img { grid-area: img; width: 200px; height: 200px; margin: 0; }
.ec-sf.ec-pl .ec-pl-rows .ec-card-img img { width: 100%; height: 100%; object-fit: contain; }
.ec-sf.ec-pl .ec-pl-rows .ec-card-title { grid-area: title; font-size: 16px; font-weight: 700; margin-top: 6px; }
.ec-sf.ec-pl .ec-pl-rows .ec-card-thumbs { grid-area: thumbs; }
.ec-sf.ec-pl .ec-pl-rows .ec-card-meta, .ec-sf.ec-pl .ec-pl-rows .ec-card-sub { grid-area: meta; }
.ec-sf.ec-pl .ec-pl-rows .ec-price { grid-area: price; align-self: end; }
.ec-sf.ec-pl .ec-pl-rows .ec-card-actions { top: 14px !important; bottom: auto; inset-inline-end: 14px; flex-direction: column !important; }
@media (max-width: 575.98px) {
  .ec-sf.ec-pl .ec-pl-rows .ec-card { grid-template-columns: 110px 1fr; column-gap: 12px; padding: 10px 10px 10px 56px !important; }
  .ec-sf.ec-pl .ec-pl-rows .ec-card-img { width: 110px; height: 110px; }
  .ec-sf.ec-pl .ec-pl-rows .ec-card-title { font-size: 14px; }
}

/* DigiPay instalments badge under the price (Detail SSR, shown only while the DigiPay gateway is active) */
.opt-digipay { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; padding: 10px 14px; border-radius: 12px; background: linear-gradient(90deg, #eef4ff, #f7f9ff); border: 1px solid #dbe5ff; color: #1c2b4d; max-width: 460px; }
.opt-digipay img { flex: none; width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.opt-digipay span { display: flex; flex-direction: column; line-height: 1.7; }
.opt-digipay b { font-size: 14px; font-weight: 800; }
.opt-digipay small { font-size: 12px; color: #4a5a7a; }

/* ---- wholesale page (/major) ---- */
.opt-major-hero { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
@media (min-width: 768px) { .opt-major-hero { grid-template-columns: 1.6fr 1fr; } }
.opt-major-hero h1 { color: #fff !important; }
.opt-major-img { width: 100%; max-height: 300px; object-fit: cover; border-radius: 14px; }
.opt-major-card .opt-major-ic { display: inline-flex; width: 38px; height: 38px; border-radius: 12px; background: #1e1e1e; color: #ffd166; font-weight: 900; align-items: center; justify-content: center; margin-bottom: 6px; }
.opt-major-link { display: block; text-decoration: none !important; color: #0c0c0c !important; transition: box-shadow .2s, transform .2s; }
.opt-major-link:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); transform: translateY(-2px); }

/* mega menu: categories without children as picture chips at the bottom of the panel (Skin/Categories/Server) */
.ecommerceNav .submenu-box { display: flex; flex-direction: column; }
.ecommerceNav .submenu-box .scrollBarCateGories { flex: 1 1 auto; }
.ecommerceNav .opt-mm-chips { border-top: 1px solid #f1f1f1; padding: 14px 28px 16px; background: #fafafa; }
.ecommerceNav .opt-mm-chips-title { display: block; font-size: 13px; font-weight: 800; color: #6b7076; margin-bottom: 10px; }
.ecommerceNav .opt-mm-chips-list { display: flex; flex-wrap: wrap; gap: 8px; max-height: 132px; overflow-y: auto; }
.ecommerceNav .opt-mm-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; background: #fff; border: 1px solid #ececee; color: #0c0c0c !important; font-size: 13px; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.ecommerceNav .opt-mm-chip:hover { border-color: #1e1e1e; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.ecommerceNav .opt-mm-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #f1f1f1; }
.ecommerceNav .CategoriesMenu .megamenu-holder { align-items: stretch !important; }
.ecommerceNav .submenu-box { overflow: hidden !important; }
.ecommerceNav .submenu-box .scrollBarCateGories { min-height: 0; overflow-y: auto; }
.ecommerceNav .opt-mm-chips { margin-top: auto; }

.ecommerceNav .submenu-box { max-height: none !important; }

.ecommerceNav .moreProductd { background: #fafafa !important; margin: 0 !important; border-radius: 0 !important; padding: 0 28px 14px !important; justify-content: flex-start !important; }
.ecommerceNav .moreProductd .view-all { color: #1e1e1e !important; font-weight: 800; font-size: 13px; text-decoration: none; }
.ecommerceNav .moreProductd .view-all::after { content: ' ←'; }
.ecommerceNav .moreProductd .view-all:hover { text-decoration: underline; }

.ecommerceNav .moreProductd { width: 100% !important; align-self: stretch !important; max-width: none !important; }


/* ---- cart / checkout (Checkout "ssr") in the look of the site's previous cart (iransite) ---- */
.ec-sf.ec-co { max-width: 1320px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 992px) { .ec-sf.ec-co { padding-inline: 32px; } }
/* steps: a thin line with dots and labels */
.ec-sf.ec-co .ec-co-steps { display: flex; justify-content: space-between; gap: 0; padding: 18px 0 8px; margin: 0 0 22px; list-style: none; position: relative; }
.ec-sf.ec-co .ec-co-steps li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; color: #6b7076; font-size: 14px; }
.ec-sf.ec-co .ec-co-steps li i { display: none; }
.ec-sf.ec-co .ec-co-steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #c8c8cc; position: relative; z-index: 1; box-shadow: 0 0 0 4px #fff; }
.ec-sf.ec-co .ec-co-steps li::after { content: ""; position: absolute; top: 6px; inset-inline-start: 50%; width: 100%; height: 2px; background: #e0e0e2; }
.ec-sf.ec-co .ec-co-steps li:last-child::after { display: none; }
.ec-sf.ec-co .ec-co-steps li.ec-on, .ec-sf.ec-co .ec-co-steps li.ec-done { color: #0c0c0c; font-weight: 700; }
.ec-sf.ec-co .ec-co-steps li.ec-on::before, .ec-sf.ec-co .ec-co-steps li.ec-done::before { background: #1e1e1e; }
.ec-sf.ec-co .ec-co-steps li.ec-done::after { background: #1e1e1e; }
/* items: one rounded card each */
.ec-sf.ec-co .ec-co-box:has(.ec-co-lines) { border: 0 !important; background: transparent !important; padding: 0 !important; box-shadow: none !important; }
.ec-sf.ec-co .ec-co-line { border: 1px solid #e0e0e2; border-radius: 8px; padding: 16px; margin-bottom: 18px; background: #fff; }
.ec-sf.ec-co .ec-co-line + .ec-co-line { border-top: 1px solid #e0e0e2 !important; }
.ec-sf.ec-co .ec-co-name { color: #0c0c0c !important; font-weight: 700; }
/* quantity: dark + and - buttons around the number, as before */
.ec-sf.ec-co .ec-co-qty { border: 0 !important; gap: 0; border-radius: 8px; overflow: hidden; }
.ec-sf.ec-co .ec-co-qty button { width: 38px; height: 38px; background: #1e1e1e !important; color: #fff !important; border: 0 !important; border-radius: 0 !important; }
.ec-sf.ec-co .ec-co-qty .ec-co-n { min-width: 56px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #1e1e1e; background: #fff; font-weight: 700; }
.ec-sf.ec-co .ec-co-later { color: #3f444d !important; font-size: 13px; }
/* summary: light grey panel, the green «confirm and continue» button */
.ec-sf.ec-co .ec-co-summary { background: #f5f5f5 !important; border: 0 !important; border-radius: 10px; padding: 20px !important; box-shadow: none !important; }
.ec-sf.ec-co .ec-co-next { background: #27ae4f !important; border-color: #27ae4f !important; color: #fff !important; border-radius: 8px !important; font-weight: 800; min-height: 46px; }
.ec-sf.ec-co .ec-co-next:hover { background: #1f9442 !important; }
.ec-sf.ec-co .ec-co-sum-row.ec-co-total { font-weight: 800; }
.ec-sf.ec-co .ec-co-tabs button.ec-on { border-color: #1e1e1e !important; color: #0c0c0c !important; }
/* the checkout sits in the theme's full-width pane: the same row fix as the lists */
.dng-row:has(.ec-sf.ec-co) { margin-inline: 0; }
.dng-row:has(.ec-sf.ec-co) > .dng-column { padding-inline: 0; }
/* the courier (Alopeyk) is paid to the courier on delivery: not «free» */
.ec-co-method:has(img[src*='Alopeyk' i]) em, .ec-co-method:has(img[src*='alopeyk' i]) em { font-size: 0 !important; }
.ec-co-method:has(img[src*='Alopeyk' i]) em::after { content: 'هزینه هنگام تحویل'; font-size: 13px; font-style: normal; color: #3f444d; }

.ec-sf.ec-co .ec-co-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ec-sf.ec-co .ec-co-qty { flex: none !important; width: auto !important; }
@media (max-width: 575.98px) { .ec-sf.ec-co .ec-co-qty button { width: 34px; height: 34px; } .ec-sf.ec-co .ec-co-qty .ec-co-n { min-width: 42px; height: 34px; } .ec-sf.ec-co .ec-co-line { padding: 12px; } }


/* product cards (grid): order as the live site - image, title, price, model thumbnails; wish / add-to-cart stay at the bottom; no model count */
.ec-sf.ec-pl .ec-card .ec-models { display: none !important; }
.ec-sf.ec-pl .ec-card-sub:not(:has(.ec-likes)) { display: none !important; }
.ec-sf.ec-pl .ec-card-img { order: 1; }
.ec-sf.ec-pl .ec-card-title { order: 2; }
.ec-sf.ec-pl .ec-card > .ec-price { order: 3; }
.ec-sf.ec-pl .ec-card > .ec-sold { order: 4; }
.ec-sf.ec-pl .ec-card-thumbs { order: 5; }
.ec-sf.ec-pl .ec-card-meta, .ec-sf.ec-pl .ec-card-sub, .ec-sf.ec-pl .ec-card-summary, .ec-sf.ec-pl .ec-card-gift { order: 6; }
.ec-sf.ec-pl .ec-card-meta:not(:has(.ec-brand:not(:empty), .ec-rate)) { display: none !important; }
.ec-sf.ec-pl .ec-card .ec-old:empty { display: none; }
