/* ==========================================================================
MOUROJ — Brand Theme v9 (consolidated)
Single-source stylesheet: tokens → base → header → cards → PDP → reviews
→ category → tabs → lightbox → home → footer → fonts.
Supersedes v8 base + fix packs v8.1–v8.26. No rule matching live markup
was removed; see changelog delivered with this file.
Palette: sidr green #1c3622 · stone canvas #f4f4f2 · warm stage #f6f1e6
· honey gold #c19a3f
========================================================================== */
/* --------------------------------------------------------------------------
Design tokens (final values; earlier cream/grey token blocks merged)
-------------------------------------------------------------------------- */
:root {
/* Greens */
--mj-green-900: #12261a;
--mj-green-800: #1c3622;   /* logo green — the ONE header green */
--mj-green-700: #2a5238;
--mj-green-600: #3c6b4f;
--mj-green-100: #e7efe9;
/* Neutrals — stone canvas, warm-neutral hairlines */
--mj-cream:   #f4f4f2;
--mj-cream-2: #eae8e4;
--mj-ink:     #24302a;
--mj-muted:   #6f7d6f;
--mj-line:    #d9d6d0;
--mj-white:   #ffffff;
/* The ONE warm surface = product spotlight */
--mj-stage:      #f6f1e6;
--mj-stage-line: #e8e0cd;
/* Golds */
--mj-gold:       #c19a3f;
--mj-gold-dark:  #9d7c2c;
--mj-gold-light: #ecd9a8;
/* Accents */
--mj-badge-bg: var(--mj-gold);
--mj-badge-fg: var(--mj-green-900);
--mj-icon:     var(--mj-green-800);
/* Type */
--mj-font-body: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
--mj-font-head: 'Zain', 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
/* Shape & motion */
--mj-radius:    14px;
--mj-radius-sm: 9px;
--mj-shadow:    0 12px 32px rgba(18, 38, 26, .12);
--mj-shadow-sm: 0 2px 6px rgba(18, 38, 26, .08);
--mj-trans:     .25s ease;
--mj-actions-h: 24px;
}
/* --------------------------------------------------------------------------
2) Base & typography
-------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
font-family: var(--mj-font-body);
font-size: 15px;
line-height: 1.75;
background: var(--mj-cream);
color: var(--mj-ink);
display: flex;              /* flex shell: footer sticks to the bottom */
flex-direction: column;
min-height: 100vh;
}
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5, h6 {
font-family: var(--mj-font-head);
font-weight: 700;
color: var(--mj-green-800);
line-height: 1.4;
}
h1 { font-size: 2.1rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
a { color: var(--mj-green-700); transition: color var(--mj-trans); }
a:hover { color: var(--mj-gold-dark); }
::selection { background: var(--mj-gold-light); color: var(--mj-green-900); }
hr { border-color: var(--mj-line); }
label, .form-label, .col-form-label, .form-check-label { color: var(--mj-ink); }
:focus-visible {
outline: 2px solid var(--mj-gold) !important;
outline-offset: 2px;
}
/* --------------------------------------------------------------------------
3) Page layout (OpenCart shell overrides)
-------------------------------------------------------------------------- */
#container { position: static; width: 100%; min-height: auto; margin-bottom: 0; flex: 1 0 auto; }
#content, #column-left, #column-right { padding-bottom: 2rem; }
/* --------------------------------------------------------------------------
4) Header — one stone row; search lives in a slide-down panel
-------------------------------------------------------------------------- */
.site-header {
position: sticky;
top: 0;
z-index: 1040;
background: rgba(244, 244, 242, .96);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--mj-line);
padding-block: 10px;
}
.header-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 14px;
position: relative;   /* anchor for the search panel */
}
/* Neutralize the menu module wrappers so links join the header row */
.header-bar > .container,
#menu { display: contents; }
#category,
#menu .navbar-toggler { display: none !important; }
/* ----- Logo ----- */
.header-logo { flex: 0 0 auto; max-width: 200px; }
.header-logo a,
.header-logo h1 {
display: inline-flex;
align-items: center;
background: transparent;
box-shadow: none;
padding: 0;
margin: 0;
}
.header-logo img { max-height: 52px; width: auto; }
.header-logo h1 { font-size: 22px; line-height: 1; }
.header-logo h1 a { color: var(--mj-green-800); }
@media (min-width: 992px) {
.header-logo img { max-height: 60px; }
}
/* ----- Category links: inline (desktop) / panel (mobile) ----- */
#navbar-menu { min-width: 0; }
@media (min-width: 992px) {
#navbar-menu { flex: 0 1 auto; }
#navbar-menu .navbar-nav { flex-direction: row; flex-wrap: wrap; gap: 2px; }
#navbar-menu .navbar-nav > li > a,
#navbar-menu .navbar-nav > li > a.dropdown-item {
color: var(--mj-green-800);
font-weight: 700;
font-size: 14px;
padding: 6px 10px;
border-radius: 8px;
background: transparent;
white-space: nowrap;
width: auto;
display: inline-block;
text-shadow: none;
}
#navbar-menu .navbar-nav > li > a:hover,
#navbar-menu .navbar-nav > li > a.dropdown-item:hover {
color: var(--mj-gold-dark);
background: var(--mj-cream-2);
}
#navbar-menu .dropdown-menu {
background: var(--mj-white);
border: 1px solid var(--mj-line);
border-radius: 0 0 var(--mj-radius-sm) var(--mj-radius-sm);
box-shadow: var(--mj-shadow);
margin-top: 0;
}
/* Active category in header nav */
#navbar-menu .navbar-nav > li > a.active,
#navbar-menu .navbar-nav > li > a.dropdown-item.active {
color: var(--mj-gold-dark);
background: var(--mj-cream-2);
box-shadow: inset 0 -2px 0 var(--mj-gold);
}
}
@media (max-width: 991.98px) {
#navbar-menu { order: 20; flex: 0 0 100%; }
#navbar-menu.show {
background: var(--mj-cream-2);
border: 1px solid var(--mj-line);
border-radius: var(--mj-radius-sm);
padding: .5rem;
margin-top: .5rem;
box-shadow: var(--mj-shadow-sm);
}
#navbar-menu .navbar-nav { flex-direction: column; gap: 2px; }
#navbar-menu .navbar-nav > li { width: 100%; }
#navbar-menu .navbar-nav > li > a,
#navbar-menu .navbar-nav > li > a.dropdown-item {
display: flex;
width: 100%;
padding: 9px 10px;
color: var(--mj-green-800);
font-weight: 700;
border-radius: 8px;
background: transparent;
white-space: normal;
}
#navbar-menu .navbar-nav > li > a:hover {
background: var(--mj-white);
color: var(--mj-gold-dark);
}
#navbar-menu .dropdown-menu {
position: static;
width: 100%;
background: transparent;
border: 0;
box-shadow: none;
padding-inline-start: 14px;
margin: 0;
}
#navbar-menu .dropdown-menu .dropdown-item { color: var(--mj-green-700); font-size: 14px; }
}
/* ----- Search: hidden by default, slides down as a full-width panel ----- */
.header-search {
display: none;
position: absolute;
top: 100%;
inset-inline: 0;
margin: 0;
padding: 14px 12px 16px;
background: rgba(244, 244, 242, .98);
border-bottom: 1px solid var(--mj-line);
box-shadow: 0 18px 30px rgba(18, 38, 26, .10);
z-index: 1035;
flex: none;
min-width: 0;
max-width: none;
}
.header-bar.search-open .header-search { display: block; }
#search { margin-bottom: 0; }
.header-search form,
.header-search #search,
.header-search .input-group {
display: flex;
flex-wrap: nowrap;
align-items: stretch;
width: 100%;
max-width: 640px;
margin-inline: auto;
border-radius: 999px;
border: 1px solid var(--mj-line);
background: var(--mj-cream-2);
overflow: hidden;
box-shadow: var(--mj-shadow-sm);
transition: border-color var(--mj-trans), background var(--mj-trans);
}
.header-search .input-group:focus-within,
.header-search #search:focus-within {
background: var(--mj-white);
border-color: var(--mj-green-600);
}
.header-search input[type="text"],
.header-search .form-control,
.header-search .form-control-lg {
flex: 1 1 auto;
width: auto;
min-width: 0;
height: auto;
border: 0;
background: transparent;
box-shadow: none;
padding: .55rem 1.1rem;
font-size: 14px;
color: var(--mj-ink);
}
.header-search input:focus,
.header-search .form-control:focus { outline: none; box-shadow: none; }
.header-search button,
.header-search .btn-lg {
flex: 0 0 auto;
width: auto;
border: 0;
background: var(--mj-green-800);
color: var(--mj-cream);
padding: .55rem 1.15rem;
font-size: 14px;
line-height: 1.4;
text-shadow: none;
transition: background var(--mj-trans);
}
.header-search button:hover { background: var(--mj-green-600); }
.header-search button i { font-size: 14px; }
/* ----- Icon row ----- */
.header-actions {
flex: 0 0 auto;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
gap: 13px;
color: var(--mj-icon);
margin-inline-start: auto;
}
.header-actions > * {
display: flex;
align-items: center;
height: var(--mj-actions-h);
line-height: 1;
}
.header-actions form { margin: 0; }
.header-actions a,
.header-actions button,
.header-actions .dropdown-toggle,
.header-actions i { color: inherit; }
.header-actions i { font-size: 16px; }
.header-actions a,
.header-actions .dropdown-toggle {
display: inline-flex;
align-items: center;
gap: 5px;
text-decoration: none;
white-space: nowrap;
cursor: pointer;
line-height: 1;
}
.header-actions a:hover,
.header-actions button:hover,
.header-actions .dropdown-toggle:hover { color: var(--mj-gold-dark); }
/* Search toggle — visible on ALL screen sizes */
.header-search-toggle {
display: inline-flex;
align-items: center;
background: none;
border: 0;
padding: 0;
cursor: pointer;
line-height: 1;
}
.header-search-toggle i { font-size: 16px; }
/* Burger — below lg only */
.header-menu-toggle {
display: none;
background: none;
border: 0;
padding: 0;
cursor: pointer;
line-height: 1;
color: var(--mj-icon);
}
.header-menu-toggle:hover { color: var(--mj-gold-dark); }
.header-menu-toggle i { font-size: 20px; }
@media (max-width: 991.98px) {
.header-menu-toggle { display: inline-flex; align-items: center; }
}
@media (min-width: 992px) {
.header-menu-toggle { display: none !important; }
}
/* ----- Cart: icon + gold badge ----- */
#cart { margin-bottom: 0; }
#cart button,
#cart .btn,
#cart .btn-lg {
background: transparent;
border: 0;
box-shadow: none;
padding: 0;
color: inherit;
font-size: 0;               /* hides loose text */
display: inline-flex;
align-items: center;
line-height: 1;
text-shadow: none;
}
#cart button i,
#cart .btn i { font-size: 16px; }
#cart button span:not(.cart-badge),
#cart .btn span:not(.cart-badge) { display: none; }
#cart button::after,
#cart .btn::after { display: none; }
.header-basket { min-width: 0; }
.cart-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
padding: 0 5px;
margin-inline-start: 6px;
border-radius: 999px;
background: var(--mj-badge-bg);
color: var(--mj-badge-fg);
font-size: 11px;
font-weight: 700;
line-height: 1;
}
#cart .dropdown-menu {
background: var(--mj-white);
border: 1px solid var(--mj-line);
border-radius: var(--mj-radius-sm);
box-shadow: var(--mj-shadow);
}
#cart .dropdown-menu li { min-width: 280px; color: var(--mj-ink); }
/* ----- Language switcher: translate icon + ISO chip + caret ----- */
.header-language .dropdown-toggle,
.header-language .dropdown > button,
.header-language .dropdown > span {
font-size: 14px;
gap: 6px;
}
.header-language .bi { font-size: 16px; }
/* The toggle stays icon-only; the chip survives only inside the menu */
.header-language .dropdown-toggle .lang-code { display: none; }
.header-language .lang-caret { font-size: 11px; opacity: .7; }
.lang-code {
display: inline-block;
font-size: 10.5px;
font-weight: 800;
letter-spacing: .05em;      /* Latin codes only — safe */
line-height: 1.4;
color: var(--mj-green-800);
background: var(--mj-cream-2);
border: 1px solid var(--mj-line);
border-radius: 6px;
padding: 1px 6px;
}
.language-item { display: flex; align-items: center; gap: 8px; }
.language-item .lang-name { font-size: 13.5px; }
.language-item.active,
.language-item.active:hover {
background: var(--mj-green-100);
color: var(--mj-green-800);
font-weight: 700;
}
.header-language .dropdown-menu,
.header-language .dropdown-menu .dropdown-item { font-size: 14px; }
/* ----- Account caret optics (icons-only header) ----- */
.header-account .dropdown-toggle { gap: 0; }
.header-account .dropdown-toggle > i.fa-caret-down,
.header-account .dropdown-toggle > i.bi-caret-down-fill {
font-size: 10px;
opacity: .65;
margin-inline-start: 3px;
}
/* --------------------------------------------------------------------------
5) Dropdowns + nested currency accordion inside the account menu
-------------------------------------------------------------------------- */
.dropdown-menu {
background: var(--mj-white);
border: 1px solid var(--mj-line);
border-radius: var(--mj-radius-sm);
box-shadow: var(--mj-shadow);
padding: .4rem;
}
.dropdown-item { color: var(--mj-ink); border-radius: 6px; font-size: 14px; }
.dropdown-item:hover,
.dropdown-item:focus { background: var(--mj-green-100); color: var(--mj-green-800); }
.dropdown-divider { border-color: var(--mj-line); }
.header-account .dropdown-menu .dropdown > .dropdown-toggle,
.header-account .dropdown-menu .dropdown > button {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: .35rem .75rem;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--mj-ink);
font-size: 14px;
font-weight: 400;
text-align: start;
}
.header-account .dropdown-menu .dropdown > .dropdown-toggle:hover,
.header-account .dropdown-menu .dropdown > button:hover {
background: var(--mj-green-100);
color: var(--mj-green-800);
}
.header-account .dropdown-menu .dropdown .dropdown-menu {
position: static;
width: 100%;
background: transparent;
border: 0;
border-top: 1px solid var(--mj-line);
border-radius: 0;
box-shadow: none;
margin: .25rem 0;
padding: .25rem 0 .25rem .75rem;
}
.header-account .dropdown-menu .dropdown .dropdown-menu .dropdown-item {
font-size: 13px;
padding: .25rem .5rem;
}
/* --------------------------------------------------------------------------
6) Buttons & form fields
-------------------------------------------------------------------------- */
.btn {
font-family: var(--mj-font-body);
font-weight: 700;
border-radius: var(--mj-radius-sm);
transition: all var(--mj-trans);
}
.btn-primary { background: var(--mj-green-800); border-color: var(--mj-green-800); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--mj-green-600); border-color: var(--mj-green-600); color: #fff; }
.btn-outline-primary { color: var(--mj-green-700); border-color: var(--mj-green-600); }
.btn-outline-primary:hover { background: var(--mj-green-700); border-color: var(--mj-green-700); color: #fff; }
.btn-light, .btn-default { background: var(--mj-cream-2); border: 1px solid var(--mj-line); color: var(--mj-green-800); }
.btn-light:hover, .btn-default:hover { background: var(--mj-gold-light); border-color: var(--mj-gold); color: var(--mj-green-900); }
.btn-link { color: var(--mj-green-700); }
.btn-link:hover { color: var(--mj-gold-dark); }
.btn:focus { box-shadow: 0 0 0 .2rem rgba(193, 154, 63, .28); outline: none; }
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea {
background: var(--mj-cream-2);
border: 1px solid var(--mj-line);
border-radius: var(--mj-radius-sm);
color: var(--mj-ink);
box-shadow: none;
transition: border-color var(--mj-trans), box-shadow var(--mj-trans), background var(--mj-trans);
}
.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
textarea:focus {
background: var(--mj-white);
border-color: var(--mj-green-600);
box-shadow: 0 0 0 .2rem rgba(60, 107, 79, .15);
color: var(--mj-ink);
}
.form-control::placeholder,
textarea::placeholder,
input::placeholder { color: var(--mj-muted); }
/* Fields inside content columns read as editable (white, not mist) */
#content .form-control,
#review .form-control,
#product-info .form-control {
background: var(--mj-white);
border: 1px solid var(--mj-line);
}
#content .form-control:focus,
#review .form-control:focus {
border-color: var(--mj-gold);
box-shadow: 0 0 0 3px rgba(193, 154, 63, .18);
background: var(--mj-white);
}
/* Radios & checkboxes — green ring, gold dot / cream tick */
.form-check-input {
accent-color: var(--mj-green-700);
-webkit-appearance: none;
appearance: none;
width: 1.15em;
height: 1.15em;
margin-top: .25em;
border: 2px solid var(--mj-green-600);
background: var(--mj-cream);
position: relative;
cursor: pointer;
transition: background var(--mj-trans), border-color var(--mj-trans), box-shadow var(--mj-trans);
}
.form-check-input[type="radio"] { border-radius: 50%; }
.form-check-input[type="checkbox"] { border-radius: .35em; }
.form-check-input:focus {
outline: none;
box-shadow: 0 0 0 .2rem rgba(60, 107, 79, .2);
border-color: var(--mj-green-600);
}
.form-check-input:checked { background: var(--mj-green-700); border-color: var(--mj-green-700); }
.form-check-input[type="radio"]:checked::after {
content: "";
position: absolute;
inset: 3px;
border-radius: 50%;
background: var(--mj-gold-light);
}
.form-check-input[type="checkbox"]:checked::after {
content: "";
position: absolute;
left: .38em;
top: .12em;
width: .3em;
height: .6em;
border: solid var(--mj-cream);
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
/* Switch toggles */
.form-switch .form-check-input {
width: 2.1em;
height: 1.15em;
border-radius: 1em;
background: var(--mj-cream-2);
border: 2px solid var(--mj-line);
}
.form-switch .form-check-input::after {
content: "";
position: absolute;
top: 50%;
transform: translateY(-50%);
left: .1em;
width: .7em;
height: .7em;
border-radius: 50%;
background: var(--mj-green-600);
transition: left var(--mj-trans);
}
.form-switch .form-check-input:checked { background: var(--mj-green-100); border-color: var(--mj-green-600); }
.form-switch .form-check-input:checked::after { left: calc(100% - .85em); background: var(--mj-green-700); }
/* --------------------------------------------------------------------------
7) Breadcrumb — gold chevrons, RTL-safe, terminal crumb muted
-------------------------------------------------------------------------- */
.breadcrumb {
background: transparent;
border: 0;
border-bottom: 1px solid var(--mj-line);
border-radius: 0;
margin: 0 0 16px;
padding: 8px 2px;
color: var(--mj-muted);
}
.breadcrumb > li.breadcrumb-item { padding: 0 20px; text-shadow: none; }
.breadcrumb > li.breadcrumb-item > a { color: var(--mj-green-700); }
.breadcrumb > li.breadcrumb-item > a:hover { color: var(--mj-gold-dark); }
.breadcrumb > li.breadcrumb-item::after {
content: "";
position: absolute;
top: 50%;
right: -4px;
left: auto;
width: 8px;
height: 8px;
background: transparent;
border: 0 solid var(--mj-gold);
border-top-width: 2px;
border-right-width: 2px;
transform: translateY(-50%) rotate(45deg);
}
[dir="rtl"] .breadcrumb > li.breadcrumb-item::after {
right: auto;
left: -4px;
transform: translateY(-50%) rotate(-135deg);
}
/* Current crumb = a location, not a link; no separator after it */
.breadcrumb > li.breadcrumb-item.active,
.breadcrumb > li.breadcrumb-item:last-child {
color: var(--mj-ink);
font-weight: 700;
}
.breadcrumb > li.breadcrumb-item:last-child { pointer-events: none; }
.breadcrumb > li.breadcrumb-item:last-child::after { content: none; }
/* --------------------------------------------------------------------------
8) Product cards, grid & sidebar
-------------------------------------------------------------------------- */
.product-thumb,
.product-layout .thumb {
background: var(--mj-white);
border: 1px solid var(--mj-line);
border-radius: var(--mj-radius);
padding: 16px;
margin-bottom: 24px;
box-shadow: var(--mj-shadow-sm);
transition: transform var(--mj-trans), box-shadow var(--mj-trans);
}
.product-thumb:hover,
.product-layout .thumb:hover { transform: translateY(-4px); box-shadow: var(--mj-shadow); }
/* Image well = the warm spotlight stage */
.product-thumb .image,
.product-layout .thumb .image {
position: relative;
background: var(--mj-stage);
box-shadow: inset 0 0 0 1px var(--mj-stage-line);
border-radius: var(--mj-radius-sm);
padding: 12px;
margin-bottom: 12px;
}
.product-thumb .image img { border-radius: 6px; }
.product-thumb h4 a,
.product-thumb .caption h4 a { color: var(--mj-ink); font-weight: 700; }
.product-thumb h4 a:hover { color: var(--mj-green-700); }
.product-thumb .content h4 { margin-bottom: 2px; }
/* Hover-reveal quick actions on the card image */
.thumb-quick {
position: absolute;
top: 18px;
inset-inline-end: 18px;
display: flex;
flex-direction: column;
gap: 6px;
opacity: 0;
transform: translateY(-4px);
transition: opacity var(--mj-trans), transform var(--mj-trans);
}
.product-thumb:hover .thumb-quick,
.product-thumb:focus-within .thumb-quick { opacity: 1; transform: none; }
@media (hover: none) { .thumb-quick { opacity: 1; transform: none; } }
.thumb-quick button {
width: 36px;
height: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid var(--mj-line);
border-radius: 50%;
background: rgba(255, 255, 255, .94);
color: var(--mj-green-700);
font-size: 14px;
cursor: pointer;
transition: background var(--mj-trans), color var(--mj-trans), border-color var(--mj-trans);
}
.thumb-quick button:hover {
background: var(--mj-gold-light);
border-color: var(--mj-gold);
color: var(--mj-green-900);
}
/* Reserved star row keeps card heights even */
.rating-row { min-height: 20px; margin: 2px 0 6px; }
.rating-row .rating { display: flex; gap: 2px; }
/* Labeled full-width cart button */
.thumb-actions { margin-top: 12px; }
.thumb-cart {
width: 100%;
min-height: 44px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
border: 0;
border-radius: var(--mj-radius-sm);
background: var(--mj-green-800);
color: var(--mj-cream);
font-family: var(--mj-font-body);
font-size: 14px;
font-weight: 700;
cursor: pointer;
transition: background var(--mj-trans);
}
.thumb-cart:hover { background: var(--mj-green-600); }
.thumb-cart i { font-size: 13px; }
/* Prices & stars */
.price { color: var(--mj-green-800); margin-bottom: 0; }
.price-new { font-weight: 800; color: var(--mj-green-800); }
.price-old { color: var(--mj-muted); text-decoration: line-through; }
.price-tax { color: var(--mj-muted); }
.rating .fa-star { color: var(--mj-gold); font-size: 15px; }
.rating .fa-star + .fa-star { color: var(--mj-gold-dark); }
/* Blog */
.blog-thumb { border: 1px solid var(--mj-line); border-radius: var(--mj-radius-sm); }
.blog-thumb h4 { color: var(--mj-ink); }
/* Sidebar category list (counts pruned by header JS; spans styled here) */
.list-group-item { border-color: var(--mj-line); }
#column-left .list-group,
#column-right .list-group { overflow: hidden; border-radius: var(--mj-radius-sm); }
#column-left .list-group-item,
#column-right .list-group-item {
border-left: 0;
border-right: 0;
border-radius: 0 !important;
margin-bottom: 0;
background: var(--mj-white);
}
#column-left .list-group-item:first-child,
#column-right .list-group-item:first-child { border-top: 0; }
#column-left .list-group-item:last-child,
#column-right .list-group-item:last-child { border-bottom: 0; }
#column-left .list-group-item.active,
#column-right .list-group-item.active,
#column-left .list-group-item.active:hover,
#column-right .list-group-item.active:hover {
background: var(--mj-green-800);
border-color: var(--mj-green-800);
color: var(--mj-cream);
font-weight: 700;
box-shadow: inset 4px 0 0 var(--mj-gold);
}
.sidebar-count {
margin-inline-start: 4px;
font-size: 12px;
font-weight: 400;
color: var(--mj-muted);
opacity: .85;
}
#column-left .list-group-item.active .sidebar-count,
#column-right .list-group-item.active .sidebar-count {
color: var(--mj-gold-light);
opacity: 1;
}
.list-group-item .badge, .list-group-item small { color: var(--mj-muted); font-weight: 400; }
/* --------------------------------------------------------------------------
9) Product page (PDP)
-------------------------------------------------------------------------- */
/* Page hero title with gold underline */
#content > h1,
#content > h2 {
font-size: clamp(1.7rem, 3vw, 2.3rem);
margin: 0 0 24px;
}
#content > h1::after,
#content > h2::after {
content: "";
display: block;
width: 64px;
height: 3px;
border-radius: 2px;
background: var(--mj-gold);
margin-top: 8px;
}
/* Gallery: ONE warm stage; transparent PNGs sit directly on it */
#product-info .image.magnific-popup {
background: var(--mj-stage);
border: 1px solid var(--mj-stage-line);
border-radius: var(--mj-radius);
padding: 18px;
}
#product-info .magnific-popup > a {
position: relative;
display: block;
background: transparent;
border: 0;
padding: 0;
}
#product-info .magnific-popup > a > img,
#product-info .magnific-popup > div a img {
width: 100%;
background: transparent;
border: 0;
padding: 0;
border-radius: 8px;
}
/* Meta rows (stock pill, lot chip): flex pins them to inline-start in both
directions, independent of any bidi resolution */
#product-info .meta-row {
display: flex;
align-items: center;
justify-content: flex-start;
flex-wrap: wrap;
gap: 6px;
}
#product-info li { unicode-bidi: normal; }
#product-info .form-check-label,
#product-info .price-new { unicode-bidi: plaintext; }
/* Stock pill + out-of-stock state */
.stock-pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 2px 10px;
border-radius: 999px;
background: var(--mj-green-100);
color: var(--mj-green-800);
font-size: 12px;
font-weight: 700;
}
.stock-pill::before {
content: "";
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--mj-green-600);
}
.stock-pill.is-out { background: #f4e6e2; color: #96432f; }
.stock-pill.is-out::before { background: #c0654e; }
/* Lot / bottling chip */
.lot-chip {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 4px 12px;
border: 1px solid var(--mj-line);
border-radius: 999px;
background: var(--mj-white);
font-size: 12.5px;
font-weight: 700;
color: var(--mj-green-800);
}
.lot-chip i { color: var(--mj-gold-dark); font-size: 13px; }
/* Rating summary chips + zero state */
#product-info .rating {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
#product-info .rating p {
margin: 0;
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
font-size: 13px;
color: var(--mj-muted);
}
#product-info .rating .fa-stack { font-size: 14px; }
#product-info .rating a {
padding: 4px 12px;
border: 1px solid var(--mj-line);
border-radius: 999px;
font-size: 12.5px;
font-weight: 700;
color: var(--mj-green-700);
background: var(--mj-white);
}
#product-info .rating a:hover { border-color: var(--mj-gold); color: var(--mj-gold-dark); }
.rating-zero { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rating-zero-text { font-size: 13px; color: var(--mj-muted); }
/* Price lockup: one baseline row, save badge earned by JS */
.price-lockup {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 4px 12px;
margin: 0 0 6px;
}
.price-lockup .price-main { margin: 0; }
.price-lockup .price-old { font-size: 15px; }
.save-badge {
display: none;
align-items: center;
padding: 2px 10px;
border-radius: 999px;
background: var(--mj-gold-light);
color: var(--mj-green-900);
font-size: 12.5px;
font-weight: 800;
line-height: 1.5;
}
.save-badge.is-on { display: inline-flex; }
.price-meta { margin: 0; }
.price-meta li { font-size: 13px; color: var(--mj-muted); }
/* Quantity discount as a gold pill */
.discount p,
.discounts p,
.product-discount p {
display: inline-flex;
align-items: center;
gap: 7px;
margin: 0;
padding: 4px 12px;
border-radius: 999px;
background: var(--mj-gold-light);
color: var(--mj-green-900);
font-size: 12.5px;
font-weight: 700;
unicode-bidi: plaintext;
}
.discount p::before,
.discounts p::before,
.product-discount p::before {
content: "\f02b";                 /* FA tag icon */
font-family: "Font Awesome 6 Free";
font-weight: 900;
font-size: 11px;
color: var(--mj-gold-dark);
}
/* Buy box: label + stepper + dominant CTA (stacked on phones) */
.buy-box { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.buy-box .qty-label { align-self: center; font-size: 13px; font-weight: 700; color: var(--mj-muted); }
.buy-box .qty-stepper { flex: 0 1 auto; }
.buy-box #button-cart { flex: 1 1 220px; min-height: 48px; font-size: 15px; }
.qty-stepper {
display: inline-flex;
align-items: stretch;
border: 1px solid var(--mj-line);
border-radius: var(--mj-radius-sm);
background: var(--mj-white);
overflow: hidden;
}
.qty-stepper button {
width: 40px;
border: 0;
background: var(--mj-cream-2);
color: var(--mj-green-800);
font-size: 17px;
line-height: 1;
cursor: pointer;
transition: background var(--mj-trans);
}
.qty-stepper button:hover { background: var(--mj-gold-light); }
.qty-stepper #input-quantity {
width: 56px;
border: 0;
border-radius: 0;
background: transparent;
text-align: center;
box-shadow: none;
font-weight: 700;
color: var(--mj-ink);
}
.qty-stepper #input-quantity:focus { outline: none; background: var(--mj-cream); }
@media (max-width: 575.98px) {
.buy-box .qty-stepper { flex: 0 0 auto; width: 168px; }
.buy-box .qty-stepper #input-quantity { flex: 1 1 auto; width: auto; }
.buy-box #button-cart { flex: 1 1 100%; }
}
/* Sold-out CTA: calm grey slab, unmistakably inert */
#button-cart:disabled,
#button-cart[aria-disabled="true"] {
background: var(--mj-cream-2);
border-color: var(--mj-line);
color: var(--mj-muted);
cursor: not-allowed;
opacity: 1;
}
#button-cart:disabled:hover,
#button-cart[aria-disabled="true"]:hover {
background: var(--mj-cream-2);
border-color: var(--mj-line);
color: var(--mj-muted);
}
.buy-box #input-quantity:disabled,
.buy-box .qty-stepper:has(#input-quantity:disabled) button {
background: var(--mj-cream-2);
color: var(--mj-muted);
cursor: not-allowed;
}
/* Notify-me: primary WhatsApp button (members) — markup-agnostic selectors */
.notify-btn,
#button-notify,
#product-info a[href*="wa.me"],
#product-info a[href*="api.whatsapp"],
#product-info a[href*="whatsapp.com"] {
flex: 1 1 100%;
width: 100%;
min-height: 52px;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
border: 0;
border-radius: var(--mj-radius-sm);
background: #128C7E;                 /* WhatsApp functional green */
color: var(--mj-cream, #fcfaf1);
font-family: var(--mj-font-body, 'Tajawal', sans-serif);
font-size: 16px;
font-weight: 800;
letter-spacing: .01em;
text-decoration: none;
box-shadow: 0 6px 18px rgba(18, 140, 126, .28);
transition: background var(--mj-trans, .25s ease), transform var(--mj-trans, .25s ease), box-shadow var(--mj-trans, .25s ease);
}
.notify-btn:hover, .notify-btn:focus-visible,
#button-notify:hover, #button-notify:focus-visible,
#product-info a[href*="wa.me"]:hover,
#product-info a[href*="api.whatsapp"]:hover,
#product-info a[href*="whatsapp.com"]:hover {
background: #075E54;
color: var(--mj-cream, #fcfaf1);
transform: translateY(-1px);
box-shadow: 0 8px 22px rgba(7, 94, 84, .32);
}
.notify-btn:active,
#button-notify:active,
#product-info a[href*="wa.me"]:active { transform: translateY(0); }
.notify-btn i,
#button-notify i,
#product-info a[href*="wa.me"] i,
#product-info a[href*="api.whatsapp"] i,
#product-info a[href*="whatsapp.com"] i { font-size: 20px; }
/* Notify-me members gate (guests): reads as a benefit, not an error */
.notify-gate {
flex: 1 1 100%;
width: 100%;
display: flex;
align-items: flex-start;
gap: 10px;
min-height: 48px;
padding: 12px 14px;
border: 1px solid var(--mj-line, #d9d6d0);
border-radius: var(--mj-radius-sm, 9px);
background: var(--mj-white, #ffffff);
font-size: 13.5px;
font-weight: 700;
color: var(--mj-green-800, #1c3622);
}
.notify-gate > i { color: var(--mj-gold-dark, #9d7c2c); margin-top: 3px; }
.notify-gate .trust-link {
color: var(--mj-gold-dark, #9d7c2c);
font-weight: 700;
text-decoration: underline;
text-underline-offset: 3px;
}
/* Trust row: guarantee grammar (solid card, gold icon chips) */
.product-trust {
display: flex;
flex-wrap: wrap;
gap: 10px 18px;
margin: 14px 0 4px;
padding: 12px 14px;
background: var(--mj-white);
border: 1px solid var(--mj-line);
border-radius: var(--mj-radius-sm);
}
.product-trust span {
display: inline-flex;
align-items: flex-start;
gap: 8px;
font-size: 13px;
font-weight: 700;
color: var(--mj-green-800);
}
.product-trust span > i { margin-top: 3px; }
.product-trust i {
width: 30px;
height: 30px;
flex: 0 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: var(--mj-gold-light);
color: var(--mj-green-900);
font-size: 15px;
}
/* Inner wrapper flows as one inline run (sentence + policy link) */
.product-trust .trust-text { display: inline; min-width: 0; }
.trust-link {
color: var(--mj-gold-dark);
font-weight: 700;
text-decoration: underline;
text-underline-offset: 3px;
white-space: normal;
transition: color var(--mj-trans);
}
.trust-link:hover { color: var(--mj-green-800); }
/* Description-as-section (single content block) */
.product-section { margin: 8px 0 24px; }
.product-section-heading {
display: inline-block;
margin: 0 0 14px;
padding-bottom: 8px;
font-size: 1.25rem;
border-bottom: 2px solid var(--mj-gold);
}
.product-section-body { line-height: 1.9; color: var(--mj-ink); }
/* --------------------------------------------------------------------------
10) Reviews (cards, star picker, form)
-------------------------------------------------------------------------- */
.review-card {
background: var(--mj-white);
border: 1px solid var(--mj-line);
border-radius: var(--mj-radius);
padding: 16px 18px;
margin-bottom: 14px;
}
.review-meta {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px 14px;
margin-bottom: 8px;
}
.review-author {
font-size: 14px;
font-weight: 700;
color: var(--mj-ink);
display: inline-flex;
align-items: center;
gap: 8px;
}
.review-author i { color: var(--mj-gold-dark); font-size: 16px; }
.review-stars .fa-stack { font-size: 12px; }
.review-date { margin-inline-start: auto; font-size: 12.5px; color: var(--mj-muted); }
.review-body { margin: 0; line-height: 1.9; color: var(--mj-ink); }
.review-pagination { margin-top: 10px; font-size: 13px; color: var(--mj-muted); }
.review-empty {
padding: 28px 16px;
margin: 0;
text-align: center;
background: var(--mj-white);
border: 1px solid var(--mj-line);
border-radius: var(--mj-radius);
color: var(--mj-muted);
}
/* Star picker: CSS-only, RTL-correct, keyboard accessible */
.star-picker {
display: flex;
flex-direction: row-reverse;   /* RTL: star 1 on the right, fills from start */
align-items: center;
gap: 2px;
margin-top: 4px;
}
.star-picker .star-input {
position: absolute;
opacity: 0;
width: 1px;
height: 1px;
margin: 0;
pointer-events: none;
}
.star-picker .star-label { cursor: pointer; padding: 2px; }
.star-picker .star-label i {
font-size: 22px;
color: #d8d5cf;
transition: color var(--mj-trans), transform var(--mj-trans);
}
.star-picker .star-label:hover i,
.star-picker .star-label:hover ~ .star-label i,
.star-picker .star-input:checked ~ .star-label i { color: var(--mj-gold); }
.star-picker .star-label:hover i { transform: scale(1.12); }
.star-picker .star-input:focus-visible + .star-label {
outline: 2px solid var(--mj-gold);
outline-offset: 2px;
border-radius: 4px;
}
.star-hint { margin-inline-start: 10px; font-size: 12.5px; color: var(--mj-muted); }
/* Review form */
#form-review h2 {
display: inline-block;
margin: 26px 0 16px;
padding-bottom: 8px;
font-size: 1.25rem;
border-bottom: 2px solid var(--mj-gold);
}
#form-review .form-label { font-size: 13.5px; font-weight: 700; }
#product-info input[name="rating"] { accent-color: var(--mj-gold-dark); width: 18px; height: 18px; }
#button-review,
#review button.btn-primary,
#review button[type="button"].btn {
min-height: 48px;
padding: 0 28px;
font-size: 15px;
font-weight: 700;
border-radius: var(--mj-radius-sm);
background: var(--mj-green-800);
border-color: var(--mj-green-800);
color: var(--mj-cream);
}
#button-review:hover { background: var(--mj-green-600); border-color: var(--mj-green-600); }
/* --------------------------------------------------------------------------
11) Category page toolbar
-------------------------------------------------------------------------- */
.category-toolbar { align-items: center; }
.results-note { color: var(--mj-muted); font-size: 13px; }
/* View-toggle active state clarified */
#content .btn-group > .btn.active {
background: var(--mj-green-800);
color: var(--mj-cream);
border-color: var(--mj-green-800);
}
/* --------------------------------------------------------------------------
12) Related products rail (mobile) / wrapped grid (desktop)
-------------------------------------------------------------------------- */
.related-rail {
flex-wrap: nowrap;
overflow-x: auto;
scroll-snap-type: x mandatory;
padding-bottom: 8px;
scrollbar-width: thin;
scrollbar-color: var(--mj-gold-light) transparent;
}
.related-rail::-webkit-scrollbar { height: 6px; }
.related-rail::-webkit-scrollbar-thumb { background: var(--mj-gold-light); border-radius: 3px; }
.related-rail > * { flex: 0 0 230px; scroll-snap-align: start; }
@media (min-width: 992px) {
.related-rail {
overflow-x: visible;
flex-wrap: wrap;
gap: 24px;
scroll-snap-type: none;
padding-bottom: 0;
}
.related-rail > * { flex: 1 1 240px; max-width: none; }
}
/* --------------------------------------------------------------------------
13) Tabs, pagination, alerts
-------------------------------------------------------------------------- */
.nav-tabs { border-bottom: 2px solid var(--mj-line); }
.nav-tabs .nav-link { color: var(--mj-muted); border: 0; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link:hover { color: var(--mj-green-700); background: transparent; border-color: var(--mj-gold-light); }
.nav-tabs .nav-link.active {
color: var(--mj-green-800);
background: transparent;
border-bottom: 2px solid var(--mj-gold);
font-weight: 700;
}
/* Empty tab bar safety (CSS backup to the JS hide) */
.nav-tabs:empty { display: none; }
.nav-tabs:empty + .tab-content { display: none; }
.page-link {
color: var(--mj-green-700);
border: 1px solid var(--mj-line);
margin-inline: 2px;
border-radius: var(--mj-radius-sm);
}
.page-link:hover { background: var(--mj-green-100); color: var(--mj-green-800); }
.page-item.active .page-link { background: var(--mj-green-800); border-color: var(--mj-green-800); color: var(--mj-cream); }
.alert { border-radius: var(--mj-radius-sm); border: 1px solid var(--mj-line); }
/* --------------------------------------------------------------------------
14) Lightbox (Magnific) — transparent PNGs on the warm stage.
Two-class selectors: magnific-popup.css loads AFTER this file.
-------------------------------------------------------------------------- */
.mfp-image-holder .mfp-figure:after,
.mfp-container .mfp-figure:after {
background: var(--mj-stage);
box-shadow: none;
border-radius: 10px;
}
.mfp-image-holder .mfp-img,
.mfp-container .mfp-img { background: transparent; }
.mfp-image-holder .mfp-bottom-bar .mfp-title { color: var(--mj-green-900); font-weight: 700; }
.mfp-image-holder .mfp-bottom-bar .mfp-counter { color: var(--mj-muted); }
/* --------------------------------------------------------------------------
15) Home — HTML-module campaign package
-------------------------------------------------------------------------- */
/* Safety net: NO image inside home content may ever exceed its column */
#common-home #content img { max-width: 100%; height: auto; }
.mj-hero {
display: block;
margin: 6px 0 28px;
border-radius: var(--mj-radius);
overflow: hidden;
box-shadow: 0 10px 30px rgba(20, 40, 25, .10);
}
.mj-hero img { width: 100%; height: auto; display: block; }
.mj-hero:hover img { opacity: .97; }
.mj-values {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 18px;
margin: 8px 0 34px;
}
@media (max-width: 991.98px) { .mj-values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .mj-values { grid-template-columns: 1fr 1fr; gap: 12px; } }
.mj-value {
background: var(--mj-white);
border: 1px solid var(--mj-line);
border-radius: var(--mj-radius);
padding: 22px 16px;
text-align: center;
box-shadow: var(--mj-shadow-sm);
}
.mj-value-icon {
width: 46px;
height: 46px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: var(--mj-gold-light);
color: var(--mj-green-900);
font-size: 18px;
margin-bottom: 10px;
}
.mj-value h3 { font-size: 1.05rem; margin: 0 0 4px; }
.mj-value p { margin: 0; font-size: 13px; color: var(--mj-muted); line-height: 1.7; }
/* --------------------------------------------------------------------------
16) Footer, sub-footer & cookie bar
-------------------------------------------------------------------------- */
footer {
position: static;
bottom: auto;
flex-shrink: 0;
background: var(--mj-green-900);
border: 0;
border-top: 4px solid var(--mj-gold);
color: var(--mj-cream);
margin-top: 48px;
padding-top: 40px;
padding-bottom: 8px;
}
footer h5 { color: var(--mj-gold-light); font-family: var(--mj-font-head); font-size: 15px; }
footer a { color: rgba(252, 250, 241, .82); text-decoration: none; }
footer a:hover { color: var(--mj-gold-light); }
footer hr { border-top: none; border-bottom: 1px solid rgba(252, 250, 241, .16); }
footer .list-unstyled li { margin-bottom: 4px; }
@media (max-width: 767.98px) {
footer [class^="col-"],
footer [class*=" col-"] { text-align: center; margin-bottom: 24px; }
footer h5 { text-align: center; }
footer ul { padding-inline-start: 0; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
footer .footer-main > [class*="col-"] { margin-bottom: 24px; }
}
/* Logo on a light "label card" so the dark-green mark reads on green */
.footer-logo-link {
display: inline-flex;
align-items: center;
background: var(--mj-cream);
border-radius: var(--mj-radius-sm);
padding: 8px 14px;
margin-bottom: 16px;
box-shadow: var(--mj-shadow-sm);
}
.footer-logo-link img { max-height: 56px; width: auto; }
/* Contact rows: icon + value (language-neutral) */
.footer-contact { margin: 0; }
.footer-contact li {
display: flex;
align-items: flex-start;
gap: 10px;
margin-bottom: 8px;
color: rgba(245, 245, 247, .78);
font-size: 13.5px;
line-height: 1.7;
text-align: start;
}
.footer-contact i {
color: var(--mj-gold);
width: 18px;
flex: 0 0 auto;
text-align: center;
margin: 4px 0 0;
}
.footer-contact a { color: inherit; }
.footer-contact a:hover { color: var(--mj-gold-light); }
/* LTR containment for phone / WhatsApp / mail links */
footer a[href^="tel:"],
footer a[href*="wa.me"],
footer a[href*="whatsapp"] { direction: ltr; unicode-bidi: isolate; }
/* Sub-footer */
.footer-sub {
border-top: 1px solid rgba(245, 245, 247, .12);
margin-top: 32px;
padding: 14px 0 10px;
color: rgba(245, 245, 247, .55);
font-size: 12.5px;
}
.footer-sub p { margin: 0; unicode-bidi: plaintext; }
/* Payment / safety marks */
.footer-payments {
display: inline-flex;
gap: 12px;
margin: 0;
font-size: 17px;
color: rgba(245, 245, 247, .6);
}
.footer-payments .list-inline-item { margin-inline-start: 12px; }
.footer-payments i { transition: color var(--mj-trans); }
.footer-payments i:hover { color: var(--mj-gold-light); }
/* Social (markup commented in footer.twig until profiles exist) */
.footer-social .list-inline-item { margin-inline-start: 10px; }
.footer-social i { font-size: 16px; }
.footer-social a { color: rgba(245, 245, 247, .7); }
.footer-social a:hover { color: var(--mj-gold-light); }
@media (max-width: 767.98px) {
.footer-contact { display: inline-block; text-align: start; }
.footer-logo-link { margin-bottom: 12px; }
}
/* Cookie bar */
#cookie { background: var(--mj-green-900); color: var(--mj-cream); border-top: 2px solid var(--mj-gold); }
#cookie div { color: var(--mj-cream); }
/* --------------------------------------------------------------------------
17) Phone tweaks
-------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
.header-bar { gap: 10px; }
.header-logo { max-width: 120px; }
.header-logo img { max-height: 40px; }
.header-actions { gap: 10px; }
#cart .dropdown-menu li { min-width: 100%; }
.header-search { padding: 10px 10px 12px; }
}
/* --------------------------------------------------------------------------
18) Self-hosted typography (Google Fonts retired)
Paths relative to this file: ../fonts/ = catalog/view/fonts/
-------------------------------------------------------------------------- */
@font-face {
font-family: 'Tajawal';
src: url('../fonts/Tajawal/Tajawal-Regular.woff2') format('woff2');
font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
font-family: 'Tajawal';
src: url('../fonts/Tajawal/Tajawal-Medium.woff2') format('woff2');
font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
font-family: 'Tajawal';
src: url('../fonts/Tajawal/Tajawal-Bold.woff2') format('woff2');
font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
font-family: 'Tajawal';
src: url('../fonts/Tajawal/Tajawal-ExtraBold.woff2') format('woff2');
font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
font-family: 'Zain';
src: url('../fonts/Zain/Zain-Bold.woff2') format('woff2');
font-weight: 700; font-style: normal; font-display: swap;
}
/* ==========================================================================
19) wishlist chip on the PDP gallery (ghost row retired).
Inline-start corner; the magnifier cue owns inline-end. Always visible:
on a PDP the save action is a primary tool, and hover-hiding it would
repeat the "easy to miss" mistake on touch devices.
========================================================================== */
#product-info .image.magnific-popup { position: relative; }
.pdp-quick {
position: absolute;
top: 18px;
inset-inline-start: 18px;
z-index: 5;
margin: 0;
}
.pdp-quick button {
width: 44px;
height: 44px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid var(--mj-line);
border-radius: 50%;
background: rgba(255, 255, 255, .94);
color: var(--mj-green-700);
font-size: 16px;
cursor: pointer;
box-shadow: var(--mj-shadow-sm);
transition: background var(--mj-trans), color var(--mj-trans), border-color var(--mj-trans);
}
.pdp-quick button:hover,
.pdp-quick button:focus-visible {
background: var(--mj-gold-light);
border-color: var(--mj-gold);
color: var(--mj-green-900);
}
/* ==========================================================================
20) wishlist fixes: kill the broken zoom cue, always-on
card hearts, zoom affordance via cursor
========================================================================== */
/* 1) The v8.3 hover "zoom cue" never rendered its FA glyph in the RTL font
stack — it showed as an empty white disc. Retired; the cursor now
carries the affordance. */
#product-info .magnific-popup > a::after { content: none; }
#product-info .magnific-popup > a { cursor: zoom-in; }
/* 2) Wishlist chip always visible on product cards (was hover-reveal).
Touch devices already saw it; now desktop does too — the save action
should never be a hidden easter egg. */
.thumb-quick { opacity: 1; transform: none; }
/* ==========================================================================
21) switch knob vs checkbox tick: stop property bleed.
A switch input is type=checkbox, so the tick rule's border/transform
merged into the knob and rendered a truncated sliver on "I agree".
These rules re-assert every knob property with equal specificity,
later in the file, so the tick can never leak into a switch again.
========================================================================== */
.form-switch .form-check-input::after,
.form-switch .form-check-input:checked::after {
content: "";
position: absolute;
top: 50%;
left: .1em;
width: .7em;
height: .7em;
border: 0;
border-radius: 50%;
background: var(--mj-green-600);
transform: translateY(-50%);
transition: left var(--mj-trans);
}
.form-switch .form-check-input:checked::after {
left: calc(100% - .85em);
background: var(--mj-green-700);
}
/* ==========================================================================
22) switch state clarity: strong track/knob contrast.
OFF = mist track + muted grey knob; ON = solid green track + cream knob.
(v9.2 already re-asserts geometry; this pack owns the colors.)
========================================================================== */
.form-switch .form-check-input {
background: var(--mj-cream-2);
border-color: var(--mj-line);
}
.form-switch .form-check-input::after { background: var(--mj-muted); }
.form-switch .form-check-input:checked {
background: var(--mj-green-700);
border-color: var(--mj-green-700);
}
.form-switch .form-check-input:checked::after {
background: var(--mj-cream);
left: calc(100% - .85em);
}
.form-switch .form-check-input:focus-visible {
outline: 2px solid var(--mj-gold);
outline-offset: 2px;
}
/* ==========================================================================
23) named stock statuses (pre-order etc.) get their own pill:
honey-gold = a promise, green = now, terracotta = not.
========================================================================== */
.stock-pill.is-status { background: var(--mj-gold-light); color: var(--mj-green-900); }
.stock-pill.is-status::before { background: var(--mj-gold-dark); }
/* ==========================================================================
24) checkout: read-only shipping summary (single courier).
Replaces the one-radio picker after auto-commit; tracks address changes.
========================================================================== */
.shipping-summary {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 14px;
background: var(--mj-white);
border: 1px solid var(--mj-line);
border-radius: var(--mj-radius-sm);
font-size: 13.5px;
font-weight: 700;
color: var(--mj-green-800);
}
/* ==========================================================================
25) checkout pre-address shipping hint (pairs with v9.5 summary)
========================================================================== */
.shipping-hint {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 14px;
background: var(--mj-cream-2);
border: 1px dashed var(--mj-line);
border-radius: var(--mj-radius-sm);
font-size: 13px;
font-weight: 700;
color: var(--mj-muted);
}
/* ==========================================================================
26) committed shipping reads as a summary line, not a field
========================================================================== */
#checkout-shipping-method .shipping-summary-input {
background: var(--mj-white);
border-color: var(--mj-line);
color: var(--mj-green-800);
font-weight: 700;
font-size: 13.5px;
}
/* ==========================================================================
27) checkout: ONE source of truth for the shipping cost — the totals row.
The read-only summary line above Payment Method duplicated it; hidden
once committed. The pre-address hint (.shipping-hint) and any shipping
error (#error-shipping-method) remain visible by design.
========================================================================== */
#checkout-shipping-method .shipping-summary,
#checkout-shipping-method .shipping-summary-input { display: none !important; }
/* collapse the now-empty section so no dead gap remains */
#checkout-shipping-method:has(.shipping-summary-input) { margin: 0; padding: 0; min-height: 0; }
/* ==========================================================================
28) Confirm Order button: theme grammar instead of Bootstrap blue.
Enabled = solid green CTA; disabled (payment not chosen yet) = calm mist
slab, same grammar as the sold-out #button-cart.
========================================================================== */
#button-confirm.btn-primary {
background: var(--mj-green-800);
border-color: var(--mj-green-800);
color: #fff;
}
#button-confirm.btn-primary:hover,
#button-confirm.btn-primary:focus {
background: var(--mj-green-600);
border-color: var(--mj-green-600);
color: #fff;
}
#button-confirm.btn-primary:disabled,
#button-confirm.btn-primary[aria-disabled="true"] {
background: var(--mj-cream-2);
border-color: var(--mj-line);
color: var(--mj-muted);
opacity: 1;
cursor: not-allowed;
}
/* ==========================================================================
29) Confirm Order button, take 2: the live button carries NO id (core
confirm.twig renders a plain .btn.btn-primary inside #checkout-confirm),
so the #button-confirm hooks in pack 28 never matched and Bootstrap's
.btn-primary:disabled blue won. Scope to the confirm container instead.
Enabled = solid green CTA; disabled = calm mist slab (same grammar as
the sold-out #button-cart).
========================================================================== */
#checkout-confirm .btn-primary {
background: var(--mj-green-800);
border-color: var(--mj-green-800);
color: #fff;
}
#checkout-confirm .btn-primary:hover,
#checkout-confirm .btn-primary:focus {
background: var(--mj-green-600);
border-color: var(--mj-green-600);
color: #fff;
}
#checkout-confirm .btn-primary:disabled,
#checkout-confirm .btn-primary[disabled],
#checkout-confirm .btn-primary[aria-disabled="true"] {
background: var(--mj-cream-2);
border-color: var(--mj-line);
color: var(--mj-muted);
opacity: 1;
cursor: not-allowed;
box-shadow: none;
}
/* ==========================================================================
30) checkout: the empty "Shipping Method" picker chrome must never paint.
On first render the server HTML shows legend + empty readonly input until
mouroj.js auto-commits and collapses the section (the "loads then vanishes"
flash on cart→checkout). Gate: while the section is untouched (no hint,
no committed summary, no visible error), hide legend/icon/input. The
pre-address hint, error line and post-commit states are unaffected.
========================================================================== */
#checkout-shipping-method:not(:has(.shipping-hint)):not(:has(.shipping-summary-input)):not(:has(#error-shipping-method.d-block)) legend,
#checkout-shipping-method:not(:has(.shipping-hint)):not(:has(.shipping-summary-input)):not(:has(#error-shipping-method.d-block)) .input-group-text,
#checkout-shipping-method:not(:has(.shipping-hint)):not(:has(.shipping-summary-input)):not(:has(#error-shipping-method.d-block)) #input-shipping-method {
display: none !important;
}
/* ==========================================================================
31) reviews: collapsible section (Bootstrap collapse, markup-only twig).
Collapsed by default so the comments list + write-a-review form never
crowd the PDP; the gold-underlined heading doubles as the toggle and
the chevron rotates open via aria-expanded. No JS added (theme rule:
behavior via Bootstrap data-api / mouroj.js only). Blend note retired
with the twig copy — description field owns that sentence now.
========================================================================== */
#tab-review .product-section-heading { display: block; }
.review-toggle {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
width: 100%;
padding: 0;
border: 0;
background: transparent;
font-family: var(--mj-font-head);
font-size: 1.25rem;
font-weight: 700;
color: var(--mj-green-800);
text-align: start;
cursor: pointer;
transition: color var(--mj-trans);
}
.review-toggle:hover { color: var(--mj-gold-dark); }
.review-toggle:focus-visible {
outline: 2px solid var(--mj-gold);
outline-offset: 4px;
border-radius: 4px;
}
.review-toggle .fa-chevron-down {
font-size: .95rem;
color: var(--mj-gold-dark);
transition: transform var(--mj-trans);
}
.review-toggle[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
#mj-review-collapse { margin-top: 14px; }

/* ==========================================================================
32) checkout: inline payment method cards (modal retired).
Radio options render as selectable cards with a subtle border that turns
solid green + gold accent when selected, matching the theme's input focus
grammar. Any embedded gateway form (e.g. credit card fields) inherits
the standard form-control styling.
========================================================================== */
.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.payment-method-option {
  position: relative;
  border: 1px solid var(--mj-line);
  border-radius: var(--mj-radius-sm);
  padding: 14px 16px;
  background: var(--mj-white);
  transition: border-color var(--mj-trans), box-shadow var(--mj-trans), background var(--mj-trans);
  cursor: pointer;
  margin: 0;
}
.payment-method-option:hover {
  border-color: var(--mj-green-600);
}
.payment-method-option:has(input:checked) {
  border-color: var(--mj-green-700);
  box-shadow: inset 4px 0 0 var(--mj-gold), 0 0 0 .15rem rgba(60, 107, 79, .15);
  background: var(--mj-green-100);
}
.payment-method-option .form-check-input {
  margin-top: .35em;
  cursor: pointer;
}
.payment-method-option .form-check-label {
  cursor: pointer;
  width: 100%;
}
.payment-method-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--mj-line);
}

