:root{--ink:#182019;--muted:#6d766f;--green:#1f5a3a;--green2:#2f7550;--lime:#c9df7d;--cream:#f6f1e5;--paper:#fffdf8;--line:#dfe2dc;--bg:#f4f5ef;--red:#a6493f;--amber:#a56f12;--shadow:0 20px 60px rgba(20,37,27,.12)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper)}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}.container{width:min(1180px,calc(100% - 36px));margin:auto}.brand{display:flex;align-items:center;gap:10px}.mark{width:43px;height:43px;border-radius:13px;background:var(--green);color:white;display:grid;place-items:center;font-family:Georgia,serif;font-weight:700;font-size:26px}.brand-copy{display:flex;flex-direction:column;line-height:1}.brand-copy strong{font:700 22px Georgia,serif}.brand-copy small{font-size:8px;letter-spacing:.2em;color:var(--muted);margin-top:5px}.top{position:sticky;top:0;z-index:40;background:#fffdf8ee;backdrop-filter:blur(14px);border-bottom:1px solid #00000010}.nav{height:78px;display:flex;align-items:center;gap:28px}.navlinks{display:flex;gap:22px;margin-left:auto;font-size:13px;font-weight:700;color:#4d5850}.btn{border:0;border-radius:10px;padding:11px 16px;font-weight:800;cursor:pointer;display:inline-flex;justify-content:center;align-items:center}.btn.primary{background:var(--green);color:white}.btn.light{background:white;color:var(--ink);border:1px solid var(--line)}.btn.dark{background:#172019;color:white}.hero{background:linear-gradient(115deg,#f7f2e7 0 62%,#e8efd3 62%);padding:95px 0}.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:70px;align-items:center}.eyebrow{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--green);font-weight:800}.hero h1,.section h2,.page-title{font-family:Georgia,serif;letter-spacing:-.03em}.hero h1{font-size:clamp(50px,6vw,84px);line-height:.98;margin:15px 0 24px}.hero h1 span{color:var(--green)}.hero p{font-size:18px;line-height:1.7;color:#5d665f;max-width:680px}.actions{display:flex;gap:10px;margin-top:28px}.hero-card{background:white;border:1px solid #00000008;border-radius:24px;padding:28px;box-shadow:var(--shadow)}.hero-card h3{font:700 30px Georgia,serif}.roles{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:20px 0}.roles div{background:var(--cream);padding:16px;border-radius:12px;font-weight:800;font-size:13px}.stats{background:var(--green);color:white}.stats .container{display:grid;grid-template-columns:repeat(4,1fr);padding:24px 0}.stats strong{display:block;font-size:28px}.stats span{font-size:10px;color:#d5e1d7}.section{padding:90px 0}.section.alt{background:#f1f2eb}.section h2{font-size:clamp(38px,4.4vw,56px);margin:9px 0 34px}.section-head{display:flex;justify-content:space-between;gap:30px;align-items:end}.section-head p{max-width:470px;color:var(--muted);line-height:1.65}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.product{background:white;border:1px solid var(--line);border-radius:17px;overflow:hidden}.product-art{height:200px;display:grid;place-items:center;color:white;font:700 62px Georgia,serif}.a1{background:linear-gradient(135deg,#d4a02a,#74932e)}.a2{background:linear-gradient(135deg,#b4332c,#e17b2d)}.a3{background:linear-gradient(135deg,#53692a,#8b9b4a)}.a4{background:linear-gradient(135deg,#70412c,#bd7c36)}.product-body{padding:18px}.product h3{font:700 24px Georgia,serif;margin:8px 0}.product p{font-size:12px;line-height:1.55;color:var(--muted)}.trade-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.trade-card{border:1px solid var(--line);border-radius:15px;padding:20px;background:white}.trade-card h3{font:700 24px Georgia,serif;margin:18px 0 9px}.trade-card p{font-size:12px;color:var(--muted);line-height:1.55}.trade-card.featured{background:var(--green);color:white}.trade-card.featured p{color:#d4e0d7}.partner{background:#14251b;color:white}.partner .section-head p{color:#c2cec5}.partner-form{background:white;color:var(--ink);padding:24px;border-radius:18px;margin-top:30px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:9px;padding:11px 12px;background:white;outline:none}textarea{min-height:100px;resize:vertical}.partner-form textarea{margin:10px 0}.message{font-size:12px;margin-top:9px}.message.ok{color:var(--green)}.message.err{color:var(--red)}footer{background:#0f1812;color:white;padding:28px 0}.footer{display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:11px;color:#a8b4aa}
/* auth */.auth-body{min-height:100vh;background:linear-gradient(120deg,#f4f0e4,#e7efd2);display:grid;place-items:center;padding:25px}.auth-card{width:min(440px,100%);background:white;border-radius:22px;padding:30px;box-shadow:var(--shadow)}.auth-card h1{font:700 34px Georgia,serif;margin:18px 0 8px}.auth-card p{color:var(--muted);font-size:13px;line-height:1.55}.auth-card label,.field label{display:block;font-size:9px;font-weight:800;letter-spacing:.08em;color:#576159;margin:13px 0 5px}.auth-card .btn{width:100%;margin-top:14px}.demo-creds{background:#f6f4e9;border:1px solid #e8e2bf;border-radius:10px;padding:12px;margin-top:16px;font-size:11px;line-height:1.6}.backlink{display:block;margin-top:15px;text-align:center;font-size:11px;color:var(--green);font-weight:700}
/* app */.app-body{background:var(--bg);min-height:100vh}.app-shell{display:grid;grid-template-columns:245px 1fr;min-height:100vh}.sidebar{background:#14251b;color:white;padding:22px 15px;position:sticky;top:0;height:100vh}.sidebar .mark{background:var(--lime);color:var(--green)}.side-brand{margin:0 8px 28px}.side-nav{display:flex;flex-direction:column;gap:4px}.side-nav button{border:0;background:transparent;color:#b7c2b9;padding:11px 13px;border-radius:9px;text-align:left;font-weight:800;cursor:pointer}.side-nav button.active,.side-nav button:hover{background:#ffffff12;color:white}.side-foot{position:absolute;left:22px;right:22px;bottom:22px;font-size:10px;color:#95a39a;display:flex;flex-direction:column;gap:8px}.side-foot button{border:0;background:none;color:white;text-align:left;padding:0;cursor:pointer}.app-main{padding:0 30px 50px;min-width:0}.app-header{height:105px;display:flex;align-items:center;justify-content:space-between}.app-header h1{font:700 32px Georgia,serif;margin:3px 0}.user-pill{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:700}.avatar{width:38px;height:38px;border-radius:11px;background:var(--green);color:white;display:grid;place-items:center}.panel-view{display:none}.panel-view.active{display:block}.kpi-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.kpi{background:white;border:1px solid var(--line);border-radius:14px;padding:18px}.kpi span,.kpi small{display:block;font-size:9px;color:var(--muted)}.kpi strong{display:block;font-size:24px;margin:8px 0}.app-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:14px;margin-top:14px}.card{background:white;border:1px solid var(--line);border-radius:15px;padding:19px}.card h3{font:700 23px Georgia,serif;margin:6px 0 15px}.bars{height:210px;display:flex;gap:9px;align-items:flex-end}.bars i{flex:1;background:linear-gradient(to top,var(--green),var(--lime));border-radius:5px 5px 0 0}.alert-row,.list-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #edf0ea;font-size:11px}.alert-row:last-child,.list-row:last-child{border-bottom:0}.low{color:var(--red);font-weight:800}.module-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:17px}.module-head h2{font:700 38px Georgia,serif;margin:4px 0}.table-card{overflow:auto;background:white;border:1px solid var(--line);border-radius:14px}table{width:100%;border-collapse:collapse;min-width:820px}th,td{padding:13px 15px;border-bottom:1px solid #edf0ea;text-align:left;font-size:11px}th{font-size:9px;letter-spacing:.08em;color:#737d75;background:#fafbf8}.badge{display:inline-flex;padding:5px 8px;border-radius:20px;background:#e7f0e5;color:var(--green);font-size:9px;font-weight:800}.badge.warn{background:#f8ead4;color:#8a5b0a}.badge.danger{background:#f5e4e0;color:var(--red)}.action-row{display:flex;gap:6px}.small-btn{border:1px solid var(--line);background:white;border-radius:7px;padding:6px 8px;font-size:9px;font-weight:800;cursor:pointer}.small-btn.primary{background:var(--green);color:white;border-color:var(--green)}.modal{position:fixed;inset:0;background:#07100b99;display:none;align-items:center;justify-content:center;z-index:100;padding:18px}.modal.show{display:flex}.modal-card{width:min(620px,100%);max-height:90vh;overflow:auto;background:white;border-radius:18px;padding:23px;position:relative}.modal-card h3{font:700 29px Georgia,serif}.close{position:absolute;top:10px;right:13px;border:0;background:none;font-size:25px;cursor:pointer}.fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field.full{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.toast{position:fixed;right:20px;bottom:20px;background:#172019;color:white;padding:12px 14px;border-radius:10px;font-size:11px;display:none;z-index:150}.toast.show{display:block}.portal-header{background:white;border-bottom:1px solid var(--line)}.portal-header .container{height:76px;display:flex;justify-content:space-between;align-items:center}.portal-main{padding:48px 0 80px}.portal-welcome{display:flex;justify-content:space-between;gap:30px;align-items:end}.portal-welcome h1{font:700 46px Georgia,serif;margin:7px 0}.portal-welcome p{color:var(--muted);max-width:700px}.portal-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin:28px 0}.catalog-layout{display:grid;grid-template-columns:1fr 330px;gap:18px}.catalog-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.catalog-card{background:white;border:1px solid var(--line);border-radius:14px;padding:18px}.catalog-card h3{font:700 22px Georgia,serif;margin:7px 0}.catalog-card .price{font-size:24px;font-weight:800;margin-top:15px}.cart{background:#14251b;color:white;border-radius:16px;padding:20px;height:max-content;position:sticky;top:94px}.cart h3{font:700 27px Georgia,serif}.cart-line{display:flex;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #ffffff1a;font-size:11px}.cart .btn{width:100%;background:var(--lime);color:var(--green);margin-top:12px}.sales-wrap{padding:48px 0}.sales-card{max-width:850px;margin:auto}.progress{height:8px;background:#e5e9e3;border-radius:12px;overflow:hidden}.progress i{display:block;height:100%;background:var(--green)}
@media(max-width:1000px){.navlinks{display:none}.hero-grid,.catalog-layout,.app-grid{grid-template-columns:1fr}.product-grid,.trade-grid{grid-template-columns:1fr 1fr}.kpi-grid{grid-template-columns:1fr 1fr}.app-shell{grid-template-columns:1fr}.sidebar{display:none}.app-main{padding:0 15px 40px}.portal-welcome{flex-direction:column;align-items:stretch}.portal-kpis{grid-template-columns:1fr 1fr}.cart{position:static}}
@media(max-width:600px){.stats .container,.product-grid,.trade-grid,.form-grid,.fields,.catalog-grid,.portal-kpis,.kpi-grid{grid-template-columns:1fr}.actions{flex-direction:column}.section{padding:65px 0}.hero{padding:65px 0}.hero h1{font-size:46px}.module-head{align-items:start;flex-direction:column}.footer{flex-direction:column;align-items:flex-start}}

.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.settings-card{margin-bottom:14px}.settings-btn{margin-top:14px}.settings-note{font-size:11px;color:var(--muted);line-height:1.5}.danger-card{border-color:#e5c3bd;background:#fffafa}.danger-card h3{color:#7f2f28}.danger-card p{color:#70524f;font-size:12px;line-height:1.6;max-width:760px}.danger-btn{background:#9a3d33;color:white;border:0}.danger-btn:hover{background:#84332b}@media(max-width:850px){.settings-grid{grid-template-columns:1fr}}

.logo-image{padding:3px;background:white;overflow:hidden}.logo-image img{width:100%;height:100%;object-fit:contain;border-radius:9px}.product-photo{height:200px;background:#f1f2eb;overflow:hidden}.product-photo img{width:100%;height:100%;object-fit:cover}.social-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.hero-title-main{color:var(--ink)!important}.cms-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.cms-status{font-size:10px;color:var(--muted)}.cms-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cms-card{background:white;border:1px solid var(--line);border-radius:15px;padding:19px;margin-bottom:14px}.cms-card h3{font:700 23px Georgia,serif;margin:6px 0 15px}.color-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.color-field input[type=color]{height:48px;padding:4px;cursor:pointer}.image-control{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.image-preview{width:72px;height:72px;border-radius:12px;border:1px solid var(--line);object-fit:contain;background:#f7f7f2}.cms-help{font-size:10px;color:var(--muted);line-height:1.5;margin:4px 0 12px}.website-product-thumb{width:54px;height:42px;border-radius:7px;object-fit:cover;background:#eef0ea;border:1px solid var(--line)}.publish-btn{background:#15261b;color:white}.preview-btn{background:white;border:1px solid var(--line)}.revision-row{display:flex;gap:8px;align-items:center}.revision-row select{max-width:360px}@media(max-width:900px){.cms-grid,.color-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.cms-grid,.color-grid{grid-template-columns:1fr}}

/* Admin-created customer orders */
.order-modal-card{width:min(980px,96vw)}
.order-customer-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;background:#f4f5ef;border:1px solid #dfe3da;border-radius:14px;padding:14px;margin:15px 0}
.order-customer-summary>div{display:flex;flex-direction:column;gap:4px}
.order-customer-summary span,.order-price-cell span,.order-total-box span{font-size:9px;letter-spacing:.08em;color:#727b73;font-weight:800}
.order-customer-summary b{font-size:13px}
.order-customer-summary.credit-warning{border-color:#c97c72;background:#fff1ee}
.order-builder-head{display:flex;align-items:end;justify-content:space-between;margin:18px 0 8px}
.order-builder-head h4{font-family:Georgia,serif;font-size:22px;margin:3px 0}
.order-item-row{display:grid;grid-template-columns:minmax(280px,1fr) 100px 125px 135px 38px;gap:9px;align-items:end;border-top:1px solid #e7e9e4;padding:11px 0}
.order-item-row .field{margin:0}
.order-price-cell{height:43px;background:#f7f7f3;border:1px solid #dfe1db;border-radius:9px;padding:7px 10px;display:flex;flex-direction:column;justify-content:center}
.order-price-cell b{font-size:13px;margin-top:2px}
.order-remove{height:43px;border:0;border-radius:9px;background:#f3e8e5;color:#993a30;font-size:22px;cursor:pointer}
.order-stock-warning{background:#fff5f2}
.order-stock-warning .order-qty{border-color:#bd5b4d}
.order-total-box{display:flex;justify-content:flex-end;align-items:center;gap:16px;padding:17px 0;border-top:2px solid #dfe3da;margin-top:4px}
.order-total-box strong{font-size:28px;font-family:Georgia,serif}
@media(max-width:900px){
  .order-customer-summary{grid-template-columns:1fr 1fr}
  .order-item-row{grid-template-columns:1fr 90px}
  .order-price-cell{height:auto}
  .order-remove{grid-column:2}
}

/* Business Operations V4 */
.report-filter{display:flex;gap:12px;align-items:end;margin:0 0 16px}.report-filter .field{max-width:190px}
.report-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:16px}.report-kpis .kpi{padding:16px}
.accounting-grid{grid-template-columns:1fr 1fr}.compact-table{margin-top:12px}.report-subhead{margin-top:28px}
.settings-note{margin-top:12px;padding:11px;border-radius:9px;background:#f3f2e9;color:var(--muted);font-size:11px;line-height:1.5}
.small-btn{display:inline-flex;text-decoration:none;align-items:center;justify-content:center}
.v4-sales .muted{color:var(--muted)}
.mobile-work-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0}.mobile-work-grid .card{min-width:0}
.sales-order-row{display:grid;grid-template-columns:1fr 72px 90px 36px;gap:6px;margin:7px 0}.sales-order-row select,.sales-order-row input{min-width:0}.sales-order-row .sol{display:flex;align-items:center;justify-content:flex-end;font-size:12px}.order-remove{border:0;border-radius:8px;background:#f1e5e2;color:#983a31;font-size:20px;cursor:pointer}
.sales-customer-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:15px}.sales-customer-card{background:white;border:1px solid var(--line);border-radius:14px;padding:14px;display:grid;grid-template-columns:1fr auto;gap:8px}.sales-customer-card small{display:block;color:var(--muted);margin-top:3px}.sales-customer-card>strong{font-size:12px}.customer-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}.customer-actions a,.customer-actions button{border:1px solid var(--line);background:#f8f8f3;color:var(--green);padding:7px 9px;border-radius:8px;font-size:10px;font-weight:800;text-decoration:none;cursor:pointer}
.activity-list{background:white;border:1px solid var(--line);border-radius:14px}.activity-row{display:flex;justify-content:space-between;gap:15px;padding:12px 14px;border-bottom:1px solid #eceee8;font-size:11px}.activity-row:last-child{border-bottom:0}.activity-row small{display:block;color:var(--muted);margin-top:2px}.activity-row span{text-align:right}
.invoice-body,.label-body{background:#eceee8;color:#172019}.invoice-toolbar{position:sticky;top:0;z-index:20;display:flex;justify-content:center;gap:8px;padding:12px;background:#17241b}
.invoice-page{width:min(900px,calc(100% - 28px));margin:28px auto;background:white;padding:48px;box-shadow:0 15px 50px #0002}.invoice-head{display:flex;justify-content:space-between;gap:30px;border-bottom:2px solid #183a28;padding-bottom:24px}.invoice-brand{display:flex;align-items:center;gap:10px}.invoice-brand img{max-height:58px;max-width:160px}.invoice-brand h1{font-family:Georgia,serif;margin:0;font-size:30px}.invoice-brand small{letter-spacing:.14em}.invoice-head p,.invoice-meta p,.invoice-customer p{font-size:11px;line-height:1.6;color:#606861}.invoice-meta{text-align:right}.invoice-meta>span,.invoice-customer span{font-size:9px;letter-spacing:.16em;color:#1f5a3a;font-weight:800}.invoice-meta h2{font-family:Georgia,serif;font-size:28px;margin:5px 0}.invoice-customer{display:flex;justify-content:space-between;gap:30px;padding:24px 0}.invoice-customer h3{font-family:Georgia,serif;font-size:21px;margin:5px 0}.invoice-table{width:100%;border-collapse:collapse}.invoice-table th,.invoice-table td{padding:11px;border-bottom:1px solid #e4e6e1;text-align:left;font-size:11px}.invoice-table th{font-size:9px;letter-spacing:.08em;background:#f5f5f0}.invoice-total{display:flex;justify-content:flex-end;align-items:center;gap:20px;padding:24px 0}.invoice-total span{font-size:10px;letter-spacing:.12em}.invoice-total strong{font-size:28px}.invoice-note{background:#f7f6ef;padding:12px;border-radius:8px;font-size:11px}.invoice-footer{text-align:center;margin-top:35px;padding-top:18px;border-top:1px solid #ddd;font-size:10px;color:#697169}
.label-sheet{width:min(1050px,calc(100% - 24px));margin:20px auto;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.product-label{background:white;border:1px dashed #888;min-height:360px;padding:20px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.label-brand{display:flex;align-items:center;gap:7px}.label-brand b{font-family:Georgia,serif;font-size:20px}.product-label h2{font-family:Georgia,serif;margin:15px 0 4px}.product-label p{margin:0 0 10px}.sku-big{font-weight:800;letter-spacing:.14em;margin:6px 0 12px}.qr-img{width:150px;height:150px}.product-label small{margin-top:8px;color:#6d756f}
@media(max-width:1050px){.report-kpis{grid-template-columns:repeat(3,1fr)}.mobile-work-grid{grid-template-columns:1fr}.sales-customer-cards{grid-template-columns:1fr}}
@media(max-width:700px){.report-kpis{grid-template-columns:1fr 1fr}.accounting-grid{grid-template-columns:1fr}.desktop-sales-table{display:none}.sales-customer-cards{display:grid}.invoice-page{margin:0;width:100%;padding:24px;box-shadow:none}.invoice-head,.invoice-customer{flex-direction:column}.invoice-meta{text-align:left}.label-sheet{grid-template-columns:1fr}.report-filter{flex-direction:column;align-items:stretch}.report-filter .field{max-width:none}}
@media(min-width:701px){.sales-customer-cards{display:none}}
@media print{.invoice-toolbar{display:none!important}.invoice-body,.label-body{background:white}.invoice-page{box-shadow:none;margin:0;width:100%;padding:20px}.label-sheet{margin:0;width:100%;gap:4px}.product-label{break-inside:avoid;min-height:330px}.qr-img{width:130px;height:130px}}


/* =========================================================
   Mariyam Premium Public Header & Footer V5
   ========================================================= */
.utility-bar{
  background:#11281b;
  color:#e7eee9;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:11px;
}
.utility-inner{
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.utility-contact,.utility-actions{
  display:flex;
  align-items:center;
  gap:18px;
}
.utility-item,.utility-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#dce8df;
  transition:opacity .2s,color .2s;
}
.utility-item:hover,.utility-link:hover{color:white}
.utility-icon{
  width:20px;height:20px;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.08);
  color:var(--lime);
  font-size:10px;
}
.utility-link.strong{font-weight:800;color:var(--lime)}

.site-header{
  position:sticky;top:0;z-index:70;
  background:rgba(255,253,248,.96);
  border-bottom:1px solid rgba(20,37,27,.08);
  backdrop-filter:blur(18px);
  transition:box-shadow .25s,background .25s;
}
.site-header.scrolled{
  box-shadow:0 13px 35px rgba(20,37,27,.10);
  background:rgba(255,253,248,.985);
}
.site-nav{
  min-height:84px;
  display:flex;
  align-items:center;
  gap:26px;
}
.site-brand{flex:0 0 auto}
.site-brand .mark{box-shadow:0 7px 18px rgba(31,90,58,.18)}
.premium-nav{
  margin-left:auto;
  gap:20px;
  color:#344239;
}
.premium-nav a{
  position:relative;
  padding:31px 0;
  font-size:12px;
  transition:color .2s;
}
.premium-nav a:after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:20px;
  height:2px;border-radius:4px;
  background:var(--green);
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .2s;
}
.premium-nav a:hover{color:var(--green)}
.premium-nav a:hover:after{transform:scaleX(1)}

.header-ctas{
  display:flex;
  align-items:center;
  gap:9px;
  flex:0 0 auto;
}
.header-partner-btn{
  padding:11px 14px;
  border:1px solid var(--green);
  color:var(--green);
  border-radius:10px;
  font-size:11px;
  font-weight:800;
  transition:.2s;
}
.header-partner-btn:hover{background:#edf3eb}
.header-login-btn{
  min-width:133px;
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:9px 13px;
  border-radius:11px;
  background:var(--green);
  color:white;
  box-shadow:0 8px 20px rgba(31,90,58,.18);
}
.header-login-btn span{font-size:8px;letter-spacing:.06em;opacity:.78}
.header-login-btn strong{font-size:11px}
.header-login-btn:hover{background:var(--green2)}

.mobile-menu-btn{
  display:none;
  margin-left:auto;
  border:1px solid var(--line);
  background:white;
  border-radius:10px;
  padding:9px 11px;
  cursor:pointer;
  align-items:center;
  gap:4px;
}
.mobile-menu-btn span{
  display:block;width:17px;height:2px;background:var(--green);border-radius:4px;
}
.mobile-menu-btn b{font-size:9px;margin-left:5px;text-transform:uppercase;letter-spacing:.08em;color:var(--green)}

.site-footer{
  background:#0f2117;
  color:#eef4ef;
  margin-top:0;
}
.footer-main{
  padding:68px 0 54px;
  background:
    radial-gradient(circle at 12% 20%,rgba(201,223,125,.08),transparent 28%),
    #0f2117;
}
.footer-grid-v5{
  display:grid;
  grid-template-columns:1.35fr .75fr .9fr 1.15fr;
  gap:44px;
}
.footer-brand-v5{color:white;margin-bottom:20px}
.footer-brand-v5 .brand-copy small{color:#9eb1a3}
.footer-mark{
  background:var(--lime);
  color:#173d29;
}
.footer-about{
  max-width:360px;
  font-size:12px;
  line-height:1.75;
  color:#aebeb2;
  margin:0 0 20px;
}
.footer-label{
  color:var(--lime);
  font-size:9px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
  margin:9px 0 18px;
}
.footer-links{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.footer-links a{
  width:max-content;
  max-width:100%;
  font-size:12px;
  color:#d9e4dc;
  transition:color .2s,transform .2s;
}
.footer-links a:hover{color:white;transform:translateX(3px)}
.footer-contact-column{min-width:0}
.footer-contact-item{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:0 0 13px;
  margin:0 0 13px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.footer-contact-item span{
  font-size:8px;
  color:#819789;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.footer-contact-item strong{
  color:#edf4ef;
  font-size:11px;
  font-weight:700;
  line-height:1.45;
  overflow-wrap:anywhere;
}
.footer-socials{display:flex;flex-wrap:wrap;gap:8px}
.footer-social-link{
  padding:7px 10px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.13);
  color:#e6eee8;
  font-size:9px;
  font-weight:800;
  transition:.2s;
}
.footer-social-link:hover{background:var(--lime);border-color:var(--lime);color:#173d29}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.09);
  background:#0b1a11;
}
.footer-bottom-inner{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  color:#829589;
  font-size:10px;
}
.footer-legal{display:flex;align-items:center;gap:9px}
.footer-legal a{color:#b6c6ba;font-weight:700}
.footer-legal a:hover{color:white}
.footer-dot{opacity:.35}

.mark.logo-image,.footer-mark.logo-image{
  overflow:hidden;background:transparent;box-shadow:none;
  width:auto;min-width:43px;max-width:180px;
}
.mark.logo-image img{
  display:block;max-height:48px;max-width:175px;width:auto;height:auto;object-fit:contain;
}

/* Slight polish to the first fold so the new header feels integrated. */
.hero{position:relative;overflow:hidden}
.hero:before{
  content:"";
  position:absolute;inset:auto auto -190px -120px;
  width:380px;height:380px;border-radius:50%;
  border:1px solid rgba(31,90,58,.08);
  pointer-events:none;
}
.hero-card{position:relative}
.hero-card:before{
  content:"";
  position:absolute;top:0;left:28px;right:28px;height:3px;
  background:linear-gradient(90deg,var(--green),var(--lime));
  border-radius:0 0 8px 8px;
}

@media(max-width:1120px){
  .premium-nav{gap:14px}
  .premium-nav a{font-size:11px}
  .header-partner-btn{display:none}
  .footer-grid-v5{grid-template-columns:1.2fr .8fr .9fr}
  .footer-contact-column{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
  .footer-contact-column .footer-label{grid-column:1/-1;margin-bottom:0}
  .footer-contact-item{margin:0}
}

@media(max-width:900px){
  .utility-email{display:none}
  .utility-actions .utility-link:first-child{display:none}
  .site-nav{min-height:72px;position:relative}
  .mobile-menu-btn{display:flex}
  .header-ctas{display:none}
  .premium-nav{
    display:none;
    position:absolute;
    top:72px;left:0;right:0;
    margin:0;
    background:#fffdf8;
    border:1px solid var(--line);
    border-radius:0 0 16px 16px;
    box-shadow:0 18px 38px rgba(20,37,27,.14);
    padding:10px 18px 17px;
    flex-direction:column;
    gap:0;
  }
  .premium-nav.open{display:flex}
  .premium-nav a{
    padding:13px 3px;
    border-bottom:1px solid #eceee8;
    font-size:12px;
  }
  .premium-nav a:last-child{border-bottom:0}
  .premium-nav a:after{display:none}
  .footer-grid-v5{grid-template-columns:1fr 1fr;gap:34px}
  .footer-brand-column{grid-column:1/-1}
  .footer-contact-column{grid-column:1/-1;grid-template-columns:1fr 1fr}
}

@media(max-width:620px){
  .utility-inner{min-height:34px}
  .utility-actions .strong{font-size:9px}
  .utility-contact{gap:8px}
  .utility-item{font-size:9px}
  .utility-icon{display:none}
  .site-brand .brand-copy strong{font-size:20px}
  .footer-main{padding:48px 0 38px}
  .footer-grid-v5{grid-template-columns:1fr;gap:31px}
  .footer-brand-column,.footer-contact-column{grid-column:auto}
  .footer-contact-column{display:block}
  .footer-contact-item{margin-bottom:12px}
  .footer-bottom-inner{min-height:76px;flex-direction:column;align-items:flex-start;justify-content:center}
  .footer-legal{flex-wrap:wrap}
}


/* =========================================================
   Mariyam Header & Footer V5.1 — final visual polish
   ========================================================= */

/* Keep key brand/UI typography in the Mariyam palette even if the
   general CMS text color is changed. */
.site-brand .brand-copy strong{
  color:var(--green);
}
.hero-card h3,
.roles div{
  color:#142019;
}
.hero-title-main{
  color:#142019 !important;
}

/* Slightly more compact, premium navigation. */
.site-nav{
  min-height:78px;
}
.premium-nav a{
  padding:28px 0;
}
.premium-nav a:after{
  bottom:17px;
}

/* Improve real uploaded logo proportions. */
.site-brand .mark.logo-image{
  height:52px;
  min-width:52px;
  max-width:190px;
  padding:2px;
}
.site-brand .mark.logo-image img{
  max-height:50px;
  max-width:185px;
}

.footer-brand-v5 .mark.logo-image{
  height:58px;
  min-width:58px;
  max-width:220px;
  padding:2px;
  background:#fff;
  border-radius:12px;
}
.footer-brand-v5 .mark.logo-image img{
  max-height:56px;
  max-width:215px;
}
.footer-brand-v5 .brand-copy strong{
  color:#fff;
  font-size:24px;
}

/* Footer: reduce empty space and improve density. */
.footer-main{
  padding:48px 0 38px;
}
.footer-grid-v5{
  gap:36px;
}
.footer-about{
  margin-top:2px;
  max-width:330px;
  line-height:1.7;
}
.footer-label{
  margin-top:5px;
  margin-bottom:16px;
}
.footer-links{
  gap:10px;
}
.footer-contact-item{
  padding-bottom:11px;
  margin-bottom:11px;
}
.footer-contact-item strong{
  line-height:1.55;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.footer-bottom-inner{
  min-height:52px;
}

/* A subtle divider gives the footer a more finished FMCG/company feel. */
.footer-main{
  position:relative;
}
.footer-main:before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  width:min(1180px,calc(100% - 36px));
  transform:translateX(-50%);
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(201,223,125,.22),transparent);
}

/* Mobile refinements. */
@media(max-width:900px){
  .site-nav{min-height:70px}
  .premium-nav{top:70px}
  .footer-main{padding:42px 0 34px}
}
@media(max-width:620px){
  .site-brand .mark.logo-image{
    height:46px;
    min-width:46px;
  }
  .site-brand .mark.logo-image img{max-height:44px}
  .footer-brand-v5 .mark.logo-image{
    height:54px;
    min-width:54px;
  }
  .footer-bottom-inner{min-height:72px}
}


/* =========================================================
   Mariyam Public Color Consistency V5.2
   ========================================================= */

/* Keep public-facing typography inside the brand palette.
   CMS text color may be changed, but headings and trade cards should
   never accidentally turn bright blue. */
#contact h2,
#about h2,
#products h2,
#distribution h2,
#partner h2,
.section h2,
.section-head h2{
  color:#142019 !important;
}

#contact .trade-card b,
#contact .trade-card h3,
#contact .trade-card strong,
#contact .trade-card a{
  color:var(--green) !important;
}

#contact .trade-card h3{
  font-family:Georgia,serif;
  font-size:20px;
  line-height:1.35;
  overflow-wrap:anywhere;
  word-break:normal;
}

#contact .trade-card b{
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:10px;
}

#contact .trade-card{
  background:#fffef9;
  border-color:#dfe4dc;
  box-shadow:0 7px 20px rgba(20,37,27,.035);
}

#contact .trade-card:hover{
  border-color:rgba(31,90,58,.28);
}

/* Public product and distribution cards */
.product-body h3,
.trade-card h3{
  color:#142019;
}

.trade-card b,
.product-body .eyebrow{
  color:var(--green);
}

/* Brand headings */
.hero-card h3,
.footer-brand-v5 .brand-copy strong,
.site-brand .brand-copy strong{
  color:var(--green);
}

.footer-brand-v5 .brand-copy strong{
  color:#fff;
}

/* Contact intro */
#contact > .container > p{
  max-width:680px;
  line-height:1.7;
}

/* Slightly tighter contact block */
#contact.section{
  padding-bottom:76px;
}

@media(max-width:620px){
  #contact .trade-card h3{
    font-size:18px;
  }
}


/* =========================================================
   Mariyam Footer Deduplication V5.3
   Keep detailed contact information in the Contact section only.
   ========================================================= */

.footer-grid-v5{
  grid-template-columns:1.45fr .8fr .95fr;
  gap:64px;
}

.footer-brand-column{
  max-width:420px;
}

.footer-column{
  min-width:0;
}

/* Keep the 3-column footer visually balanced */
.footer-grid-v5 > .footer-column:nth-child(2),
.footer-grid-v5 > .footer-column:nth-child(3){
  padding-top:2px;
}

@media(max-width:900px){
  .footer-grid-v5{
    grid-template-columns:1.25fr 1fr 1fr;
    gap:34px;
  }
  .footer-brand-column{
    grid-column:auto;
  }
}

@media(max-width:700px){
  .footer-grid-v5{
    grid-template-columns:1fr 1fr;
  }
  .footer-brand-column{
    grid-column:1/-1;
  }
}

@media(max-width:520px){
  .footer-grid-v5{
    grid-template-columns:1fr;
  }
  .footer-brand-column{
    grid-column:auto;
  }
}


/* =========================================================
   MARIYAM MOBILE OPTIMIZATION V6
   Public site + Admin + Customer Portal + Sales Force
   ========================================================= */

/* General touch ergonomics */
@media(max-width:760px){
  html{-webkit-text-size-adjust:100%;scroll-padding-top:78px}
  body{overflow-x:hidden}
  button,.btn,.small-btn,input,select,textarea,a{touch-action:manipulation}
  button,.btn,.small-btn{min-height:44px}
  input,select,textarea{font-size:16px!important;min-height:46px}
  textarea{min-height:96px}
  .container{width:min(100% - 24px,1180px)}
}

/* ---------- Public website ---------- */
@media(max-width:900px){
  .utility-inner{gap:8px}
  .utility-contact,.utility-actions{gap:10px}
  .site-brand{min-width:0}
  .site-brand .brand-copy strong{font-size:20px}
  .site-brand .brand-copy small{font-size:7px}
  .mobile-menu-btn{min-height:42px}
  .premium-nav.open{max-height:calc(100vh - 106px);overflow:auto}
}
@media(max-width:620px){
  .utility-bar{font-size:9px}
  .utility-inner{min-height:32px}
  .utility-contact{max-width:55%;overflow:hidden}
  .utility-item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .utility-actions .strong{white-space:nowrap}
  .site-nav{min-height:68px}
  .premium-nav{top:68px;left:-2px;right:-2px;border-radius:0 0 14px 14px}
  .hero{padding:48px 0 54px}
  .hero-grid{gap:28px}
  .hero h1{font-size:clamp(42px,14vw,62px);line-height:.98}
  .hero p{font-size:15px;line-height:1.65}
  .hero-card{padding:22px;border-radius:18px}
  .hero-card h3{font-size:27px}
  .roles{grid-template-columns:1fr 1fr}
  .stats .container{grid-template-columns:1fr 1fr;gap:0}
  .stats .container>div{padding:18px 10px;border-bottom:1px solid #ffffff18}
  .section{padding:52px 0}
  .section-head{gap:12px;margin-bottom:26px}
  .section h2,.section-head h2{font-size:36px;line-height:1.08}
  .product-grid,.trade-grid{grid-template-columns:1fr!important}
  .product-photo,.product-art{height:220px}
  #contact .trade-grid{grid-template-columns:1fr 1fr!important;gap:10px}
  #contact .trade-card{padding:15px;min-width:0}
  #contact .trade-card h3{font-size:16px;overflow-wrap:anywhere}
  .partner-form{padding:18px}
  .footer-grid-v5{gap:28px}
}
@media(max-width:430px){
  #contact .trade-grid{grid-template-columns:1fr!important}
  .stats .container{grid-template-columns:1fr 1fr!important}
  .footer-grid-v5{grid-template-columns:1fr!important}
}

/* ---------- Admin mobile drawer ---------- */
.mobile-admin-toggle,.mobile-sidebar-overlay{display:none}
@media(max-width:1000px){
  .app-shell{display:block;min-height:100vh}
  .sidebar{
    display:flex!important;
    flex-direction:column;
    position:fixed!important;
    z-index:220;
    left:0;top:0;bottom:0;
    width:min(84vw,320px);
    height:100dvh!important;
    transform:translateX(-105%);
    transition:transform .24s ease;
    box-shadow:18px 0 45px rgba(0,0,0,.22);
    overflow-y:auto;
    padding-bottom:88px;
  }
  .sidebar.mobile-open{transform:translateX(0)}
  .side-foot{position:static;margin-top:auto;padding:22px 7px 0;left:auto;right:auto;bottom:auto}
  .mobile-sidebar-overlay{
    display:block;position:fixed;inset:0;z-index:210;
    background:rgba(5,15,9,.52);opacity:0;pointer-events:none;transition:.2s;
  }
  .mobile-sidebar-overlay.show{opacity:1;pointer-events:auto}
  .mobile-admin-toggle{
    display:inline-grid;place-items:center;
    width:46px;height:46px;min-height:46px;
    border:1px solid var(--line);border-radius:12px;
    background:white;color:var(--green);font-size:23px;
    flex:0 0 auto;cursor:pointer;
    box-shadow:0 5px 16px rgba(20,37,27,.08)
  }
  .app-main{padding:0 14px 86px!important}
  .app-header{
    height:auto;min-height:76px;position:sticky;top:0;z-index:100;
    background:rgba(246,247,242,.95);backdrop-filter:blur(12px);
    margin:0 -14px 14px;padding:10px 14px;border-bottom:1px solid var(--line)
  }
  .app-header>div:first-child{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center}
  .app-header .eyebrow{grid-column:2;margin:0}
  .app-header h1{grid-column:2;font-size:27px;margin:1px 0}
  .user-pill span{display:none}
  .kpi-grid{grid-template-columns:1fr 1fr!important;gap:9px}
  .kpi{padding:14px}
  .kpi strong{font-size:21px}
  .app-grid{grid-template-columns:1fr!important}
  .bars{height:165px}
  .module-head{align-items:center!important;flex-direction:row!important;flex-wrap:wrap;gap:10px}
  .module-head h2{font-size:30px}
  .module-head>.btn,.module-head>button{margin-left:auto}
  .cms-toolbar{width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}
  .cms-toolbar .btn{white-space:nowrap}
}
@media(max-width:600px){
  .kpi-grid{grid-template-columns:1fr 1fr!important}
  .kpi span{font-size:8px}
  .kpi strong{font-size:19px}
  .module-head{align-items:flex-start!important}
  .module-head h2{font-size:30px}
  .module-head>.btn,.module-head>button{width:100%;margin-left:0}
  .card{padding:15px}
  .card h3{font-size:21px}
  .settings-grid,.cms-grid,.color-grid{grid-template-columns:1fr!important}
  .color-field input[type=color]{height:52px}
}

/* ---------- Mobile tables become readable cards ---------- */
@media(max-width:700px){
  .table-card.mobile-card-table{overflow:visible;background:transparent;border:0;border-radius:0}
  .table-card.mobile-card-table table{min-width:0;width:100%;display:block}
  .table-card.mobile-card-table thead{display:none}
  .table-card.mobile-card-table tbody{display:grid;gap:10px}
  .table-card.mobile-card-table tr{display:block;background:white;border:1px solid var(--line);border-radius:14px;padding:8px 12px;box-shadow:0 4px 14px rgba(20,37,27,.035)}
  .table-card.mobile-card-table td{display:grid;grid-template-columns:minmax(92px,36%) 1fr;gap:10px;align-items:start;padding:8px 0;border-bottom:1px solid #edf0ea;font-size:11px;min-width:0;overflow-wrap:anywhere}
  .table-card.mobile-card-table td:last-child{border-bottom:0}
  .table-card.mobile-card-table td:before{content:attr(data-label);font-size:8px;letter-spacing:.07em;color:var(--muted);font-weight:900;text-transform:uppercase}
  .table-card.mobile-card-table .action-row{display:flex;flex-wrap:wrap;gap:6px}
  .table-card.mobile-card-table .small-btn{flex:1 1 auto;min-width:74px;min-height:38px}
}

/* ---------- Admin create-order form ---------- */
@media(max-width:700px){
  .modal{padding:0;align-items:flex-end}
  .modal-card,.order-modal-card{
    width:100%!important;max-width:none!important;max-height:94dvh!important;
    border-radius:20px 20px 0 0;padding:20px 14px 24px
  }
  .modal-card h3{font-size:25px;padding-right:35px}
  .close{width:42px;height:42px;min-height:42px;top:7px;right:7px;background:#f3f4ef;border-radius:50%}
  .fields{grid-template-columns:1fr!important}
  .field.full{grid-column:auto}
  .order-customer-summary{grid-template-columns:1fr 1fr!important;gap:7px;padding:10px}
  .order-builder-head{align-items:center;gap:8px}
  .order-builder-head .btn{min-width:max-content}
  .order-item-row{
    display:grid!important;grid-template-columns:1fr 88px!important;
    background:#f8f8f4;border:1px solid var(--line);border-radius:13px;
    padding:10px!important;margin:9px 0;gap:8px!important
  }
  .order-product-field{grid-column:1/-1}
  .order-qty-field{grid-column:1}
  .order-price-cell{height:auto!important;min-height:48px}
  .order-price-cell:nth-of-type(1){grid-column:2}
  .order-price-cell:nth-of-type(2){grid-column:1/-1}
  .order-remove{grid-column:2!important;width:100%}
  .order-total-box{position:sticky;bottom:0;background:white;z-index:4;padding:12px 0;margin-top:8px}
  .order-total-box strong{font-size:24px}
  .form-actions{position:sticky;bottom:0;background:white;padding-top:10px;display:grid;grid-template-columns:1fr 1fr;z-index:5}
}

/* ---------- Customer portal ---------- */
@media(max-width:760px){
  .portal-header{position:sticky;top:0;z-index:90;background:rgba(255,255,255,.96);backdrop-filter:blur(10px)}
  .portal-header .container{height:68px;gap:8px}
  .portal-header .brand-copy small{font-size:7px}
  .portal-header .btn{padding:9px 11px;font-size:10px;min-height:40px}
  .portal-main{padding:28px 0 80px}
  .portal-welcome h1{font-size:36px}
  .portal-kpis{grid-template-columns:1fr 1fr!important;gap:8px;margin:18px 0 24px}
  .catalog-layout{grid-template-columns:1fr!important}
  .catalog-grid{grid-template-columns:1fr!important}
  .catalog-card{padding:15px}
  .catalog-card .price{font-size:22px}
  .cart{
    position:static!important;border-radius:16px;padding:16px;
    box-shadow:0 10px 30px rgba(20,37,27,.12)
  }
  .cart .btn{min-height:50px;font-size:13px}
}

/* ---------- Sales force mobile-first ---------- */
@media(max-width:760px){
  .sales-wrap{padding:24px 0 90px}
  .sales-card{width:100%}
  .page-title{font-size:34px!important}
  .v4-sales .portal-kpis{grid-template-columns:1fr 1fr!important}
  .mobile-work-grid{grid-template-columns:1fr!important}
  .sales-customer-cards{display:grid!important;grid-template-columns:1fr!important;gap:10px}
  .sales-customer-card{padding:15px}
  .sales-customer-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:7px}
  .sales-customer-actions .btn,.sales-customer-actions button,.sales-customer-actions a{min-height:44px;justify-content:center}
  .desktop-sales-table{display:none!important}
}

/* ---------- Login ---------- */
@media(max-width:600px){
  .login-wrap{padding:20px 12px!important;min-height:100dvh;display:grid;place-items:center}
  .login-card{width:100%!important;max-width:430px!important;padding:22px 18px!important;border-radius:18px!important}
  .login-card h1{font-size:34px!important}
  .login-card .btn{width:100%;min-height:50px}
}

/* ---------- Invoice / labels on small screens ---------- */
@media(max-width:700px){
  .invoice-toolbar{position:sticky;top:0;z-index:90;padding:8px;overflow-x:auto;justify-content:flex-start!important}
  .invoice-toolbar .btn{white-space:nowrap}
  .invoice-page{padding:18px!important;margin:0!important;width:100%!important;border-radius:0!important}
  .invoice-head,.invoice-customer{gap:14px}
  .label-sheet{grid-template-columns:1fr!important;padding:10px!important}
}

/* =========================================================
   Mariyam Mobile V6.1 — real-device polish
   Fixes About/Product section stacking + secondary CTA color
   ========================================================= */

/* Keep secondary public CTA inside Mariyam palette even when the CMS
   text color has been changed. */
a.btn.light,
.btn.light,
#heroSecondary{
  color:var(--green)!important;
  border-color:rgba(31,90,58,.22);
}
a.btn.light:hover,
.btn.light:hover{
  background:#f4f7ef;
  color:var(--green)!important;
}

@media(max-width:620px){
  /* Sections with heading + description must stack on a phone.
     The old flex row was causing the About paragraph to run off-screen. */
  .section-head{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:12px!important;
    margin-bottom:24px;
  }
  .section-head > div,
  .section-head > p{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }
  .section-head p{
    margin:0;
    font-size:15px;
    line-height:1.65;
    overflow-wrap:anywhere;
  }

  /* Give long About headings enough room without crushing body copy. */
  #about .section-head h2,
  #products .section-head h2{
    width:100%;
    max-width:none;
    margin-bottom:4px;
  }

  /* Product intro should read vertically before the cards. */
  #products .section-head{
    margin-bottom:26px;
  }

  /* More balanced hero actions on narrow screens. */
  .hero .actions .btn{
    width:100%;
    min-height:54px;
    font-size:16px;
  }

  /* Avoid long content pushing the page wider than the viewport. */
  .section p,
  .product-body p,
  .trade-card p,
  .trade-card h3{
    max-width:100%;
    overflow-wrap:anywhere;
  }
}

@media(max-width:430px){
  #about .section-head h2,
  #products .section-head h2{
    font-size:34px;
    line-height:1.07;
  }
}


/* =========================================================
   Mariyam Mobile V6.2 — Featured Products: 2 cards per row
   ========================================================= */
@media(max-width:620px){
  #products .product-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }

  #products .product{
    min-width:0;
    border-radius:14px;
  }

  #products .product-photo,
  #products .product-art{
    width:100%;
    height:auto!important;
    aspect-ratio:1.08 / 1;
    min-height:0;
  }

  #products .product-art{
    font-size:44px;
  }

  #products .product-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
  }

  #products .product-body{
    padding:11px 10px 13px;
  }

  #products .product-body .eyebrow{
    font-size:8px;
    letter-spacing:.14em;
  }

  #products .product h3{
    font-size:18px;
    line-height:1.08;
    margin:7px 0 8px;
    overflow-wrap:anywhere;
  }

  #products .product p{
    font-size:10px;
    line-height:1.45;
    margin:0;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
}

@media(max-width:360px){
  #products .product-grid{
    gap:8px!important;
  }
  #products .product-body{
    padding:9px 8px 11px;
  }
  #products .product h3{
    font-size:16px;
  }
  #products .product p{
    font-size:9px;
  }
  #products .product-art{
    font-size:38px;
  }
}


