/* IdeaMoon v9 — stable header, checkout, address book and project carousel */
.im-header{position:sticky!important;top:0;z-index:1100;isolation:isolate;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);background:#101d29f7!important}
html{scroll-padding-top:98px}.im-nav{scroll-margin-top:100px}
.shop-category-nav{position:relative;z-index:100}
.admin-header{position:sticky;top:0;z-index:1100;background:#101d29f7;backdrop-filter:blur(10px)}
.admin-header .im-admin-brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:#fff}.im-admin-brand img{width:60px!important;height:62px!important;max-width:none;object-fit:contain}.im-admin-brand>span{display:flex;flex-direction:column}.im-admin-brand strong{font-size:24px;font-weight:900;line-height:1.35}.im-admin-brand small{font-size:9px;color:#d8dfe4;font-weight:600}
/* Course link: left-aligned in RTL header */
.courses-section .section-heading{display:flex!important;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.courses-section .section-heading #all-courses{margin-right:auto!important;margin-left:0!important;float:none!important;order:2}
.courses-section .section-heading h2{order:1}
/* New project carousel: arrows on either side of the visible row */
.v9-project-frame{position:relative;padding-inline:46px}
.v9-project-frame .v8-project-carousel{overflow:hidden}
.v9-project-arrow{position:absolute;top:42%;transform:translateY(-50%);width:42px;height:42px;z-index:6;display:flex;align-items:center;justify-content:center;border:1px solid #d8e0e5;border-radius:50%;background:#fff;color:#14293b;font:900 25px Tahoma,Arial,sans-serif;box-shadow:0 7px 24px #12212e26;cursor:pointer;transition:.2s}
.v9-project-arrow:hover:not(:disabled){background:#ffc629;border-color:#ffc629;transform:translateY(-50%) scale(1.05)}
.v9-project-arrow:disabled{opacity:.28;cursor:not-allowed;box-shadow:none}.v9-project-arrow[data-side="left"]{left:0}.v9-project-arrow[data-side="right"]{right:0}
.v9-project-frame .v8-project-carousel #project-grid{scrollbar-width:none;touch-action:pan-x pan-y;scroll-behavior:smooth}.v9-project-frame #project-grid::-webkit-scrollbar{display:none}
.v9-project-tip{text-align:center;font-size:10px;color:#82919d;margin:2px 0 0}
/* Persistent addresses / delivery step */
.im-address-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:19px}.im-address-toolbar p{color:#758691;font-size:12px;margin:5px 0 0}
.im-address-card{border:1px solid #e0e9ee;border-radius:16px;background:#fff;padding:17px;display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:12px;overflow-wrap:anywhere}
.im-address-card strong{font-size:14px;color:#192e3c}.im-address-card p{margin:8px 0;color:#3d5263;font-size:12px;line-height:2}.im-address-card small{display:block;color:#87959d;font-size:11px;line-height:1.9}
.im-address-actions{display:flex;gap:7px;flex-wrap:wrap}.im-address-actions button{border:1px solid #e1e7ea;border-radius:10px;background:#f8fafc;padding:8px 12px;color:#254053;font:700 11px Vazirmatn,Tahoma,sans-serif;cursor:pointer}.im-address-actions .im-address-danger{background:#fff3f2;color:#b44547;border-color:#f5c6c4}
.im-address-empty{padding:40px 20px;text-align:center;background:#f8fafb;border:1px dashed #d7e2e8;border-radius:14px;font-size:12px;line-height:2;color:#738796}
.im-address-dialog h2,.im-checkout h2{font-size:19px;margin:0 0 9px;color:#192f40}.im-address-muted{font-size:11px;color:#84939d;line-height:1.9;margin:0 0 18px}.im-address-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:13px}.im-address-form-grid>label{display:flex;flex-direction:column;gap:6px;color:#354d5e;font-size:11px;font-weight:800}.im-address-form-grid input{min-width:0;border:1px solid #dce5eb;background:#fff;color:#1c3343;border-radius:10px;padding:11px 12px;font:inherit;font-size:12px}.im-span-2{grid-column:1/-1}
.im-address-map-head{margin:17px 0 8px;display:flex;align-items:center;justify-content:space-between;gap:12px}.im-address-map-head strong{font-size:12px}.im-address-map-head small,.im-map-note{font-size:10px;color:#86949e;line-height:1.9}
.im-address-map{width:100%;height:245px;border-radius:13px;overflow:hidden;border:1px solid #d9e2e7;background:#e6edef;z-index:0}.im-map-fallback{height:100%;display:grid;place-items:center;text-align:center;padding:20px;font-size:12px;color:#6e8392;line-height:2}
.im-dialog-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:18px}.im-dialog-actions .btn{font:800 12px Vazirmatn,Tahoma,sans-serif;cursor:pointer}
.im-checkout-options{max-height:290px;overflow:auto;display:grid;gap:9px}.im-checkout-option{display:flex;align-items:flex-start;gap:12px;border:1px solid #e3e8ec;padding:14px;border-radius:12px;background:#fff;cursor:pointer}.im-checkout-option:has(input:checked){background:#fffaf0;border-color:#e4b723}.im-checkout-option input{margin-top:5px;accent-color:#dbac13}.im-checkout-option strong{display:block;font-size:12px}.im-checkout-option p{font-size:11px;color:#526674;line-height:2;margin:6px 0}.im-checkout-option small{font-size:10px;color:#82909b}
.im-order-address{font-size:11px;color:#526673;line-height:1.9;max-width:280px;white-space:normal;word-break:break-word}.im-order-address strong{color:#193243}
.im-admin-address-table{width:100%;border-collapse:collapse;font-size:11px}.im-admin-address-table td,.im-admin-address-table th{padding:12px;border-bottom:1px solid #e5ebef;text-align:right;vertical-align:top}.im-admin-address-table th{color:#fff;background:#172c3b}.im-admin-address-table td{line-height:1.85;color:#435a68;word-break:break-word}
.v9-footer-help{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.v9-footer-help strong{font-size:12px;color:#ffcd38;white-space:nowrap}.v9-footer-help a{white-space:normal}
@media(max-width:770px){.v9-project-frame{padding-inline:36px}.v9-project-arrow{width:32px;height:32px;font-size:21px}.v9-project-arrow[data-side="left"]{left:-1px}.v9-project-arrow[data-side="right"]{right:-1px}.im-address-card{flex-direction:column}.im-address-toolbar{align-items:flex-start;flex-direction:column}.im-address-form-grid{grid-template-columns:1fr}.im-address-map-head{align-items:flex-start;flex-direction:column;gap:2px}.admin-header .im-admin-brand img{width:47px!important;height:51px!important}.im-admin-brand strong{font-size:19px}.im-admin-brand small{font-size:8px}}

/* Dialog and map must appear above sticky nav. */
.modal-shade{z-index:2400!important}.im-search-overlay{z-index:2500!important}
/* The cart drawer must remain above the sticky header; checkout dialog above both. */
.cart-shade{z-index:2200!important}.cart-panel{z-index:2300!important}