/* ==========================================================================
33) product cards: description for list view.
Hidden in grid view (cards are too small for paragraphs). In list view,
clamped to 3 lines to keep the card height predictable while filling the
empty space the core layout reserves for it. unicode-bidi ensures mixed
AR/EN text flows correctly.
========================================================================== */
.thumb-description {
  display: none;
  color: var(--mj-muted);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 10px 0 14px;
  unicode-bidi: plaintext;
}
.product-list .product-thumb .thumb-description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
34) list view: real two-column card (image | content).
The core list layout reserves a side column but never fills it (content
stacks under the image, leaving the dead zone seen in review). Force a
flex row on the thumb form: image ~46%, content takes the rest, so the
pack-33 description lives in the content column where the eye expects
it. RTL-safe (no directional properties); phones stack to one column.
========================================================================== */
.product-list .product-thumb .thumb-form {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 22px;
}
.product-list .product-thumb .image {
flex: 0 0 46%;
max-width: 46%;
width: auto;
float: none;
margin-bottom: 0;
}
.product-list .product-thumb .content {
flex: 1 1 46%;
min-width: 0;
width: auto;
float: none;
}
.product-list .product-thumb .thumb-actions { margin-top: 14px; }
@media (max-width: 575.98px) {
.product-list .product-thumb .image,
.product-list .product-thumb .content { flex: 0 0 100%; max-width: 100%; }
}

