/*
 * ORO PHARMACY — Visual Design System v2
 * Drop-in stylesheet: load AFTER tailwind-built.css.
 * Intent: preserve existing JS/data hooks while replacing the visual language.
 */

:root{
  --oro-green:#15803d;
  --oro-green-2:#16a34a;
  --oro-green-3:#0f6b32;
  --oro-mint:#eaf7ef;
  --oro-ink:#122019;
  --oro-muted:#647169;
  --oro-line:#e6ebe8;
  --oro-bg:#f7f9f8;
  --oro-white:#fff;
  --oro-gold:#e7a821;
  --oro-danger:#c73a42;
  --oro-radius:18px;
  --oro-radius-sm:12px;
  --oro-shadow:0 10px 35px rgba(18,32,25,.07);
  --oro-shadow-hover:0 16px 42px rgba(18,32,25,.12);
  --oro-max:1320px;
}

html{scroll-behavior:smooth}
body{
  background:var(--oro-bg)!important;
  color:var(--oro-ink)!important;
  font-family:"IBM Plex Sans Arabic",system-ui,sans-serif!important;
}
.font-display{font-family:"Alexandria","IBM Plex Sans Arabic",sans-serif!important}

/* Stop the old dashboard-like navy domination. */
body>.bg-ink-950{background:#102018!important}
#siteHeader{background:rgba(255,255,255,.96)!important;color:var(--oro-ink)!important;border-bottom:1px solid var(--oro-line);box-shadow:0 2px 14px rgba(18,32,25,.05)!important;backdrop-filter:blur(16px)}
#siteHeader .bg-ink-800{background:#fff!important;border-top:1px solid var(--oro-line)!important}
#siteHeader .text-white{color:var(--oro-ink)!important}
#siteHeader .text-ink-300,#siteHeader .text-ink-200{color:#68746e!important}
#siteHeader #logoHome .bg-mint-500{background:var(--oro-green)!important;box-shadow:none!important}
#siteHeader #logoHome span:nth-child(2) span:first-child{color:var(--oro-ink)!important}
#siteHeader #logoHome span:nth-child(2) span:last-child{color:#7a8780!important}
#categoriesDrawerBtn{background:#f1f5f2!important;color:var(--oro-ink)!important}
#loginBtn,#cartBtn{background:#f1f5f2!important;color:var(--oro-ink)!important}
#cartBtn{background:var(--oro-green)!important;color:#fff!important}
#healthPill{background:#f5f8f6!important;border-color:#e2e9e4!important;color:#536058!important}

/* Main search: hero-level importance. */
#searchWrapDesktop{max-width:720px!important}
#searchInputDesktop{border:1px solid #dfe7e2!important;border-left:0!important;border-radius:0 14px 14px 0!important;background:#f7faf8!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
#searchInputDesktop:focus{border-color:#93d4a9!important;background:#fff!important;box-shadow:0 0 0 4px rgba(34,197,94,.08)!important}
#searchWrapDesktop button{width:56px!important;border-radius:14px 0 0 14px!important;background:var(--oro-green)!important}
#searchWrapMobile input{background:#f7faf8!important;border:1px solid #dfe7e2!important;border-radius:14px!important}

#groupStrips{padding-top:9px!important;padding-bottom:9px!important;gap:7px!important}
#groupStrips>*{border-radius:999px!important}

/* Utility bar */
body>div.bg-ink-950:first-child{background:#f1f7f3!important;color:#506158!important;border-bottom:1px solid #e1e9e4}
body>div.bg-ink-950:first-child .text-ink-100{color:#506158!important}
body>div.bg-ink-950:first-child .text-sun-400{color:var(--oro-green)!important}
body>div.bg-ink-950:first-child .text-mint-400{color:var(--oro-green)!important}

/* Main max widths */
.max-w-7xl{max-width:var(--oro-max)!important}

/* New visual homepage surfaces */
.oro-page{padding-bottom:40px}
.oro-shell{max-width:var(--oro-max);margin:0 auto;padding:0 18px}
.oro-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:18px;align-items:stretch}
.oro-hero{
  position:relative;min-height:350px;border-radius:24px;overflow:hidden;
  background:linear-gradient(135deg,#0c5c2b 0%,#168443 48%,#dff5e6 48%,#effaf2 100%);
  box-shadow:var(--oro-shadow);
}
.oro-hero:before{content:"";position:absolute;inset:auto -5% -22% 42%;height:70%;background:rgba(255,255,255,.12);border-radius:50%;filter:blur(2px)}
.oro-hero-copy{position:relative;z-index:2;max-width:58%;padding:48px 46px;color:#fff}
.oro-hero-eyebrow{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);font-weight:700;font-size:12px}
.oro-hero h2{margin:18px 0 0;font-family:"Alexandria",sans-serif;font-weight:900;font-size:clamp(26px,3vw,43px);line-height:1.35;letter-spacing:-.03em}
.oro-hero p{margin:12px 0 0;max-width:560px;color:rgba(255,255,255,.83);font-size:14px;line-height:1.9}
.oro-hero-actions{display:flex;gap:9px;align-items:center;margin-top:22px;flex-wrap:wrap}
.oro-btn-primary,.oro-btn-secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 18px;border-radius:12px;font-weight:800;font-size:13px;transition:.2s ease;text-decoration:none}
.oro-btn-primary{background:#fff;color:#0b5c2c}.oro-btn-primary:hover{transform:translateY(-1px);box-shadow:0 9px 20px rgba(0,0,0,.12)}
.oro-btn-secondary{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.2)}
.oro-hero-product-art{position:absolute;z-index:1;right:52%;top:23px;width:390px;height:310px;display:grid;place-items:center;transform:translateX(50%)}
.oro-hero-product-art .pack{width:205px;height:250px;border-radius:24px;background:#fff;box-shadow:0 25px 50px rgba(8,60,27,.18);display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(-7deg)}
.oro-hero-product-art .pack .cap{width:94px;height:28px;border-radius:12px 12px 5px 5px;background:#dfe8e2;margin-bottom:9px}
.oro-hero-product-art .pack .label{width:132px;text-align:center;border-top:3px solid var(--oro-green);padding-top:9px;color:#183126;font-weight:900;font-size:17px}
.oro-hero-product-art .pack .sub{margin-top:6px;color:#6f7d75;font-size:10px;font-weight:700}

.oro-side-cats{background:#fff;border:1px solid var(--oro-line);border-radius:20px;overflow:hidden;box-shadow:var(--oro-shadow)}
.oro-side-cats .head{padding:17px 18px;background:#fbfcfb;border-bottom:1px solid var(--oro-line);font-weight:900;font-family:"Alexandria",sans-serif;font-size:14px}
.oro-side-cats .body{max-height:310px;overflow:auto}

/* Replace repeated rounded rectangles with quiet, premium cards. */
#categoryTiles{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important;margin-top:16px!important}
.oro-need-tile{
  min-height:118px;background:#fff;border:1px solid var(--oro-line);border-radius:16px;padding:16px 13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;transition:.2s ease;cursor:pointer
}
.oro-need-tile:hover{transform:translateY(-3px);border-color:#b9dfc4;box-shadow:var(--oro-shadow)}
.oro-need-icon{width:45px;height:45px;border-radius:14px;background:var(--oro-mint);color:var(--oro-green);display:grid;place-items:center;font-size:18px}
.oro-need-tile strong{font-size:12px;line-height:1.6}

/* Section headings */
.oro-section{margin-top:46px}
.oro-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px}
.oro-section-title{display:flex;align-items:center;gap:10px;font-family:"Alexandria",sans-serif;font-size:20px;font-weight:900;letter-spacing:-.015em}
.oro-section-title .mark{width:34px;height:34px;border-radius:11px;background:var(--oro-mint);color:var(--oro-green);display:grid;place-items:center;font-size:14px}
.oro-link{color:var(--oro-green);font-size:12px;font-weight:900;text-decoration:none}
.oro-link:hover{text-decoration:underline;text-underline-offset:4px}

/* Existing dynamic product rows */
#rowNew,#rowBest,#rowScarce,#pdRelatedRow,#pdCrossSellRow{gap:14px!important;padding:18px 2px 10px!important}
#rowNew>* ,#rowBest>* ,#rowScarce>* ,#pdRelatedRow>* ,#pdCrossSellRow>*{flex:0 0 210px!important}

/* Generic product card hooks — works with dynamic children too. */
.oro-product-card,.product-card,.item-card{
  background:#fff!important;border:1px solid var(--oro-line)!important;border-radius:18px!important;box-shadow:none!important;overflow:hidden!important;transition:.22s ease!important;position:relative!important
}
.oro-product-card:hover,.product-card:hover,.item-card:hover{transform:translateY(-4px)!important;box-shadow:var(--oro-shadow-hover)!important;border-color:#cfe2d5!important}
.oro-product-image{height:205px;background:#fbfcfb;display:grid;place-items:center;position:relative;overflow:hidden}
.oro-product-image img{max-width:86%;max-height:86%;object-fit:contain;transition:.25s ease}.oro-product-card:hover .oro-product-image img{transform:scale(1.04)}
.oro-product-body{padding:13px 14px 15px}
.oro-brand{font-size:10px;color:#849189;font-weight:800;margin-bottom:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.oro-product-name{font-size:13px;font-weight:800;color:var(--oro-ink);line-height:1.65;min-height:42px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.oro-product-meta{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:10px}
.oro-price{font-family:"Alexandria",sans-serif;font-size:15px;font-weight:900;letter-spacing:-.02em}
.oro-unit{font-size:10px;color:#8b9790;font-weight:700}
.oro-add{width:38px;height:38px;border-radius:11px;background:var(--oro-green);color:#fff;border:0;display:grid;place-items:center;cursor:pointer;transition:.2s ease}.oro-add:hover{background:var(--oro-green-3);transform:scale(1.03)}
.oro-badge{position:absolute;top:11px;right:11px;padding:5px 8px;border-radius:999px;background:#fff;border:1px solid #e3ebe6;font-size:9px;font-weight:900;z-index:3}
.oro-badge.sale{background:#fff6df;border-color:#f3dfae;color:#8f6500}.oro-badge.new{background:var(--oro-mint);border-color:#cfead7;color:var(--oro-green-3)}.oro-badge.rx{background:#fff0f2;border-color:#f4cdd2;color:#a3313b}

/* Scarce zone: premium but not loud. */
#secScarce{background:#f5faf6!important;border-top:1px solid #e1eee4!important;border-bottom:1px solid #e1eee4!important;padding:28px 0!important}
#secScarceTitle span{background:#eaf7ef!important;color:var(--oro-green)!important}

/* Brands */
#oroBrandsGrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:15px}
.oro-brand-tile{background:#fff;border:1px solid var(--oro-line);border-radius:14px;min-height:74px;padding:11px;display:grid;place-items:center;font-family:"Alexandria",sans-serif;font-weight:900;font-size:12px;color:#33433a;transition:.18s ease}
.oro-brand-tile:hover{border-color:#b8dcc3;box-shadow:var(--oro-shadow);transform:translateY(-2px)}

/* Trust */
.oro-trust-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}
.oro-trust-card{background:#fff;border:1px solid var(--oro-line);border-radius:15px;padding:16px;display:flex;gap:11px;align-items:flex-start}
.oro-trust-card i{width:38px;height:38px;border-radius:11px;background:var(--oro-mint);color:var(--oro-green);display:grid;place-items:center;flex:0 0 auto}
.oro-trust-card strong{font-size:12px;font-weight:900}.oro-trust-card span{display:block;color:#7b8780;font-size:10px;font-weight:700;margin-top:3px;line-height:1.6}

/* Health editorial cards */
#oroHealthGuides{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}
.oro-guide{background:#fff;border:1px solid var(--oro-line);border-radius:18px;overflow:hidden;transition:.2s ease}
.oro-guide:hover{transform:translateY(-3px);box-shadow:var(--oro-shadow)}
.oro-guide-art{height:145px;background:linear-gradient(135deg,#eaf7ef,#f6faf7);display:grid;place-items:center;color:var(--oro-green);font-size:40px}
.oro-guide-body{padding:15px}.oro-guide-kicker{font-size:9px;font-weight:900;color:var(--oro-green);text-transform:uppercase}.oro-guide h3{margin:6px 0 0;font-size:14px;font-weight:900;line-height:1.6}.oro-guide p{margin:6px 0 0;color:#748078;font-size:11px;line-height:1.7}

/* Catalog */
#catalogView{margin-top:30px!important}
#catalogGrid{gap:13px!important}
#catalogView .stock-chip{background:#fff!important;border-color:#dfe8e2!important;color:#617067!important}
#catalogView .stock-chip:hover,#catalogView .stock-chip[data-active="true"]{background:var(--oro-green)!important;border-color:var(--oro-green)!important;color:#fff!important}

/* Product modal becomes premium, airy. */
#productDetailModal .modal-card{border-radius:24px!important;box-shadow:0 24px 80px rgba(9,32,18,.22)!important}
#productDetailModal #pdMainImageBtn{cursor:zoom-in}
#productDetailModal #pdName{font-size:22px!important}
#productDetailModal #pdAddBtn{background:var(--oro-green)!important;border-radius:12px!important}

/* Checkout / auth remain functional, but visual language matches site. */
.modal-card{border:1px solid var(--oro-line)!important}
#checkoutModal .bg-ink-900,#loginModal .bg-ink-900,#pinModal .bg-ink-950,#contentModal .bg-ink-900,#editModal .bg-ink-900{background:#102018!important}
#checkoutModal button[type="submit"],#contentModal button[type="submit"],#editSaveBtn,#loginShowPhoneBtn,#loginVerifyBtn,#loginSendOtpBtn,#loginLinkSendOtpBtn{background:var(--oro-green)!important}

/* Footer: lighter information hierarchy. */
footer#contact{background:#102018!important}
footer#contact .text-ink-400{color:#94a19a!important}
footer#contact a:hover{color:#87e0a4!important}

/* Accessibility */
:where(button,a,input,select,textarea):focus-visible{outline:3px solid rgba(22,163,74,.26)!important;outline-offset:2px}

/* Mobile-first behavior */
@media (max-width:1023px){
  #siteHeader{position:sticky!important;top:0!important}
  .oro-hero-grid{grid-template-columns:1fr}.oro-side-cats{display:none}.oro-hero{min-height:290px}
  .oro-hero-copy{max-width:72%;padding:34px 26px}.oro-hero-product-art{right:20%;width:310px;opacity:.98}.oro-hero-product-art .pack{width:168px;height:218px}
  #categoryTiles{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  #oroBrandsGrid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .oro-trust-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){
  .oro-shell{padding:0 13px}
  .oro-hero{min-height:300px;border-radius:19px}
  .oro-hero-copy{max-width:100%;padding:25px 19px;position:relative;z-index:3}
  .oro-hero h2{font-size:25px;line-height:1.38}.oro-hero p{font-size:12px;max-width:80%}
  .oro-hero-product-art{right:-4px;top:122px;width:200px;height:170px;opacity:.6}.oro-hero-product-art .pack{width:115px;height:145px;border-radius:17px}.oro-hero-product-art .pack .cap{width:56px;height:18px}.oro-hero-product-art .pack .label{width:77px;font-size:10px;border-top-width:2px}.oro-hero-product-art .pack .sub{font-size:7px}
  .oro-hero-actions{margin-top:15px}.oro-btn-primary,.oro-btn-secondary{min-height:42px;padding:0 13px;font-size:11px}
  #categoryTiles{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
  .oro-need-tile{min-height:100px;border-radius:14px;padding:11px 7px}.oro-need-icon{width:38px;height:38px;font-size:15px}.oro-need-tile strong{font-size:10px}
  .oro-section{margin-top:34px}.oro-section-title{font-size:17px}.oro-section-title .mark{width:30px;height:30px}
  #rowNew>* ,#rowBest>* ,#rowScarce>*{flex-basis:166px!important}
  .oro-product-image{height:166px}.oro-product-body{padding:10px 10px 12px}.oro-product-name{font-size:11px;min-height:38px}.oro-price{font-size:13px}.oro-add{width:34px;height:34px}
  #oroBrandsGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.oro-brand-tile{min-height:62px;font-size:10px}
  #oroHealthGuides{grid-template-columns:1fr;gap:10px}.oro-guide-art{height:110px}
  .oro-trust-grid{grid-template-columns:1fr 1fr;gap:8px}.oro-trust-card{padding:11px;gap:8px}.oro-trust-card i{width:32px;height:32px}.oro-trust-card strong{font-size:10px}.oro-trust-card span{font-size:9px}
}
@media (max-width:420px){
  #categoryTiles{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .oro-hero-product-art{right:-30px;opacity:.43}
}

/* Reduce motion for users who ask for it. */
@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