/* =========================================================
   Mariyam Partner Section Visibility Fix V6.3
   Fix dark heading on dark green background
   ========================================================= */
#partner.section,
.partner{
  color:#ffffff;
}

#partner .section-head h2,
#partner h2,
.partner .section-head h2,
.partner h2{
  color:#ffffff !important;
  text-shadow:0 1px 0 rgba(0,0,0,.08);
}

#partner .section-head p,
.partner .section-head p{
  color:#e4eee6 !important;
}

#partner .eyebrow,
.partner .eyebrow{
  color:var(--lime) !important;
}

@media(max-width:620px){
  #partner .section-head h2,
  .partner .section-head h2{
    font-size:34px;
    line-height:1.08;
  }
}


/* =========================================================
   Public Product Details V6.4
   Click / double-click product image or card
   ========================================================= */
.product-clickable{
  cursor:pointer;
  position:relative;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.product-clickable:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(20,32,25,.10);
}
.product-clickable:focus-visible{
  outline:3px solid var(--lime);
  outline-offset:3px;
}
.product-photo{
  position:relative;
  overflow:hidden;
}
.product-photo img{
  transition:transform .24s ease;
}
.product-clickable:hover .product-photo img{
  transform:scale(1.035);
}
.product-view-hint{
  position:absolute;
  right:10px;
  bottom:10px;
  padding:6px 9px;
  border-radius:999px;
  background:rgba(20,32,25,.86);
  color:#fff;
  font-size:10px;
  font-weight:800;
  letter-spacing:.04em;
  opacity:0;
  transform:translateY(4px);
  transition:.18s ease;
}
.product-clickable:hover .product-view-hint{
  opacity:1;
  transform:none;
}
.product-details-link{
  margin-top:12px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--green);
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