/* ==========================================================================
35) category toolbar: view toggle + sort + limit on ONE optical line.
Probe confirmed markup: .row.category-toolbar > .col-* > .input-group.mb-3.
The mb-3 on the input-group adds 1rem bottom margin, throwing off the
vertical centering even when the row is flex-centered. Fix: strip the
margin and force the columns themselves to be flex containers so their
inner controls share the exact same centerline.
========================================================================== */
.category-toolbar {
  align-items: center !important;
}
.category-toolbar > [class*="col-"] {
  display: flex;
  align-items: center;
  margin-bottom: 0 !important;
}
.category-toolbar .input-group {
  margin-bottom: 0 !important;
}
.category-toolbar .btn-group {
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
36) list-view rhythm: anchored CTA + stronger price (final).
a) Columns stretch so the content column matches the image height; the
   content becomes a flex column and the Add-to-Cart button pins to its
   bottom (margin-top:auto) — buttons across cards share one baseline
   and the dead zone under short descriptions disappears. The image
   stage centers its jar vertically when stretched.
b) Price gets a half-step more presence in list view only.
Unrated star row intentionally untouched (reserved gap kept by design
decision; microcopy alternative proposed separately, not implemented).
========================================================================== */
.product-list .product-thumb .thumb-form {
align-items: stretch;
}
.product-list .product-thumb .image {
display: flex;
flex-direction: column;
justify-content: center;
}
.product-list .product-thumb .content {
display: flex;
flex-direction: column;
}
.product-list .product-thumb .thumb-actions {
margin-top: auto;
padding-top: 14px;
}
.product-list .product-thumb .price {
font-size: 1.05rem;
margin: 2px 0 8px;
}
.product-list .product-thumb .thumb-description {
margin: 0 0 14px;
}

/* ==========================================================================
37) checkout: disabled Confirm Order explains itself (aria-live hint
injected by mouroj.js). Muted info line aligned to the button side.
========================================================================== */
.confirm-hint {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 8px;
margin: 0 0 10px;
color: var(--mj-muted);
font-size: 13px;
font-weight: 700;
}
.confirm-hint::before {
content: "\f06a";                 /* FA circle-info */
font-family: "Font Awesome 6 Free";
font-weight: 900;
color: var(--mj-gold-dark);
}
/* ==========================================================================
38) payment cards: icon chip + reassurance microcopy (rendered by
mouroj.js from MJ_PAY_META). Label becomes a two-column flex run.
========================================================================== */
.payment-method-option .form-check-label {
display: flex;
align-items: flex-start;
gap: 12px;
}
.pay-icon {
width: 34px;
height: 34px;
flex: 0 0 auto;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: var(--mj-gold-light);
color: var(--mj-green-900);
font-size: 15px;
margin-top: 2px;
}
.pay-text { min-width: 0; }
.pay-note { color: var(--mj-muted); font-size: 12.5px; }
/* ==========================================================================
39) order totals: hairline rows instead of a full border grid; the final
total earns weight, size and a gold rule — modern receipt grammar.
========================================================================== */
#checkout-confirm table { border: 0; }
#checkout-confirm table th,
#checkout-confirm table td {
border-inline: 0;
padding: 12px 14px;
border-color: var(--mj-line);
}
#checkout-confirm table tr:first-child td,
#checkout-confirm table thead th {
font-size: 12.5px;
color: var(--mj-muted);
background: transparent;
}
#checkout-confirm table tr:last-child td {
font-weight: 800;
font-size: 1.05rem;
color: var(--mj-green-800);
border-top: 2px solid var(--mj-gold);
background: var(--mj-white);
}
/* ==========================================================================
40) optional order comment: quiet toggle, small field, chevron rotates.
========================================================================== */
.comment-toggle {
display: inline-flex;
align-items: center;
gap: 8px;
border: 0;
background: transparent;
padding: 0;
color: var(--mj-muted);
font-size: 13px;
font-weight: 700;
cursor: pointer;
transition: color var(--mj-trans);
}
.comment-toggle:hover { color: var(--mj-gold-dark); }
.comment-toggle .fa-chevron-down {
font-size: .75rem;
transition: transform var(--mj-trans);
}
.comment-toggle[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
#mj-comment-collapse { margin-top: 10px; }
#mj-comment-collapse .form-control { min-height: 64px; }
/* ==========================================================================
41) related rail: fixed 4-up density on desktop. Two or three related
products no longer stretch into giants; trailing cells stay empty and
card size stays consistent with the home rail.
========================================================================== */
@media (min-width: 992px) {
.related-rail {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 24px;
overflow: visible;
scroll-snap-type: none;
padding-bottom: 0;
}
.related-rail > * { flex: none; max-width: none; width: auto; }
}
/* ==========================================================================
42) description readability: cap the measure (~78ch) and force start
alignment. The !important beats inline justify styles that sometimes
arrive from the admin HTML editor; Arabic justified text produces
spacing rivers at 140-char measures.
========================================================================== */
#tab-description { max-width: 78ch; }
#tab-description,
#tab-description p { text-align: start !important; }

/* ==========================================================================
43) PDP delivery transparency note: per-city rates + free threshold,
fed by the product controller from shipping_mouroj_rates settings.
Mist card under the trust row; icon + single inline run so mixed
city/currency tokens stay readable in both directions.
========================================================================== */
.delivery-note {
display: flex;
align-items: flex-start;
gap: 10px;
margin: 10px 0 0;
padding: 10px 14px;
background: var(--mj-cream-2);
border: 1px solid var(--mj-line);
border-radius: var(--mj-radius-sm);
font-size: 12.5px;
font-weight: 700;
color: var(--mj-green-800);
}
.delivery-note > i {
color: var(--mj-gold-dark);
margin-top: 2px;
}
.delivery-note .trust-text {
display: inline;
font-weight: 400;
color: var(--mj-ink);
line-height: 1.8;
}

/* ==========================================================================
44) site-wide free-shipping threshold announcement strip.
Dark green bar above the sticky header (scrolls away; header pins alone).
Rendered only when the startup gate chain passes (theme switch × rates
status × threshold > 0), so no empty bar can ever paint. Hidden on
checkout + success where promo noise hurts payment focus.
========================================================================== */
.mj-strip {
flex: 0 0 auto;
background: var(--mj-green-900);
color: var(--mj-cream);
border-bottom: 1px solid rgba(252, 250, 241, .12);
}
.mj-strip-inner {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 8px 14px;
font-size: 12.5px;
font-weight: 700;
letter-spacing: .01em;
text-align: center;
}
.mj-strip-inner > i {
color: var(--mj-gold);
font-size: 14px;
}
.mj-strip-amount {
color: var(--mj-gold-light);
font-weight: 800;
}
body:has(#checkout-checkout) .mj-strip,
body:has(#checkout-success) .mj-strip {
display: none;
}
/* ==========================================================================
45) cart free-shipping progress nudge: on the cart page the site-wide
strip upgrades to a live progress module. Thin gold fill on a
translucent track pinned to the strip's bottom edge (inset-inline =
RTL-safe); unlocked state shifts the bar to green-700 with a light-gold
fill at 100%. Width transitions make qty changes feel responsive.
========================================================================== */
.mj-strip {
position: relative;
}
.mj-strip-bar {
position: absolute;
inset-inline: 0;
bottom: 0;
height: 3px;
background: rgba(252, 250, 241, .16);
}
.mj-strip-fill {
display: block;
height: 100%;
width: 0;
background: var(--mj-gold);
transition: width var(--mj-trans);
}
.mj-strip.is-unlocked {
background: var(--mj-green-700);
}
.mj-strip.is-unlocked .mj-strip-fill {
background: var(--mj-gold-light);
}
/* ==========================================================================
46) threshold strip visible on checkout (overrides pack 44's hide).
Users frequently skip the cart and land directly on checkout, so the
progress nudge must live there too; pack 44's original "payment noise"
reasoning is reversed by product decision. Success page stays clean.
Later rule, equal specificity → wins on checkout only.
========================================================================== */
body:has(#checkout-checkout) .mj-strip {
display: block;
}

/* ==========================================================================
47) mobile refinements: toolbar breathing room + snappier, on-brand menu.
a) The category toolbar sat flush against the first product card; a real
   bottom margin fixes the collision (later rule beats Bootstrap mb-*).
b) Mobile menu panel: the flat grey slab read as one giant off-brand
   highlight. Now a white card with hairline border and tight rows;
   the ACTIVE category gets the brand grammar (green-100 wash + gold
   inline-start bar, RTL-safe); hover = mist.
c) Perceived speed: collapse animation halved (.35s → .18s) and the
   sticky header's backdrop-filter blur disabled on phones (a known
   repaint-jank source during collapse animations). Readability kept
   via a near-opaque stone background.
========================================================================== */
.category-toolbar {
margin-bottom: 20px;
}
@media (max-width: 991.98px) {
.site-header {
-webkit-backdrop-filter: none;
backdrop-filter: none;
background: rgba(244, 244, 242, .98);
}
#navbar-menu.collapsing {
transition: height .18s ease;
}
#navbar-menu.show {
background: var(--mj-white);
border: 1px solid var(--mj-line);
border-radius: var(--mj-radius-sm);
padding: .35rem;
margin-top: .5rem;
box-shadow: var(--mj-shadow-sm);
}
#navbar-menu .navbar-nav {
gap: 2px;
}
#navbar-menu .navbar-nav > li > a,
#navbar-menu .navbar-nav > li > a.dropdown-item {
padding: 10px 12px;
font-size: 14.5px;
border-radius: 8px;
}
#navbar-menu .navbar-nav > li > a:hover,
#navbar-menu .navbar-nav > li > a.dropdown-item:hover {
background: var(--mj-cream-2);
color: var(--mj-gold-dark);
}
#navbar-menu .navbar-nav > li > a.active,
#navbar-menu .navbar-nav > li > a.dropdown-item.active {
background: var(--mj-green-100);
color: var(--mj-green-800);
font-weight: 700;
border-inline-start: 3px solid var(--mj-gold);
padding-inline-start: 9px;
}
#navbar-menu .dropdown-menu .dropdown-item.active {
background: var(--mj-green-100);
color: var(--mj-green-800);
}
}