body.product-modal-open{overflow:hidden}
.product-detail-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
}
.product-detail-modal.open{display:flex}
.product-detail-backdrop{
  position:absolute;
  inset:0;
  background:rgba(7,24,15,.70);
  backdrop-filter:blur(3px);
}
.product-detail-card{
  position:relative;
  z-index:1;
  width:min(900px,96vw);
  max-height:90vh;
  overflow:auto;
  display:grid;
  grid-template-columns:minmax(300px,1fr) minmax(320px,1fr);
  background:#fffdf8;
  border-radius:22px;
  box-shadow:0 30px 90px rgba(0,0,0,.28);
}
.product-detail-close{
  position:absolute;
  top:14px;
  right:14px;
  z-index:3;
  width:40px;
  height:40px;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#142019;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 4px 18px rgba(0,0,0,.12);
}
.product-detail-media{
  min-height:410px;
  background:#f2efe6;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:22px 0 0 22px;
}
.product-detail-media img{
  width:100%;
  height:100%;
  min-height:410px;
  max-height:620px;
  object-fit:contain;
  background:#fff;
}
.product-detail-fallback{
  width:72%;
  aspect-ratio:1/1;
  border-radius:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:110px;
}
.product-detail-content{
  padding:54px 42px 38px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.product-detail-content h2{
  margin:7px 0 12px;
  color:#142019!important;
  font-size:38px;
  line-height:1.05;
}
.product-detail-meta{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  margin-bottom:22px;
}
.product-detail-meta span{
  padding:7px 10px;
  border-radius:999px;
  background:#edf3e7;
  color:#31583f;
  font-size:11px;
  font-weight:800;
}
.product-detail-content>p{
  color:#566158;
  font-size:15px;
  line-height:1.75;
  margin:0 0 18px;
}
.product-detail-note{
  padding:13px 14px;
  border:1px solid #dfe8d8;
  border-radius:12px;
  background:#f7f9f2;
  color:#4c5c50;
  font-size:12px;
  line-height:1.5;
}
.product-detail-actions{
  display:flex;
  gap:10px;
  margin-top:22px;
  flex-wrap:wrap;
}

@media(max-width:720px){
  .product-view-hint{display:none}
  .product-detail-modal{
    align-items:flex-end;
    padding:0;
  }
  .product-detail-card{
    width:100%;
    max-height:94dvh;
    grid-template-columns:1fr;
    border-radius:20px 20px 0 0;
  }
  .product-detail-media{
    min-height:250px;
    max-height:42vh;
    border-radius:20px 20px 0 0;
  }
  .product-detail-media img{
    min-height:250px;
    max-height:42vh;
  }
  .product-detail-content{
    padding:26px 20px 28px;
  }
  .product-detail-content h2{
    font-size:30px;
  }
  .product-detail-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .product-detail-actions .btn{
    width:100%;
    text-align:center;
  }
}

@media(max-width:420px){
  .product-detail-actions{grid-template-columns:1fr}
}


/* =========================================================
   V6.5 — Public MRP + authenticated role pricing
   ========================================================= */
.product-card-pricing{display:grid;gap:6px;margin:10px 0 12px}
.product-mrp,.product-role-price{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:10px}
.product-mrp{background:#f3f1e9;border:1px solid #e4e0d4;color:#465048}
.product-role-price{background:#eaf4e9;border:1px solid #d4e7d1;color:#174d31}
.product-mrp span,.product-role-price span{font-size:9px;letter-spacing:.07em;font-weight:800;text-transform:uppercase}
.product-mrp strong,.product-role-price strong{font-size:14px;white-space:nowrap}
.product-login-price{font-size:10px;color:#6c766e;font-weight:700}
.product-detail-prices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 18px}
.public-price-box,.role-price-box{padding:13px 14px;border-radius:13px;display:flex;flex-direction:column;gap:4px}
.public-price-box{background:#f3f1e9;border:1px solid #e2ded1;color:#3c4940}
.role-price-box{background:#eaf4e9;border:1px solid #cfe4ce;color:#174d31}
.public-price-box span,.role-price-box span{font-size:9px;letter-spacing:.08em;font-weight:800;text-transform:uppercase}
.public-price-box strong,.role-price-box strong{font-size:22px}
@media(max-width:620px){
  .product-detail-prices{grid-template-columns:1fr 1fr;gap:8px}
  .public-price-box,.role-price-box{padding:10px}
  .public-price-box strong,.role-price-box strong{font-size:18px}
  .product-mrp,.product-role-price{padding:7px 8px}
  .product-mrp strong,.product-role-price strong{font-size:12px}
}