/* ==========================================================================
48) pinned free-shipping strip + menu chrome from frame one.
a) The strip now renders INSIDE the sticky header (twig v8.18 move), so
   it stays pinned while scrolling and the progress bar is always in
   view. The header drops its top padding only when the strip exists
   (.has-strip), so gate-off / empty-cart / success pages keep the
   exact previous header geometry.
b) Mobile menu sluggish-perception fix: Bootstrap adds .show only AFTER
   the collapse animation ends, so Pack 47's panel chrome popped in a
   frame late. Painting the same chrome during .collapsing means the
   white card exists from the first animation frame (open AND close).
========================================================================== */
.site-header.has-strip {
padding-top: 0;
}
@media (max-width: 991.98px) {
#navbar-menu.collapsing {
background: var(--mj-white);
border: 1px solid var(--mj-line);
border-radius: var(--mj-radius-sm);
padding: .35rem;
margin-top: .5rem;
box-shadow: var(--mj-shadow-sm);
}
}

/* ==========================================================================
49) description fills the full content width (product decision overrides
pack 42's 78ch readability cap). Start-alignment is kept; only the
max-width is lifted, for both the tab pane and the single-section
layout (both carry #tab-description).
========================================================================== */
#tab-description {
max-width: none;
}

/* ==========================================================================
50) checkout confirm table: shared column geometry + header-rule fix.
a) Pack 39's tr:first-child mute was written for the المنتج/الإجمالي
header row, but core can render the totals block as its own table where
the SUBTOTAL row is first — so the subtotal got muted/shrunk by mistake.
Reverted to inherited styling (header reads bold/dark, which is fine).
b) table-layout:fixed + explicit first/last column widths force the
products table and the totals table onto identical column geometry,
killing the visual drift between item rows and total rows.
========================================================================== */
#checkout-confirm table tr:first-child td,
#checkout-confirm table thead th {
font-size: inherit;
color: inherit;
background: inherit;
}
#checkout-confirm table {
table-layout: fixed;
width: 100%;
}
#checkout-confirm table td:first-child,
#checkout-confirm table th:first-child {
width: 62%;
}
#checkout-confirm table td:last-child,
#checkout-confirm table th:last-child {
width: 38%;
}
#checkout-confirm table td,
#checkout-confirm table th {
word-wrap: break-word;
overflow-wrap: break-word;
}

/* ==========================================================================
51) checkout confirm table: footer label alignment in RTL.
Core hardcodes class="text-end" on the tfoot first column. In LTR this
right-aligns the label (matching the prices). In RTL, text-end means
LEFT-align, which strands the footer labels ("الاجمالي") on the opposite
side of the column from the right-aligned product names. Forcing
text-align:start restores the natural inline-start alignment (right in
RTL, left in LTR) so the labels sit directly under the product names.
========================================================================== */
#checkout-confirm table tfoot td:first-child {
text-align: start !important;
}

/* ==========================================================================
52) checkout confirm table: one clear receipt hierarchy.
Pack 39's unscoped tr:last-child emphasis accidentally styled the header
row (thead's only child) and the LAST PRODUCT ROW (tbody's last child)
as totals; core <strong> on every totals title made subtotal/shipping/
final shout equally. Hierarchy now:
  thead  → muted 12.5px labels
  tbody  → calm 400 product rows, muted option smalls
  tfoot  → 700 labels / 400 values, plain white
  final  → the ONE emphasized row: 800, larger, gold rule, mist bg
Later-in-file rules win over packs 39/50 at equal specificity.
========================================================================== */
#checkout-confirm table tr:last-child td {
font-weight: 400;
font-size: inherit;
color: inherit;
border-top: 1px solid var(--mj-line);
background: var(--mj-white);
}
#checkout-confirm table thead th,
#checkout-confirm table thead td {
font-size: 12.5px;
font-weight: 700;
color: var(--mj-muted);
background: transparent;
border-top: 0;
}
#checkout-confirm table tbody td {
font-weight: 400;
color: var(--mj-ink);
background: var(--mj-white);
}
#checkout-confirm table tbody td small {
color: var(--mj-muted);
}
#checkout-confirm table tfoot td {
font-weight: 400;
color: var(--mj-ink);
background: var(--mj-white);
}
#checkout-confirm table tfoot td strong {
font-weight: 700;
color: var(--mj-ink);
}
#checkout-confirm table tfoot tr:last-child td,
#checkout-confirm table tfoot tr:last-child td strong {
font-weight: 800;
font-size: 1.05rem;
color: var(--mj-green-800);
background: var(--mj-cream-2);
border-top: 2px solid var(--mj-gold);
}
/* ==========================================================================
53) checkout confirm table — decisive receipt redesign. Supersedes the
packs 39/50/52 patchwork on this table (appended last, equal specificity
wins; higher-specificity neutralizers included for 39's unscoped
tr:last-child and 52's grey header). One grammar:
  header  → mist band, dark bold 13px labels
  body    → white rows, single hairline separators, calm 14px ink
  totals  → white, semibold green labels, regular values
  final   → the ONLY highlighted row: green-100 wash, 800 weight,
            larger size, gold 2px rule
Columns fixed 62/38 with logical alignment (labels start, values end)
so RTL and LTR both read correctly.
========================================================================== */
#checkout-confirm table {
table-layout: fixed;
width: 100%;
border: 0;
background: var(--mj-white);
}
#checkout-confirm table th,
#checkout-confirm table td {
border-inline: 0;
border-bottom: 0;
border-top: 1px solid var(--mj-line);
padding: 12px 14px;
vertical-align: top;
word-wrap: break-word;
overflow-wrap: break-word;
background: var(--mj-white);
color: var(--mj-ink);
font-size: 14px;
font-weight: 400;
}
/* neutralize pack 39's unscoped last-row emphasis on body rows */
#checkout-confirm table tr:last-child td,
#checkout-confirm table tbody tr:last-child td {
background: var(--mj-white);
color: var(--mj-ink);
font-size: 14px;
font-weight: 400;
border-top: 1px solid var(--mj-line);
}
/* neutralize packs 39/52 on the first row / header */
#checkout-confirm table tr:first-child td {
background: var(--mj-white);
color: var(--mj-ink);
font-size: 14px;
font-weight: 400;
}
#checkout-confirm table thead th,
#checkout-confirm table thead td {
background: var(--mj-cream-2);
color: var(--mj-green-800);
font-size: 13px;
font-weight: 800;
border-top: 0;
}
#checkout-confirm table tbody td small {
color: var(--mj-muted);
}
#checkout-confirm table tfoot td strong {
font-weight: 700;
color: var(--mj-green-800);
}
/* the single emphasized row */
#checkout-confirm table tfoot tr:last-child td,
#checkout-confirm table tfoot tr:last-child td strong {
background: var(--mj-green-100);
color: var(--mj-green-900);
font-weight: 800;
font-size: 1.05rem;
border-top: 2px solid var(--mj-gold);
}
/* column geometry + logical alignment */
#checkout-confirm table th:first-child,
#checkout-confirm table td:first-child {
width: 62%;
text-align: start;
}
#checkout-confirm table th:last-child,
#checkout-confirm table td:last-child {
width: 38%;
text-align: end;
}

/* ==========================================================================
54) final-total gold rule: inset shadow instead of border-top.
The 2px gold border-top could collapse/position against the adjacent
row and read as a strike-through the tall bold total text. An inset
box-shadow paints the same 2px gold line inside the cell's top edge,
never participates in border collapsing, and cannot shift layout.
========================================================================== */
#checkout-confirm table tfoot tr:last-child td {
border-top: 0;
box-shadow: inset 0 2px 0 0 var(--mj-gold);
}

/* ==========================================================================
55) final-total gold rule, relocation: inset shadow (pack 54) still read
as a strike through the tall bold total in this table's paint context.
The rule now lives on the BOTTOM edge of the row above the final row
(tfoot tr:nth-last-child(2)), i.e. in the gap between two padded cells —
geometrically unable to intersect any text. Final row keeps its green
wash + weight/size emphasis from pack 53; no line of its own.
========================================================================== */
#checkout-confirm table tfoot tr:last-child td {
box-shadow: none;
border-top: 0;
}
#checkout-confirm table tfoot tr:nth-last-child(2) td {
border-bottom: 2px solid var(--mj-gold);
}

/* ==========================================================================
56) confirm table: gold rule REMOVED entirely (product decision).
Packs 39/53/54/55 all attempted to place a 2px gold accent around the
final total; every placement read as a strike or crowding against the
tall bold Arabic text. Emphasis now = green wash + 800 weight + size
only. The row boundary above the final total returns to a plain
hairline so the table reads as one clean receipt.
========================================================================== */
#checkout-confirm table tfoot tr:nth-last-child(2) td {
border-bottom: 1px solid var(--mj-line);
}
#checkout-confirm table tfoot tr:last-child td,
#checkout-confirm table tfoot tr:last-child td strong {
border-top: 0;
box-shadow: none;
}

/* ==========================================================================
   CHECKOUT — single-page form (v9.0)
   ========================================================================== */
.mj-checkout-form .card {
  border: 1px solid var(--mj-line);
  border-radius: var(--mj-radius);
  box-shadow: var(--mj-shadow-sm);
}

.mj-checkout-form .card-header {
  background: var(--mj-cream-2);
  border-bottom: 1px solid var(--mj-line);
  padding: 1rem 1.25rem;
}

.mj-checkout-form .card-header h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mj-green-800);
}

.mj-checkout-form .card-body {
  padding: 1.25rem;
}

.mj-checkout-form table {
  margin: 0;
}

.mj-checkout-form table td,
.mj-checkout-form table th {
  border-color: var(--mj-line);
  padding: 0.5rem 0.75rem;
}

.mj-checkout-form table tfoot td {
  font-weight: 700;
  color: var(--mj-green-800);
}

#button-place-order {
  min-height: 56px;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: var(--mj-radius-sm);
  background: var(--mj-green-800);
  border-color: var(--mj-green-800);
}

#button-place-order:hover:not(:disabled) {
  background: var(--mj-green-600);
  border-color: var(--mj-green-600);
}

#button-place-order:disabled {
  background: var(--mj-cream-2);
  border-color: var(--mj-line);
  color: var(--mj-muted);
  cursor: not-allowed;
}
/* ==========================================================================
57) single-page checkout v10: confirm slot + error box + busy button.
The confirm view is injected into #mj-confirm-slot; its duplicate
totals table and core confirm button are hidden — the gateway form
(if any) is the only visible payload. Empty slot collapses.
========================================================================== */
.mj-confirm-slot:empty {
display: none;
}
.mj-confirm-slot {
margin-top: 16px;
}
.mj-confirm-slot table,
.mj-confirm-slot #button-confirm,
.mj-confirm-slot .btn-primary {
display: none !important;
}
#checkout-error {
margin-bottom: 12px;
}
#button-place-order.is-busy {
opacity: .75;
cursor: progress;
}
/* ==========================================================================
58) single-page checkout v10.3: payment extension form slot.
The selection-time fragment (bank instructions / YouCan card fields)
renders inside the payment card; empty slot collapses so COD shows
nothing extra. Light separation from the radio list above.
========================================================================== */
.mj-payment-form:empty {
display: none;
}
.mj-payment-form {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid var(--mj-line);
}
.mj-payment-form .form-control,
.mj-payment-form .form-select {
background: var(--mj-white);
}